/*
Theme Name: AB Starter
Theme URI: https://alonabrodsky.com
Author: Alona
Author URI: https://alonabrodsky.com
Description: Clean starter theme with ACF integration.
Version: 1.0
Text Domain: ab-acf-starter
*/

    :root {
      font-size: 20px;

      /* Colors */
      --primary-color: #FF4810;      /* accent like in design */
      --primary-hover: #FF4810;
      --secondary-color: #000000;
      --background: #ffffff;
      --text-primary: #000000;
      --text-secondary: #000000;

      /* Misc */
      --transition-fast: 0.25s ease;
      --transition-medium: 0.5s ease;

      --font-base: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-title: 'Libre Baskerville', 'Times New Roman', serif;
    }

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

    body {
      margin: 0;
     font-family: var(--font-base);
        sans-serif;
      background-color: var(--background);
      color: var(--text-primary);
      cursor: none; /* Hides the standard arrow/hand cursor */
      background: #F8F8F8;

    }

    h1, h2, h3, h4, h5, h6, .font-title {
  font-family: var(--font-title);
  font-weight: 400;
}
p, li, button {
      font-family: var(--font-base);
}
.fs-70 {
    font-size: 3.5rem;
    font-weight: 400;
}
.fs-50 {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.4;
}
.fs-22, .fs-22 p, .fs-22 li {
  font-size: 1.1rem;
  line-height: 1.54;
  font-weight: 300;
}

/* 1. The Dot Style */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 23px;
    height: 23px;
    background-color: var(--primary-color);
    border-radius: 50%;
    pointer-events: none; /* Critical: allows clicking through the dot */
    z-index: 9999999; 
    transform: translate(-50%, -50%); /* Centers the dot on the mouse */
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s;
    will-change: left, top, width, height;
}

/* 2. State: Enlarge on Hover */
.custom-cursor.hovered {
    width: 58px;  /* Size when hovering */
    height: 58px; /* Size when hovering */
    opacity: 0.8; /* Optional: slight transparency */
}
/* The style when over an orange background */
.custom-cursor.white-mode {
  background-color:#F8F8F8;
  border: 1px solid orange; /* Optional: keeps it visible if near the edge */
}

@media (max-width: 960px) {
  .custom-cursor {
    display: none;
  }
}
/* 3. Ensure Links/Buttons sit ON TOP of the dot (Behind Text effect) */
a, button, .btn-hero, .video-trigger {
    position: relative;
    z-index: 10000; /* Must be higher than .custom-cursor */
    cursor: none; /* Hides the standard arrow/hand cursor */
}
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 99999;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  
}

/* Чтобы контент не заезжал под хедер (подбери высоту под свой) */
.site-header-spacer {
  height: 4.5rem; /* или реальная высота хедера */
}

/* Когда проскроллили вниз */
.site-header.is-scrolled {
  background-color: #F8F8F8;
  box-shadow: 0 0.4rem 1.2rem rgba(15, 23, 42, 0.08);
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 7rem;
}

    .hero {
      min-height: 100vh;
      position: relative;
    }

    /* Top bar */
    .hero-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
     padding: 1.3rem 3.75rem;
      gap: 2rem;
    }

    .hero-logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-weight: 600;
      font-size: 1.1rem;
          width: 10rem;
    }
.hero-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}
    .hero-logo-mark {
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 50%;
      background: var(--primary-color);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 1.2rem;
      font-weight: 700;
      box-shadow: var(--shadow-soft);
      flex-shrink: 0;
    }

    .hero-nav ul {
      display: flex;
      justify-content: end;
      gap: 1.7rem;
      flex: 1;
      font-size: 0.8rem;
          list-style: none;
    margin: 0;
    padding: 0;
    }

    .hero-nav ul.sub-menu {
      display: none;
    position: absolute;
    flex-direction: column;
    gap: .5rem;
    border-radius: 0 0 20px 20px;
    background: #FFE9E9;
    padding: 1.5rem 2.25rem;
}

    .hero-nav a {
      text-decoration: none;
      color: var(--text-secondary);
      position: relative;
      padding-bottom: 0.25rem;
      transition: color var(--transition-fast);
    }

.hero-nav .menu-item-has-children:hover  ul.sub-menu {
display: flex;
}
    .hero-nav a:before {
    content: "";
    width: 0.2rem;
    height: 0.2rem;
    background: var(--primary-color);
    border-radius: 100%;
    position: absolute;
    left: -0.7rem;
    top: 0.5rem;
    }

    .hero-nav ul.sub-menu a:before,
    .hero-nav ul.sub-menu a:after {
      display: none;
    }

    .hero-nav ul.sub-menu a:hover {
color: var(--primary-color);
    }



    .hero-nav a::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      height: 0.12rem;
      bottom: 0;
      transform: scaleX(0);
      transform-origin: center;
      background: var(--primary-color);
      transition: transform var(--transition-fast);
    }

    .hero-nav a:hover,
    .hero-nav .current-menu-item a {
      color: var(--text-primary);
    }

    .hero-nav a:hover::after,
    .hero-nav .current-menu-item a:after {
      transform: scaleX(1);
    }

    .hero-top-right a {
      font-size: 0.9rem;
      text-decoration: none;
      color: var(--text-secondary);
      border-radius: 999rem;
      border: 0.05rem solid rgba(0, 0, 0, 0.12);
      padding: 0.55rem 1.25rem;
      transition: background-color var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast);
    }

    .hero-top-right a:hover {
      background: var(--primary-color);
      color: #fff;
      border-color: transparent;
      box-shadow: var(--shadow-soft);
    }

    /* Main layout */
    .hero-main {
      position: relative;
      display: flex;
      justify-content: center;
    padding: 10rem 0 0;
    min-height: 100vh;
    }

    .hero-heading-wrapper {
      position: relative;
      z-index: 2;
      text-align: center;
      max-width: 55rem;
    }

    .hero-heading {
      font-size: 9rem;
      line-height: 0.9;
      margin: 0 0 3.5rem;
      font-weight: 400;
      letter-spacing: 1.8px;
    }

    .hero-heading span {
      color: var(--primary-color);
    }

    .hero-ctas {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1.25rem;
      font-size: 1rem;
    }

    .hero-ctas a {
      text-decoration: none;
      color: var(--secondary-color);
      position: relative;
      padding-bottom: 0.2rem;
      transition: color var(--transition-fast);
    }

    .hero-ctas a::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      height: 0.12rem;
      bottom: 0;
      background: var(--primary-color);
      transform: scaleX(0);
      transform-origin: center;
      transition: transform var(--transition-fast);
    }

    .hero-ctas a:hover {
      color: var(--primary-color);
    }

    .hero-ctas a:hover::after {
      transform: scaleX(1);
    }

.hero-ctas-divider {
    width: 1px;
    height: 1.5rem;
    background: #000;
}

    /* Floating circles */
    .hero-circle {
      position: absolute;
      border-radius: 50%;
      overflow: hidden;
      box-shadow: var(--shadow-soft);
      background: #ddd;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .hero-circle img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .circle-1 {
      width: 21rem;
      height: 21rem;
      top: 25rem;
      left: 8rem;
    }

    .circle-2 {
      width: 7.5rem;
      height: 7.55rem;
      top: 14rem;
      left: 19rem;
    }

    .circle-3 {
      width: 10em;
      height: 10rem;
      top: 9rem;
      left: -2rem;
    }

    .circle-4 {
      width: 11rem;
      height: 11rem;
      bottom: -2rem;
      left: 40rem;
    }

    .circle-5 {
      width: 9rem;
      height: 9rem;
      bottom: 5rem;
      right: 28rem;
    }

    .circle-6 {
      width: 12rem;
      height: 12rem;
      top: 22rem;
      right: 13rem;
    }

    .circle-7 {
      width: 6rem;
      height: 6rem;
      top: 16rem;
      right: 3.3rem;
    }

    .circle-8 {
      width: 10rem;
      height: 10rem;
      top: 7rem;
      right: 17rem;
    }

    .stamp {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 3rem;
  right: 3rem;
    width: 9rem;      /* базовый размер штампа */
  height: 9rem;
  transition: transform var(--transition-fast);
      z-index: 99999;
}
.stamp.hidden {
  opacity: 0;
  visibility: hidden;
}
.cta-stamp {
   display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
    width: 178px;      /* базовый размер штампа */
  height: 178px;
  transition: transform var(--transition-fast);
      z-index: 99999; 
}
.stamp:hover, .cta-stamp:hover {
    transform: scale(1.2);
}
/* все слои по центру один над другим */
.stamp > div, .cta-stamp > div {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stamp svg, .cta-stamp svg {
  width: 100%;
  height: 100%;
}

/* зелёный круг – статичный фон */
.stamp__circle svg {
  /* можно чуть уменьшить, если надо, напр.: transform: scale(0.98); */
}

/* Текст по кругу крутится */
.stamp__text svg {
  animation: stamp-rotate 12s linear infinite;
  transform-origin: center center;
}

/* звезда поменьше */
.stamp__star svg {
  width: 55%;   /* подгони проценты под макет */
  height: 55%;
}

/* стрелка ещё меньше */
.stamp__arrow svg {
  width: 27%;
  height: 27%;
}

/* анимация вращения */
@keyframes stamp-rotate {
  to {
    transform: rotate(360deg);
  }
}

/* вариант: вращение только по ховеру */
/*
.stamp__text svg {
  animation: stamp-rotate 12s linear infinite;
  animation-play-state: paused;
}

.stamp:hover .stamp__text svg {
  animation-play-state: running;
}
*/



    /* Responsive */
    @media (max-width: 64rem) {


      .hero-top {
        flex-wrap: wrap;
      }

      .hero-nav {
        order: 3;
        flex-wrap: wrap;
        justify-content: center;
      }

      .hero-main {
        padding-top: 2rem;
      }

      .hero-heading {
font-size: 4.2rem;
        margin: 1rem 0 2.5rem;
      }

      .circle-5 {
        width: 12rem;
        height: 12rem;
        left: 2rem;
      }

      .circle-3 {
        right: 3.5rem;
      }
    }

    /* ===== Our Mission section ===== */

.mission {
    position: relative;
}

.mission-vector {
    width: 20rem;
    height: auto;
    position: absolute;
    top: 24rem;
    z-index: 1;
}
.mission-vector svg {
    fill: #f8f8f8;
}

.container.mission-content {
    max-width: 84rem;
}
.mission-bg {
  position: relative;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 3rem;
  padding: 9rem 0 22.5rem;
  text-align: center;
  overflow: hidden;
}

.mission-title {
  font-size: 5rem;
  margin: 0 0 0.5rem;
}

.mission-text p {
  margin: 0 0 3.5rem;
  font-size: 2rem;
  line-height: 3rem;
  color: #000;
      font-family: var(--font-title);
}

.mission-learn-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    font-size: 1rem;
    border-radius: 100px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    /* overflow: hidden; */
    transition: all 0.3s 
ease;
    z-index: 1;
    height: 3.5rem;
    padding: 1rem 0.75rem;
}
.mission-learn-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #fff;
    border-radius: 60px;
    z-index: -1;
    /* transform: translateY(-50%) scale(1); */
    transition: all 0.3s 
ease;
    will-change: transform;
    border: 1px solid #fff;
}

/* Стили для контейнера иконки (чтобы она была по центру круга) */
.mission-learn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px; /* Примерная ширина зоны иконки */
    height: 32px;
    z-index: 2; /* Иконка всегда сверху */
}

/* --- ЭФФЕКТ ПРИ НАВЕДЕНИИ (HOVER) --- */

/* Увеличиваем белый круг в 25 раз, чтобы он залил все */
/* 1. Настраиваем сам кружок (начальное состояние) */


/* 2. Состояние при наведении (конечное состояние) */
.mission-learn-btn:hover::before {
    /* Просто меняем масштаб. Браузер сам посчитает промежуточные кадры благодаря transition выше */
    width: 100%;
}

/* Опционально: если нужно менять цвет текста/иконки, можно добавить сюда */
/* .mission-learn-btn:hover span { color: #000; } */

/* блок со статистикой */
.mission-stats-card {
    position: relative;
    /* max-width: 54rem; */
    margin: -15rem 5rem 0;
    background: #ffe9e4;
    border-radius: 2.2rem;
    padding: 7rem 7rem 7rem;
    /* box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.1); */
    border-radius: 60px;
    background: #FFE9E9;
    z-index: 9;
}

.mission-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
column-gap: 5rem;
    row-gap: 4rem;
  text-align: center;
}

.mission-stat-number {
font-size: 5.5rem;
font-weight: 400;
font-family: var(--font-title);
}

.mission-stat-label {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: none;
  color: var(--primary-color);
  font-family: var(--font-title);
}
/* Container to control the width of the wave */
    .wave-container {
        width: 100%;
        max-width: 1200px; /* Max width of the container */
        margin: 50px auto;
        overflow: hidden; /* Hides text entering/leaving */
    }

    /* SVG Styling */
    .wave-svg {
        width: 100%;
        height: auto;
        display: block;
    }

    /* The Orange Path Style */
    #wave-path {
        fill: none; /* No fill inside the curve */
        stroke: #FF4500; /* Orange color */
        stroke-width: 70; /* Thickness of the line */
        stroke-linecap: round; /* Rounded ends */
    }

    /* Text Styling */
    .wave-text {
        font-family: 'Arial', sans-serif; /* Use your site's font */
        font-size: 22px;
        font-weight: 500;
        fill: #000; /* Text color */
        letter-spacing: 1px;
        text-transform: uppercase;
        /* Centers the text vertically inside the stroke */
        dominant-baseline: middle; 
    }

    /* The Animation */
    .moving-text {
        animation: moveText 20s linear infinite;
    }

    @keyframes moveText {
        0% {
            startOffset: 100%; /* Start from right */
        }
        100% {
            startOffset: -100%; /* Exit to left */
        }
    }
/* адаптив */
@media (max-width: 64rem) {

  .mission-stats-card {
    margin-top: -3.5rem;
  }

  .mission-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
}

@media (max-width: 48rem) {
  .mission {
    padding: 3rem 1.5rem 4rem;
  }

  .mission-bg {
    padding: 3rem 1.75rem 4rem;
  }

  .mission-title {
    font-size: 2rem;
  }

  .mission-stats-card {
    margin-top: -3rem;
    padding: 2.2rem 1.6rem;
  }

    .mission-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mission-stat-number {
    font-size: 3rem;
}
}

/* ===== What makes EMIS unique? ===== */

.unique {
  padding: 10rem 0 5rem;
}

.unique-title {
  margin: 0 0 1.75rem;
}
.unique-inner {
    padding-bottom: 3.5rem;
}
.unique-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.unique-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.unique-card:hover {
  transform: translateY(-0.3rem);
}

.unique-card-img {
  width: 100%;
  height: 19rem;
  overflow: hidden;
  border-radius: 2rem;
}

.unique-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-medium);
  
}

.unique-card:hover .unique-card-img img {
  transform: scale(1.05);
}

.unique-card-body {
  padding: 2.75rem 0rem 0rem;
}

.unique-card-heading {
  font-size: 1.6rem;
  margin: 0 0 0.375rem;
}

.unique-card-text {
  font-size: 0.9rem;
  line-height: 1.2;
  margin: 0 0 0.65rem;
  max-width: 14rem;
}

.unique-card-link {
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 0.15rem;
}

.unique-card:nth-child(1) .unique-card-link {
   color: #12BD61; 
}
.unique-card:nth-child(2) .unique-card-link {
   color: #30C1E2; 
}
.unique-card:nth-child(3) .unique-card-link {
   color: #7E78D2; 
}
.unique-card:nth-child(4) .unique-card-link {
   color: #E3B505; 
}

.unique-card-link:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 0.12rem;
    bottom: 0;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-fast);
}

.unique-card-link:hover::after {
  transform: scaleX(1);
}

/* нижний баннер */

.unique-banner {
    margin-top: 11rem;
}

.unique-banner-img {
  position: relative;
  border-radius: 3rem;
}

.unique-banner-img img {
  width: 100%;
  height: auto;
  display: block;
}

.unique-ribbon {
    position: absolute;
    top: -12rem;
    right: -6rem;
    z-index: 1;
}

/* если будет готовый SVG-баннер из фигмы, просто: */
/*
.unique-ribbon {
  background: url("ribbon.svg") center/contain no-repeat;
  box-shadow: none;
}
*/
.unique-banner-img img {
  will-change: transform;
}

.unique-ribbon {
  will-change: transform;
}

/* адаптив */

@media (max-width: 64rem) {

  .unique-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unique-ribbon {
    left: -2rem;
    right: -2rem;
  }
}

@media (max-width: 48rem) {
  .unique {
    padding: 3rem 1.5rem 4rem;
  }

  .unique-title {
    font-size: 2rem;
  }

  .unique-grid {
    grid-template-columns: 1fr;
  }

  .unique-banner {
    margin-top: 6rem;
  }

  .unique-ribbon {
    top: 1rem;
    height: 2.6rem;
  }

  .unique-ribbon span {
    font-size: 0.7rem;
    white-space: normal;
    text-align: center;
  }
}

/* ===== Our global students ===== */

.global-students {
  padding: 7rem 0rem 0rem;
}

.global-header {
  margin: 0 auto 0rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.global-title {
  margin: 0;
}

.global-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 0.1rem;
}

.global-more-icon {
  font-size: 1rem;
  line-height: 0.5;
}

.global-more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.06rem;
  background: var(--text-secondary);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.global-more:hover::after {
  transform: scaleX(1);
}

/* основная зона */

.global-main {
  position: relative;
  padding: 6rem 0;
}

/* карта-фон точками */

.global-map {
  position: absolute;
  top: 3rem;
  left: 7rem;
  width: calc(100% - 14rem);
  height: 100%;
  background: url(assets/img/global-map.png);
  background-size: contain;
  pointer-events: none;
}

/* круг с фото */

.global-photo-circle {
  position: relative;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  overflow: hidden;
  margin-left: 12rem;
  z-index: 2;
}

.global-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* карточка */

.global-card {
  position: absolute;
  top: 50%;
  right: 12rem;
  transform: translate(2rem, -50%);
border-radius: 2rem;
background: #FFE9E9;  
  padding: 4.5rem 4.5rem 4rem 11rem;
  max-width: 50rem;
  z-index: 1;
  height: 22rem;
}

.global-card-inner {
  font-size: 0.85rem;
}

.global-card-top {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.75rem;
}

.global-count {
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--text-primary);
}

.global-quote {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--text-primary);
      font-size: 1rem;
}

.global-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* стрелки */

.global-arrow {
  position: absolute;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: none;
  background: var(--primary-color);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
  z-index: 3;
}

.global-arrow span {
  font-size: 1.1rem;
  transform: translateY(-0.05rem);
  line-height: 0.5;
}

.global-arrow-prev {
  left: 12rem;  /* возле пересечения круга и карточки */
  top: 50%;
  transform: translate(-50%, -50%);
}

.global-arrow-next {
  right: 9.5rem;
  top: 50%;
  transform: translate(50%, -50%);
}
.global-arrow.global-arrow-prev:hover {
  transform: scale(1.05) translate(-50%, -50%);
}
.global-arrow.global-arrow-next:hover {
  transform: scale(1.05) translate(50%, -50%);
}
/* мини-аватарки вокруг */

.global-avatar {
  position: absolute;
  width: 5.1rem;
  height: 5.1rem;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
}

.global-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* примерные позиции — подгони под макет в браузере 

.avatar-1 {
  left: 1.8rem;
  top: 55%;
}

.avatar-2 {
  left: 6rem;
  top: 25%;
}

.avatar-3 {
  left: 18.2rem;
  top: 80%;
}

.avatar-4 {
  right: 5rem;
  top: 72%;
}
*/
/* Для картинок */
.global-photo-circle .photo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%; /* Сохраняем круг */
}
.global-avatar.avatar-1 {
    top: 6rem;
    left: 10rem;
    width: 4.7rem;
    height: 4.7rem;
}
.global-avatar.avatar-2 {
    bottom: 4rem;
    left: 8rem;
    width: 6.7rem;
    height: 6.7rem;
}
.global-avatar.avatar-3 {
    bottom: 4rem;
    right: 8.5rem;
    width: 4.8rem;
    height: 4.8rem;
}
.global-avatar.avatar-4 {
    bottom: 2rem;
    right: 13.5rem;
    width: 4.5rem;
    height: 4.5rem;
}
.global-photo-circle img.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* Все скрыты */
    transition: none; /* Анимацию делаем через GSAP */
    z-index: 1;
}

.global-photo-circle img.slide-img.active {
    opacity: 1; /* Активный виден */
    z-index: 2;
}

/* Для текста */
.global-card-inner .text-wrapper {
    position: relative;
    /* Убедитесь, что у родителя есть высота, иначе position:absolute схлопнет блок.
       Либо используйте min-height для карточки. */
    min-height: 200px; /* Примерная высота, подберите под контент */
}

.slide-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none; /* Чтобы скрытый текст нельзя было выделить */
    transform: translateX(20px); /* Начальная позиция для анимации */
}

.slide-text.active {
    opacity: 1;
    pointer-events: auto;
    position: relative; /* Активный слайд занимает место в потоке (опционально) */
    transform: translateX(0);
}

/* Важно: Чтобы position: relative у активного текстового слайда работал корректно 
   для высоты карточки, можно использовать grid stack трюк, 
   но проще задать min-height карточке */
/* адаптив */

@media (max-width: 64rem) {

  .global-main {
    padding-bottom: 3.5rem;
  }

  .global-card {
    position: static;
    transform: none;
    margin: 2rem auto 0;
  }

  .global-photo-circle {
    margin: 0 auto;
  }

  .global-map {
    inset: 1rem 1rem auto 1rem;
  }

  .global-arrow-prev,
  .global-arrow-next {
    top: auto;
    bottom: -2.2rem;
    transform: none;
  }

  .global-arrow-prev {
    left: 35%;
  }

  .global-arrow-next {
    right: 35%;
  }
}

@media (max-width: 48rem) {

  .global-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .global-card {
    padding: 2.8rem 1.6rem 1.8rem;
  }

  .global-avatar {
    display: none; /* можно скрыть на мобилке, если тесно */
  }
}

/* ===== Stories & updates ===== */

.stories {
    padding: 6rem 0 0;
    margin-bottom: -18rem;
    position: relative;
    z-index: 1;
}
.stories-title {
    margin: 0;
}
.stories-header {
  margin: 0 auto 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.stories-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 0.1rem;
}

.stories-more-icon {
  font-size: 1rem;
}

.stories-more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.06rem;
  background: var(--text-secondary);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.stories-more:hover::after {
  transform: scaleX(1);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.story-card {
  background: #ffeef0;
  border-radius: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
    padding: 12px;
}

.story-card:hover {
  transform: translateY(-0.25rem);
}

.story-card-img {
  display: block;
  height: 14rem;
  overflow: hidden;
  border-radius: 2rem;
}

.story-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-medium);
  border-radius: 2rem;
}

.story-card:hover .story-card-img img {
  transform: scale(1.05);
}

.story-card-body {
  padding: 2.4rem 1.6rem 2.5rem;
}

.story-card-title {
  margin: 0 0 0.4rem;
font-size: 1.2rem;
font-weight: 700;
line-height: 160.491%;
}

.story-card-title a {
  text-decoration: none;
  color: var(--text-primary);
}

.story-card-text {
  margin: 0 0 0.9rem;
    font-size: 1rem;
    line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 300;
}

.story-card-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  padding-bottom: 0.1rem;
}

.story-card-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.08rem;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.story-card-link:hover::after {
  transform: scaleX(1);
}
.collage-gallery-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.collage-gallery {
    margin-bottom: -25rem;
    margin-left: -10rem;
}
.collage-gallery img {
    animation: stamp-rotate 22s linear infinite;
    transform-origin: center center;
}
footer.page-footer {
    position: relative;
    z-index: 9;
    overflow: hidden;
    background: var(--primary-color);
    border-bottom-left-radius: 3rem;
    border-bottom-right-radius: 3rem;
}
.collage-item {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.collage-item img {
    display: block;
    width: 100%;
    height: auto;
}

.collage-item:hover {
    z-index: 10;
    transform: scale(1.05) rotate(0deg) !important; /* Reset rotation and scale up on hover */
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Positioning and Rotation for each item */
/* You can adjust these values to match the exact layout you want */

.item-0 {
    top: 10%;
    left: 5%;
    width: 25%;
    transform: rotate(-10deg);
    z-index: 1;
}

.item-1 {
    top: 30%;
    left: 25%;
    width: 22%;
    transform: rotate(5deg);
    z-index: 3;
}

.item-2 {
    top: 5%;
    left: 45%;
    width: 28%;
    transform: rotate(-5deg);
    z-index: 2;
}

.item-3 {
    top: 40%;
    right: 15%;
    width: 24%;
    transform: rotate(8deg);
    z-index: 4;
}

.item-4 {
    top: 15%;
    right: 5%;
    width: 20%;
    transform: rotate(-12deg);
    z-index: 1;
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {

  /* 1. The Container */
    #menu-menu-2 {
        display: flex;              /* Aligns items in a row */
        flex-wrap: nowrap;          /* Prevents items from stacking */
        overflow-x: auto;           /* Enables horizontal scrolling */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        
        /* Reset lists */
        padding: 10px 0;            /* Add space top/bottom */
        margin: 0;
        list-style: none;
        
        /* Optional: Snap effect */
        scroll-snap-type: x mandatory;
        
        /* Remove Scrollbar Visuals */
        scrollbar-width: none;      /* Firefox */
        -ms-overflow-style: none;   /* IE 10+ */
    }

    /* Remove Scrollbar for Chrome/Safari/Opera */
    #menu-menu-2::-webkit-scrollbar {
        display: none;
    }

    /* 2. The Items */
    #menu-menu-2 > li {
        flex: 0 0 auto;             /* Don't grow, don't shrink, auto width */
        margin: 0 15px;             /* Space between items */
        scroll-snap-align: start;   /* Snap to start of item */
    }
    
    /* Add padding to first and last item so they aren't glued to screen edge */
    #menu-menu-2 > li:first-child {
        margin-left: 20px;
    }
    #menu-menu-2 > li:last-child {
        margin-right: 20px;
    }

    /* 3. The Links */
    #menu-menu-2 > li > a {
        display: inline-block;
        white-space: nowrap;        /* Ensure text doesn't wrap */
        font-size: 16px;            /* Readable mobile size */
        color: #333;                /* Your text color */
        text-decoration: none;
        
        /* Optional: Button style look */
        /* padding: 8px 15px; */
        /* background: #f0f0f0; */
        /* border-radius: 20px; */
    }

    /* 4. IMPORTANT: Hide Sub-menus */
    /* Horizontal scroll containers clip vertical dropdowns. 
       It is best to hide sub-menus on this mobile view. */
    #menu-menu-2 .sub-menu {
        display: none !important;
    }


.collage-gallery {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        /* padding: 20px; */
        gap: 20px;
        margin-bottom: -15rem;
                margin-left: 0;
    }
    .collage-gallery img {
      max-width: 100%;
    }
    .collage-item {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 45%;
        transform: none !important; /* Remove rotation on mobile */
        margin-bottom: 20px;
    }
}
/* ===== CTA APPLY NOW + FOOTER ===== */

.cta-apply {
  background: var(--primary-color);
  padding: 1rem 0 0;
  border-bottom-left-radius: 3rem;
  border-bottom-right-radius: 3rem;
  border-top-left-radius: 3rem;
    border-top-right-radius: 3rem;
        position: relative;
}
.home .cta-apply {
  padding: 21rem 0 0;
  border-radius: 3rem;
}
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding-top: 3rem;
}

.cta-text {
  position: relative;
}

.cta-title {
  font-size: 3rem;
  margin: 0 0 1.2rem;
font-weight: 400;
line-height: 133.333%;
color: var(--text-primary);
}

.cta-subtitle {
  margin: 0 0 1.8rem;
  font-size: 0.9rem;
  font-size: 1.3rem;
line-height: 153.846%;
color: var(--text-primary);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999rem;
  border: none;
  background: #ffffff;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  box-shadow: 0 0.9rem 1.9rem rgba(0, 0, 0, 0.22);
}

.cta-button:hover {
  transform: translateY(-0.1rem);
  background-color: #ffe3d6;
  box-shadow: 0 1.3rem 2.6rem rgba(0, 0, 0, 0.3);
}

.cta-button-arrow {
  font-size: 1.1rem;
  transform: translateY(-0.03rem);
}


/* коллаж */

.cta-collage {
  position: relative;
  height: 15rem;
}

.cta-photo {
  position: absolute;
  width: 7rem;
  height: 9rem;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 1.2rem 2.6rem rgba(0, 0, 0, 0.35);
}

.cta-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* примерные позиции/углы, подгони под пиксели */

.photo-1 {
  left: 0;
  top: 2rem;
  transform: rotate(-12deg);
}

.photo-2 {
  left: 4.5rem;
  top: 0;
  transform: rotate(8deg);
}

.photo-3 {
  left: 9.5rem;
  top: 1.8rem;
  transform: rotate(-6deg);
}

.photo-4 {
  left: 2.5rem;
  bottom: 0.5rem;
  transform: rotate(-18deg);
}

.photo-5 {
  left: 8.5rem;
  bottom: -0.7rem;
  transform: rotate(10deg);
}


/* адаптив */

@media (max-width: 64rem) {

  .stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-collage {
    max-width: 17rem;
    margin: 1.5rem auto 0;
  }

  .cta-stamp {
    left: auto;
    right: 0;
  }
}

@media (max-width: 48rem) {
  .stories-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stories-grid {
    grid-template-columns: 1fr;
  }

  .cta-apply {
    padding: 3rem 0 0;
  }

  .cta-title {
    font-size: 2.2rem;
  }

  .cta-stamp {
    position: relative;
    bottom: auto;
    margin-top: 0;
  }

  .page-footer {
    margin-top: 3rem;
  }
}
.fan-gallery-section {
    background-color: #FF4810; /* Оранжевый фон */
    padding: 100px 0;
    overflow: hidden; /* Обрезаем лишнее, если веер широкий */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

.fan-gallery {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 500px; /* Высота области веера */
    display: flex;
    justify-content: center;
    align-items: center;
}

.fan-item {
    position: absolute;
    width: 280px;  /* Ширина одной карточки */
    height: 380px; /* Высота одной карточки */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border: 4px solid #fff; /* Белая рамка как на дизайне (опционально) */
    transition: transform 0.4s ease, z-index 0s;
    
    /* --- МАТЕМАТИКА ВЕЕРА --- */
    
    /* Находим середину (например, если 5 картинок, середина = 2) */
    --middle: calc((var(--total) - 1) / 2);
    
    /* Находим смещение от центра: -2, -1, 0, 1, 2 */
    --offset: calc(var(--i) - var(--middle));
    
    /* Угол поворота: чем дальше от центра, тем сильнее поворот */
    --rotate-angle: calc(var(--offset) * 12deg);
    
    /* Сдвиг по X: чтобы они не стояли в одной точке, а разъезжались */
    --translate-x: calc(var(--offset) * 140px);
    
    /* Сдвиг по Y: края веера чуть опускаем вниз (абсолютное значение смещения * 10px) */
    --translate-y: calc(abs(var(--offset)) * 15px);

    /* Точка вращения: ВНИЗУ ПО ЦЕНТРУ, смещена за пределы элемента */
    transform-origin: 50% 150%; 
    
    /* Применяем трансформации */
    transform: translateX(var(--translate-x)) translateY(var(--translate-y)) rotate(var(--rotate-angle));
    
    /* Z-index: центр сверху, края снизу. 
       Формула: общее кол-во минус модуль смещения */
    z-index: calc(var(--total) - abs(var(--offset)));
}

.fan-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fan-item:nth-child(1) {
transform: rotate(-80deg);
}
.fan-item:nth-child(2) {
transform: rotate(-45deg);
}
.fan-item:nth-child(3) {
transform: rotate(-3deg);
}
.fan-item:nth-child(4) {
transform: rotate(30deg);
}
.fan-item:nth-child(5) {
transform: rotate(61deg);
}
.fan-item:nth-child(6) {
transform: rotate(100deg);
}
.fan-item:nth-child(7) {
transform: rotate(136deg);
}
/* Адаптив для мобильных (сбрасываем веер в слайдер или стопку) */
@media (max-width: 768px) {
    .fan-item {
        width: 200px;
        height: 280px;
        /* Уменьшаем разлет на мобильных */
        --translate-x: calc(var(--offset) * 40px);
        --rotate-angle: calc(var(--offset) * 5deg);
    }
}
/* ===== FOOTER FULL ===== */

.footer-nav ul {
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 3.4rem 7.5rem;
    gap: 1.7rem;
    flex: 1;
    list-style: none;
    margin: 0;
}
.footer-nav ul.sub-menu {
  display: none;
}

.footer-nav a {
  color: #000;
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
    padding-bottom: 0.25rem;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-dot {
  opacity: 0.7;
}
.footer-nav a:before {
    content: "";
    width: 0.2rem;
    height: 0.2rem;
    background: #fff;
    border-radius: 100%;
    position: absolute;
    left: -0.7rem;
    top: 0.6rem;
    }

    .footer-nav a::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      height: 0.12rem;
      bottom: 0;
      transform: scaleX(0);
      transform-origin: center;
      background: #fff;
      transition: transform var(--transition-fast);
    }

    .footer-nav a:hover {
      color: #fff;
    }

    .footer-nav a:hover::after {
      transform: scaleX(1);
    }
/* верх футера */

.footer-top-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-start;
  margin-bottom: 2rem;
}
.footer-main {
    padding-top: 3.7rem;
    padding-bottom: 3.7rem;
}
.footer-pill {
    border-radius: 999rem;
    border: 0.08rem solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
    color: #000;
    padding: 0.85rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    border-radius: 5rem;
    border: 1px solid #000;
    background: #FFE9E9;
    text-decoration: none;
    align-items: center;
    align-content: center;
    display: flex;
    gap: 0.7rem;
    height: 3.5rem;
    width: 12.5rem;
    text-align: center;
    justify-content: center;
}

.footer-pill:hover {
  background: var(--primary-color);
  transform: translateY(-0.05rem);
}

/* две колонки */

.footer-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
}

.footer-tagline {
font-size: 4rem;
    line-height: 112.5%;
  margin: 0 0 1.6rem;
  will-change: transform, opacity, filter;
  font-kerning: none;
}

.footer-socials {
  display: flex;
  gap: 2.5rem;
}

.footer-social {
width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    border: 1px solid #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);

}

.footer-social:hover {
  background: #ffffff;
  color: var(--primary-color);
  transform: translateY(-0.05rem);
}

.footer-address {
  margin: 0 0 1.4rem;
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-address a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-badges {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: end;
}

.footer-badges img {
    width: 7rem;
    height: 7rem;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
}

/* нижняя белая плашка */

.footer-bottom-bar {
  background: #F8F8F8;
  padding: 1.75rem 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* адаптив */

@media (max-width: 48rem) {
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-tagline {
    font-size: 2.7rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
}
/* ===== ABOUT HERO ===== */

.about-hero-heading h1 {
  font-size: 3.2rem;
  margin: 0 0 0.6rem;
}

.about-breadcrumb {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* контейнер для параллакса */

.about-hero-image-wrap {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 2.5rem;
  /* будет анимироваться через GSAP */
  box-shadow: 0 1.7rem 3.4rem rgba(0, 0, 0, 0.25);
}

.about-hero-image {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
}

/* круглый штамп */

.about-stamp {
  position: absolute;
  right: 2.2rem;
  top: 2.2rem;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  border: 0.12rem solid #000;
  background: #ffe94a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  gap: 0.25rem;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1rem 2.3rem rgba(0, 0, 0, 0.4);
  transform-origin: 50% 50%;
}

.about-stamp-top {
  font-weight: 700;
}

.about-stamp-bottom {
  font-weight: 500;
}

/* адаптив */

@media (max-width: 64rem) {

  .about-hero-heading h1 {
    font-size: 2.6rem;
  }

  .about-stamp {
    right: 1.5rem;
    top: 1.5rem;
  }
}

@media (max-width: 48rem) {
  .about-hero {
    padding: 2rem 1.5rem 3rem;
  }

  .about-hero-heading {
    margin-bottom: 1.6rem;
  }

  .about-hero-heading h1 {
    font-size: 2.2rem;
  }

  .about-stamp {
    width: 4.7rem;
    height: 4.7rem;
    font-size: 0.5rem;
  }
}
/* ===== About intro (image + text) ===== */
.pre-intro {
        border-top-right-radius: 3rem;
    border-top-left-radius: 3rem;
    background: #F8F8F8;
    /* margin-top: -5rem; */
    z-index: 9;
    position: relative;
}
.about-intro {
  padding: 9rem 0rem 9.5rem;
      border-top-right-radius: 3rem;
    border-top-left-radius: 3rem;
    background: #F8F8F8;
    /* margin-top: -5rem; */
    z-index: 9;
    position: relative;
}

.about-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 7rem;
  align-items: center;
}

.about-intro-media img {
  width: 100%;
  display: block;
  border-radius: 3rem;
  object-fit: cover;
}

.about-intro-kicker {
    margin: 0 0 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.about-intro-title {
  font-size: 2.5rem;
  line-height: 1.3;
  margin: 0 0 1.1rem;
    padding-right: 6rem;
}
.about-intro-text-wrap {
    font-weight: 300;
    padding-right: 4rem;
}
.about-intro-text {
  font-size: 1.1rem;
  line-height: 1.54;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.about-intro-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.375rem;
  margin-top: 0.8rem;
  font-size: 1rem;
}

.about-intro-link {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  position: relative;
  padding-bottom: 0.1rem;
}

.about-intro-link.primary {
  font-weight: 600;
}

.about-intro-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.08rem;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.about-intro-link:hover::after {
  transform: scaleX(1);
}

.about-intro-divider {
  color: rgba(0, 0, 0, 0.35);
}

/* адаптив */

@media (max-width: 64rem) {


  .about-intro-inner {
    grid-template-columns: 1fr;
  }

  .about-intro-media {
    order: -1; /* картинка сверху на планшете/мобиле */
  }
}

@media (max-width: 48rem) {
  .about-intro {
    padding: 3rem 0rem 3rem;
  }

  .about-intro-title {
    font-size: 2rem;
  }
}

/* ===== Values marquee (бегущая строка) ===== */

.values-marquee {
padding: 1.25rem 0;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.values-marquee-mask {
  overflow: hidden;
  max-width: 100%;
}

.values-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  padding-inline: 4rem;
  animation: values-marquee 12s linear infinite;
}
/*
.values-marquee:hover .values-track {
  animation-play-state: paused;
}*/

.value-pill {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 3.3rem;
  font-family: var(--font-title);
}

.value-label {
  white-space: nowrap;
}

/* простые иконки-заглушки, заменишь на svg */

.value-icon {
  display: flex;
}


/* анимация марквея */

@keyframes values-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


@media (max-width: 48rem) {
  .values-track {
    gap: 2rem;
  }

  .value-pill {
    font-size: 1rem;
  }

  .value-icon {
    width: 2rem;
    height: 2rem;
  }
}
/* ===== Mission & Vision cards (About page) ===== */
.mv-section {
    padding: 6.5rem 0;
    background: url(assets/img/about-mission-bg.png) no-repeat;
        background-position-y: 125%;
}
.mv-card + .mv-card {
  margin-top: 6rem;
}

.mv-card-inner {
background: #FFE9E9;
  border-radius: 3rem;
  padding: 3.75rem 4.5rem 3.75rem 7rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 5rem;
  align-items: center;
}

/* для второй карточки меняем направление (картинка слева) */
.mv-card--vision .mv-card-inner {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  padding: 3.75rem 5rem 3.75rem 3rem;
}

/* контент */

.mv-card-content {
  font-size: 0.9rem;
}

.mv-title {
  margin: 0 0 0.5rem;
      font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.5px;
}

.mv-text {
  margin: 0 0 0.5rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 2.1rem;
font-weight: 300;
line-height: 133.333%;
}
.mv-text p {
    margin: 0;
}
.mv-link {
  font-size: 1rem;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  position: relative;
  padding-bottom: 0.1rem;
  margin-top: 1.5rem;
    display: inline-block;
}

.mv-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.1rem;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.mv-link:hover::after {
  transform: scaleX(1);
}

/* медиа */

.mv-media {
  position: relative;
  border-radius: 3rem;
  overflow: hidden;
  height: 100%;
    object-fit: cover;
}

.mv-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform-origin: center;
  transition: transform var(--transition-medium);
}

.mv-media:hover img {
  transform: scale(1.04);
}

/* кнопка play сверху */

.mv-play {
  position: absolute;
  inset: 0;
  margin: auto;
width: 7.3rem;
    height: 7.3rem;
  border-radius: 50%;
  border: none;
  background: var(--primary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

.mv-play:hover {
  transform: scale(1.05);
}
/* адаптив */
.mv-text-wrap {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.65;
}
@media (max-width: 64rem) {

  .mv-card-inner,
  .mv-card--vision .mv-card-inner {
    grid-template-columns: 1fr;
    padding: 2.3rem 2.2rem;
  }

  .mv-media {
    order: -1; /* картинка сверху на планшете */
  }

  .mv-swoosh::before {
    left: -3rem;
    right: -3rem;
  }
}

@media (max-width: 48rem) {
.mv-section {
        padding: 3.5rem 0;
    }

  .mv-card-inner {
    padding: 2rem 1.6rem 2.2rem;
    gap: 2.5rem;
  }


  .mv-swoosh {
    margin-block: 2rem;
    height: 3.5rem;
  }
}
/* ===== Our History (dark block) ===== */

.history-card {
  border-radius: 3rem;
  overflow: hidden;
  position: relative;
}

/* фон + затемнение */

.history-bg {
  position: relative;
  height: 100vh;
}

.history-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.history-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 50% 10%,
      rgba(0, 0, 0, 0.25),
      transparent 55%
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75));
  pointer-events: none;
  z-index: 9;
}

/* слой с кружками и текстом */

.history-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 5rem;
  z-index: 9;
}

/* центральный текст */

.history-content {
  max-width: 32rem;
  text-align: center;
  color: #ffffff;
  position: relative;
  max-width: 53.5rem;
}

.history-kicker {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

.history-text {
  margin: 0;
  font-size: 2rem;
  line-height: 1.375;
}

/* вертикальные линии */

.history-line {
  width: 0.09rem;
  height: 7.8rem;
  background: var(--primary-color);
  margin-inline: auto;
}

.history-line--top {
  margin-bottom: 1.4rem;
}

.history-line--bottom {
  margin-top: 1.4rem;
}

/* круглые фотографии */

.history-badge {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
}

.history-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* примерные позиции - подгони в браузере */

.history-badge--1 {
  left: 11.75rem;
  top: 7.5rem;
    width: 12.5rem;
  height: 12.5rem;
  object-fit: cover;
}

.history-badge--2 {
  left: 4.5rem;
  top: 32rem;
    width: 14.5rem;
  height: 14.5rem;
  object-fit: cover;

}

.history-badge--3 {
  right: 7.6rem;
  top: 9rem;
  width: 12.5rem;
  height: 12.5rem;
  object-fit: cover;
}

.history-badge--4 {
  right:  7.6rem;
  bottom: 0rem;
    width: 10rem;
  height: 10rem;
  object-fit: cover;
}

/* адаптив */

@media (max-width: 64rem) {


  .history-inner {
    padding: 2.5rem 3rem;
  }
}

@media (max-width: 48rem) {
  .history {
    padding: 3rem 1.5rem 3.5rem;
  }

  .history-bg {
    height: 70rem;
  }

  .history-inner {
    padding: 2rem 1.8rem;
  }

  .history-badge {
    width: 7.6rem;
    height: 7.6rem;
  }

  .history-badge--1 {
    left: 1.5rem;
    top: 2rem;
    right: auto;
  }

  .history-badge--2 {
    right: 1.5rem;
    top: 2.2rem;
    left: auto;
  }

  .history-badge--3 {
    left: 1.6rem;
    bottom: 2rem;
            top: auto;
            right: auto;
  }

  .history-badge--4 {
    right: 1.6rem;
    bottom: 1.7rem;
            top: auto;
            left: auto;
  }
}
/* ===== Partnership (About page) ===== */

.partnership {
    padding: 8rem 0;
}
.partnership-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.partnership-title {
  font-size: 2.5rem;
  margin: 0 0 1.5rem;
}
.partnership-text-wrap {
font-size: 1.1rem;
    font-weight: 300;
    line-height: 154.545%;
}
.partnership-text {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  line-height: 1.54;
  color: var(--text-secondary);
}

.partnership-cta {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.12rem;
}

.partnership-cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.09rem;
  background: var(--primary-color);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.partnership-cta:hover::after {
  transform: scaleX(1);
}

/* картинка */

.partnership-media {
  border-radius: 3rem;
  overflow: hidden;
}

.partnership-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform-origin: center;
  transition: transform var(--transition-medium);
}

.partnership-media:hover img {
  transform: scale(1.04);
}

/* адаптив */

@media (max-width: 64rem) {


  .partnership-inner {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .partnership-media {
    order: -1; /* картинка сверху на планшете/мобиле */
  }
}

@media (max-width: 48rem) {
.partnership {
        padding: 5rem 0;
    }

  .partnership-title {
    font-size: 2rem;
  }
}
/* ===== Leadership & Faculty ===== */


.faculty-title {
  font-size: 3.5rem;
  margin: 0 0 2.5rem;
}
.faculty-email {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 300;
}
.faculty-divider {
  height: 0.07rem;
  background: #1c1c1c;
  margin-bottom: 1.4rem;
}

/* tabs */
.faculty {
    padding-bottom: 12rem;
}
.faculty-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  font-size: 1.1rem;
  margin-bottom: 4rem;
    border-top: 1px solid;
    border-bottom: 1px solid;
    padding: 2.2rem 0;
}

.faculty-tab {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  position: relative;
  padding-bottom: 0.15rem;
  color: #000000;
}

.faculty-tab.is-active {
  font-weight: 700;
}

.faculty-dot {
  color: var(--primary-color);
}

/* grid */

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 1.75rem;
}

.faculty-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
  animation: fadeIn 0.5s ease forwards;
  text-align: center;
}

.faculty-card.is-hidden {
display: none;
}
/* Опционально: анимация появления */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* фото */

.faculty-photo {
  width: 100%;
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
}

.faculty-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  height: 22.5rem;
}

/* оранжевый плюс */

.faculty-plus {
  opacity: 0;
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: none;
  background: #ff5a1f;
  color: #000;
  font-size: 5rem;
  font-weight: 300;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
      transform: translate(-50%, 50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faculty-photo:hover .faculty-plus {
opacity: 1;
}
.faculty-plus:hover {
  transform: translate(-50%, 50%) scale(1.1);
}
/* --- MODAL WRAPPER (Fixed Overlay) --- */
.modal-team_wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: none; /* Allows click-through when closed */
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Aligns modal to bottom initially if needed */
}

/* --- YOUR ANIMATION CODE (Adapted) --- */
.modal-team_layout {
    width: 100%;
    height: 100%;
    background-color: #F8F8F8;
    
    /* Animation Properties */
    transform: translate3d(0, 100%, 0); /* Start hidden below screen */
    transition: transform 0.8s cubic-bezier(.15, .78, .26, 1);
    
    /* Layout */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Allow scrolling if content is long */
    box-sizing: border-box;
}

/* The Active State (Added to HTML via JS) */
html.has-modal-team-open .modal-team_wrapper {
    pointer-events: auto;
    background: rgba(0,0,0,0.5); /* Optional dim background */
}

html.has-modal-team-open .modal-team_layout {
    transform: translate3d(0, 0, 0); /* Slide up to view */
}

/* --- INNER CONTENT DESIGN (Matching Figma) --- */
.modal-team-inner {
    position: relative;
}

.modal-team-close {
    position: absolute;
    top: 2.5rem;
    right: 2rem;
    width: 5rem;
    height: 5rem;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    z-index: 10;
}

.modal-team-close:hover {
    transform: scale(1.1);
}

.modal-team-grid {
    display: flex;
    gap: 4rem;
    align-items: center;
}

/* Left: Image */
.modal-team-left {
    flex: 0 0 25rem; /* Fixed width for image column */
}

.modal-team-left img {
    width: 100%;
    height: auto;
    border-radius: 3rem;
    object-fit: cover;
    aspect-ratio: 1 / 1.25; /* Square image as per design */
    background: #eee;
}

/* Right: Content */
.modal-team-right {
    flex: 1;
}

#modal-team-name {
    font-size: 1.1rem;
    color: var(--primary-color); /* Orange Name */
    margin: 0 0 0.5rem 0;
    margin-top: 0;
    font-weight: 700;
}

#modal-team-role {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

#modal-team-bio {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
}
/* Mobile Responsive */
@media (max-width: 900px) {
    .modal-team-grid {
        flex-direction: column;
    }
    .modal-team-left {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .modal-team-close {
        top: 10px;
        right: 10px;
    }
    .modal-team-inner {
        padding: 30px;
    }

    /* 1. The Container */
    .faculty-tabs {
        display: flex;              /* Horizontal row */
        align-items: center;        /* Vertically center dots and text */
        flex-wrap: nowrap;          /* No wrapping to next line */
        overflow-x: auto;           /* Allow scrolling */
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
        
        /* Spacing */
        padding: 10px 0;            /* Touch breathing room */
        gap: 5px;                   /* Basic gap between elements */
        
        /* Hide Scrollbar */
        scrollbar-width: none;      /* Firefox */
        -ms-overflow-style: none;   /* IE */
    }

    /* Hide Scrollbar Chrome/Safari */
    .faculty-tabs::-webkit-scrollbar {
        display: none;
    }

    /* 2. The Items (Buttons & Dots) */
    .faculty-tab, 
    .faculty-dot {
        flex: 0 0 auto;             /* Prevent shrinking */
        white-space: nowrap;        /* Keep text on one line */
    }

    /* 3. Button Styling for Mobile */
    .faculty-tab {
        font-size: 16px;            /* Readable size */
        padding: 5px 10px;          /* Tap area */
        background: transparent;    /* Reset button styles if needed */
        border: none;
    }
    
    /* 4. Dot Styling */
    .faculty-dot {
        color: #ccc;                /* Lighter color for separator */
        margin: 0 5px;              /* Space around the dot */
    }

    /* Optional: Add padding to start/end so text isn't glued to screen edge */
    .faculty-tabs:after {
        content: '';
        min-width: 20px;
        height: 1px;
    }

}
/* подписи */

.faculty-meta {
  margin-top: 1.75rem;
  width: 100%;
}

.faculty-name {
  margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.faculty-role {
  margin: 0.1rem 0 0;
  font-size: 1.1rem;
  font-weight: 300;
}

/* CTA */

.faculty-cta {
  margin-top: 5rem;
  text-align: center;
}

.faculty-cta-title {
  margin: 0 0 3rem;
  font-size: 2.5rem;
  font-family: var(--font-title);
}

.faculty-cta-btn {
  border: none;
  border-radius: 999rem;
  background: #ff5a1f;
  color: #000;
  padding: 1.25rem 3.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease;
    text-decoration: none;
}

.faculty-cta-btn:hover {
  transform: translateY(-2px);
}

/* адаптив */

@media (max-width: 64rem) {


  .faculty-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
.faculty-cta-btn {
    padding: 1.25rem 1.5rem;
}

  .faculty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
  }
}

@media (max-width: 34rem) {
  .faculty-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .faculty-tabs {
    row-gap: 0.2rem;
  }
}
/* ===== Academics hero ===== */

.academics-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* если общий .hero-nav / .hero-logo уже есть — можешь удалить эти стили */

.academics-hero-main {
    position: relative;
    padding-bottom: 6rem;
    padding-top: 12.6rem;
    z-index: 99;
}

.academics-breadcrumb {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.academics-title {
  font-size: 5.75rem;
  margin: 0 0 1.5rem;
font-weight: 400;
line-height: 104.348%;
}

.academics-lead {
  margin: 0 0 2rem;
  font-size: 2.5rem;
  line-height: 1.4;
  color: var(--text-secondary);
    max-width: 70rem;
}
.academics-lead a {
    color: var(--text-secondary);
}
/* CTA кнопка */

.academics-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 3rem;
  border-radius: 999rem;
  border: none;
  background: #ff5a1f;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast, 0.3s);
  text-decoration: none;
}

.academics-cta:hover {
  transform: translateY(-0.1rem);
}

/* нижняя оранжевая линия */

.academics-swoosh {
  position: absolute;
  right: 0;
  top: -37rem;
  left: 0;
}

/* блок с картинкой под текстом */

.academics-hero-image-wrap {
  max-width: 64rem;
  margin: 2.5rem auto 0;
  border-radius: 2.5rem;
  overflow: hidden;
  box-shadow: 0 1.7rem 3.4rem rgba(0, 0, 0, 0.25);
  /* эти свойства будут анимироваться GSAP */
}

.academics-hero-image {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
}

/* чуть сдвинем "змейку", чтобы она шла уже после картинки */

.academics-swoosh {
  max-width: 100%;
  margin: 2.3rem 0 0 auto;
  height: auto;
  overflow: hidden;
  z-index: 9;
}

/* адаптив */

@media (max-width: 64rem) {


  .academics-hero-main {
    padding-bottom: 3rem;
  }

  .academics-stamp {
    right: 0;
  }
}

@media (max-width: 48rem) {

  .academics-title {
    font-size: 3.75rem;
  }

  .academics-stamp {
    position: static;
    margin: 1.8rem 0 0;
  }

  .academics-hero-main {
    padding-bottom: 2.5rem;
    padding-top: 6.6rem;
  }

  .academics-swoosh {
    margin-top: 32rem;
  }
}
/* ===== Programs overview (2 cards over photo) ===== */

.programs-overview {
  position: relative;
}

/* фон */

.programs-bg {
  overflow: hidden;
  position: relative;
  margin-bottom: 0rem;
  height: 56rem;
}

.programs-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
border-top-left-radius: 3rem;
    border-top-right-radius: 3rem;
}

/* карточки поверх */
.programs-overview {
    position: relative;
    height: 56rem;
}
.programs-cards {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
    position: absolute;
    z-index: 9;
bottom: 9rem;
    left: 50%;
    width: 80rem;
    transform: translateX(-50%);
}

.program-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 5.5rem 3.8rem 4rem;
}
/* контент карт */

.program-kicker {
  margin: 0 0 1.3rem;
    font-size: 0.9rem;
    font-weight: 500;
  color: var(--primary-color);
}

.program-title {
  font-size: 2.5rem;
  margin: 0 0 0.8rem;
}

.program-text {
  margin: 0 0 1.15rem;
  line-height: 1.54;
  font-size: 1.1rem;
  color: var(--text-secondary);
}
.program-text a {
  color: #000;
}
.program-link {
  font-size: 1rem;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  position: relative;
  padding-bottom: 0.12rem;
}

.program-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.09rem;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast, 0.3s);
}

.program-link:hover::after {
  transform: scaleX(1);
}

/* адаптив */

@media (max-width: 64rem) {

  .programs-cards {
    margin-top: -7.5rem;
  }
}

@media (max-width: 48rem) {
  .programs-overview {
height: auto;
padding: 0 0rem 3rem;
  }

  .programs-bg {
    height: 20rem;
  }

  .programs-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
    margin-top: -6rem;
  }

  .programs-cards-divider {
    display: none;
  }

  .program-card {
    padding: 1.9rem 1.7rem 1.9rem;
  }
}

/* ===== Pre-DP Program hero ===== */

.program-hero {
  padding: 2.5rem 4rem 0;
  background: #ffffff;
}

.program-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.3rem;
}

.program-hero-main {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.program-hero-text {
  max-width: 40rem;
}

.program-hero-breadcrumb {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.program-hero-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 2.9rem;
  margin: 0 0 0.5rem;
}

/* штамп справа — как на других страницах */

.program-hero-stamp {
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  border: 0.12rem solid #000;
  background: #ffe94a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  gap: 0.2rem;
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1rem 2.3rem rgba(0, 0, 0, 0.4);
  transform-origin: 50% 50%;
}

.program-hero-stamp-top {
  font-weight: 700;
}

.program-hero-stamp-bottom {
  font-weight: 500;
}

/* Картинка hero (то, что должно анимироваться) */

.program-hero-image-wrap {
  max-width: 64rem;
  margin: 2.2rem auto 0;
  border-radius: 2.4rem 2.4rem 2.4rem 2.4rem; /* можно 2.4rem 2.4rem 0 0, если нужно как в макете */
  overflow: hidden;
  box-shadow: 0 1.7rem 3.4rem rgba(0, 0, 0, 0.25);
}

.program-hero-image {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
}

/* адаптив */

@media (max-width: 64rem) {


  .program-hero-main {
    flex-direction: row;
  }
}

@media (max-width: 48rem) {
  .program-hero {
    padding: 2rem 1.5rem 0;
  }

  .program-hero-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .program-hero-stamp {
    align-self: flex-start;
    margin-top: 0.6rem;
  }

  .program-hero-image-wrap {
    margin-top: 1.8rem;
  }
}
.section-hero-text {
    padding: 11rem 0 2.5rem;
}
.section-hero-title {
    font-size: 5.75rem;
    margin: 0;
}
.single .section-hero-title {
    max-width: 50rem;
}
.section-hero-breadcrumb, .section-hero-breadcrumb a {
    font-size: 0.8rem;
    color: #000;
    text-decoration: none;
}
span.breadcrumb_last {
    font-weight: 700;
}
.section-hero-image-wrap {
    height: 42.5rem;
    position: relative;
    /* overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    transform: translateZ(0);*/
        border-top-right-radius: 3rem;
    border-top-left-radius: 3rem;
}
.section-hero-image {
          border-top-right-radius: 3rem;
    border-top-left-radius: 3rem;
}

.page-template-page-admissions .section-hero-image-wrap {
    height: 26.5rem;
}
.section-hero-image-wrap img {
    max-width: 100%;
    height: 110%;
    display: block;
    object-fit: cover;

}
/*
.section-hero-image-wrap:before {
  height: 5rem;
  content: "";
  position: absolute;
  left: 0;
  right: 0;
    bottom: -60px;
    border-radius: 3rem;
    background: #F8F8F8;
    z-index: 9;
}*/
/* ===== Pre-DP intro card with video ===== */

.pre-intro-card {
  padding: 8rem 0rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3.5rem;
}
.page-template-page-program1 .pre-intro-card {
    padding: 6rem 0rem 6.5rem;
}
.page-campus2 .pre-intro-card {
    padding: 0rem 0rem 6.5rem;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.pre-intro-card2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
        align-items: center;
        gap: 6rem;
        padding: 2.5rem 0rem 6rem;
}
.pre-intro-title {
  margin: 0 0 2rem;
}

.pre-intro-body {
  margin: 0 0 3rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary, #444);
}

.pre-intro-links {
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  align-items: center;
}

.pre-intro-link {
  text-decoration: none;
  color: #ff5a1f;
  font-weight: 500;
}
.pre-intro-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.08rem;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.pre-intro-link:hover::after {
  transform: scaleX(1);
}

.pre-intro-sep {
    color: #000;
    font-weight: 300;
}

/* превью видео */

.pre-intro-video {
    border: none;
    padding: 0;
    background: transparent;
    border-radius: 3rem;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    /* box-shadow: 0 1.6rem 3.2rem rgba(0, 0, 0, 0.2); */
    height: 28rem;
}
.pre-intro-card2 .pre-intro-video {
  height: auto;
}
.pre-intro-video img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* оранжевая кнопка play */

.pre-intro-play {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
    width: 7.3rem;
    height: 7.3rem;
  border-radius: 50%;
  background: #ff5a1f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pre-intro-play {
  transform: translate(-50%, -50%) scale(1.05);
}

/* ===== Video modal ===== */

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}

.video-modal.is-open {
  display: block;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.video-modal-dialog {
    position: relative;
    max-width: 56rem;
    /* margin: 5vh auto; */
    padding: 0;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-modal-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 3rem;
  overflow: hidden;
}

.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-modal-close {
  position: absolute;
  right: -0.5rem;
  top: -0.5rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #000000;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.4);
}

/* ===== Бегущая строка ===== */

.pre-marquee {
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  overflow: hidden;
  padding: 2rem 0;
}

.pre-marquee-inner {
  max-width: 100%;
  white-space: nowrap;
}

.pre-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.8rem;
  animation: pre-marquee 36s linear infinite;
}

.pre-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2.8rem;
  padding-block: 1.1rem;
font-family: var(--font-title);
font-size: 3rem;
font-weight: 400;
}
.pre-marquee-item a {
  color: var(--primary-color);
  text-decoration: none;
}
.pre-marquee-text {
  letter-spacing: 0.07em;
}

.pre-marquee-btn {
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* бесконечный скролл */

@keyframes pre-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* адаптив */

@media (max-width: 48rem) {


  .pre-intro-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .pre-intro-video {
    order: -1; /* картинка сверху */
  }

  .pre-marquee-item {
    font-size: 1.1rem;
  }
}

/* ===== Curriculum Overview ===== */

.pre-curriculum {
  padding: 5.5rem 0rem 5.5rem;
}

.pre-curriculum-title {
  font-size: 3.5rem;
  margin: 0 0 1.9rem;
}

.pre-curriculum-lead {
  margin: 0 0 3.2rem;
  font-size: 1.1rem;
  line-height: 1.63;
  color: var(--text-primary);
  max-width: 67rem;
}

.pre-curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.3rem;
}

.curriculum-col-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.25;
  margin: 0 0 1.8rem;
}

/* список курсов */

.curriculum-list {
  border-top: 1px solid #000;
}

.curriculum-item {
  width: 100%;
  border: none;
  padding: 0;
  background: transparent;
  border-bottom: 1px solid #000;
  text-align: left;
  cursor: pointer;
}

.curriculum-item-header {
  padding: 0.7rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.curriculum-item-title {
  font-size: 1.2rem;
  font-weight: 400;
  color: #000;
}

/* тело аккордеона */

.curriculum-item-body {
  font-size: 0.8rem;
  line-height: 1.5;
  overflow: hidden;
  padding-right: 3rem;
  transition: max-height 0.28s ease, padding-bottom 0.28s ease;
  height: 0;
}

/* открытое состояние */

.curriculum-item.is-open .curriculum-item-body {
  padding-bottom: 1.25rem;
      margin-top: -0.5rem;
      height: 100%;
}
.curriculum-item-body p {
  margin: 0;
}
/* кружок +/− */

.curriculum-toggle {
  flex: 0 0 auto;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: #ff5a1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.curriculum-toggle-line {
  position: absolute;
  background: #000;
  border-radius: 999rem;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.curriculum-toggle-line--vert {
  width: 0.15rem;
  height: 1.05rem;
}

.curriculum-toggle-line--horiz {
  width: 1.05rem;
  height: 0.15rem;
}

/* в open вертикальная линия скрывается → минус */

.curriculum-item.is-open .curriculum-toggle-line--vert {
  transform: scaleY(0);
  opacity: 0;
}

/* hover */

.curriculum-item:hover .curriculum-toggle {
  transform: scale(1.1);
}

/* адаптив */

@media (max-width: 64rem) {

  .pre-curriculum-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  .pre-curriculum {
    padding: 3rem 0rem;
  }

  .pre-curriculum-inner {
    padding: 2.4rem 1.4rem 2.6rem;
    border-left-width: 0.25rem;
    border-right-width: 0.25rem;
  }

  .pre-curriculum-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3.8rem;
  }

  .curriculum-item-body {
    padding-right: 0;
  }
}
/* ===== FAQ card over photo ===== */

.pre-faq {
    position: relative;
}

/* фон */

.pre-faq-bg {
  border-radius: 3rem;
  overflow: hidden;
  height: 38rem;
}

.pre-faq-bg-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* карточка поверх фото */

.pre-faq-card {
  position: absolute;
  left: 50%;
    top: 15rem;
    transform: translate(-50%, 0);
    width: calc(100% - 14rem);
    background: #FFE9E9;
    border-radius: 3rem;
    padding: 4.5rem 5.75rem;
}

/* список FAQ внутри карточки */
.pre-faq-title {
  font-size: 2.5rem;
  margin: 0 0 1.5rem;
}
.pre-faq-card .curriculum-list {
  border-top: none;
}

.pre-faq-card .curriculum-item-header {
padding: 1.9rem 0;
}

.pre-faq-card .curriculum-item-title {
  font-size: 1.8rem;
font-weight: 400;
line-height: 180.556%;
}

.pre-faq-card .curriculum-item-body {
  font-size: 1rem;

}
.pre-faq-card .curriculum-item.is-open .curriculum-item-body {
    margin-bottom: 1rem;
}
/* последний элемент без нижней линии */

.pre-faq-card .curriculum-item:last-child {
  border-bottom: none;
}

/* линк под карточкой */

.pre-faq-link-wrap {
    text-align: center;
    margin-top: 2.8rem;
    position: absolute;
        bottom: -3.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.pre-faq-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  text-decoration: none;
  color: #000000;
}

.pre-faq-link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* адаптив */

@media (max-width: 48rem) {


  .pre-faq-bg {
    border-radius: 2rem;
  }

  .pre-faq-card {
    width: 85%;
  }

  .pre-faq-link-wrap {
    margin-top: 2rem;
    width: 100%;
  }
}
/* ===== Hear from our students – секция с каруселью ===== */

.pre-videos {
    padding: 25rem 0 10rem;
}
.single .pre-videos {
    padding: 0;
}
.pre-videos-title {
  margin: 0;
  font-size: 2.5rem;
}

/* Карусель */

.pre-videos-carousel {
  margin-top: 3.75rem;
}

.video-carousel-window {
  position: relative;
  overflow: hidden;
  /* делаем выравнивание вправо, правый край – в край экрана */
  padding-left: 7rem;
  padding-right: 0;
}

@media (max-width: 48rem) {
  .video-carousel-window {
    padding-left: 1.5rem;
  }
}

.video-carousel-track {
  display: flex;
  gap: 2.6rem;
  padding-bottom: 0.5rem;
  transform: translateX(0);
  transition: transform 0.35s ease;
  will-change: transform;
}

/* ширина слайда: так получится примерно 2.5 карточки на десктопе */
.video-slide {
  flex: 0 0 35.5rem;
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: none;
  padding: 0;
  background: transparent;
  height: 28.25rem;
}

.video-slide-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.video-cover {
    height: 100%;
}
/* оранжевый плей поверх */

.video-slide-play {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: #ff5a1f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1.1rem 2.4rem rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-slide-play-icon {
  color: #ffffff;
  font-size: 1.6rem;
  margin-left: 0.06rem;
}

.video-slide:hover .video-slide-play {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 1.5rem 2.8rem rgba(0, 0, 0, 0.45);
}

/* стрелки */

.video-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  border: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--primary-color);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
  z-index: 3;
}

.video-carousel-arrow-icon {
  font-size: 2.5rem;
}

.video-carousel-arrow--prev {
  left: 5.25rem;
}

.video-carousel-arrow--next {
  right:5.25rem;
}

@media (max-width: 48rem) {
  .video-slide {
    flex: 0 0 80%;
        height: 20.25rem;
  }

  .video-carousel-arrow--prev {
    left: 1.5rem;
    transform: translate(-120%, -50%);
  }
}

/* ===== CTA под каруселью ===== */

.pre-videos-cta {
  max-width: 64rem;
  margin: 2.8rem auto 0;
}

.pre-videos-cta-title {
  margin: 0 0 1.3rem;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.3rem;
}

.pre-videos-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pre-videos-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.8rem;
  border-radius: 999rem;
  background: #ffd7d0;
  font-size: 0.85rem;
  text-decoration: none;
  color: #000;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 0.7rem 1.4rem rgba(0, 0, 0, 0.18);
}

.pre-videos-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 1rem 1.8rem rgba(0, 0, 0, 0.25);
}

@media (max-width: 48rem) {

  .pre-videos-cta-row {
    gap: 0.6rem;
  }

  .pre-videos-pill {
    width: 100%;
    justify-content: center;
  }
}

.emis-help {
    padding-bottom: 7.5rem;
}
.emis-help-inner {
  padding: 3rem 5rem 3rem 4.25rem;
  border-radius: 3rem;
  display: flex;
  align-items: center;
  gap: 5rem;
  background: #FFE9E9;
}

.emis-help-photo-circle {
  width: 14.5rem;
  height: 14.5rem;
  border-radius: 50%;
  border: 2px solid #ff6b4a; /* оранжевый */
  overflow: hidden;
}

.emis-help-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.emis-help-text {
  flex: 1 1 auto;
  border-right: 1px solid var(--primary-color);
      padding: 1rem 0;
}

.emis-help-label {
  margin-bottom: 1.25rem;
  font-size: 3rem;
font-weight: 400;
margin-top: 0;
}

.emis-help-name {
  font-size: 1.5rem;
  margin: 0 0 0.15rem;
}

.emis-help-role {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.emis-help-email {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
}

.emis-help-email:hover {
  text-decoration: underline;
}

.emis-help-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.emis-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 3rem;
  border-radius: 999px;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.emis-help-btn:hover {
  opacity: .9;
}

/* мобилка */
@media (max-width: 768px) {
  .emis-help-inner {
    flex-direction: column;
    text-align: center;
  }

  .emis-help-actions {
    width: 100%;
  }

  .emis-help-btn {
    width: 100%;
  }
}

/* Layout Container: Flexbox to put Sidebar next to Content */
.admission-layout-container {
    display: flex;
    gap: 7rem;
    position: relative;
    padding-top: 6rem;
    border-top-right-radius: 3rem;
    border-top-left-radius: 3rem;
    background: #F8F8F8;
}

/* Sidebar: Sticky Logic */
.admission-sidebar {
    width: 24.4rem;
    flex-shrink: 0;
}

/* Content Area */
.admission-content {
    flex-grow: 1;
    min-width: 0; /* Prevents flex issues */
}

/* Menu Styles */
.inner-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inner-nav-link {
    display: block;
    padding: 1.125rem 0;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid #000;
    color: #000;
    font-weight: 300;
    font-size: 1.1rem;
}

.inner-nav-link:hover,
.inner-nav-link.active {
    color: #FF5722; /* Orange from your design */
    border-left-color: #FF5722;
    font-weight: bold;
}

/* Section Spacing */
.breakout-section {
    width: 200vw;
    position: relative;
    /* left: 50%; */
    /* right: 50%; */
    margin-left: -50vw;
    /* margin-right: -50vw; */
    background: #F8F8F8;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    overflow: hidden;
    padding: 15px 0;
    margin-top: 60px;
    margin-bottom: 60px;
    z-index: 1;
}
.before-page {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 153.846%;
    margin-bottom: 3rem;
        margin-top: 1rem;
}
.page-section {
    margin-bottom: 4.5rem;
    scroll-margin-top: 6rem; /* Important for smooth anchor scrolling */
}
.page-section h2 {
    color: #FF4810;
    font-size: 2.5rem;
    margin: 0;
    margin-bottom: 1.5rem;
}
.page-section h3 {
    font-size: 1.5rem;
    margin: 0;
    font-family: var(--font-base);
    font-weight: 500;
    margin-bottom: 1rem;
}
.page-section td, .page-section th, .page-section li, .page-section p {
  font-size: 1.1rem;
  line-height: 154.545%;
  font-weight: 300;
  margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}
.page-section strong {
  font-weight: 700;
}
.generic-content ul {
    padding-left: 0;
}
.generic-content ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
  list-style: none;
}
.generic-content ul li:before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary-color);
  position: absolute;
  top: 0.55rem;
  left: 0;
  border-radius: 100%;

}
.page-section .step-content h3 {
  margin-bottom: 0;
}
.page-section .generic-content h3:not(:first-child) {
    margin-top: 2rem;
}
.page-section .generic-content:not(:first-child) ul {
  margin-bottom: 2.75rem;
  margin-top: 2rem;
}
.page-section .step-content p {
  margin: 0;
}
/* Process Steps Styling */
.process-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.step-num {
    background: #FF5722;
    color: white;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
   font-weight: 400;
    flex-shrink: 0;
    font-size: 1.75rem;
    margin-top: 0.15rem;
    font-family: var(--font-title);
}
.page-section .step-content h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 600;
}
.text_after_table--deadlines p {
  font-size: 0.9rem;
  line-height: 138.889%;
}
.quote-card {
    padding: 1.8rem 2.6rem;
    border-radius: 2rem;
    background: #FFE9E9;
    margin-top: 2.25rem;
    margin-bottom: 4.5rem;
}
.quote-card a {
  color: var(--primary-color);
  text-decoration: none;
}
.section-Tuition_Scholarships .process-steps-list {
  margin-top: 2rem;
}
.section-Tuition_Scholarships .step-content {
    padding-top: 1rem;
}
.section-Tuition_Scholarships .process-step {
    gap: 1.2rem;
    margin-bottom: 1.6rem;
}
.section-Tuition_Scholarships .process-step ul {
  margin-bottom: 0;
}
.section-Application_Process_tips {
    background: var(--primary-color);
    padding: 4rem 3rem 3rem;
    border-radius: 3rem;
    margin-bottom: 7rem;
}
.section-Application_Process_tips h2 {
  color: #fff;
  width: 60%;
}
.section-Application_Process_tips .step-num {
  background: #fff;
  color: var(--primary-color);
}
.section-Application_Process_tips .process-steps-list {
  margin-top: 2.25rem;

}
.section-Contact_Card {
    margin-bottom: 11rem;
}
/* Flex Container for Image + Text */
.contact-profile {
    display: flex;
    align-items: flex-start; /* Align to top, or use 'center' if you prefer */
    gap: 4rem; /* Space between image and text */
    margin-bottom: 2.5rem; /* Space before the buttons */

}

/* --- IMAGE STYLING --- */
.contact-profile img {
    width: 14.5rem;      /* Adjust based on exact design size */
    height: 14.5rem;
    object-fit: cover; /* Ensures image doesn't stretch */
    border-radius: 50%; /* Makes it a perfect circle */
    flex-shrink: 0;    /* Prevents image from shrinking on smaller screens */
        object-position: top;
}

/* --- TEXT CONTENT --- */
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* "We're Here For You!" Heading */
.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
}

/* The long description text */
.contact-info p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* "Maya Kogan" */
.contact-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    display: block;
}

/* "Director of Admissions..." */
.contact-role {
    font-size: 1rem;
    font-weight: 300;
    color: var(--primary-color);
    display: block;
}

/* Email Link */
.contact-email {
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}

.contact-email:hover {
    text-decoration: underline;
    color: #FF5722;
}

/* --- BUTTONS ROW --- */
.contact-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap; /* Allows buttons to stack on mobile */
}

.btn-orange {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    width: 15rem;
    height: 3.2rem;
    line-height: 3.2rem;
    text-align: center;
}

.btn-orange:hover {
    background-color: #E64A19; /* Slightly darker orange */
}

/* --- MOBILE RESPONSIVENESS --- */
@media screen and (max-width: 900px) {
    .contact-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .contact-buttons {
        padding-left: 0;
        justify-content: center;
    }

    .contact-info p {
        margin: 0 auto 25px auto;
    }
}
/* --- DESKTOP STYLES --- */
.table-container {
    margin: 30px 0;
    width: 100%;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.1rem;
}

.responsive-table thead th {
    text-align: left;
    font-weight: 400;
    font-size: 1.3rem;
}

.responsive-table th, 
.responsive-table td {
    padding: 1.5rem 0;
    border-bottom: 1px solid #000;
}

/* --- MOBILE STYLES (Max-width 768px) --- */
@media screen and (max-width: 768px) {
    
    /* 1. Hide the table header completely */
    .responsive-table thead {
        display: none;
    }

    /* 2. Make rows look like separate "Cards" */
    .responsive-table, 
    .responsive-table tbody, 
    .responsive-table tr, 
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table tr {
        margin-bottom: 20px;
    }

    /* 3. Style the cells to look like list items */
    .responsive-table td {
        text-align: right; /* Value goes to the right */
        padding-left: 50%; /* Make space for the label on the left */
        position: relative;
        border: none;
        border-bottom: 1px solid #000;
    }

    .responsive-table td:last-child {
        border-bottom: 0;
    }

    /* 4. INJECT THE LABEL using the data attribute */
    .responsive-table td::before {
        content: attr(data-label); /* Grabs the text from PHP */
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #FF5722; /* Orange text for labels */
    }
}
/* Скрываем заголовки по умолчанию */
/* 1. ПРЯЧЕМ КОНТЕЙНЕР ДО ЗАГРУЗКИ СКРИПТА */
.type-animate {
  visibility: hidden;
}

/* 2. Курсор */
.type-animate::after {
  content: "|";
  display: none;
  margin-left: 2px;
  color: #FF5722;
  vertical-align: bottom;
  opacity: 0;
}

/* 3. Когда JS дает класс active — показываем курсор */
.type-animate.typing-cursor::after {
  display: inline-block;
  opacity: 1;
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 1. Прелоадер на весь экран */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F8F8F8; /* Белый цвет */
    z-index: 9999; 
    
    /* Начальное положение: Внизу (0), готов к движению вверх */
    transform: translateY(0);
    
    /* Центрирование спиннера */
    display: flex;
    justify-content: center;
    align-items: center;
        overflow-x: hidden;
}

/* 2. Спиннер или контент прелоадера */
.loader-content {
    /* Добавьте свои стили */
    color: #000;
    font-size: 20px;
}

/* 3. Скрываем основной контент, пока прелоадер активен */
#main-content {
    opacity: 0;
    overflow-x: hidden;
}
/* Общие стили для контейнера видео (у вас они уже есть, но проверьте position) */
.pre-intro-video,
.video-slide {
    position: relative;
    overflow: hidden; /* Чтобы iframe не вылезал, если есть скругления */
    cursor: pointer;
    /* Убедитесь, что у блоков есть высота/ширина, заданная в основном CSS */
}

/* Стили для вставленного iframe */
.js-inline-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 10; /* Поверх картинки */
    background: #000; /* На случай задержки загрузки */
}

/* Класс, который JS добавит после клика (чтобы скрыть обложку наверняка) */
.video-playing .video-cover {
    display: none;
}

/* --- IB CURRICULUM SECTION --- */
.ib-curriculum {
    padding: 7rem 0;
}

/* ВЕРХНЯЯ ЧАСТЬ (Grid) */
.ib-top-grid {
display: grid;
    gap: 3rem;
    margin-bottom: 8.5rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.ib-top-content {
    flex: 1;
}
.ib-title {
    margin: 0;
    margin: 2rem 0 1rem;
}
.ib-desc {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
}
.ib-desc p {
margin: 0;
}
.ib-top-media {
    flex: 1;
}
.ib-top-media img {
    width: 100%;
    height: auto;
    border-radius: 3rem; /* Скругление как на фото */
    object-fit: cover;
}

/* Аккордеон (доп стили к существующим) */
.ib-accordion-list {
    margin-top: 2rem;
    border-top: 0px;
}

.ib-accordion-list .curriculum-item-body {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    padding-right: 7rem;
}
.ib-accordion-list .curriculum-item-title {
    font-size: 1.4rem;
    font-weight: 500;
}
/* НИЖНЯЯ ЧАСТЬ (Tabs) */
.ib-bottom-grid {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

/* Навигация табов слева */
.ib-tabs-nav {
    width: 20rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ib-tab-btn {
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    padding: 0;
    cursor: pointer;
    color: #000;
    opacity: 1;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.36;
}

.ib-tab-btn:hover {
    color: var(--primary-color);
}

.ib-tab-btn.active {
    color: var(--primary-color);
    font-weight: 700;
}

/* Контент табов справа */
.ib-tabs-content {
    flex: 1;
    border-left: 1px solid #000;
    padding-left: 5rem;
    min-height: 20rem;
}

.ib-tab-panel {
    display: none; /* Скрываем все панели */
    animation: fadeIn 0.5s;
}

.ib-tab-panel.active {
    display: block; /* Показываем активную */
}

.ib-panel-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-family: serif;
    margin-top: 0;
}

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

/* МОБИЛКА */
@media (max-width: 900px) {
    .ib-top-grid, .ib-bottom-grid {
        flex-direction: column;
        gap: 2rem;
        grid-template-columns: 1fr;
    }
    .ib-tabs-nav {
        width: 100%;
        flex-direction: row; /* На мобилке табы можно сделать горизонтальными скроллящимися */
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    .ib-tab-btn {
        white-space: nowrap;
        margin-right: 1rem;
    }
    .ib-tabs-content {
    border-left: none;
    padding-left: 0;
}
}
/* Wrapper for each item (Title + Text) */
.ib-subject-item {
    margin-bottom: 1rem; /* Space between items */
}

.ib-subject-item:last-child {
    margin-bottom: 0;
}

/* The Orange Title */
.ib-subject-orange-title {
    color:var(--primary-color);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0;
    font-family: inherit;
    margin-top: 0;
}

/* The Text */
.ib-subject-text {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Optional: Fix for paragraphs inside Wysiwyg output */
.ib-subject-text p {
    margin-bottom: 0;
}
.ib-subject-text p:last-child {
    margin-bottom: 0;
}
/* --- MIDDLE DIVIDER (Star + Text) --- */
.ib-middle-divider {
    display: flex;
    align-items: center;
gap: 2.5rem;
    margin-bottom: 3.5rem;
    max-width: 60rem;
}

.ib-star-icon {
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
}

.ib-star-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ib-middle-content {
font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.46;
    color: #FF5722; /* Ваш фирменный оранжевый */
}

/* Убираем лишние отступы у параграфов внутри */
.ib-middle-content p {
    margin: 0;
}

/* МОБИЛКА */
@media (max-width: 768px) {
    .ib-middle-divider {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .ib-star-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .ib-middle-content {
        font-size: 0.9rem;
    }
}
.pre-intro-play-icon {
    line-height: 1;
}


@media (max-width: 1680px) {
:root {
      font-size: 18px;
    }
    .container {
    padding: 0 5rem;
}
.global-photo-circle {
    width: 27rem;
    height: 27rem;
    margin-left: 6rem;
}
.global-main {
    padding: 5rem 0;
}

.global-arrow-prev {
    left: 6rem;
}
.pre-faq-card {
    padding: 4.5rem 5.75rem;
}
.admission-layout-container {
  padding-top: 4rem;
}
.section-Application_Process_tips h2 {
    width: 75%;
}
.btn-orange {
    width: 13rem;
}
}
@media (max-width: 1440px) {
:root {
      font-size: 17px;
    }
        .container {
    padding: 0 4rem;
}
.global-photo-circle {
    margin-left: 3rem;
}
.footer-nav {
    padding: 3.4rem 3.5rem;
}
.global-arrow-prev {
    left: 6rem;
}
.pre-faq-card {
    padding: 4.5rem 5.75rem;
}
.admission-layout-container {
  padding-top: 4rem;
}
.global-avatar.avatar-1 {
    top: 4rem;
    left: 6rem;
}
.global-avatar.avatar-2 {
    bottom: 2rem;
    left: 4rem;
}
.global-avatar.avatar-3 {
    bottom: 2rem;
    right: 4.5rem;
}
.global-avatar.avatar-4 {
    bottom: 1rem;
    right: 7.5rem;
}
.global-card {
  right: 6rem;
}
.global-arrow-next {
    right: 4.5rem;
}
.footer-nav ul {
    padding: 3.4rem 0;
}
.pre-videos {
    padding: 20rem 0 10rem;
}
}
@media (max-width: 1360px) {
:root {
      font-size: 16px;
    }
        .container {
    padding: 0 3rem;
}
.global-arrow-prev {
    left: 6rem;
}
.pre-faq-card {
    padding: 4.5rem 5.75rem;
}
.admission-layout-container {
  padding-top: 4rem;
}
.video-carousel-window {
    padding-left: 3rem;
}
.video-carousel-arrow--prev {
    left: 1.25rem;
}
.video-carousel-arrow--next {
    right: 1.25rem;
}
.section-hero-text {
    padding: 8rem 0 2.5rem;
}




}

.mobile-toggle {
    /* display: none; */
    opacity: 0;
}

/* --- Mobile Styles (Max width 768px) --- */
@media (max-width: 768px) {
  :root {
        font-size: 15px;
    }  
        .container {
        padding: 0 1.5em;
    }
    nav.hero-nav {
    width: 100%;

}
    /* 1. Show the Hamburger Button */
.mobile-toggle {
    opacity: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    /* UPDATED DIMENSIONS */
    width: 50px;       /* As requested */
    height: 12px;      /* Height of the total button (defines gap between lines) */
    
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 100%;
    
    /* UPDATED HEIGHT */
    height: 1px;       /* As requested */
    
    background-color: #333;
    transition: 0.3s ease-in-out;
    transform-origin: center;
}

/* 2. Hide the Menu by default (Off-canvas) */
/* (This part remains mostly the same, just ensured z-index works) */
.hero-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #F8F8F8;
    padding-top: 4rem;
    transition: 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
}

    .hero-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        justify-content: flex-start;
        list-style: none;
        padding: 0;
        padding-top: 8rem;
    }

/* 3. The "Open" State */
body.menu-open .hero-nav {
    right: 0;
}

body.menu-open {
    overflow: hidden;
}

/* 4. Hamburger Animation (Turn 2 bars into X) */
/* Top Bar: Moves down and rotates */
body.menu-open .mobile-toggle .bar:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

/* Bottom Bar: Moves up and rotates */
body.menu-open .mobile-toggle .bar:nth-child(2) {
    transform: translateY(-5.5px) rotate(-45deg);
}
    .hero-top {
    padding: 1.3rem 1.5rem;
}
.hero-main {
        padding-top: 13rem;
    }
    .circle-8 {
    top: 0;
    width: 8rem;
    height: 8rem;
    top: 0rem;
    right: 0rem;
}
.circle-3 {
    top: 0;
        width: 8em;
    height: 8rem;
}
.hero-circle {
  transform: scale(0.8);
}
.circle-7 {
top: 0rem;
        right: 10.3rem;
        width: 5rem;
        height: 5rem;
}
.circle-4 {
    width: 9rem;
    height: 9rem;
    bottom: 27rem;
    left: auto;
    right: 1rem;
}
.circle-2 {
    top: 1rem;
    left: 6rem;
        width: 5.5rem;
    height: 5.55rem;
}
.circle-1 {
    width: 19rem;
    height: 19rem;
    top: 33rem;
    left: 1rem;
}
.circle-6 {
        width: 7rem;
        height: 7rem;
        top: 31rem;
        right: 7rem;
    }
.circle-5 {
        width: 7rem;
        height: 7rem;
        left: 1rem;
        bottom: 28rem;
    }
.stamp > div, .cta-stamp > div {
    transform: scale(0.8);
}
.stamp {
    bottom: 1rem;
    right: 1rem;
}
    .mission {
        padding: 0rem 0rem 4rem;
    }
        .mission-title {
        font-size: 3rem;
    }
    .container.mission-content {
    padding: 0;
}
.mission-vector svg {
    width: 75%;
}
.mission-vector {
    top: 22rem;
}
.mission-stats-card {
    margin: -5rem 2rem 0;
}
    .mission-bg {
        padding: 3rem 1.75rem 8rem;
    }
        .unique {
        padding:2rem 0 5rem;
    }
    /* Добавляем стили для обертки слова, которую создаст SplitType */
.word {
  display: inline-block; /* Слово как единый блок */
  white-space: nowrap;   /* ЗАПРЕЩАЕМ перенос строк внутри слова */
  margin-right: 0.2em;   /* Возвращаем пробел между словами (т.к. inline-block может его съесть) */
}
.global-card {
  height: auto;
}
/* Буквы оставляем как есть */
.char {
  display: inline-block;
}
.fs-70 {
    font-size: 2.5rem;
}
.fs-50 {
    font-size: 2rem;
}
.global-photo-circle {
  width: 20rem;
  height: 20rem;
  margin: 3rem auto -3rem;
}
.footer-socials {
    gap: 1rem;
}
  .global-arrow-prev {
    left: 5%;
    bottom: 72.5%;
  }

  .global-arrow-next {
    right: 5%;
    bottom: 72.5%;
  }
  .hero-nav ul {
    font-size: 1.1rem;
    text-align: center;
}
.about-intro-inner {
    gap: 3rem;
}
.programs-cards {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    position: relative;
    z-index: 9;
    bottom: auto;
    left: auto;
    width: 100%;
    transform: translateX(0);
}
.pre-intro-links {
    gap: 0.75rem;
}
.emis-help-text {
    flex: 1 1 auto;
    border-bottom: 1px solid var(--primary-color);
    border-right: none;
    padding: 1rem 0 3rem;
}
.emis-help-inner {
    padding: 3rem 3rem 3rem 3rem;
    gap: 3rem;
}
.pre-videos {
    padding: 40rem 0px 5rem;
}
.section-hero-title {
    font-size: 3.5rem;
}
    .admission-layout-container {
        padding-top: 4rem;
    }
    .admission-sidebar {
    width: 100%;
}
.admission-layout-container {
    gap: 5rem;
    flex-direction: column;
}
.responsive-table th, .responsive-table td {
    padding: 1.5rem 1rem;
}
.hero-logo a img {
    max-width: 100%;
}
.global-students {
    padding: 4rem 0rem 0rem;
}
    .footer-nav {
        padding: 0 2rem;
    }
    .footer-badges {
    justify-content: start;
}
.academics-lead {
    font-size: 1.5rem;
}
.section-hero-image-wrap {
    height: 30.5rem;
}
.pre-intro-video {
    height: 20rem;
}
.video-carousel-arrow--prev {
        left: 5.25rem;
    }
        .video-carousel-arrow--next {
        right: 3.25rem;
    }
    .section-Application_Process_tips {
    padding: 3rem 1.75rem 2rem;
    margin-bottom: 5rem;
}
.section-Contact_Card {
    margin-bottom: 6rem;
}
.hero-nav ul.sub-menu {
    position: relative;
}
}
/* По умолчанию на мобильном подменю скрыто */
@media (max-width: 991px) {
    .sub-menu {
        display: none;
    }
    
    /* Когда JS добавляет класс .submenu-active родителю */
    .menu-item-has-children.submenu-active > .sub-menu {
        display: block;
    }
}
.page-template-page-mission-main .pre-intro-card {
    padding: 0 0rem 2.5rem;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.5rem;
}
.page-template-page-mission-main .section-hero-text {
    padding: 11.5rem 0 1rem;
}
.page-template-page-mission-main .pre-intro-body {
    padding-right: 2.5rem;
}
/* MISSION PROJECTS GRID */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns */
    gap: 2.25rem; /* Space between cards */
}
.mission-card-image {
    overflow: hidden;
    border-radius: 3rem;
    margin-bottom: 2.25rem;
}
.mission-card-image img {
    width: 100%;
    height: 25rem;
    object-fit: cover;
    transition: transform var(--transition-medium);
    display: block;
}
.mission-card-image:hover img {
    transform: scale(1.05);
}
.mission-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400; /* Looks like regular weight in design */
}
.mission-card-title a {
  color: var(--text-primary);
  text-decoration: none;
}
.mission-card-text {
  font-size: 1.1rem;
  line-height: 1.63;
  padding-right: 2rem;
}
.mission-card-link a {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}
section.mission-activities {
    padding: 6rem 0 7rem;
}
section.mission-activities.page-campus3 {
    padding: 1rem 0 9rem;
}
.mission-activities--title {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 2.5rem;
  margin-top: 0;
}
.page-campus3 .mission-grid {
    grid-template-columns: repeat(2, 1fr);
}
.page-campus3 .mission-card-image img {
    height: 19rem;
}
/* Responsive */
@media (max-width: 991px) {
    .mission-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .mission-grid {
        grid-template-columns: 1fr;
    }
    .page-template-page-mission-main .pre-intro-card {
        grid-template-columns: minmax(0, 1fr);
    }
}

.faq-intro {
    padding: 8rem 0rem 9.5rem;
    border-top-right-radius: 3rem;
    border-top-left-radius: 3rem;
    background: #F8F8F8;
    /* margin-top: -5rem; */
    z-index: 9;
    position: relative;
}
.faq-intro .faculty-tabs {
    gap: 1.8rem;
    margin-bottom: 3rem;
}
.faq-intro .faculty-tab.is-active {
    color: var(--primary-color);
}
.faq-intro  .curriculum-item-title {
    font-size: 1.5rem;
}
.faq-intro  .curriculum-item-body {
  font-size: 1rem;
  max-width: 65rem;
}
.faq-intro .curriculum-item {
    display: block;
}
.faq-intro .curriculum-item-header {
    padding: 2.2rem 0;
}

/* 1. TABS NAVIGATION */
.mission-nav {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    border-bottom: 1px solid #ddd;
}

.mission-tab-btn {
    background: none;
    border: none;
    font-size: 18px;
    padding: 10px 0;
    cursor: pointer;
    color: #999;
    position: relative;
}

.mission-tab-btn.active {
    color: #000;
    font-weight: bold;
}

.mission-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #FF5722; /* Your Theme Color */
}

/* 2. CHESS LAYOUT */
.chess-row {
    display: flex;
    align-items: center;

}

/* Make sure media looks good */
.chess-col-media img,
.chess-col-media video {
    width: 100%;
    border-radius: 20px; /* From design */
}

/* Slider Specifics */
.mission-gallery-slider {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}
.mission-gallery-slider .swiper-slide {
    height: auto; /* Let content dictate height */
}

/* Responsive */
@media (max-width: 991px) {
    .chess-row, 
    .chess-row:nth-child(even) {
        flex-direction: column-reverse; /* Text usually goes below image on mobile */
        gap: 30px;
    }
    .chess-col-text, .chess-col-media {
        width: 100%;
    }
}

/* Четные ряды переворачиваем (Текст справа, Картинка слева) */
.chess-row:nth-child(odd) {
    flex-direction: row-reverse;
}

/* Текстовая колонка (55%) */
.chess-col-text {
    /* calc(55% - половина отступа) */
    flex: 0 0 calc(52% - 2.5rem); 
    max-width: calc(52% - 2.5rem);
    width: calc(52% - 2.5rem);
}

/* Медиа колонка (45%) */
.chess-col-media {
    /* calc(45% - половина отступа) */
    flex: 0 0 calc(48% - 2.5rem);
    max-width: calc(48% - 2.5rem);
    width: calc(48% - 2.5rem);
    
    min-width: 0; 
}
/* --- Mobile Layout --- */
@media (max-width: 991px) {
    .chess-col-text, 
    .chess-col-media {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}
@media (max-width: 991px) {
    .chess-row, .chess-row:nth-child(odd) {
        flex-direction: column-reverse;
        gap: 2rem;
    }
}

/* Контейнер слайдера */
.custom-slider {
    position: relative;
    width: 100%;
    border-radius: 1.5rem;
        height: 27.5rem;
}

/* Трек, который скроллится */
.custom-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Магия CSS: Прилипание */
    scroll-behavior: smooth; /* Плавность для JS кнопок */
    
    /* Скрываем скроллбар */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE */
}
.custom-slider-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Слайд */
.custom-slide {
    flex: 0 0 100%; /* Ширина 100% */
    width: 100%;
    scroll-snap-align: center; /* Центрирование при остановке */
    position: relative;

}

.custom-slide img.slide-img,
.custom-slide video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 3rem;
}

/* Стрелки навигации */
.custom-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    border: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary-color);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    z-index: 99;
}

.custom-slider-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.custom-slider-arrow.prev { left: -1.75rem; }
.custom-slider-arrow.next { right: -1.75rem; }

/* Шахматка (тот же CSS, что и был) */
.chess-row { display: flex; align-items: center; gap: 5rem; margin-bottom: 4.5rem; }

/* 2. Трек должен занимать всю высоту */
.custom-slider-track {
    display: flex;
    height: 100%; /* Важно */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.custom-slider-track::-webkit-scrollbar {
    display: none;
}

/* 3. Слайд тоже на всю высоту */
.custom-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%; /* Важно */
    scroll-snap-align: center;
    position: relative;
}

/* 4. Картинки и Видео: растягиваем и обрезаем (Cover) */
.custom-slide img.slide-img,
.custom-slide video,
.custom-slide .video-cover img,
.custom-slide .js-native-video-wrapper {
    height: 100% !important; /* Принудительно на всю высоту слайда */
}

/* Обертка видео (на всякий случай) */
.custom-slide .js-native-video-wrapper {
    position: relative;
    overflow: hidden;
}

/* --- АДАПТИВ (Мобильные) --- */
/* На мобильном 550px может быть слишком много, лучше сделать авто или меньше */
@media (max-width: 768px) {
    .custom-slider {
        height: 350px; /* Или оставьте 550px, если нужно и на телефоне так */
    }
}
@media (max-width: 991px) {
    .chess-row, .chess-row:nth-child(even) { flex-direction: column-reverse; gap: 2rem; }
    .chess-col-text, .chess-col-media { width: 100%; }
}

.page-template-page-mission-tabs .faculty-tab.is-active {
  color: var(--primary-color);
}
.mission-content-wrapper h2.mission-intro-title {
    font-size: 2.5rem;
    max-width: 43rem;
}
.mission-content-wrapper .mission-intro-text {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.63;
    max-width: 65rem;
}
.mission-intro-block {
    margin-bottom: 5rem;
}

/* Контейнер для точек */
.custom-slider-dots {
    position: absolute;
    bottom: -2rem; /* Отступ снизу */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem; /* Расстояние между точками */
    z-index: 10;
    pointer-events: none; /* Чтобы контейнер не мешал кликам, если он широкий */
}

/* Сами точки */
.slider-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #D9D9D9; /* Полупрозрачный белый */
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto; /* Возвращаем кликабельность точкам */
}

/* Активная точка */
.slider-dot.active {
    background: var(--primary-color); /* Оранжевый (тема) */
    opacity: 1;
}

/* Ховер эффект */
.slider-dot:hover {
    background: var(--primary-color);
}
.chess-col-text h3 {
    font-size: 2.5rem;
        margin: 0;
    margin-bottom: 1rem;
}
.chess-col-text .chess-desc {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 300;
}
.chess-read-more {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.1rem;
    margin-top: 1.5rem;
    display: inline-block;
    text-decoration: none;
}
.chess-read-more::after {
    content: "";
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    height: 0.08rem;
    transform: scaleX(0);
    transform-origin: left center;
    background: var(--primary-color);
    transition: transform var(--transition-fast);
}
.chess-read-more:hover::after {
    transform: scaleX(1);
}
.chess-grid {
    margin-bottom: 8.5rem;
}

/* --- Section Layout --- */
.emis-intro-section {
padding: 5rem 0rem 3.5rem;
    border-top-right-radius: 3rem;
    border-top-left-radius: 3rem;
    background: #F8F8F8;
    /* margin-top: -5rem; */
    z-index: 9;
    position: relative;
}

.emis-intro-header {
    display: flex;
    justify-content: space-between;
    gap: 5.5rem;

}

.emis-intro-col-left {
    flex: 0.8;
}

.emis-intro-col-right {
    flex: 1.2;
}

.emis-main-title {
    font-size: 2.5rem;
    line-height: 1.4;
}

.emis-main-text {
    font-size: 1.1rem;
    line-height: 1.63;
    font-weight: 300;
}

/* --- The Event Card --- */
.emis-event-card {
    display: flex;
    border-radius: 40px; /* Large rounded corners */
    overflow: hidden;
    min-height: 500px;
        margin-top: 4.5rem;
}

.event-card-form {
    margin-right: -2rem;
    flex: 1;
    background-color: var(--primary-color);
    padding: 3.5rem 6rem 2rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 2rem;
    background: #FF4810;
    z-index: 9;
}

.event-form-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    margin-top: 0;
}

/* Right Side (Image) */
.event-card-image {
    flex: 0.3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100%;
}

/* --- Form Styling (Transparent Underline Style) --- */
.emis-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
}

.form-col.full-width {
    grid-column: span 2;
}

/* Inputs */
.emis-input, 
.emis-select,
.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap textarea,
.wpcf7-form-control-wrap select {
    width: 100%;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(0,0,0,1) !important;
    color: #000 !important;
    padding: 0.5rem 0 !important;
    font-size: 1rem;
    outline: none;
    border-radius: 0;
    font-family: var(--font-base);
}

.emis-input:focus,
.wpcf7-form-control-wrap input:focus {
    border-bottom-color: #000 !important;
}

/* Placeholder color fix */
.wpcf7-form-control-wrap input::placeholder { color: rgba(0,0,0,1); }
.wpcf7-form-control-wrap textarea::placeholder { color: rgba(0,0,0,1); }
/* Submit Button with Circle Arrow */
.emis-submit-wrap {
    display: flex;
    justify-content: flex-end; /* Align right */
}


body.show-focus
    .wpcf7-acceptance
    input[type="checkbox"]:focus
    + .wpcf7-list-item-label::before,
body.show-focus
    .wpcf7-checkbox
    input[type="checkbox"]:focus
    + .wpcf7-list-item-label::before {
    border-color: #000;
    background-color: yellow;
}
.wpcf7-form .wpcf7__row label {
    color: #000;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 10rem;
    display: block;
}
.wpcf7-form .wpcf7__row label a {
  color: #000;
}
.wpcf7-acceptance,
.wpcf7-checkbox {
    display: block;
    position: relative;
    margin: 0 0;
}
.wpcf7-acceptance label,
.wpcf7-checkbox label {
    cursor: pointer;
}
.wpcf7-acceptance input[type="checkbox"],
.wpcf7-checkbox input[type="checkbox"] {
    position: absolute;
    filter: alpha(opacity=0);
    opacity: 0;
    -khtml-opacity: 0;
    cursor: pointer;
}
.wpcf7-acceptance .wpcf7-list-item-label,
.wpcf7-checkbox .wpcf7-list-item-label {
    display: block;
    padding: 0 0 0 40px;
    position: relative;
}
.wpcf7-acceptance .wpcf7-list-item-label a,
.wpcf7-checkbox .wpcf7-list-item-label a {
    color: #000;
}
.wpcf7-acceptance .wpcf7-list-item-label a:hover,
.wpcf7-checkbox .wpcf7-list-item-label a:hover {
    color: #fff;
}
.wpcf7-acceptance .wpcf7-list-item-label::before,
.wpcf7-checkbox .wpcf7-list-item-label::before {
    content: "";
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 0;
    border: 1px solid #000;
    position: absolute;
    left: 2px;
    top: 2px;
    background-color: #fff;
    transition: all 0.3s;
}
.wpcf7-acceptance input[type="checkbox"]:checked ~ .wpcf7-list-item-label::before, .wpcf7-checkbox input[type="checkbox"]:checked ~ .wpcf7-list-item-label::before {
    box-shadow: inset 0px 0px 0px 20px #000;
}
.wpcf7-not-valid-tip {
    color: #000;
    font-size: 0.8rem;
    font-weight: normal;
    display: block;
}
.wpcf7-acceptance .wpcf7-list-item {
    display: inline-block;
    margin: 0 0 0 1em;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.2;
}
.emis-submit-btn {
    background: transparent;
    border: none;
    color: #000;
    font-size: 0.9rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    padding: 0;
}

.emis-submit-btn .btn-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF4A1C; /* Icon matches background */
    transition: transform 0.3s ease;
}

.emis-submit-btn:hover .btn-icon {
    transform: translateX(5px);
}
.page-template-default .about-intro p a {
  color: #000;
}
/* Responsive */
@media (max-width: 991px) {
    .emis-intro-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .emis-event-card {
        flex-direction: column;
    }
    
    .event-card-image {
        min-height: 250px;
    }
    
    .event-card-form {
        padding: 40px 20px;
                margin-right: 0;
                margin-bottom: -2rem;
    }
}
@media (max-width: 768px) {
    .emis-form-grid {
        grid-template-columns: 1fr; /* Stack inputs on mobile */
    }
    .form-col.full-width {
        grid-column: span 1;
    }
}

/* --- Info Grid Section --- */
.emis-info-section {
    padding-bottom: 3.5rem; /* Space below the section */
}

.emis-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Columns */
    gap: 2rem; /* Space between cards */
}

/* --- Card Design --- */
.emis-info-card {
background-color: #FFE9E9;
    border-radius: 2rem;
    padding: 2.5rem 2.5rem 2rem;
    transition: transform 0.3s ease;
}

.emis-info-card:hover {
    transform: translateY(-5px); /* Subtle lift effect */
}

/* Header (Icon + Title) */
.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-icon-wrap {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    /* If you don't upload an icon, you can set a fallback background here */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-title {
    font-size: 2rem;
    font-weight: 400; /* Serif titles in design look regular weight */
    color: #000;
    margin: 0;
    line-height: 1.2;
}

/* Body Text */
.card-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}
.chess-col-text .chess-subtitle {
    font-weight: 700;
    color: var(--primary-color);
}
/* --- Responsive --- */
@media (max-width: 768px) {
    .emis-info-grid {
        grid-template-columns: 1fr; /* 1 Column on mobile */
        gap: 20px;
    }

    .emis-info-card {
        padding: 30px;
    }

    .card-title {
        font-size: 26px;
    }
}

/* --- Трек (Скролл контейнер) --- */
.custom-slider-track {
    display: flex;
    overflow-x: auto; /* Разрешаем горизонтальный скролл */
    scroll-snap-type: x mandatory; /* МАГИЯ: Заставляет скролл останавливаться на слайдах */
    scroll-behavior: smooth; /* Плавность для JS .scrollTo */
    
    /* Скрываем скроллбар (визуально) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.custom-slider-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* --- Один слайд --- */
.slider-item {
    min-width: 100%; /* Каждый слайд занимает 100% ширины контейнера */
    scroll-snap-align: center; /* Центрируем слайд при остановке */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* --- Розовая Карточка --- */
.env-text-card {
    background-color: #FFE9E9;
    border-radius: 1.5rem;
    padding: 5rem 16rem;
    text-align: center;
    width: 100%;
    max-width: 81.5rem;
    position: relative;
    z-index: 2;
    margin-bottom: -10rem;
    top: 40px;
    height: 27rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.env-title {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.env-description {
    font-size: 1.1rem;
    line-height: 1.6;
}
.env-description p {
  margin: 0;
}
.emis-env-section.fade-up .custom-slider {
    height: auto;
}
/* --- Картинка --- */
.env-image-wrap {
    width: 100%;
    height: 38rem;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    z-index: 1; /* Под текстом */
}

.env-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.emis-intro .pre-intro-card {
    padding: 5rem 0rem 2.5rem;
}
.emis-intro .pre-intro-title {
    margin: 0 0 0.5rem;
}
.pre-intro-image img {
    width: 100%;
    height: 100%;
    border-radius: 3rem;
    object-fit: cover;
}
/* --- Стрелки (Позиционирование) --- */
.env-arrow {
    position: absolute;
    top: 13.5rem; /* Подбираем высоту, чтобы попасть в центр розовой карточки */
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background-color: var(--primary-color); /* Оранжевый */
    color: #000;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.env-arrow:hover {
    transform: scale(1.1);
}

/* Ставим стрелки по краям розовой карточки */
.env-prev {
    left: 11.5rem; /* Или 10%, зависит от ширины экрана */
}

.env-next {
    right: 11.5rem;
}
.emis-carousel-section .chess-grid {
    margin-bottom: 3.5rem;
}
/* --- Точки --- */
.slider-dots-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
    padding-bottom: 1rem;
}

.slider-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: #D9D9D9;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: var(--primary-color); /* Активная точка оранжевая */
}

/* --- Мобильная версия --- */
@media (max-width: 991px) {
    .env-text-card {
        padding: 40px 20px;
        margin-bottom: -50px;
        height: auto;
    }
    
    .env-title {
        font-size: 28px;
    }
    
    /* На мобильном стрелки лучше спустить вниз или убрать */
    .env-arrow {
        top: auto;
        bottom: 250px; 
    }
}

/* --- Bee Ambassador Section --- */
.emis-bee-section {
    padding: 3.5rem 0 2rem; 
}

.emis-bee-content {
    max-width: 50rem; /* Ограничиваем ширину контента по центру */
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Typography */
.bee-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.bee-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* --- Button Style (Text + Orange Circle) --- */
.bee-btn-wrapper {
    margin-top: 0;
}

.emis-arrow-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem; /* Расстояние между текстом и кружком */
    color: #000;
    transition: opacity 0.3s ease;
}

.link-text {
    font-size: 0.9rem;
    font-weight: 400;
}

.link-icon-circle {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary-color); /* Оранжевый цвет из макета */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.3s ease;
}

/* Анимация стрелки при наведении */
.emis-arrow-link:hover .link-icon-circle {
    transform: translateX(5px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .emis-bee-section {
        padding: 60px 0;
    }

    .bee-title {
        font-size: 32px;
    }

    .bee-text p {
        font-size: 16px;
    }
}

/* --- Supported By Section --- */
.emis-supported-section {
    text-align: center;
        padding: 6.5rem 0 9rem;
}

.supported-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.supported-logos-grid {
display: grid;
    /* Ровно 5 колонок одинаковой ширины */
    grid-template-columns: repeat(5, 1fr);
    justify-content: center; /* Центрируем логотипы */
    align-items: center;     /* Выравниваем по вертикали */
    flex-wrap: wrap;         /* Разрешаем перенос на новую строку, если их много */
    gap: 3rem;               /* Расстояние между логотипами */
}

.logo-item img {
    display: block;
    width: auto;       /* Ширина подстроится автоматически */
    transition: all 0.3s ease;
}
/* --- Logic for Contact Page Logo Swap --- */

/* Default state: Hide the scroll logo, show the white logo */
.contact-logo-swap .logo-scroll {
    display: none;
}
.contact-logo-swap .logo-default {
    display: block;
}

/* Scrolled state: Hide the white logo, show the scroll logo */
/* Assuming 'header' gets the class 'is-scrolled' */
header.is-scrolled .contact-logo-swap .logo-default {
    display: none;
}
header.is-scrolled .contact-logo-swap .logo-scroll {
    display: block;
}
/* На планшете - 3 колонки */
@media (max-width: 991px) {
    .supported-logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* На мобильном - 2 колонки */
@media (max-width: 768px) {
    .supported-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .supported-logos-grid .logo-item:last-child:nth-child(odd) {
        grid-column: span 2;
    }
    .logo-item img {
    max-width: 100%;
    margin: 0 auto;
}
    
    /* Последний логотип (если их 5) растянется по центру, если нужно */
    /* .logo-item:last-child { grid-column: span 2; } */
}

/* Стиль сообщения об успехе */
.emis-success-message {
    color: #000;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-top: 1rem;
    animation: fadeIn 0.5s ease;
}

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

/* --- Disclaimer under Form --- */
.emis-form-disclaimer {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: center;
}

.disclaimer-icon {
    line-height: 0.5;
}
.disclaimer-text {
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .emis-form-disclaimer {
        margin-top: 20px;
    }
    .disclaimer-icon {
        font-size: 30px;
    }
}

/* style.css */
/* ... Остальные стили (title, badge, colors) остаются прежними ... */

/* --- Grid System (Updated) --- */
.masonry-grid {
    display: grid;
    gap: 1.5rem; /* Отступы между колонками */
    
    /* 3 колонки */
    grid-template-columns: repeat(3, 1fr);
    
    /* Магия: строки высотой 1px для точного подгона */
    grid-auto-rows: 1px; 
}

.tst-item {
    /* Сбрасываем margin, так как отступы делает Grid Gap */
    margin-bottom: 0; 
}

/* --- Responsive --- */

/* Tablet: 2 колонки */
@media (max-width: 991px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 колонка */
@media (max-width: 600px) {
    .masonry-grid {
        display: block; /* На мобильном отключаем сложный Grid и JS */
    }
    
    .tst-item {
        margin-bottom: 1.5rem; /* Возвращаем отступ снизу */
        /* Сбрасываем высоту, которую мог задать JS */
        grid-row-end: auto !important; 
    }
}
/* --- Section Layout --- */
.tst-section {
    padding: 5rem 0rem 9.5rem;
    border-top-right-radius: 3rem;
    border-top-left-radius: 3rem;
    background: url(assets/img/emis-testimonials-bg.png) #F8F8F8;
    background-position-y: 15rem;
    /* margin-top: -5rem; */
    z-index: 9;
    position: relative;
    background-repeat: no-repeat;
    background-position-x: center;
}


.tst-main-title {
    text-align: center;
    font-size: 2.5em; /* 36px */
    line-height: 1.4;
    margin-bottom: 5.5rem; /* 50px */
    max-width: 62.5rem; /* 800px */
    margin-left: auto;
    margin-right: auto;
}

/* --- Masonry Grid (CSS Columns) --- */
.tst-grid {
    column-count: 3;
    column-gap: 1.5rem; /* 30px */
}

.tst-item {
    break-inside: avoid; /* Запрещает разрыв карточки между колонками */
    margin-bottom: 1.5rem; /* 30px */
    position: relative;
    /* Фикс для некоторых браузеров чтобы не срезало тень/бордер */
    display: inline-block; 
    width: 100%;
}

/* --- Card Styles --- */
.tst-card-inner {
    background: #fff;
    border: 1px solid #000;
    border-radius: 3rem;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
}

.tst-card-inner:hover {
    transform: translateY(-0.25rem); /* -5px */
}

/* Розовый фон для карточек с цитатами (без видео/фото) */
.tst-item.is-quote-card .tst-card-inner {
    background-color: #FFE9E9; 
}

/* --- Media (Video/Image) --- */
.tst-media-wrap {
width: 100%;
    position: relative;
    /* border-bottom: 0.05rem solid #000; */
    padding: 0.75rem;
    border-radius: 2.5rem;
}

/* Высота для картинок */
.tst-media-wrap.image-mode {
    height: 18rem; /* 250px */
}

.tst-media-wrap.image-mode img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 2.5rem;
}

/* Пропорции видео 16:9 */
.tst-media-wrap.video-mode {
    aspect-ratio: 16 / 9;
    background: #000;
}

.tst-media-wrap.video-mode iframe,
.tst-media-wrap.video-mode video {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- Content Body --- */
.tst-content-body {
    padding: 1rem 2.5rem 2.5rem;
}
.is-quote-card .tst-content-body {
    padding: 5rem 2.5rem 4rem;
}
.quote-icon {
    font-size: 2rem; /* 40px */
    color: #FF4A1C;
    line-height: 1;
    margin-bottom: 0.5rem; /* 10px */
    font-family: serif;
}

.tst-text-block {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-weight: 300;
}
.tst-text-block p {
    margin-bottom: 0.5rem;
}

.tst-text-block p:last-child {
    margin-bottom: 0;
}

/* --- Author Info --- */
.tst-author-block {
    margin-top: auto;
}

.tst-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.tst-meta {
    display: block;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 400;
    margin-top: 0.25rem; /* 5px */
}

/* --- Badge (Star) --- */
.tst-badge-wrapper {
    position: absolute;
    top: 1.5rem; /* 20px */
    right: 2rem; /* 20px */
width: 6rem;
    height: 6rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
        z-index: 99999;
        opacity: 0;
        transition: all 0.3s ease;
}
.tst-card-inner:hover .tst-badge-wrapper {
opacity: 1;
}
.badge-star {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Цвет наследуется из style="..." в HTML */
}

.badge-text {
    position: absolute;
    z-index: 2;
    color: #fff;
    font-size: 0.8rem;
    /* font-weight: bold; */
    /* text-transform: uppercase; */
    text-align: center;
    /* transform: rotate(-5deg); */
    line-height: 1;
}

/* --- Responsive --- */

/* Tablet (2 columns) */
@media (max-width: 991px) {
    .tst-grid {
        column-count: 2;
        column-gap: 1rem; /* 20px */
    }
    
    .tst-main-title {
        font-size: 1.5rem; /* 30px */
    }
}

/* Mobile (1 column) */
@media (max-width: 600px) {
    .tst-grid {
        column-count: 1;
    }
    
    .tst-container {
        padding: 0 0.75rem; /* 15px */
    }
    
    .tst-item {
        margin-bottom: 1rem; /* 20px */
    }
}

/* --- Video Styles --- */
.tst-media-wrap.video-mode {
    aspect-ratio: 16 / 9; /* Фиксируем пропорции, чтобы Masonry не прыгал */
    background: #000;
    position: relative;
    overflow: hidden;
}

.tst-item .custom-video-player {
    width: auto;
    height: 100%;
    position: relative;
    cursor: pointer;
    margin: 0.75rem;
        border-radius: 2.5rem;
    height: 18rem;
    overflow: hidden;
}

.tst-item .video-cover {
    position: absolute;
    inset: 0;
    background-color: #000;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;

}
.tst-item.is-story-card .custom-video-player {
height: 42.5rem;
    margin: 0;
}
.tst-item .cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    /* opacity: 0.8; */
    border-radius: 2.5rem;
}

/* Иконка Play (Центрирование) */
.tst-item .pre-intro-play {
    z-index: 3;
}

.tst-item .custom-video-player:hover .pre-intro-play {
    transform: translate(-50%, -50%) scale(1.1);
}
.tst-item .pre-intro-play {
    width: 4.5rem;
    height: 4.5rem;
}
.tst-item .pre-intro-play-icon svg path {
    fill: #fff; /* Делаем иконку белой, если фон темный, или оставьте black как в SVG */
}

/* Видео элементы */
.tst-item .video-iframe-container {
    width: 100%;
    height: 100%;
}

.tst-item .video-iframe-container iframe,
.tst-item .native-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
        border-radius: 2.5rem;
    z-index: 9;
    position: absolute;
}


.single-content {
    padding: 4.5rem 0rem 0rem;
    border-top-right-radius: 3rem;
    border-top-left-radius: 3rem;
    background: #F8F8F8;
    z-index: 9;
    position: relative;
}
.entry-content--date, 
.entry-content--author {
  color: var(--primary-color);
}
.entry-content--author {
  font-weight: 500;
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
}

.single-content .entry-content {
  max-width: 52rem;
  margin: 0 auto 7.5rem;
}
.single-content .entry-content h2 {
  margin-bottom: 0.5rem;
}
.single-content figure.wp-caption {
    margin-top: 3.5rem;
    border-radius: 3rem;
    max-width: 100%;
}
.single-content  figure.wp-caption img {
  margin-bottom: 1rem;
  border-radius: 3rem;
}
.single-content figcaption {
    font-size: 0.9rem;
    font-weight: 300;
    text-align: right;
}
.single-content .entry-content p,
.single-content .entry-content li {
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.54;
}

/* --- Single Footer Container --- */
.single-footer-area {
margin-top: 4rem;
    padding-bottom: 6rem;
}

/* --- Share Bar --- */
.post-share-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #000;
    padding-top: 1rem;
    margin-bottom: 80px;
    max-width: 52rem;
    margin: 0 auto;
    margin-bottom: 7.5rem;
}

.share-label {
    font-size: 1.1;
    font-weight: 400;
}

.share-icons {
    display: flex;
    gap: 1.3rem;
    align-items: center;
}

.share-icons a {
    color: #000;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
}

.share-icons a:hover {
    color: #FF4A1C; /* Оранжевый при наведении */
    transform: translateY(-2px);
}

/* --- More Updates Section --- */
.more-updates-section {
    border-top: 1px solid #000;
    padding-top: 3rem;
}
.more-updates-title {
    font-size: 3.5rem; /* Крупный заголовок */
    font-weight: 400;
    margin-bottom: 3rem;
    margin-top: 0;
}

.more-updates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.7rem;
    row-gap: 2.75rem;
}

/* --- Update Card Design --- */
.update-card {
    border: 1px solid #000; /* Черная рамка */
    border-radius: 3rem;    /* Сильное скругление карточки */
    padding: 0.6rem;          /* Отступ внутри карточки до контента */
    transition: transform 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.update-card:hover {
    transform: translateY(-5px);
}

.update-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Картинка внутри карточки */
.update-img-wrap {
    height: 13.5rem;
    border-radius: 3rem;
    overflow: hidden;
    margin-bottom: 2rem;
    /* background-color: #f0f0f0; */
}
.update-img-wrap a {
    width: 100%;
    height: 100%;
}
.update-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.update-img-wrap .pre-intro-play {
  width: 4.5rem;
  height: 4.5rem;
}
/* Контент карточки */
.update-content {
    padding: 0 1.5rem 2.5rem 1.5rem; /* Небольшой отступ текста внутри */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.update-date {
    color: var(--primary-color); /* Оранжевый */
    font-size: 1rem;
    font-weight: 400;
        margin-bottom: 0.9rem;
}

.update-title {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    /* color: #000; */
    font-weight: bold;
    margin-top: 0;
}

.update-excerpt {
    font-size: 1rem;
    line-height: 1.5;
font-weight: 300;
    margin-bottom: 2rem;
    flex-grow: 1; /* Чтобы "Read more" всегда был внизу */
}

.read-more-link {
    color: var(--primary-color); /* Оранжевый */
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .more-updates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .single-content .entry-content {
    margin: 0 auto 3.5rem;
}
}

@media (max-width: 600px) {
    .more-updates-grid {
        grid-template-columns: 1fr;
    }
    .post-share-bar {
        gap: 15px;
    }
}

/* --- Special Orange Quote Card --- */
.special-quote-card {
    background-color: var(--primary-color); /* Оранжевый цвет */
    border-radius: 3rem;       /* Такое же скругление, как у постов */
    padding: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px; /* Минимальная высота, чтобы совпадать с соседними карточками */
    height: 100%;      /* Растягиваемся на всю высоту ячейки Grid */
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.special-quote-card:hover {
    transform: translateY(-5px);
}

.quote-card-content {
    /* font-family: serif; */
    font-size: 28px;
    line-height: 1.4;
    color: #fff;
    font-weight: 500;
    font-size: 1.8rem;
    /* font-style: normal; */
    font-weight: 600;
    line-height: 1.38;
    /* text-transform: capitalize; */
}
section.main-updates-section {
    padding-bottom: 8rem;
}
.section-hero-text .entry-content {
          margin-top: 1.5rem;
}
.section-hero-text .entry-content p {
    margin: 0;
    font-size: 1.3rem;

}
/* Адаптивность для карточки цитаты */
@media (max-width: 991px) {
    .quote-card-content {
        font-size: 24px;
    }
    .special-quote-card {
        min-height: 350px;
    }
}

@media (max-width: 600px) {
    .special-quote-card {
        min-height: 300px;
        padding: 30px;
    }
}


/* --- Hero Section (Orange) --- */
.gi-hero-section {
    background-color: var(--primary-color);
    padding: 13rem 0 3.5rem 0; /* Adjust top padding based on your header height */
    position: relative;
}

.gi-header {
    margin-bottom: 3rem;
}

.gi-title {
    font-size: 5.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    margin-top: 0;
}

.gi-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
}

/* --- Layout Grid --- */
.gi-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Form takes more space */
    gap: 7.35rem;
    align-items: start;
}

/* --- Form Styles (Custom CF7) --- */
.gi-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.gi-field-group {
    display: flex;
    flex-direction: column;
}

.gi-field-group.full-width {
    width: 100%;
    margin-bottom: 2rem;
}

.gi-label {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Input Reset */
.gi-input, 
.gi-input input, 
.gi-input select, 
.gi-input textarea {
    color: #000;
    width: 100%;
    outline: none;
    border-radius: 0;
    font-weight: 300;
}

.gi-input:focus,
.gi-input input:focus {
    border-bottom-color: #fff;
}
.gi-field-group p {
    margin: 0;
}
/* Select specific */
select.gi-input {
    color: #fff;
    appearance: none; /* Removes default arrow */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 0.6rem auto;
}
/* Fix for black text options in dropdowns on some browsers */
select.gi-input option {
    color: #000; 
}

/* Submit Button Area */
.gi-submit-wrapper p {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
}

.submit-label {
    font-size: 0.9rem;
    font-weight: 400;
}

.gi-submit-btn {
    background: #fff;
    color: var(--primary-color);
    border: none;
width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.gi-submit-wrapper:hover .gi-submit-btn {
    transform: translateX(5px);
}

/* --- Info Column (Right) --- */
.gi-info-column {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 0.5rem;
    font-weight: 300;
}

.gi-info-column  .contact-details p {
    margin: 0;
}
.gi-info-block:first-child {
  font-weight: 600;
}
.gi-info-block {
    margin-bottom: 1.5rem;

}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-details a {
    color: #000;
    text-decoration: none;
}

.contact-details a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- Opportunities Section (White) --- */
.gi-opps-section {
    padding: 7rem 0;
}

.gi-opps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.gi-opp-card {
    display: flex;
    gap: 3rem;
    align-items: center;
}

/* Visual (Image + Badges) */
.gi-card-visual {
    position: relative;
    flex-shrink: 0;
    width: 14rem;
    height: 14rem;
}

.gi-img-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.gi-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text Content */
.gi-card-content {
    flex-grow: 1;
}

.gi-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.gi-card-desc {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
        font-weight: 300;
    margin-right: 3rem;
}
.gi-card-desc p {
    margin: 0;
}
.gi-card-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.gi-card-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 0.12rem;
    bottom: 0;
    transform: scaleX(0);
    transform-origin: center;
    background: var(--primary-color);
    transition: transform var(--transition-fast);
}
.gi-card-link:hover::after {
    transform: scaleX(1);
}
/* --- Responsive --- */
@media (max-width: 991px) {
    .gi-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .gi-opps-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .gi-opp-card {
        flex-direction: column;
        text-align: center;
    }

    .gi-badges-container {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        top: -1rem;
    }
}

/* --- Positions & Openings Section --- */
.gi-positions-section {
    padding: 2rem 0 0 0;
    margin-bottom: -3rem;
}

.gi-section-title {
    font-size: 3.5rem;
    margin-bottom: 4.5rem;
    margin-top: 0;
}

/* Background Wrapper */
.gi-positions-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0; /* Or adding radius if desired */
    padding: 11rem 0 11rem 0;
    
    /* Optional: Overlay to make text readable if BG is busy, 
       though design shows white cards on top */
}

/* Grid Layout for Cards */
.gi-positions-grid {
    display: flex;
    gap: 1.5rem;
    margin: 0 auto;
}

/* Individual Card */
.gi-pos-card {
    background-color: #fff;
    border-radius: 1.5rem; /* ~24px */
    padding: 3.5rem 4rem 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: auto;
}

/* Card Header */
.gi-pos-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.gi-pos-icon {
    width: 6rem; /* 64px */
    height: 6rem;
    background-color: var(--primary-color); /* Orange */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gi-pos-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0;
}

/* Card Body */
.gi-pos-body {
    flex-grow: 1;
    margin-bottom: 0;
}

.gi-pos-intro {
    font-size: 1.1rem;
    margin-bottom: 0rem;
    font-weight: 300;
}
.gi-pos-intro ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
.gi-pos-intro ul li {
  position: relative;
  padding-left: 1.25rem;
}
.gi-pos-intro ul li:before {
  content: "";
  position: absolute;
  height: 0.5rem;
width: 0.5rem;
    top: 0.6rem;
    left: 0;
    background: var(--primary-color);
    border-radius: 100%;
}
.gi-pos-intro a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
}
/* Responsive */
@media (max-width: 991px) {
    .gi-positions-wrapper {
        padding: 3rem 0 6rem;
    }
    
    .gi-positions-grid {
        flex-direction: column;
        align-items: center;
    }

    .gi-pos-card {
        padding: 2rem;
    }

    .gi-hero-section {
    padding: 9rem 0 3.5rem 0;
}
.gi-card-desc {
    margin-right: 0;
}
.gi-pos-title {
    font-size: 2rem;
}
}