/*---Global Styles & Variables---*/
:root {
  --primary: #0E576D;
  --secondary: #148BAB;
  --light: #EEEEEE;
  --header-height: 80px;
  --section-max-width: 1200px;
  --transition-speed: 0.3s;
  --transition-timing: cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
  --border-radius: 6px;
  --spacing-xs: 10px;
  --spacing-sm: 15px;
  --spacing-md: 20px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--secondary);
  color: var(--primary);
  max-width: 100%;
  overflow-x: hidden;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--section-max-width);
  margin: 0 auto;
  padding: 0 3%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/*---Header---*/
header {
  background-color: rgba(14, 87, 109, 1);
  color: var(--light);
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color var(--transition-speed) ease;
  will-change: background-color;
}

header.scrolled {
  background-color: rgba(14, 87, 109, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.logo-wrap .logo-img {
  height: 45px;
  width: auto;
  display: block;
}

nav#navbar {
  display: flex;
  gap: 35px;
  align-items: center;
}

nav#navbar a {
  color: var(--light);
  text-decoration: none;
  font-weight: 400;
  position: relative;
  padding: 5px;
  transition: color var(--transition-speed) ease,
              font-weight var(--transition-speed) ease;
}

nav#navbar a span {
  display: inline-block;
  transition: transform var(--transition-speed) ease;
}

header nav#navbar a:hover,
header nav#navbar a.active {
  color: var(--light);
  font-weight: 700;
  font-style: italic;
  text-decoration: underline;
}

header nav#navbar a:hover span,
header nav#navbar a.active span {
  transform: translateY(-2px);
  font-style: italic;
  text-decoration: underline;
}

/*---Mobile Menu Toggle---*/
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle .hamburger,
.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--light);
  border-radius: 2px;
  position: relative;
  transition: transform var(--transition-speed) ease,
              background-color var(--transition-speed) ease;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle .hamburger::before {
  top: -8px;
}

.menu-toggle .hamburger::after {
  top: 8px;
}

.menu-toggle.open .hamburger {
  background-color: transparent;
}

.menu-toggle.open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.open .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

@media screen and (max-width: 900px) {
  .menu-toggle {
      display: block;
  }

  nav#navbar {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      height: 100dvh; /* Dynamic viewport height for mobile */
      background: var(--primary);
      z-index: 999;
      transform: translateX(100%);
      transition: transform var(--transition-speed) ease-in-out,
                  opacity var(--transition-speed) ease-in-out;
      opacity: 0;
      pointer-events: none;
      overflow: hidden;
      padding: 0;
  }

  nav#navbar.active {
      transform: translateX(0);
      opacity: 1;
      pointer-events: auto;
  }

  .nav-links-wrapper {
      position: absolute;
      top: var(--header-height);
      bottom: 0;
      left: 0;
      right: 0;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: var(--spacing-md) 0 30px;
  }

  .nav-links-wrapper a {
      padding: var(--spacing-md);
      font-size: 24px;
      width: 100%;
      text-align: center;
      flex-shrink: 0;
  }
}

@media screen and (max-width: 480px) {
    .nav-links-wrapper a {
        padding: var(--spacing-sm);
        font-size: 20px;
    }
}

/*---Hero Section---*/
.hero {
    position: relative;
    height: 90vh;
    height: 90dvh;
    margin-top: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    overflow: hidden;
}

.hero .img-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero .img-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .img-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(9, 42, 55, 0.7), rgba(11, 140, 173, 1));
    z-index: 1;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 2525px;
    height: 80%;
    margin: 0 auto;
    background-color: rgba(14, 87, 109, 0.9);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 2;
}

.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    inset: 0;
    padding: 50px 50px 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 40%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.video-wrapper:hover .video-overlay {
    opacity: 1;
}

.hero-content {
    animation: fadeUp 1s ease-out;
}

.hero-content h1 {
    margin-bottom: var(--spacing-xs);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 600;
    color: var(--primary);
}

.hero-content p {
    max-width: 600px;
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 400;
    line-height: 1.6;
    color: var(--primary);
}

.video-controls {
    position: absolute;
    bottom: 50px;
    right: 50px;
    display: flex;
    gap: var(--spacing-sm);
}

.control-btn {
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    overflow: hidden;
    transition: background-color var(--transition-speed) ease,
                transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.control-btn:hover {
    background-color: var(--secondary);
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .hero {
        height: 85vh;
        height: 85dvh;
    }

    .video-wrapper {
        width: 98%;
        height: 88%;
    }

    .video-overlay {
        padding: 25px 25px 90px;
        background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, transparent 80%);
    }

    /* Touch device support */
    .video-wrapper:active .video-overlay {
        opacity: 1;
    }

    .video-controls {
        bottom: 25px;
        right: 25px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 80vh;
        height: 80dvh;
    }

    .video-wrapper {
        width: 100%;
        height: 90%;
    }
}

@media (min-width: 1600px) {
    .hero {
        height: 92vh;
        height: 92dvh;
    }

    .hero video {
        object-fit: cover;
    }

    .video-wrapper {
        width: 92%;
    }
}

/*---Numbers Section---*/
.numbers-bg {
    padding: 52px clamp(20px, 3vw, 120px);
}

.numbers-container {
    max-width: 2525px;
    background: var(--light);
    padding: var(--spacing-xl);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.numbers-title {
    padding-left: 5%;
    font-weight: 600;
    font-size: clamp(30px, 5vw, 50px);
    color: var(--light);
    margin: 50px 0 var(--spacing-md);
}

.numbers-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.numbers-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-xs);
}

.numbers-item h2 {
    font-size: clamp(60px, 10vw, 90px);
    font-weight: 900;
    line-height: 1;
    color: var(--primary);
}

.numbers-item p {
    font-size: clamp(20px, 4vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
}

.divider {
    width: 3px;
    height: 100px;
    background-color: var(--primary);
    flex-shrink: 0;
    transition: width var(--transition-speed) ease,
                height var(--transition-speed) ease;
}

@media (max-width: 1200px) {
    .numbers-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .divider {
        width: 60%;
        height: 2px;
    }
}

@media (max-width: 1150px) {
    .numbers-container {
        padding: var(--spacing-lg) 4%;
    }
}

@media (max-width: 900px) {
    .numbers-item {
        gap: 5px;
    }
}

@media (max-width: 768px) {
    .numbers-bg {
        padding: 30px var(--spacing-md);
    }

    .numbers-container {
        padding: 30px var(--spacing-md);
    }

    .numbers-title {
        padding-left: 0;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .numbers-item h2 {
        font-size: clamp(42px, 10vw, 60px);
    }

    .numbers-item p {
        font-size: clamp(16px, 4vw, 22px);
    }
}

@media (max-width: 480px) {
    .numbers-container {
        padding: 25px 3%;
        border-radius: 0;
        box-shadow: none;
    }

    .divider {
        width: 80%;
    }
}

/*---Best Section---*/
.best-section {
    padding: 52px clamp(20px, 3vw, 120px);
    background: var(--secondary);
    display: flex;
    justify-content: center;
}

.best-box {
    width: 100%;
    max-width: 2525px;
    padding: var(--spacing-xl);
    background: var(--primary);
    color: var(--light);
}

.best-title-wrapper {
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.best-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
}

.best-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
}

.best-description {
    max-width: 800px;
    margin-bottom: 50px;
    font-size: clamp(15px, 2vw, 16px);
    line-height: 1.4;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    min-width: 0;
    text-align: left;
    cursor: pointer;
}

.card .img-wrapper {
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    border-radius: var(--border-radius);
    background-color: var(--primary);
}

.card img {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
    will-change: transform;
    transition: transform var(--transition-speed) var(--transition-timing),
                box-shadow var(--transition-speed) var(--transition-timing);
}

.card:hover img {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.card h3 {
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 400;
    color: var(--light);
}

@media (max-width: 1150px) {
    .best-box {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 900px) {
    .cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }

    .card img {
        height: 160px;
    }
}

/* iPad Air and iPad Mini specific styles */
@media only screen
  and (min-width: 768px)
  and (max-width: 820px)
  and (-webkit-min-device-pixel-ratio: 2) {
    .card h3 {
      font-size: 16px;
      text-align: initial;
  }
}

/* iPad Air (landscape) */
@media only screen
  and (min-width: 1024px)
  and (max-width: 1180px)
  and (orientation: landscape)
  and (-webkit-min-device-pixel-ratio: 2) {
    .card h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .best-section {
        padding: 30px var(--spacing-md);
    }

    .best-box {
        padding: 30px var(--spacing-md);
    }

    .cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--spacing-md);
    }

    .card {
        text-align: center;
    }

    .card img {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .best-box {
        padding: 25px;
        border-radius: 0;
    }

    .best-title-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }

    .best-description {
        margin-bottom: 30px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .card img {
        height: 180px;
    }
}

/*---Difference Section---*/
.difference {
    padding: 80px 3%;
}

.difference h2 {
    font-size: clamp(28px, 4vw, 32px);
    margin-bottom: 80px;
    color: var(--light);
    text-align: left;
}

.difference-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--spacing-lg);
}

.difference-card {
    position: relative;
    background: var(--light);
    padding: 80px 35px var(--spacing-lg);
    flex: 1;
    min-width: 250px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-speed) var(--transition-timing),
                box-shadow var(--transition-speed) var(--transition-timing);
    will-change: transform;
}

.difference-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.circle {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 8px solid var(--light);
}

.circle img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.difference-card h3 {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 600;
    color: var(--primary);
}

.difference-card p {
    margin-top: 0;
    font-size: 18px;
    font-weight: 498;
    color: var(--secondary);
    line-height: 1.6;
}

@media (min-width: 821px) and (max-width: 1024px) {
    .difference-card {
        flex-basis: calc(33.333% - 27px);
    }
}

@media (min-width: 768px) and (max-width: 820px) {
    .difference-cards {
        flex-direction: column;
        align-items: center;
        gap: 80px;
    }

    .difference-card {
        width: 100%;
        max-width: 700px;
        flex: 0 1 auto;
    }
}

@media (max-width: 767px) {
    .difference h2 {
        text-align: center;
    }

    .difference-cards {
        flex-direction: column;
        align-items: center;
        gap: 80px;
        padding-right: 10px;
        padding-left: 10px;

    }

    .difference-card {
        max-width: 400px;
        width: 100%;
        flex: 0 1 auto;
    }
}

/*---Animations---*/
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-scroll] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1),
                transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

[data-scroll="in"] {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.best-section .card:nth-child(2),
.difference-cards .difference-card:nth-child(2) {
    transition-delay: 0.1s;
}

.best-section .card:nth-child(3),
.difference-cards .difference-card:nth-child(3) {
    transition-delay: 0.2s;
}

.best-section .card:nth-child(4) {
    transition-delay: 0.3s;
}

/*---Utility Classes---*/
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/*--------------------------------------------------------------*/
/*---About Us Hero Section---*/
.about-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58vh;
    padding: 0 clamp(20px, 5vw, 120px);
    color: var(--light);
    overflow: hidden;
}

.about-hero .img-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.about-hero .img-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(9, 42, 55, 0.03), #0E576D);
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin-top: 250px;
}

.about-hero-content h1 {
    font-size: clamp(28px, 6vw, 70px);
    font-weight: 600;
    margin-bottom: 30px;
}

.about-hero-content p {
    font-size: clamp(15px, 2vw, 23px);
    line-height: 1.3;
    font-weight: 420;
    margin-bottom: 40px;
}

/*---Journey/Timeline Section---*/
.journey-section {
    padding: 20px clamp(20px, 5vw, 120px) 50px;
    position: relative;
    z-index: 2;
}

.journey-container {
    background-color: var(--light);
    max-width: 2250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 80px;
    padding: 60px;
}

.journey-content h2,
.timeline-wrapper h2 {
    font-size: clamp(25px, 4vw, 40px);
    color: var(--primary);
    margin-bottom: 25px;
}

.journey-content p {
    color: var(--primary);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 420;
    line-height: 1.5;
}

.journey-content p:last-of-type {
    margin-top: 20px;
}

/*---Timeline Structure---*/
.timeline-item {
    position: relative;
    padding-left: 35px;
    padding-bottom: 50px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 14px;
    height: 100%;
    width: 3px;
    background-color: var(--primary);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    z-index: 2;
    background-color: var(--light);
    border: 3px solid var(--secondary);
}

.timeline-item h3 {
    color: var(--primary);
    font-weight: 600;
    font-size: clamp(16px, 2.5vw, 25px);
    margin-bottom: 8px;
}

.timeline-item p {
    color: var(--secondary);
    font-size: clamp(14px, 2vw, 20px);
    line-height: 1.5;
}

/*---What We Stand For Section---*/
.stand-for-section {
    padding: 0 clamp(20px, 5vw, 120px) 30px;
    max-width: 2525px;
    margin: 0 auto;
}

.stand-for-section > h2 {
    font-size: clamp(30px, 4vw, 35px);
    color: var(--light);
    margin-bottom: 35px;
}

/*---Accordion Shared Styles---*/
.accordion-desktop .accordion-toggle,
.accordion-mobile .accordion-toggle {
    width: 28px;
    height: 28px;
    background-color: var(--light);
    border-radius: 2px;
    border: none;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-desktop .accordion-toggle::before,
.accordion-desktop .accordion-toggle::after,
.accordion-mobile .accordion-toggle::before,
.accordion-mobile .accordion-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background-color: var(--primary);
    transform: translate(-50%, -50%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-desktop .accordion-toggle::after,
.accordion-mobile .accordion-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-desktop .accordion-content-wrapper,
.accordion-mobile .accordion-content-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-desktop .accordion-group.active .accordion-toggle::after,
.accordion-mobile .accordion-item.active .accordion-toggle::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.accordion-desktop .accordion-group.active .accordion-content-wrapper,
.accordion-mobile .accordion-item.active .accordion-content-wrapper {
    grid-template-rows: 1fr;
}

/*---Desktop Accordion---*/
.accordion-mobile {
    display: none;
}

.accordion-desktop .accordion-group {
    margin-bottom: 30px;
    background-color: var(--primary);
    overflow: hidden;
}

.accordion-desktop .accordion-group:last-child {
    margin-bottom: 0;
}

.accordion-desktop .accordion-header {
    display: flex;
    align-items: center;
    padding: 20px 49px;
    color: var(--light);
    cursor: pointer;
    user-select: none;
}

.accordion-desktop .header-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1 1 50%;
}

.accordion-desktop .accordion-icon {
    width: 40px;
    height: auto;
}

.accordion-flag.icon {
    width: 25px;
    height: auto;
}

.accordion-desktop .accordion-header h3 {
    font-size: 30px;
    font-weight: 520;
}

.accordion-desktop .accordion-toggle {
    margin-left: auto;
}

.accordion-desktop .accordion-content {
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0 46px;
    background-color: rgba(2, 63, 81, 1);
    color: var(--light);
    font-weight: 300;
    line-height: 1.7;
}

.accordion-desktop .accordion-content ul {
    list-style-type: '• ';
    padding-left: 0;
    margin-left: 0;
}

.accordion-desktop .accordion-group.active .accordion-content {
    padding-top: 25px;
    padding-bottom: 30px;
    transition: padding 0.3s 0.2s ease;
}

/*---Mobile Accordion---*/
.accordion-mobile .accordion-item {
    background-color: var(--primary);
    margin-bottom: 30px;
}

.accordion-mobile .accordion-item:last-child {
    margin-bottom: 0;
}

.accordion-mobile .accordion-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    color: var(--light);
    cursor: pointer;
    user-select: none;
}

.accordion-mobile .accordion-flag.icon {
    width: 20px;
    height: auto;
}

.accordion-mobile .accordion-icon {
    width: 30px;
    height: auto;
}

.accordion-mobile .accordion-header h3 {
    font-size: clamp(15.5px, 3vw, 20px);
    font-weight: 540;
    margin-right: auto;
    padding-left: 5px;
}

.accordion-mobile .accordion-content-inner {
    overflow: hidden;
    padding: 0 40px;
    color: var(--light);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    background-color: rgba(2, 63, 81, 1);
}

.accordion-mobile .accordion-item.active .accordion-content-inner {
    padding-top: 25px;
    padding-bottom: 25px;
}

/*---Responsive Styles---*/

/* 4K and Ultra-Wide Screens (2560px and above) */
@media (min-width: 2560px) {
    .about-hero {
        min-height: 65vh;
        padding: 0 clamp(120px, 8vw, 200px);
    }

    .about-hero-content {
        max-width: 900px;
        margin-top: 300px;
    }

    .about-hero-content h1 {
        font-size: clamp(70px, 5vw, 90px);
        margin-bottom: 40px;
    }

    .about-hero-content p {
        font-size: clamp(23px, 1.8vw, 28px);
        line-height: 1.4;
        margin-bottom: 50px;
    }

    .journey-section {
        padding: 30px clamp(120px, 8vw, 200px) 70px;
    }

    .journey-container {
        max-width: 2800px;
        gap: 100px;
        padding: 80px;
    }

    .journey-content h2,
    .timeline-wrapper h2 {
        font-size: clamp(40px, 3vw, 50px);
        margin-bottom: 30px;
    }

    .journey-content p {
        font-size: clamp(20px, 1.5vw, 24px);
        line-height: 1.6;
    }

    .timeline-item {
        padding-left: 45px;
        padding-bottom: 60px;
    }

    .timeline-item::before {
        width: 20px;
        height: 20px;
        border-width: 4px;
    }

    .timeline-item:not(:last-child)::after {
        left: 9px;
        top: 18px;
        width: 4px;
    }

    .timeline-item h3 {
        font-size: clamp(25px, 2vw, 30px);
        margin-bottom: 10px;
    }

    .timeline-item p {
        font-size: clamp(20px, 1.5vw, 24px);
        line-height: 1.6;
    }

    .stand-for-section {
        padding: 0 clamp(120px, 8vw, 200px) 40px;
        max-width: 3000px;
    }

    .stand-for-section > h2 {
        font-size: clamp(35px, 3vw, 45px);
        margin-bottom: 45px;
    }

    .accordion-desktop .accordion-group {
        margin-bottom: 40px;
    }

    .accordion-desktop .accordion-header {
        padding: 25px 60px;
    }

    .accordion-desktop .accordion-icon {
        width: 50px;
    }

    .accordion-flag.icon {
        width: 30px;
    }

    .accordion-desktop .accordion-header h3 {
        font-size: 36px;
    }

    .accordion-desktop .accordion-toggle {
        width: 32px;
        height: 32px;
    }

    .accordion-desktop .accordion-toggle::before,
    .accordion-desktop .accordion-toggle::after {
        width: 16px;
    }

    .accordion-desktop .accordion-content {
        padding: 0 57px;
        font-size: 18px;
        line-height: 1.8;
    }

    .accordion-desktop .accordion-group.active .accordion-content {
        padding-top: 30px;
        padding-bottom: 40px;
    }
}

/* Large Desktop Screens (1920px to 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .about-hero {
        min-height: 60vh;
    }

    .about-hero-content {
        max-width: 750px;
    }

    .about-hero-content h1 {
        font-size: clamp(60px, 5vw, 75px);
    }

    .about-hero-content p {
        font-size: clamp(20px, 1.8vw, 25px);
    }

    .journey-container {
        padding: 70px;
        gap: 90px;
    }

    .accordion-desktop .accordion-header {
        padding: 22px 52px;
    }

    .accordion-desktop .accordion-header h3 {
        font-size: 32px;
    }

    .accordion-desktop .accordion-content {
        padding: 0 50px;
        font-size: 17px;
    }
}

@media (max-width: 1280px) {
    .about-hero {
        align-items: center;
        min-height: 80vh;
    }

    .about-hero-content {
        margin-top: 0;
    }
}

@media (max-width: 1024px) {
    .about-hero-content {
        margin-top: 150px;
    }

    .about-hero-content h1 {
        margin-bottom: 25px;
    }

    .about-hero-content p {
        line-height: 1.3;
        font-weight: 480;
    }

    .stand-for-section > h2 {
        margin-bottom: 30px;
    }

    .journey-container {
        margin-top: 40px;
    }
}

@media (max-width: 900px) {
    .about-hero-content p {
        line-height: 1.3;
        font-weight: 480;
    }

    .about-hero::before {
        background: linear-gradient(to bottom, rgba(9, 42, 55, 0.2), #0E576D);
    }

    .accordion-desktop {
        display: none;
    }

    .accordion-mobile {
        display: block;
    }

    .journey-container {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 30px;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        min-height: 45vh;
    }

    .about-hero-content {
        margin-top: 80px;
        max-width: 100%;
    }

    .about-hero-content h1 {
        margin-bottom: 20px;
    }

    .about-hero-content p {
        line-height: 1.3;
        font-weight: 480;
    }

    .about-hero::before {
        background: linear-gradient(to bottom, rgba(9, 42, 55, 0.35), #0E576D);
    }

    .stand-for-section > h2 {
        margin-bottom: 25px;
    }

    .journey-container {
        margin-top: 30px;
    }
}

@media (max-width: 640px) {
    .about-hero {
        min-height: 70vh;
    }
}

@media (max-width: 480px) {
    .about-hero {
        min-height: 50vh;
    }

    .about-hero-content {
        margin-top: 50px;
    }

    .about-hero-content h1 {
        margin-bottom: 15px;
        margin-top:35px;
    }

    .about-hero-content p {
        line-height: 1.4;
        font-weight: 480;
        margin-bottom: 30px;
    }

    .about-hero::before {
        background: linear-gradient(to bottom, rgba(9, 42, 55, 0.45), #0E576D);
    }

    .stand-for-section > h2 {
        margin-bottom: 20px;
    }

    .journey-container {
        margin-top: 20px;
    }
}

@media (max-width: 380px) {
    .about-hero {
        min-height: 65vh;
    }
}

@media (max-width: 320px) {
    .accordion-mobile .accordion-header {
        min-height: 80px;
    }

    .accordion-mobile .accordion-header h3 {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* -------------------------------------------------------- */
/* ---Services Page--- */
.services-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 58vh;
  padding-top: var(--header-height);
  position: relative;
}

.services-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.services-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, rgba(14, 87, 109, 0.03), #0E576D);
  z-index: 1;
}
.hero-content-box {
  position: relative;
  z-index: 2;
  background-color: var(--light);
  color: var(--primary);
  padding: 40px 50px;
  max-width: 2525px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-top: 5vh;
}
.hero-content-box h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 3px;
}
.hero-content-box .hero-subtitle {
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
}
.hero-content-box h2 {
  font-size: 25px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 10px;
}

/* --- Industries We Serve Section --- */
.industries-container {
  position: relative;
  z-index: 2;
  background-color: var(--secondary);
  padding: 50px;
  max-width: 2525px;
  width: 90%;
  margin: 4vh auto;
}
.industries-container .section-header {
  margin-bottom: 40px;
}
.industries-container .section-header h2 {
    color: var(--light);
    font-weight: 510;
    font-size: clamp(25px, 5vw, 48px);
}
.industries-container .section-header p {
    color: var(--light);
    font-size: 20px;
    font-weight: 450;
}

.industries-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 6vw, 100px);
}
.industry-item {
  color: var(--light);
  flex-basis: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.industry-icon {
  width: 100px;
  height: 100px;
  border: 3px solid var(--light);
  border-radius: 50%;
  margin: 0 auto 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.industry-icon img {
  height: 35px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.industry-item:hover .industry-icon {
  background-color: var(--primary);
  transform: scale(1.1);
}
.industry-item:hover .industry-icon img {
  filter: none;
  transform: scale(1.1);
}
.industries-grid .industry-item:nth-child(8) p {
  white-space: nowrap;
}

/* --- Production Program Section --- */
.production-section {
  padding: 100px 5%;
  background-color: var(--secondary);
}
.production-container {
  max-width: 2525px;
  margin: 0 auto;
}
.production-container .section-header h2 {
    color: var(--light);
    font-weight: 510;
    font-size: clamp(25px, 5vw, 30px);
    padding-left: 30px; padding-bottom:30px;
}
.production-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 30px;
  column-gap: 30px;
}
.production-card {
  display: flex;
  flex-direction: column;
  background-color: var(--primary);
  overflow: hidden;
}
.card-content {
  background-color: var(--primary);
  color: #eeeeee;
  padding: 30px;
  flex-grow: 1;
}
.production-card img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {
  .production-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .production-grid {
    grid-template-columns: 1fr;
  }
  .industries-container .section-header { text-align: center; }
  .industries-container .section-header p { margin: 0 auto; }
}

/*--------------------------------------------------------------*/
/*----- Micro-Animations & Hover Effects-----*/
a, button {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
a:hover, button:hover {
  opacity: 0.9;
}

.best-section .card {
  transition: transform 0.4s ease;
}
.best-section .card:hover {
  transform: translateY(-5px);
}

.difference-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.production-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.production-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.production-card img {
  transition: transform 0.6s ease;
}
.production-card:hover img {
  transform: scale(1.03);
}

.timeline-item::before {
  transition: transform 0.3s ease;
}
.timeline-item:hover::before {
  transform: scale(1.4);
}

.social-icons a {
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.social-icons a:hover {
  transform: translateY(-3px) scale(1.1);
}

/*--------------------------------------------------------------*/
/*------------Certifications Page ---------*/
.cert-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 90vh;
    padding: 140px 5% 80px;
    color: #eeeeee;
    overflow: hidden;
}

.cert-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.cert-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(9, 42, 55, 0.3), #0E5D6E);
    z-index: 1;
    transition: background 0.5s ease;
}

.cert-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-bottom: 50px;
}

.cert-hero-content h1 {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 600;
    line-height: 1.2;
    margin-top: 25px;
    margin-bottom: 25px;
}

.cert-hero-content p {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    font-weight: 300;
    max-width: 800px;
}

.cert-hero-content p:last-of-type {
    margin-top: 1em;
    margin-bottom: 1em;
}

/* ISO Container */
.iso-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 2525px;
}

.iso-container h2 {
    font-size: clamp(28px, 4vw, 32px);
    font-weight: 600;
    color: var(--light);
    margin-bottom: 30px;
}

.iso-logos-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background-color: var(--light);
    padding: 40px;
    border-radius: 4px;
}

.iso-logo-item {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.iso-logo-item:hover {
    transform: translateY(-8px) scale(1.08);
}

.iso-logo-item img {
    max-height: 250px;
    width: auto;
    display: block;
}

/* Certificate Details Section */
.cert-details-section {
    padding: 80px 5%;
    background-color: var(--secondary);
}

.cert-details-container {
    max-width: 2525px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    align-items: flex-start;
}

.cert-card {
    color: #eeeeee;
}

.cert-image {
    background-color: var(--primary);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
}

.cert-image:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.cert-card img {
    width: 100%;
    height: auto;
    display: block;
}

.cert-card h3 {
    font-size: clamp(20px, 2.5vw, 22px);
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.cert-card p {
    font-size: clamp(13px, 1.5vw, 14px);
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.9;
}

/* Why It Matters Section */
.why-matters-section {
    padding: 80px 5%;
    background-color: var(--secondary);
}

.why-matters-container {
    max-width: 2525px;
    margin: 0 auto;
    background-color: var(--primary);
    color: var(--light);
    padding: 60px;
    border-radius: 4px;
}

.why-matters-container h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 40px;
}

.why-matters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.why-matters-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease;
}

.why-matters-item:hover {
    transform: translateY(-5px);
}

.item-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 2px solid var(--light);
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    margin-top: 5px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.why-matters-item:hover .item-number {
    background-color: var(--light);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
}

.why-matters-item p {
    padding-top: 6.8px;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    font-weight: 300;
}


 /*----------RESPONSIVE STYLES----------*/

@media (max-width: 1200px) {
    .why-matters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .cert-hero {
        padding: 120px 5% 60px;
    }

    .cert-details-container {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 50px;
    }

    /* Darker gradient for tablets */
    .cert-hero::before {
        background: linear-gradient(to bottom, rgba(9, 42, 55, 0.5), rgba(14, 93, 110, 0.95));
    }
}

@media (max-width: 768px) {
    .cert-hero {
        text-align: left;
        align-items: flex-start;
        padding: 100px 5% 50px;
        min-height: 85vh;
    }

    .cert-hero-content h1 {
        font-size: 34px;
        margin-top: 15px;
        margin-bottom: 20px;
    }

    .cert-hero-content p {
        font-size: 16px;
        line-height: 1.5;
    }

    /* Much darker gradient for mobile */
    .cert-hero::before {
        background: linear-gradient(to bottom, rgba(9, 42, 55, 0.7), rgba(14, 93, 110, 0.95));
    }

    .iso-container {
        margin-top: 30px;
    }

    .iso-container h2 {
        text-align: left;
        font-size: 26px;
    }

    .iso-logos-grid {
        padding: 25px;
        gap: 15px;
    }

    .iso-logo-item img {
        max-height: 150px;
    }

    .cert-details-section {
        padding: 60px 5%;
    }

    .cert-details-container {
        max-width: 100%;
        gap: 40px;
    }

    .why-matters-section {
        padding: 60px 5%;
    }

    .why-matters-container {
        padding: 40px 25px;
    }

    .why-matters-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .item-number {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .cert-hero {
        padding: 90px 4% 40px;
    }

    .cert-hero::before {
        background: linear-gradient(to bottom, rgba(9, 42, 55, 0.8), rgba(14, 93, 110, 0.98));
    }

    .cert-hero-content {
        margin-bottom: 35px;
    }

    .iso-logos-grid {
        padding: 20px 15px;
        flex-direction: column;
    }

    .iso-logo-item img {
        max-height: 120px;
    }

    .why-matters-container {
        padding: 30px 20px;
    }

    .cert-image {
        padding: 15px;
    }
}

/* =======================================
   Archive Page & Lightbox
========================================== */
.archive-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 110px 5%;
  min-height: 50vh;
  /* background-image removed - now in HTML inline style */
  background-size: cover;
  background-position: center;
  color: #eeeeee;
}
.archive-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(9, 42, 55, 0.1), #0E576D);
}

.archive-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.archive-hero-content h1 {
  padding-top: 280px;
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.1;
}
.archive-hero-content .subtitle {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 500;
  margin: 15px 0;
}

.archive-main {
  padding: 80px 5%;
  background-color: var(--secondary);
}
.archive-container {
  max-width: 2525px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .archive-hero {
    min-height: 40vh;
  }
  .archive-hero::before {
    background: linear-gradient(to bottom, rgba(9, 42, 55, 0.4), #0E576D);
  }
  .archive-hero-content h1 {
    padding-top: 0;
  }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 40px;
  align-items: flex-end;
  margin-bottom: 50px;
  position: relative;
  z-index: 100;
}
.filter-group {
  flex-grow: 1;
}
.filter-group:nth-child(1) {
  flex-basis: 60%;
  min-width: 350px;
}
.filter-group:nth-child(2) {
  flex-basis: 30%;
  min-width: 200px;
}
.filter-group label {
  color: #eeeeee;
  font-size: 18px;
  margin-bottom: 10px;
  display: block;
}
.search-wrapper {
  display: grid;
  gap: 20px;
}
.search-wrapper:not(.single-filter) {
  grid-template-columns: 1fr 2fr;
}
.search-wrapper.single-filter {
  grid-template-columns: 1fr;
}
.input-with-icon {
  position: relative;
}
.input-with-icon input {
  padding-right: 50px;
}
.input-with-icon button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.input-with-icon button svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
  opacity: 0.7;
}

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  color: #eeeeee;
  gap: 20px;
  position: relative;
  z-index: 99;
}
.results-bar p {
  font-weight: 500;
}
.sort-by {
  display: flex;
  align-items: center;
  gap: 15px;
}
.sort-by label {
  font-weight: 500;
  color: var(--light);
  flex-shrink: 0;
}
.sort-by .custom-select-wrapper {
  width: 250px;
}

.search-wrapper input[type="text"],
.search-wrapper select,
.custom-select-trigger {
  width: 100%;
  height: 55px;
  padding: 14px 15px;
  border-radius: 4px;
  background-color: #eeeeee;
  font-size: 15px;
  color: var(--primary);
  border: 2px solid transparent;
  transition: border-color 0.2s ease, border-radius 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.custom-select-trigger {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.custom-select-wrapper .custom-select-trigger {
  padding-right: 40px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230E576D'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 15px center !important;
  background-size: 24px !important;
}

.search-wrapper input:focus,
.search-wrapper select:focus,
.custom-select-wrapper.active .custom-select-trigger {
  border-color: #0E576D;
  outline: none;
}

.custom-select-wrapper {
  position: relative;
  user-select: none;
  z-index: 10;
}
.custom-select-wrapper.active {
  z-index: 11;
}
.custom-select-wrapper.active .custom-select-trigger {
  border-radius: 4px 4px 0 0;
  border-color: #FFA500;
}
.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #eeeeee;
  border-radius: 0 0 4px 4px;
  border: 2px solid #0E576D;
  border-top: none;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease, visibility 0.3s ease;
}
.custom-select-wrapper.active .custom-options {
  opacity: 1;
  visibility: visible;
  max-height: 200px;
  overflow-y: auto;
}
.custom-option {
  display: block;
  padding: 12px 15px;
  color: var(--primary);
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.custom-option.selected {
  background-color: #0E576D;
  color: #eeeeee;
}
.custom-option:hover:not(.selected) {
  background-color: var(--secondary);
  color: #eeeeee;
}
.custom-select-trigger .arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230E576D'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.custom-select-wrapper.active .custom-select-trigger .arrow {
  transform: rotate(180deg);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 30px;
  transition: opacity 0.3s ease;
}
.archive-grid.searching {
  opacity: 0.5;
}
.archive-item {
  color: #eeeeee;
  transition: transform 0.3s ease;
}
.archive-item:hover {
  transform: translateY(-5px);
}
.archive-image {
  background-color: var(--primary);
  padding: 20px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.archive-item:hover .archive-image {
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.archive-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.archive-item h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 5px;
}
.archive-item p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.8;
}
.archive-tags a {
  color: #eeeeee;
  text-decoration: underline;
}
.archive-tags a:hover {
  color: var(--light);
}

.no-results-message {
  display: none;
  padding: 100px 20px;
  margin: 40px auto;
  max-width: 2300px;
  background-color: var(--primary);
  text-align: center;
  color: #eeeeee;
  border-radius: 4px;
}
.no-results-message h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.no-results-message p {
  opacity: 0.8;
  margin-bottom: 25px;
}
.no-results-message button {
  background-color: #eeeeee;
  color: var(--primary);
  border: none;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
}

.pagination {
  display: flex;
  margin-top: 30px;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.page-number, .page-arrow {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: #eeeeee;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border-radius: 4px;
  margin-bottom: 35px;
}
.page-number.active,
.page-number:hover,
.page-arrow:hover {
  background-color: #eeeeee;
  color: var(--primary);
}
.page-arrow.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.page-arrow.disabled:hover {
  background-color: var(--primary);
  color: #eeeeee;
}

.lightbox {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 87, 109, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 20px;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  font-size: 26px;
  background-color: var(--primary);
  border-radius: 50%;
  border: 2px solid white;
  color: #eeeeee;
  cursor: pointer;
  z-index: 2002;
  transition: transform 0.3s ease;
}
.lightbox-close:hover {
  transform: rotate(90deg);
}

.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 75vw;
  height: 80vh;
  max-width: 1200px;
}

.lightbox-content {
  display: flex;
  gap: 30px;
  flex: 1;
  min-width: 0;
  height: 100%;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.lightbox.active .lightbox-content {
  transform: scale(1);
}
.lightbox-image {
  flex: 1;
  min-width: 0;
  height: 100%;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.lightbox-details {
  background: var(--light);
  color: var(--primary);
  padding: 30px;
  width: 320px;
  flex-shrink: 0;
  overflow-y: auto;
  height: 100%;
}
.lightbox-details h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.lightbox-nav {
  background-color: transparent;
  border: none;
  width: 50px;
  height: 80px;
  cursor: pointer;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}
.lightbox-nav:hover {
  opacity: 1;
  transform: scale(1.1);
}
.lightbox-nav::before {
  content: '';
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}
.lightbox-nav.next::before {
  transform: rotate(180deg);
}
.lightbox-nav.prev::before {
  transform: rotate(0deg);
}

@media (min-width: 769px) {
  .filter-group:nth-child(1) .search-wrapper {
    grid-template-columns: 1fr 2fr;
  }
}

@media (max-width: 1024px) {
  .archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .lightbox-inner {
    width: 85vw;
    height: 85vh;
    gap: 10px;
  }
  .lightbox-image {
    flex-basis: 100%;
  }
  .lightbox-details {
    display: none;
  }
}

@media (max-width: 768px) {
  .filter-bar, .results-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .results-bar {
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 25px;
    margin-bottom: 25px;
  }
  .results-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(238, 238, 238, 0.2);
  }
  .search-wrapper,
  .search-wrapper:not(.single-filter) {
    grid-template-columns: 1fr;
  }
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-group,
  .filter-group:nth-child(1),
  .filter-group:nth-child(2) {
    min-width: 0;
  }
  .filter-bar .sort-by {
    display: grid;
    gap: 10px;
  }
  .sort-by .custom-select-wrapper {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   CONTACT US PAGE STYLES (FINAL & CORRECTED)
========================================================= */
/* ================================
   CONTACT HERO SECTION
================================ */
.cert-hero {
  padding: 190px 5%;
  min-height: 60vh;
  position: relative;
  color: #eeeeee;
  overflow: hidden;
}

.cert-hero img.contact-form {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.cert-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(9, 42, 55, 0.4), #0E576D);
}

.contact-hero-content,
.contact-info-grid {
  position: relative;
  z-index: 2;
  max-width: 2525px;
  margin: 0 auto;
}

.contact-hero-content {
  max-width: 800px;
  margin: 0 0 50px 0;
}

.contact-hero h1 {
  white-space: nowrap;
  font-size: clamp(32px, 5vw, 75px);
  line-height: 1.1;
  margin-bottom: 25px;
  font-weight: 600;
}

.contact-hero h2 {
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 500;
  margin-bottom: 15px;
  color: var(--light);
  opacity: 0.95;
  line-height: 1.4;
}

.contact-hero-content p {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.7;
  opacity: 0.9;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.info-item h3 {
  font-size: clamp(20px, 2vw, 22px);
  margin-bottom: 10px;
  font-weight: 600;
}

.info-item p {
  font-size: clamp(14px, 1.5vw, 15px);
  line-height: 1.7;
  opacity: 0.9;
}

/* ================================
   CONTACT FORM SECTION
================================ */
.contact-form-section {
  padding: 90px 5%;
  background-color: var(--secondary);
}

.form-container {
  max-width: 2525px;
  margin: 0 auto;
  padding: 60px;
  background-color: var(--primary);
  color: #eeeeee;
  border-radius: 8px;
}

.form-container > h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-container > p {
  opacity: 0.85;
  margin-bottom: 40px;
  font-size: clamp(14px, 1.5vw, 16px);
}

/* Form Grid Layout */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 20px 40px;
  align-items: flex-start;
}

.form-col-1,
.form-col-2,
.form-col-3 {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-col-3 {
  height: 100%;
}

.message-group {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.message-group textarea {
  flex-grow: 1;
  min-height: 200px;
}

/* Form Elements */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 500;
  font-size: clamp(14px, 1.5vw, 15px);
}

.form-group label span {
  font-weight: 300;
  opacity: 0.7;
}

.form-group input,
.form-group textarea {
  background-color: #0B475A;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 14px 15px;
  color: #e2e2e2;
  font-size: clamp(14px, 1.5vw, 15px);
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(226, 226, 226, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--light);
  box-shadow: 0 0 8px rgba(238, 238, 238, 0.4);
  background-color: #0D5168;
}

.form-group textarea {
  resize: none;
  overflow-y: auto;
  line-height: 1.6;
}

/* Form Footer */
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-column: 1 / -1;
  margin-top: 10px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--light);
}

.checkbox-group label {
  cursor: pointer;
  font-size: clamp(14px, 1.5vw, 15px);
}

.submit-btn {
  background-color: var(--light);
  color: var(--primary);
  border: none;
  padding: 14px 40px;
  font-size: clamp(15px, 1.5vw, 16px);
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(238, 238, 238, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Form Status Messages */
#form-status {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  display: none;
  font-size: clamp(14px, 1.5vw, 15px);
}

#form-status.success {
  background-color: #2E7D32;
  color: #eeeeee;
  display: block;
}

#form-status.error {
  background-color: #C62828;
  color: #eeeeee;
  display: block;
}

/* ================================
   LOCATION SECTION
================================ */
.location-section {
  padding: 60px 5% 0;
  background-color: var(--secondary);
}

.location-container {
  max-width: 2525px;
  margin: 0 auto;
}

.location-section .section-header {
  margin-bottom: 15px;
  color: #eeeeee;
}

.location-section .section-header h2 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.2;
}

.location-section .section-header p {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 300;
  opacity: 0.9;
  max-width: 700px;
  line-height: 1.6;
}

/* Map Wrapper */
.map-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 4;
  overflow: hidden;
  border: none;
  margin: 30px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Location Grid */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.location-item {
  background-color: var(--primary);
  padding: 25px;
  color: #eeeeee;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: left;
}

.location-item:hover {
  background-color: #0B475A;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.location-item img {
  height: 30px;
  width: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.location-item span {
  font-size: clamp(14px, 1.5vw, 15px);
  line-height: 1.5;
}

/* ================================
   SCHEDULE SECTION
================================ */
.schedule-section {
  padding: 90px 5% 100px;
  background-color: var(--secondary);
}

.schedule-container {
  max-width: 2525px;
  margin: 0 auto;
  color: #eeeeee;
  text-align: left;
}

.schedule-container h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.schedule-container .subtitle {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  max-width: 700px;
  opacity: 0.9;
  margin-bottom: 15px;
}

.schedule-container .note {
  font-style: italic;
  opacity: 0.8;
  font-size: clamp(14px, 1.5vw, 15px);
  margin-bottom: 30px;
}

.schedule-items-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: var(--primary);
  padding: 20px 30px;
  transition: all 0.3s ease;
}

.schedule-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.schedule-item p {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 500;
  color: #eeeeee;
  margin: 0;
}

.schedule-item img {
  height: 30px;
  width: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ================================
   RESPONSIVE DESIGN
================================ */

/* Tablets and Small Desktops */
@media (max-width: 1024px) {
  .cert-hero {
    padding: 140px 5%;
  }
  
  .contact-form {
    grid-template-columns: 1fr 1fr;
  }
  
  .form-col-3 {
    grid-column: 1 / -1;
  }
}

/* Tablets */
@media (max-width: 900px) {
  .cert-hero {
    padding: 120px 5%;
    min-height: auto;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .form-container {
    padding: 40px;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .map-wrapper {
    aspect-ratio: 16 / 9;
  }
  
  .schedule-section {
    padding: 70px 5% 80px;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .cert-hero {
    padding: 100px 5%;
  }
  
  .location-section .section-header,
  .schedule-container {
    text-align: center;
  }
  
  .location-section .section-header p,
  .schedule-container .subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .form-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .submit-btn {
    width: 100%;
    text-align: center;
  }
  
  .location-grid {
    grid-template-columns: 1fr;
  }
  
  .location-item {
    justify-content: flex-start;
  }
  
  .schedule-items-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .schedule-item {
    justify-content: center;
  }
  
  .schedule-container h2 {
    white-space: nowrap;
    font-size: 32px;
  }
}

/* Small Mobile Devices */
@media (max-width: 500px) {
  .contact-hero {
    padding: 80px 5%;
  }
  
  .contact-hero h1 {
    white-space: normal;
    font-size: 36px;
  }
  
  .contact-hero h2 {
    font-size: 18px;
  }
  
  .form-container {
    padding: 25px 20px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 12px;
  }
  
  .schedule-container h2 {
    white-space: normal;
  }
  
  .location-section {
    padding: 40px 5% 0;
  }
  
  .schedule-section {
    padding: 50px 5% 60px;
  }
}

/* ===============================
   FOOTER
================================== */
.footer {
    display: flex;
    background-color: var(--primary);
    color: #eeeeee;
    padding: 50px 5%;
    flex-wrap: wrap;
    gap: 45px;
}
.footer-section { padding: 0; }
.footer-section.logo+.footer-section { margin-left: auto; }
.footer-section.logo { flex-shrink: 0; }
.footer-section h3 { font-size: 18px; margin-bottom: 20px; font-weight: 600; }
.footer .logo-img { width: 180px; margin-bottom: 20px; }
.social-icons { display: flex; gap: 15px; }
.social-icons img { width: 25px; height: 25px; }
.social-icons a:hover img { transform: scale(1.2); }
.social-icons a:active img { transform: scale(1.1); }
.footer-section p { display: flex; align-items: flex-start; margin-bottom: 15px; gap: 12px; }
.footer-section .icon img { width: 22px; height: 22px; margin-top: 2px; }
.footer-section .text { font-size: 15px; line-height: 1.6; }
.footer a.contact-link {
    display: flex; align-items: flex-start; margin-bottom: 15px; gap: 12px;
    color: #eeeeee; text-decoration: none; transition: opacity 0.3s ease;
}
.footer a.contact-link:hover { opacity: 0.8; }
.footer-section.schedule, .footer-section.contact {
    position: relative; padding-left: 45px;
}
.footer-section.schedule::before, .footer-section.contact::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0;
    width: 2px; background-color: rgba(255, 255, 255, 0.2);
}
@media (max-width: 1150px) {
    .footer { gap: 40px 20px; }
    .footer-section { min-width: calc(50% - 10px); }
    .footer-section.logo+.footer-section { margin-left: 0; }
    .footer-section.schedule::before, .footer-section.contact::before { display: none; }
    .footer-section.schedule, .footer-section.contact { padding-left: 0; }
    .footer-section+.footer-section { border-top: 2px solid rgba(255, 255, 255, 0.2); padding-top: 40px; }
}
@media (max-width: 767px) {
    .footer { flex-direction: column; align-items: center; text-align: left; }
    .footer-section, .footer-section+.footer-section { width: 100%; max-width: 350px; min-width: unset; }
    .social-icons { justify-content: flex-start; }
    .logo-img { margin: 20px 0; }
    .footer-section p { justify-content: flex-start; }
}
