/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* ========================================
   PAGE LOADER (BLOCK: pex-loader)
   ======================================== */

.pex-loader {
  position: fixed;
  inset: 0;
  background: #112349;
  display: grid;
  place-items: center;
  z-index: 2000;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.pex-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pex-loader__inner {
  text-align: center;
}

.pex-loader__logo {
  width: 150px;
  max-width: 60vw;
  height: auto;
  display: block;
  margin: 0 50px 18px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.25));
}

.pex-loader__spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: #4a9fd8;
  animation: pex-spin 1s linear infinite;
}

@keyframes pex-spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   HEADER COMPONENT (BLOCK: pex-header)
   ======================================== */

.pex-header {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(17, 35, 73, 0.55), rgba(17, 35, 73, 0));
  box-shadow: none;
  transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

/* Added BEM modifier for sticky header state */
.pex-header--stuck {
  position: fixed !important;
  background: #112349 !important;
  padding: 10px 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}


.pex-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left, nav/burger right */
  max-width: 100%;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 1000;
}

/* =========================
   DESKTOP NAV
   ========================= */
.pex-header__nav {
  display: flex;
  align-items: center;
  margin-left: auto; /* push nav to the extreme right */
}

.pex-header__nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

/* Hide burger on desktop */
.menu-toggle {
  display: none;
}


.pex-header__logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pex-header__brand-mark {
  /*eight: 96px;
  width: auto;*/
  width:175px;height:70px;
  display: block;
  object-fit: contain;
  transition: height 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

/* Updated selector to use BEM modifier on parent */
.pex-header--stuck .pex-header__brand-mark {
  height: 56px;
}

.pex-header__nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.pex-header__nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}


.pex-header__nav-list a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pex-header__nav-list a:hover {
  opacity: 0.8;
}

/* Index-like hover underline for header nav */
.pex-header__nav-list a{ position: relative; }
.pex-header__nav-list a::after{
  content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background:#fff; transition:width .3s ease;
}
.pex-header__nav-list a:hover::after{ width:100%; }

/* Updated active link indicator to use BEM modifier */
.pex-header__nav-link--active {
  position: relative;
}

.pex-header__nav-link--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 3px;
  width: 44px;
  margin: auto;
  background: #ffffff;
  border-radius: 2px;
}

.pex-header__search-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: opacity 0.3s;
}

.pex-header__search-btn:hover {
  opacity: 0.8;
}

/* ========== CLEAN MOBILE MENU (RIGHT-SIDE DRAWER) ========== */

/* Burger icon */
.menu-toggle {
  display: none;
  font-size: 25px;
  cursor: pointer;
  padding: 0px 5px 0px;
  border: 1px solid #fff;
  border-radius: 6px;
  color: #fff;
  z-index: 2001;
}

/* MOBILE LAYOUT */
@media (max-width: 768px) {

  .pex-header__container {
    display: flex;
    justify-content: space-between; /* Logo left, burger right */
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }
  
  /* Hide desktop nav list */
  .pex-header__nav-list {
    display: flex; /* hidden initially via right:-260px */
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    right: -260px; /* hidden offscreen */
    height: calc(100% - 5px);
    width: 240px;
    background: rgba(17,35,73,0.6);
    padding: 24px; /* top padding for header height */
    gap: 18px;
    transition: right 0.4s ease;
    z-index: 2000;
  }

  .pex-header__nav-list.show {
    right: 0; /* slide in from right */
  }

  /* Show burger icon */
  .menu-toggle {
    display: block;
    z-index: 3000	; /* above nav drawer */
    font-size: 23px;
    cursor: pointer;
  }

  /* Optional: overlay behind drawer */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1999; /* below burger, above content */
  }

  .pex-header__nav-list li a {
    color: #fff;
    font-size: 1.1rem;
  }

}




/* ========================================
   HERO COMPONENT (BLOCK: hero)
   ======================================== */

.hero {
  background: linear-gradient(rgba(30, 58, 95, 0.7), rgba(30, 58, 95, 0.7)), url("../images/about/about-team-bg.jpg")
    center / cover;
  color: white;
  padding: 0 2rem;
  text-align: center;
  position: relative;
}

.hero__content {
  max-width: 1400px;
  margin: 0 auto;
  /* Align with live: tall hero on desktop, comfortable on mobile */
  padding-top: clamp(140px, 20vh, 320px);
  padding-bottom: 135px;
}

.hero__title {
  /* Live title is large and bold (~93px desktop) */
  font-size: clamp(2.5rem, 8vw, 5.8rem);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero__subtitle {
  /* Live subtitle is small uppercase with letter-spacing */
  font-size: 0.875rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.92;
}

/* ========================================
   ABOUT COMPONENT (BLOCK: about)
   ======================================== */

.about {
  background-color: #ffffff; /* Intro section is white on live */
  padding: 20px 0 0; /* Tighter gap to match live */
}

/* Muted/gray background variant for second text block */
.about--muted {
  background-color: #f6f6f6;
  padding: 70px 0 35px; /* Reduced to remove extra gap */
}

/* Compact spacing for the first (intro) block */
.about--compact {
  padding-top: 20px; /* Less space above text */
  padding-bottom: 0;
}

.about__container {
  max-width: 1200px; /* Align with site container */
  margin: 0 auto;
  padding: 0 2rem;
}


.about__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.5rem;
  text-align: left;
}

.about--compact .about__text { margin-bottom: 10px; }
.about--compact .about__mission-list { margin: 8px 0; }
.about--compact .about__mission-list li { margin-bottom: 8px; }
.about__container > .about__text:last-child { margin-bottom: 0; }
.about__col > .about__text:last-child { margin-bottom: 0; }
.about__mission-list:last-child { margin-bottom: 0; }



.about__mission-list {
  list-style: none;
  margin: 1rem 0; /* tighter gap like live */
  padding-left: 2rem;
}

.about__mission-list li {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  position: relative;
}

.about__mission-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #4a9fd8;
  font-weight: bold;
}

/* Gray block single narrow column, left-aligned */
.about--muted .about__container {
  display: block;
  max-width: 1200px;
}

/* Gray block typography like live */
.about--muted .about__text {
  font-size: 1.03rem;
  line-height: 1.8;
  margin-bottom: 14px;
  text-align: justify;
  
}
  

@media (max-width: 992px) { .about--muted .about__container { max-width: 92%; } }

@media (max-width: 768px) { .about--muted { padding: 50px 0 25px; } }



/* ========================================
   TEAM COMPONENT (BLOCK: team)
   ======================================== */

.team {
  padding: 4rem 2rem;
  background-color: white;
}

.team--management {
  background-color: #fafafa;
}

/* Board section decorative header background  */
.team--board {
  position: relative;
  margin: 30px 0 0 0;
  padding: 90px 2rem 10px; /* top/bottom  */
}

.team--board::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 350px; /* area for decorative graphic */
  background: url("../images/about/about-title-bg-team-1.png") no-repeat top center;
  background-size: auto;
  pointer-events: none;
  will-change: transform;
  transform: translateY(var(--parallax-board-y, 0px));
}

.team--board .team__container {
  position: relative;
  z-index: 1; /* ensure content overlays decorative bg */
}

@media (max-width: 768px) {
  .team--board {
    padding: 70px 1rem 10px;
  }
  .team--board::before {
    height: 150px;
    background-size: contain;
  }
}

.team__container {
  max-width: 1200px;
  margin: 0 auto;
}

.team__category {
  display: block;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team__title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 2.875rem); /* ~46px on desktop */
  color: #1e3a5f;
  margin-bottom: 3rem;
  font-weight: 600;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

/* ========================================
   TEAM CARD COMPONENT (BLOCK: team-card)
   ======================================== */

.team-card {
  text-align: center;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-card__image {
  width: 100%;
  max-width: 280px;
  height: 280px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.team-card:hover .team-card__image {
  filter: grayscale(0%);
}

.team-card__link {
  text-decoration: none;
  color: inherit;
}

.team-card__name {
  font-size: 1.3rem;
  color: #1e3a5f;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.team-card:hover .team-card__name {
  color: #4a9fd8;
}

.team-card__position {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.team-card__tag {
  display: inline-block;
  background-color: #f0f0f0;
  color: #666;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 400;
}

/* ========================================
   WHY SECTION (split layout)
   ======================================== */

.why {
  background: #ffffff;
  margin-bottom: 20px; /* add breathing room above logos */
}

.why__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-bottom: 35px;
}

.why__heading {
  text-align: center;
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: #1e3a5f;
  padding-top: 1rem;
}

.why__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.why__image {
  min-height: 360px;
  background: url("../images/about/shutterstock_417862237.jpg") center / cover no-repeat;
}

.why__content {
  padding: 85px 2rem 25px 60px;
}

.why__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 30px;
}

.why__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #112349, #112349);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 10px;
}

.why__title {
  font-size: 20px;
  font-weight: 600;
  color: #1e3a5f;
  margin: 0 0 6px 0;
}

.why__text {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
}


/* ========================================
   FOOTER COMPONENT (BLOCK: pex-footer)
   ======================================== */

.pex-footer {
  background: #2b2b2b;
  color: white;
  padding: 60px 0 0;
}

.pex-footer__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}



.pex-footer__column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: white;
}

.pex-footer__logo {
  width: 230px;
  margin-bottom: 20px;
}

.pex-footer__info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 14px;
  line-height: 1.8;
}

.pex-footer__info-item {
  display: flex;
  gap: 10px;
}

.pex-footer__info-item i {
  margin-top: 3px;
  flex-shrink: 0;
}

.pex-footer__info-item a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.pex-footer__info-item a:hover {
  opacity: 0.8;
}

.pex-footer__news {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pex-footer__news-item {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pex-footer__news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pex-footer__news-title {
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.pex-footer__news-title a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.pex-footer__news-title a:hover {
  opacity: 0.8;
}

.pex-footer__news-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.pex-footer__form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pex-footer__form input,
.pex-footer__form textarea {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 14px;
  border-radius: 3px;
}

.pex-footer__form input::placeholder,
.pex-footer__form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.pex-footer__form textarea {
  min-height: 100px;
  resize: vertical;
}

.pex-footer__form button {
  padding: 12px 30px;
  background: white;
  color: #2b2b2b;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 3px;
}

.pex-footer__form button:hover {
  background: #f0f0f0;
}

.pex-footer__partners {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.pex-footer__partners img {
  height: 50px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s;
  object-fit: contain;
}

.pex-footer__partners img:hover {
  opacity: 1;
}

.pex-footer__copyright {
  background: #1a1a1a;
  padding: 25px 0;
  margin-top: 40px;
}

.pex-footer__copyright-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.pex-footer__social {
  display: flex;
  gap: 15px;
}

.pex-footer__social a {
  color: white;
  font-size: 16px;
  transition: opacity 0.3s;
}

.pex-footer__social a:hover {
  opacity: 0.7;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .why__split {
    grid-template-columns: 1fr;
  }

  .why__content {
    padding: 40px 1.25rem 20px 1.25rem;
  }

  .why__image {
    min-height: 240px;
  }
 /* .pex-header__container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .pex-header__nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }*/

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__content {
    padding-top: 120px;
  }

  .team__grid,
  .features__grid {
    grid-template-columns: 1fr;
  }

  .about__container {
    padding: 0 1rem;
  }

  .pex-footer__copyright-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .team__title,
  .features__title {
    font-size: 2rem;
  }

  .about__logo {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    margin-bottom: 2rem;
  }
}
/* ========================================
   CAROUSEL for Executive Team
   ======================================== */

.carousel {
  position: relative;
}

.carousel__viewport {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel__item {
  flex: 0 0 calc(33.333% - 1.333rem); /* 3 per view minus gap compensation */
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 35, 73, 0.85);
  color: #fff;
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.carousel__btn--prev { left: -6px; }
.carousel__btn--next { right: -6px; }

.carousel__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #c9d3e6;
  cursor: pointer;
}

.carousel__dots button[aria-current="true"] {
  background: #1e3a5f;
}

@media (max-width: 1024px) {
  .carousel__item { flex-basis: calc(50% - 1rem); }
}

@media (max-width: 640px) {
  .carousel__item { flex-basis: 100%; }
  .carousel__btn--prev { left: 6px; }
  .carousel__btn--next { right: 6px; }
}

/* Logos carousel visuals */
.logos {
  background: #f6f6f6; /* light gray band */
  padding: 55px 0 45px; /* comfortable top/bottom spacing */
}

.logos__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.carousel--logos .carousel__item {
  flex: 0 0 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
}

.logos__img {
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.logos__img:hover { opacity: 1; }

/* Hide arrows for logos carousel */
.carousel--logos .carousel__btn { display: none !important; }

/* Slightly smaller dots and tighter spacing for logos */
.carousel--logos .carousel__dots { display: none !important; }

@media (max-width: 1024px) {
  .carousel--logos .carousel__item { flex-basis: 33.333%; }
}

@media (max-width: 640px) {
  .carousel--logos .carousel__item { flex-basis: 50%; }
}

.carousel--logos .carousel__track { padding-right: 8rem; }



/* =========================
      PARTNERS BY  SECTION
  ========================= */


  .partners-section {
    background:#fff;
    padding:40px 0;
    text-align:center;
    overflow:hidden; /* keep track from overflowing */
  }

  .partners-section h2 {
    color:#003399;
    font-size:2.2rem;
    margin-bottom:40px;
  }

  .partners-container {
    width:1270px;       /* wider container */
    max-width:90%;
    margin:auto;
    overflow:hidden;    /* hide scroll overflow */
    padding-top: 20px; /* container adjusts to logo size */
    padding-bottom: 20px;
  }

  .partners-track {
    display:flex;
    gap:175px;          /* increased gap */
    transition: transform var(--scroll-duration) ease-in-out;
  }

  .partners-item {
    flex: 0 0 auto;
    width:150px;        /* logo width */
    position: relative; /* allow hover scaling */
    z-index: 1;
  }

  .partners-item img {
    width:100%;
    display:block;
    filter:grayscale(30%);
    opacity:0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .partners-item:hover {
    z-index: 10;       /* hover above others */
  }

  .partners-item:hover img {
    transform:scale(1.15); /* slightly larger */
    opacity:1;
    filter:grayscale(0%);
  }

  @media (max-width:1024px){ .partners-item{width:150px;} }
  @media (max-width:768px){ .partners-item{width:120px; gap:50px;} }
  @media (max-width:480px){ .partners-item{width:100px;} .partners-section h2{font-size:1.6rem;} }
