/* ===== RESET & MODERN VARIABLES ===== */
:root {
  --primary: #c62828;
  --primary-dark: #b71c1c;
  --primary-light: #ef5350;
  --primary-soft: rgba(198, 40, 40, 0.08);
  --secondary: #0a2a44;
  --secondary-light: #1e3f5f;
  --secondary-soft: rgba(10, 42, 68, 0.05);
  --accent: #ffb74d;
  --accent-soft: rgba(255, 183, 77, 0.15);
  --gradient-1: linear-gradient(145deg, var(--secondary), #1e4a72);
  --gradient-2: linear-gradient(145deg, var(--primary), #ff7043);
  --gradient-3: linear-gradient(135deg, #0a2a44, #1e3f5f);
  --gradient-gold: linear-gradient(145deg, #ffb74d, #ff9800);
  --text-dark: #1e2f4a;
  --text-medium: #2d4059;
  --text-light: #4a5a72;
  --bg-light: #f8fafd;
  --bg-soft: #f0f5fc;
  --white: #ffffff;
  --shadow-sm: 0 10px 30px rgba(0, 20, 40, 0.08);
  --shadow-md: 0 15px 35px rgba(0, 20, 40, 0.12);
  --shadow-lg: 0 25px 50px rgba(0, 20, 40, 0.18);
  --shadow-primary: 0 15px 30px rgba(198, 40, 40, 0.25);
  --shadow-secondary: 0 15px 30px rgba(10, 42, 68, 0.25);
  --border-radius-sm: 16px;
  --border-radius-md: 24px;
  --border-radius-lg: 40px;
  --border-radius-xl: 60px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

section {
  padding: 100px 0;
  position: relative;
}

/* ===== TYPOGRAPHY & SECTION TITLES ===== */
.section-title {
  font-size: 3.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-title span {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.section-title span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 12px;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 12px;
}

.section-title::after {
  content: '';
  display: block;
  width: 150px;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  margin: 20px auto 0;
  border-radius: 6px;
  animation: widthGrow 1s ease-out;
}

@keyframes widthGrow {
  from { width: 0; opacity: 0; }
  to { width: 150px; opacity: 1; }
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(198, 40, 40, 0.1);
}

.navbar {
  height: 85px;
  display: flex;
  align-items: center;
}

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

.logo h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.5px;
  transition: var(--transition);
}

.logo h2 span {
  color: var(--primary);
  font-weight: 700;
  position: relative;
  padding: 0 5px;
}

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

.nav-menu a {
  text-decoration: none;
  color: var(--text-medium);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  padding: 0.7rem 1.2rem;
  border-radius: 50px;
  position: relative;
  display: inline-block;
  letter-spacing: 0.3px;
}

.nav-menu a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.nav-menu a:not(.btn-primary):hover::after,
.nav-menu a.active:not(.btn-primary)::after {
  width: 60%;
}

.nav-menu a:not(.btn-primary):hover,
.nav-menu a.active:not(.btn-primary) {
  color: var(--primary);
  background: transparent;
}

.nav-menu .btn-primary {
  background: var(--gradient-2);
  color: white;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: var(--shadow-primary);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-left: 0.8rem;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.nav-menu .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.nav-menu .btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 30px rgba(183, 28, 28, 0.3);
  background: linear-gradient(145deg, var(--primary-dark), #e53935);
}

.nav-menu .btn-primary:hover::before {
  left: 100%;
}

.nav-menu .btn-primary i {
  margin-left: 5px;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.nav-menu .btn-primary:hover i {
  transform: translateX(4px);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--secondary);
  margin: 3px 0;
  border-radius: 6px;
  transition: var(--transition);
}

/* ===== POPUP MODAL STYLES ===== */
.offer-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  display: none;
}

.offer-popup {
  background: linear-gradient(135deg, #fff5e6 0%, #fff 100%);
  max-width: 500px;
  width: 90%;
  border-radius: 20px;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 2px solid #ff6b35;
  animation: popupSlideIn 0.5s ease;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes popupSlideIn {
  from {
      transform: translateY(-50px);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0f0f0;
}

.close-popup:hover {
  color: #ff6b35;
  background: #ffe4dc;
}

.gudi-padwa-badge {
  background: #ff6b35;
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 20px;
  letter-spacing: 1px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.offer-title {
  font-size: 32px;
  color: #1a2639;
  margin: 10px 0;
  line-height: 1.2;
}

.offer-title span {
  color: #ff6b35;
  font-weight: bold;
}

.offer-highlight {
  background: #1a2639;
  color: #ffd700;
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  font-size: 24px;
  font-weight: bold;
}

.offer-highlight small {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-top: 5px;
}

.test-dates {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
}

.test-dates h3 {
  color: #1a2639;
  margin-bottom: 10px;
  font-size: 18px;
}

.date-list {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.date-item {
  background: white;
  padding: 10px 20px;
  border-radius: 8px;
  border: 2px solid #ff6b35;
  font-weight: bold;
  color: #1a2639;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.marathi-note {
  font-size: 14px;
  color: #666;
  margin: 10px 0;
  font-style: italic;
}

.qr-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.qr-code {
  width: 100px;
  height: 100px;
  background: #f0f0f0;
  border: 2px dashed #ff6b35;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b35;
  font-size: 12px;
  text-align: center;
  padding: 5px;
}

.qr-code i {
  font-size: 40px;
  margin-bottom: 5px;
}

.qr-text {
  text-align: left;
}

.qr-text p {
  margin: 5px 0;
  font-weight: bold;
  color: #1a2639;
}

.qr-text small {
  color: #ff6b35;
  font-weight: bold;
}

.popup-btn {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin: 20px 0;
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
  display: inline-block;
  text-decoration: none;
}

.popup-btn:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.popup-footer {
  margin-top: 20px;
  font-size: 12px;
  color: #666;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.popup-footer i {
  color: #ff6b35;
  margin: 0 5px;
}

.address-popup {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #555;
  margin-top: 10px;
}

.coupon-text {
  color: #ff6b35;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 5px 0;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 20px 60px;
  background: radial-gradient(circle at 90% 20%, #fff5e6 0%, var(--white) 70%);
  gap: 60px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--secondary);
}

.hero-content h1 span {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-content h1 span::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 14px;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 14px;
}

.subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  background: var(--accent-soft);
  display: inline-block;
  padding: 0.6rem 2.5rem;
  border-radius: var(--border-radius-xl);
  font-weight: 600;
  margin-bottom: 25px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 183, 77, 0.3);
}

.description {
  font-size: 1.2rem;
  color: var(--text-medium);
  margin-bottom: 30px;
  max-width: 600px;
  line-height: 1.7;
}

.offer-banner {
  background: var(--gradient-1);
  color: white;
  padding: 1.3rem 2.5rem;
  border-radius: var(--border-radius-xl);
  margin-bottom: 35px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  animation: float 3s infinite ease-in-out;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn-secondary {
  background: var(--gradient-1);
  color: white;
  border: none;
  padding: 16px 42px;
  border-radius: var(--border-radius-xl);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-secondary:hover::before {
  left: 100%;
}

.btn-secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 40px rgba(10, 42, 68, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  padding: 16px 42px;
  border-radius: var(--border-radius-xl);
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--secondary);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-outline:hover::before {
  left: 0;
}

.btn-outline:hover {
  color: white;
  border-color: var(--secondary);
  transform: translateY(-4px);
}

.batch-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-medium);
  font-size: 1.1rem;
  background: rgba(255, 183, 77, 0.15);
  padding: 0.9rem 2rem;
  border-radius: var(--border-radius-xl);
  width: fit-content;
  border: 1px solid rgba(255, 183, 77, 0.3);
}

.batch-info i {
  color: var(--primary);
  font-size: 1.4rem;
}

.hero-image {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 5px solid white;
  transition: var(--transition-slow);
  animation: subtleZoom 20s infinite alternate;
}

@keyframes subtleZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

/* ===== SCHOLARSHIP BANNER ===== */
.scholarship-banner {
  background: var(--gradient-3);
  color: white;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.scholarship-banner::before {
  content: "🏆🏅🎓📚⚡";
  font-size: 220px;
  position: absolute;
  right: -20px;
  bottom: -60px;
  opacity: 0.1;
  white-space: nowrap;
  transform: rotate(-8deg);
  pointer-events: none;
  animation: slideIcons 20s infinite linear;
}

@keyframes slideIcons {
  0% { transform: rotate(-8deg) translateX(0); }
  50% { transform: rotate(-8deg) translateX(-20px); }
  100% { transform: rotate(-8deg) translateX(0); }
}

.banner-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.banner-content h2 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
  line-height: 1.2;
  animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
  from {
      opacity: 0;
      transform: translateY(-30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.banner-content p {
  font-size: 1.6rem;
  opacity: 0.95;
  margin-bottom: 35px;
  font-weight: 400;
}

.test-details {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 45px;
  flex-wrap: wrap;
  font-size: 1.2rem;
}

.test-details span {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.15);
  padding: 1.1rem 2.8rem;
  border-radius: var(--border-radius-xl);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  animation: fadeInUp 1s ease-out backwards;
}

.test-details span:nth-child(1) { animation-delay: 0.2s; }
.test-details span:nth-child(2) { animation-delay: 0.4s; }
.test-details span:nth-child(3) { animation-delay: 0.6s; }

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

.pulse-animation {
  animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {
  0% {
      box-shadow: 0 10px 25px rgba(198, 40, 40, 0.5), 0 0 0 0 rgba(255, 183, 77, 0.6);
  }
  50% {
      box-shadow: 0 20px 40px rgba(198, 40, 40, 0.7), 0 0 0 18px rgba(255, 183, 77, 0.2);
  }
  100% {
      box-shadow: 0 10px 25px rgba(198, 40, 40, 0.5), 0 0 0 0 rgba(255, 183, 77, 0.1);
  }
}

.btn-primary {
  background: var(--gradient-2);
  color: white;
  border: none;
  padding: 18px 60px;
  border-radius: var(--border-radius-xl);
  font-weight: 800;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 20px 35px rgba(183, 28, 28, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.8s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary i {
  transition: transform 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(145deg, var(--primary-dark), #e53935);
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 30px 45px rgba(183, 28, 28, 0.6);
}

.btn-primary:hover i {
  transform: translateX(12px);
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--white);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-content .lead {
  font-size: 1.8rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.3;
}

.about-content p {
  color: var(--text-medium);
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.about-highlights {
  margin-top: 30px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  background: var(--secondary-soft);
  padding: 1.1rem 1.8rem;
  border-radius: var(--border-radius-xl);
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid rgba(10, 42, 68, 0.05);
}

.highlight-item:hover {
  transform: translateX(10px);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-soft);
}

.highlight-item i {
  color: var(--primary);
  font-size: 1.3rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.stat-box {
  background: var(--white);
  padding: 35px 20px;
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-2);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.stat-box:hover::before {
  transform: scaleX(1);
}

.stat-box:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.stat-box h3 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 800;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-box p {
  color: var(--text-medium);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== COURSES SECTION ===== */
.courses {
  background: var(--bg-soft);
  position: relative;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.course-card {
  background: var(--white);
  border-radius: var(--border-radius-md);
  padding: 35px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
}

.course-card.featured {
  border: 2px solid var(--primary);
  position: relative;
}

.course-badge {
  position: absolute;
  top: -12px;
  right: 30px;
  background: var(--gradient-2);
  color: white;
  padding: 8px 22px;
  border-radius: var(--border-radius-xl);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-primary);
  z-index: 2;
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% { box-shadow: 0 5px 15px rgba(198, 40, 40, 0.4); }
  50% { box-shadow: 0 8px 25px rgba(198, 40, 40, 0.7); }
  100% { box-shadow: 0 5px 15px rgba(198, 40, 40, 0.4); }
}

.course-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-1);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: var(--transition);
  box-shadow: var(--shadow-secondary);
}

.course-card:hover .course-icon {
  transform: scale(1.1) rotate(5deg);
}

.course-icon i {
  font-size: 2.5rem;
  color: white;
}

.course-card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--secondary);
  font-weight: 700;
}

.course-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-weight: 500;
}

.course-card ul {
  list-style: none;
  margin-bottom: 25px;
}

.course-card ul li {
  padding: 8px 0;
  color: var(--text-medium);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.course-card ul li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  font-size: 1.2rem;
}

.btn-course {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 30px;
  border-radius: var(--border-radius-xl);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-course::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-course:hover::before {
  left: 0;
}

.btn-course:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary);
}

/* ===== FACULTY SECTION ===== */
.faculty {
  background: var(--white);
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 35px;
  margin-bottom: 50px;
}

.faculty-card {
  background: var(--white);
  padding: 40px 25px;
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.faculty-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-2);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: right;
}

.faculty-card:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.faculty-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(145deg, var(--white), #fafcff);
}

.faculty-card i {
  font-size: 3.5rem;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  transition: var(--transition);
}

.faculty-card:hover i {
  transform: scale(1.2);
}

.faculty-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--secondary);
  font-weight: 700;
}

.faculty-card p {
  color: var(--text-light);
  line-height: 1.7;
}

.faculty-note {
  background: var(--gradient-1);
  color: white;
  padding: 40px 50px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.faculty-note::before {
  content: '“';
  font-size: 200px;
  position: absolute;
  left: 20px;
  top: -30px;
  opacity: 0.2;
  font-family: serif;
}

.faculty-note i {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--accent);
  position: relative;
  z-index: 2;
}

.faculty-note p {
  font-size: 1.3rem;
  line-height: 1.8;
  position: relative;
  z-index: 2;
  font-weight: 400;
}

/* ===== FACILITIES SECTION ===== */
.facilities {
  background: linear-gradient(145deg, #f5f9ff, var(--white));
  position: relative;
  padding: 80px 0;
}

.library-spotlight {
  background: var(--gradient-1);
  border-radius: var(--border-radius-lg);
  padding: 60px 50px;
  color: white;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.library-spotlight::before {
  content: '📚';
  font-size: 250px;
  position: absolute;
  right: -30px;
  bottom: -40px;
  opacity: 0.1;
  transform: rotate(10deg);
}

.library-badge {
  display: inline-block;
  background: var(--gradient-gold);
  color: var(--secondary);
  padding: 8px 25px;
  border-radius: var(--border-radius-xl);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
  animation: badgeGlow 2s infinite;
}

@keyframes badgeGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 183, 77, 0.7); }
  50% { box-shadow: 0 0 20px 5px rgba(255, 183, 77, 0.5); }
  100% { box-shadow: 0 0 0 0 rgba(255, 183, 77, 0.7); }
}

.library-spotlight h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.library-spotlight h3 i {
  color: var(--accent);
  font-size: 2.8rem;
}

.library-spotlight h3 span {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem 1.2rem;
  border-radius: var(--border-radius-xl);
  font-size: 1.8rem;
}

.library-desc {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.95;
  line-height: 1.6;
}

.library-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.lib-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius-xl);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.lib-feature:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(8px);
}

.lib-feature i {
  color: var(--accent);
  font-size: 1.2rem;
}

.library-divider {
  margin: 25px 0;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.library-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 25px 0;
}

.library-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.library-highlight-item i {
  color: var(--accent);
  font-size: 1.2rem;
}

.library-highlight-item span {
  color: white;
}

.btn-library {
  background: var(--white);
  color: var(--secondary);
  border: none;
  padding: 14px 30px;
  border-radius: var(--border-radius-xl);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  margin-top: 10px;
}

.btn-library:hover {
  background: var(--accent);
  color: var(--secondary);
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

.btn-library i {
  transition: transform 0.3s ease;
}

.btn-library:hover i {
  transform: translateX(8px);
}

.library-image {
  text-align: center;
  position: relative;
  z-index: 2;
}

.library-image i {
  font-size: 7rem;
  color: var(--accent);
  margin: 0 10px;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
  animation: bounce 3s infinite ease-in-out;
}

.library-image i:nth-child(1) { animation-delay: 0s; }
.library-image i:nth-child(2) { animation-delay: 0.3s; }
.library-image i:nth-child(3) { animation-delay: 0.6s; }

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

/* ===== CONTACT SECTION ===== */
.contact {
  background: linear-gradient(135deg, #f8fafd 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '📞✉️📍';
  font-size: 200px;
  position: absolute;
  right: -50px;
  bottom: -50px;
  opacity: 0.03;
  transform: rotate(-15deg);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.contact-info {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.contact-info:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.contact-info h3 {
  font-size: 2.2rem;
  margin-bottom: 35px;
  color: var(--secondary);
  font-weight: 800;
  position: relative;
  display: inline-block;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient-2);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.contact-info:hover h3::after {
  width: 120px;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  background: var(--bg-soft);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.contact-item:hover {
  transform: translateX(15px) scale(1.02);
  background: linear-gradient(135deg, var(--white), #fff9f0);
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(198, 40, 40, 0.15);
}

.contact-item i {
  font-size: 2.2rem;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 55px;
  transition: var(--transition);
}

.contact-item:hover i {
  transform: scale(1.2) rotate(5deg);
}

.contact-item h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--secondary);
  font-weight: 700;
}

.contact-item p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1rem;
}

.contact-form {
  background: var(--white);
  padding: 45px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.contact-form:hover {
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.15);
}

.contact-form h3 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: var(--secondary);
  font-weight: 800;
  text-align: center;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  width: 100%;
}

.contact-form h3::before,
.contact-form h3::after {
  content: '✨';
  position: absolute;
  font-size: 1.5rem;
  opacity: 0;
  animation: sparkle 3s infinite;
}

.contact-form h3::before {
  left: 20%;
  top: -10px;
}

.contact-form h3::after {
  right: 20%;
  bottom: -10px;
  animation-delay: 1.5s;
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1); }
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 16px 22px;
  margin-bottom: 22px;
  border: 2px solid #eef2f7;
  border-radius: var(--border-radius-xl);
  font-size: 1rem;
  transition: all 0.4s ease;
  background: var(--bg-light);
  font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 10px 25px -5px var(--primary-soft);
  background: var(--white);
  transform: translateY(-3px);
}

.contact-form .btn-primary {
  width: 100%;
  justify-content: center;
  font-size: 1.3rem;
  padding: 18px 30px;
  margin-top: 15px;
}

.form-message {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-message i {
  font-size: 20px;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

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

.fa-spinner {
  animation: spin 1s linear infinite;
}

/* ===== GOOGLE MAP SECTION ===== */
.map-section {
  padding: 0 0 60px 0;
  background: var(--white);
}

.map-container {
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid white;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 450px;
}

/* ===== FOOTER ===== */
.footer {
  background: #0a1a2b;
  color: white;
  padding: 80px 0 20px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.footer-section h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 700;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.footer-section h4 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: white;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 20px;
}

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

.footer-section ul li {
  margin-bottom: 15px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

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

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.footer-social a {
  color: white;
  text-decoration: none;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.2rem;
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--secondary);
  transform: translateY(-8px) scale(1.1);
  border-color: var(--accent);
}

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

.footer .footer-section ul.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
}

.footer .footer-section ul.footer-contact-list li i {
  color: var(--accent);
  font-size: 1.1rem;
  width: 24px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #c0392b;
  transform: scale(1.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .hero-content h1 {
      font-size: 3.5rem;
  }
  
  .banner-content h2 {
      font-size: 3.2rem;
  }
  
  .footer-content {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .nav-menu {
      position: fixed;
      top: 85px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 85px);
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(10px);
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 1.5rem;
      transition: left 0.4s ease;
      z-index: 999;
      padding: 2rem;
  }
  
  .nav-menu.active {
      left: 0;
  }
  
  .hamburger {
      display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
      opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero {
      flex-direction: column;
      text-align: center;
      padding-top: 140px;
  }
  
  .hero-content {
      max-width: 100%;
  }
  
  .hero-buttons {
      justify-content: center;
  }
  
  .batch-info {
      margin: 0 auto;
  }
  
  .about-grid,
  .contact-grid,
  .library-spotlight {
      grid-template-columns: 1fr;
  }
  
  .test-details {
      flex-direction: column;
      align-items: center;
      gap: 20px;
  }
  
  .test-details span {
      width: 100%;
      max-width: 400px;
      justify-content: center;
  }
  
  .library-features {
      grid-template-columns: 1fr;
  }
  
  .library-highlights {
      flex-direction: column;
  }
}

@media (max-width: 768px) {
  .section-title {
      font-size: 2.5rem;
  }
  
  .hero-content h1 {
      font-size: 2.8rem;
  }
  
  .banner-content h2 {
      font-size: 2.5rem;
  }
  
  .hero-buttons {
      flex-direction: column;
      gap: 15px;
  }
  
  .btn-secondary,
  .btn-outline,
  .btn-primary {
      width: 100%;
      text-align: center;
      justify-content: center;
  }
  
  .about-stats {
      grid-template-columns: 1fr;
  }
  
  .footer-content {
      grid-template-columns: 1fr;
      gap: 40px;
  }
  
  .library-spotlight {
      padding: 40px 25px;
  }
  
  .library-spotlight h3 {
      font-size: 2rem;
      flex-direction: column;
      text-align: center;
  }
  
  .contact-form {
      padding: 30px 20px;
  }
  
  .map-container iframe {
      height: 350px;
  }
  
  .offer-popup {
      padding: 20px;
  }
  
  .offer-title {
      font-size: 24px;
  }
  
  .offer-highlight {
      font-size: 20px;
  }
  
  .date-list {
      flex-direction: column;
      align-items: center;
  }
  
  .date-item {
      width: 100%;
      text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
      padding: 0 20px;
  }
  
  .hero-content h1 {
      font-size: 2.2rem;
  }
  
  .logo h2 {
      font-size: 1.5rem;
  }
  
  .library-image i {
      font-size: 4rem;
  }
  
  .map-container iframe {
      height: 300px;
  }
}

/* Image Popup Styles */
.image-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.image-popup-container {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  background: white;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
  from {
      opacity: 0;
      transform: scale(0.9);
  }
  to {
      opacity: 1;
      transform: scale(1);
  }
}

.popup-image {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 5px;
}

.close-image-popup {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background: #ff6b35;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 10000;
}

.close-image-popup:hover {
  background: #e55a2b;
  transform: scale(1.1);
}

.image-popup-footer {
  text-align: center;
  padding: 15px 0 5px;
}

.image-popup-btn {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.image-popup-btn:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .image-popup-container {
      max-width: 95%;
  }
  
  .close-image-popup {
      top: -10px;
      right: -10px;
      width: 35px;
      height: 35px;
      font-size: 20px;
  }
}