html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: auto;
  font-family: 'Gelasio', serif;
  color: #000;
}

canvas {
  display: block;
  margin: 0 auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

.content {
  position: relative;
  z-index: 1;
  max-width: 95%;
  margin: 0 auto;
  padding: 280px 20px 100px;
  min-height: 100vh;
  height: auto;
  overflow-y: auto;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 15px 30px;
  z-index: 100;
  box-shadow: none;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.logo {
  height: 120px;
  width: auto;
  position: absolute;
  left: 30px;
  top: 5px;
}

.main-title {
  font-size: 2.5rem;
  margin: 0;
  color: #000;
  font-family: 'Cinzel', serif;
  font-weight: 700;
}

.nav-headers {
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 20px;
  flex-wrap: wrap;
  background: #ffffff;
  z-index: 99;
  box-shadow: none;
  transition: opacity 0.3s ease;
}

.nav-item {
  font-size: 1.8rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  text-shadow: none;
  transition: all 0.3s ease;
  padding: 10px 20px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  position: relative;
}

.nav-item:not(:last-child)::before {
  content: '';
  position: absolute;
  right: -55px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  width: 40px;
  height: 3px;
  background: url('Underline.PNG') no-repeat center;
  background-size: 100% 100%;
}

.nav-item:hover {
  text-decoration: none;
}

.nav-item:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: url('Underline.PNG') no-repeat center bottom;
  background-size: 100% 100%;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.section {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  padding: 40px;
  margin-bottom: 500px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: none;
}

.section.active {
  display: block;
  animation: fadeInSection 0.5s ease-in-out;
}

@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section h2 {
  font-size: 2.2rem;
  margin: 0 0 20px;
  color: #000;
  font-weight: 600;
  font-family: 'Cinzel', serif;
  text-align: center;
}

.section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #000;
  margin: 0;
}

.section h3 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: #000;
  font-weight: 600;
  font-family: 'Cinzel', serif;
}

.section h3:first-of-type {
  margin-top: 0;
}

.image-row {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.image-row img {
  width: 100%;
  max-width: 800px;
  border-radius: 2px;
}

@media (min-width: 768px) {
  .image-row img {
    width: calc(50% - 10px);
    max-width: 500px;
  }
}

.social-icons {
  position: absolute;
  right: 30px;
  display: flex;
  gap: 0px;
  align-items: center;
}

.social-link {
  display: block;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: scale(1.1);
}

.social-link img {
  height: 30px;
  width: auto;
}

.email-link img {
  height: 45px !important;
}

.x-link {
  margin-left: -10px;
}

.footer {
  display: none;
}

@media (max-width: 768px) {
  .footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: #000;
    padding: 25px 20px;
    margin: 40px -15px -25px -15px;
  }

  .footer .footer-link img {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
  }

  .footer .footer-link:first-child img {
    height: 50px;
  }
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
}

.footer-social-mobile {
  display: none;
  justify-content: center;
  gap: 15px;
  align-items: center;
}

.footer-link {
  display: block;
  transition: transform 0.3s ease;
}

.footer-link:hover {
  transform: scale(1.1);
}

.footer-link img {
  height: 35px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-link:first-child img {
  height: 50px;
}

.footer-bottom {
  background: #fff;
  padding: 100px 20px;
  width: 100%;
}

.news-item {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 1rem;
  color: #666;
  margin: 0 0 10px;
  font-family: 'Gelasio', serif;
  font-weight: 400;
}

.news-title {
  font-size: 1.8rem;
  color: #000;
  margin: 0 0 15px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
}

.team-member {
  margin-bottom: 60px;
  text-align: center;
}

.team-member:last-child {
  margin-bottom: 0;
}

.team-name {
  font-size: 2rem;
  color: #000;
  margin: 0 0 20px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
}

.team-photo {
  width: 100%;
  max-width: 300px;
  border-radius: 2px;
  margin: 20px auto;
  display: block;
}

.team-role {
  font-size: 1.5rem;
  color: #000;
  margin: 20px 0 15px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
}

.team-member p {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .top-bar {
    height: 70px;
    padding: 10px 15px;
  }

  .logo {
    height: 50px;
    position: absolute;
    left: 10px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    pointer-events: auto;
  }

  .social-icons {
    opacity: 0;
    pointer-events: none;
  }

  .main-title {
    font-size: 1.2rem;
    margin: 0;
  }

  .nav-headers {
    top: 70px;
    gap: 0px;
    padding: 8px 5px;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .nav-item {
    font-size: 0.95rem;
    padding: 8px 8px;
  }

  .nav-item:not(:last-child)::before {
    display: none;
  }

  .nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #000;
    opacity: 0.3;
  }

  .nav-item:hover::after {
    content: none;
  }

  .content {
    padding: 160px 15px 100px;
  }

  .section {
    padding: 25px 15px;
  }

  .section h2 {
    font-size: 1.6rem;
  }

  .section h3 {
    font-size: 1.2rem;
  }

  .footer-social {
    display: none;
  }

  .footer-social-mobile {
    display: flex;
  }
}
