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

:root {
  --primary: #121861;
  --primary-dark: #0c1049;
  --primary-light: #e0e1f0;
  --primary-lighter: #f0f0f8;
  --accent: #ffd600;
  --accent-dark: #c7a600;
  --text-dark: #1a1a2e;
  --text-medium: #2d2d44;
  --text-light: #6b7280;
  --white: #ffffff;
  --bg-alt: #f7f7fc;
  --bg-gray: #ededf5;
  --border: #d8d9e8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.navbar .logo span {
  color: var(--accent);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-lighter);
}

.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.nav-links .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.dropdown-menu a:hover {
  background: var(--primary-lighter);
  color: var(--primary);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--white) 50%, var(--primary-lighter) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(18, 24, 97, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.hero h1 .highlight {
  color: var(--primary);
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.hero-image-placeholder i {
  font-size: 4rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.hero-image-placeholder span {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.8;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  font-weight: 700;
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-white:hover {
  background: var(--primary-lighter);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1rem;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-blue {
  background: var(--primary);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-blue .section-header .badge {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-blue .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== STATS ===== */
.stats {
  padding: 50px 0;
  background: var(--primary);
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.features-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.subjects-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== COURSE CARDS ===== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

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

.course-card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--white);
  position: relative;
}

.course-card-image.jee {
  background: linear-gradient(135deg, #121861, #2a3199);
}

.course-card-image.neet {
  background: linear-gradient(135deg, #059669, #10b981);
}

.course-card-image.foundation {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.course-card-image.board {
  background: linear-gradient(135deg, #ea580c, #f97316);
}

.course-card-body {
  padding: 24px;
}

.course-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.course-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.course-card-body .course-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-slider {
  display: flex;
  gap: 24px;
  overflow: hidden;
}

.testimonial-card {
  min-width: 100%;
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.testimonial-card .stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-size: 1.05rem;
  color: var(--text-medium);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-info h4 {
  font-size: 0.95rem;
}

.testimonial-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

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

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-brand .logo span {
  color: var(--accent);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

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

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-col .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.footer-col .contact-item i {
  margin-top: 3px;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
}

/* ===== PAGE HEADER (Inner pages) ===== */
.page-header {
  padding: 120px 0 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-header .breadcrumb {
  font-size: 0.9rem;
  opacity: 0.8;
}

.page-header .breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb a:hover {
  color: var(--white);
}

/* ===== ABOUT PAGE ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.about-image-placeholder i {
  font-size: 4rem;
  margin-bottom: 10px;
  opacity: 0.8;
}

.about-image-placeholder span {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  opacity: 0.7;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.about-list {
  margin-top: 20px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
}

.about-list li i {
  color: var(--primary);
}

/* Director Message */
.director-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.director-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.director-photo i {
  font-size: 3rem;
  margin-bottom: 8px;
}

.director-message h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.director-message .title {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.director-message p {
  color: var(--text-light);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

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

.infra-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.infra-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.infra-card i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.infra-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.infra-card p {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ===== COURSE DETAIL PAGES ===== */
.course-detail-hero {
  padding: 120px 0 50px;
  color: var(--white);
  text-align: center;
}

.course-detail-hero.jee-bg {
  background: linear-gradient(135deg, #121861, #2a3199);
}

.course-detail-hero.neet-bg {
  background: linear-gradient(135deg, #059669, #10b981);
}

.course-detail-hero.foundation-bg {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.course-detail-hero.board-bg {
  background: linear-gradient(135deg, #ea580c, #f97316);
}

.course-detail-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.course-detail-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Program Cards */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 30px;
  transition: var(--transition);
}

.program-card:hover {
  box-shadow: var(--shadow-lg);
}

.program-card .tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.program-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.program-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.program-card ul {
  margin-bottom: 18px;
}

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

.program-card ul li i {
  color: var(--primary);
  font-size: 0.8rem;
}

/* Fee Table */
.fee-table-wrapper {
  overflow-x: auto;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.fee-table thead {
  background: var(--primary);
  color: var(--white);
}

.fee-table th {
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}

.fee-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.fee-table tbody tr:hover {
  background: var(--primary-lighter);
}

.fee-table .highlight-row {
  background: var(--primary-lighter);
  font-weight: 600;
}

/* Scholarship Table */
.scholarship-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.scholarship-table th {
  background: var(--accent);
  color: var(--primary);
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
}

.scholarship-table td {
  padding: 12px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

/* Subjects Grid */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.subject-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.subject-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.subject-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.subject-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.subject-card p {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ===== COMPARISON TABLE (Courses overview) ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-table th {
  background: var(--primary);
  color: var(--white);
  padding: 14px 16px;
  font-size: 0.88rem;
  text-align: left;
}

.comparison-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}

.comparison-table tbody tr:hover {
  background: var(--primary-lighter);
}

/* ===== FACULTY PAGE ===== */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.faculty-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}

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

.faculty-photo {
  width: 100%;
  height: 260px;
  background: var(--bg-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.faculty-photo i {
  font-size: 3.5rem;
  margin-bottom: 6px;
}

.faculty-info {
  padding: 20px;
}

.faculty-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.faculty-info .subject {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.faculty-info .qualification {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.faculty-info .experience {
  font-size: 0.8rem;
  color: var(--accent-dark);
  font-weight: 600;
}

/* ===== RESULTS PAGE ===== */
.results-highlight {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.result-stat {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.result-stat .number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.result-stat .label {
  font-size: 0.88rem;
  color: var(--text-light);
}

.toppers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.topper-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
  padding: 24px 16px;
  transition: var(--transition);
}

.topper-card:hover {
  box-shadow: var(--shadow-md);
}

.topper-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.8rem;
  font-weight: 700;
}

.topper-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.topper-card .exam {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 2px;
}

.topper-card .rank {
  font-size: 0.82rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.topper-card .year {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Year tabs */
.year-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.year-tab {
  padding: 8px 24px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  color: var(--text-medium);
}

.year-tab:hover,
.year-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-medium);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-card .icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.88rem;
  color: var(--text-light);
}

.map-container {
  width: 100%;
  height: 250px;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  border: 1px solid var(--border);
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 90px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.4rem;
  }

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

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

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

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

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

  .director-section {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: var(--transition);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 16px;
    display: none;
  }

  .nav-links .dropdown.open .dropdown-menu {
    display: block;
  }

  .hamburger {
    display: flex;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .features-grid,
  .features-grid-2,
  .features-grid-4,
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .faculty-grid {
    grid-template-columns: 1fr;
  }

  .results-highlight,
  .toppers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .infra-grid,
  .subjects-grid,
  .subjects-grid-4 {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .course-detail-hero h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .stats .container {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .results-highlight,
  .toppers-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 10px 22px;
    font-size: 0.88rem;
  }

  .cta-banner h2 {
    font-size: 1.5rem;
  }
}

/* ===== ADMISSION FORM ===== */
.admission-form-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.admission-form-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 30px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.admission-logo-box {
  width: 70px;
  height: 70px;
  background: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
}

.admission-header-text h2 {
  font-size: 1.6rem;
  margin-bottom: 2px;
}

.admission-header-text p {
  font-size: 0.9rem;
  opacity: 0.85;
}

.admission-header-text .session-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 14px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admission-form-body {
  padding: 36px 40px;
}

.form-section {
  margin-bottom: 32px;
}

.form-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title i {
  font-size: 1rem;
}

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

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

.form-row .form-group,
.form-row-3 .form-group {
  margin-bottom: 0;
}

.form-group .required {
  color: #e74c3c;
}

/* Course Selection Cards */
.course-select-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.course-select-card {
  position: relative;
  cursor: pointer;
}

.course-select-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.course-select-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}

.course-select-label i {
  font-size: 1.4rem;
  color: var(--text-light);
  transition: var(--transition);
}

.course-select-label .label-text {
  font-weight: 600;
  font-size: 0.92rem;
}

.course-select-label .label-sub {
  font-size: 0.78rem;
  color: var(--text-light);
}

.course-select-card input[type="radio"]:checked + .course-select-label {
  border-color: var(--primary);
  background: var(--primary-lighter);
}

.course-select-card input[type="radio"]:checked + .course-select-label i {
  color: var(--primary);
}

.course-select-card:hover .course-select-label {
  border-color: var(--primary-light);
  background: var(--primary-lighter);
}

/* Category Radio Group */
.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.radio-option {
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-option label {
  display: inline-block;
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.radio-option input[type="radio"]:checked + label {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.radio-option label:hover {
  border-color: var(--primary);
}

/* File Upload */
.file-upload-group {
  position: relative;
}

.file-upload-group input[type="file"] {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--bg-alt);
  transition: var(--transition);
}

.file-upload-group input[type="file"]:hover {
  border-color: var(--primary);
  background: var(--primary-lighter);
}

.file-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Marks Table */
.marks-table-wrapper {
  overflow-x: auto;
  margin-top: 6px;
}

.marks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.marks-table thead {
  background: var(--primary);
  color: var(--white);
}

.marks-table th {
  padding: 10px 12px;
  font-weight: 600;
  text-align: center;
  font-size: 0.8rem;
  white-space: nowrap;
}

.marks-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

.marks-table tbody tr:hover {
  background: var(--primary-lighter);
}

.marks-table td:first-child {
  font-weight: 600;
  text-align: left;
  padding-left: 12px;
  white-space: nowrap;
  background: var(--bg-alt);
}

.marks-table input {
  width: 70px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.82rem;
  text-align: center;
  font-family: inherit;
  transition: var(--transition);
}

.marks-table input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.marks-table input[readonly] {
  background: var(--primary-lighter);
  font-weight: 600;
  color: var(--primary);
  cursor: not-allowed;
}

.marks-table .wide-input {
  width: 100%;
  min-width: 100px;
  text-align: left;
}

/* Declaration */
.declaration-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.declaration-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.declaration-box label {
  font-size: 0.88rem;
  color: var(--text-medium);
  cursor: pointer;
  line-height: 1.5;
}

/* Submit Actions */
.form-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.form-actions .btn {
  flex: 1;
  justify-content: center;
}

.btn-success {
  background: #27ae60;
  color: var(--white);
  border-color: #27ae60;
}

.btn-success:hover {
  background: #219a52;
  border-color: #219a52;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .admission-form-header {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .admission-form-body {
    padding: 24px 20px;
  }

  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .course-select-group {
    grid-template-columns: 1fr;
  }

  .radio-group {
    gap: 8px;
  }

  .marks-table input {
    width: 55px;
    padding: 6px 4px;
    font-size: 0.78rem;
  }

  .form-actions {
    flex-direction: column;
  }
}

@media print {
  .navbar, .footer, .whatsapp-float, .back-to-top, .page-header {
    display: none !important;
  }

  .section {
    padding: 20px 0;
  }

  .admission-form-container {
    box-shadow: none;
    border: 2px solid #000;
  }

  .admission-form-header {
    background: #fff !important;
    color: #000 !important;
    border-bottom: 2px solid #000;
  }

  .admission-logo-box {
    border: 2px solid #000;
  }

  .session-badge {
    border: 1px solid #000;
    background: #fff !important;
    color: #000 !important;
  }

  .btn, .file-upload-group {
    display: none !important;
  }
}

/* ===== NEWS & NOTICE BOARD ===== */

/* Tabs for News sections */
.news-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.news-tab {
  padding: 10px 28px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  color: var(--text-medium);
}

.news-tab:hover,
.news-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.news-tab i {
  margin-right: 6px;
}

/* News Cards Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.news-card-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.news-card-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-card-type.upcoming {
  background: #dbeafe;
  color: #1e40af;
}

.news-card-type.latest {
  background: #d1fae5;
  color: #065f46;
}

.news-card-type.notice {
  background: #fef3c7;
  color: #92400e;
}

.news-card-date {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-card-body {
  padding: 20px;
}

.news-card-body h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.news-read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-read-more:hover {
  gap: 8px;
}

/* News Panel (for tab switching) */
.news-panel {
  display: none;
}

.news-panel.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Home page compact preview */
.news-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-preview-col h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-preview-col h3 i {
  font-size: 0.95rem;
}

.news-preview-col h3.upcoming-title {
  border-color: #1e40af;
  color: #1e40af;
}

.news-preview-col h3.latest-title {
  border-color: #065f46;
  color: #065f46;
}

.news-preview-col h3.notice-title {
  border-color: #92400e;
  color: #92400e;
}

.news-mini-card {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.news-mini-card:last-child {
  border-bottom: none;
}

.news-mini-card:hover {
  padding-left: 8px;
}

.news-mini-date {
  font-size: 0.72rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.news-mini-card h5 {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.news-mini-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
  .news-preview-grid,
  .news-panel.active {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-preview-grid,
  .news-panel.active {
    grid-template-columns: 1fr;
  }

  .news-tabs {
    gap: 6px;
  }

  .news-tab {
    padding: 8px 18px;
    font-size: 0.82rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
