/* ===================================
   CSS Variables & Reset
   =================================== */

:root {
  --black: black;
  --primary-dark: #002c11;
  --paragraph-gray: #585858;
  --primary: #035925;
  --light-gray: #fafafa;
  --gray: #ebebeb;
  --white: white;
  --secondary-orange: #f5e197;
  --secondary-red: #eecbaa;
  --secondary-yellow: #ffff7e;
  --white-20: #fff3;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  color: var(--black);
  background-color: #fff;
  min-height: 100%;
  margin: 0;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  line-height: 1.2em;
}

img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

/* ===================================
   Typography
   =================================== */

h1 {
  color: var(--black);
  letter-spacing: -1.28px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.1em;
}

h2 {
  color: var(--black);
  letter-spacing: -0.8px;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2em;
}

h3 {
  letter-spacing: -0.56px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2em;
}

h4 {
  color: var(--black);
  letter-spacing: -0.52px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3em;
}

h5 {
  color: var(--black);
  letter-spacing: -0.4px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2em;
}

h6 {
  color: var(--primary-dark);
  letter-spacing: -0.48px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5em;
}

p {
  color: var(--paragraph-gray);
  letter-spacing: -0.32px;
  margin-bottom: 0;
  line-height: 1.5em;
  font-size: 1.125rem;
}

a {
  color: var(--primary);
  letter-spacing: -0.32px;
  align-items: center;
  font-weight: 500;
  line-height: 1.2em;
  text-decoration: none;
  transition: all 0.35s;
}

a:hover {
  color: var(--black);
}

/* ===================================
   Layout & Containers
   =================================== */

.base-container {
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.section {
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.section.gray-bg {
  background-color: var(--light-gray);
}

.section.without-space {
  padding-top: 0;
  padding-bottom: 0;
}

.section.without-top-spacing {
  padding-top: 0;
}

.section.primary-color-background {
  background-color: var(--primary-dark);
  background-image: linear-gradient(#0006, #0006);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.team-section {
  background-image: linear-gradient(#0006, #0006), url('../images/content/team_group.webp');
  background-position: 0 0, center top;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, cover;
  background-attachment: fixed;
}

.resources-section {
  background-image: linear-gradient(#0006, #0006);
  background-position: center;
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
  background-attachment: fixed;
}

/* ===================================
   Navigation
   =================================== */

.navbar-absolute {
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.navbar-absolute.scrolled {
  background-color: var(--primary-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-menu-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo {
  height: 80px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tablet-menu {
  display: none;
}

.nav-link {
  color: var(--white);
  padding: 8px 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2em;
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
}

.nav-item-title {
  color: var(--white);
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5em;
  letter-spacing: -0.32px;
}

.nav-item-title.line {
  color: var(--white);
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  color: var(--white);
  padding: 8px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.clip.nav {
  position: relative;
  overflow: hidden;
  height: 1.5em;
}

.nav-dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 10px 0;
  z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-list {
  display: block;
}

.nav-dropdown-link-wrapper {
  display: flex;
  flex-direction: column;
}

.nav-dropdown-link {
  color: var(--black);
  padding: 10px 20px;
  display: block;
  transition: background-color 0.3s;
}

.nav-dropdown-link:hover {
  background-color: var(--light-gray);
}

.nav-dropdown-link-line {
  display: inline-block;
  width: 20px;
  height: 2px;
  background-color: var(--primary);
  margin-right: 10px;
}

.nav-arrow {
  width: 12px;
  height: 12px;
  margin-left: 5px;
}

.menu-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-button {
  display: none;
  cursor: pointer;
  padding: 10px;
  background: transparent;
  border: none;
  transition: opacity 0.3s ease;
}

.menu-button:hover {
  opacity: 0.8;
}

.image-burger {
  filter: brightness(0) invert(1);
  width: auto;
  height: 16px;
}

.image-burger.white {
  filter: brightness(0) invert(1);
}

.close-menu-button {
  display: none;
  cursor: pointer;
  padding: 10px;
  background: transparent;
  border: none;
  transition: opacity 0.3s ease;
}

.close-menu-button:hover {
  opacity: 0.8;
}

.nav-close-icon {
  filter: brightness(0) invert(1);
  width: 24px;
  height: 24px;
}

.header-button-wrapper {
  display: flex;
}

.header-button-wrapper.tablet {
  display: none;
}

/* ===================================
   Button Animations
   =================================== */

.clip {
  position: relative;
  overflow: hidden;
  height: 1.5em;
}

.button-text-wrap {
  transition: transform 0.35s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.button-text-wrap.nav {
  transition: transform 0.35s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.button-text-wrap.bottom-wrap {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
}

.primary-button:hover .button-text-wrap,
.secondary-button:hover .button-text-wrap,
.nav-link:hover .button-text-wrap,
.nav-dropdown:hover .nav-dropdown-toggle .button-text-wrap {
  transform: translateY(-100%);
}

.primary-button {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  letter-spacing: -0.32px;
  border-radius: 50px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5em;
  transition: all 0.35s cubic-bezier(0.645, 0.045, 0.355, 1);
  display: inline-block;
  overflow: hidden;
}

.primary-button:hover {
  background-color: var(--secondary-orange);
  background-image: linear-gradient(319deg, var(--secondary-red), var(--secondary-yellow) 50%, var(--secondary-orange));
  color: var(--white);
}

.secondary-button {
  background-color: var(--white);
  color: var(--primary);
  text-align: center;
  letter-spacing: -0.32px;
  border-radius: 50px;
  border: 2px solid var(--primary);
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5em;
  transition: all 0.35s cubic-bezier(0.645, 0.045, 0.355, 1);
  display: inline-block;
  overflow: hidden;
}

.secondary-button:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--white);
}

/* ===================================
   Hero Section
   =================================== */

.home-1-banner-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.background-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-1-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.home-1-banner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.home-1-banner-top-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.home-1-banner-text {
  color: var(--white);
  font-size: 18px;
  line-height: 1.6em;
  max-width: 600px;
}

.home-1-h1-wrapper h1 {
  color: var(--white);
  max-width: 800px;
}

.text-white {
  color: var(--white) !important;
}

/* ===================================
   About Section
   =================================== */

.home-1-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-label {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.heading-wrap h2 {
  margin-top: 0;
}

.paragraph-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.paragraph-wrapper p {
  margin-bottom: 20px;
}

/* ===================================
   Research/Services Section
   =================================== */

.home-1-services {
  width: 100%;
}

.home-1-service-section-title-wrapper {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.home-1-services-text-wrapper {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tm40-button-wrapper {
  margin-top: 30px;
}

.bg-rectangle {
  background-color: var(--light-gray);
  border-radius: 20px;
  padding: 60px 40px;
}

.services-collection-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.services-collection-item {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  padding: 40px 30px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.services-collection-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 1;
}

.services-collection-item:hover {
  transform: translateY(-10px);
}

.plus-button-wrapper {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
}

.plus-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--white);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.plus-button:hover {
  transform: rotate(45deg);
}

.plus-icon {
  width: 24px;
  height: 24px;
}

.services-card {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

.blur-image {
  width: 100%;
  opacity: 0.6;
}

.service-card-text-wrap {
  position: relative;
  z-index: 3;
  color: var(--white);
}

.card-link-text {
  color: var(--white);
  font-size: 24px;
  font-weight: 500;
  display: block;
  margin-bottom: 10px;
}

.service-card-text-wrap a:hover {
  color: var(--white);
 
}

.solution-card-paragraph {
  color: var(--white);
  font-size: 14px;
  line-height: 1.5em;
}

/* ===================================
   Gray Card (Weto Section)
   =================================== */

.gray-card {
  background-color: var(--light-gray);
  border-radius: 20px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.gray-card-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.solution-button-wrapper {
  margin-top: 20px;
}

.home-1-gray-card-image {
  width: 100%;
  border-radius: 12px;
}

/* ===================================
   Locations Grid
   =================================== */

.services-1-title-wrap {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.services-1-title h2 {
  margin-top: 20px;
}

.photo-section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.photo-section-cell {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: 30px;
}

.photo-cell {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.black-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 1;
}

.photo-cell-text-wrap {
  position: relative;
  z-index: 2;
}

.photo-cell-text-wrap h2 {
  margin: 0;
}

/* ===================================
   Team Section
   =================================== */

.about-photo-text-wrap {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.about-photo-text h2 {
  color: var(--white);
}

.about-photo-button-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* ===================================
   Highlights Section
   =================================== */

.services-3-collection-list-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.services-3-collection-list {
  display: flex;
  gap: 30px;
  width: 100%;
}

.box-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.services-2-collection-item {
  position: relative;
  background-color: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.services-2-collection-item:hover {
  transform: translateY(-10px);
}

.service-photo-link-block {
  display: block;
  overflow: hidden;
}

.service-cover {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-photo-link-block:hover .service-cover {
  transform: scale(1.05);
}

.services-2-card {
  padding: 30px;
}

.service-link {
  color: var(--black);
  font-size: 20px;
  font-weight: 500;
  display: block;
  margin-bottom: 15px;
}

.services-2-card p {
  color: var(--paragraph-gray);
  font-size: 14px;
  line-height: 1.6em;
}

.plus-button.services-2 {
  position: absolute;
  top: 20px;
  right: 20px;
}

.services-1-collection-item {
  background-color: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.services-1-collection-item:hover {
  transform: translateY(-5px);
}

.services-1-link-block {
  display: block;
  overflow: hidden;
}

.small-service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.services-1-link-block:hover .small-service-image {
  transform: scale(1.05);
}

.small-service-card {
  padding: 20px;
}

.small-service-card .service-link {
  font-size: 18px;
  margin-bottom: 10px;
}

.small-service-card p {
  font-size: 13px;
}

/* ===================================
   Resources Section (in primary bg)
   =================================== */

.resources-section .photo-section-cell {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.service-card-text-wrap-copy {
  position: relative;
  z-index: 2;
}

.service-card-text-wrap-copy .card-link-text {
  color: var(--white);
  font-size: 20px;
  font-weight: 500;
  display: block;
  margin-bottom: 10px;
}

.services-card-paragraph {
  color: var(--white);
  font-size: 14px;
  line-height: 1.5em;
}

/* ===================================
   Footer
   =================================== */

.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-wrapper.three-columns {
  grid-template-columns: 1fr 1fr 1fr;
}

.three-columns .footer-logo {
  height: auto;
  width: 100%;
  max-width: 280px;
}

@media screen and (max-width: 767px) {
  .footer-wrapper.three-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-brand-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-logo {
  height: 40px;
}

.social-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-wrapper.horizontal {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 45px;
}

.social-link-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--white);
  transition: opacity 0.3s;
  position: relative;
}

.social-link-block:hover {
  opacity: 1;
  /* Keep opacity 1 on hover */
}

.social-link-block:hover .footer-social-image {
  opacity: 0.7;
  /* Fade icon slightly on hover */
}

.footer-social-image {
  width: 32px;
  height: 32px;
  transition: opacity 0.3s;
}

.social-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--white);
  color: var(--primary-dark);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-link-block:hover .social-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}

.footer-links-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-links-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links-wrapper h6 {
  color: var(--white);
  margin-bottom: 10px;
}

.footer-link {
  color: var(--white);
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s;
}

.footer-link:hover {
  opacity: 1;
  color: var(--white);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.newsletter-input {
  padding: 10px 15px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.2);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-button {
  padding: 10px 15px;
  border-radius: 4px;
  border: none;
  background-color: var(--white);
  color: var(--primary-dark);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-button:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.footer-bottom-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copyright,
.footer-rights {
  color: var(--white);
  font-size: 14px;
  opacity: 0.8;
}

.footer-rights a:hover {
  
    color: var(--white);
}
 
 


.footer-copyright-link {
  color: var(--white);
  text-decoration: underline;
}

/* ===================================
   Animations
   =================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   Responsive Design
   =================================== */

@media screen and (max-width: 991px) {
  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 36px;
  }

  .base-container {
    max-width: 728px;
  }

  .home-1-about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-collection-list {
    grid-template-columns: 1fr;
  }

  .gray-card {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .services-3-collection-list {
    flex-direction: column;
  }

  .footer-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 991px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .base-container {
    max-width: none;
    padding-left: 20px;
    padding-right: 20px;
  }

  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  /* Mobile Navigation */
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--primary-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 9999;
  }

  .nav-menu.active {
    left: 0;
  }

  .tablet-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    width: 100%;
  }

  .brand-tablet {
    display: flex;
    align-items: center;
  }

  .menu-wrap {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  .nav-link,
  .nav-dropdown-toggle {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
  }

  .nav-link .nav-item-title,
  .nav-dropdown-toggle .nav-item-title {
    color: var(--white);
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-list {
    position: static;
    background-color: transparent;
    box-shadow: none;
    padding-left: 20px;
    margin-top: 10px;
    display: none;
  }

  .nav-dropdown.active .nav-dropdown-list {
    display: block;
  }

  .nav-dropdown-link {
    color: var(--white) !important;
    padding: 10px 0;
    border-bottom: none;
    opacity: 0.8;
  }

  .nav-dropdown-link:hover {
    opacity: 1;
    background-color: transparent;
  }

  .nav-dropdown-link-line {
    background-color: var(--white);
  }

  .nav-arrow {
    filter: brightness(0) invert(1);
  }

  .menu-button {
    display: block;
  }

  .close-menu-button {
    display: block;
  }

  .header-button-wrapper {
    display: none;
  }

  .header-button-wrapper.tablet {
    display: block;
    width: 100%;
    margin-top: 20px;
  }

  .header-button-wrapper.tablet .primary-button {
    width: 100%;
    text-align: center;
  }

  .photo-section-grid {
    grid-template-columns: 1fr;
  }

  .gray-card {
    padding: 30px 20px;
  }

  .services-collection-item {
    min-height: 350px;
  }

  .footer-links-wrap {
    grid-template-columns: 1fr;
  }

  .footer-bottom-wrapper {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .home-1-banner-section {
    padding-top: 120px;
  }
}

@media screen and (max-width: 479px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .bg-rectangle {
    padding: 40px 20px;
  }

  .services-collection-item {
    min-height: 300px;
    padding: 30px 20px;
  }
}

/* ===================================
   Contact Page Styles
   =================================== */

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-field {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 10px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-family: 'Instrument Sans', sans-serif;
    border: 2px solid var(--gray);
    border-radius: 8px;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.contact-info-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-info-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 10px;
}

.contact-info-text {
    font-size: 14px;
    color: var(--paragraph-gray);
    line-height: 1.6em;
}

/* ===================================
   Gallery Page Styles
   =================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

@media screen and (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Maps Page Styles
   =================================== */

.map-container {
    width: 100%;
    height: 600px;
    background: var(--gray);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-top: 40px; */
}

.map-placeholder {
    text-align: center;
    color: var(--paragraph-gray);
}

.map-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.map-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-card h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 15px;
}

.map-card p {
    font-size: 14px;
    color: var(--paragraph-gray);
    line-height: 1.6em;
}

@media screen and (max-width: 991px) {
    .map-list {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   News & Events Page Styles
   =================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.news-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-10px);
}

.news-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.news-content {
    padding: 30px;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--paragraph-gray);
}

.news-category {
    color: var(--primary);
    font-weight: 500;
}

.news-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 15px;
    line-height: 1.3em;
}

.news-excerpt {
    font-size: 14px;
    color: var(--paragraph-gray);
    line-height: 1.6em;
    margin-bottom: 20px;
}

.event-card {
    background: var(--light-gray);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: start;
}

.event-date {
    background: var(--primary);
    color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-width: 100px;
}

.event-day {
    font-size: 36px;
    font-weight: 500;
    line-height: 1;
}

.event-month {
    font-size: 14px;
    margin-top: 5px;
    text-transform: uppercase;
}

.event-details {
    flex: 1;
}

.event-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 10px;
}

.event-info {
    font-size: 14px;
    color: var(--paragraph-gray);
    line-height: 1.6em;
}

@media screen and (max-width: 991px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 767px) {
    .event-card {
        flex-direction: column;
    }
}

/* ===================================
   News Detail Page Styles
   =================================== */

.article-header {
    background: var(--light-gray);
    padding: 120px 0 60px;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    font-size: 14px;
    color: var(--paragraph-gray);
}

.article-category {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
}

.article-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.article-image {
    width: 100%;
    border-radius: 16px;
    margin: 40px 0;
}

.article-content h2 {
    margin: 40px 0 20px;
    font-size: 32px;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.8em;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.8em;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    margin-bottom: 40px;
}

.related-articles {
    background: var(--light-gray);
    padding: 60px 0;
    margin-top: 80px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.related-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-card-content {
    padding: 20px;
}

.related-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* TinyMCE inline images */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 16px auto;
}

@media screen and (max-width: 767px) {
    .article-content {
        margin: 30px auto;
        padding: 0 16px;
    }

    .article-image {
        border-radius: 10px;
        margin: 24px 0;
    }

    .article-content h1 {
        font-size: 28px;
    }

    .article-content h2 {
        font-size: 22px;
    }
}

@media screen and (max-width: 991px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Publications Page Styles
   =================================== */

.pub-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 60px;
}

.pub-item {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pub-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 15px;
}

.pub-authors {
    font-size: 14px;
    color: var(--paragraph-gray);
    margin-bottom: 10px;
}

.pub-meta {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 15px;
}

.pub-abstract {
    font-size: 14px;
    color: var(--paragraph-gray);
    line-height: 1.6em;
}

/* ===================================
   Reports Page Styles
   =================================== */

.report-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 60px;
}

.report-item {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.report-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 15px;
}

.report-meta {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 15px;
}

.report-desc {
    font-size: 14px;
    color: var(--paragraph-gray);
    line-height: 1.6em;
}

/* ===================================
   Team Page Styles
   =================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.team-member {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-photo {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.team-info {
    padding: 30px;
}

.team-name {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--black);
}

.team-role {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 500;
}

.team-bio {
    font-size: 14px;
    color: var(--paragraph-gray);
    line-height: 1.6em;
}

@media screen and (max-width: 991px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Videos Page Styles
   =================================== */

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.video-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    width: 100%;
    height: 300px;
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-content {
    padding: 30px;
}

.video-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 10px;
}

.video-desc {
    font-size: 14px;
    color: var(--paragraph-gray);
    line-height: 1.6em;
}

@media screen and (max-width: 991px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
/* Sidebar Styles */
.map-sidebar {
    position: fixed;
    right: -350px;
    top: 0;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.map-sidebar.open {
    right: 0;
}

.sidebar-header {
    padding: 20px;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
}

.close-sidebar-btn {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.close-sidebar-btn:hover {
    opacity: 0.8;
}

.sidebar-content {
    padding: 20px;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray);
}

.layer-control {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.layer-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.layer-option:hover {
    background: var(--light-gray);
}

.layer-option input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.layer-option span {
    font-size: 15px;
    color: var(--black);
}

.sidebar-text {
    font-size: 14px;
    color: var(--paragraph-gray);
    line-height: 1.6;
}

.sidebar-toggle-btn {
    position: fixed;
    right: 20px;
    top: 120px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
    font-size: 24px;
}

.sidebar-toggle-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.sidebar-toggle-btn.hidden {
    display: none;
}
    
.egm-cta-section {
        background: linear-gradient(135deg, #1b4d35 0%, #2e7d52 100%);
        border-radius: 16px;
        padding: 56px 48px;
        text-align: center;
        color: #fff;
        margin-top: 60px;
    }
    .egm-cta-section h2 {
        color: #fff;
        margin-bottom: 16px;
    }
    .egm-cta-section p {
        color: rgba(255,255,255,0.85);
        max-width: 560px;
        margin: 0 auto 32px;
        font-size: 16px;
        line-height: 1.6;
    }
    .egm-primary-btn {
        display: inline-block;
        background: #fff;
        color: #1b4d35;
        font-weight: 700;
        font-size: 15px;
        padding: 16px 36px;
        border-radius: 6px;
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
    }
    .egm-primary-btn:hover {
        background: #e8f4ed;
        color: #1b4d35;
    }
    .egm-secondary-link {
        display: inline-block;
        margin-left: 16px;
        color: rgba(255,255,255,0.9);
        font-size: 14px;
        text-decoration: underline;
    }
    .egm-secondary-link:hover { color: #fff; }
    @media (max-width: 479px) {
        .egm-cta-section { padding: 40px 24px; }
        .egm-secondary-link { margin-left: 0; margin-top: 12px; display: block; }
    }