   *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    
    :root {
      --primary: #1d4ed8;
      --primary-2: #3b82f6;
      --bg: #f8fafc;
      --text: #0f172a;
      --muted: #475569;
      --glass: rgba(255, 255, 255, 0.75);
      --border: rgba(15, 23, 42, 0.08);
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'DM Sans', sans-serif;
      color: var(--text);
      background: var(--bg);
      line-height: 1.6;
      overflow-x: hidden;
    }

    /* Background Pattern */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      z-index: 0;
      background-image:
        linear-gradient(rgba(29, 78, 216, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 78, 216, 0.03) 1px, transparent 1px);
      background-size: 60px 60px;
      pointer-events: none;
    }

    /* Navigation */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      background: var(--glass);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      padding: 1.2rem 5%;
    }

    .nav-container {
      max-width: 1400px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo {
      font-family: 'Playfair Display', serif;
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--primary);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .logo-icon {
      width: 40px;
      height: 40px;
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
      border-radius: 8px;
      display: grid;
      place-items: center;
      color: white;
      font-size: 1.2rem;
      font-weight: 900;
    }

    .nav-links {
      display: flex;
      gap: 2.5rem;
      list-style: none;
    }

    .nav-links a {
      color: var(--muted);
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 500;
      transition: color 0.3s;
    }

    .nav-links a:hover {
      color: var(--primary);
    }

    /* Hero Section */
    .hero {
      position: relative;
      padding: 10rem 5% 6rem;
      text-align: center;
      overflow: hidden;
    }

    .hero-glow {
      position: absolute;
      width: 800px;
      height: 800px;
      top: -200px;
      left: 50%;
      transform: translateX(-50%);
      background: radial-gradient(circle, rgba(29, 78, 216, 0.15) 0%, transparent 70%);
      filter: blur(100px);
      pointer-events: none;
      z-index: 0;
    }

    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 900px;
      margin: 0 auto;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 1.2rem;
      background: rgba(29, 78, 216, 0.08);
      border: 1px solid rgba(29, 78, 216, 0.2);
      border-radius: 50px;
      font-size: 0.85rem;
      color: var(--primary);
      font-weight: 600;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin-bottom: 2rem;
    }

    .badge-dot {
      width: 8px;
      height: 8px;
      background: var(--primary);
      border-radius: 50%;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.6; transform: scale(1.1); }
    }

    h1 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2.5rem, 6vw, 4.5rem);
      font-weight: 900;
      line-height: 1.1;
      margin-bottom: 1.5rem;
      color: var(--text);
    }

    h1 .highlight {
      color: var(--primary);
      font-style: italic;
    }

    .hero p {
      font-size: 1.15rem;
      color: var(--muted);
      max-width: 650px;
      margin: 0 auto 3rem;
      line-height: 1.8;
    }

    .cta-group {
      display: flex;
      gap: 1.5rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    .btn {
      padding: 1rem 2.5rem;
      border-radius: 10px;
      font-family: 'DM Sans', sans-serif;
      font-size: 1rem;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.3s ease;
      display: inline-block;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
      color: white;
      box-shadow: 0 10px 30px rgba(29, 78, 216, 0.3);
    }

    .btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 15px 40px rgba(29, 78, 216, 0.4);
    }

    .btn-secondary {
      background: white;
      color: var(--primary);
      border: 2px solid var(--primary);
    }

    .btn-secondary:hover {
      background: var(--primary);
      color: white;
    }

    /* --- NEW PROGRAM SELECTOR STYLES --- */
    .program-selector {
      margin-top: 4rem;
      padding-top: 3rem;
      border-top: 1px dashed rgba(29, 78, 216, 0.2);
    }

    .program-selector h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.8rem;
      color: var(--text);
      margin-bottom: 1.2rem;
    }

    .select-wrapper {
      position: relative;
      max-width: 450px;
      margin: 0 auto;
    }

    .program-dropdown {
      width: 100%;
      padding: 1rem 1.5rem;
      border-radius: 12px;
      border: 2px solid rgba(29, 78, 216, 0.2);
      font-family: 'DM Sans', sans-serif;
      font-size: 1.05rem;
      font-weight: 500;
      background: white;
      color: var(--text);
      appearance: none;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    }

    .program-dropdown:focus, .program-dropdown:hover {
      border-color: var(--primary);
      outline: none;
      box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
    }

    .select-arrow {
      position: absolute;
      right: 1.5rem;
      top: 50%;
      transform: translateY(-50%);
      pointer-events: none;
      color: var(--primary);
      font-size: 0.9rem;
    }

    .program-selector .highlight {
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      font-style: italic;
    }

    /* Section Styles */
    section {
      padding: 5rem 5%;
      position: relative;
    }

    .section-header {
      text-align: center;
      max-width: 700px;
      margin: 0 auto 4rem;
    }

    .section-tag {
      color: var(--primary);
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: 0.8rem;
    }

    h2 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 700;
      margin-bottom: 1rem;
      color: var(--text);
    }

    .section-header p {
      font-size: 1.05rem;
      color: var(--muted);
      line-height: 1.7;
    }

    /* About Section */
    .about-grid {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
    }

    .about-card {
      background: white;
      padding: 2.5rem;
      border-radius: 16px;
      border: 1px solid var(--border);
      transition: all 0.3s ease;
    }

    .about-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
      border-color: var(--primary-2);
    }

    .card-icon {
      width: 60px;
      height: 60px;
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
      border-radius: 12px;
      display: grid;
      place-items: center;
      font-size: 1.8rem;
      margin-bottom: 1.5rem;
    }

    .about-card h3 {
      font-size: 1.3rem;
      margin-bottom: 1rem;
      color: var(--text);
    }

    .about-card p {
      color: var(--muted);
      line-height: 1.7;
    }

    /* Demo Videos Section */
    .videos-container {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 2.5rem;
    }

    .video-card {
      background: white;
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid var(--border);
      transition: all 0.3s ease;
    }

    .video-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    }

    .video-wrapper {
      position: relative;
      padding-bottom: 56.25%; /* 16:9 aspect ratio */
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
      overflow: hidden;
    }

    .video-wrapper video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: none;
      object-fit: cover; /* Ensures the video fills the 16:9 box perfectly */
      background-color: #000; /* Prevents awkward white flashes before loading */
    }

    /* .video-placeholder {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, rgba(29, 78, 216, 0.9), rgba(59, 130, 246, 0.9));
      color: white;
      font-size: 3rem;
      cursor: pointer;
    } */

    .video-info {
      padding: 1.8rem;
    }

    .video-info h3 {
      font-size: 1.2rem;
      margin-bottom: 0.8rem;
      color: var(--text);
    }

    .video-info p {
      color: var(--muted);
      font-size: 0.95rem;
      line-height: 1.6;
    }

    /* Features Section */
    .features-grid {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
    }

    .feature-item {
      text-align: center;
      padding: 2rem;
    }

    .feature-icon {
      font-size: 3rem;
      margin-bottom: 1rem;
    }

    .feature-item h3 {
      font-size: 1.15rem;
      margin-bottom: 0.8rem;
      color: var(--text);
    }

    .feature-item p {
      color: var(--muted);
      font-size: 0.95rem;
      line-height: 1.6;
    }

    /* Registration CTA Section */
    .cta-section {
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
      color: white;
      text-align: center;
      padding: 6rem 5%;
      position: relative;
      overflow: hidden;
    }

    .cta-section::before {
      content: '';
      position: absolute;
      inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 30m-2 0a2 2 0 1 0 4 0 2 2 0 1 0-4 0' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
      opacity: 0.3;
    }

    .cta-content {
      position: relative;
      z-index: 1;
      max-width: 800px;
      margin: 0 auto;
    }

    .cta-section h2 {
      color: white;
      margin-bottom: 1.5rem;
    }

    .cta-section p {
      font-size: 1.15rem;
      margin-bottom: 2.5rem;
      opacity: 0.95;
      line-height: 1.7;
    }

    .btn-white {
      background: white;
      color: var(--primary);
      padding: 1.2rem 3rem;
      font-size: 1.1rem;
      font-weight: 700;
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }

    .btn-white:hover {
      transform: translateY(-4px);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    }

    /* Footer */
    footer {
      background: var(--text);
      color: rgba(255, 255, 255, 0.8);
      padding: 3rem 5%;
      text-align: center;
    }

    footer p {
      margin-bottom: 1rem;
    }

    footer a {
      color: var(--primary-2);
      text-decoration: none;
    }

    footer a:hover {
      text-decoration: underline;
    }

    /* Responsive */
    @media (max-width: 768px) {
      nav {
        padding: 1rem 5%;
      }

      .nav-links {
        gap: 1.5rem;
      }

      .hero {
        padding: 8rem 5% 4rem;
      }

      .cta-group {
        flex-direction: column;
        align-items: center;
      }

      .btn {
        width: 100%;
        max-width: 300px;
      }

      section {
        padding: 4rem 5%;
      }
    }
    
/* 1. Grid Background Layout */
.page-container {
  min-height: 100vh;
  padding: 60px 20px;
  background-color: #f7f9fc;
  /* Sublte Blue Grid Pattern */
  background-image: 
    linear-gradient(rgba(0, 82, 204, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 82, 204, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* 2. Header Styles */
.main-title {
  color: #002d72;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.title-underline {
  width: 450px;
  height: 4px;
  background-color: #f39c12; /* Orange line from sample */
  border-radius: 2px;
  margin-bottom: 60px;
}

/* 3. The Grid (4 columns as per sample) */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns */
  gap: 25px;
  max-width: 1200px;
  width: 100%;
}

/* 4. Card Container Size & Style */
.school-card {
  background: #ffffff;
  border-radius: 25px; /* High rounding like sample */
  padding: 15px;
  height: 320px; /* Fixed height to control reveal effect */
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

/* Wrapper that slides up */
.card-movement-wrapper {
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

/* Image matching proportions */
.image-container {
  width: 100%;
  height: 180px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 15px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-label {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin: 10px 0;
  padding: 0 10px;
  height: 40px; /* Ensures text alignment */
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

/* The Secret Button */
.school-btn {
  background-color: #002d72;
  color: white;
  border: none;
  padding: 8px 30px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  margin-top: 15px;
  opacity: 0; /* Initially invisible */
  transform: translateY(10px);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* 5. HOVER EFFECTS */
.school-card:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Push image and name up */
.school-card:hover .card-movement-wrapper {
  transform: translateY(-40px);
}

/* Show Button */
.school-card:hover .school-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive for mobile */
@media (max-width: 1024px) {
  .schools-grid { grid-template-columns: repeat(2, 1fr); }
  .title-underline { width: 80%; }
}

@media (max-width: 600px) {
  .schools-grid { grid-template-columns: 1fr; }
}


/*mobile platform center image floating icons */
/* --- HERO SECTION --- */
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 10px; /* Reduced padding for mobile width */
  background: #ffffff;
  text-align: center;
  width: 100%;
  overflow-x: hidden;
}

/* --- THE HEADLINE: Single Line Fix --- */
.hero-headline {
  display: flex;
  flex-direction: row; 
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  font-family: 'Playfair Display', serif;
  /* Reduced clamp minimum to 1.1rem so it fits on small Androids */
  font-size: clamp(1.1rem, 4vw, 3.2rem); 
  margin: 20px auto 30px;
  white-space: nowrap; 
  width: 100%;
}

.static-part { color: #1a1a1a; font-weight: 900; }
.dynamic-part { color: #4f86f7; font-style: italic; font-weight: 700; }

/* --- THE IMAGE WRAPPER --- */
.hero-visual-wrapper {
  position: relative;
  display: block; 
  margin: 2.5rem auto 0;
  width: 100%;
  max-width: 800px;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(29, 78, 216, 0.25);
  display: block;
}

/* --- THE ICONS --- */
.floating-icon {
  position: absolute;
  width: 90px;
  height: 80px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(38, 35, 241, 0.35);
  border-radius: 18px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  animation: floatIcon 6s ease-in-out infinite;
  z-index: 10;
}

/* Laptop Positions (Original look) */
.icon-1 { top: 10%;    left: -120px; }
.icon-3 { bottom: 10%; left: -120px; animation-delay: 3s; }
.icon-2 { top: 10%;    right: -120px; animation-delay: 1.5s; }
.icon-4 { bottom: 10%; right: -120px; animation-delay: 4.5s; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

/* ─── MOBILE PLATFORM REPAIR ─── */
@media (max-width: 768px) {
  /* 1. Ensure the headline has enough side space for icons */
  .hero-headline {
    font-size: 1.1rem !important; 
    gap: 5px;
    padding: 0 45px; /* Creates space so icons don't touch text */
    position: relative;
    margin-top: 30px;
  }

  /* 2. Position the Rocket (Left) */
  .icon-3 {
    top: 108%;         /* Adjust this number until it is level with text */
    left: 2%;          /* Moves it to the far left edge */
    bottom: auto;      /* Resets desktop value */
    width: 40px;
    height: 38px;
    font-size: 16px;
  }

  /* 3. Position the Lightning (Right) */
  .icon-4 {
    top: 108%;         /* Must match icon-3 to be level */
    right: 2%;         /* Moves it to the far right edge */
    bottom: auto;      /* Resets desktop value */
    width: 40px;
    height: 38px;
    font-size: 16px;
  }

  /* 4. Keep top icons in the sky */
  .icon-1 { top: -20px; left: 10px; }
  .icon-2 { top: -20px; right: 10px; }
}


    /* The Single-Line Headline - Updated for smaller size */
/* --- 1. YOUR HEADLINE CODE (KEEP THIS) --- */
.hero-headline {
  display: flex;
  flex-direction: row; 
  justify-content: center;
  align-items: baseline;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem); 
  margin-top: 20px;
  margin-bottom: 30px;
  white-space: nowrap;
}

.static-part { color: #1a1a1a; font-weight: 900; }
.dynamic-part {
  color: #4f86f7;
  font-style: italic;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(79, 134, 247, 0.3), 0 0 20px rgba(79, 134, 247, 0.1);
}

/* --- 2. YOUR ICON & IMAGE WRAPPER --- */
.hero-visual-wrapper {
  position: relative;
  display: block; 
  margin: 3.5rem auto 0;
  width: 100%;
  max-width: 800px;
}

.floating-icon {
  position: absolute;
  width: 90px;
  height: 80px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(38, 35, 241, 0.35);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  z-index: 10;
  animation: floatIcon 6s ease-in-out infinite;
}

/* Laptop Positions */
.icon-1 { top: 10%;    left: -120px; }
.icon-2 { top: 10%;    right: -120px; animation-delay: 1.5s; }
.icon-3 { bottom: 10%; left: -120px; animation-delay: 3s; }
.icon-4 { bottom: 10%; right: -120px; animation-delay: 4.5s; }

/* --- 3. THE MOBILE FIX (ADD THIS AT THE END) --- */
@media (max-width: 768px) {
  /* Fix 1: Shrink font for mobile so it fits in ONE line */
  .hero-headline {
    font-size: 1.15rem !important; /* Forces it to fit Android screens */
    gap: 6px;
  }

  /* Fix 2: Move icons to 'Free Spaces' (Sky and Corners) */
  .icon-1 { top: -20px;  left: 10px; }   /* Top Left sky */
  .icon-2 { top: -20px;  right: 10px; }  /* Top Right sky */
  .icon-3 { bottom: 10px; left: 10px; }  /* Bottom Left grass */
  .icon-4 { bottom: 10px; right: 10px; } /* Bottom Right grass */

  .floating-icon {
    width: 50px;
    height: 45px;
    font-size: 18px;
  }

  /* Fix 3: Stop horizontal scrolling */
  .hero-container {
    overflow-x: hidden;
    padding: 30px 10px;
  }
}

/* Button & Animation code remains exactly as you shared */
.button-group { display: flex; justify-content: center; gap: 15px; }
.btn-solid { background: #3b82f6; color: white; border: none; padding: 12px 28px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.btn-outline { background: transparent; color: #003399; border: 2px solid #003399; padding: 12px 28px; border-radius: 10px; font-weight: 700; cursor: pointer; }
#dynamic-word.fade-out { opacity: 0; transform: translateY(-8px); }
#dynamic-word.fade-in { opacity: 1; transform: translateY(0px); }
@keyframes floatIcon { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }


 /* --- INTEGRATED CSS FOR THE PROCESS GRID --- */
    :root {
      --sastra-blue: #1d4ed8;
      --sastra-glow: #3b82f6;
      --white: #ffffff;
    }

    body {
      background-color: var(--white);
      background-image: radial-gradient(rgba(29, 78, 216, 0.05) 1px, transparent 1px);
      background-size: 30px 30px;
      margin: 0;
      font-family: 'DM Sans', sans-serif;
    }

    /* --- Process Section Container --- */
    #admission-process {
      padding: 80px 20px;
      max-width: 1100px;
      margin: 0 auto;
      position: relative;
    }

    .process-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 60px 40px;
      position: relative;
      margin-top: 50px;
    }

    /* --- Central Blue Flag --- */
    .central-flag {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 60px;
      height: 60px;
      background: var(--sastra-blue);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
      box-shadow: 0 0 20px rgba(29, 78, 216, 0.4);
      font-size: 24px;
    }

    /* --- Card & Orb Logic --- */
    .process-card {
      position: relative;
      background: var(--white);
      border: 2px solid #e2e8f0; /* Soft border initially */
      padding: 40px;
      transition: all 0.4s ease;
      cursor: pointer;
    }

    /* Unique Corners (Ninja Style) */
    .card-1 { border-radius: 0 50px 50px 50px; }
    .card-2 { border-radius: 50px 0 50px 50px; }
    .card-3 { border-radius: 50px 50px 0 50px; }
    .card-4 { border-radius: 50px 50px 50px 0; }

    .corner-orb {
      position: absolute;
      width: 60px;
      height: 60px;
      background: var(--sastra-blue);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      border: 4px solid var(--white);
      z-index: 5;
      transition: transform 0.3s ease;
    }

    /* Orb Positions */
    .card-1 .corner-orb { top: -30px; left: -30px; }
    .card-2 .corner-orb { top: -30px; right: -30px; }
    .card-3 .corner-orb { bottom: -30px; left: -30px; }
    .card-4 .corner-orb { bottom: -30px; right: -30px; }

    /* --- Hover Animations --- */
    .process-card:hover {
      border-color: var(--sastra-blue);
      box-shadow: 0 10px 30px rgba(29, 78, 216, 0.1);
    }

    /* Header changes to Blue with Glow on Hover */
    .process-card:hover h3 {
      color: var(--sastra-blue);
      text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }

    /* Shake/Rotate Animation for Orb Icons */
    @keyframes shakeRotate {
      0% { transform: rotate(0deg) scale(1); }
      25% { transform: rotate(10deg) scale(1.1); }
      50% { transform: rotate(-10deg) scale(1.1); }
      75% { transform: rotate(10deg) scale(1.1); }
      100% { transform: rotate(0deg) scale(1); }
    }

    .process-card:hover .corner-orb {
      animation: shakeRotate 0.5s ease-in-out;
    }

    .process-card h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.5rem;
      margin: 15px 0;
      transition: all 0.3s ease;
    }

    .process-card p {
      color: #64748b;
      font-size: 0.95rem;
      line-height: 1.6;
    }

    /* Keeping your existing Hero/badge styles */
    .hero { text-align: center; padding: 100px 20px; position: relative; overflow: hidden; }
    .highlight { color: var(--sastra-blue); }
    .hero-headline { font-size: 3rem; font-family: 'Playfair Display', serif; }
    #dynamic-word { color: var(--sastra-blue); font-style: italic; }
    .hero-image { max-width: 800px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); margin-top: 30px; }

    /* Section Headers */
    .section-header { text-align: center; margin-bottom: 50px; }
    .section-tag { color: var(--sastra-blue); font-weight: bold; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }


    /*line space reduce*?
    /* Reduce the gap between ALL sections */
section {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

/* Specifically reduce the gap after the Campus Selector (Hero section) */
.hero {
  padding-bottom: 20px !important;
}

/* Reduce the space above and below section titles */
.section-header {
  margin-bottom: 20px !important; /* Was 50px */
}

/* Reduce the gap at the top of the Admission Process Grid */
#admission-process {
  padding-top: 20px !important;
}

.process-grid {
  margin-top: 20px !important; /* Was 50px */
}

/* Trim bottom margin of the campus selector wrapper */
.program-selector {
  margin-bottom: 0 !important;
}




/* --- GLOBAL STABILIZERS --- */
* {
    -webkit-tap-highlight-color: transparent; /* Fixes blue box on mobile tap */
    box-sizing: border-box;
}

/* Fix for Safari/Older Browsers Backdrop Filter */
nav {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

/* --- PERFORMANCE OPTIMIZATION --- */
/* Use 'will-change' to tell the browser to prepare for animations (prevents lag) */
.floating-icon, .corner-orb, .badge-dot {
    will-change: transform, opacity;
}

/* --- ACCESSIBILITY & SCALING --- */
img {
    max-width: 100%;
    height: auto; /* Prevents image stretching */
}



/* --- MOBILE RESPONSIVE FIX --- */
@media (max-width: 768px) {
    /* 1. Switch from 2 columns to 1 column */
    .process-grid {
        grid-template-columns: 1fr; 
        gap: 40px; /* Reduce gap for smaller screens */
    }

    /* 2. Hide the Central Flag on mobile */
    /* It usually overlaps text in a single column layout */
    .central-flag {
        display: none;
    }

    /* 3. Fix the Orbs (Icons) */
    /* On mobile, we move them inside the card so they don't bleed off-screen */
    .corner-orb {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    /* Adjust Orb positions to sit INSIDE the card padding */
    .card-1 .corner-orb { top: 10px; left: 10px; }
    .card-2 .corner-orb { top: 10px; right: 10px; }
    .card-3 .corner-orb { bottom: 10px; left: 10px; }
    .card-4 .corner-orb { bottom: 10px; right: 10px; }

    /* 4. Adjust Card Padding */
    .process-card {
        padding: 30px 20px; /* Slimmer padding for mobile */
        text-align: center; /* Better readability on small screens */
    }

    /* 5. Hero Font Scaling */
    .hero-headline {
        font-size: 2rem; /* Shrink the large text for mobile */
    }
}

.program-dropdown {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none; /* Uniform dropdown look across all browsers */
}


@media (max-width: 1024px) {
  .schools-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    padding: 10px;
  }
}

@media (max-width: 600px) {
  .schools-grid { 
    grid-template-columns: 1fr !important; 
  }
  .school-card {
    height: auto; /* Let cards grow on small screens */
    padding-bottom: 30px;
  }
  .school-card:hover .card-movement-wrapper {
    transform: none; /* Disable hover movement on touch screens to avoid confusion */
  }
  .school-btn {
    opacity: 1; /* Always show button on mobile since there is no 'hover' */
    transform: translateY(0);
  }
}


/* 1. Grid Background Layout */
.page-container {
  min-height: 100vh;
  padding: 80px 20px;
  background-color: #f7f9fc;
  background-image: 
    linear-gradient(rgba(0, 82, 204, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 82, 204, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

/* 2. Header Styles */
/* --- FIXED HEADER (No more horizontal scrolling) --- */
.main-title {
  color: #002d72;
  /* clamp allows the font to shrink naturally on small screens */
  font-size: clamp(24px, 8vw, 32px); 
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
}

.title-underline {
  /* This was 450px, which is wider than most phones. 80% fixes it. */
  width: 80%; 
  max-width: 450px;
  height: 4px;
  background-color: #f39c12; 
  border-radius: 10px;
  /* margin: 0 auto centers the line perfectly */
  margin: 0 auto 40px; 
}

/* 3. The Grid - WIDENED */
.schools-grid {
  display: grid;
  /* Use auto-fit and minmax to ensure boxes stay wide and balanced */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 40px; /* Increased gap for better breathing room */
  max-width: 1400px; /* Increased from 1200px to fix the 'small boxes' look */
  width: 95%; 
  margin: 0 auto;
}

/* 4. Card Container Size & Style */
/* 4. Card Container - IMPROVED PROPORTIONS */
.school-card {
  background: #ffffff;
  border-radius: 20px; 
  padding: 25px; 
  min-height: 380px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  overflow: hidden;
  cursor: pointer;
  /* Added border-color to transition for the glow effect */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid transparent;
}

.card-movement-wrapper {
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
  text-align: center;
}

.image-container {
  width: 100%;
  height: 200px; 
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 25px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.school-label {
  font-size: 14px;
  font-weight: 800; 
  color: #1a2a40;
  margin: 0;
  padding: 0 5px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- BUTTON LAYOUT & BASE STYLE --- */
.card-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
  margin-top: 25px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.3s ease;
}

.school-btn {
  flex: 1;
  padding: 10px 5px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  text-transform: uppercase;
  border: none;
  /* The secret to the smooth zoom and glow */
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* SoC Button Colors */
.school-btn:first-child {
  background-color: #002d72;
  color: white;
}

/* Faculty Button Colors */
.faculty-btn {
  background-color: #f8f9fa;
  color: #002d72;
  border: 1px solid #002d72 !important;
}

/* --- THE ZOOM & GLOW EFFECTS (TRIGGER ON CLICK/HOVER) --- */

/* --- THE ZOOM & BLUE GLOW EFFECTS (SOC & FACULTY) --- */

/* SoC Button (Left) - Deep Blue Glow */
.school-btn:first-child:hover,
.school-btn:first-child:active {
  transform: scale(1.15); 
  background-color: #003db3; /* Slightly lighter blue on hover */
  box-shadow: 0 0 20px rgba(0, 82, 204, 0.7); /* Electric Blue Glow */
  z-index: 2;
}

/* Faculty Button (Right) - Matching Blue Glow */
.faculty-btn:hover,
.faculty-btn:active {
  transform: scale(1.15);
  background-color: #002d72; /* Fills with blue on hover */
  color: white !important;   /* Text turns white for contrast */
  border-color: #002d72 !important;
  box-shadow: 0 0 20px rgba(0, 82, 204, 0.7); /* Electric Blue Glow */
  z-index: 2;
}

/* 5. HOVER EFFECTS FOR CARD */
.school-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transform: translateY(-10px);
}

/* Pull the content up more to make room for 2 buttons */
.school-card:hover .card-movement-wrapper {
  transform: translateY(-70px); 
}

.school-card:hover .card-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  /* Hide the action buttons by default */
  .card-actions {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px);
    transition: all 0.4s ease;
  }

  /* Keep the card at a normal size initially */
  .school-card {
    min-height: 320px !important;
    height: auto !important;
  }

  /* When the card is 'Active' (Tapped), show everything */
  .school-card.active {
    min-height: 380px !important;
  }

  .school-card.active .card-movement-wrapper {
    transform: translateY(-60px) !important;
  }

  .school-card.active .card-actions {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
}

/*programs*/
/* Styling for the Programmes Section */
.programmes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1400px;
  width: 95%;
  margin-bottom: 100px;
}

.prog-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  /* Soft initial border and shadow */
  border: 1px solid rgba(0, 45, 114, 0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  
  /* Smooth transition for zoom and glow */
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.4s ease, 
              border-color 0.4s ease;
  cursor: pointer;
  overflow: hidden;
}

/* --- THE ZOOM & GLOW EFFECT --- */
.prog-card:hover {
  /* 1. Zoom and Lift */
  transform: translateY(-12px) scale(1.03);
  
  /* 2. Brand Blue Glow (Layered for depth) */
  box-shadow: 0 20px 40px rgba(0, 45, 114, 0.12), 
              0 0 25px rgba(0, 45, 114, 0.08);
  
  /* 3. Subtle border highlight */
  border-color: rgba(0, 45, 114, 0.15);
}

/* --- CLICK FEEDBACK --- */
.prog-card:active {
  transform: translateY(-5px) scale(0.98); /* Slight press down */
  box-shadow: 0 5px 15px rgba(0, 45, 114, 0.2);
  transition: transform 0.1s ease;
}

.prog-number {
  font-size: 14px;
  font-weight: 800;
  color: #f39c12;
  display: block;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

/* Move the number up slightly on hover */
.prog-card:hover .prog-number {
  transform: translateY(-3px);
}

.prog-card h3 {
  color: #002d72;
  font-size: 22px; /* Slightly larger like the sample */
  margin-bottom: 15px;
  font-weight: 800;
}

.prog-card p {
  color: #555;
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Button always visible here, but scales on hover */
.prog-card .school-btn {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.prog-card:hover .school-btn {
  background-color: #003db3; /* Slightly lighter blue on hover */
  box-shadow: 0 5px 15px rgba(0, 61, 179, 0.3);
}

/*b.tech courses*/
/* Modal Overlay */
.program-modal {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 45, 114, 0.9); /* Dark Blue Theme Overlay */
    backdrop-filter: blur(8px); /* Blurs the background */
}

/* Central Content Box */
.modal-content {
    background: url('sastranirf2025web.jpg') no-repeat center center;
    background-size: cover;
    margin: 5% auto;
    padding: 40px;
    width: 80%;
    max-width: 1100px;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    color: white;
}

/* Overlay to make text readable on background image */
.modal-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.92); /* Soft white layer */
    border-radius: 30px;
    z-index: 1;
}

.modal-title, .modal-underline, .btech-grid, .close-btn {
    position: relative;
    z-index: 2; /* Keeps content above the white overlay */
}

.modal-title {
    color: #002d72;
    text-align: center;
    font-weight: 800;
}

.modal-underline {
    width: 100px;
    height: 4px;
    background: #f39c12;
    margin: 10px auto 40px;
}

/* The List Grid */
.btech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

/* Individual Program Buttons */
.prog-item {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 15px 20px;
    border-radius: 12px;
    color: #333;
    font-weight: 600;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
}

.prog-item:hover {
    background: #002d72;
    color: white;
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 45, 114, 0.2);
}

.close-btn {
    float: right;
    font-size: 30px;
    font-weight: bold;
    color: #002d72;
    cursor: pointer;
}


/* --- ANIMATED COURSE CARDS display courses  --- */

.btech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    overflow-y: auto;
    padding: 15px;
    max-height: 70vh;
}

.course-card {
    position: relative;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: #002d72;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.course-image {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7; /* Darken image to make text pop */
}

/* Slide-up Info Panel */
.course-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 45, 114, 0.95));
    transform: translateY(40px); /* Hide button initially */
    transition: transform 0.3s ease;
}

.course-card:hover .course-info {
    transform: translateY(0); /* Slide up on hover */
}

.course-card:hover .course-image {
    transform: scale(1.1); /* Zoom image on hover */
}

.course-info h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.apply-btn {
    background: #f39c12;
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

/* --- MOBILE & CROSS-PLATFORM FIXES --- */

@media (max-width: 768px) {
    .btech-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
    }
    
    .course-info {
        transform: translateY(0); /* Always visible on mobile */
    }
    
    .modal-content {
        width: 95%;
        padding: 20px 10px;
    }
}

