/* ===== CSS VARIABLES ===== */
:root {
  --milk: #f4f4f4;
  --milk-dark: #e8e8e8;
  --green: #00b17b;
  --green-light: #00b17b;
  --green-pale: rgba(0, 177, 123, 0.12);
  --green-accent: #00b17b;
  --grey: #2e2f2f;
  --grey-mid: #6a6a6a;
  --grey-light: #b0b0b0;
  --grey-pale: #f4f4f4;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(0, 177, 123, 0.10);
  --shadow-lg: 0 8px 48px rgba(0, 177, 123, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Above-the-fold layout heights ── */
  --navbar-h: 68px;
  /* sticky navbar                   */
  --promo-h: 44px;
  /* promo strip                     */
  --partner-h: 80px;
  /* partner logo strip              */
  --progress-h: 3px;
  /* carousel progress bar           */

  /* Carousel takes exactly what remains after the 3 fixed rows */
  --carousel-h: calc(100vh - var(--navbar-h) - var(--promo-h) - var(--partner-h) - var(--progress-h));
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

html::-webkit-scrollbar {
  display: none;
  /* Safari and Chrome */
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--milk);
  color: var(--grey);
  line-height: 1.6;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for all elements */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== UTILITIES ===== */
.hidden {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.tag {
  display: inline-block;
  background: rgba(0, 177, 123, 0.12);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: #009e6e;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--green);
}

.btn-white:hover {
  background: rgba(0, 177, 123, 0.12);
  transform: translateY(-2px);
}

/* ===== ENROLL BUTTON PEEK ANIMATION ===== */
button[onclick*="openEnrollModal"] {
  position: relative;
  /* Prevent the button from creating a stacking context */
  z-index: auto !important;
  /* Ensure the popping image isn't clipped by hidden overflow */
  overflow: visible !important;
}

button[onclick*="openEnrollModal"]:hover {
  /* Disable transform on hover so it doesn't suddenly create a stacking context */
  transform: none !important;
}

button[onclick*="openEnrollModal"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 80%;
  width: 80px;
  height: 80px;
  /* Peeking character image */
  background-image: url("https://res.cloudinary.com/dn6ljz4uo/image/upload/v1772453725/Untitled-6-01_mhijuj.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  /* Go completely behind the entire button, including its background */
  z-index: -1;
  /* Start hidden, scaled down, and completely behind the button */
  transform: translate(-50%, 20px) scale(0.5);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

button[onclick*="openEnrollModal"]:hover::after {
  /* On hover, scale up extra large, peek out higher from behind the top of the button */
  transform: translate(-50%, -65px) scale(1.4);
  opacity: 1;
}

/* Disable the effect for enroll buttons located within the desktop navbar */
.navbar button[onclick*="openEnrollModal"]::after,
.navbar button[onclick*="openEnrollModal"]:hover::after {
  display: none !important;
  opacity: 0 !important;
  transform: none !important;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

.text-green {
  color: var(--green);
}

.text-grey {
  color: var(--grey-mid);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.flex {
  display: flex;
  align-items: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 177, 123, 0.12);
  color: var(--green);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
}

/* ===== SPLASH ===== */

/* ===== PAGE SYSTEM ===== */
.page {
  display: none;
  min-height: 100vh;
}

.page.active {
  display: block;
}

/* ===== PORTAL SELECTION ===== */
.portal-hero {
  background: linear-gradient(135deg, var(--green) 0%, #00c98c 100%);
  padding: 10px 24px 5px;
  /* Minimal padding */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.portal-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.portal-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.portal-hero h1 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 4px;
  /* Minimal margin */
}

.portal-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  max-width: 600px;
  margin: 0 auto;
}

.portal-cards {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 24px 40px;
  /* Increased top padding for better gap from hero */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  /* Increased gap between cards */
  justify-content: center;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .portal-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
    padding: 60px 24px 30px;
  }
}

.portal-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px 30px;
  /* Reduced padding inside the card */
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.portal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 177, 123, 0.12) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.portal-card:hover {
  border-color: var(--green);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.portal-card:hover::before {
  opacity: 1;
}

.portal-card-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 177, 123, 0.12);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
  transition: var(--transition);
}

.portal-icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: var(--transition);
}

.portal-card:hover .portal-card-icon {
  background: #fff;
  transform: scale(1.1);
}

.portal-card:hover .portal-icon-img {
  transform: scale(1.6) translateY(-5px);
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portal-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--grey);
  margin-bottom: 12px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.portal-card .sub {
  font-size: 14px;
  color: var(--grey-mid);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.portal-card p {
  color: var(--grey-mid);
  font-size: 15px;
  line-height: 1.7;
}

.portal-card .portal-btn {
  margin-top: 28px;
  width: 100%;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--grey-mid);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--grey-light);
  background: #fff;
}

.back-btn:hover {
  color: var(--green);
  border-color: var(--green);
}

/* ===== NAVBAR ===== */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--milk-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-h);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 0;
}

.navbar-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 200;
  border: 1px solid var(--milk-dark);
  margin-top: 10px;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 0;
}

.dropdown-item {
  padding: 10px 20px;
  font-size: 14px;
  color: var(--grey);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.dropdown-item:hover {
  background: rgba(0, 177, 123, 0.08);
  color: var(--green);
}

.dropdown-icon {
  font-size: 10px;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-icon {
  transform: rotate(180deg);
}

.nav-link {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
  cursor: pointer;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(0, 177, 123, 0.12);
  color: var(--green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--grey);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  background: #fff;
  border-top: 1px solid var(--milk-dark);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu .nav-link {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

/* ===== PROMO STRIP ===== */
.promo-strip {
  background: linear-gradient(90deg, #1a2420, var(--green));
  color: #fff;
  text-align: center;
  padding: 0 20px;
  height: var(--promo-h);
  line-height: var(--promo-h);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: promoPulse 2.5s infinite alternate;
  letter-spacing: 0.5px;
  margin-bottom: 0;
  white-space: nowrap;
}

.promo-strip:hover {
  opacity: 0.95;
}

@keyframes promoPulse {
  0% {
    box-shadow: inset 0 0 0 rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.4);
  }
}

.promo-strip-content {
  display: inline-block;
  transition: opacity 0.4s ease;
  opacity: 1;
}

.promo-strip-content.fade-out {
  opacity: 0;
}

/* ===== HERO CAROUSEL ===== */

/* Wrap — clips overflow, exact height */
.hero-carousel-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  height: var(--carousel-h);
}

/* Floating layer over hero carousel */
/* Floating layer over hero carousel */
.hc-floating-layer {
  position: fixed;
  top: 67%;
  left: 0.5%;
  width: 110px;
  height: 200px;
  max-width: 90vw;
  z-index: 9999;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: floatOverlay 6s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: left center;
}

/* Intercept clicks when normal to handle tab/double-tap */
.hc-floating-video-link {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
  cursor: pointer;
}

.hc-floating-layer iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: none;
  /* Prevent interacting with iframe controls directly when floating */
}

/* ==== MINIMIZED STATE ==== */
.hc-floating-layer.fv-minimized {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50px) scale(0.8);
}

/* Floating Camera Icon */
.fv-camera-icon {
  position: fixed;
  top: 67%;
  left: 0;
  width: 48px;
  height: 48px;
  background: var(--white);
  color: #fff;
  border-radius: 0 12px 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  padding-right: 4px;
}

.fv-camera-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.fv-camera-icon:hover {
  transform: scale(1.05);
  background: var(--accent2);
}

.fv-camera-icon.hidden {
  display: none !important;
}

/* ==== MAXIMIZED STATE (LIGHTBOX) ==== */
.hc-floating-layer.fv-maximized {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 90vw;
  height: 80vh;
  max-width: 450px;
  max-height: 800px;
  z-index: 100000;
  border-radius: 16px;
  animation: none;
  /* Stop floating animation */
}

.hc-floating-layer.fv-maximized iframe {
  pointer-events: auto;
  /* allow interacting with youtube controls */
}

.hc-floating-layer.fv-maximized .hc-floating-video-link {
  display: none;
  /* Hide overlay so user can interact with video */
}

.fv-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

/* Backdrop for Maximize */
.fv-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.fv-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Track — full height of wrap */
.hc-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

/* Slide — fills exact remaining viewport, content scales inside */
.hc-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  /* clamp: shrinks padding on shorter screens */
  padding: clamp(12px, 2.5vh, 28px) 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* BG decorative circles */
.hc-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hc-bg::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.hc-bg::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.hc-bg-1 {
  background: linear-gradient(135deg, var(--green) 0%, #00c98c 50%, #1a2420 100%);
}

.hc-bg-2 {
  background: linear-gradient(135deg, #1a2420 0%, #004d36 40%, var(--green) 100%);
}

.hc-bg-3 {
  background: linear-gradient(135deg, #0a1628 0%, #00294d 40%, #004d36 100%);
}

/* Inner 2-col grid — gap scales with viewport */
.hc-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: clamp(8px, 1.2vh, 20px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.hc-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
  animation: livePulse 2s ease infinite;
}

@keyframes livePulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hc-headline {
  font-family: 'Playfair Display', serif;
  /* clamp: 28px min → 46px max, scales with viewport height */
  font-size: clamp(26px, 4.2vh, 46px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: clamp(8px, 1.2vh, 16px);
}

.hc-accent {
  color: #b3ffe3;
}

.hc-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(12px, 1.6vh, 15px);
  line-height: 1.6;
  margin-bottom: clamp(8px, 1.4vh, 18px);
  max-width: 500px;
}

.hc-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: clamp(8px, 1.4vh, 22px);
}

.hc-pill {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  border-radius: 100px;
  padding: 6px 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.hc-btn {
  font-size: 14px;
  padding: 12px 24px;
}

.hc-btn-ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.hc-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.hc-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Slide 1 — Score Card */
.hc-score-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: clamp(14px, 2vh, 24px);
  width: 100%;
  max-width: 340px;
}

.hc-score-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(8px, 1.2vh, 18px);
}

.hc-score-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
}

.hc-score-num {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 900;
  color: #b3ffe3;
}

.hc-score-num small {
  font-size: 15px;
  opacity: 0.7;
}

.hc-score-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hc-sbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.hc-sbar-row span {
  width: 88px;
  flex-shrink: 0;
}

.hc-sbar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.hc-sbar-fill {
  height: 100%;
  background: linear-gradient(90deg, #b3ffe3, #00e5a0);
  border-radius: 3px;
}

.hc-sbar-row b {
  width: 36px;
  text-align: right;
  color: #b3ffe3;
  font-size: 12px;
}

.hc-score-cta {
  margin-top: 18px;
  background: var(--green);
  color: #fff;
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.hc-score-cta:hover {
  background: #009e6e;
}

/* Slide 2 — Bundle Stack */
.hc-bundle-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: clamp(8px, 1.2vh, 22px);
}

.hc-bundle-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 6px 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.hc-bundle-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vh, 12px);
  width: 100%;
  max-width: 360px;
}

.hc-bundle-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(8px, 1.2vh, 16px) 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hc-bc-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.hc-bc-title {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.hc-bc-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin-top: 2px;
}

.hc-bc-price {
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
}

.hc-bc-price s {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  display: block;
}

.hc-bc-price b {
  color: #b3ffe3;
  font-size: 15px;
  font-weight: 900;
}

/* Slide 3 — Services */
.hc-service-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: clamp(4px, 0.8vh, 10px);
}

.hc-service-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.hc-service-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.hc-sb-icon {
  font-size: 22px;
}

.hc-sb-label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 700;
}

.hc-sb-label small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 2px;
}

.hc-services-visual {
  flex-direction: column;
  gap: clamp(6px, 1vh, 12px);
  align-items: flex-end;
}

.hc-svc-float {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: clamp(8px, 1.2vh, 12px) 14px;
  width: 100%;
  max-width: 320px;
  cursor: pointer;
  transition: var(--transition);
}

.hc-svc-float:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-4px);
}

.hc-svc-float>span {
  font-size: 26px;
  flex-shrink: 0;
}

.hc-svc-name {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.hc-svc-tag {
  font-size: 11px;
  color: #b3ffe3;
  margin-top: 3px;
  font-weight: 600;
}

/* Carousel manual controls — HIDDEN (auto-play only) */
.hc-controls {
  display: none !important;
}

/* Progress bar */
.hc-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.hc-progress-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  transition: width 0.1s linear;
}

/* ===== PARTNER LOGO STRIP ===== */
.partner-strip-section {
  background: #fff;
  border-bottom: 1px solid var(--milk-dark);
  height: var(--partner-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
  padding: 0;
}

.partner-strip-label {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 8px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition);
}

.partner-strip-label:hover {
  color: var(--green);
}

.partner-strip-wrap {
  overflow: hidden;
  position: relative;
}

.partner-strip-wrap::before,
.partner-strip-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
}

.partner-strip-wrap::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}

.partner-strip-wrap::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

.partner-strip-track {
  display: flex;
  align-items: center;
  gap: 28px;
  animation: partnerScroll 30s linear infinite;
  width: max-content;
}

.partner-strip-track:hover {
  animation-play-state: paused;
}

@keyframes partnerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.partner-logo-item {
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.partner-logo-item img {
  height: 60px;
  object-fit: contain;
  display: block;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: #fff;
  padding: 32px 0;
  border-bottom: 1px solid var(--milk-dark);
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0 48px;
  border-right: 1px solid var(--milk-dark);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--green);
}

.stat-label {
  font-size: 13px;
  color: var(--grey-mid);
  font-weight: 500;
  margin-top: 4px;
}

/* ATS CTA illustration + hover motion */
.ats-score-wrap {
  position: relative;
  overflow: visible;
}

.ats-score-illus {
  position: absolute;
  right: -80px;
  top: -120px;
  width: 260px;
  max-width: 40vw;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.18));
  opacity: 0;
}

@media (max-width: 768px) {
  .ats-score-illus {
    display: none;
  }
}

/* ===== COURSE CARDS ===== */
.course-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.course-card-img {
  height: fit-content;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.course-icon-img {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  z-index: 10;
  display: block;
}

.course-card-img .dept-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.free-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(90deg, #00b17b, #00c98c);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

.course-card-body {
  padding: 20px;
}

.course-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin-bottom: 8px;
}

.course-card-body p {
  font-size: 13px;
  color: var(--grey-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  font-size: 12px;
  color: var(--grey-mid);
}

.course-meta .duration {
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-level {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}

.level-beginner {
  background: rgba(0, 177, 123, 0.12);
  color: var(--green);
}

.level-intermediate {
  background: #FFF8E1;
  color: #F57F17;
}

.level-advanced {
  background: #FCE4EC;
  color: #C62828;
}

/* ===== ATS CHECKER ===== */
.ats-upload-zone {
  border: 2px dashed var(--grey-light);
  border-radius: var(--radius);
  padding: 60px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--grey-pale);
}

.ats-upload-zone:hover,
.ats-upload-zone.drag-over {
  border-color: var(--green);
  background: rgba(0, 177, 123, 0.12);
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.ats-result {
  animation: fadeIn 0.5s ease;
}

.score-ring {
  width: 160px;
  height: 160px;
  position: relative;
  margin: 0 auto 24px;
}

.score-ring svg {
  transform: rotate(-90deg);
}

.score-ring .score-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-num {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 900;
  color: var(--green);
}

.score-label {
  font-size: 12px;
  color: var(--grey-mid);
  font-weight: 600;
}

.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--grey-pale);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.insight-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.insight-icon.good {
  background: rgba(0, 177, 123, 0.12);
  color: var(--green);
}

.insight-icon.warn {
  background: #FFF8E1;
  color: #F57F17;
}

.insight-icon.bad {
  background: #FCE4EC;
  color: #C62828;
}

.insight-text h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.insight-text p {
  font-size: 13px;
  color: var(--grey-mid);
}

.progress-bar {
  height: 8px;
  background: var(--milk-dark);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green), #00c98c);
  transition: width 1s ease;
}

/* ===== RESUME BUILDER ===== */
.builder-steps {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.builder-step {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-mid);
  cursor: pointer;
  transition: var(--transition);
  border-right: 1px solid var(--milk-dark);
}

.builder-step:last-child {
  border-right: none;
}

.builder-step.active {
  background: var(--green);
  color: #fff;
}

.builder-step.done {
  background: rgba(0, 177, 123, 0.12);
  color: var(--green);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--milk-dark);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--grey);
  background: #fff;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 177, 123, 0.12);
}

.form-input::placeholder {
  color: var(--grey-light);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.resume-preview {
  background: #fff;
  border: 1px solid var(--milk-dark);
  border-radius: var(--radius);
  padding: 32px;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  box-shadow: var(--shadow);
}

.resume-preview h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--green);
  border-bottom: 2px solid var(--green);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.resume-preview h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0 8px;
}

.resume-preview p {
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 4px;
}

/* ===== RESOURCES ===== */
.resource-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.resource-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.resource-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 177, 123, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.resource-info {
  flex: 1;
}

.resource-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--grey);
  margin-bottom: 4px;
}

.resource-info p {
  font-size: 13px;
  color: var(--grey-mid);
}

.resource-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pdf-badge {
  background: rgba(0, 177, 123, 0.12);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

/* ===== GAMES ===== */
.game-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.game-card-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}

.game-card-body {
  padding: 20px;
}

.game-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  margin-bottom: 6px;
}

.game-card-body p {
  font-size: 13px;
  color: var(--grey-mid);
  margin-bottom: 16px;
}

.game-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(0, 177, 123, 0.12);
  color: var(--green);
  margin-bottom: 12px;
}

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.4s ease;
  position: relative;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grey-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--green);
  color: #fff;
}

#modal-enroll {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

/* ===== QUIZ ===== */
.quiz-q {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--grey);
  margin-bottom: 24px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--milk-dark);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  text-align: left;
  background: #fff;
}

.quiz-option:hover {
  border-color: var(--green);
  background: rgba(0, 177, 123, 0.12);
}

.quiz-option.correct {
  border-color: var(--green);
  background: rgba(0, 177, 123, 0.12);
  color: var(--green);
}

.quiz-option.wrong {
  border-color: #e53935;
  background: #ffebee;
  color: #c62828;
}

.quiz-score {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: var(--green);
  text-align: center;
  margin: 20px 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--grey);
  color: #fff;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.8;
}

.footer-brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--green);
}

/* ===== INSTITUTION PORTAL ===== */
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--green);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.testimonial-quote {
  font-size: 15px;
  color: var(--grey-mid);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-quote::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  color: rgba(0, 177, 123, 0.12);
  line-height: 0;
  vertical-align: -24px;
  margin-right: 4px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #00c98c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.author-info h5 {
  font-size: 14px;
  font-weight: 700;
}

.author-info p {
  font-size: 12px;
  color: var(--grey-mid);
}

.achievement-card {
  text-align: center;
  padding: 32px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.achievement-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--green);
  display: block;
}

.industry-logo {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 20px 28px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--grey-mid);
  font-size: 15px;
  border: 1px solid var(--milk-dark);
}

.offer-card {
  background: linear-gradient(135deg, var(--green) 0%, #00c98c 100%);
  border-radius: var(--radius);
  padding: 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.offer-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.offer-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 8px;
}

.offer-card p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 20px;
}

/* ===== JUNIOR PORTAL ===== */
.junior-hero {
  background: linear-gradient(135deg, #1a2420 0%, var(--green) 50%, #00c98c 100%);
  min-height: 550px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero {
  background: linear-gradient(135deg, var(--green) 0%, #00c98c 50%, #1a2420 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFF3E0;
  backdrop-filter: blur(4px);
  border-radius: 100px;
  padding: 8px 18px;
  margin-bottom: 24px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.hero h1,
.junior-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p,
.junior-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.skill-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.skill-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.skill-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin-bottom: 8px;
}

.program-timeline {
  position: relative;
  padding-left: 40px;
}

.program-timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0, 177, 123, 0.12);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid rgba(0, 177, 123, 0.12);
}

.timeline-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--grey-mid);
}

.school-service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.school-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ===== SECTION TITLES ===== */
.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 900;
  color: var(--grey);
  margin-bottom: 12px;
}

.section-title p {
  font-size: 17px;
  color: var(--grey-mid);
  max-width: 560px;
  margin: 0 auto;
}

.section-title .tag {
  margin-bottom: 16px;
}

/* ===== DEPT FILTER ===== */
.dept-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.dept-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid var(--milk-dark);
  background: #fff;
  color: var(--grey);
}

.dept-btn:hover,
.dept-btn.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.dept-btn[data-dept="bundle"] {
  border-color: var(--green);
  color: var(--green);
}

.dept-btn[data-dept="bundle"].active {
  background: var(--green);
  color: #fff;
}

.dept-btn[data-dept="free"] {
  border-color: #00b17b;
  color: #00b17b;
}

.dept-btn[data-dept="free"].active {
  background: #00b17b;
  color: #fff;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--grey);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.4s ease;
  max-width: 340px;
}

.toast.success {
  background: var(--green);
}

.toast.hide {
  animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
  to {
    transform: translateY(80px);
    opacity: 0;
  }
}

/* ===== PLACEMENT TRUST SECTION ===== */
.placement-section {
  background: linear-gradient(180deg, var(--grey-pale) 0%, #fff 100%);
}

.placement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.placement-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.placement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), #00c98c);
}

.placement-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.pc-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #00c98c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
  overflow: hidden;
}

.pc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pc-info {
  flex: 1;
}

.pc-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--grey);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-linkedin {
  width: 22px;
  height: 22px;
  background: #0077b5;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  flex-shrink: 0;
  transition: var(--transition);
}

.pc-linkedin:hover {
  background: #005582;
  transform: scale(1.1);
}

.pc-dept {
  font-size: 12px;
  color: var(--grey-mid);
  margin-top: 2px;
}

.pc-story {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.pc-before,
.pc-after {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.pc-label {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  margin-top: 1px;
}

.pc-before .pc-label {
  background: #FFF3E0;
  color: #E65100;
}

.pc-after .pc-label {
  background: rgba(0, 177, 123, 0.12);
  color: var(--green);
}

.pc-arrow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 18px;
  margin: 2px 0;
}

.pc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--milk-dark);
}

.pc-logos {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-mseed-badge {
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.pc-company-logo {
  background: var(--grey-pale);
  border: 1px solid var(--milk-dark);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--grey-mid);
}

.pc-salary-num {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--green);
  text-align: right;
}

.pc-salary-label {
  font-size: 11px;
  color: var(--grey-mid);
  text-align: right;
}

/* ===== TAB SYSTEM ===== */
.tab-content {
  display: block;
}

.tab-content.hidden {
  display: none !important;
}

.inst-tab,
.jrtab-content,
.schtab-content {
  display: none;
}

.inst-tab.active,
.jrtab-content.active,
.schtab-content.active {
  display: block;
}

/* ===== ANIMATIONS ===== */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .placement-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hc-headline {
    font-size: 38px;
  }
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4,
  .portal-cards,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .hero h1,
  .junior-hero h1 {
    font-size: 36px;
  }

  .portal-hero h1 {
    font-size: 36px;
  }

  .stats-inner {
    flex-wrap: wrap;
    gap: 24px;
  }

  .stat-item {
    border: none;
    padding: 0 24px;
  }

  .builder-steps {
    overflow-x: auto;
  }

  .hero-carousel-wrap {
    height: auto !important;
    min-height: auto !important;
  }

  .hc-track,
  .hc-slide {
    height: auto !important;
  }

  .hc-slide {
    padding: 40px 0 !important;
  }

  .hc-inner {
    grid-template-columns: 1fr;
  }

  .hc-headline {
    font-size: 28px;
  }

  .hc-visual {
    display: none;
  }

  /* Recalc heights for mobile (promo font smaller, partner strip tighter) */
  :root {
    --navbar-h: 60px;
    --promo-h: 38px;
    --partner-h: 64px;
  }

  /* Mobile slides: hide visual col, pills hidden, only core content */
  .hc-eyebrow {
    font-size: 11px;
    padding: 5px 12px;
  }

  .hc-trust-pills {
    display: none;
  }

  .hc-pill {
    font-size: 10px;
    padding: 3px 8px;
  }

  .hc-btn,
  .hc-btn-ghost {
    font-size: 13px;
    padding: 10px 18px;
  }

  .partner-strip-label {
    display: none;
  }

  .hc-bundle-chips {
    display: none;
  }

  .placement-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .nav-actions .back-btn {
    display: none;
  }

  .section-title h2 {
    font-size: 30px;
  }

  .portal-cards {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   YOUTUBE FLOATING GALLERY — Add to style.css
   ============================================================ */

/* ── Wrap ── */
.yt-gallery-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ── Grid: 2×2 staggered ── */
.yt-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 380px;
  /* Slight tilt for floating feel */
  transform: rotate(-2deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.yt-gallery:hover {
  transform: rotate(0deg);
}

/* ── Card ── */
.yt-card {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.3s ease;
  /* Staggered float animation */
  animation: ytFloat 4s ease-in-out infinite;
  will-change: transform;
}

/* Each card floats at different phase */
.yt-card:nth-child(1) {
  animation-delay: 0s;
  animation-duration: 4.2s;
}

.yt-card:nth-child(2) {
  animation-delay: -1.1s;
  animation-duration: 3.8s;
  margin-top: 18px;
}

.yt-card:nth-child(3) {
  animation-delay: -2.2s;
  animation-duration: 4.5s;
}

.yt-card:nth-child(4) {
  animation-delay: -0.6s;
  animation-duration: 3.6s;
  margin-top: 18px;
}

@keyframes ytFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Hover — lift + glow */
.yt-card:hover {
  transform: translateY(-12px) scale(1.04) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.45);
  /* Pause float when hovering */
  animation-play-state: paused;
  z-index: 10;
}

/* ── Thumbnail ── */
.yt-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 */
  overflow: hidden;
  background: #000;
}

.yt-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.85);
}

.yt-card:hover .yt-thumb img {
  transform: scale(1.08);
  filter: brightness(0.65);
}

/* ── Play button ── */
.yt-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.yt-play-btn::before {
  content: '';
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.9);
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.5);
}

.yt-play-btn svg {
  position: relative;
  z-index: 1;
  margin-left: 4px;
  /* optical center */
}

.yt-card:hover .yt-play-btn {
  opacity: 1;
}

/* ── Duration badge ── */
.yt-duration {
  position: absolute;
  bottom: 6px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 3;
  letter-spacing: 0.5px;
}

/* ── Card info ── */
.yt-card-info {
  padding: 10px 12px 12px;
}

.yt-tag {
  display: inline-block;
  background: rgba(0, 177, 123, 0.20);
  color: #b3ffe3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 100px;
  margin-bottom: 5px;
  border: 1px solid rgba(0, 177, 123, 0.3);
}

.yt-title {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Entrance animation (page load) ── */
.yt-card {
  opacity: 0;
  animation:
    ytEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    ytFloat 4s ease-in-out infinite;
}

.yt-card:nth-child(1) {
  animation-delay: 0.1s, 0s;
}

.yt-card:nth-child(2) {
  animation-delay: 0.25s, -1.1s;
}

.yt-card:nth-child(3) {
  animation-delay: 0.4s, -2.2s;
}

.yt-card:nth-child(4) {
  animation-delay: 0.55s, -0.6s;
}

@keyframes ytEntrance {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── YouTube Player Modal ── */
.yt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  padding: 20px;
}

.yt-modal-overlay.hidden {
  display: none !important;
}

.yt-modal-box {
  background: #0f0f0f;
  border-radius: 20px;
  width: 100%;
  max-width: 860px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.yt-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10;
}

.yt-modal-close:hover {
  background: rgba(255, 59, 48, 0.8);
}

.yt-modal-title-bar {
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.yt-modal-title-bar .yt-tag {
  background: rgba(0, 177, 123, 0.2);
  color: #00c98c;
  flex-shrink: 0;
}

.yt-modal-title-text {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Iframe 16:9 ── */
.yt-iframe-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}

.yt-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.yt-modal-footer {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .yt-gallery-wrap {
    display: none;
    /* hero visual hidden on mobile — existing behaviour */
  }

  .yt-modal-box {
    border-radius: 14px;
    max-width: 100%;
  }

  .yt-modal-title-bar {
    padding: 14px 16px 10px;
  }

  .yt-modal-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* ------------- PARTNERSHIP SECTION STYLES ------------- */
.inst-partners-section {
  --p-dark: #050d09;
  --p-dark-2: #0a1610;
  --p-dark-3: #0f1f14;
  --p-green: #00b17b;
  --p-green-2: #00e5a0;
  --p-gold: #f0b429;
  --p-white: #ffffff;
  --p-grey: rgba(255, 255, 255, 0.55);
  --p-grey-dim: rgba(255, 255, 255, 0.15);
  --p-border: rgba(255, 255, 255, 0.07);
  --p-radius: 20px;
  background: var(--p-dark);
  color: var(--p-white);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  position: relative;
}

.inst-partners-section::before {
  content: '';
  position: absolute;
  /* Adjusted to absolute for section */
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.partners-hero {
  position: relative;
  padding: 140px 24px 110px;
  text-align: center;
  overflow: hidden;
  z-index: 2;
}

.partners-hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 177, 123, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 177, 123, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 75%);
  animation: partnerGridDrift 30s linear infinite;
}

@keyframes partnerGridDrift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 64px 64px;
  }
}

.partners-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -65%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 177, 123, 0.12) 0%, rgba(0, 229, 160, 0.04) 35%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: heroGlowPulse 6s ease-in-out infinite;
}

@keyframes heroGlowPulse {

  0%,
  100% {
    opacity: 0.8;
    transform: translate(-50%, -65%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -65%) scale(1.07);
  }
}

.partners-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.partners-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 177, 123, 0.08);
  border: 1px solid rgba(0, 177, 123, 0.22);
  border-radius: 100px;
  padding: 9px 22px;
  color: var(--p-green-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 36px;
  opacity: 1;
  backdrop-filter: blur(8px);
}

.partners-eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--p-green-2);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pdot 2.4s ease infinite;
}

@keyframes pdot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.5);
  }

  50% {
    opacity: 0.5;
    box-shadow: 0 0 0 6px rgba(0, 229, 160, 0);
  }
}

.partners-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5.8vw, 72px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 30px;
  opacity: 1;
}

.partners-headline em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(110deg, var(--p-green) 0%, var(--p-green-2) 50%, var(--p-green) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 4s linear infinite;
  position: relative;
}

@keyframes shimmerText {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

.partners-subtext {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--p-grey);
  line-height: 1.85;
  max-width: 600px;
  margin: 0 auto 56px;
  opacity: 1;
  font-weight: 300;
}

.partners-stats-strip {
  display: inline-flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--p-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  overflow: hidden;
  opacity: 1;
}

.pstat {
  padding: 20px 44px;
  border-right: 1px solid var(--p-border);
  text-align: center;
  position: relative;
  transition: background 0.3s ease;
}

.pstat:last-child {
  border-right: none;
}

.pstat:hover {
  background: rgba(0, 177, 123, 0.06);
}

.pstat-num {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 900;
  color: var(--p-green-2);
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}

.pstat-label {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 7px;
  display: block;
}

.partners-scroll-hint {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 1;
}

.partners-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--p-green), transparent);
  animation: scrollPulse 2.8s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0% {
    transform: scaleY(0);
    opacity: 1;
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
    transform-origin: top;
  }

  100% {
    transform: scaleY(0);
    opacity: 1;
    transform-origin: bottom;
  }
}

.section-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
  padding: 0 0 20px;
}

.section-connector-line {
  width: 1px;
  height: 70px;
  background: linear-gradient(to bottom, transparent, var(--p-green), transparent);
}

.section-connector-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p-green);
  box-shadow: 0 0 16px var(--p-green);
}

.partners-section-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto 40px;
  padding: 0 40px;
  opacity: 1;
}

.psl-line {
  flex: 1;
  height: 1px;
  background: var(--p-border);
}

.psl-text {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.partners-showcase {
  position: relative;
  z-index: 2;
  padding: 20px 0 120px;
}

.partners-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--p-border);
  border: 1px solid var(--p-border);
  border-radius: 24px;
  overflow: hidden;
}

.partner-card.wide {
  grid-column: span 2;
}

.partner-card.feature {
  grid-column: span 3;
}

.partner-card {
  display: flex;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  opacity: 1;
  background: var(--p-dark);
  transition: background 0.4s ease;
  cursor: pointer;
  text-align: left;
}

.partner-card:hover {
  background: var(--p-dark-2);
  z-index: 10;
}

.partner-card-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 30px;
  width: 100%;
  position: relative;
}

.partner-card.wide .partner-card-inner,
.partner-card.feature .partner-card-inner {
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
  padding: 36px 36px;
}

.partner-card.feature .partner-card-inner {
  padding: 48px 44px;
}

.partner-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--p-green), var(--p-green-2));
  transition: right 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.partner-card:hover::after {
  right: 0;
}

.partner-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 20% 50%, rgba(0, 177, 123, 0.07) 0%, transparent 70%);
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.partner-card:hover .partner-card-glow {
  opacity: 1;
}

.partner-index {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 1px;
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 2;
  transition: color 0.3s ease;
}

.partner-card:hover .partner-index {
  color: rgba(0, 229, 160, 0.4);
}

.partner-logo-box {
  width: 72px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.partner-card.wide .partner-logo-box,
.partner-card.feature .partner-logo-box {
  width: 88px;
  height: 68px;
}

.partner-card.feature .partner-logo-box {
  width: 100px;
  height: 78px;
  border-radius: 18px;
}

.partner-card:hover .partner-logo-box {
  background: rgba(0, 177, 123, 0.1);
  border-color: rgba(0, 177, 123, 0.3);
  transform: scale(1.05) rotate(-1deg);
}

.partner-logo-box img {
  width: 52px;
  height: 36px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1) opacity(0.5);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.partner-card.wide .partner-logo-box img,
.partner-card.feature .partner-logo-box img {
  width: 64px;
  height: 46px;
}

.partner-card:hover .partner-logo-box img {
  filter: brightness(1) invert(0) opacity(1);
}

.partner-text {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.partner-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0, 229, 160, 0.55);
  margin-bottom: 2px;
}

.partner-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
  transition: color 0.3s ease;
}

.partner-card.wide .partner-name,
.partner-card.feature .partner-name {
  font-size: 22px;
}

.partner-card.feature .partner-name {
  font-size: 26px;
}

.partner-card:hover .partner-name {
  color: var(--p-white);
}

.partner-what {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.32);
  line-height: 1.5;
  font-style: italic;
}

.partner-collab {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-top: 4px;
}

.partner-card:not(.wide):not(.feature) .partner-collab {
  max-height: 0;
  overflow: hidden;
  opacity: 1;
  margin-top: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.3s ease;
}

.partner-card:not(.wide):not(.feature):hover .partner-collab {
  max-height: 80px;
  opacity: 1;
  margin-top: 4px;
}

.partner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.partner-card:not(.wide):not(.feature) .partner-tags {
  margin-top: 6px;
}

.partner-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(0, 177, 123, 0.07);
  border: 1px solid rgba(0, 177, 123, 0.13);
  color: rgba(0, 229, 160, 0.65);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.partner-card:hover .partner-tag {
  background: rgba(0, 177, 123, 0.14);
  border-color: rgba(0, 177, 123, 0.28);
  color: rgba(0, 229, 160, 0.9);
}

.partner-arrow {
  position: absolute;
  bottom: 20px;
  right: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 1;
  z-index: 2;
  background: transparent;
}

.partner-card:hover .partner-arrow {
  opacity: 1;
  background: var(--p-green);
  border-color: var(--p-green);
  transform: scale(1.1);
}

.partner-arrow svg {
  transition: transform 0.3s ease;
}

.partner-card:hover .partner-arrow svg {
  transform: translate(1.5px, -1.5px);
}

.partners-depth-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.pdl-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: pOrbFloat 12s ease-in-out infinite;
}

.pdl-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 177, 123, 0.07) 0%, transparent 65%);
  top: 0%;
  left: -15%;
  animation-duration: 14s;
}

.pdl-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 160, 0.05) 0%, transparent 65%);
  top: 35%;
  right: -10%;
  animation-duration: 10s;
  animation-delay: -5s;
}

.pdl-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.04) 0%, transparent 65%);
  bottom: 15%;
  left: 25%;
  animation-duration: 16s;
  animation-delay: -8s;
}

@keyframes pOrbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -25px) scale(1.04);
  }

  66% {
    transform: translate(-20px, 18px) scale(0.97);
  }
}

.partners-cta {
  position: relative;
  z-index: 2;
  padding: 110px 24px;
  text-align: center;
  overflow: hidden;
}

.partners-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--p-dark) 0%, rgba(0, 177, 123, 0.03) 50%, var(--p-dark) 100%);
  pointer-events: none;
}

.partners-cta-border {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 177, 123, 0.4), transparent);
}

.partners-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 580px;
  margin: 0 auto;
  opacity: 1;
}

.partners-cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(0, 229, 160, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.partners-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.partners-cta-title em {
  font-style: italic;
  color: var(--p-green-2);
}

.partners-cta-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
  max-width: 460px;
  margin: 0 auto 44px;
  line-height: 1.75;
  font-weight: 300;
}

.partners-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.partners-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--p-green);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 16px 36px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.3px;
}

.partners-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 55%);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.partners-cta-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 44px rgba(0, 177, 123, 0.5);
}

.partners-cta-btn:hover::before {
  opacity: 1;
}

.partners-cta-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 16px 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'DM Sans', sans-serif;
}

.partners-cta-btn-ghost:hover {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 177, 123, 0.35);
  background: rgba(0, 177, 123, 0.05);
}

@media (max-width: 1000px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
  }

  .partner-card.wide {
    grid-column: span 1;
  }

  .partner-card.feature {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .partners-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .partner-card.wide,
  .partner-card.feature {
    grid-column: span 1;
  }

  .partner-card.wide .partner-card-inner,
  .partner-card.feature .partner-card-inner {
    flex-direction: column;
    gap: 16px;
    padding: 28px 24px;
  }

  .partners-stats-strip {
    flex-direction: column;
    border-radius: 16px;
    width: 100%;
    max-width: 320px;
  }

  .pstat {
    border-right: none;
    border-bottom: 1px solid var(--p-border);
    padding: 16px 28px;
  }

  .pstat:last-child {
    border-bottom: none;
  }

  .partners-hero {
    padding: 100px 20px 80px;
  }

  .partner-card:not(.wide):not(.feature) .partner-collab {
    max-height: none;
    overflow: visible;
    opacity: 1;
    margin-top: 4px;
  }
}

/*INSTITUTION PORTAL CSS
    /* ── CSS Variables (Institution theme: dark premium) ── */
.page#page-institution {
  --inst-dark: #050d09;
  --inst-dark-2: #0a1610;
  --inst-dark-3: #0f1f14;
  --inst-green: #00b17b;
  --inst-green-2: #00e5a0;
  --inst-gold: #f0b429;
  --inst-white: #ffffff;
  --inst-grey: rgba(255, 255, 255, 0.55);
  --inst-grey-dim: rgba(255, 255, 255, 0.15);
  --inst-border: rgba(255, 255, 255, 0.08);
  --inst-radius: 16px;
  --inst-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  --inst-glow: 0 0 40px rgba(0, 177, 123, 0.2);

  background: var(--inst-dark);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* ══ NAVBAR ══ */
.inst-navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(5, 13, 9, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--inst-border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.inst-navbar.scrolled {
  background: rgba(5, 13, 9, 0.97);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.inst-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.inst-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.inst-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.inst-logo-tag {
  background: rgba(0, 177, 123, 0.15);
  border: 1px solid rgba(0, 177, 123, 0.3);
  color: var(--inst-green-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

/* Nav links */
.inst-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.inst-nav-link {
  display: block;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--inst-grey);
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.inst-nav-link:hover,
.inst-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* CTA */
.inst-nav-cta {
  background: var(--inst-green);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.inst-nav-cta:hover {
  background: var(--inst-green-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 177, 123, 0.4);
}

/* Hamburger */
.inst-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.inst-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--inst-grey);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile menu */
.inst-mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(5, 13, 9, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--inst-border);
  border-bottom: 1px solid var(--inst-border);
  padding: 16px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 98;
  transform-origin: top;
  animation: instDropdown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

@keyframes instDropdown {
  from {
    opacity: 1;
    transform: translateY(-10px) scaleY(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.inst-mobile-menu.hidden {
  display: none !important;
}

.inst-mob-link {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--inst-grey);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.inst-mob-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.inst-mob-cta {
  background: var(--inst-green);
  color: #fff !important;
  text-align: center;
  font-weight: 700;
  margin-top: 8px;
}

/* ══ HERO ══ */
.inst-hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background */
.inst-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.inst-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.inst-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(0, 177, 123, 0.12) 0%, transparent 60%),
    linear-gradient(135deg, rgba(5, 13, 9, 0.97) 0%, rgba(5, 13, 9, 0.7) 50%, rgba(5, 13, 9, 0.95) 100%);
}

/* Animated grid */
.inst-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 177, 123, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 177, 123, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 60px 60px;
  }
}

/* Floating orbs */
.inst-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
  pointer-events: none;
}

.inst-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 177, 123, 0.15) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation-duration: 9s;
}

.inst-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 229, 160, 0.10) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  animation-duration: 7s;
  animation-delay: -3s;
}

.inst-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.06) 0%, transparent 70%);
  top: 50%;
  right: 30%;
  animation-duration: 11s;
  animation-delay: -6s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 15px) scale(0.97);
  }
}

/* Hero content */
.inst-hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.min-vh-wrap {
  min-height: calc(100vh - 160px);
}

/* Left col */
.inst-hero-left {
  padding-right: 48px;
}

/* Eyebrow */
.inst-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 177, 123, 0.10);
  border: 1px solid rgba(0, 177, 123, 0.25);
  border-radius: 100px;
  padding: 8px 20px;
  color: var(--inst-green-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  opacity: 1;
  /* GSAP animates in */
}

.inst-live-dot {
  width: 8px;
  height: 8px;
  background: var(--inst-green-2);
  border-radius: 50%;
  animation: instPulse 2s ease infinite;
  flex-shrink: 0;
}

@keyframes instPulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.4);
  }

  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 6px rgba(0, 229, 160, 0);
  }
}

/* Headline */
.inst-hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -1px;
  opacity: 1;
  /* GSAP */
}

.inst-headline-accent {
  background: linear-gradient(90deg, var(--inst-green), var(--inst-green-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Underline decoration */
.inst-headline-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--inst-green), transparent);
  border-radius: 2px;
}

/* Sub */
.inst-hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--inst-grey);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 28px;
  opacity: 1;
  /* GSAP */
}

/* Trust chips */
.inst-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  opacity: 1;
  /* GSAP */
}

.inst-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 100px;
  padding: 7px 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.inst-chip:hover {
  background: rgba(0, 177, 123, 0.12);
  border-color: rgba(0, 177, 123, 0.3);
  color: var(--inst-green-2);
  transform: translateY(-2px);
}

/* Actions */
.inst-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 1;
  /* GSAP */
}

.inst-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--inst-green);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.inst-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.inst-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 177, 123, 0.45);
}

.inst-btn-primary:hover::before {
  opacity: 1;
}

.inst-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.inst-btn-ghost:hover {
  border-color: var(--inst-green);
  color: var(--inst-green-2);
  background: rgba(0, 177, 123, 0.08);
  transform: translateY(-3px);
}

/* ── RIGHT: Stats cluster ── */
.inst-hero-right {
  opacity: 1;
  /* GSAP */
}

.inst-stats-cluster {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  margin-left: auto;
}

/* Stat card base */
.inst-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--inst-border);
  border-radius: 20px;
  padding: 24px 28px;
  backdrop-filter: blur(12px);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.inst-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--inst-green), transparent);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.inst-stat-card:hover {
  background: rgba(0, 177, 123, 0.08);
  border-color: rgba(0, 177, 123, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--inst-glow);
}

.inst-stat-card:hover::before {
  opacity: 1;
}

.inst-stat-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.inst-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 900;
  color: var(--inst-green-2);
  line-height: 1;
  margin-bottom: 4px;
}

.inst-stat-label {
  font-size: 13px;
  color: var(--inst-grey);
  font-weight: 500;
}

/* Progress bar inside main stat */
.inst-stat-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 14px;
  overflow: hidden;
}

.inst-stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--inst-green), var(--inst-green-2));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.8s;
}

.inst-stat-card:hover .inst-stat-bar-fill,
.inst-stat-bar-fill.animated {
  transform: scaleX(1);
}

/* Row of two small stat cards */
.inst-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.inst-stat-sm {
  padding: 20px 22px;
}

.inst-stat-sm .inst-stat-num {
  font-size: 34px;
}

/* Wide stat with inline layout */
.inst-stat-wide .inst-stat-wide-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.inst-stat-wide-tag {
  font-size: 11px;
  color: var(--inst-grey);
  line-height: 1.6;
  text-align: right;
  max-width: 140px;
}

/* Scroll hint */
.inst-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--inst-grey-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 3;
  animation: hintBob 2.5s ease-in-out infinite;
}

.inst-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--inst-green), transparent);
  animation: lineGrow 2.5s ease-in-out infinite;
}

@keyframes hintBob {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

@keyframes lineGrow {
  0% {
    transform: scaleY(0);
    opacity: 1;
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
    transform-origin: top;
  }

  100% {
    transform: scaleY(0);
    opacity: 1;
    transform-origin: bottom;
  }
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .inst-hero-left {
    padding-right: 0;
    margin-bottom: 48px;
  }

  .inst-hero-right {
    margin-left: 0;
  }

  .inst-stats-cluster {
    max-width: 100%;
  }

  .inst-nav-links {
    display: none;
  }

  .inst-hamburger {
    display: flex;
  }

  .inst-nav-cta {
    display: none;
  }

  .inst-header .container {
    padding: 20px;
  }

  .inst-nav-cta.desktop-only {
    display: none;
  }

  .inst-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  #page-institution .inst-back-btn {
    order: -1;
    margin-right: 0 !important;
  }
}

@media (max-width: 576px) {
  .inst-hero-headline {
    font-size: 36px;
  }

  .inst-hero-chips {
    gap: 8px;
  }

  .inst-chip {
    font-size: 11px;
    padding: 5px 12px;
  }

  .inst-stat-row {
    grid-template-columns: 1fr;
  }

  .inst-btn-primary,
  .inst-btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* ══ STRATEGIC TIE-UPS ══ */
.inst-tieups {
  padding: 80px 0 60px;
  background: var(--inst-dark-2);
  position: relative;
  overflow: hidden;
}

.inst-tieups::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 177, 123, 0.3), transparent);
}

.inst-tieups-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 177, 123, 0.1);
  border: 1px solid rgba(0, 177, 123, 0.2);
  color: var(--inst-green);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.inst-tieups-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  color: #fff;
  margin-bottom: 16px;
  font-weight: 700;
}

.inst-tieups-desc {
  max-width: 600px;
  margin: 0 auto 48px;
  color: var(--inst-grey);
  font-size: 16px;
  line-height: 1.6;
}

.inst-marquee-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.inst-marquee-wrap::before,
.inst-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.inst-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--inst-dark-2), transparent);
}

.inst-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--inst-dark-2), transparent);
}

.inst-marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: scrollInfinite 30s linear infinite;
}

.inst-logo-item {
  width: 180px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
  filter: grayscale(0%) opacity(1);
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.inst-logo-item img {
  max-width: 140px;
  max-height: 60px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.inst-logo-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  z-index: 10;
}

.inst-logo-item:hover img {
  transform: scale(1.4);
}

@keyframes scrollInfinite {
  0% {
    transform: translateX(0);
  }

  /* We offset half of the track taking into account the gap. */
  100% {
    transform: translateX(calc(-50% - 20px));
  }
}

/* ══ SERVICES SECTION ══ */
.inst-section {
  position: relative;
  z-index: 2;
}

.inst-service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--inst-border);
  border-radius: 20px;
  padding: 32px 28px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.inst-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--inst-green), var(--inst-green-2));
  opacity: 1;
  transition: opacity 0.3s ease;
}

.inst-service-card:hover {
  background: rgba(0, 177, 123, 0.05);
  border-color: rgba(0, 177, 123, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 177, 123, 0.05);
}

.inst-service-card:hover::before {
  opacity: 1;
}

.inst-svc-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.inst-service-card:hover .inst-svc-icon {
  transform: scale(1.1) rotate(5deg);
}

.inst-svc-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.inst-svc-desc {
  font-size: 14px;
  color: var(--inst-grey);
  line-height: 1.6;
}

/* ══ EV SHOWCASE SECTION ══ */
.ev-left-col {
  padding-right: 40px;
}

.ev-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

.ev-spec-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  border-left: 3px solid var(--inst-green);
}

.ev-spec-label {
  font-size: 12px;
  color: var(--inst-grey);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.ev-spec-val {
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  color: var(--inst-green-2);
}

.ev-timeline {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.ev-time-item {
  position: relative;
  margin-bottom: 24px;
}

.ev-time-item:last-child {
  margin-bottom: 0;
}

.ev-time-dot {
  position: absolute;
  left: -27px;
  top: 2px;
  width: 12px;
  height: 12px;
  background: var(--inst-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--inst-green);
}

.ev-time-date {
  font-size: 12px;
  color: var(--inst-gold);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ev-time-info {
  font-size: 14px;
  color: var(--inst-grey);
  line-height: 1.5;
}

.ev-visual-container {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--inst-border);
  border-radius: 24px;
  padding: 24px;
}

.ev-viewer-placeholder {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev-360-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 1px;
  z-index: 2;
}

.ev-placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.ev-viewer-placeholder:hover .ev-placeholder-img {
  opacity: 1;
}

.ev-video-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid rgba(0, 177, 123, 0.3);
  box-shadow: 0 0 30px rgba(0, 177, 123, 0.15);
}

.ev-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
}

/* ══ ARTICLES SECTION ══ */
.inst-article-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--inst-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.inst-article-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.inst-article-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.inst-article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.inst-article-card:hover .inst-article-img {
  transform: scale(1.08);
}

.inst-article-content {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.inst-article-meta {
  font-size: 11px;
  color: var(--inst-green-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.inst-article-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.inst-article-excerpt {
  font-size: 14px;
  color: var(--inst-grey);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.inst-article-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
  margin-top: auto;
}

.inst-article-btn svg {
  transition: transform 0.2s ease;
}

.inst-article-btn:hover {
  color: var(--inst-green-2);
}

.inst-article-btn:hover svg {
  transform: translateX(4px);
}

/* ══ ARTICLE MODAL ══ */
.inst-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0.3s;
}

.inst-modal-overlay.hidden {
  opacity: 1;
  visibility: hidden;
}

.inst-modal-box {
  background: var(--inst-dark-2);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  border-radius: 24px;
  border: 1px solid var(--inst-border);
  position: relative;
  overflow-y: auto;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.inst-modal-overlay.hidden .inst-modal-box {
  transform: translateY(40px);
}

.inst-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.inst-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ia-modal-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.inst-modal-body {
  padding-bottom: 40px;
}

.ia-modal-meta {
  font-size: 12px;
  color: var(--inst-green-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 32px 32px 16px;
}

.ia-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0 32px 24px;
  line-height: 1.2;
}

.ia-modal-text {
  color: var(--inst-grey);
  font-size: 15px;
  line-height: 1.8;
  margin: 0 32px;
}

.ia-modal-text p {
  margin-bottom: 16px;
}

/* ══ FOOTER SECTION ══ */
.inst-footer {
  background: #000;
  color: #fff;
  position: relative;
  border-top: 1px solid var(--inst-border);
  z-index: 5;
}

.inst-footer-cta {
  background: linear-gradient(135deg, var(--inst-dark-3) 0%, var(--inst-dark) 100%);
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.inst-f-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.inst-f-cta-desc {
  font-size: 16px;
  color: var(--inst-grey);
  margin: 0;
}

.inst-footer-main {
  padding: 80px 0;
}

.inst-footer-text {
  color: var(--inst-grey);
  font-size: 14px;
  line-height: 1.8;
  max-width: 300px;
}

.inst-footer-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.inst-footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--inst-green);
}

.inst-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.inst-footer-links li {
  margin-bottom: 12px;
  color: var(--inst-grey);
  font-size: 14px;
  transition: color 0.3s;
}

.inst-footer-links a {
  color: var(--inst-grey);
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
}

.inst-footer-links a:hover {
  color: var(--inst-green-2);
  transform: translateX(4px);
}

.inst-footer-socials {
  display: flex;
  gap: 12px;
}

.inst-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.inst-social-icon:hover {
  background: var(--inst-green);
  border-color: var(--inst-green);
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(0, 177, 123, 0.4);
  color: #fff;
}

.inst-footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #000;
  color: var(--inst-grey);
  font-size: 13px;
}

.inst-footer-legal a {
  color: var(--inst-grey);
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s;
}

.inst-footer-legal a:hover {
  color: var(--inst-green-2);
}

@media (max-width: 991px) {
  .ev-left-col {
    padding-right: 12px;
  }
}

/* ══════════════════════════════════════════════════════
       EV PROJECT DEDICATED PAGE CSS
    ══════════════════════════════════════════════════════ */
.ev-dark-theme {
  background-color: #030705;
  color: #fff;
}

.ev-page-back {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ev-page-back:hover {
  background: #fff;
  color: #000;
  transform: translateX(-4px);
}

.ev-story-wrapper {
  position: relative;
  width: 100%;
}

.ev-pinned-visuals {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.ev-seq-layer {
  position: absolute;
  width: 80%;
  max-width: 1200px;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transform: scale(0.95);
  will-change: transform, opacity;
}

.ev-narrative-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.ev-scroll-step {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 80px 0;
}

.ev-step-intro {
  background: linear-gradient(to bottom, rgba(3, 7, 5, 0.8) 0%, rgba(3, 7, 5, 0) 100%);
}

.ev-content-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ev-main-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(90deg, #fff, #aaa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ev-reveal-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(50px, 8vw, 100px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 40px rgba(0, 177, 123, 0.5);
}

.ev-sub-text {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--inst-grey);
  max-width: 700px;
  line-height: 1.6;
}

.ev-scroll-down-hint {
  margin-top: 60px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--inst-green-2);
  animation: evBounce 2s infinite ease-in-out;
}

.ev-scroll-down-hint span {
  display: block;
  font-size: 20px;
  margin-top: 8px;
}

@keyframes evBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

.ev-text-panel {
  background: rgba(10, 22, 16, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.ev-phase-label {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  color: var(--inst-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ev-phase-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.ev-phase-desc {
  font-size: 16px;
  color: var(--inst-grey);
  line-height: 1.7;
  margin: 0;
}

.ev-spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ev-spec-list li {
  font-size: 15px;
  color: var(--inst-grey);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.ev-spec-list li strong {
  color: var(--inst-green-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.ev-final-impact {
  position: relative;
  z-index: 10;
  background: #050d09;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 100px 0;
}

/* ══ PARTNERSHIPS SECTION ══ */
.inst-partners-section {
  --p-dark: #050d09;
  --p-dark-2: #0a1610;
  --p-dark-3: #0f1f14;
  --p-green: #00b17b;
  --p-green-2: #00e5a0;
  --p-gold: #f0b429;
  --p-white: #ffffff;
  --p-grey: rgba(255, 255, 255, 0.55);
  --p-grey-dim: rgba(255, 255, 255, 0.15);
  --p-border: rgba(255, 255, 255, 0.07);
  --p-radius: 20px;
  --p-shadow: 0 12px 60px rgba(0, 0, 0, 0.5);
  --p-glow: 0 0 60px rgba(0, 177, 123, 0.2);
  background: var(--p-dark);
  color: var(--p-white);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  position: relative;
}

.inst-partners-section::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.partners-hero {
  position: relative;
  padding: 140px 24px 110px;
  text-align: center;
  overflow: hidden;
  z-index: 2;
}

.partners-hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 177, 123, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 177, 123, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 75%);
  animation: partnerGridDrift 30s linear infinite;
}

@keyframes partnerGridDrift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 64px 64px;
  }
}

.partners-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -65%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 177, 123, 0.12) 0%, rgba(0, 229, 160, 0.04) 35%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: heroGlowPulse 6s ease-in-out infinite;
}

@keyframes heroGlowPulse {

  0%,
  100% {
    opacity: 0.8;
    transform: translate(-50%, -65%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -65%) scale(1.07);
  }
}

.partners-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.partners-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 177, 123, 0.08);
  border: 1px solid rgba(0, 177, 123, 0.22);
  border-radius: 100px;
  padding: 9px 22px;
  color: var(--p-green-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 36px;
  opacity: 1;
  backdrop-filter: blur(8px);
}

.partners-eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--p-green-2);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pdot 2.4s ease infinite;
}

@keyframes pdot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.5);
  }

  50% {
    opacity: 0.5;
    box-shadow: 0 0 0 6px rgba(0, 229, 160, 0);
  }
}

.partners-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5.8vw, 72px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 30px;
  opacity: 1;
}

.partners-headline em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(110deg, var(--p-green) 0%, var(--p-green-2) 50%, var(--p-green) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 4s linear infinite;
  position: relative;
}

@keyframes shimmerText {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

.partners-subtext {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--p-grey);
  line-height: 1.85;
  max-width: 600px;
  margin: 0 auto 56px;
  opacity: 1;
  font-weight: 300;
}

.partners-stats-strip {
  display: inline-flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--p-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  overflow: hidden;
  opacity: 1;
}

.pstat {
  padding: 20px 44px;
  border-right: 1px solid var(--p-border);
  text-align: center;
  transition: background 0.3s ease;
}

.pstat:last-child {
  border-right: none;
}

.pstat:hover {
  background: rgba(0, 177, 123, 0.06);
}

.pstat-num {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 900;
  color: var(--p-green-2);
  line-height: 1;
  display: block;
}

.pstat-label {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 7px;
  display: block;
}

.partners-scroll-hint {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 1;
}

.partners-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--p-green), transparent);
  animation: scrollPulse 2.8s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0% {
    transform: scaleY(0);
    opacity: 1;
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
    transform-origin: top;
  }

  100% {
    transform: scaleY(0);
    opacity: 1;
    transform-origin: bottom;
  }
}

.section-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
  padding: 0 0 20px;
}

.section-connector-line {
  width: 1px;
  height: 70px;
  background: linear-gradient(to bottom, transparent, var(--p-green), transparent);
}

.section-connector-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p-green);
  box-shadow: 0 0 16px var(--p-green);
}

.partners-section-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto 40px;
  padding: 0 40px;
  opacity: 1;
}

.psl-line {
  flex: 1;
  height: 1px;
  background: var(--p-border);
}

.psl-text {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.partners-showcase {
  position: relative;
  z-index: 2;
  padding: 20px 0 120px;
}

.partners-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--p-border);
  border: 1px solid var(--p-border);
  border-radius: 24px;
  overflow: hidden;
}

.partner-card.wide {
  grid-column: span 2;
}

.partner-card.feature {
  grid-column: span 3;
}

.partner-card {
  display: flex;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  opacity: 1;
  background: var(--p-dark);
  transition: background 0.4s ease;
  cursor: pointer;
}

.partner-card:hover {
  background: var(--p-dark-2);
  z-index: 10;
}

.partner-card-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 30px;
  width: 100%;
  position: relative;
}

.partner-card.wide .partner-card-inner,
.partner-card.feature .partner-card-inner {
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
  padding: 36px 36px;
}

.partner-card.feature .partner-card-inner {
  padding: 48px 44px;
}

.partner-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--p-green), var(--p-green-2));
  transition: right 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.partner-card:hover::after {
  right: 0;
}

.partner-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 20% 50%, rgba(0, 177, 123, 0.07) 0%, transparent 70%);
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.partner-card:hover .partner-card-glow {
  opacity: 1;
}

.partner-index {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 1px;
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 2;
  transition: color 0.3s ease;
}

.partner-card:hover .partner-index {
  color: rgba(0, 229, 160, 0.4);
}

.partner-logo-box {
  width: 72px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.partner-card.wide .partner-logo-box,
.partner-card.feature .partner-logo-box {
  width: 88px;
  height: 68px;
}

.partner-card.feature .partner-logo-box {
  width: 100px;
  height: 78px;
  border-radius: 18px;
}

.partner-card:hover .partner-logo-box {
  background: rgba(0, 177, 123, 0.1);
  border-color: rgba(0, 177, 123, 0.3);
  transform: scale(1.05) rotate(-1deg);
}

.partner-logo-box img {
  width: 52px;
  height: 36px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1) opacity(0.5);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.partner-card.wide .partner-logo-box img,
.partner-card.feature .partner-logo-box img {
  width: 64px;
  height: 46px;
}

.partner-card:hover .partner-logo-box img {
  filter: brightness(1) invert(0) opacity(1);
}

.partner-text {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.partner-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0, 229, 160, 0.55);
  margin-bottom: 2px;
}

.partner-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
  transition: color 0.3s ease;
}

.partner-card.wide .partner-name,
.partner-card.feature .partner-name {
  font-size: 22px;
}

.partner-card.feature .partner-name {
  font-size: 26px;
}

.partner-card:hover .partner-name {
  color: var(--p-white);
}

.partner-what {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.32);
  line-height: 1.5;
  font-style: italic;
}

.partner-collab {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-top: 4px;
}

.partner-card:not(.wide):not(.feature) .partner-collab {
  max-height: 0;
  overflow: hidden;
  opacity: 1;
  margin-top: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.3s ease;
}

.partner-card:not(.wide):not(.feature):hover .partner-collab {
  max-height: 80px;
  opacity: 1;
  margin-top: 4px;
}

.partner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.partner-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(0, 177, 123, 0.07);
  border: 1px solid rgba(0, 177, 123, 0.13);
  color: rgba(0, 229, 160, 0.65);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.partner-card:hover .partner-tag {
  background: rgba(0, 177, 123, 0.14);
  border-color: rgba(0, 177, 123, 0.28);
  color: rgba(0, 229, 160, 0.9);
}

.partner-arrow {
  position: absolute;
  bottom: 20px;
  right: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 1;
  z-index: 2;
  background: transparent;
}

.partner-card:hover .partner-arrow {
  opacity: 1;
  background: var(--p-green);
  border-color: var(--p-green);
  transform: scale(1.1);
}

.partner-arrow svg {
  transition: transform 0.3s ease;
}

.partner-card:hover .partner-arrow svg {
  transform: translate(1.5px, -1.5px);
}

.partners-depth-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.pdl-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: pOrbFloat 12s ease-in-out infinite;
}

.pdl-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 177, 123, 0.07) 0%, transparent 65%);
  top: 0%;
  left: -15%;
  animation-duration: 14s;
}

.pdl-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 160, 0.05) 0%, transparent 65%);
  top: 35%;
  right: -10%;
  animation-duration: 10s;
  animation-delay: -5s;
}

.pdl-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.04) 0%, transparent 65%);
  bottom: 15%;
  left: 25%;
  animation-duration: 16s;
  animation-delay: -8s;
}

@keyframes pOrbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -25px) scale(1.04);
  }

  66% {
    transform: translate(-20px, 18px) scale(0.97);
  }
}

.partners-cta {
  position: relative;
  z-index: 2;
  padding: 110px 24px;
  text-align: center;
  overflow: hidden;
}

.partners-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--p-dark) 0%, rgba(0, 177, 123, 0.03) 50%, var(--p-dark) 100%);
  pointer-events: none;
}

.partners-cta-border {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 177, 123, 0.4), transparent);
}

.partners-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 580px;
  margin: 0 auto;
  opacity: 1;
}

.partners-cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(0, 229, 160, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.partners-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.partners-cta-title em {
  font-style: italic;
  color: var(--p-green-2);
}

.partners-cta-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
  max-width: 460px;
  margin: 0 auto 44px;
  line-height: 1.75;
  font-weight: 300;
}

.partners-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.partners-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--p-green);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 16px 36px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.3px;
}

.partners-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 55%);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.partners-cta-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 44px rgba(0, 177, 123, 0.5);
}

.partners-cta-btn:hover::before {
  opacity: 1;
}

.partners-cta-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 16px 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'DM Sans', sans-serif;
}

.partners-cta-btn-ghost:hover {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 177, 123, 0.35);
  background: rgba(0, 177, 123, 0.05);
}

@media (max-width: 1000px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
  }

  .partner-card.wide {
    grid-column: span 1;
  }

  .partner-card.feature {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .partners-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .partner-card.wide,
  .partner-card.feature {
    grid-column: span 1;
  }

  .partner-card.wide .partner-card-inner,
  .partner-card.feature .partner-card-inner {
    flex-direction: column;
    gap: 16px;
    padding: 28px 24px;
  }

  .partners-stats-strip {
    flex-direction: column;
    border-radius: 16px;
    width: 100%;
    max-width: 320px;
  }

  .pstat {
    border-right: none;
    border-bottom: 1px solid var(--p-border);
    padding: 16px 28px;
  }

  .pstat:last-child {
    border-bottom: none;
  }

  .partners-hero {
    padding: 100px 20px 80px;
  }

  .partner-card:not(.wide):not(.feature) .partner-collab {
    max-height: none;
    overflow: visible;
    opacity: 1;
    margin-top: 4px;
  }
}

/*JUNIOR STUDENT PORTAL*/
#page-junior-student {
  --bg: #f4f4f4;
  --bg2: #f4f4f4;
  --surface: #ffffff;
  --surface2: #f4f4f4;
  --border: rgba(46, 47, 47, 0.15);
  --accent: #00b17b;
  --accent2: #00b17b;
  --fire: #ff6d00;
  --green: #00b17b;
  --purple: #aa00ff;
  --yellow: #ffd600;
  --red: #ff1744;
  --text: #2e2f2f;
  --muted: #6a6a6a;
  --glow: rgba(0, 177, 123, 0.2);
  --font-head: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

#page-junior-student *,
#page-junior-student *::before,
#page-junior-student *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#page-junior-student {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

#page-junior-student::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* TICKER */
#page-junior-student .ticker-wrap {
  background: linear-gradient(90deg, var(--accent), var(--purple));
  padding: 8px 0;
  overflow: hidden;
  position: relative;
  z-index: 100;
}

#page-junior-student .ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}

#page-junior-student .ticker-track span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* NAV */
#page-junior-student nav {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

#page-junior-student .nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

#page-junior-student #jr-hamburger-btn {
  display: none !important;
}

#page-junior-student .logo {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
}

#page-junior-student .nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

#page-junior-student .nav-links a {
  text-decoration: none;
  color: var(--grey);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

#page-junior-student .nav-cta {
  background: #FFFFFF !important;
  color: #00b17b !important;
  padding: 8px 18px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
}

#page-junior-student .nav-cta:hover {
  background: var(--accent2) !important;
  transform: translateY(-1px);
}

/* HERO */
#page-junior-student .hero {
  position: relative;
  overflow: hidden;
  padding: 100px 24px 80px;
  text-align: center;
}

#page-junior-student .hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 70%), radial-gradient(ellipse 50% 40% at 80% 60%, rgba(168, 85, 247, 0.1) 0%, transparent 60%);
}

#page-junior-student .hero-grid {
  top: 2px;
  position: relative;
  inset: 0;
  background-image: linear-gradient(rgba(99, 179, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 179, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

#page-junior-student .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

#page-junior-student .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeUp 0.6s ease both;
}

#page-junior-student .hero h1 {
  font-family: var(--font-head);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}

#page-junior-student .hero h1 span {
  background: #FFFFFF;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#page-junior-student .hero p {
  color: #FFFFFF;
  font-size: 18px;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
  animation: fadeUp 0.6s 0.2s ease both;
}

#page-junior-student .hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

#page-junior-student .btn-primary {
  background: floralwhite;
  color: #00b17b;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 14px var(--glow);
  font-family: var(--font-body);
}

#page-junior-student .btn-primary:hover {
  transform: translateY(-2px);
}

#page-junior-student .btn-ghost {
  background: floralwhite;
  color: #00b17b;
  border: 1px solid var(--border);
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
}

#page-junior-student .btn-ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
}

/* STATS STRIP */
#page-junior-student .stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

#page-junior-student .stats-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}

#page-junior-student .stat-num {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent2), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

#page-junior-student .stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

/* MAIN */
#page-junior-student .main-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px;
}

#page-junior-student .section-header {
  margin-bottom: 32px;
}

#page-junior-student .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 10px;
}

#page-junior-student .section-tag::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

#page-junior-student .section-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

#page-junior-student .section-title span {
  color: var(--accent2);
}

/* SEARCH */
#page-junior-student .search-bar {
  position: relative;
  max-width: 600px;
  margin: 0 auto 48px;
}

#page-junior-student .search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 50px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: all 0.2s;
}

#page-junior-student .search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#page-junior-student .search-input::placeholder {
  color: var(--muted);
}

#page-junior-student .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}

#page-junior-student .search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 50;
}

#page-junior-student .search-results.show {
  display: block;
}

#page-junior-student .search-result-item {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}

#page-junior-student .search-result-item:last-child {
  border-bottom: none;
}

#page-junior-student .search-result-item:hover {
  background: var(--surface2);
}

#page-junior-student .sri-icon {
  font-size: 16px;
  width: 28px;
}

#page-junior-student .sri-text {
  font-size: 14px;
  font-weight: 500;
}

#page-junior-student .sri-cat {
  font-size: 11px;
  color: var(--muted);
}

/* CAREER GRID */
#page-junior-student .career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

#page-junior-student .career-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

#page-junior-student .career-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--glow), transparent);
  opacity: 1;
  transition: opacity 0.3s;
}

#page-junior-student .career-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

#page-junior-student .career-card:hover::before {
  opacity: 1;
}

#page-junior-student .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

#page-junior-student .card-icon.blue {
  background: rgba(59, 130, 246, 0.1);
}

#page-junior-student .card-icon.purple {
  background: rgba(168, 85, 247, 0.1);
}

#page-junior-student .card-icon.green {
  background: rgba(34, 197, 94, 0.1);
}

#page-junior-student .card-icon.fire {
  background: rgba(249, 115, 22, 0.1);
}

#page-junior-student .card-icon.yellow {
  background: rgba(234, 179, 8, 0.1);
}

#page-junior-student .card-icon.red {
  background: rgba(239, 68, 68, 0.1);
}

#page-junior-student .card-icon.cyan {
  background: rgba(6, 182, 212, 0.1);
}

#page-junior-student .card-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

#page-junior-student .card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

#page-junior-student .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#page-junior-student .badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#page-junior-student .badge-hot {
  background: rgba(249, 115, 22, 0.15);
  color: var(--fire);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

#page-junior-student .badge-extreme {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

#page-junior-student .badge-new {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

#page-junior-student .badge-stable {
  background: rgba(100, 116, 139, 0.15);
  color: var(--muted);
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* TABS */
#page-junior-student .tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

#page-junior-student .tab {
  padding: 8px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

#page-junior-student .tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

#page-junior-student .tab:hover:not(.active) {
  border-color: var(--accent2);
  color: var(--text);
}

/* QUIZ */
#page-junior-student .quiz-section {
  background: linear-gradient(135deg, var(--surface), var(--surface2));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

#page-junior-student .quiz-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15), transparent 70%);
}

#page-junior-student .quiz-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

#page-junior-student .quiz-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

#page-junior-student .quiz-question {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.4;
}

#page-junior-student .quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#page-junior-student .quiz-option {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

#page-junior-student .quiz-option:hover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.05);
}

#page-junior-student .quiz-option.selected {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
  color:
    var(--accent2);
}

#page-junior-student .option-letter {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

#page-junior-student .quiz-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

#page-junior-student .qp-dot {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--surface2);
  transition:
    background 0.3s;
}

#page-junior-student .qp-dot.done {
  background: var(--accent);
}

#page-junior-student .quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

#page-junior-student .quiz-score-display {
  display: none;
  text-align: center;
  padding: 20px;
}

#page-junior-student .quiz-score-display.show {
  display: block;
}

#page-junior-student .score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent);
}

/* TREND GRID */
#page-junior-student .trend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap:
    20px;
  margin-bottom: 48px;
}

#page-junior-student .trend-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

#page-junior-student .trend-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.3);
}

#page-junior-student .trend-card.fire-card {
  border-color: rgba(249, 115, 22, 0.25);
}

#page-junior-student .trend-card.fire-card::after {
  content: '🔥 120% Growth';
  position: absolute;
  top: 16px;
  right:
    16px;
  font-size: 10px;
  font-weight: 700;
  color: var(--fire);
  background: rgba(249, 115, 22, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

#page-junior-student .trend-bar-wrap {
  margin: 16px 0 8px;
}

#page-junior-student .trend-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color:
    var(--muted);
  margin-bottom: 6px;
}

#page-junior-student .trend-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--surface2);
  overflow: hidden;
}

#page-junior-student .trend-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* SCHOLARSHIP TABLE */
#page-junior-student .scholarship-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius:
    20px;
  overflow: hidden;
  margin-bottom: 48px;
}

#page-junior-student .table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  background:
    var(--surface2);
  padding: 14px 24px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

#page-junior-student .table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  align-items: center;
}

#page-junior-student .table-row:last-child {
  border-bottom: none;
}

#page-junior-student .table-row:hover {
  background: var(--surface2);
}

#page-junior-student .schol-name {
  font-weight: 600;
  color: var(--text);
}

#page-junior-student .schol-amount {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  font-weight:
    600;
}

#page-junior-student .eligibility-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
}

#page-junior-student .open-pill {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

#page-junior-student .closed-pill {
  background: rgba(100, 116, 139, 0.1);
  color: var(--muted);
}

#page-junior-student .soon-pill {
  background: rgba(234, 179, 8, 0.15);
  color: var(--yellow);
}

/* MENTOR CARDS */
#page-junior-student .mentor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap:
    20px;
  margin-bottom: 48px;
}

#page-junior-student .mentor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s;
}

#page-junior-student .mentor-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

#page-junior-student .mentor-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 2px solid var(--border);
}

#page-junior-student .mentor-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  margin-bottom:
    4px;
}

#page-junior-student .mentor-role {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

#page-junior-student .mentor-company {
  font-size: 12px;
  color: var(--accent2);
  font-weight: 500;
  margin-bottom: 12px;
}

#page-junior-student .mentor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom:
    16px;
}

#page-junior-student .mentor-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background:
    var(--surface2);
  color: var(--muted);
}

#page-junior-student .rating {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  margin-bottom:
    16px;
  font-size: 13px;
}

#page-junior-student .stars {
  color: var(--yellow);
}

#page-junior-student .btn-book {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

#page-junior-student .btn-book:hover {
  background: var(--accent);
  color: #fff;
}

/* ROADMAP */
#page-junior-student .roadmap-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius:
    24px;
  padding: 36px;
  margin-bottom: 48px;
}

#page-junior-student .roadmap-content {
  display: none;
}

#page-junior-student .roadmap-content.active {
  display: block;
}

#page-junior-student .timeline {
  position: relative;
  padding-left: 32px;
}

#page-junior-student .timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--purple), transparent);
  border-radius: 2px;
}

#page-junior-student .timeline-item {
  position: relative;
  margin-bottom: 28px;
}

#page-junior-student .timeline-dot {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  transition: all 0.3s;
}

#page-junior-student .timeline-item:hover .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 15px var(--glow);
}

#page-junior-student .timeline-phase {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform:
    uppercase;
  color: var(--accent2);
  margin-bottom: 4px;
}

#page-junior-student .timeline-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  margin-bottom:
    6px;
}

#page-junior-student .timeline-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

#page-junior-student .timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

#page-junior-student .skill-chip {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 6px;
  background:
    var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* WEBINAR */
#page-junior-student .webinar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap:
    20px;
  margin-bottom: 48px;
}

#page-junior-student .webinar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s;
}

#page-junior-student .webinar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.3);
}

#page-junior-student .webinar-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}

#page-junior-student .live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 4px;
}

#page-junior-student .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.5s infinite;
}

#page-junior-student .upcoming-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(234, 179, 8, 0.9);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

#page-junior-student .webinar-body {
  padding: 20px;
}

#page-junior-student .webinar-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  margin-bottom:
    6px;
}

#page-junior-student .webinar-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color:
    var(--muted);
  margin-bottom: 14px;
}

#page-junior-student .webinar-speaker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

#page-junior-student .speaker-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface2);
  display:
    flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* GOVT */
#page-junior-student .govt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

#page-junior-student .govt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

#page-junior-student .govt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
}

#page-junior-student .govt-card.upsc::before {
  background: linear-gradient(90deg, var(--accent), var(--purple));
}

#page-junior-student .govt-card.ssc::before {
  background: linear-gradient(90deg, var(--green), var(--accent));
}

#page-junior-student .govt-card.banking::before {
  background: linear-gradient(90deg, var(--yellow), var(--fire));
}

#page-junior-student .govt-card.tnpsc::before {
  background: linear-gradient(90deg, var(--purple), var(--red));
}

#page-junior-student .govt-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.3);
}

#page-junior-student .govt-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

#page-junior-student .govt-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

#page-junior-student .govt-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

#page-junior-student .govt-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

#page-junior-student .govt-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

#page-junior-student .govt-detail-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform:
    uppercase;
  width: 80px;
  flex-shrink: 0;
}

#page-junior-student .govt-detail-val {
  color: var(--text);
  font-weight: 500;
}

/* TOAST */
#page-junior-student .toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction:
    column;
  gap: 10px;
  z-index: 9999;
}

#page-junior-student .toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 14px 18px;
  min-width: 280px;
  max-width: 360px;
  display: flex;
  align-items:
    flex-start;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: slideIn 0.3s ease both;
  position: relative;
}

#page-junior-student .toast.fire {
  border-left-color: var(--fire);
}

#page-junior-student .toast.success {
  border-left-color: var(--green);
}

#page-junior-student .toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

#page-junior-student .toast-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

#page-junior-student .toast-msg {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

#page-junior-student .toast-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color:
    var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 1;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 1;
    transform: translateY(8px);
  }
}

/* MODAL */
#page-junior-student .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter:
    blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#page-junior-student .modal-overlay.show {
  display: flex;
}

#page-junior-student .modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding:
    36px;
  max-width: 560px;
  width: 100%;
  position: relative;
  animation: fadeUp 0.3s ease both;
}

#page-junior-student .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface2);
  border:
    none;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display:
    flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

#page-junior-student .modal-close:hover {
  background: var(--bg);
  color: var(--text);
}

/* SCROLL TOP */
#page-junior-student .scroll-top {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius:
    12px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 90;
  display:
    none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  transition: all 0.2s;
}

#page-junior-student .scroll-top.show {
  display: flex;
}

#page-junior-student .scroll-top:hover {
  transform: translateY(-3px);
}

@keyframes fadeUp {
  from {
    opacity: 1;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#page-junior-student .fade-in {
  opacity: 1;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#page-junior-student .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FOOTER */
#page-junior-student footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 40px 24px;
  text-align:
    center;
  background: var(--surface);
}

#page-junior-student .footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

#page-junior-student .footer-logo {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  background:
    linear-gradient(135deg, var(--accent2), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

#page-junior-student .footer-tagline {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}

#page-junior-student .footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom:
    24px;
}

#page-junior-student .footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

#page-junior-student .footer-links a:hover {
  color: var(--accent2);
}

#page-junior-student .footer-copy {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 768px) {

  #page-junior-student .table-header,
  #page-junior-student .table-row {
    grid-template-columns: 2fr 1fr 1fr;
  }

  #page-junior-student .table-header>*:nth-child(4),
  #page-junior-student .table-header>*:nth-child(5),
  #page-junior-student .table-row>*:nth-child(4),
  #page-junior-student .table-row>*:nth-child(5) {
    display: none;
  }

  #page-junior-student .nav-links {
    display: none;
  }

  #page-junior-student .hero h1 {
    font-size: 38px;
  }

  /* Horizontal Scroll for Cards */
  #page-junior-student .career-grid,
  #page-junior-student .trend-grid,
  #page-junior-student .mentor-grid,
  #page-junior-student .webbinar-grid,
  #page-junior-student .webinar-grid,
  #page-junior-student .govt-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 24px;
    margin-right: -24px;
    padding-right: 24px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  #page-junior-student .career-grid::-webkit-scrollbar,
  #page-junior-student .trend-grid::-webkit-scrollbar,
  #page-junior-student .mentor-grid::-webkit-scrollbar,
  #page-junior-student .webbinar-grid::-webkit-scrollbar,
  #page-junior-student .webinar-grid::-webkit-scrollbar,
  #page-junior-student .govt-grid::-webkit-scrollbar {
    display: none;
  }

  #page-junior-student .career-card,
  #page-junior-student .trend-card,
  #page-junior-student .mentor-card,
  #page-junior-student .webbinar-card,
  #page-junior-student .webinar-card,
  #page-junior-student .govt-card {
    min-width: 280px;
    max-width: 85vw;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

@media (max-width: 540px) {
  #page-junior-student .hero {
    padding: 60px 16px 60px;
  }

  #page-junior-student .main-wrap {
    padding: 32px 16px;
  }
}

/* ===== SCHOOL INSTITUTION PORTAL ===== */
#page-school-inst {
  --bg: #f4f4f4;
  --bg2: #ffffff;
  --surface: #ffffff;
  --surface2: #efefef;
  --border: rgba(0, 177, 123, 0.2);
  --border-light: #e2e2e2;
  --accent: #00b17b;
  --accent2: #009267;
  --text: #2e2f2f;
  --text2: #444546;
  --muted: #6b7280;
  --glow: rgba(0, 177, 123, 0.12);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

#page-school-inst *,
#page-school-inst *::before,
#page-school-inst *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#page-school-inst {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

#page-school-inst::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
}

/* TICKER */
#page-school-inst .ticker-wrap {
  background: var(--accent);
  padding: 8px 0;
  overflow: hidden;
  position: relative;
  z-index: 100;
}

#page-school-inst .ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}

#page-school-inst .ticker-track span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* NAV */
#page-school-inst nav {
  position: sticky;
  top: 0;
  z-index: 99;
  background: #f4f4f4;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #ddd;
  padding: 0 24px;
}

#page-school-inst .nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

#page-school-inst .logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

#page-school-inst .logo img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

#page-school-inst .nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

#page-school-inst .nav-links a {
  text-decoration: none;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

#page-school-inst .nav-links a:hover {
  color: var(--accent);
  background: rgba(0, 177, 123, 0.08);
}

#page-school-inst .nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  list-style: none;
}

#page-school-inst .nav-cta:hover {
  background: var(--accent2) !important;
  transform: translateY(-1px);
}

/* MAIN */
#page-school-inst .main-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px;
}

#page-school-inst .section-header {
  margin-bottom: 32px;
}

#page-school-inst .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 10px;
}

#page-school-inst .section-tag::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

#page-school-inst .section-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

#page-school-inst .section-title span {
  color: var(--accent);
}

/* ANALYTICS */
#page-school-inst .analytics-section {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 36px;
  margin-bottom: 48px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

#page-school-inst .analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

#page-school-inst .bar-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#page-school-inst .bar-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

#page-school-inst .bar-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
}

#page-school-inst .bar-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

#page-school-inst .bar-track {
  height: 8px;
  border-radius: 4px;
  background: #e8e8e8;
  overflow: hidden;
}

#page-school-inst .bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
}

#page-school-inst .insight-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#page-school-inst .insight-card {
  background: #f8f9f8;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color 0.2s;
}

#page-school-inst .insight-card:hover {
  border-color: rgba(0, 177, 123, 0.4);
}

#page-school-inst .insight-icon {
  font-size: 20px;
  flex-shrink: 0;
}

#page-school-inst .insight-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

#page-school-inst .insight-text strong {
  color: var(--text);
}

/* BOOKING */
#page-school-inst .booking-section {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 48px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

#page-school-inst .booking-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

#page-school-inst .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#page-school-inst .form-group.full {
  grid-column: 1 / -1;
}

#page-school-inst .form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#page-school-inst .form-input,
#page-school-inst .form-select,
#page-school-inst .form-textarea {
  background: #f8f9f8;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

#page-school-inst .form-input:focus,
#page-school-inst .form-select:focus,
#page-school-inst .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 177, 123, 0.12);
}

#page-school-inst .form-select option {
  background: #fff;
  color: var(--text);
}

#page-school-inst .form-textarea {
  resize: vertical;
  min-height: 100px;
}

#page-school-inst .session-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

#page-school-inst .session-type {
  background: #f8f9f8;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

#page-school-inst .session-type.selected {
  border-color: var(--accent);
  background: rgba(0, 177, 123, 0.06);
}

#page-school-inst .session-type:hover {
  border-color: rgba(0, 177, 123, 0.4);
}

#page-school-inst .session-type-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

#page-school-inst .session-type-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

#page-school-inst .session-type-desc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

#page-school-inst .form-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
  box-shadow: 0 4px 20px rgba(0, 177, 123, 0.3);
}

#page-school-inst .form-submit:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 177, 123, 0.4);
}

/* CAREER GRID */
#page-school-inst .career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

#page-school-inst .career-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 28px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  opacity: 1;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

#page-school-inst .career-card.card-visible {
  opacity: 1;
  transform: translateY(0);
}

#page-school-inst .career-card.card-visible:hover {
  transform: translateY(-8px) scale(1.01);
}

#page-school-inst .career-card:nth-child(1) {
  transition-delay: 0s;
}

#page-school-inst .career-card:nth-child(2) {
  transition-delay: 0.1s;
}

#page-school-inst .career-card:nth-child(3) {
  transition-delay: 0.2s;
}

#page-school-inst .career-card:nth-child(4) {
  transition-delay: 0.3s;
}

#page-school-inst .career-card:nth-child(5) {
  transition-delay: 0.4s;
}

#page-school-inst .career-card:nth-child(6) {
  transition-delay: 0.5s;
}

/* shimmer sweep on hover */
#page-school-inst .career-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(0, 177, 123, 0.07), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

#page-school-inst .career-card:hover::before {
  left: 130%;
}

/* green accent line at top */
#page-school-inst .career-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 20px 20px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#page-school-inst .career-card:hover::after {
  transform: scaleX(1);
}

#page-school-inst .career-card:hover {
  border-color: rgba(0, 177, 123, 0.35);
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 48px rgba(0, 177, 123, 0.12), 0 8px 20px rgba(0, 0, 0, 0.07);
}

#page-school-inst .card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  background: rgba(0, 177, 123, 0.1);
  border: 1px solid rgba(0, 177, 123, 0.15);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

#page-school-inst .career-card:hover .card-icon {
  transform: scale(1.15) rotate(-4deg);
  background: rgba(0, 177, 123, 0.18);
}

#page-school-inst .card-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  transition: color 0.2s;
}

#page-school-inst .career-card:hover .card-title {
  color: var(--accent2);
}

#page-school-inst .card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

#page-school-inst .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#page-school-inst .badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#page-school-inst .badge-stable {
  background: rgba(0, 177, 123, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 177, 123, 0.25);
}

/* TOAST */
#page-school-inst .toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

#page-school-inst .toast {
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 14px 18px;
  min-width: 280px;
  max-width: 360px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  animation: slideIn 0.3s ease both;
  position: relative;
}

#page-school-inst .toast.success {
  border-left-color: var(--accent);
}

#page-school-inst .toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

#page-school-inst .toast-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

#page-school-inst .toast-msg {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

#page-school-inst .toast-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 1;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 1;
    transform: translateY(8px);
  }
}

/* SCROLL TOP */
#page-school-inst .scroll-top {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 177, 123, 0.35);
  transition: all 0.2s;
}

#page-school-inst .scroll-top.show {
  display: flex;
}

#page-school-inst .scroll-top:hover {
  background: var(--accent2);
  transform: translateY(-3px);
}

#page-school-inst .fade-in {
  opacity: 1;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#page-school-inst .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

#page-school-inst footer {
  border-top: 1px solid #d0d0d0;
  margin-top: 80px;
  padding: 40px 24px;
  text-align: center;
  background: #2e2f2f;
}

#page-school-inst .footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

#page-school-inst .footer-logo {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#page-school-inst .footer-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

#page-school-inst .footer-tagline {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}

#page-school-inst .footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

#page-school-inst .footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

#page-school-inst .footer-links a:hover {
  color: var(--accent);
}

#page-school-inst .footer-copy {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 768px) {
  #page-school-inst .analytics-grid {
    grid-template-columns: 1fr;
  }

  #page-school-inst .booking-form-grid {
    grid-template-columns: 1fr;
  }

  #page-school-inst .career-grid,
  #page-school-inst .insight-cards,
  #page-school-inst .session-types {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  #page-school-inst .career-grid::-webkit-scrollbar,
  #page-school-inst .insight-cards::-webkit-scrollbar,
  #page-school-inst .session-types::-webkit-scrollbar {
    display: none;
  }

  #page-school-inst .career-card,
  #page-school-inst .insight-card,
  #page-school-inst .session-type {
    flex: 0 0 85%;
    max-width: 320px;
    scroll-snap-align: center;
  }

  #page-school-inst .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  /* School Portal Mobile Nav */
  #page-school-inst .desktop-only {
    display: none !important;
  }

  #page-school-inst .mobile-menu-btn {
    display: flex !important;
    color: var(--accent);
  }

  #page-school-inst .nav-links {
    position: fixed;
    top: 72px;
    /* Height of the nav bar */
    left: -100%;
    width: 250px;
    height: calc(100vh - 72px);
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 999;
  }

  #page-school-inst .nav-links.show {
    left: 0;
  }

  #page-school-inst .mobile-overlay {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    display: none;
    opacity: 1;
    transition: opacity 0.3s ease;
  }

  #page-school-inst .mobile-overlay.show {
    display: block;
    opacity: 1;
  }

  #page-school-inst .logo span.text-inst-hub {
    display: none;
  }

  #page-college-student .desktop-back-btn,
  #page-college-student .desktop-enroll-btn {
    display: none !important;
  }

  #page-college-student .mobile-only-back {
    display: flex !important;
  }

  /* Adjust nav-actions gap for better layout */
  #page-college-student .nav-actions {
    gap: 8px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ATS RESUME TOOLS TAB — Complete CSS
   Scope: #tab-ats and all child elements
   Font: DM Sans (body) + Playfair Display (headings) — matches site
   Theme: Clean white/mint — matches MSEED brand
═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ───────────────────────────────────────────── */
#tab-ats {
  --ats-green: #00b17b;
  --ats-green-dark: #009267;
  --ats-green-pale: rgba(0, 177, 123, 0.08);
  --ats-green-glow: rgba(0, 177, 123, 0.18);
  --ats-red: #e53935;
  --ats-orange: #e08c00;
  --ats-yellow: #d4a00a;
  --ats-dark: #1a1f1c;
  --ats-text: #2e2e2e;
  --ats-muted: #6b7280;
  --ats-border: #e8e8e8;
  --ats-surface: #ffffff;
  --ats-bg: #f7f9f8;
  --ats-milk: #f4f4f0;
  --ats-radius: 14px;
  --ats-radius-lg: 22px;
  --ats-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  --ats-shadow-md: 0 8px 40px rgba(0, 0, 0, 0.10);
  font-family: 'DM Sans', sans-serif;
  color: var(--ats-text);
  background: var(--ats-bg);
}

#tab-ats *,
#tab-ats *::before,
#tab-ats *::after {
  box-sizing: border-box;
}

/* ── PDF Loading Overlay ────────────────────────────────────── */
#pdfLoadingOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

#pdfLoadingOverlay.active {
  display: flex;
}

.pdf-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid var(--ats-border);
  border-top-color: var(--ats-green);
  border-radius: 50%;
  animation: ats-spin 0.8s linear infinite;
}

.pdf-loading-txt {
  font-size: 15px;
  font-weight: 600;
  color: var(--ats-muted);
  letter-spacing: 0.01em;
}

@keyframes ats-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── HERO SECTION ───────────────────────────────────────────── */
#tab-ats .hero {
  background: linear-gradient(135deg, #0d1f18 0%, #1a3329 50%, #0d2b20 100%);
  padding: 80px 24px 70px;
  position: relative;
  overflow: hidden;
}

#tab-ats .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0, 177, 123, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 177, 123, 0.10) 0%, transparent 40%);
  pointer-events: none;
}

/* subtle grid overlay */
#tab-ats .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

#tab-ats .hero .container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#tab-ats .hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

#tab-ats .hero-left {
  flex: 1;
  max-width: 640px;
}

#tab-ats .hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

#tab-ats .hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 520px;
}

/* ── Upload Box (Hero) ──────────────────────────────────────── */
#tab-ats .upload-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px dashed rgba(0, 177, 123, 0.45);
  border-radius: var(--ats-radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  position: relative;
}

#tab-ats .upload-box:hover {
  border-color: var(--ats-green);
  background: rgba(0, 177, 123, 0.08);
}

#tab-ats .upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 1;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

#tab-ats .upload-box-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  pointer-events: none;
}

#tab-ats .upload-left {
  flex: 1;
}

#tab-ats .upload-left p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin: 8px 0 0;
}

#tab-ats .upload-right {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 24px;
  flex-shrink: 0;
}

#tab-ats .upload-right p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin: 0;
}

#tab-ats .file-chosen-txt {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--ats-green);
  margin-top: 8px;
  word-break: break-all;
}

/* ── UPLOAD SECTION ─────────────────────────────────────────── */
#tab-ats .upload-section {
  background: var(--ats-surface);
  padding: 60px 24px;
  border-bottom: 1px solid var(--ats-border);
}

#tab-ats .upload-section .container {
  max-width: 700px;
  margin: 0 auto;
}

#tab-ats .upload-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--ats-text);
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

/* ── Steps Bar ──────────────────────────────────────────────── */
#tab-ats .steps-bar {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  counter-reset: step;
}

#tab-ats .steps-bar li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ats-muted);
  flex: 1;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ats-border);
  transition: color 0.3s, border-color 0.3s;
}

#tab-ats .steps-bar li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ats-border);
  color: var(--ats-muted);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}

#tab-ats .steps-bar li.active {
  color: var(--ats-green);
  border-bottom-color: var(--ats-green);
  font-weight: 700;
}

#tab-ats .steps-bar li.active::before {
  background: var(--ats-green);
  color: #fff;
}

#tab-ats .steps-bar li.done {
  color: var(--ats-muted);
  border-bottom-color: var(--ats-green);
}

#tab-ats .steps-bar li.done::before {
  content: "✓";
  background: var(--ats-green-pale);
  color: var(--ats-green);
}

/* ── Main Drop Zone ─────────────────────────────────────────── */
#tab-ats .drop-form {
  border: 2px dashed var(--ats-border);
  border-radius: var(--ats-radius-lg);
  padding: 48px 32px;
  text-align: center;
  background: var(--ats-bg);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  position: relative;
  margin-bottom: 20px;
}

#tab-ats .drop-form:hover {
  border-color: var(--ats-green);
  background: var(--ats-green-pale);
}

#tab-ats .drop-form input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 1;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

#tab-ats .drop-form h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ats-text);
  margin: 0 0 10px;
}

#tab-ats .file-badge {
  display: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ats-green);
  background: var(--ats-green-pale);
  border: 1px solid rgba(0, 177, 123, 0.25);
  border-radius: 100px;
  padding: 4px 14px;
  margin: 8px auto 12px;
  max-width: fit-content;
}

#tab-ats .formats {
  font-size: 12px;
  color: var(--ats-muted);
  margin: 0 0 20px;
}

/* ── Buttons ────────────────────────────────────────────────── */
#tab-ats .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

#tab-ats .btn-primary {
  background: var(--ats-green);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 177, 123, 0.30);
}

#tab-ats .btn-primary:hover {
  background: var(--ats-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 177, 123, 0.40);
}

#tab-ats .btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#tab-ats .btn-grey {
  background: var(--ats-border);
  color: var(--ats-muted);
}

#tab-ats .btn-yellow {
  background: #f5a623;
  color: #fff;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.3);
}

#tab-ats .btn-yellow:hover {
  background: #e09318;
  transform: translateY(-2px);
}

#tab-ats .btn-block {
  width: 100%;
}

/* ── Scanning UI ────────────────────────────────────────────── */
#tab-ats .scanning-wrap {
  display: none;
  text-align: center;
  padding: 20px 0 40px;
}

#tab-ats .scan-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--ats-text);
  margin: 0 0 8px;
}

#tab-ats .scan-sub {
  font-size: 14px;
  color: var(--ats-muted);
  margin: 0 0 32px;
}

#tab-ats .criteria-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#tab-ats .criteria-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ats-muted);
  background: var(--ats-bg);
  border: 1px solid transparent;
  transition: all 0.3s;
}

#tab-ats .criteria-item.active {
  background: #fff;
  color: var(--ats-text);
  border-color: var(--ats-green);
  box-shadow: 0 2px 10px rgba(0, 177, 123, 0.12);
}

#tab-ats .criteria-item.done-item {
  color: var(--ats-green-dark);
  font-weight: 600;
}

#tab-ats .ci-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ats-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.step-icon {
  background: var(--ats-green-pale) !important;
}

#tab-ats .ci-icon.scanning {
  background: var(--ats-green);
  animation: ats-spin 0.8s linear infinite, ats-pulse 1s ease-in-out infinite;
}

#tab-ats .ci-icon.done {
  background: var(--ats-green-pale);
}

#tab-ats .ci-icon.done::after {
  content: "✓";
  color: var(--ats-green);
  font-size: 14px;
  font-weight: 700;
}

@keyframes ats-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 177, 123, 0.35);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(0, 177, 123, 0);
  }
}

#tab-ats .scan-progress {
  height: 6px;
  background: var(--ats-border);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 0 8px;
}

#tab-ats .scan-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ats-green), #00d9a0);
  border-radius: 3px;
  transition: width 0.4s ease;
}

#tab-ats .scan-pct {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--ats-green);
  text-align: right;
}

/* ── RESULTS WRAPPER ────────────────────────────────────────── */
#tab-ats .results-wrap {
  display: none;
  background: var(--ats-bg);
  padding: 60px 24px;
}

#tab-ats .results-wrap .container {
  max-width: 1000px;
  margin: 0 auto;
}

/* ── Score Section ──────────────────────────────────────────── */
#tab-ats .score-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
  background: var(--ats-surface);
  border: 1px solid var(--ats-border);
  border-radius: var(--ats-radius-lg);
  padding: 40px;
  margin-bottom: 28px;
  box-shadow: var(--ats-shadow);
}

/* Ring */
#tab-ats .score-ring-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

#tab-ats .score-ring-wrap svg {
  transform: rotate(-90deg);
}

#tab-ats .ring-track {
  fill: none;
  stroke: var(--ats-border);
  stroke-width: 16;
}

#tab-ats .ring-fill {
  fill: none;
  stroke: var(--ats-green);
  stroke-width: 16;
  stroke-linecap: round;
  stroke-dasharray: 502.65;
  stroke-dashoffset: 502.65;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s;
}

#tab-ats .ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

#tab-ats .ring-score {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 900;
  color: var(--ats-green);
  line-height: 1;
  transition: color 0.4s;
}

#tab-ats .ring-label {
  font-size: 11px;
  color: var(--ats-muted);
  font-weight: 500;
}

#tab-ats .ring-grade {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 4px;
}

/* Original badge */
#tab-ats .original-score-badge {
  display: none;
  position: absolute;
  top: -10px;
  right: -14px;
  background: var(--ats-surface);
  border: 1.5px solid var(--ats-border);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ats-muted);
  box-shadow: var(--ats-shadow);
  white-space: nowrap;
}

/* Breakdown bars */
#tab-ats .breakdown {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  min-width: 0;
}

#tab-ats .b-item {
  min-width: 0;
}

#tab-ats .b-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

#tab-ats .b-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ats-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tab-ats .b-val {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: 8px;
}

#tab-ats .b-track {
  height: 7px;
  background: var(--ats-border);
  border-radius: 4px;
  overflow: hidden;
}

#tab-ats .b-fill {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Verdict ────────────────────────────────────────────────── */
#tab-ats .verdict {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  border-radius: var(--ats-radius);
  margin-bottom: 28px;
  border: 1px solid;
}

#tab-ats .verdict.pass {
  background: rgba(0, 133, 108, 0.06);
  border-color: rgba(0, 133, 108, 0.2);
}

#tab-ats .verdict.warn {
  background: rgba(224, 140, 0, 0.06);
  border-color: rgba(224, 140, 0, 0.2);
}

#tab-ats .verdict.fail {
  background: rgba(191, 47, 38, 0.06);
  border-color: rgba(191, 47, 38, 0.2);
}

#tab-ats .verdict-ico {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

#tab-ats .verdict h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}

#tab-ats .verdict p {
  font-size: 14px;
  color: var(--ats-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── 30 Criteria Grid ───────────────────────────────────────── */
#tab-ats .criteria-results {
  background: var(--ats-surface);
  border: 1px solid var(--ats-border);
  border-radius: var(--ats-radius-lg);
  padding: 36px;
  margin-bottom: 28px;
  box-shadow: var(--ats-shadow);
}

#tab-ats .criteria-results h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 24px;
  color: var(--ats-text);
}

#tab-ats .cr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

#tab-ats .cr-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--ats-radius);
  border: 1px solid;
  transition: transform 0.2s;
}

#tab-ats .cr-card:hover {
  transform: translateY(-2px);
}

#tab-ats .pass-card {
  background: rgba(0, 133, 108, 0.04);
  border-color: rgba(0, 133, 108, 0.18);
}

#tab-ats .fail-card {
  background: rgba(191, 47, 38, 0.04);
  border-color: rgba(191, 47, 38, 0.18);
}

#tab-ats .warn-card {
  background: rgba(224, 140, 0, 0.04);
  border-color: rgba(224, 140, 0, 0.18);
}

#tab-ats .cr-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

#tab-ats .badge-pass {
  background: rgba(0, 133, 108, 0.12);
  color: #00856c;
}

#tab-ats .badge-fail {
  background: rgba(191, 47, 38, 0.12);
  color: var(--ats-red);
}

#tab-ats .badge-warn {
  background: rgba(224, 140, 0, 0.12);
  color: var(--ats-orange);
}

#tab-ats .cr-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ats-text);
  margin: 0 0 4px;
  line-height: 1.3;
}

#tab-ats .cr-text p {
  font-size: 12px;
  color: var(--ats-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Tips Section ───────────────────────────────────────────── */
#tab-ats .tips-section {
  background: var(--ats-surface);
  border: 1px solid var(--ats-border);
  border-radius: var(--ats-radius-lg);
  padding: 36px;
  margin-bottom: 28px;
  box-shadow: var(--ats-shadow);
}

#tab-ats .tips-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 20px;
  color: var(--ats-text);
}

#tab-ats .tip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#tab-ats .tip-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ats-muted);
  line-height: 1.6;
  padding: 12px 16px;
  background: var(--ats-bg);
  border-radius: 10px;
  border-left: 3px solid var(--ats-green);
}

#tab-ats .tip-bullet {
  color: var(--ats-green);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1.5;
}

/* ── Template Banner ────────────────────────────────────────── */
#tab-ats .tpl-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #0d1f18 0%, #1a3329 100%);
  border-radius: var(--ats-radius-lg);
  padding: 32px 36px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

#tab-ats .tpl-banner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}

#tab-ats .tpl-banner p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* ── TEMPLATE SECTION ───────────────────────────────────────── */
#tab-ats #tplSection {
  display: none;
  background: var(--ats-bg);
  padding: 48px 24px 60px;
}

#tab-ats #tplSection .container {
  max-width: 760px;
  margin: 0 auto;
}

#tab-ats .edit-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ats-muted);
  background: var(--ats-surface);
  border: 1px solid var(--ats-border);
  border-radius: 100px;
  padding: 8px 18px;
  margin-bottom: 24px;
  box-shadow: var(--ats-shadow);
}

/* ── Resume Paper ───────────────────────────────────────────── */
#tab-ats .resume-paper {
  background: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  padding: 48px 52px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
  font-family: 'Times New Roman', Times, serif;
  font-size: 11pt;
  line-height: 1.55;
  color: #111;
  min-height: 280mm;
}

/* Resume-specific styles (inside resume-paper) */
#tab-ats .resume-paper .rn {
  font-size: 22pt;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
  font-family: 'Times New Roman', Times, serif;
  outline: none;
  cursor: text;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

#tab-ats .resume-paper .rn:focus {
  border-bottom-color: var(--ats-green);
  background: rgba(0, 177, 123, 0.04);
}

#tab-ats .resume-paper .rc {
  text-align: center;
  font-size: 9.5pt;
  color: #444;
  margin-bottom: 10px;
}

#tab-ats .resume-paper .rc span {
  cursor: text;
  outline: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  padding: 1px 2px;
}

#tab-ats .resume-paper .rc span:focus {
  border-bottom-color: var(--ats-green);
  background: rgba(0, 177, 123, 0.04);
  border-radius: 2px;
}

#tab-ats .resume-paper .rdiv {
  border-top: 1.5px solid #111;
  margin: 8px 0;
}

#tab-ats .resume-paper .rs {
  font-size: 11pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid #ccc;
  padding-bottom: 3px;
  margin: 18px 0 8px;
  color: #111;
}

#tab-ats .resume-paper .rjt {
  font-weight: 700;
  font-size: 11pt;
  float: left;
  cursor: text;
}

#tab-ats .resume-paper .rdt {
  float: right;
  font-size: 10pt;
  color: #555;
  cursor: text;
}

#tab-ats .resume-paper [contenteditable="true"] {
  outline: none;
  cursor: text;
  border-radius: 2px;
  transition: background 0.2s;
}

#tab-ats .resume-paper [contenteditable="true"]:hover {
  background: rgba(0, 177, 123, 0.04);
}

#tab-ats .resume-paper [contenteditable="true"]:focus {
  background: rgba(0, 177, 123, 0.07);
  box-shadow: 0 0 0 2px rgba(0, 177, 123, 0.2);
}

#tab-ats .resume-paper .rco {
  font-size: 10pt;
  color: #555;
  margin: 2px 0 6px;
  display: block;
  cursor: text;
}

#tab-ats .resume-paper .rb {
  font-size: 10.5pt;
  position: relative;
  padding-left: 16px;
  margin: 4px 0;
  display: block;
  cursor: text;
}

#tab-ats .resume-paper .rb::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: #333;
}

/* ── Modal ──────────────────────────────────────────────────── */
#tab-ats .overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#tab-ats .overlay.on {
  display: flex;
}

#tab-ats .modal {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  animation: ats-modal-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ats-modal-in {
  from {
    transform: scale(0.88) translateY(20px);
    opacity: 1;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

#tab-ats .modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--ats-text);
}

#tab-ats .modal .sub {
  font-size: 14px;
  color: var(--ats-muted);
  margin: 0 0 24px;
}

#tab-ats .fld {
  margin-bottom: 16px;
}

#tab-ats .fld label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ats-muted);
  margin-bottom: 8px;
}

#tab-ats .fld input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--ats-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--ats-text);
  background: var(--ats-bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#tab-ats .fld input:focus {
  border-color: var(--ats-green);
  box-shadow: 0 0 0 3px rgba(0, 177, 123, 0.12);
  background: #fff;
}

/* Radio options */
#tab-ats .radio-row {
  display: flex;
  gap: 12px;
}

#tab-ats .r-opt {
  flex: 1;
  border: 1.5px solid var(--ats-border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  background: var(--ats-bg);
}

#tab-ats .r-opt input {
  display: none;
}

#tab-ats .r-opt.sel {
  border-color: var(--ats-green);
  background: var(--ats-green-pale);
}

#tab-ats .r-opt.sel .ic {
  filter: none;
}

#tab-ats .r-opt:hover:not(.sel) {
  border-color: rgba(0, 177, 123, 0.4);
}

#tab-ats .r-opt .ic {
  font-size: 24px;
  margin-bottom: 8px;
}

#tab-ats .r-opt .lbl {
  font-weight: 700;
  font-size: 14px;
  color: var(--ats-text);
}

#tab-ats .r-opt .sub2 {
  font-size: 11px;
  color: var(--ats-muted);
}

/* ── Progress Bar ───────────────────────────────────────────── */
#tab-ats .progress-bar {
  height: 8px;
  background: var(--ats-border);
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}

#tab-ats .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ats-green), #00d9a0);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  #tab-ats .hero {
    padding: 48px 20px 48px;
  }

  #tab-ats .hero h1 {
    font-size: 28px;
  }

  #tab-ats .upload-box-inner {
    flex-direction: column;
    gap: 16px;
  }

  #tab-ats .upload-right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 0;
    padding-top: 16px;
  }

  #tab-ats .score-section {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  #tab-ats .score-ring-wrap {
    margin: 0 auto;
  }

  #tab-ats .cr-grid {
    grid-template-columns: 1fr;
  }

  #tab-ats .criteria-results,
  #tab-ats .tips-section {
    padding: 24px 20px;
  }

  #tab-ats .tpl-banner {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }

  #tab-ats .resume-paper {
    padding: 28px 24px;
    font-size: 10pt;
  }

  #tab-ats .modal {
    padding: 28px 24px;
  }

  #tab-ats .radio-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  #tab-ats .hero h1 {
    font-size: 24px;
  }

  #tab-ats .drop-form {
    padding: 32px 20px;
  }

  #tab-ats .scan-title {
    font-size: 22px;
  }
}

/*innaiku ippo panrathu
/* ================= PORTAL PAGE RESPONSIVE FINAL ================= */

/* Tablet View */
@media (max-width: 992px) {

  #page-portal .portal-cards {
    display: flex;
    justify-content: center;
    gap: 25px;
  }

  #page-portal .portal-card {
    width: 45%;
  }

}

/* Mobile View */
@media (max-width: 768px) {

  #page-portal .portal-cards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 18px;
    padding: 0 15px;
    -webkit-overflow-scrolling: touch;
  }

  #page-portal .portal-cards::-webkit-scrollbar {
    display: none;
  }

  #page-portal .portal-card {
    flex: 0 0 250px;
    /* Card size reduce */
    padding: 18px;
    height: auto;
    /* Fixed height remove */
  }

  #page-portal .portal-card h2 {
    font-size: 18px;
  }

  #page-portal .portal-card .sub {
    font-size: 13px;
  }

  #page-portal .portal-card p {
    font-size: 13px;
    line-height: 1.4;
  }

  #page-portal .portal-card-icon {
    font-size: 28px;
  }

  #page-portal .portal-btn {
    font-size: 13px;
    padding: 8px 14px;
  }

}

@media (max-width: 480px) {
  #page-portal .portal-card {
    flex: 0 0 220px;
  }
}

/* ================= PORTAL PAGE FINAL RESPONSIVE + ANIMATIONS ================= */

/* Tablet View (Horizontal Cards) */
@media (max-width: 992px) and (min-width: 601px) {

  #page-portal .portal-cards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch;
  }

  #page-portal .portal-cards::-webkit-scrollbar {
    display: none;
  }

  #page-portal .portal-card {
    flex: 0 0 260px;
    height: auto;
  }

}

/* Desktop / base portal hero + cards animation */
#page-portal .portal-hero {
  position: relative;
  overflow: hidden;
}

#page-portal .portal-hero::before,
#page-portal .portal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(0, 177, 123, 0.12), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0, 229, 160, 0.08), transparent 55%);
  opacity: 0;
  pointer-events: none;
  animation: portalGlowIn 1.4s ease forwards 0.4s;
}

#page-portal .portal-cards {
  position: relative;
  z-index: 1;
  animation: portalCardsRise 0.7s cubic-bezier(0.17, 0.89, 0.32, 1.28) forwards 0.6s;
  transform: translateY(18px);
  opacity: 0;
}

#page-portal .portal-card {
  position: relative;
  overflow: hidden;
}

#page-portal .portal-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg) translateX(-100%);
  opacity: 0;
}

#page-portal .portal-card:hover::after {
  opacity: 1;
  animation: portalShine 0.9s ease-out;
}

/* Different subtle accent for each main card */
#page-portal .portal-card:first-child .portal-card-icon {
  box-shadow: 0 0 0 1px rgba(0, 177, 123, 0.4), 0 16px 30px rgba(0, 177, 123, 0.25);
}

#page-portal .portal-card:nth-child(2) .portal-card-icon {
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.5), 0 16px 30px rgba(59, 130, 246, 0.25);
}

@keyframes portalGlowIn {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes portalCardsRise {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes portalShine {
  0% {
    transform: skewX(-18deg) translateX(-120%);
  }

  100% {
    transform: skewX(-18deg) translateX(260%);
  }
}

/* Small Mobile (Vertical Stack) */
@media (max-width: 600px) {

  #page-portal .portal-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: visible;
    /* Important: remove horizontal scroll */
    padding: 0 15px;
  }

  #page-portal .portal-card {
    width: 100%;
    flex: unset;
    height: auto;
    padding: 18px;
  }

  #page-portal .portal-card h2 {
    font-size: 18px;
  }

  #page-portal .portal-card p {
    font-size: 13px;
    line-height: 1.4;
  }

  #page-portal .portal-btn {
    font-size: 13px;
    padding: 8px 14px;
  }

}

/* ================= MSEED & JUNIOR PORTAL SELECT RESPONSIVE ================= */

/* Tablet View (Horizontal Scroll) */
@media (max-width: 992px) and (min-width: 601px) {

  #mseed-portal-select .portal-cards,
  #junior-portal-select .portal-cards {

    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch;
  }

  #mseed-portal-select .portal-cards::-webkit-scrollbar,
  #junior-portal-select .portal-cards::-webkit-scrollbar {
    display: none;
  }

  #mseed-portal-select .portal-card,
  #junior-portal-select .portal-card {
    flex: 0 0 260px;
    height: auto;
  }

}


/* Small Mobile (Vertical Stack) */
@media (max-width: 600px) {

  #mseed-portal-select .portal-cards,
  #junior-portal-select .portal-cards {

    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: visible;
    padding: 0 15px;
  }

  #mseed-portal-select .portal-card,
  #junior-portal-select .portal-card {
    width: 100%;
    flex: unset;
    height: auto;
    padding: 18px;
  }

  #mseed-portal-select .portal-card h2,
  #junior-portal-select .portal-card h2 {
    font-size: 18px;
  }

  #mseed-portal-select .portal-card p,
  #junior-portal-select .portal-card p {
    font-size: 13px;
    line-height: 1.4;
  }

  #mseed-portal-select .portal-btn,
  #junior-portal-select .portal-btn {
    font-size: 13px;
    padding: 8px 14px;
  }

}

/* ===================================================== */
/* ============ PAGE COLLEGE STUDENT RESPONSIVE ========= */
/* ===================================================== */


/* ---------------- STATS BAR ---------------- */
/* ===================================================== */
/* FINAL RESPONSIVE – PAGE COLLEGE STUDENT */
/* ===================================================== */

@media (max-width: 768px) {

  /* ---------------- HERO HIDE ---------------- */
  #page-college-student .hero-slider,
  #page-college-student .hero-slide {
    display: none !important;
  }


  /* ---------------- STATS BAR ---------------- */
  #page-college-student .stats-bar {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 15px;
    flex-wrap: nowrap;
  }

  #page-college-student .stats-bar>* {
    flex: 0 0 auto;
    font-size: 14px;
  }

  #page-college-student .stats-bar::-webkit-scrollbar {
    display: none;
  }


  /* ---------------- ATS SECTION FIX ---------------- */

  /* Override inline grid */
  #page-college-student .section .container>div[style*="grid-template-columns"] {
    display: block !important;
  }

  /* Hide score card (right side white box) */
  #page-college-student .section .container>div>div:nth-child(2) {
    display: none !important;
  }

  /* Full width left content */
  #page-college-student .section .container>div>div:nth-child(1) {
    width: 100%;
  }

  #page-college-student .section {
    padding: 40px 20px;
  }

  #page-college-student .section h2 {
    font-size: 26px !important;
  }

  #page-college-student .section p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }


  /* ---------------- COURSES (grid-3) ---------------- */
  #page-college-student #home-courses.grid-3 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
  }

  #page-college-student #home-courses.grid-3>* {
    flex: 0 0 260px;
  }

  #page-college-student #home-courses.grid-3::-webkit-scrollbar {
    display: none;
  }


  /* ---------------- WHY MSEED HIDE ---------------- */
  #page-college-student .grid-4 {
    display: none !important;
  }


  /* ---------------- PLACEMENT SECTION ---------------- */
  #page-college-student .placement-section .placement-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  #page-college-student .placement-section .placement-grid>* {
    flex: 0 0 260px;
    scroll-snap-align: start;
  }

  #page-college-student .placement-section .placement-grid::-webkit-scrollbar {
    display: none;
  }

  /* Keep placement button static */
  #page-college-student .placement-section .btn {
    display: inline-block;
    margin-top: 20px;
  }


  /* ---------------- FOOTER 2x2 ---------------- */
  #page-college-student .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

}

/*ithoda first portak completed*/
/*ithoda first portak completed*/
/* ===================================================== */
/* PAGE INSTITUTION – CLEAN RESPONSIVE FIX */
/* Desktop touch panna koodathu */
/* ===================================================== */


/* ================= NAVBAR FIX ================= */
@media (max-width: 768px) {

  #page-institution .inst-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* force both into same row */
  #page-institution .inst-navbar .back-btn,
  #page-institution .inst-navbar .hamburger {
    position: static !important;
    margin: 0 !important;
  }

}



/* ================= HERO RIGHT SMALL + HORIZONTAL ================= */

@media (max-width: 768px) {

  #page-institution .inst-hero-right {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 16px;
  }

  #page-institution .inst-hero-right>* {
    flex: 0 0 220px;
    max-width: 220px;
  }

  #page-institution .inst-hero-right::-webkit-scrollbar {
    display: none;
  }

}



/* ================= SERVICES (ONLY BELOW 500px CAROUSEL) ================= */

/* ================= ARTICLES – ONE CARD AT A TIME ================= */

@media (max-width: 768px) {

  #inst-articles-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  #inst-articles-grid>* {
    flex: 0 0 100%;
    scroll-snap-align: start;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  #inst-articles-grid::-webkit-scrollbar {
    display: none;
  }

}



/* ================= FOOTER 2 COLUMN 2 ROW ================= */

@media (max-width: 768px) {

  #page-institution .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

}

/* ===================================== */
/* PAGE INSTITUTION – HIDE HERO RIGHT */
/* ===================================== */

@media (max-width: 768px) {
  #page-institution .inst-hero-right {
    display: none !important;
  }
}

/* ================================================= */
/* PAGE INSTITUTION – SECTION BELOW SERVICES FIX */
/* ================================================= */

@media (max-width: 768px) {

  /* Target only the row AFTER services */
  #inst-services+section .row.align-items-center.min-vh-wrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    /* prevent stacking */
    gap: 20px;
  }

  #inst-services+section .row.align-items-center.min-vh-wrap>div {
    flex: 0 0 50% !important;
    /* 2 columns */
    max-width: 50% !important;
  }

}

/* ===================================================== */
/* PAGE INSTITUTION – FOOTER EXACT 2x2 STRUCTURE */
/* ===================================================== */

@media (max-width: 768px) {

  /* Target the bootstrap row inside footer */
  #page-institution .inst-footer-main .row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px;
  }

  /* Remove bootstrap column width forcing */
  #page-institution .inst-footer-main .row>* {
    width: 100% !important;
    max-width: 100% !important;
  }

}

/* ========================================= */
/* INST SERVICES – SIMPLE HORIZONTAL SCROLL */
/* ========================================= */

/* Institution Services horizontal scroll only for mobile */
@media (max-width: 576px) {
  #inst-services {
    overflow: hidden;
  }

  #inst-services .row.g-4.justify-content-center {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    /* Use flex-start to prevent first card from being cut off */
    justify-content: flex-start !important;
    gap: 16px;
    scroll-behavior: smooth;
    padding: 0 20px 20px 20px !important;
    /* Add padding for scroller */
    margin: 0 !important;
    /* Remove negative margins */
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  #inst-services .row.g-4.justify-content-center::-webkit-scrollbar {
    display: none;
  }

  #inst-services .row.g-4.justify-content-center>div {
    flex: 0 0 260px;
    max-width: 260px;
  }
}

/*ithoda instituition mutinchu
/* ===== SPLASH SAFETY FALLBACK ===== */
#splash {
  animation: splashFallbackHide 0.5s ease 4s forwards;
}

@keyframes splashFallbackHide {
  to {
    opacity: 0;
    pointer-events: none;
  }
}

#intro-logo {
  animation: splashLogoFallback 0.8s ease 0.5s both;
}

@keyframes splashLogoFallback {
  from {
    opacity: 0;
    transform: scale(0.6);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== MSEED PORTAL SELECT SPECIFIC STYLES ===== */
#mseed-portal-select,
#junior-portal-select {
  background: linear-gradient(135deg, #0a1628 0%, rgba(10, 22, 40, 0.95) 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

#mseed-portal-select .portal-hero,
#junior-portal-select .portal-hero {
  background: transparent;
}

#mseed-portal-select::before,
#mseed-portal-select::after,
#junior-portal-select::before,
#junior-portal-select::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 177, 123, 0.15) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

#mseed-portal-select::before,
#junior-portal-select::before {
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  animation: floatOrb 10s ease-in-out infinite alternate;
}

#mseed-portal-select::after,
#junior-portal-select::after {
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  animation: floatOrb 12s ease-in-out infinite alternate-reverse;
}

#mseed-portal-select h1,
#mseed-portal-select p,
#mseed-portal-select .tag,
#mseed-portal-select .back-btn,
#junior-portal-select h1,
#junior-portal-select p,
#junior-portal-select .tag,
#junior-portal-select .back-btn {
  position: relative;
  z-index: 2;
}

#mseed-portal-select .portal-card,
#junior-portal-select .portal-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Springy hover */
}

#mseed-portal-select .portal-card:hover,
#junior-portal-select .portal-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #00b17b;
  box-shadow: 0 20px 40px rgba(0, 177, 123, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

#mseed-portal-select .portal-card h2,
#junior-portal-select .portal-card h2 {
  color: #ffffff;
}

#mseed-portal-select .portal-card p,
#junior-portal-select .portal-card p {
  color: rgba(255, 255, 255, 0.7);
}

#mseed-portal-select .back-btn,
#junior-portal-select .back-btn {
  color: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: transparent !important;
}

#mseed-portal-select .back-btn:hover,
#junior-portal-select .back-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

@keyframes floatOrb {
  0% {
    transform: translateY(0) translateX(0) scale(1);
  }

  50% {
    transform: translateY(-20px) translateX(20px) scale(1.05);
  }

  100% {
    transform: translateY(10px) translateX(-10px) scale(0.95);
  }
}

/* ===== RESOURCES MOBILE FIX ===== */

@media (max-width: 500px) {

  #resources-list {
    width: 100%;
    min-width: 0;
  }

  #resources-list .resource-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  #resources-list .resource-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  #resources-list .resource-info {
    width: 100%;
  }

  #resources-list .resource-info h4 {
    font-size: 14px;
    line-height: 1.3;
    word-break: break-word;
  }

  #resources-list .resource-info p {
    font-size: 12px;
  }

  #resources-list .resource-meta {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  #resources-list .download-btn {
    width: 100%;
    text-align: center;
  }

}

/* ===== ATS UPLOAD SECTION MOBILE FIX ===== */

@media (max-width: 768px) {

  #tab-ats .upload-section #dropWrap {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
  }

  #tab-ats #dropWrap .formats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    text-align: center;
  }

  #tab-ats #dropWrap .btn.btn-grey {
    width: 100%;
    max-width: 250px;
    display: block;
    margin: 10px auto 0;
    text-align: center;
  }

}

@media (max-width: 500px) {

  #tab-ats .upload-section #dropWrap {
    padding: 14px;
  }

  #tab-ats #dropWrap .btn.btn-grey {
    width: 100%;
    max-width: 100%;
  }

}

/* ===== Institution Services Cards Fix ===== */

/* Mobile */
@media (max-width: 576px) {

  #page-institution #inst-tab-home #inst-services .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
  }

  #page-institution #inst-tab-home #inst-services .col-md-6.col-lg-4 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

}

/* Tablet: 2 columns */
@media (min-width: 577px) and (max-width: 991px) {
  #page-institution #inst-tab-home #inst-services .col-md-6.col-lg-4 {
    width: 50%;
    max-width: 50%;
    flex: 0 0 50%;
  }

  #inst-services .container {
    padding: 0 24px;
  }

  #inst-services .row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center;
  }
}

/* Desktop */
@media (min-width: 992px) {

  #page-institution #inst-tab-home #inst-services .col-md-6.col-lg-4 {
    width: 33.333%;
    max-width: 33.333%;
    flex: 0 0 33.333%;
  }

}

/* ================= ABOUT SECTION RESPONSIVE ================= */
.about-grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  /* Mobile first: single column */
}

@media (min-width: 768px) {
  .about-grid-2col {
    grid-template-columns: 1fr 1fr;
    /* Desktop: two columns */
  }
}

@media (max-width: 991px) {
  .desktop-only-stats {
    display: none !important;
  }
}

/* ===================================================== */
/* INSTITUTION PORTAL LOGO OVERRIDE */
/* ===================================================== */
#page-institution .logo {
  display: flex !important;
  align-items: center !important;
  background: none !important;
}

#page-institution .logo img {
  content: url('https://res.cloudinary.com/dn6ljz4uo/image/upload/v1772577611/Seed_Joined_White_o9i2rr.png') !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-height: 30px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* -- MASCOT MICRO-INTERACTIONS -- */
.inst-page-mascot {
  position: absolute;
  width: 60px;
  height: auto;
  z-index: 5;
  filter: drop-shadow(0 4px 10px rgba(0, 177, 123, 0.3));
  animation: mascot-float 3s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.inst-page-mascot:hover {
  transform: scale(1.3) rotate(-5deg);
  animation: none;
  /* stop floating on hover to focus */
}

/* Position overrides for specific mascots */
.mascot-hero-pos {
  top: -30px;
  right: -50px;
  width: 70px;
}

.mascot-stats-pos {
  top: -40px;
  left: -30px;
  width: 80px;
}

.mascot-services-pos {
  top: -40px;
  left: 30%;
  width: 65px;
}

.mascot-ev-pos {
  top: 0;
  right: 15px;
  width: 65px;
}

.mascot-articles-pos {
  top: -50px;
  right: 25%;
  width: 75px;
}

@keyframes mascot-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Coming Soon Ribbon Overlay styling */
.junior-coming-soon-ribbon {
  position: absolute;
  top: 25px;
  right: -35px;
  background: linear-gradient(135deg, #00B17B, #00e09a);
  color: white;
  padding: 8px 40px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: rotate(45deg);
  box-shadow: 0 4px 10px rgba(0, 177, 123, 0.3);
  z-index: 10;
  pointer-events: none;
}

/* ===== UNIFIED GALLERY STYLES ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  width: 100%;
}

.gallery-item {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 177, 123, 0.15);
}

.gallery-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-tag {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 8px;
  transform: translateY(10px);
  transition: transform 0.4s ease 0.1s;
}

.gallery-title {
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  transform: translateY(10px);
  transition: transform 0.4s ease 0.2s;
}

.gallery-item:hover .gallery-tag,
.gallery-item:hover .gallery-title {
  transform: translateY(0);
}

/* Specific Adjustments for Dark Portals (Institution) */
#page-institution .gallery-item {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#page-institution .gallery-title {
  color: #fff;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }

  .gallery-overlay {
    opacity: 1;
    /* Always show overlay on mobile */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  }
}

/* ===== FLOATING GALLERY BUTTON ===== */
#gallery-float-btn {
  position: fixed;
  bottom: 24px;
  right: 96px;
  /* Positioned to the left of the mascot help button (24 + 60 + 12) */
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #00b17b, #008f63);
  color: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99997;
  box-shadow: 0 4px 15px rgba(0, 177, 123, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid #fff;
}

#gallery-float-btn .g-icon {
  font-size: 22px;
  line-height: 1;
}

#gallery-float-btn .g-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

#gallery-float-btn:hover {
  transform: scale(1.15) translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 177, 123, 0.5);
  background: linear-gradient(135deg, #00c98c, #00b17b);
}

@media (max-width: 600px) {
  #gallery-float-btn {
    bottom: 16px;
    right: 76px;
    /* (12 + 52 + 12) */
    width: 52px;
    height: 52px;
  }

  #gallery-float-btn .g-icon {
    font-size: 18px;
  }

  #gallery-float-btn .g-label {
    font-size: 8px;
  }
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}