/* ==========================================================================
   1. TOKENS & VARIABLES
   ========================================================================== */
:root,
[data-theme="light"] {
  --red:        #d2322d;
  --red-dark:   #a82520;
  --sand:       #e8e3df;
  --sand-light: #f2eeeb;
  --white:      #ffffff;
  --surface:    #ffffff;
  --charcoal:   #2b2b2b;
  --ink:        #2b2b2b;
  --text-mid:   #5a5a5a;
  --text-light: #888888;
  --border:     rgba(210, 50, 45, 0.15);
  --border-subtle: rgba(0, 0, 0, 0.05);
  --border-ui:  rgba(0, 0, 0, 0.06);

  --header-height: 86px;
  --header-glass: rgba(255, 255, 255, 0.55);
  --header-solid: rgba(255, 255, 255, 0.96);
  --header-line: rgba(255, 255, 255, 0.4);
  --header-line-scrolled: rgba(0, 0, 0, 0.07);
  --header-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --menu-toggle-bg: rgba(255, 255, 255, 0.8);
  --menu-toggle-border: rgba(0, 0, 0, 0.08);
  --nav-hover-bg: rgba(210, 50, 45, 0.07);
  --dropdown-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);

  --font-display: 'Outfit', 'Poppins', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-round: 50%;
}

[data-theme="dark"] {
  color-scheme: dark;
  --sand:       #2e2c2a;
  --sand-light: #141312;
  --surface:    #1e1c1b;
  --ink:        #ebe8e5;
  --text-mid:   #b0aba6;
  --text-light: #7d7874;
  --border:     rgba(210, 50, 45, 0.28);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-ui:  rgba(255, 255, 255, 0.08);

  --header-glass: rgba(20, 19, 18, 0.82);
  --header-solid: rgba(20, 19, 18, 0.97);
  --header-line: rgba(255, 255, 255, 0.06);
  --header-line-scrolled: rgba(255, 255, 255, 0.09);
  --header-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --menu-toggle-bg: rgba(255, 255, 255, 0.08);
  --menu-toggle-border: rgba(255, 255, 255, 0.12);
  --nav-hover-bg: rgba(210, 50, 45, 0.15);
  --dropdown-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

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

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  background: var(--sand-light);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

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

a { 
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Section Header Typography */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.eyebrow.light {
  color: var(--white);
  opacity: 0.8;
}

.text-center-eyebrow {
  display: block;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
  text-align: left;
}

.section-header {
  text-align: left;
  margin-bottom: 48px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 600px;
  line-height: 1.7;
}

.section-title.light {
  color: var(--white);
}

.divider {
  width: 50px;
  height: 4px;
  background: var(--red);
  margin-bottom: 28px;
  border-radius: var(--radius-sm);
}

.divider.light-divider {
  background: var(--white);
  opacity: 0.6;
}

.divider.center-divider {
  margin-left: 0;
  margin-right: auto;
}

/* ==========================================================================
   3. HEADER & STICKY NAVIGATION
   ========================================================================== */
.header {
  --logo-scale: 1;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0;
  background: var(--header-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-line);
  transition:
    background 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.is-scrolled {
  --logo-scale: 0.826;
  background: var(--header-solid);
  border-bottom-color: var(--header-line-scrolled);
  box-shadow: var(--header-shadow);
}

.header > .container {
  max-width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.header-inner {
  display: grid;
  grid-template-columns: 168px 1fr auto;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  display: block;
  line-height: 0;
}

.header-logo-img {
  height: 46px;
  width: auto;
  max-height: none;
  object-fit: contain;
  transform: scale(var(--logo-scale));
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.header-nav {
  display: flex;
  justify-content: center;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--menu-toggle-border);
  border-radius: var(--radius-md);
  background: var(--menu-toggle-bg);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.theme-toggle .theme-icon-light {
  display: none;
}

.theme-toggle .theme-icon-dark {
  display: inline-block;
}

[data-theme="dark"] .theme-toggle .theme-icon-dark {
  display: none;
}

[data-theme="dark"] .theme-toggle .theme-icon-light {
  display: inline-block;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--menu-toggle-border);
  border-radius: var(--radius-md);
  background: var(--menu-toggle-bg);
  color: var(--ink);
  font-size: 17px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.menu-toggle:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.menu-toggle.is-active .icon-open {
  display: none;
}

.menu-toggle.is-active .icon-close {
  display: inline;
}

.header-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.header-list li {
  position: relative;
}

.drawer-head,
.mobile-cta-wrap {
  display: none;
}

.header-list > li > a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease;
}

.header-list > li > a:hover,
.header-list > li > a.active {
  color: var(--red);
  background: var(--nav-hover-bg);
}

/* Dropdown */
.dropdown-arrow {
  font-size: 9px;
  opacity: 0.55;
  transition: var(--transition-fast);
}

.dropdown-item:hover .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.dropdown-menu-list {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface);
  min-width: 250px;
  border-radius: var(--radius-md);
  box-shadow: var(--dropdown-shadow);
  border: 1px solid var(--border-ui);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  list-style: none;
  z-index: 100;
}

.dropdown-item:hover .dropdown-menu-list {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu-list li a {
  display: block;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.dropdown-menu-list li a:hover,
.dropdown-menu-list li a.active {
  background: var(--sand-light);
  color: var(--red);
}

.dropdown-menu-list li a.active {
  font-weight: 600;
}

/* CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(210, 50, 45, 0.25);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.header-cta:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(210, 50, 45, 0.32);
}

/* Mobile */
@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .header-nav {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    pointer-events: none;
    z-index: 1001;
  }

  .header-list {
    pointer-events: auto;
  }

  .header-logo {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: calc(100vw - 108px);
  }

  .header-logo-img {
    height: 38px;
    max-width: 100%;
  }

  .header-actions {
    gap: 6px;
    position: relative;
    z-index: 1004;
    flex-shrink: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-cta-desktop {
    display: none;
  }

  .header-list {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 100%);
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1003;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18);
    border-left: 3px solid var(--red);
  }

  .header-list.active {
    transform: translateX(0);
  }

  .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--sand);
    background: var(--sand-light);
  }

  .drawer-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  .close_menu_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: var(--radius-round);
    background: var(--surface);
    color: var(--ink);
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-fast);
  }

  .close_menu_icon:hover {
    background: var(--red);
    color: var(--white);
  }

  .header-list > li:not(.drawer-head):not(.mobile-cta-wrap) {
    border-bottom: 1px solid var(--border-subtle);
  }

  .header-list > li > a {
    width: 100%;
    padding: 14px 20px;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    background: transparent;
    justify-content: space-between;
  }

  .header-list > li > a:hover,
  .header-list > li > a.active {
    background: var(--nav-hover-bg);
    color: var(--red);
  }

  .dropdown-item > a .dropdown-arrow {
    display: inline-block;
    font-size: 11px;
    margin-left: 12px;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  }

  .dropdown-item:hover > a .dropdown-arrow {
    transform: none;
    opacity: 0.55;
  }

  .dropdown-item.open > a .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--red);
  }

  .dropdown-item.open > a {
    background: var(--nav-hover-bg);
    color: var(--red);
  }

  .dropdown-item .dropdown-menu-list,
  .dropdown-item:hover .dropdown-menu-list,
  .dropdown-item.open .dropdown-menu-list,
  .dropdown-item.open:hover .dropdown-menu-list {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    margin: 0;
    min-width: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    background: var(--sand-light);
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .dropdown-item.open .dropdown-menu-list,
  .dropdown-item.open:hover .dropdown-menu-list {
    max-height: 480px;
    padding: 4px 0 10px;
    border-top: 1px solid var(--border-subtle);
    overflow-x: hidden;
    overflow-y: auto;
  }

  .dropdown-menu-list li {
    width: 100%;
  }

  .dropdown-menu-list li a {
    display: block;
    width: 100%;
    padding: 11px 16px 11px 24px;
    font-size: 13.5px;
    border-radius: 0;
    position: relative;
    white-space: normal;
    word-break: break-word;
  }

  .dropdown-menu-list li a::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: var(--radius-round);
    background: var(--red);
    opacity: 0.45;
    transform: translateY(-50%);
  }

  .dropdown-menu-list li a:hover {
    background: var(--surface);
    color: var(--red);
    padding-left: 28px;
  }

  .dropdown-item:not(.open):hover .dropdown-menu-list {
    max-height: 0;
    padding: 0;
    border-top: none;
  }

  .dropdown-item > a {
    cursor: pointer;
  }

  .mobile-cta-wrap {
    display: block;
    flex-shrink: 0;
    padding: 16px 20px max(20px, env(safe-area-inset-bottom));
    margin-top: auto;
    border-top: 1px solid var(--sand);
    background: var(--sand-light);
    position: sticky;
    bottom: 0;
    z-index: 2;
  }

  .mobile-cta-wrap .mobile-cta-btn,
  .mobile-cta-wrap .header-cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: var(--radius-md);
    background: var(--red);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 16px rgba(210, 50, 45, 0.3);
    transform: none;
  }

  .mobile-cta-wrap .mobile-cta-btn:hover,
  .mobile-cta-wrap .header-cta:hover {
    background: var(--red-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(210, 50, 45, 0.35);
  }

  .menu_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  .menu_overlay:not(.active) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .menu_overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .container {
    max-width: 100%;
  }

  .hero-slider,
  .page-hero-banner,
  .academic-inner-section,
  .floating-sidebar {
    max-width: 100vw;
  }
}

/* Desktop nav — unaffected by mobile drawer styles */
@media (min-width: 1101px) {
  .header-nav {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    pointer-events: auto;
    z-index: auto;
  }

  .header-list {
    position: static;
    width: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    transform: none;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
    padding: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
    background: transparent;
  }

  .header-list > li:not(.drawer-head):not(.mobile-cta-wrap) {
    border-bottom: none;
  }

  .header-list > li > a {
    width: auto;
    padding: 8px 10px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    justify-content: center;
  }

  .header-inner {
    gap: 16px;
    grid-template-columns: 150px 1fr auto;
  }

  .header-cta {
    padding: 10px 16px;
    font-size: 12px;
  }
}

@media (min-width: 1200px) {
  .header > .container {
    max-width: 1440px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .header-list {
    gap: 3px;
  }

  .header-list > li > a {
    padding: 8px 11px;
    font-size: 13.5px;
  }

  .header-cta {
    padding: 10px 18px;
    font-size: 12.5px;
  }
}

@media (min-width: 1400px) {
  .header > .container {
    max-width: 1500px;
    padding-left: 32px;
    padding-right: 32px;
  }

  .header-inner {
    gap: 20px;
    grid-template-columns: 168px 1fr auto;
  }

  .header-list {
    gap: 4px;
  }

  .header-list > li > a {
    padding: 9px 12px;
    font-size: 14px;
  }

  .header-cta {
    padding: 11px 20px;
    font-size: 13px;
  }
}

@media (min-width: 1600px) {
  .header > .container {
    max-width: 1680px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .header-list > li > a {
    padding: 9px 14px;
    font-size: 14.5px;
  }

  .header-cta {
    padding: 11px 22px;
    font-size: 13px;
  }
}

@media (min-width: 1101px) {

  .dropdown-item > a {
    justify-content: center;
  }

  .dropdown-item > a .dropdown-arrow {
    margin-left: 0;
    font-size: 9px;
  }

  .dropdown-item:hover > a .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
  }

  .dropdown-item.open > a .dropdown-arrow {
    transform: none;
    opacity: 0.55;
  }

  .dropdown-item.open > a {
    background: transparent;
    color: var(--ink);
  }

  .dropdown-item.open .dropdown-menu-list {
    max-height: none;
    padding: 8px;
    border-top: none;
  }

  .dropdown-menu-list li a::before {
    display: none;
  }

  .dropdown-menu-list li a {
    padding: 9px 12px;
  }

  .dropdown-menu-list li a:hover {
    padding-left: 12px;
  }

  .menu-toggle .icon-close {
    display: none !important;
  }

  .menu-toggle.is-active .icon-open {
    display: inline !important;
  }
}

/* ==========================================================================
   4. HERO BANNER SLIDER
   ========================================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 801;
  overflow: hidden;
  margin-top: var(--header-height);
  background: var(--charcoal);
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: 100% 100%;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.5s ease-in-out;
}

.hero-slider .slide.active {
  opacity: 1;
  z-index: 2;
}

.slider-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 28px 40px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
}

.hero-apply-btn {
  pointer-events: auto;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: var(--transition-fast);
}

.hero-apply-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-round);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: var(--transition-fast);
}

.slider-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.prev-arrow { left: 40px; }
.next-arrow { right: 40px; }

@media (max-width: 768px) {
  .hero-slider {
    aspect-ratio: 16 / 9;
    min-height: 220px;
  }

  .slider-overlay {
    display: block;
    padding: 0;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.1) 45%,
      transparent 70%
    );
  }

  .hero-apply-btn {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 4;
    opacity: 1;
    transform: none;
    padding: 10px 18px;
    font-size: 12px;
    gap: 6px;
  }

  .slider-arrow {
    display: none;
  }
}

/* ==========================================================================
   4b. EXECUTIVE MBA ANNOUNCEMENT BAR
   ========================================================================== */
.emba-announcement {
  background: linear-gradient(90deg, #3a3a3a 0%, var(--charcoal) 100%);
  border-bottom: 3px solid var(--red);
  padding: 12px 0;
}

.emba-announcement-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
  transition: opacity var(--transition-fast);
}

.emba-announcement-link:hover {
  opacity: 0.9;
  color: var(--white);
}

.emba-announcement-link i {
  font-size: 20px;
  color: var(--red);
  flex-shrink: 0;
}

.emba-announcement-link u {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .emba-announcement {
    padding: 8px 0;
    border-bottom-width: 2px;
  }

  .emba-announcement-link {
    font-size: 11px;
    gap: 6px;
    letter-spacing: 0.02em;
    line-height: 1.35;
    padding: 0 4px;
  }

  .emba-announcement-link i {
    font-size: 13px;
  }
}

/* ==========================================================================
   5. PAGE BLOCK & LEADERSHIP MESSAGES
   ========================================================================== */
.page-block {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  margin: 80px auto;
  max-width: 1200px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.section-rule {
  height: 1px;
  background: var(--sand);
  margin: 0 60px;
}

.message-section {
  padding: 80px 0;
}

.message-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: center;
}

.message-grid.reverse {
  grid-template-columns: 340px 1fr;
}

.quote-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-mid);
  font-style: italic;
  border-left: 4px solid var(--red);
  padding-left: 24px;
  margin-bottom: 32px;
  text-align: justify;
}

.person-info {
  padding-top: 24px;
  border-top: 1px solid var(--sand);
}

.person-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.person-role {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

.image-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md);
  position: relative;
  padding: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.image-frame img {
  border-radius: var(--radius-sm);
  transition: transform var(--transition-slow);
}

.image-frame:hover img {
  transform: scale(1.04);
}

.image-frame::before {
  content: '';
  position: absolute;
  top: -8px; 
  left: -8px;
  width: 48px; 
  height: 48px;
  border-top: 3px solid var(--red);
  border-left: 3px solid var(--red);
  z-index: 1;
}

.image-frame::after {
  content: '';
  position: absolute;
  bottom: -8px; 
  right: -8px;
  width: 48px; 
  height: 48px;
  border-bottom: 3px solid var(--red);
  border-right: 3px solid var(--red);
  z-index: 1;
}

@media (max-width: 991px) {
  .message-grid,
  .message-grid.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .message-grid.reverse .message-image {
    order: -1;
  }
  
  .image-frame {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .message-section {
    padding: 60px 0;
  }
}

/* ==========================================================================
   6. VIDEO SECTION ("A Revolution Begins")
   ========================================================================== */
.video-section {
  padding: 80px 0;
  background: var(--charcoal);
}

.video-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  max-width: 600px;
}

.video-wrapper {
  background: #1e1e1e;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.06);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-thumbnail iframe,
.video-thumbnail .video-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.yt-facade {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  background: #000;
}

.yt-facade-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-facade-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  color: var(--white);
  font-size: clamp(40px, 8vw, 68px);
  transition: background 0.2s ease;
}

.yt-facade:hover .yt-facade-play,
.yt-facade:focus-visible .yt-facade-play {
  background: rgba(0, 0, 0, 0.45);
}

.video-caption {
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.video-caption h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  font-weight: 700;
  min-width: 250px;
}

.video-caption p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  flex: 1;
}

.watch-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.watch-link:hover {
  color: #f04b46;
}

@media (max-width: 768px) {
  .video-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 20px;
  }
  
  .video-caption h3 {
    min-width: unset;
  }
}

/* ==========================================================================
   7. INTERNSHIP & OPPORTUNITIES SECTION
   ========================================================================== */
.internship-section {
  padding: 80px 0;
  background: var(--sand-light);
}

.internship-card {
  margin-top: 40px;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.internship-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 40px;
  background: var(--red);
}

.logo-mark {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-round);
  background: var(--surface);
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.org-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 2px;
}

.doc-type {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.internship-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.internship-preview {
  border-right: 1px solid var(--sand);
  max-height: 570px;
  overflow: hidden;
}

.internship-details {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.internship-details h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  font-weight: 700;
}

.internship-intro-text {
  font-size: 14px;
  color: var(--text-mid);
}

.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-list li {
  font-size: 14px;
  color: var(--text-mid);
  padding-left: 20px;
  position: relative;
}

.detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: var(--radius-round);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(210, 50, 45, 0.25);
  align-self: flex-start;
}

.cta-btn:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 16px rgba(168, 37, 32, 0.35);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .internship-body {
    grid-template-columns: 1fr;
  }
  .internship-preview {
    border-right: none;
    border-bottom: 1px solid var(--sand);
    max-height: 300px;
  }
  .internship-details {
    padding: 30px 24px;
  }
}

/* ==========================================================================
   8. "HOW WAS TIU FOUNDED" SECTION
   ========================================================================== */
.s2-founded {
  background: var(--red);
  padding: 60px 0;
}

.s2-founded-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.s2-founded-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--white);
}

.s2-founded-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.25;
}

.s2-founded-desc {
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.7;
}

.s2-know-btn {
  display: inline-flex;
  padding: 12px 28px;
  border: 2px solid var(--white);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

.s2-know-btn:hover {
  background: var(--surface);
  color: var(--red);
  transform: translateY(-2px);
}

.s2-founded-video {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
}

.s2-founded-video iframe,
.s2-founded-video .video-embed {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 991px) {
  .s2-founded-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ==========================================================================
   9. TESTIMONIALS (OWL CAROUSEL)
   ========================================================================== */
.s2-testimonials {
  background: var(--surface);
  padding: 80px 0;
}



.s2-testi-card {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 20px;
}

.s2-testi-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-round);
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid var(--sand);
  box-shadow: var(--shadow-md);
}

.s2-testi-content {
  flex: 1;
}

.s2-testi-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 2px;
}

.s2-testi-role {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 16px;
}

.s2-testi-quote {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
  font-style: italic;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--red);
}

/* Custom owl navigation styling */
.s2-owl-testi .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.s2-owl-testi .owl-nav button {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-round) !important;
  background: rgba(255,255,255,0.9) !important;
  color: var(--red) !important;
  border: 1px solid var(--sand) !important;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px !important;
  cursor: pointer;
  pointer-events: auto;
  transition: var(--transition-fast);
}

.s2-owl-testi .owl-nav button:hover {
  background: var(--red) !important;
  color: var(--white) !important;
  border-color: var(--red) !important;
}

.s2-owl-testi .owl-nav .owl-prev { 
  position: absolute; 
  left: -60px; 
}

.s2-owl-testi .owl-nav .owl-next { 
  position: absolute; 
  right: -60px; 
}

.s2-owl-testi .owl-dots {
  text-align: center;
  margin-top: 30px;
}

.s2-owl-testi .owl-dot span {
  width: 8px !important;
  height: 8px !important;
  background: var(--sand) !important;
  margin: 0 4px !important;
  transition: var(--transition-fast) !important;
}

.s2-owl-testi .owl-dot.active span {
  background: var(--red) !important;
  width: 24px !important;
  border-radius: var(--radius-sm) !important;
}

@media (max-width: 991px) {
  .s2-testi-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
  }
  .s2-testi-quote {
    border-left: none;
    border-top: 2px solid var(--sand);
    padding-left: 0;
    padding-top: 15px;
  }
  .s2-owl-testi .owl-nav {
    display: none;
  }
}

/* ==========================================================================
   10. ABOUT TIU & ANIMATED STATS
   ========================================================================== */
.s2-about {
  background: var(--sand-light);
  padding: 56px 0;
}

.s2-about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
}

.s2-about-body {
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 16px;
}

.s2-campus-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(210, 50, 45, 0.2);
}

.s2-campus-btn:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 16px rgba(168, 37, 32, 0.3);
  transform: translateY(-2px);
}

.s2-about-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
  max-height: 300px;
}

.s2-about-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Statistics Grid */
.stats-counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.about-card {
  background: var(--surface);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.about-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(210, 50, 45, 0.1);
}

.about-card-icon {
  font-size: 22px;
  color: var(--red);
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.about-card-info {
  min-width: 0;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 2px;
}

.about-card p {
  font-size: 11.5px;
  color: var(--text-mid);
  font-weight: 500;
  line-height: 1.3;
}

@media (max-width: 991px) {
  .s2-about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stats-counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .stats-counter-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   11. CONVOCATION 2024 Redesign
   ========================================================================== */
.s2-convocation {
  background: var(--surface);
  padding: 80px 0;
}

.conv-subtitle {
  color: var(--text-mid);
  font-size: 15px;
  max-width: 550px;
  margin: 0 0 30px;
}

.s2-conv-poster {
  max-width: 500px;
  margin: 0;
  margin: auto;
}

.s2-conv-poster a {
  display: block;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--sand);
  overflow: hidden;
}

.s2-conv-poster img {
  border-radius: var(--radius-sm);
  transition: transform var(--transition-slow);
}

.s2-conv-poster:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   12. SPOTLIGHT (FEATURED + THUMBNAIL NAV)
   ========================================================================== */
.s3-spotlight {
  background: var(--surface);
  padding: 100px 0;
  padding-top: 30px;
}

.spotlight-showcase {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.spotlight-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.spotlight-panel {
  position: absolute;
  inset: 0;
  display: none;
  animation: fadeIn 0.35s ease both;
}

.spotlight-panel.active {
  display: block;
}

.spotlight-panel iframe,
.spotlight-panel .video-embed {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.spotlight-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.spotlight-panel a {
  display: block;
  width: 100%;
  height: 100%;
}

.spotlight-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.spotlight-nav-item {
  background: var(--surface);
  border: 2px solid var(--sand);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: var(--transition-fast);
  min-width: 0;
}

.spotlight-nav-item:hover {
  border-color: rgba(210, 50, 45, 0.35);
}

.spotlight-nav-item.active {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(210, 50, 45, 0.12);
}

.spotlight-nav-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sand-light);
}

.spotlight-nav-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.spotlight-nav-item:hover .spotlight-nav-thumb img {
  transform: scale(1.05);
}

.spotlight-nav-label {
  display: block;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.spotlight-nav-item.active .spotlight-nav-label {
  color: var(--red);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 991px) {
  .spotlight-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
  }

  .spotlight-nav-label {
    font-size: 11px;
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .spotlight-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .spotlight-nav-label {
    font-size: 10px;
    padding: 7px 8px;
    line-height: 1.3;
  }
}

/* ==========================================================================
   13. ACADEMICS CARDS GRID
   ========================================================================== */
.s3-academics {
  background: var(--sand-light);
  padding: 100px 0;
}

.s3-acad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.s3-acad-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 35px 30px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition-normal);
}

.s3-acad-card:hover {
  box-shadow: 0 15px 40px rgba(210, 50, 45, 0.08);
  transform: translateY(-6px);
  border-color: rgba(210, 50, 45, 0.2);
}

.s3-acad-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.s3-acad-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-round);
  background: rgba(210, 50, 45, 0.06);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: var(--transition-fast);
}

.s3-acad-card:hover .s3-acad-icon-circle {
  background: var(--red);
  color: var(--white);
  transform: rotate(360deg);
}

.acad-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--sand-light);
  color: var(--text-mid);
  padding: 4px 10px;
  border-radius: 4px;
}

.s3-acad-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 24px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.s3-acad-desc {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.s3-acad-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  padding: 0;
  border: none;
  transition: var(--transition-fast);
}

.s3-acad-btn i {
  transition: transform var(--transition-fast);
}

.s3-acad-card:hover .s3-acad-btn {
  color: var(--red-dark);
}

.s3-acad-card:hover .s3-acad-btn i {
  transform: translateX(5px);
}

@media (max-width: 991px) {
  .s3-acad-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .s3-acad-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .s3-acad-card {
    padding: 30px 24px;
  }
}

/* ==========================================================================
   14. GALLERY SECTION (PICTURES & VIDEOS TABS)
   ========================================================================== */
.gallery-section {
  padding: 80px 0;
  padding-top: 20px;
  background: var(--sand-light);
}

.gallery-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 12px 32px;
  border-radius: 30px;
  border: 1.5px solid var(--red);
  background: transparent;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(210, 50, 45, 0.2);
}

.gallery-content {
  display: none;
  animation: fade 0.5s ease both;
}

.gallery-content.active {
  display: block;
}

/* Images Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}

.gallery-card-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-overlay-hover {
  position: absolute;
  inset: 0;
  background: rgba(43, 43, 43, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.view-large-btn {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transform: translateY(10px);
  transition: var(--transition-normal);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card:hover .gallery-overlay-hover {
  opacity: 1;
}

.gallery-card:hover .view-large-btn {
  transform: translateY(0);
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.video-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-card iframe,
.video-card .video-embed {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.gallery-more-btn-wrapper {
  margin-top: 40px;
}

.gallery-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(210, 50, 45, 0.2);
}

.gallery-more-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

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

@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   15. KEEP IN TOUCH (SOCIAL LINK SECTION)
   ========================================================================== */
.social-link-section {
  background: var(--red);
  padding: 40px 0;
  color: var(--white);
}

.social-flex-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.social-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  margin-top: 4px;
}

.social-desc {
  font-size: 14px;
  opacity: 0.85;
}

.social-icons-wrapper {
  display: flex;
  gap: 16px;
}

.social-circle-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-round);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition-fast);
}

.social-circle-icon:hover {
  background: var(--surface);
  color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .social-flex-container {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   16. PARALLAX QUOTE SECTION
   ========================================================================== */
.parallax-quote {
  position: relative;
  background-image: url('../images/local/widget_image_10.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.parallax-overlay {
  background: rgba(43, 43, 43, 0.75);
  padding: 100px 0;
  text-align: center;
}

.quote-wrapper-box {
  max-width: 800px;
  margin: 0 auto;
  color: var(--white);
}

.quote-symbol {
  font-size: 40px;
  color: var(--red);
  opacity: 0.8;
  display: block;
  margin-bottom: 20px;
}

.parallax-quote-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
  font-style: italic;
}

.parallax-author {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .parallax-quote {
    background-attachment: scroll; /* Fix performance issues on mobile */
  }
}

/* ==========================================================================
   17. CONTACT US SECTION
   ========================================================================== */
.contacts-section {
  padding: 80px 0;
  background: var(--surface);
}

.contact-header {
  margin-bottom: 60px;
  text-align: left;
}

.contact-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-round);
  background: var(--sand-light);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 0 20px;
  border: 1px solid var(--sand);
}

.contact-subtitle {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 500px;
  margin: 0;
}

.contact-grid-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

/* Info Column */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item-card {
  background: var(--sand-light);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--sand);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition-fast);
}

.info-item-card:hover {
  border-color: rgba(210, 50, 45, 0.2);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-round);
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.info-content h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.info-content p {
  font-size: 13.5px;
  color: var(--text-mid);
}

.info-content p a:hover {
  color: var(--red);
}

/* Form Column */
.contact-form-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form-block .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form-block label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 14px;
  pointer-events: none;
}

.contact-form-block input,
.contact-form-block textarea {
  width: 100%;
  background: var(--sand-light);
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  transition: var(--transition-fast);
}

.contact-form-block input {
  padding-left: 45px;
}

.contact-form-block input:focus,
.contact-form-block textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(210, 50, 45, 0.1);
}

.contact-form-block textarea {
  resize: vertical;
}

.form-submit-btn {
  padding: 14px 32px;
  background: var(--red);
  color: var(--white);
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(210, 50, 45, 0.2);
  align-self: flex-start;
  transition: var(--transition-fast);
}

.form-submit-btn:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 16px rgba(168, 37, 32, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .contact-grid-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Hidden contact / enquiry forms */
.tiu-form-hidden {
  display: none !important;
}

.contact-grid-container.contact-info-only {
  grid-template-columns: 1fr;
}

.contact-grid-container.contact-info-only .contact-info-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .contact-grid-container.contact-info-only .contact-info-col {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   18. CALL TO ACTION BANNER
   ========================================================================== */
.cta-banner-section {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
  padding: 20px 0;
}

.cta-flex-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-banner-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin: 0;
  flex: 1;
}

.cta-banner-btn {
  flex-shrink: 0;
  padding: 8px 28px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  border: 2px solid var(--white);
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.cta-banner-btn:hover {
  background: var(--surface);
  color: var(--red);
}

@media (max-width: 768px) {
  .cta-banner-section {
    padding: 12px 0;
  }

  .cta-flex-box {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .cta-banner-title {
    font-size: 12px;
    letter-spacing: 0.03em;
    line-height: 1.35;
  }

  .cta-banner-btn {
    font-size: 11px;
    padding: 6px 16px;
    border-width: 1.5px;
  }
}

/* ==========================================================================
   19. FLOATING ADMISSION SIDEBAR WIDGET
   ========================================================================== */
.floating-sidebar {
  position: fixed;
  top: 15vh;
  right: 0;
  z-index: 999;
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.floating-triggers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
}

.sidebar-tab-btn {
  width: 48px;
  background: var(--red);
  border: none;
  color: var(--white);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 12px 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  box-shadow: -4px 4px 10px rgba(0,0,0,0.1);
  transition: var(--transition-fast);
  text-decoration: none;
}

.admission-trigger {
  background: var(--red);
}

.admission-trigger:hover {
  background: var(--red-dark);
  color: var(--white);
}

.sidebar-tab-btn:hover {
  background: var(--red-dark);
  padding-left: 4px;
}

.btn-vert-text {
  writing-mode: vertical-rl;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  transform: rotate(180deg);
}

.scholarship-trigger {
  background: var(--charcoal);
  text-decoration: none;
}

.scholarship-trigger:hover {
  background: #111;
  color: var(--white);
}

/* Form Container Body */
.floating-form-container {
  background: var(--surface);
  border-left: 3px solid var(--red);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  overflow: hidden;
}

.floating-form-header {
  padding: 20px 24px;
  background: var(--charcoal);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.floating-form-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.close-sidebar-btn {
  font-size: 18px;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.close-sidebar-btn:hover {
  opacity: 1;
  color: var(--red);
}

.floating-form-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.floating-form-body form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.floating-form-body .form_input_field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.floating-form-body label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-mid);
}

.floating-form-body input,
.floating-form-body select {
  width: 100%;
  border: 1px solid var(--sand);
  background: var(--sand-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ink);
  transition: var(--transition-fast);
}

.floating-form-body input:focus,
.floating-form-body select:focus {
  outline: none;
  border-color: var(--red);
  background: var(--surface);
}

.submit-sidebar-btn {
  width: 100%;
  padding: 12px;
  background: var(--red);
  color: var(--white);
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.submit-sidebar-btn:hover {
  background: var(--red-dark);
}

/* ==========================================================================
   20. FOOTER SECTION
   ========================================================================== */
#footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-top-inner {
  padding: 80px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  max-height: 45px;
  width: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.footer-about-text {
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  position: relative;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--red);
}

.footer-social-icons {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.footer-social-link:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  transform: translateY(-2px);
}

/* Quick Links List */
.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
}

.footer-links-list li a:hover {
  color: var(--red);
  padding-left: 6px;
}

/* Visit details */
.footer-address-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-address-details li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
}

.adr-icon {
  color: var(--red);
  font-size: 15px;
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-address-details li span a:hover {
  color: var(--white);
}

/* Flickr Thumbnail Grid */
.flickr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.flickr-image-box {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  background: #333;
}

.flickr-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.flickr-image-box:hover img {
  transform: scale(1.1);
}

/* Bottom Bar */
.copyright-bottom-bar {
  padding: 30px 0;
  font-size: 12px;
}

.copyright-flex-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

@media (max-width: 991px) {
  .footer-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .footer-grid-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .copyright-flex-box {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   21. BACK TO TOP BUTTON
   ========================================================================== */
#back_to_top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-normal);
}

#back_to_top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back_to_top a {
  width: 44px;
  height: 44px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-md);
}

#back_to_top a:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   22. CUSTOM SCROLLBAR & LENIS COMPATIBILITY
   ========================================================================== */
/* Smooth scroll CSS rule for Lenis */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Custom browser scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--sand-light);
}

::-webkit-scrollbar-thumb {
  background: var(--sand);
  border-radius: var(--radius-sm);
  border: 2px solid var(--sand-light);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* ==========================================================================
   24. GSAP SCROLL REVEAL (initial state set by JS)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .gsap-reveal,
  .gsap-reveal-child {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   23. DARK THEME POLISH
   ========================================================================== */
[data-theme="dark"] .s2-owl-testi .owl-nav button {
  background: rgba(30, 28, 27, 0.95) !important;
  border-color: var(--border-ui) !important;
}

[data-theme="dark"] .s2-owl-testi .owl-dots .owl-dot span {
  background: var(--sand) !important;
}

[data-theme="dark"] .s2-owl-testi .owl-dots .owl-dot.active span {
  background: var(--red) !important;
}

[data-theme="dark"] .floating-form-body input:focus,
[data-theme="dark"] .floating-form-body select:focus {
  background: var(--surface);
}

[data-theme="dark"] .header-list {
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .video-section,
[data-theme="dark"] #footer,
[data-theme="dark"] .scholarship-trigger {
  background: #1a1a1a;
}

[data-theme="dark"] .emba-announcement {
  background: linear-gradient(90deg, #252525 0%, #1a1a1a 100%);
}

/* ==========================================================================
   25. MOBILE COMPACT LAYOUT
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .container {
    padding: 0 16px;
  }

  .header-logo-img {
    height: 34px;
  }

  .theme-toggle,
  .menu-toggle {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .eyebrow {
    font-size: 10px;
    margin-bottom: 8px;
    letter-spacing: 0.14em;
  }

  .section-title {
    font-size: clamp(22px, 6vw, 28px);
    margin-bottom: 10px;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .section-subtitle {
    font-size: 13px;
    line-height: 1.55;
  }

  .divider {
    width: 40px;
    height: 3px;
    margin-bottom: 14px;
  }

  .page-block {
    margin: 16px auto;
    border-radius: var(--radius-sm);
  }

  .section-rule {
    margin: 0 16px;
  }

  .message-section,
  .video-section,
  .internship-section,
  .s2-founded,
  .s2-testimonials,
  .s2-about,
  .s2-convocation,
  .s3-spotlight,
  .s3-academics,
  .gallery-section,
  .contacts-section,
  .social-link-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .s3-spotlight {
    padding-top: 30px;
  }

  .gallery-section {
    padding-top: 20px;
  }

  .message-grid {
    gap: 28px;
  }

  .quote-text {
    font-size: 14px;
    padding-left: 16px;
    margin-bottom: 20px;
  }

  .person-info {
    padding-top: 16px;
  }

  .video-subtitle {
    margin-bottom: 20px;
    font-size: 13px;
  }

  .video-caption {
    padding: 16px;
    gap: 12px;
  }

  .video-caption h3 {
    font-size: 16px;
    min-width: unset;
  }

  .internship-card {
    margin-top: 20px;
  }

  .internship-header {
    padding: 14px 16px;
    gap: 12px;
  }

  .internship-body {
    padding: 20px 16px;
  }

  .s2-founded-inner {
    gap: 24px;
  }

  .s2-founded-title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .s2-founded-desc {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .s2-about-grid {
    gap: 24px;
  }

  .s2-about-body {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .stats-counter-grid {
    gap: 10px;
    margin-top: 20px;
  }

  .about-card {
    padding: 10px 12px;
  }

  .spotlight-showcase {
    gap: 16px;
  }

  .spotlight-nav {
    gap: 8px;
  }

  .spotlight-nav-label {
    padding: 6px 8px;
    font-size: 10px;
  }

  .s3-acad-grid {
    gap: 12px;
  }

  .s3-acad-card {
    padding: 20px 16px;
  }

  .gallery-tabs {
    gap: 8px;
    margin-bottom: 20px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 11px;
  }

  .gallery-grid {
    gap: 12px;
  }

  .contact-header {
    margin-bottom: 20px;
  }

  .contact-grid-container {
    gap: 24px;
  }

  .info-item-card {
    padding: 14px;
    gap: 12px;
  }

  .parallax-overlay {
    padding: 40px 0;
  }

  .parallax-quote-text {
    font-size: 18px;
  }

  .footer-top-inner {
    padding: 40px 0;
  }

  .footer-grid-container {
    gap: 24px;
  }

  .social-flex-container {
    gap: 20px;
  }

  .social-title {
    font-size: 22px;
  }

  .social-desc {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 62px;
  }

  .header-logo-img {
    height: 30px;
    max-width: 110px;
  }

  .theme-toggle,
  .menu-toggle {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .hero-slider {
    aspect-ratio: 16 / 10;
    min-height: 200px;
  }

  .hero-apply-btn {
    right: 32px;
    bottom: 14px;
    padding: 9px 14px;
    font-size: 11px;
  }

  .emba-announcement-link {
    font-size: 10px;
  }

  .cta-banner-title {
    font-size: 11px;
  }

  .drawer-head {
    padding: 16px;
  }

  .header-list > li > a {
    padding: 12px 16px;
    font-size: 14px;
  }

  .mobile-cta-wrap {
    padding: 12px 16px 16px;
  }
}

/* ==========================================================================
   26. INNER PAGE — GALLERY
   ========================================================================== */
.page-hero-banner {
  position: relative;
  margin-top: var(--header-height);
  width: 100%;
  height: clamp(168px, 22vw, 240px);
  overflow: hidden;
  background-color: var(--charcoal);
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  border-bottom: 4px solid var(--red);
}

.page-hero-banner-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.page-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(43, 43, 43, 0.5) 34%,
    rgba(168, 37, 32, 0.28) 58%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

.page-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 18% 50%, rgba(0, 0, 0, 0.22) 0%, transparent 58%);
  z-index: 1;
  pointer-events: none;
}

.page-hero-banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  text-align: left;
  padding: 0 20px;
}

.page-hero-banner-title {
  margin: 0;
  display: inline-block;
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.62);
  border-left: 4px solid var(--red);
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: none;
  line-height: 1.15;
}

.gallery-page-section {
  padding: 80px 0;
  padding-top: 20px;
  background: var(--sand-light);
}

.gallery-page-header {
  margin-bottom: 40px;
}

.gallery-page-grid {
  margin-top: 0;
}

@media (max-width: 768px) {
  .page-hero-banner {
    height: clamp(150px, 34vw, 190px);
  }

  .page-hero-banner-title {
    font-size: clamp(22px, 7vw, 30px);
    letter-spacing: 0.08em;
    padding: 12px 18px;
  }

  .gallery-page-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .gallery-page-header {
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .page-hero-banner {
    height: 150px;
    border-bottom-width: 3px;
  }

  .page-hero-banner-title {
    font-size: clamp(20px, 8vw, 26px);
    letter-spacing: 0.06em;
    padding: 10px 14px;
  }
}

body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   27. INNER PAGE — ACADEMIC PROGRAMS
   ========================================================================== */
.academic-inner-section {
  padding: 36px 0 88px;
  background: var(--sand-light);
}

.inner-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 32px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
}

.inner-breadcrumb a {
  color: var(--text-mid);
  transition: color 0.2s ease;
}

.inner-breadcrumb a:hover {
  color: var(--red);
}

.inner-breadcrumb-sep {
  font-size: 9px;
  opacity: 0.45;
  line-height: 1;
}

.inner-breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

.academic-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 56px;
}

.academic-intro-text p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 16px;
}

.academic-intro-text p:last-child {
  margin-bottom: 0;
}

.academic-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border-ui);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.academic-sidebar-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red) 0%, #a82520 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.academic-sidebar-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.academic-sidebar-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 22px;
}

.academic-action-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.academic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.academic-btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(210, 50, 45, 0.22);
}

.academic-btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(210, 50, 45, 0.3);
}

.academic-btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-ui);
}

.academic-btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(210, 50, 45, 0.04);
}

.academic-programs-block {
  background: var(--surface);
  border: 1px solid var(--border-ui);
  border-radius: var(--radius-md);
  padding: 36px 32px 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.academic-programs-header {
  margin-bottom: 28px;
}

.academic-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sand);
}

.academic-group-title i {
  color: var(--red);
  font-size: 16px;
}

.academic-group-title--alt {
  margin-top: 36px;
}

.academic-course-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
}

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

.academic-course-card {
  margin: 0;
}

.academic-course-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
  background: var(--sand-light);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  height: 100%;
}

.academic-course-link:hover {
  background: var(--surface);
  border-color: rgba(210, 50, 45, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  color: var(--red);
}

.academic-course-name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}

.academic-course-icon {
  flex-shrink: 0;
  font-size: 13px;
  opacity: 0.45;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.academic-course-link:hover .academic-course-icon {
  opacity: 1;
  transform: translate(1px, -1px);
}

.academic-course-card--featured .academic-course-link {
  background: linear-gradient(135deg, rgba(210, 50, 45, 0.06) 0%, rgba(210, 50, 45, 0.02) 100%);
  border-color: rgba(210, 50, 45, 0.12);
}

[data-theme="dark"] .academic-inner-section {
  background: var(--charcoal);
}

[data-theme="dark"] .academic-sidebar-card,
[data-theme="dark"] .academic-programs-block {
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .academic-course-link {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .academic-course-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.placement-feature-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.placement-story-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
  margin-top: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.placement-story-name {
  margin: 0 0 8px;
  color: var(--charcoal);
}

.placement-story-meta {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
}

.placement-story-media img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

.webinar-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 40px;
}

.webinar-intro-figure {
  margin: 0;
}

.webinar-intro-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.webinar-tabs-block {
  margin-top: 12px;
}

.webinar-tabs {
  margin-bottom: 32px;
}

.webinar-coming-soon {
  text-align: center;
  padding: 56px 24px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.webinar-coming-soon h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--charcoal);
}

.webinar-coming-soon h3 span {
  color: var(--red);
}

.webinar-coming-soon p {
  margin: 0;
  color: var(--charcoal);
  opacity: 0.85;
}

.webinar-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.webinar-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
}

.webinar-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.webinar-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}

.webinar-card-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--charcoal);
}

.webinar-watch-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: var(--transition-fast);
}

.webinar-watch-btn:hover {
  background: var(--red-dark);
  color: var(--white);
}

.webinar-card-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--charcoal);
  opacity: 0.9;
}

[data-theme="dark"] .webinar-coming-soon h3,
[data-theme="dark"] .webinar-coming-soon p,
[data-theme="dark"] .webinar-card-title,
[data-theme="dark"] .webinar-card-body p {
  color: var(--white);
}

.io-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 48px;
}

.io-video-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.io-video-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.io-video-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.io-video-media .yt-facade,
.io-video-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.io-video-title {
  margin: 0;
  padding: 14px 16px 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--charcoal);
}

.io-about-actions {
  margin-top: 24px;
}

.io-dual-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  margin-bottom: 48px;
}

.io-info-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  height: 100%;
}

.io-info-card .academic-group-title {
  margin-top: 0;
}

.io-info-card > p {
  margin: 0 0 16px;
  color: var(--charcoal);
  line-height: 1.7;
}

.io-bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.io-bullet-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  color: var(--charcoal);
  line-height: 1.55;
  border-bottom: 1px solid var(--border-subtle);
}

.io-bullet-list li:last-child {
  border-bottom: none;
}

.io-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.io-partners-block {
  margin-top: 12px;
}

.io-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.io-partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.io-partner-logo img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

[data-theme="dark"] .io-video-title,
[data-theme="dark"] .io-info-card > p,
[data-theme="dark"] .io-bullet-list li {
  color: var(--white);
}

.admission-domains-block {
  margin-top: 36px;
}

.admission-domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.admission-domain-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
}

.admission-domain-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.admission-domain-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 36px 12px 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.25) 35%,
    rgba(0, 0, 0, 0.62) 100%
  );
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.admission-form-block {
  margin-top: 40px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.admission-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 24px;
}

.admission-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admission-field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
}

.admission-field input,
.admission-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--sand-light);
  color: var(--charcoal);
  font: inherit;
}

.admission-field input:focus,
.admission-field select:focus {
  outline: none;
  border-color: rgba(210, 50, 45, 0.45);
  box-shadow: 0 0 0 3px rgba(210, 50, 45, 0.08);
}

.admission-submit-btn {
  border: none;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .admission-domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .placement-story-card {
    grid-template-columns: 1fr;
  }

  .io-intro-layout,
  .io-dual-column,
  .webinar-intro-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 768px) {
  .admission-form-grid,
  .admission-domain-grid,
  .webinar-card-grid {
    grid-template-columns: 1fr;
  }

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

  .io-info-card {
    padding: 20px 16px;
  }

  .admission-form-block {
    padding: 20px 16px;
  }
}

@media (max-width: 1024px) {
  .academic-intro-layout {
    grid-template-columns: 1fr;
  }

  .academic-sidebar-card {
    position: static;
  }

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

@media (max-width: 768px) {
  .academic-inner-section {
    padding: 24px 0 56px;
  }

  .academic-programs-block {
    padding: 24px 18px 28px;
  }

  .academic-course-grid,
  .academic-course-grid--compact {
    grid-template-columns: 1fr;
  }

  .academic-action-btns {
    flex-direction: column;
  }

  .sidebar-tab-btn {
    width: 32px;
  }
}

/* ==========================================================================
   SITE PRELOADER
   ========================================================================== */
html.is-loading body {
  overflow: hidden;
}

html.is-loading body > *:not(#site-preloader) {
  opacity: 0;
}

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand-light);
  overflow: hidden;
  will-change: transform, opacity;
}

.site-preloader__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
  max-width: 92vw;
}

.site-preloader__logo {
  display: block;
  width: min(220px, 72vw);
  height: auto;
  margin: 0 auto;
  animation: preloader-logo-in 0.9s var(--transition-normal) both;
}

.site-preloader__tagline {
  margin: 14px 0 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  animation: preloader-fade-up 0.8s var(--transition-normal) 0.15s both;
}

.site-preloader__track {
  width: min(240px, 70vw);
  height: 3px;
  margin: 28px auto 0;
  border-radius: 999px;
  background: var(--border-ui);
  overflow: hidden;
  animation: preloader-fade-up 0.8s var(--transition-normal) 0.25s both;
}

.site-preloader__bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  animation: preloader-progress 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
}

.site-preloader__label {
  display: block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  animation: preloader-fade-up 0.8s var(--transition-normal) 0.35s both;
}

.site-preloader__curtain {
  position: absolute;
  inset: auto 0 0;
  height: 0;
  background: var(--red);
  z-index: 3;
  pointer-events: none;
}

.site-preloader.is-exiting .site-preloader__bar {
  width: 100%;
  animation: none;
}

@keyframes preloader-logo-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes preloader-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preloader-progress {
  0% { width: 0; }
  20% { width: 18%; }
  45% { width: 42%; }
  70% { width: 68%; }
  100% { width: 92%; }
}

@media (prefers-reduced-motion: reduce) {
  .site-preloader,
  .site-preloader__logo,
  .site-preloader__tagline,
  .site-preloader__track,
  .site-preloader__label,
  .site-preloader__bar {
    animation: none !important;
  }
}