:root {
  --primary-blue: #081f3d;
  --accent-red: #c62828;
  --accent-blue: #1e88e5;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #2d3436;
  --text-primary: #1a1a1a;
  --text-secondary: #636e72;
  --bg-primary: #ffffff;
  --bg-secondary: linear-gradient(135deg, #f1f4f8, #ffffff);
  --border-color: rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
  --card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 255, 0.9));
  --cta-button-shadow: rgba(198, 40, 40, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.2);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Breakpoint variables for responsive design */
  --breakpoint-mobile: 480px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
  --breakpoint-wide: 1440px;
}

/* ========================================
   FADE-IN ANIMATION SYSTEM
   ======================================== */

/* Keyframe animation for fade-in effect */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Initial state for fade-in elements */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
}

/* Visible state triggered by Intersection Observer */
.fade-in.visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  /* Improved font rendering for Android */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Enhanced background with particle container */
.bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 43, 87, 0.05) 0%, rgba(216, 27, 33, 0.05) 100%);
}

.bg-decoration::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 15% 50%, rgba(10, 43, 87, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(216, 27, 33, 0.1) 0%, transparent 50%);
}

/* Particle animation container */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(10, 43, 87, 0.1);
  border-radius: 50%;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(odd) {
  background: rgba(216, 27, 33, 0.1);
  animation-duration: 8s;
  animation-delay: -2s;
}

.particle:nth-child(3n) {
  background: rgba(41, 121, 255, 0.1);
  animation-duration: 10s;
  animation-delay: -4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

/* Glassmorphism Navbar */
.navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  /* Blur effect */
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

@supports not (backdrop-filter: blur(12px)) {
  .navbar {
    background: rgba(255, 255, 255, 0.98);
  }
}

/* Navbar spacer to prevent content hiding */
.navbar-spacer {
  height: 65px;
  width: 100%;
  /* Ensure content doesn't hide behind navbar */
  position: relative;
  z-index: 1;
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  /* Reduce padding to prevent excessive right spacing */
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
}

.nav-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.logo:hover .nav-logo {
  transform: rotate(15deg);
}

.logo .upsc {
  color: var(--accent-red);
  font-weight: 900;
  font-family: "Times New Roman", serif;
}

.logo .academia {
  color: var(--primary-blue);
  font-style: italic;
  font-family: "Kalam", cursive;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease-in-out;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-red);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-red);
  transition: width 0.3s ease-in-out;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-actions {
  margin-left: 0;
  flex-shrink: 0;
}

.enroll-btn {
  background: var(--accent-red);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 15px rgba(216, 27, 33, 0.2);
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  min-width: 120px;
}

.enroll-btn:hover {
  background: #a10f14;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(216, 27, 33, 0.3);
}

.login-signup-btn {
  background: transparent;
  color: var(--primary-blue);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  border: 2px solid var(--primary-blue);
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  min-width: 120px;
}

.login-signup-btn:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(10, 43, 87, 0.2);
}


/* Added mobile menu button styles for Android compatibility */

/* Hamburger Menu Button Animation */
.mobile-menu-btn {
  display: none;
  /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  /* Touch target fix */
  z-index: 1002;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.menu-line {
  width: 100%;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

/* Animation State: Active/Open */
.mobile-menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background: var(--accent-red);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
  /* Fade out middle line */
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background: var(--accent-red);
}

/* Mobile Dropdown Menu Styling */
@media (max-width: 768px) {

  /* Show Mobile Button */
  .mobile-menu-btn {
    display: flex;
  }

  /* Hide Desktop Items */
  .desktop-only {
    display: none !important;
  }

  /* Mobile Dropdown Menu Styling */
  .nav-menu {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 70px;
    /* Below navbar */
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    gap: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* Open State for Menu */
  .nav-menu.active {
    display: flex;
    /* Show when active */
    animation: slideDown 0.3s ease forwards;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-menu a {
    font-size: 1.1rem;
    padding: 10px 0;
    display: block;
    width: 100%;
    text-align: center;
  }
}

.hero {
  /* Use CSS variable-based viewport height for Android address bar behavior */
  height: calc(var(--vh, 1vh) * 100);
  /* Fallbacks */
  min-height: calc(100dvh - 65px);
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, rgba(10, 43, 87, 0.05) 0%, rgba(216, 27, 33, 0.05) 100%);
  /* Ensure hero doesn't overlap with navbar */
  margin-top: 0;
  /* Fix content visibility during scroll */
  z-index: 1;
  overflow: visible;
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 8vw, 4rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.hero-content .upsc {
  color: var(--accent-red);
  font-family: "Times New Roman", serif;
}

.hero-content .academia {
  color: var(--primary-blue);
  font-family: "Kalam", cursive;
  font-style: italic;
}

/* Hero logo positioned above heading */
/* Inline hero logo next to title */
.hero-logo {
  width: clamp(32px, 10vw, 52px);
  height: clamp(32px, 10vw, 52px);
  object-fit: contain;
  vertical-align: middle;
  margin-left: 12px;
}

.hero-content .tagline {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(45deg, var(--accent-red), #e53935);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 8px 25px var(--cta-button-shadow);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 35px rgba(198, 40, 40, 0.3);
}

/* Section improvements */
.section {
  padding: 6rem 0;
  position: relative;
  overflow: visible;
  z-index: 1;
}

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

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, var(--accent-red), var(--primary-blue));
  border-radius: 2px;
}

/* About Section */
.about-intro {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 4rem;
  color: var(--text-secondary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.director-showcase {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.director-image-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.director-image {
  width: 300px;
  height: 300px;
  border-radius: 20px;
  object-fit: cover;
  border: none;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.director-image:hover {
  transform: scale(1.05);
}

.director-details h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.director-details .designation {
  font-size: 1.2rem;
  color: var(--accent-red);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: block;
}

.director-details p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--card-gradient);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(5px);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(198, 40, 40, 0.2);
}

.feature-card i {
  font-size: 3rem;
  color: var(--accent-red);
  margin-bottom: 1.5rem;
}

.feature-card h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Services Section */
.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(45deg, var(--accent-red), var(--primary-blue));
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-card i {
  font-size: 3.5rem;
  color: var(--accent-red);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

/* Facilities Section */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.facility-card {
  background: var(--card-gradient);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.facility-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px var(--shadow-hover);
}

.facility-card i {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.facility-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.facility-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Resources Section */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.resource-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 40px var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px var(--shadow-hover);
}

.resource-card .app-logo {
  margin-bottom: 1.5rem;
}

.resource-card .app-logo img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resource-card i {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.resource-card i.fab.fa-youtube {
  color: #ff0000;
}

.resource-card i.fab.fa-telegram {
  color: #0088cc;
}

.resource-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.resource-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.resource-link {
  display: inline-block;
  background: var(--accent-red);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(216, 27, 33, 0.2);
}

/* ========================================
   QUANTUM SPINNER ANIMATION
   ======================================== */
.quantum-spinner {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  perspective: 800px;
  margin: 0 auto;
}

.quantum-spinner .inner {
  position: absolute;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.quantum-spinner .inner.one {
  left: 0%;
  top: 0%;
  animation: rotate-one 1s linear infinite;
  border-bottom: 3px solid var(--accent-red);
}

.quantum-spinner .inner.two {
  right: 0%;
  top: 0%;
  animation: rotate-two 1s linear infinite;
  border-right: 3px solid var(--accent-blue);
}

.quantum-spinner .inner.three {
  right: 0%;
  bottom: 0%;
  animation: rotate-three 1s linear infinite;
  border-top: 3px solid var(--primary-blue);
}

@keyframes rotate-one {
  0% {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
  }

  100% {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
  }
}

@keyframes rotate-two {
  0% {
    transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
  }

  100% {
    transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
  }
}

@keyframes rotate-three {
  0% {
    transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
  }

  100% {
    transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
  }
}

/* Button Loader Variant (Small) */
.btn-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.resource-link:hover {
  background: #a10f14;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 27, 33, 0.3);
}

/* Contact Section */
.contact {
  background: var(--bg-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  width: 100%;
  align-items: start;
  /* Fix content positioning and visibility */
  position: relative;
  z-index: 2;
  overflow: visible;
}

.contact-details {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow);
  /* Fix logo positioning in contact section */
  position: relative;
  z-index: 2;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: 12px;
  transition: all 0.3s ease;
  word-wrap: break-word;
}

.contact-item:hover {
  transform: translateY(-2px);
  background: var(--white);
  box-shadow: 0 8px 25px var(--shadow);
}

.contact-item i {
  font-size: 1.4rem;
  color: var(--accent-red);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Global phone/email/address hover behavior across site */
a[href^="tel:"],
a[href^="mailto:"],
.contact-item a,
.footer-section.contact-info a {
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
}

a[href^="tel:"]:hover,
a[href^="mailto:"]:hover,
.contact-item a:hover,
.footer-section.contact-info a:hover {
  color: var(--accent-red);
  transform: translateX(5px);
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px var(--shadow);
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--glass-border);
}

/* AI Support Card Redesign */
.ai-support-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, rgba(8, 31, 61, 0.02) 0%, rgba(198, 40, 40, 0.02) 100%);
  border-radius: 20px;
  border: 2px dashed rgba(8, 31, 61, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.ai-support-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-8px);
  background: var(--white);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.ai-icon-wrapper {
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-blue);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  position: relative;
}

.ai-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary-blue);
  opacity: 0.2;
  animation: aiPulse 2.5s infinite;
}

@keyframes aiPulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.ai-support-card h3 {
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.ai-support-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Premium Download Button Animation */
.btn-download-premium {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-download-premium i {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-download-premium:hover i {
  transform: translateY(3px);
}

.btn-download-premium.loading i {
  animation: downloadPulse 1s infinite alternate;
}

@keyframes downloadPulse {
  from {
    transform: scale(1);
    opacity: 1;
  }

  to {
    transform: scale(1.3);
    opacity: 0.5;
  }
}

.mobile-friendly-chatbot .chatbot-container {
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.contact-form-wrapper iframe {
  width: 100%;
  height: 500px;
  border-radius: 15px;
  max-width: 100%;
}

/* Enhanced map container with loading states and fallback */
.map-container {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: var(--bg-secondary);
}

.map-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  z-index: 1;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(10, 43, 87, 0.1);
  border-left: 4px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.map-loading p {
  color: var(--text-secondary);
  font-weight: 500;
}

.map-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--white));
  z-index: 2;
}

.fallback-content {
  text-align: center;
  padding: 2rem;
}

.fallback-content i {
  font-size: 3rem;
  color: var(--accent-red);
  margin-bottom: 1rem;
}

.fallback-content h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.fallback-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.map-link {
  display: inline-block;
  background: var(--accent-red);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.map-link:hover {
  background: #c53030;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

#google-map {
  width: 100%;
  height: 100%;
  border-radius: 15px;
}

/* Footer Redesign */
.footer {
  background: #082245;
  color: rgba(255, 255, 255, 0.8);
  padding: 2.25rem 0 1rem;
  border-top: 4px solid var(--accent-red);
}

.footer-wave {
  position: relative;
  width: 100%;
  height: 60px;
  overflow: hidden;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

.footer .container {
  max-width: 1200px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 0.4rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: var(--accent-red);
}

.footer-section.about .footer-logo {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-transform: none;
  letter-spacing: 0;
}

.footer-section.about .footer-logo::after {
  display: none;
}

.footer-section .upsc {
  color: var(--accent-red);
  font-family: "Times New Roman", serif;
}

.footer-section .academia {
  color: var(--white);
  font-family: "Kalam", cursive;
  font-style: italic;
}

.footer-section p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.footer-section ul li a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.footer-section.links ul li a {
  padding-left: 18px;
}

.footer-section.links ul li a::before {
  content: '›';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-red);
  font-size: 1rem;
  line-height: 1;
}

.footer-section.links ul li a:hover::before {
  transform: translateY(-50%) translateX(5px);
}

/* Prevent double icons if manual <i> or <svg> were added inside links */
.footer-section.links ul li a i,
.footer-section.links ul li a svg {
  display: none !important;
}

/* Unify hover behavior for contact links (phone, email, address) */
.footer-section.contact-info a {
  word-break: break-word;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.footer-section.contact-info a:hover {
  color: var(--accent-red);
  transform: translateX(5px);
}

.footer-section .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* --- Find and replace these styles in your style.css file --- */

/* Social Links - Base Style */
/* Consolidated below */

/* ================================================= */
/*  Social Links - Replace this entire block in CSS  */
/* ================================================= */

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.1rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-links a i {
  position: relative;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Hover Animation - Applied to all icons */
.social-links a:hover {
  transform: translateY(-6px) scale(1.06);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25));
}

.social-links a:hover i {
  transform: rotate(8deg) scale(1.12);
}

.social-links a:hover svg {
  transform: rotate(8deg) scale(1.12);
}

/* --- Platform-Specific Hover Colors --- */

/* Facebook */
.social-links a[href*="facebook.com"]:hover {
  background: radial-gradient(circle, #1877F2 0%, #3b5998 100%);
  box-shadow: 0 10px 20px rgba(59, 89, 152, 0.4);
}

/* YouTube */
.social-links a[href*="youtube.com"]:hover {
  background: radial-gradient(circle, #FF0000 0%, #c4302b 100%);
  box-shadow: 0 10px 20px rgba(255, 0, 0, 0.4);
}

/* Telegram */
.social-links a[href*="t.me"]:hover {
  background: radial-gradient(circle, #2AABEE 0%, #1e96c8 100%);
  box-shadow: 0 10px 20px rgba(0, 136, 204, 0.4);
}

/* WhatsApp */
.social-links a[href*="whatsapp.com"]:hover {
  background: radial-gradient(circle, #25D366 0%, #128C7E 100%);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Ensure only a single divider above footer-bottom even if manual styles exist */
.footer .footer-content {
  border-bottom: 0 !important;
}

.footer hr {
  display: none;
}

.footer-bottom a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover {
  text-decoration: underline;
  color: var(--accent-red);
}

/* Responsive styles for the footer */
@media (max-width: 768px) {
  .footer-content {
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-section ul {
    text-align: left;
  }

  .social-links {
    justify-content: center;
  }
}

/* Enrollment Form Styles */
.page-container {
  min-height: 100vh;
  padding-top: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
}

.enrollment-form-container {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px var(--shadow);
  max-width: 600px;
  width: 100%;
  margin: 2rem;
}

.enrollment-form-container h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(216, 27, 33, 0.1);
}

.submit-btn {
  width: 100%;
  background: linear-gradient(45deg, var(--accent-red), #ff474c);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px var(--cta-button-shadow);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(216, 27, 33, 0.4);
}

/* Utility and Responsive Styles */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Added mobile-only and desktop-only utility classes */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

/* Enhanced chatbot placeholder for better mobile performance */
.chatbot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.chatbot-icon {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.load-chatbot-btn {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.load-chatbot-btn:hover {
  background: var(--accent-red);
  transform: translateY(-2px);
}

/* Enhanced mobile responsiveness for Android */
@media (max-width: 1024px) {
  .director-showcase {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .director-image-container {
    margin: 0 auto;
  }

  .nav-menu {
    position: fixed;
    top: 65px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 65px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
    transition: left 0.3s ease;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* Ensure menu doesn't hide content */
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  /* Ensure mobile menu button is always visible on mobile */
  .mobile-menu-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: var(--light-gray);
    /* Better contrast */
    color: var(--primary-blue);
  }

  .nav-actions {
    display: flex !important;
    align-items: center;
    z-index: 1002;
  }
}

@media (max-width: 768px) {

  /* Improved mobile navbar */
  .navbar {
    padding: 0.5rem 0;
    height: 65px;
  }

  .navbar-spacer {
    height: 65px;
  }

  /* Show mobile-only elements and hide desktop-only */
  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  .nav-menu {
    display: none;
  }

  /* Ensure mobile menu button is visible on mobile */
  .mobile-menu-btn {
    display: flex !important;
  }

  .nav-actions {
    display: flex !important;
  }

  .nav-actions .enroll-btn {
    display: none;
  }

  /* Adjust nav-container for mobile to prevent overflow */
  .nav-container {
    padding: 0 1rem;
    gap: 0.5rem;
    /* Ensure proper flex layout */
    justify-content: space-between;
    align-items: center;
  }

  /* Ensure logo doesn't take too much space on mobile */
  .logo {
    font-size: 1.4rem;
    flex-shrink: 0;
  }

  .nav-logo {
    width: 32px;
    height: 32px;
  }

  /* Better mobile hero section with Android viewport fix */
  .hero {
    height: calc(var(--vh, 1vh) * 100 - 65px);
    min-height: 440px;
  }

  .hero-content h1 {
    font-size: clamp(1.2rem, 8vw, 2.2rem);
    line-height: 1.1;
  }

  .hero-content .tagline {
    font-size: 1.2rem;
  }

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

  .director-image {
    width: 220px;
    height: 220px;
  }

  .director-details h3 {
    font-size: 2rem;
  }

  .enrollment-form-container {
    padding: 1.5rem;
    margin: 1rem;
  }

  .enrollment-form-container h1 {
    font-size: 1.8rem;
  }

  /* Better grid layouts for mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .facilities-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .resources-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nav-container {
    padding: 0 0.75rem;
  }

  .container {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-logo {
    width: 24px;
    height: 24px;
  }

  /* Improved mobile chatbot sizing */
  .contact-form-wrapper {
    padding: 1.25rem;
    min-height: 350px;
    order: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .mobile-friendly-chatbot .chatbot-container {
    height: 250px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
  }

  .contact-form-wrapper iframe {
    height: 200px;
    width: 100%;
    max-width: 100%;
    border-radius: 15px;
  }

  /* Contact section mobile fixes */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .contact-details {
    padding: 1.25rem;
    order: 2;
  }

  .contact-item {
    padding: 1.25rem;
    margin-bottom: 1rem;
    flex-direction: row;
    align-items: center;
  }

  .contact-item i {
    font-size: 1.25rem;
    margin-top: 1px;
  }

  .contact-item div {
    flex: 1;
  }

  /* Fix Let's Talk button positioning */
  .contact-form-wrapper .cta-button {
    width: 100%;
    margin: 1rem auto 0;
    padding: 0.75rem;
    font-size: 0.9rem;
    box-sizing: border-box;
    text-align: center;
  }

  /* Map container mobile optimization */
  .map-container {
    height: 300px;
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {

  /* Extra small screen optimizations */
  .hero {
    height: calc(var(--vh, 1vh) * 100 - 65px);
    min-height: 380px;
  }

  .hero-logo {
    width: 46px;
    height: 46px;
    margin-left: 10px;
  }

  .hero-content h1 {
    font-size: clamp(1rem, 10vw, 1.5rem);
  }

  .hero-content .tagline {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .director-image {
    width: 180px;
    height: 180px;
  }

  /* Better small screen layouts */
  .about-features,
  .facilities-grid,
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nav-container {
    padding: 0 0.75rem;
  }

  .container {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-logo {
    width: 24px;
    height: 24px;
  }

  /* Improved mobile chatbot sizing for tiny screens */
  .contact-form-wrapper {
    padding: 0.75rem;
    min-height: 320px;
  }

  .mobile-friendly-chatbot .chatbot-container {
    height: 220px;
  }

  .contact-form-wrapper iframe {
    height: 180px;
  }

  .contact-details {
    padding: 0.5rem;
  }

  .contact-item {
    padding: 0.75rem;
    flex-direction: column;
    text-align: left;
  }

  .contact-item i {
    margin-bottom: 0.5rem;
    align-self: flex-start;
  }

  .map-container {
    height: 250px;
  }
}

/* Additional Android-specific optimizations */
@media screen and (max-width: 768px) and (orientation: portrait) {
  .hero {
    height: calc(100vh - 65px);
    height: calc(100dvh - 65px);
  }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
  .hero {
    height: calc(100vh - 65px);
    height: calc(100dvh - 65px);
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}

/* Prevent horizontal scrolling on mobile */
.mobile-optimized {
  overflow-x: hidden;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {

  .nav-link,
  .cta-button,
  .enroll-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hamburger-lines {
    width: 20px;
    height: 16px;
  }

  .hamburger-lines .line {
    height: 2.5px;
  }
}

/* Popup Notification */
#popupMessage {
  position: fixed;
  top: 20px;
  right: -400px;
  z-index: 9999;
  transition: all 0.5s ease-in-out;
}

#popupMessage.show {
  right: 20px;
}

.popup-content {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
}

.popup-content.success {
  border-left: 6px solid #2ecc71;
}

.popup-content.error {
  border-left: 6px solid #e74c3c;
}

.popup-icon {
  font-size: 22px;
}

.popup-content p {
  margin: 0;
  font-size: 15px;
}

/* FAQ Section */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-blue);
  transition: var(--transition);
}

.faq-question:hover {
  background: rgba(198, 40, 40, 0.03);
}

.faq-question i {
  transition: transform 0.4s ease;
  font-size: 0.9rem;
  color: var(--accent-red);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--light-gray);
}

.faq-answer p {
  padding: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  z-index: 1001;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.mobile-sticky-cta.show {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: block;
  }
}

/* Performance Optimizations */
@media (max-width: 768px) {
  .mobile-friendly-chatbot {
    display: none;
    /* Hide heavy Spline robot on mobile */
  }

  .contact-content {
    grid-template-columns: 1fr;
  }
}

.spline-reduced-motion .chatbot-container {
  display: none;
}

/* ========================================
   CONTACT SECTION REDESIGN
   ======================================== */
.contact-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  width: 100%;
}

.contact-details {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  /* Soft premium shadow */
  max-width: 700px;
  width: 100%;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

/* Add a subtle top accent bar */
.contact-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-red));
}

.contact-details h3 {
  font-family: 'Kalam', cursive;
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 2rem;
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  cursor: default;
}

.contact-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.contact-item:hover {
  background: rgba(8, 31, 61, 0.03);
  transform: translateX(5px);
}

.contact-item i {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(8, 31, 61, 0.1), rgba(216, 27, 33, 0.1));
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-item:hover i {
  background: var(--primary-blue);
  color: var(--white);
  transform: rotate(10deg);
}

.contact-item div {
  flex: 1;
}

.contact-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary-blue);
  margin-bottom: 0.3rem;
}

.contact-item a {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--accent-red);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .contact-details {
    padding: 2rem;
    margin: 1rem;
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .contact-item:hover {
    transform: translateY(-5px);
  }
}

/* Switch Toggle Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked+.slider {
  background-color: var(--accent-red);
}

input:focus+.slider {
  box-shadow: 0 0 1px var(--accent-red);
}

input:checked+.slider:before {
  -webkit-transform: translateX(24px);
  -ms-transform: translateX(24px);
  transform: translateX(24px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* ========================================
   ADMITTED STUDENT REGISTRATION PAGE
   ======================================== */

.admitted-reg-container {
  max-width: 700px;
}

.admitted-reg-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Step Indicator */
.admitted-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.step-dot .step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-gray);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  transition: all 0.4s ease;
}

.step-dot.active .step-number {
  background: linear-gradient(45deg, var(--accent-red), #ff474c);
  color: var(--white);
  border-color: var(--accent-red);
  box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
}

.step-dot.completed .step-number {
  background: #28a745;
  color: var(--white);
  border-color: #28a745;
}

.step-dot .step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.step-dot.active .step-label {
  color: var(--accent-red);
}

.step-dot.completed .step-label {
  color: #28a745;
}

.step-connector {
  width: 80px;
  height: 3px;
  background: var(--border-color);
  margin: 0 1rem;
  margin-bottom: 20px;
  border-radius: 2px;
  transition: background 0.4s ease;
}

.step-connector.active {
  background: linear-gradient(90deg, #28a745, var(--accent-red));
}

/* Step sections */
.admitted-step-section {
  animation: fadeInUp 0.5s ease-out;
}

/* Inline messages */
.admitted-inline-message {
  margin-top: 1rem;
  padding: 0;
  font-size: 0.95rem;
  border-radius: 10px;
  display: none;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}

.admitted-inline-message.show {
  display: flex;
  padding: 1rem;
  animation: fadeInUp 0.3s ease-out;
}

.admitted-inline-message.error {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #fed7d7;
}

.admitted-inline-message.success {
  background: #f0fff4;
  color: #276749;
  border: 1px solid #c6f6d5;
}

.admitted-inline-message i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Prefill banner */
.admitted-prefill-banner {
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.08), rgba(30, 136, 229, 0.03));
  border: 1px solid rgba(30, 136, 229, 0.2);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--primary-blue);
}

.admitted-prefill-banner i {
  color: var(--accent-blue);
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* Readonly prefilled fields */
.prefilled-readonly {
  background: var(--light-gray) !important;
  color: var(--text-secondary) !important;
  cursor: not-allowed;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Textarea styling (reusing form-group pattern) */
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
  background: var(--white);
  color: var(--text-primary);
  resize: vertical;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(216, 27, 33, 0.1);
}

/* Two-column form row */
.admitted-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Required star */
.required-star {
  color: var(--accent-red);
  font-weight: 700;
}

/* Label icons */
.form-group label i {
  margin-right: 6px;
  color: var(--accent-red);
  font-size: 0.9rem;
}

/* Success Card */
.admitted-success-card {
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon-wrapper {
  margin-bottom: 1.5rem;
}

.success-icon-wrapper i {
  font-size: 5rem;
  color: #28a745;
  animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.admitted-success-card h2 {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-weight: 800;
}

.admitted-success-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Button spinner for loading state */
.submit-btn.loading {
  opacity: 0.85;
  pointer-events: none;
}

.submit-btn .btn-spinner {
  margin-right: 8px;
  vertical-align: middle;
}

/* Responsive: admitted registration */
@media (max-width: 768px) {
  .admitted-reg-container {
    padding: 1.5rem;
    margin: 1rem;
  }

  .admitted-reg-container h1 {
    font-size: 1.5rem;
  }

  .admitted-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step-connector {
    width: 50px;
  }

  .admitted-prefill-banner {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .admitted-reg-container h1 {
    font-size: 1.25rem;
  }

  .step-dot .step-number {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .step-connector {
    width: 35px;
  }
}