/* ==========================================================
   IRETOPE ACADEMY
   HERO SECTION
========================================================== */

/* ==========================================================
   BASIC RESET
========================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

/* ==========================================================
   HERO
========================================================== */

.hero {
  position: relative;

  width: 100%;
  height: 100vh;
  min-height: 650px;

  overflow: hidden;

  color: white;
}

/* ==========================================================
   BACKGROUND SLIDER
========================================================== */

.hero-background {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;

  z-index: 1;
}

/* Individual background image */

.background-slide {
  position: absolute;

  inset: -5%;

  width: 110%;
  height: 110%;

  background-size: cover;
  background-position: center;

  opacity: 0;

  filter: blur(3px);

  transform: scale(1.15);

  transition: opacity 1s ease;
}

/* Active background */

.background-slide.active {
  opacity: 1;

  animation: backgroundZoomOut 5s ease-out forwards;
}

/* ==========================================================
   BACKGROUND ZOOM OUT
========================================================== */

@keyframes backgroundZoomOut {
  from {
    transform: scale(1.15);
  }

  to {
    transform: scale(1);
  }
}

/* ==========================================================
   DARK / COLOR OVERLAY
========================================================== */

.hero-overlay {
  position: absolute;

  inset: 0;

  z-index: 2;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.05),
    rgba(0, 0, 0, 0.15)
  );

  pointer-events: none;
}

/* ==========================================================
   NAVBAR
========================================================== */

.hero-navbar {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;

  z-index: 50;

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar-container {
  width: 100%;
  max-width: 1350px;

  margin: 0 auto;

  min-height: 120px;

  padding: 15px 40px;

  display: flex;

  align-items: center;

  justify-content: space-between;
}

/* ==========================================================
   LOGO
========================================================== */

.logo {
  display: flex;

  align-items: center;

  flex-shrink: 0;
}

.logo img {
  width: 75px;
  height: 75px;

  object-fit: contain;

  display: block;
}

/* ==========================================================
   DESKTOP NAVIGATION
========================================================== */

.desktop-nav {
  display: flex;

  align-items: center;

  gap: 28px;

  margin-left: auto;
}

.desktop-nav a {
  color: white;

  text-decoration: none;

  font-size: 17px;

  font-weight: 500;

  white-space: nowrap;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.desktop-nav a:hover {
  opacity: 0.75;

  transform: translateY(-2px);
}

/* ==========================================================
   MOBILE MENU BUTTON
========================================================== */

.mobile-menu-button {
  display: none;

  width: 45px;
  height: 45px;

  border: 1px solid rgba(255, 255, 255, 0.6);

  border-radius: 5px;

  background: rgba(0, 0, 0, 0.15);

  color: white;

  font-size: 24px;

  cursor: pointer;
}

/* ==========================================================
   MOBILE MENU
========================================================== */

.mobile-menu {
  display: none;

  width: 100%;

  padding: 20px;

  background: rgba(20, 15, 45, 0.97);

  backdrop-filter: blur(10px);
}

.mobile-menu a {
  display: block;

  padding: 14px 5px;

  color: white;

  text-decoration: none;

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================
   FOREGROUND SLIDER
========================================================== */

.foreground-slider {
  position: absolute;

  inset: 0;

  z-index: 20;

  overflow: hidden;

  pointer-events: none;
}

/* ==========================================================
   FOREGROUND SLIDE
========================================================== */

.foreground-slide {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  opacity: 0;

  visibility: hidden;
}

/* Active foreground slide */

.foreground-slide.active {
  opacity: 1;

  visibility: visible;
}

/* ==========================================================
   FOREGROUND CONTENT
========================================================== */

.foreground-content {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 100%;

  max-width: 1200px;

  min-height: 500px;

  transform: translate(-50%, -50%);

  display: flex;

  align-items: center;

  justify-content: center;
}

/* ==========================================================
   FOREGROUND PERSON
========================================================== */

.foreground-person {
  position: absolute;

  left: 50%;

  top: 50%;

  z-index: 5;

  transform: translate(-50%, -50%);

  height: 520px;

  display: flex;

  align-items: flex-end;

  justify-content: center;
}

.foreground-person img {
  height: 100%;

  width: auto;

  max-width: 400px;

  object-fit: contain;

  display: block;
}

/* ==========================================================
   HERO TEXT
========================================================== */

.hero-text {
  position: absolute;

  left: 5%;

  top: 50%;

  z-index: 10;

  transform: translateY(-50%);

  width: 480px;
}

.hero-text h1 {
  margin: 0;

  color: white;

  font-family: Georgia, serif;

  font-size: clamp(60px, 7vw, 105px);

  font-weight: 800;

  line-height: 0.86;

  letter-spacing: -4px;

  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
  margin-top: 35px;

  color: rgba(255, 255, 255, 0.9);

  font-size: 14px;

  line-height: 1.4;

  font-weight: 500;
}

/* ==========================================================
   RIGHT DESCRIPTION
========================================================== */

.hero-description {
  position: absolute;

  right: 4%;

  top: 50%;

  z-index: 10;

  transform: translateY(-50%);

  width: 300px;
}

.hero-description p {
  color: rgba(255, 255, 255, 0.9);

  font-size: 16px;

  line-height: 1.4;
}

.hero-description a {
  display: inline-block;

  margin-top: 30px;

  color: white;

  text-decoration: none;

  font-size: 14px;

  font-weight: bold;
}

/*
   THIS IS THE IMPORTANT PART.

   The entire foreground group:
   - starts below the viewport
   - comes UP visibly
   - reaches the center
   - then slowly zooms in
*/

@keyframes foregroundSlideUp {
  0% {
    opacity: 0;

    transform: translate(-50%, calc(-50% + 100vh)) scale(0.82);
  }

  35% {
    opacity: 1;

    transform: translate(-50%, -50%) scale(0.96);
  }

  100% {
    opacity: 1;

    transform: translate(-50%, -50%) scale(1.04);
  }
}

/* Active foreground animation */

.foreground-slide.active .foreground-content {
  animation: foregroundSlideUp 5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.slider-controls {
  position: absolute;

  bottom: 30px;
  left: 50%;

  z-index: 60;

  transform: translateX(-50%);

  display: flex;

  align-items: center;

  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;

  padding: 0;

  border: none;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.45);

  cursor: pointer;

  transition:
    width 0.3s ease,
    background 0.3s ease;
}

.slider-dot.active {
  width: 32px;

  border-radius: 20px;

  background: white;
}

@media (max-width: 1000px) {
  .navbar-container {
    min-height: 90px;

    padding: 10px 25px;
  }

  .logo img {
    width: 65px;
    height: 65px;
  }

  .desktop-nav {
    gap: 15px;
  }

  .desktop-nav a {
    font-size: 14px;
  }

  .hero-text {
    left: 4%;

    width: 380px;
  }

  .hero-text h1 {
    font-size: 65px;
  }

  .foreground-person {
    height: 450px;
  }

  .hero-description {
    right: 3%;

    width: 230px;
  }

  .hero-description p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 650px;

    height: 100svh;
  }

  .navbar-container {
    min-height: 85px;

    padding: 10px 20px;
  }

  .logo img {
    width: 60px;
    height: 60px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: grid;

    place-items: center;
  }

  .mobile-menu.open {
    display: block;
  }

  /* Foreground person */

  .foreground-person {
    left: 50%;

    top: 55%;

    height: 400px;
  }

  .foreground-person img {
    max-width: 300px;
  }

  /* Main heading */

  .hero-text {
    left: 20px;

    top: 30%;

    width: 260px;
  }

  .hero-text h1 {
    font-size: 48px;

    letter-spacing: -2px;
  }

  .hero-subtitle {
    margin-top: 20px;

    font-size: 10px;
  }

  /* Description */

  .hero-description {
    left: 20px;

    right: auto;

    top: auto;

    bottom: 90px;

    width: 220px;
  }

  .hero-description p {
    font-size: 12px;
  }

  .hero-description a {
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .foreground-person {
    height: 340px;

    top: 57%;
  }

  .hero-text {
    top: 30%;

    left: 18px;

    width: 220px;
  }

  .hero-text h1 {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 9px;
  }

  .hero-description {
    bottom: 80px;

    width: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .background-slide.active,
  .foreground-slide.active .foreground-content {
    animation: none;
  }
}

/* =====================================================
   CHAIRMAN / PROPRIETOR
===================================================== */

.chairman-section {
  position: relative;

  min-height: 100vh;

  background: #111;

  color: #fff;

  overflow: hidden;

  display: flex;
  flex-direction: column;

  justify-content: center;
}

/* =====================================================
   BACKGROUND WORD
===================================================== */

.chairman-bg-text {
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  font-size: clamp(180px, 25vw, 420px);

  font-weight: 800;

  line-height: 1;

  letter-spacing: -0.08em;

  color: rgba(255, 255, 255, 0.025);

  white-space: nowrap;

  pointer-events: none;

  user-select: none;
}

/* =====================================================
   SIDE MARKER
===================================================== */

.chairman-side-line {
  position: absolute;

  left: 35px;
  top: 50%;

  transform: translateY(-50%);

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 18px;

  z-index: 5;
}

.chairman-side-line span:first-child {
  font-size: 12px;

  color: #d4af37;

  font-weight: 600;
}

.chairman-side-line span:last-child {
  writing-mode: vertical-rl;

  transform: rotate(180deg);

  font-size: 9px;

  letter-spacing: 3px;

  color: rgba(255, 255, 255, 0.45);
}

/* =====================================================
   MAIN CONTAINER
===================================================== */

.chairman-container {
  position: relative;

  z-index: 2;

  width: min(1200px, calc(100% - 150px));

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(380px, 0.9fr)
    minmax(420px, 1fr);

  align-items: center;

  gap: clamp(60px, 9vw, 140px);
}

/* =====================================================
   IMAGE AREA
===================================================== */

.chairman-visual {
  position: relative;

  padding: 30px;
}

/* =====================================================
   IMAGE WRAP
===================================================== */

.chairman-image-wrap {
  position: relative;

  width: 100%;

  max-width: 500px;

  margin: 0 auto;
}

/* =====================================================
   IMAGE
===================================================== */

.chairman-image {
  position: relative;

  width: 100%;

  aspect-ratio: 4 / 5;

  overflow: hidden;

  z-index: 2;
}

.chairman-image::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.35));

  pointer-events: none;
}

.chairman-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  transform: scale(1.05);

  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.chairman-image-wrap:hover .chairman-image img {
  transform: scale(1);
}

/* =====================================================
   GOLD FRAME
===================================================== */

.chairman-frame {
  position: absolute;

  top: -18px;
  left: -18px;

  width: 100%;
  height: 100%;

  border: 1px solid #d4af37;

  z-index: 1;

  transition: transform 0.7s ease;
}

.chairman-image-wrap:hover .chairman-frame {
  transform: translate(12px, 12px);
}

/* =====================================================
   IMAGE CAPTION
===================================================== */

.chairman-caption {
  width: 100%;

  max-width: 500px;

  margin: 15px auto 0;

  display: flex;

  justify-content: space-between;

  font-size: 9px;

  letter-spacing: 2px;

  color: rgba(255, 255, 255, 0.4);
}

/* =====================================================
   CONTENT
===================================================== */

.chairman-content {
  position: relative;

  padding: 20px 0;
}

/* =====================================================
   EYEBROW
===================================================== */

.chairman-eyebrow {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 30px;

  font-size: 10px;

  font-weight: 500;

  letter-spacing: 3px;

  color: rgba(255, 255, 255, 0.5);
}

.chairman-eyebrow span {
  width: 38px;
  height: 1px;

  background: #d4af37;

  display: block;
}

/* =====================================================
   TITLE
===================================================== */

.chairman-title {
  margin: 0;

  display: flex;

  flex-direction: column;

  font-size: clamp(65px, 8vw, 120px);

  line-height: 0.85;

  font-weight: 500;

  letter-spacing: -0.055em;
}

.title-line {
  display: block;
}

.title-accent {
  color: #d4af37;

  margin-left: 70px;
}

/* =====================================================
   NAME
===================================================== */

.chairman-name {
  display: flex;

  align-items: center;

  gap: 18px;

  margin-top: 45px;
}

.name-line {
  width: 45px;

  height: 1px;

  background: #d4af37;
}

.chairman-name strong {
  display: block;

  font-size: 18px;

  font-weight: 500;

  color: #fff;
}

.chairman-name small {
  display: block;

  margin-top: 5px;

  font-size: 10px;

  letter-spacing: 2px;

  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.4);
}

/* =====================================================
   DESCRIPTION
===================================================== */

.chairman-description {
  max-width: 500px;

  margin-top: 35px;
}

.chairman-description p {
  margin: 0 0 16px;

  font-size: 15px;

  line-height: 1.8;

  font-weight: 300;

  color: rgba(255, 255, 255, 0.65);
}

/* =====================================================
   BUTTON
===================================================== */

.chairman-button {
  position: relative;

  display: inline-flex;

  align-items: center;

  gap: 25px;

  margin-top: 25px;

  padding: 14px 0;

  color: #fff;

  text-decoration: none;

  font-size: 12px;

  letter-spacing: 1px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.25);

  transition: color 0.3s ease;
}

.button-arrow {
  width: 35px;
  height: 35px;

  border: 1px solid #d4af37;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  color: #d4af37;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.chairman-button:hover {
  color: #d4af37;
}

.chairman-button:hover .button-arrow {
  transform: rotate(45deg);

  background: #d4af37;

  color: #000;
}

/* =====================================================
   BOTTOM STATEMENT
===================================================== */

.chairman-bottom {
  position: absolute;

  bottom: 35px;

  left: 50%;

  transform: translateX(-50%);

  width: min(1200px, calc(100% - 150px));

  display: flex;

  align-items: center;

  gap: 20px;

  color: rgba(255, 255, 255, 0.35);

  font-size: 8px;

  letter-spacing: 3px;
}

.bottom-line {
  height: 1px;

  flex: 1;

  background: rgba(255, 255, 255, 0.12);
}

/* =====================================================
   CHAIRMAN REVEAL ANIMATION
===================================================== */

.chairman-eyebrow,
.chairman-title,
.chairman-name,
.chairman-description,
.chairman-button {
  opacity: 0;

  transform: translateY(35px);

  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.chairman-image-wrap {
  opacity: 0;

  transform: translateY(50px) scale(0.96);

  transition:
    opacity 1s ease,
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.chairman-visible .chairman-image-wrap {
  opacity: 1;

  transform: translateY(0) scale(1);
}

.chairman-visible .chairman-eyebrow {
  opacity: 1;

  transform: translateY(0);

  transition-delay: 0.15s;
}

.chairman-visible .chairman-title {
  opacity: 1;

  transform: translateY(0);

  transition-delay: 0.3s;
}

.chairman-visible .chairman-name {
  opacity: 1;

  transform: translateY(0);

  transition-delay: 0.45s;
}

.chairman-visible .chairman-description {
  opacity: 1;

  transform: translateY(0);

  transition-delay: 0.6s;
}

.chairman-visible .chairman-button {
  opacity: 1;

  transform: translateY(0);

  transition-delay: 0.75s;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 900px) {
  .chairman-section {
    min-height: auto;

    padding: 90px 25px 100px;
  }

  .chairman-side-line {
    display: none;
  }

  .chairman-bg-text {
    font-size: 100px;

    top: 25%;
  }

  .chairman-container {
    width: 100%;

    grid-template-columns: 1fr;

    gap: 60px;
  }

  .chairman-visual {
    padding: 15px;
  }

  .chairman-image-wrap {
    max-width: 430px;
  }

  .chairman-content {
    padding: 0;
  }

  .chairman-eyebrow {
    margin-bottom: 25px;

    font-size: 9px;

    letter-spacing: 2px;
  }

  .chairman-title {
    font-size: clamp(55px, 16vw, 90px);

    line-height: 0.88;
  }

  .title-accent {
    margin-left: 35px;
  }

  .chairman-name {
    margin-top: 35px;
  }

  .chairman-description {
    margin-top: 28px;
  }

  .chairman-description p {
    font-size: 14px;

    line-height: 1.7;
  }

  .chairman-bottom {
    position: relative;

    bottom: auto;
    left: auto;

    transform: none;

    width: 100%;

    margin-top: 70px;

    justify-content: center;
  }
}

@media (max-width: 480px) {
  .chairman-section {
    padding: 70px 20px 80px;
  }

  .chairman-visual {
    padding: 10px;
  }

  .chairman-frame {
    top: -10px;
    left: -10px;
  }

  .chairman-title {
    font-size: 54px;
  }

  .chairman-description p {
    font-size: 13px;
  }

  .chairman-bottom {
    gap: 10px;

    font-size: 7px;

    letter-spacing: 2px;
  }
}

/* =====================================================
   SCHOOL MOTTO
====================================================== */

.school-motto {
  width: 100%;
  background: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;

  padding: 22px 30px;

  box-sizing: border-box;
}

/* Motto text */

.school-motto p {
  margin: 0;

  font-size: 15px;
  font-weight: 400;

  letter-spacing: 0.8px;
  text-transform: uppercase;

  color: #222;

  text-align: center;
}

.school-motto p span {
  font-weight: 600;
  color: #b08a20;
}

/* Decorative lines */

.motto-line {
  width: 70px;
  height: 1px;

  background: rgba(176, 138, 32, 0.45);
}

/* =====================================================
   DESKTOP
===================================================== */

@media (min-width: 901px) {

  .school-motto {
    padding: 26px 60px;
    gap: 35px;
  }

  .school-motto p {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .motto-line {
    width: 100px;
  }

}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

  .school-motto {
    gap: 12px;
    padding: 18px 15px;
  }

  .school-motto p {
    font-size: 11px;
    letter-spacing: 0.5px;
    line-height: 1.5;
  }

  .motto-line {
    width: 25px;
    flex-shrink: 0;
  }

}

/* ==========================================================
   PROPRIETRESS SECTION
========================================================== */

.proprietress-section {
  position: relative;

  width: 100%;

  /*
     * Gives the user enough scrolling distance
     * for the reveal animation.
     */
  height: 220vh;

  background: #ffffff;
}

/* ==========================================================
   STICKY CONTENT
========================================================== */

.proprietress-sticky {
  position: sticky;

  top: 0;

  width: 100%;

  height: 100vh;

  min-height: 650px;

  display: grid;

  grid-template-columns: 42% 58%;

  align-items: center;

  overflow: hidden;

  padding: 60px 7%;
}

/* ==========================================================
   TEXT CONTENT
========================================================== */

.proprietress-content {
  position: relative;

  z-index: 5;

  max-width: 430px;
}

.proprietress-label {
  display: block;

  margin-bottom: 20px;

  color: #07155f;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 3px;

  text-transform: uppercase;
}

.proprietress-content h2 {
  margin: 0;

  color: #111827;

  font-family: Georgia, serif;

  font-size: clamp(48px, 5.5vw, 82px);

  font-weight: 700;

  line-height: 0.9;

  letter-spacing: -4px;
}

.proprietress-content p {
  max-width: 410px;

  margin-top: 25px;

  color: #555b66;

  font-size: 15px;

  line-height: 1.75;
}

.proprietress-content p + p {
  margin-top: 12px;
}

/* ==========================================================
   BUTTON
========================================================== */

.proprietress-button {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  margin-top: 25px;

  padding: 13px 24px;

  border-radius: 999px;

  background: #07155f;

  color: #ffffff;

  text-decoration: none;

  font-size: 13px;

  font-weight: 600;

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.proprietress-button:hover {
  transform: translateY(-3px);

  background: #0b207c;
}

/* ==========================================================
   IMAGE AREA
========================================================== */

.proprietress-image-area {
  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;

  width: 100%;

  height: 100%;
}

/* ==========================================================
   IMAGE REVEAL FRAME
========================================================== */

.proprietress-image-reveal {
  position: relative;

  width: min(500px, 90%);

  height: min(72vh, 650px);

  overflow: hidden;

  /*
     * Initial state:
     * only the very top of the image is visible.
     */
  clip-path: polygon(
    0 0,
    100% 0,
    100% 0%,
    96% 1%,
    91% 0%,
    86% 2%,
    80% 0%,
    73% 2%,
    66% 0%,
    58% 1%,
    50% 0%,
    42% 2%,
    35% 0%,
    27% 2%,
    19% 0%,
    11% 1%,
    0 0%
  );

  will-change: clip-path;
}

/* ==========================================================
   PROPRIETRESS IMAGE
========================================================== */

.proprietress-image-reveal img {
  display: block;

  width: 100%;

  height: 100%;

  object-fit: cover;

  object-position: center center;
}

/* ==========================================================
   SUBTLE IMAGE FRAME
========================================================== */

.proprietress-image-area::after {
  content: "";

  position: absolute;

  width: min(500px, 90%);

  height: min(72vh, 650px);

  border: 1px solid rgba(7, 21, 95, 0.12);

  pointer-events: none;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {
  .proprietress-sticky {
    grid-template-columns: 1fr;

    align-content: center;

    gap: 40px;

    padding: 50px 7%;
  }

  .proprietress-content {
    max-width: 600px;
  }

  .proprietress-content h2 {
    font-size: 58px;
  }

  .proprietress-image-area {
    height: 45vh;
  }

  .proprietress-image-reveal {
    width: min(430px, 90%);

    height: 45vh;
  }

  .proprietress-image-area::after {
    width: min(430px, 90%);

    height: 45vh;
  }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 640px) {
  .proprietress-section {
    height: 200vh;
  }

  .proprietress-sticky {
    height: 100svh;

    min-height: 700px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: stretch;

    gap: 28px;

    padding: 40px 20px;
  }

  /*
     * Image comes first on mobile,
     * matching the template screenshot.
     */

  .proprietress-image-area {
    order: 1;

    width: 100%;

    height: 45vh;

    min-height: 300px;
  }

  .proprietress-image-reveal {
    width: 100%;

    max-width: 350px;

    height: 45vh;

    min-height: 300px;
  }

  .proprietress-image-area::after {
    width: 100%;

    max-width: 350px;

    height: 45vh;

    min-height: 300px;
  }

  .proprietress-content {
    order: 2;

    max-width: 100%;
  }

  .proprietress-label {
    margin-bottom: 12px;

    font-size: 10px;

    letter-spacing: 2px;
  }

  .proprietress-content h2 {
    font-size: 42px;

    letter-spacing: -2px;

    line-height: 0.92;
  }

  .proprietress-content p {
    margin-top: 18px;

    font-size: 14px;

    line-height: 1.6;
  }

  .proprietress-button {
    margin-top: 18px;

    padding: 11px 20px;
  }
}

/* ==========================================================
   PROPRIETRESS TITLE REVEAL
========================================================== */

.proprietress-title {
  overflow: hidden;
}

/* Meet comes from the RIGHT */

.proprietress-title .title-meet {
  display: block;

  transform: translateX(100vw);

  opacity: 0;

  transition:
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.8s ease;
}

/* "the" stays in the middle */

.proprietress-title .title-the {
  display: block;

  transform: translateX(0);

  opacity: 1;
}

/* Proprietress comes from the LEFT */

.proprietress-title .title-proprietress {
  display: block;

  transform: translateX(-100vw);

  opacity: 0;

  transition:
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.9s ease;
}

/* ==========================================================
   ACTIVE STATE
========================================================== */

.proprietress-title.reveal-active .title-meet {
  transform: translateX(0);

  opacity: 1;
}

.proprietress-title.reveal-active .title-proprietress {
  transform: translateX(0);

  opacity: 1;
}

/* ==========================================================
   BUILDING MINDS SECTION
========================================================== */

.building-minds-section {
  width: 100%;
  background: #ffffff;
  overflow: hidden;
}

/* ==========================================================
   TOP ACTION BUTTONS
========================================================== */

.building-minds-actions {
  width: 100%;
  max-width: 1400px;

  margin: 0 auto;

  padding: 18px 20px 0;

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 24px;
}

.building-minds-action {
  min-height: 82px;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 20px 35px;

  border-radius: 999px;

  background: #07155f;

  color: #ffffff;

  text-decoration: none;

  text-align: center;

  font-size: 15px;

  font-weight: 600;

  line-height: 1.4;

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.building-minds-action:hover {
  transform: translateY(-3px);

  background: #0b207c;
}

.action-icon {
  margin-left: 5px;

  font-size: 13px;
}

/* ==========================================================
   HEADING
========================================================== */

.building-minds-heading {
  padding: 62px 20px 48px;

  text-align: center;
}

.building-minds-heading h2 {
  margin: 0;

  color: #111111;

  font-size: 30px;

  font-weight: 700;

  line-height: 1.2;
}

/* ==========================================================
   VIDEO GRID
========================================================== */

.building-minds-videos {
  width: 100%;

  max-width: 1200px;

  margin: 0 auto;

  padding: 0 20px 90px;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 38px;
}

/* ==========================================================
   VIDEO CONTAINER
========================================================== */

.building-minds-video {
  width: 100%;

  overflow: hidden;

  background: #000000;

  aspect-ratio: 16 / 9;
}

.building-minds-video video {
  display: block;

  width: 100%;

  height: 100%;

  object-fit: cover;

  background: #000000;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {
  .building-minds-actions {
    gap: 16px;
  }

  .building-minds-action {
    min-height: 75px;

    padding: 18px 25px;

    font-size: 14px;
  }

  .building-minds-videos {
    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
  }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 640px) {
  .building-minds-actions {
    grid-template-columns: 1fr;

    gap: 12px;

    padding: 14px 15px 0;
  }

  .building-minds-action {
    min-height: 70px;

    padding: 16px 20px;

    font-size: 13px;
  }

  .building-minds-heading {
    padding: 45px 20px 35px;
  }

  .building-minds-heading h2 {
    font-size: 24px;
  }

  .building-minds-videos {
    grid-template-columns: 1fr;

    gap: 25px;

    padding: 0 15px 60px;
  }
}

/* =====================================================
   WHY CHOOSE IRETOPE
   PINNED STACKED CARD SECTION
====================================================== */

.why-section {
  position: relative;

  /*
   * This creates the scrolling distance.
   *
   * The screen stays pinned while the cards
   * use this extra height to move upward.
   */
  height: 2300px;

  width: 100%;

  background: #ffffff;
}

/* =====================================================
   STICKY SCREEN
====================================================== */

.why-sticky {
  position: sticky;

  top: 0;

  width: 100%;

  height: 100vh;

  min-height: 650px;

  display: flex;

  align-items: center;

  gap: 80px;

  max-width: 1300px;

  margin: 0 auto;

  padding: 80px 40px;

  overflow: hidden;
}

/* =====================================================
   LEFT CONTENT
====================================================== */

.why-content {
  width: 45%;

  flex-shrink: 0;
}

.why-content h3 {
  margin: 0;

  font-size: clamp(40px, 5vw, 60px);

  line-height: 1;

  font-weight: 800;

  color: #000;
}

.why-content p {
  margin-top: 40px;

  max-width: 500px;

  font-size: 16px;

  line-height: 1.8;

  color: #222;
}

.why-content a {
  display: inline-block;

  margin-top: 40px;

  background: #000;

  color: #fff;

  padding: 15px 35px;

  text-decoration: none;

  transition: transform 0.3s ease;
}

.why-content a:hover {
  transform: translateY(-3px);
}

/* =====================================================
   CARDS AREA
====================================================== */

.cards-area {
  position: relative;

  width: 55%;

  height: 500px;

  flex-shrink: 0;

  display: flex;

  justify-content: center;

  align-items: center;
}

/* =====================================================
   STACK CARD
====================================================== */

.stack-card {
  position: absolute;

  top: 50%;

  left: 50%;

  width: 360px;

  height: 360px;

  padding: 45px;

  border-radius: 40px;

  transform-origin: center center;

  transition:
    transform 0.15s linear,
    opacity 0.15s linear;

  will-change: transform, opacity;
}

/* =====================================================
   CARD TEXT
====================================================== */

.stack-card h4 {
  margin: 0;

  font-size: 20px;

  line-height: 1.2;

  font-weight: 700;

  color: #000;
}

.stack-card strong {
  display: block;

  margin-top: 110px;

  font-size: 28px;

  line-height: 1.1;

  font-weight: 800;

  color: #000;
}

/* =====================================================
   CARD 1
====================================================== */

.card-one {
  background: #0795ee;

  z-index: 3;

  transform: translate(-50%, -50%) rotate(0deg);
}

/* =====================================================
   CARD 2
====================================================== */

.card-two {
  background: #d91b42;

  z-index: 2;

  transform: translate(-50%, -50%) rotate(-8deg) scale(1.04);
}

/* =====================================================
   CARD 3
====================================================== */

.card-three {
  background: #aa58a8;

  z-index: 1;

  transform: translate(-50%, -50%) rotate(-15deg);
}

/* =====================================================
   MOBILE
====================================================== */

@media (max-width: 900px) {
  .why-section {
    /*
     * Still enough scrolling distance for
     * all 3 cards to leave the screen.
     */
    height: 2100px;
  }

  .why-sticky {
    top: 0;

    height: 100vh;

    min-height: 600px;

    display: block;

    padding: 50px 20px;

    overflow: hidden;
  }

  /* ===============================
     LEFT CONTENT
  ================================ */

  .why-content {
    width: 100%;

    padding-top: 20px;
  }

  .why-content h3 {
    font-size: clamp(36px, 10vw, 48px);

    line-height: 0.98;
  }

  .why-content p {
    margin-top: 25px;

    max-width: 100%;

    font-size: 15px;

    line-height: 1.65;
  }

  .why-content a {
    margin-top: 25px;

    padding: 13px 28px;
  }

  /* ===============================
     CARDS AREA
  ================================ */

  .cards-area {
    position: absolute;

    left: 0;

    top: 55%;

    width: 100%;

    height: 360px;

    display: block;
  }

  /* ===============================
     MOBILE CARDS
  ================================ */

  .stack-card {
    width: min(300px, calc(100vw - 50px));

    height: min(300px, calc(100vw - 50px));

    padding: 28px;

    border-radius: 28px;
  }

  .stack-card h4 {
    font-size: 17px;

    line-height: 1.2;
  }

  .stack-card strong {
    margin-top: 75px;

    font-size: clamp(21px, 7vw, 27px);

    line-height: 1.08;
  }

  .card-one {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  .card-two {
    transform: translate(-50%, -50%) rotate(-8deg) scale(1.04);
  }

  .card-three {
    transform: translate(-50%, -50%) rotate(-15deg);
  }
}

/* =====================================================
   SMALL PHONES
====================================================== */

@media (max-width: 480px) {
  .why-section {
    height: 2000px;
  }

  .why-sticky {
    padding-left: 16px;

    padding-right: 16px;
  }

  .why-content h3 {
    font-size: 40px;

    line-height: 0.98;
  }

  .why-content p {
    font-size: 15px;

    line-height: 1.6;
  }

  .cards-area {
    top: 65%;

    height: 340px;
  }

  .stack-card {
    width: calc(100vw - 55px);

    height: calc(100vw - 55px);

    max-width: 290px;

    max-height: 290px;

    padding: 26px;
  }

  .stack-card h4 {
    font-size: 16px;
  }

  .stack-card strong {
    margin-top: 70px;

    font-size: 23px;

    line-height: 1.08;
  }
}

/* =====================================================
   ABOUT US SECTION
===================================================== */

.about {
  background: #d4af37;
  min-height: 140vh;

  padding: 140px 10%;

  display: flex;
  flex-direction: column;
  justify-content: center;

  position: relative;
  overflow: hidden;
}

/* ABOUT LABEL */

.about > .elementor-element-8c22a4f {
  position: absolute;
  top: 60px;
  left: 10%;
}

.about > .elementor-element-8c22a4f h1 {
  font-size: 28px !important;
  font-weight: 600;
  letter-spacing: 1px;
  color: #000;
}

/* MAIN TEXT */

.about .cool-split {
  width: 100%;
  max-width: 1100px;
}

.about .cool-split h2 {
  margin: 0;

  font-size: clamp(36px, 4.5vw, 64px);

  line-height: 1.15;

  font-weight: 500;

  text-align: left;

  color: rgba(0, 0, 0, 0.12);
}

/* SPLIT TYPE CHARACTERS */

.about .about-char {
  color: rgba(0, 0, 0, 0.12);
  transition: color 0.15s linear;
}

/* READ MORE */

.about .elementor-button {
  margin-top: 50px;

  background: #000;

  color: #fff;

  padding: 14px 30px;

  border-radius: 0;

  font-size: 15px;
}

.about .elementor-button:hover {
  background: #222;
}

/* =====================================================
   DESKTOP
===================================================== */

@media (min-width: 901px) {
  .about {
    padding-left: 12%;
    padding-right: 12%;
  }

  .about > .elementor-element-8c22a4f {
    left: 12%;
  }

  .about .cool-split h2 {
    max-width: 1050px;
    font-size: clamp(42px, 4vw, 62px);
    font-weight: 500;
  }
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {
  .about {
    min-height: 80vh;

    padding: 120px 30px 100px;

    justify-content: center;
  }

  .about > .elementor-element-8c22a4f {
    top: 40px;
    left: 30px;
  }

  .about > .elementor-element-8c22a4f h1 {
    font-size: 22px !important;
  }

  .about .cool-split h2 {
    font-size: clamp(32px, 7vw, 48px);

    line-height: 1.2;

    font-weight: 500;

    text-align: left;
  }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 480px) {
  .about {
    min-height: 90vh;

    padding: 100px 20px 80px;
  }

  .about > .elementor-element-8c22a4f {
    top: 30px;
    left: 20px;
  }

  .about > .elementor-element-8c22a4f h1 {
    font-size: 18px !important;
    letter-spacing: 0.5px;
  }

  .about .cool-split h2 {
    font-size: 31px;

    line-height: 1.2;

    font-weight: 500;

    text-align: left;
  }

  .about .elementor-button {
    margin-top: 35px;

    padding: 12px 25px;
  }
}

/* =====================================================
   ABOUT US - MOBILE FIX
===================================================== */

@media (max-width: 480px) {
  .about {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    padding: 100px 20px 80px;

    overflow: hidden;
  }

  .about .cool-split {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .about .cool-split h2 {
    width: 100%;
    max-width: 100%;

    margin: 0;

    font-size: 28px;
    line-height: 1.25;

    font-weight: 500;

    text-align: left;

    overflow-wrap: break-word;
    word-break: normal;
  }

  .about .cool-split h2 .about-char {
    display: inline;
    white-space: normal;
  }

  .about > .elementor-element-8c22a4f {
    left: 20px;
    right: 20px;
    width: auto;
  }
}

/* =====================================================
   ABOUT TEXT WORD ALIGNMENT
===================================================== */

.about .about-word {
  display: inline-block;
  white-space: nowrap;
}

.about .about-char {
  display: inline;
  white-space: normal;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 480px) {
  .about {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;

    padding: 100px 20px 80px;
  }

  .about .cool-split {
    width: 100%;
    max-width: 100%;
  }

  .about .cool-split h2 {
    width: 100%;
    max-width: 100%;

    margin: 0;

    font-size: 28px;
    line-height: 1.25;
    font-weight: 500;

    text-align: left;

    overflow-wrap: normal;
    word-break: normal;
  }

  .about .about-word {
    display: inline-block;
    white-space: nowrap;
  }

  .about .about-char {
    display: inline;
  }
}

/* =====================================================
   ACADEMIC PROGRAMMES
===================================================== */

.academic-programmes {
  width: 100%;
  background: #d4af37;
  overflow: hidden;
  padding: 0;
}

/* =====================================================
   GRID
===================================================== */

.academic-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/* =====================================================
   CARD
===================================================== */

.academic-card {
  position: relative;
  min-width: 0;
  min-height: 620px;

  display: flex;
  flex-direction: column;

  justify-content: flex-end;

  padding: 50px 40px;

  overflow: hidden;

  border-right: 1px solid rgba(0, 0, 0, 0.25);

  cursor: pointer;
}

.academic-card:last-child {
  border-right: none;
}

/* =====================================================
   IMAGE
===================================================== */

.academic-image {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;

  z-index: 1;

  clip-path: inset(100% 0 0 0);

  transition:
    clip-path 0.8s cubic-bezier(0.77, 0, 0.18, 1),
    transform 0.8s ease;
}

/* IMAGE */

.academic-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transform: scale(1.08);

  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =====================================================
   DARK IMAGE OVERLAY
===================================================== */

.academic-image::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.05) 65%
  );

  opacity: 0;

  transition: opacity 0.7s ease;
}

/* =====================================================
   HOVER IMAGE REVEAL
   DESKTOP
===================================================== */

.academic-card:hover .academic-image {
  clip-path: inset(0 0 0 0);
}

.academic-card:hover .academic-image img {
  transform: scale(1);
}

.academic-card:hover .academic-image::after {
  opacity: 1;
}

/* =====================================================
   CONTENT
===================================================== */

.academic-content {
  position: relative;

  z-index: 2;

  transition:
    transform 0.6s ease,
    color 0.6s ease;
}

/* =====================================================
   LABEL
===================================================== */

.academic-label {
  display: block;

  margin-bottom: 18px;

  font-size: 13px;

  font-weight: 600;

  letter-spacing: 2px;

  color: #111;

  transition: color 0.5s ease;
}

/* =====================================================
   TITLE
===================================================== */

.academic-content h2 {
  margin: 0;

  font-size: clamp(25px, 2.3vw, 40px);

  line-height: 1.05;

  font-weight: 500;

  letter-spacing: -1px;

  color: #111;

  transition: color 0.5s ease;
}

/* =====================================================
   DIVIDER
===================================================== */

.academic-divider {
  width: 55px;

  height: 1px;

  margin: 28px 0;

  background: rgba(0, 0, 0, 0.35);

  transition:
    width 0.5s ease,
    background 0.5s ease;
}

/* =====================================================
   AGE
===================================================== */

.academic-age {
  margin: 0;

  font-size: clamp(24px, 2vw, 34px);

  line-height: 1;

  font-weight: 500;

  color: #111;

  transition: color 0.5s ease;
}

.academic-age sup {
  font-size: 11px;

  font-weight: 500;

  vertical-align: top;

  margin-left: 4px;

  letter-spacing: 0.5px;
}

/* =====================================================
   HOVER CONTENT
===================================================== */

.academic-card:hover .academic-label,
.academic-card:hover .academic-content h2,
.academic-card:hover .academic-age {
  color: #fff;
}

.academic-card:hover .academic-divider {
  width: 90px;

  background: rgba(255, 255, 255, 0.7);
}

/* =====================================================
   SLIGHT CONTENT MOVEMENT
===================================================== */

.academic-card:hover .academic-content {
  transform: translateY(-8px);
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1024px) {
  .academic-card {
    min-height: 540px;

    padding: 35px 25px;
  }

  .academic-content h2 {
    font-size: 26px;
  }

  .academic-age {
    font-size: 26px;
  }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {
  .academic-grid {
    grid-template-columns: 1fr;
  }

  .academic-card {
    min-height: 520px;

    padding: 35px 25px;

    border-right: none;

    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  }

  .academic-card:last-child {
    border-bottom: none;
  }

  .academic-content h2 {
    font-size: 30px;
  }

  .academic-label {
    font-size: 11px;

    letter-spacing: 1.5px;
  }

  .academic-age {
    font-size: 25px;
  }

  /* Disable hover as the main trigger on mobile */

  .academic-card:hover .academic-image {
    clip-path: inset(100% 0 0 0);
  }

  .academic-card:hover .academic-image::after {
    opacity: 0;
  }

  .academic-card:hover .academic-content {
    transform: none;
  }

  .academic-card:hover .academic-label,
  .academic-card:hover .academic-content h2,
  .academic-card:hover .academic-age {
    color: #111;
  }

  .academic-card:hover .academic-divider {
    width: 55px;

    background: rgba(0, 0, 0, 0.35);
  }

  /* Scroll reveal */

  .academic-card.is-visible .academic-image {
    clip-path: inset(0 0 0 0);
  }

  .academic-card.is-visible .academic-image img {
    transform: scale(1);
  }

  .academic-card.is-visible .academic-image::after {
    opacity: 1;
  }

  .academic-card.is-visible .academic-content {
    transform: translateY(-8px);
  }

  .academic-card.is-visible .academic-label,
  .academic-card.is-visible .academic-content h2,
  .academic-card.is-visible .academic-age {
    color: #fff;
  }

  .academic-card.is-visible .academic-divider {
    width: 90px;

    background: rgba(255, 255, 255, 0.7);
  }
}

/* =====================================================
   GALLERY PREVIEW
===================================================== */

.gallery-preview {
  width: 100%;
  background: #fff;
  padding: 120px 0;
  overflow: hidden;
}

/* =====================================================
   CONTAINER
===================================================== */

.gallery-container {
  width: min(1400px, calc(100% - 100px));
  margin: 0 auto;
}

/* =====================================================
   HEADER
===================================================== */

.gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 40px;

  margin-bottom: 55px;
}

.gallery-eyebrow {
  display: block;

  margin-bottom: 15px;

  font-size: 12px;
  font-weight: 600;

  letter-spacing: 3px;

  color: #8d7220;
}

.gallery-header h2 {
  margin: 0;

  font-size: clamp(42px, 5vw, 76px);

  line-height: 0.95;

  font-weight: 500;

  letter-spacing: -3px;

  color: #111;
}

/* =====================================================
   HEADER LINK
===================================================== */

.gallery-link {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  padding-bottom: 8px;

  border-bottom: 1px solid #111;

  color: #111;

  font-size: 14px;

  font-weight: 500;

  text-decoration: none;

  white-space: nowrap;

  transition:
    gap 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.gallery-link span {
  font-size: 18px;

  transition: transform 0.3s ease;
}

.gallery-link:hover {
  gap: 18px;

  color: #b08d1a;

  border-color: #b08d1a;
}

.gallery-link:hover span {
  transform: translate(3px, -3px);
}

/* =====================================================
   GALLERY GRID
===================================================== */

.gallery-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  grid-auto-rows: 260px;

  gap: 14px;
}

/* =====================================================
   GALLERY ITEM
===================================================== */

.gallery-item {
  position: relative;

  display: block;

  overflow: hidden;

  background: #eee;

  text-decoration: none;
}

.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item-wide {
  grid-column: span 2;
}

/* =====================================================
   IMAGE
===================================================== */

.gallery-item img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}

/* =====================================================
   OVERLAY
===================================================== */

.gallery-item::after {
  content: "VIEW GALLERY ↗";

  position: absolute;

  inset: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.28);

  color: #fff;

  font-size: 12px;

  font-weight: 600;

  letter-spacing: 2px;

  opacity: 0;

  transition: opacity 0.4s ease;
}

/* =====================================================
   HOVER
===================================================== */

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* =====================================================
   BOTTOM LINK
===================================================== */

.gallery-bottom-link {
  display: flex;

  justify-content: center;

  margin-top: 55px;
}

.gallery-button {
  display: inline-flex;

  align-items: center;

  gap: 15px;

  padding: 16px 28px;

  background: #111;

  color: #fff;

  text-decoration: none;

  font-size: 13px;

  font-weight: 500;

  letter-spacing: 0.5px;

  transition:
    background 0.3s ease,
    gap 0.3s ease;
}

.gallery-button span {
  font-size: 18px;
}

.gallery-button:hover {
  background: #b08d1a;

  gap: 20px;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1024px) {
  .gallery-preview {
    padding: 90px 0;
  }

  .gallery-container {
    width: min(100% - 50px, 900px);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);

    grid-auto-rows: 260px;
  }

  .gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item-wide {
    grid-column: span 2;
  }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {
  .gallery-preview {
    padding: 75px 0;
  }

  .gallery-container {
    width: calc(100% - 36px);
  }

  /* Header */

  .gallery-header {
    display: block;

    margin-bottom: 35px;
  }

  .gallery-header h2 {
    font-size: 45px;

    letter-spacing: -2px;
  }

  .gallery-link {
    margin-top: 25px;
  }

  /* Grid */

  .gallery-grid {
    grid-template-columns: 1fr;

    grid-auto-rows: 260px;

    gap: 10px;
  }

  .gallery-item-large,
  .gallery-item-wide {
    grid-column: span 1;

    grid-row: span 1;
  }

  .gallery-item-large {
    height: 340px;
  }

  /* Disable overlay on touch devices */

  .gallery-item::after {
    display: none;
  }

  .gallery-item:active img {
    transform: scale(1.03);
  }

  /* Bottom button */

  .gallery-bottom-link {
    margin-top: 40px;
  }

  .gallery-button {
    width: 100%;

    justify-content: center;

    padding: 17px 20px;
  }
}

/* =========================================================
   CTA SECTION
   ========================================================= */

.cta {
  background: #d4af37;
  padding: 80px 20px;
  text-align: center;
}

.cta .container {
  max-width: 900px;
  margin: 0 auto;
}

.cta h2 {
  margin: 0 0 15px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
}

.cta p {
  margin: 0 0 30px;
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

/* =========================================================
   ADMISSION SECTION
   ========================================================= */

.admission {
  background: #ffffff;
  padding: 90px 20px;
}

.admission .container {
  max-width: 850px;
  margin: 0 auto;
}

.admission h2 {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: #111111;
}

.admission > .container > p {
  margin: 0 auto 45px;
  text-align: center;
  color: #666666;
  font-size: 1rem;
}

/* =========================================================
   FORM
   ========================================================= */

#admissionForm {
  background: #fafafa;
  padding: 40px;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #222222;
}

.form-group input,
.form-group select {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #dddddd;
  border-radius: 6px;
  background: #ffffff;
  color: #222222;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  box-sizing: border-box;
}

.form-group input::placeholder {
  color: #999999;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

/* =========================================================
   FORM ERROR
   ========================================================= */

.form-group.has-error input,
.form-group.has-error select {
  border-color: #d93025;
}

.form-group.has-error input:focus,
.form-group.has-error select:focus {
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1);
}

.error {
  display: block;
  min-height: 18px;
  margin-top: 5px;
  font-size: 0.8rem;
  color: #d93025;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 25px;
  border: none;
  border-radius: 5px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
  box-sizing: border-box;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: #09075e;
  color: #ffffff;
}

.btn.primary:hover {
  background: #07054a;
  box-shadow: 0 8px 20px rgba(9, 7, 94, 0.2);
}

.btn.full {
  width: 100%;
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */

.contact {
  background: #f7f7f7;
  padding: 90px 20px;
}

.contact-wrapper {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: stretch;
}

.contact-info {
  padding: 10px 0;
}

.contact-info h2 {
  margin: 0 0 30px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: #111111;
}

.contact-info p {
  margin: 0 0 25px;
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-info strong {
  color: #111111;
  font-weight: 600;
}

.contact-info a {
  color: #09075e;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* =========================================================
   CONTACT BUTTONS
   ========================================================= */

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn.secondary {
  background: #ffffff;
  color: #09075e;
  border: 1px solid #09075e;
}

.btn.secondary:hover {
  background: #09075e;
  color: #ffffff;
}

.btn.whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn.whatsapp:hover {
  background: #1ebe5d;
}

/* =========================================================
   MAP
   ========================================================= */

.map-box {
  min-height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.map-box iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 450px;
  border: 0;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info {
    max-width: 700px;
  }

  .map-box {
    min-height: 400px;
  }

  .map-box iframe {
    min-height: 400px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .cta {
    padding: 65px 20px;
  }

  .cta h2 {
    font-size: 1.8rem;
  }

  .cta p {
    font-size: 0.95rem;
  }

  .admission {
    padding: 65px 15px;
  }

  .admission h2 {
    font-size: 1.9rem;
  }

  .admission > .container > p {
    margin-bottom: 30px;
  }

  #admissionForm {
    padding: 25px 20px;
    border-radius: 10px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group input,
  .form-group select {
    height: 50px;
  }

  .btn {
    width: 100%;
  }

  .contact {
    padding: 65px 20px;
  }

  .contact-info h2 {
    font-size: 1.9rem;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .contact-buttons .btn {
    width: 100%;
  }

  .map-box,
  .map-box iframe {
    min-height: 350px;
  }
}

/* =========================================================
   MODERN FOOTER
   ========================================================= */

.site-footer {
  background: #09075e;
  color: #ffffff;
}

/* =========================================================
   FOOTER MAIN
   ========================================================= */

.footer-main {
  padding: 75px 20px 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns:
    1.5fr
    1fr
    1fr
    1.4fr;

  gap: 50px;
}

/* =========================================================
   FOOTER COLUMNS
   ========================================================= */

.footer-column h3 {
  margin: 0 0 25px;

  font-size: 1rem;
  font-weight: 600;

  color: #ffffff;

  position: relative;
  padding-bottom: 12px;
}

/* Small gold line */

.footer-column h3::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 32px;
  height: 2px;

  background: #d4af37;
}

/* =========================================================
   FOOTER ABOUT
   ========================================================= */

.footer-logo {
  display: inline-block;

  margin-bottom: 20px;

  color: #ffffff;

  font-size: 1.45rem;
  font-weight: 700;

  letter-spacing: 1px;

  text-decoration: none;
}

.footer-logo span {
  color: #d4af37;
}

.footer-about > p {
  max-width: 330px;

  margin: 0;

  color: rgba(255, 255, 255, 0.7);

  font-size: 0.9rem;
  line-height: 1.8;
}

/* =========================================================
   FOOTER LINKS
   ========================================================= */

.footer-column ul {
  list-style: none;

  margin: 0;
  padding: 0;
}

.footer-column li {
  margin-bottom: 13px;
}

.footer-column li a {
  color: rgba(255, 255, 255, 0.7);

  font-size: 0.9rem;

  text-decoration: none;

  transition:
    color 0.25s ease,
    padding-left 0.25s ease;
}

.footer-column li a:hover {
  color: #d4af37;
  padding-left: 5px;
}

/* =========================================================
   SOCIAL MEDIA
   ========================================================= */

.footer-social {
  display: flex;

  gap: 10px;

  margin-top: 28px;
}

.footer-social a {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.2);

  border-radius: 50%;

  color: #ffffff;

  font-size: 0.85rem;

  text-decoration: none;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.footer-social a:hover {
  background: #d4af37;

  border-color: #d4af37;

  color: #09075e;

  transform: translateY(-3px);
}

/* =========================================================
   CONTACT
   ========================================================= */

.footer-contact-item {
  display: flex;

  align-items: flex-start;

  gap: 13px;

  margin-bottom: 20px;
}

.footer-contact-item > i {
  width: 18px;

  margin-top: 4px;

  color: #d4af37;

  font-size: 0.9rem;
}

.footer-contact-item p {
  margin: 0;

  color: rgba(255, 255, 255, 0.7);

  font-size: 0.88rem;

  line-height: 1.7;
}

.footer-contact-item a {
  display: block;

  margin-bottom: 5px;

  color: rgba(255, 255, 255, 0.75);

  font-size: 0.88rem;

  text-decoration: none;

  transition: color 0.25s ease;
}

.footer-contact-item a:hover {
  color: #d4af37;
}

/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);

  padding: 20px;
}

.footer-bottom-container {
  max-width: 1200px;

  margin: 0 auto;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;
}

.footer-bottom p {
  margin: 0;

  color: rgba(255, 255, 255, 0.55);

  font-size: 0.78rem;

  line-height: 1.5;
}

/* =========================================================
   DEVELOPER CREDIT
   ========================================================= */

.developer-credit {
  text-align: right;
}

.developer-credit a {
  color: #d4af37;

  font-weight: 500;

  text-decoration: none;

  transition: color 0.25s ease;
}

.developer-credit a:hover {
  color: #ffffff;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns:
      1.5fr
      1fr
      1fr;

    gap: 45px;
  }

  .footer-contact {
    grid-column: span 3;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .footer-main {
    padding: 60px 20px 45px;
  }

  .footer-container {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  .footer-contact {
    grid-column: auto;
  }

  .footer-logo {
    font-size: 1.3rem;
  }

  .footer-about > p {
    max-width: 100%;
  }

  .footer-bottom {
    padding: 20px;
  }

  .footer-bottom-container {
    flex-direction: column;

    align-items: flex-start;

    text-align: left;

    gap: 8px;
  }

  .developer-credit {
    text-align: left;
  }
}

/* =====================================================
   ADMISSION POPUP
   ===================================================== */

.admission-popup {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  z-index: 99999;

  visibility: hidden;
  opacity: 0;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

/* =====================================================
   POPUP ACTIVE
   ===================================================== */

.admission-popup.show {
  visibility: visible;
  opacity: 1;
}

/* =====================================================
   DARK OVERLAY
   ===================================================== */

.popup-overlay {
  position: absolute;

  inset: 0;

  background: rgba(0, 0, 0, 0.68);

  backdrop-filter: blur(4px);
}

/* =====================================================
   POPUP BOX
   ===================================================== */

.popup-box {
  position: relative;

  width: 100%;
  max-width: 620px;

  background: #d4af37;

  overflow: hidden;

  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);

  transform: translateY(25px) scale(0.96);

  transition: transform 0.4s ease;
}

.admission-popup.show .popup-box {
  transform: translateY(0) scale(1);
}

/* =====================================================
   POPUP HEADER
   ===================================================== */

.popup-header {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  padding: 22px 25px 0;
}

/* =====================================================
   SCHOOL LOGO
   ===================================================== */

.popup-logo {
  display: block;

  width: 85px;
}

.popup-logo img {
  display: block;

  width: 100%;
  height: auto;

  object-fit: contain;
}

/* =====================================================
   CLOSE BUTTON
   ===================================================== */

.popup-close {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;

  background: #000;
  color: #fff;

  font-size: 27px;
  font-weight: 300;

  line-height: 1;

  cursor: pointer;

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.popup-close:hover {
  background: #222;

  transform: rotate(90deg);
}

/* =====================================================
   POPUP CONTENT
   ===================================================== */

.popup-content {
  padding: 45px 55px 55px;

  text-align: center;
}

/* =====================================================
   LABEL
   ===================================================== */

.popup-label {
  display: inline-block;

  margin-bottom: 18px;

  font-size: 12px;

  font-weight: 600;

  letter-spacing: 2px;

  color: rgba(0, 0, 0, 0.65);
}

/* =====================================================
   TITLE
   ===================================================== */

.popup-content h2 {
  margin: 0 auto 18px;

  max-width: 500px;

  font-size: clamp(30px, 4vw, 48px);

  line-height: 1.08;

  font-weight: 500;

  color: #000;
}

/* =====================================================
   DESCRIPTION
   ===================================================== */

.popup-content p {
  margin: 0 auto 30px;

  max-width: 460px;

  font-size: 16px;

  line-height: 1.6;

  font-weight: 400;

  color: rgba(0, 0, 0, 0.72);
}

/* =====================================================
   CTA BUTTON
   ===================================================== */

.popup-admission-btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 14px 30px;

  background: #000;

  color: #fff;

  text-decoration: none;

  font-size: 14px;

  font-weight: 500;

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.popup-admission-btn:hover {
  background: #222;

  transform: translateY(-2px);
}

/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 600px) {
  .admission-popup {
    padding: 15px;
  }

  .popup-box {
    max-width: 100%;
  }

  .popup-header {
    padding: 16px 18px 0;
  }

  .popup-logo {
    width: 68px;
  }

  .popup-close {
    width: 38px;
    height: 38px;

    font-size: 24px;
  }

  .popup-content {
    padding: 35px 25px 40px;
  }

  .popup-label {
    font-size: 10px;

    letter-spacing: 1.5px;

    margin-bottom: 14px;
  }

  .popup-content h2 {
    font-size: 29px;

    line-height: 1.12;
  }

  .popup-content p {
    font-size: 14px;

    line-height: 1.55;

    margin-bottom: 25px;
  }

  .popup-admission-btn {
    width: 100%;

    padding: 14px 20px;
  }
}

/* =====================================================
   VERY SMALL SCREENS
   ===================================================== */

@media (max-width: 380px) {
  .popup-content {
    padding: 28px 20px 32px;
  }

  .popup-content h2 {
    font-size: 26px;
  }
}
