/* ===== ROOT & RESET ===== */
:root {
  --maroon: #7B1C2E;
  --maroon-dark: #5a1220;
  --maroon-light: #a02540;
  --gold: #C8912A;
  --gold-light: #e8b44a;
  --cream: #FDF8F2;
  --purple: #4A1270;
  --green: #1A6B3A;
  --text-dark: #1a1a1a;
  --text-mid: #444;
  --text-light: #777;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.18);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Hind', 'Noto Sans Devanagari', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 3px solid var(--maroon);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.navbar.scrolled { background: rgba(255,255,255,1); }
.nav-container {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { font-size: 28px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-hi { font-family: 'Noto Sans Devanagari', sans-serif; font-size: 14px; font-weight: 700; color: var(--maroon); }
.brand-en { font-size: 11px; color: var(--text-light); letter-spacing: 0.5px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--text-mid); transition: all 0.2s;
}
.nav-links a:hover { color: var(--maroon); background: rgba(123,28,46,0.07); }
.btn-admin {
  background: var(--maroon) !important; color: white !important;
  border-radius: 8px !important; padding: 8px 16px !important;
}
.btn-admin:hover { background: var(--maroon-dark) !important; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--maroon); border-radius: 2px; transition: 0.3s; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(123,28,46,0.88) 0%, rgba(74,18,112,0.75) 50%, rgba(26,107,58,0.6) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 120px 24px 80px; max-width: 800px;
  animation: fadeUp 1s ease both;
}
.hero-badge {
  display: inline-block; background: var(--gold); color: white;
  padding: 6px 20px; border-radius: 50px; font-size: 13px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 24px;
  animation: fadeUp 1s 0.2s ease both;
}
.hero-title { margin-bottom: 16px; }
.title-hi {
  display: block; font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: clamp(28px, 5vw, 52px); font-weight: 700; color: white; line-height: 1.2;
}
.title-en {
  display: block; font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 3vw, 28px); color: rgba(255,255,255,0.85);
  font-style: italic; margin-top: 8px;
}
.hero-sub { color: rgba(255,255,255,0.75); font-size: 15px; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; animation: bounce 2s infinite;
}
.hero-scroll span {
  display: block; width: 24px; height: 24px; border-right: 3px solid white;
  border-bottom: 3px solid white; transform: rotate(45deg); opacity: 0.7;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 50px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.25s; border: none;
}
.btn-primary { background: var(--gold); color: white; box-shadow: 0 4px 16px rgba(200,145,42,0.4); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: white; color: var(--maroon); }
.btn-white { background: white; color: var(--maroon); font-weight: 700; padding: 12px 28px; }
.btn-white:hover { background: var(--gold); color: white; }
.full-width { width: 100%; text-align: center; border-radius: var(--radius); }

/* ===== STATS STRIP ===== */
.stats-strip {
  background: var(--maroon); padding: 24px 0;
  display: flex; justify-content: center; align-items: center;
  gap: 0; flex-wrap: wrap;
}
.stat { text-align: center; padding: 8px 40px; }
.stat-num { display: block; font-size: 36px; font-weight: 800; color: var(--gold); font-family: 'Playfair Display', serif; }
.stat-label { display: block; font-size: 12px; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.2); }

/* ===== SECTION COMMON ===== */
.section { padding: 90px 0; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--maroon); background: rgba(123,28,46,0.08);
  padding: 6px 16px; border-radius: 50px; margin-bottom: 16px; border-left: 3px solid var(--maroon);
}
.section-title {
  font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; color: var(--text-dark); margin-bottom: 48px; line-height: 1.2;
}

/* ===== ABOUT ===== */
.about-section { background: white; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-lead { font-family: 'Noto Sans Devanagari', sans-serif; font-size: 16px; color: var(--text-mid); margin-bottom: 16px; line-height: 1.9; }
.about-highlights { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.about-highlights li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.about-highlights li i { color: var(--green); margin-top: 4px; flex-shrink: 0; }
.about-image { position: relative; }
.about-image img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-img-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--maroon); color: white; padding: 20px 24px;
  border-radius: var(--radius); text-align: center; box-shadow: var(--shadow);
}
.about-img-badge span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
.about-img-badge strong { display: block; font-size: 18px; font-weight: 700; margin: 4px 0; }

/* ===== INSTITUTIONS ===== */
.institutions-section { background: var(--cream); }
.inst-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.inst-card {
  background: white; border-radius: var(--radius-lg); padding: 32px 24px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s; border-top: 4px solid transparent;
}
.inst-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.inst-card[data-color="maroon"] { border-top-color: var(--maroon); }
.inst-card[data-color="purple"] { border-top-color: var(--purple); }
.inst-card[data-color="gold"] { border-top-color: var(--gold); }
.inst-card[data-color="green"] { border-top-color: var(--green); }
.inst-card.featured { background: linear-gradient(135deg, #4A1270 0%, #7B1C2E 100%); color: white; }
.inst-featured-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--gold); color: white; font-size: 10px;
  padding: 4px 10px; border-radius: 50px; font-weight: 600; letter-spacing: 0.5px;
}
.inst-icon { font-size: 36px; margin-bottom: 16px; }
.inst-card[data-color="maroon"] .inst-icon { color: var(--maroon); }
.inst-card[data-color="purple"] .inst-icon { color: var(--purple); }
.inst-card[data-color="gold"] .inst-icon { color: var(--gold); }
.inst-card[data-color="green"] .inst-icon { color: var(--green); }
.inst-card.featured .inst-icon { color: rgba(255,255,255,0.9); }
.inst-code { font-size: 11px; color: var(--text-light); margin-bottom: 8px; font-weight: 600; letter-spacing: 0.5px; }
.inst-name { font-family: 'Noto Sans Devanagari', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.inst-name-en { font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 12px; }
.inst-card.featured .inst-name-en { color: rgba(255,255,255,0.75); }
.inst-affil { font-size: 12px; color: var(--text-light); margin-bottom: 16px; line-height: 1.5; }
.inst-affil i { margin-right: 4px; }
.inst-card.featured .inst-affil { color: rgba(255,255,255,0.7); }
.inst-courses-mini {
  font-size: 13px; font-weight: 600; color: var(--maroon);
  background: rgba(123,28,46,0.08); padding: 8px 12px; border-radius: 8px; margin-bottom: 20px;
}
.inst-card.featured .inst-courses-mini { background: rgba(255,255,255,0.15); color: white; }
.inst-btn {
  font-size: 13px; font-weight: 600; color: var(--maroon);
  display: inline-block; transition: gap 0.2s;
}
.inst-card.featured .inst-btn { color: var(--gold-light); }
.inst-btn:hover { letter-spacing: 1px; }

/* ===== COURSES ===== */
.courses-section { background: white; }
.courses-tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 24px; border: 2px solid rgba(123,28,46,0.2); background: transparent;
  border-radius: 50px; font-size: 14px; font-weight: 600; color: var(--text-mid);
  cursor: pointer; transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover { background: var(--maroon); color: white; border-color: var(--maroon); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeUp 0.4s ease both; }
.course-detail-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.cdc-header { padding: 28px 32px; color: white; }
.cdc-header h3 { font-family: 'Noto Sans Devanagari', sans-serif; font-size: 22px; font-weight: 700; }
.cdc-header p { opacity: 0.8; margin-top: 4px; font-size: 14px; }
.maroon-bg { background: linear-gradient(135deg, var(--maroon), var(--maroon-dark)); }
.purple-bg { background: linear-gradient(135deg, var(--purple), #6a2090); }
.gold-bg { background: linear-gradient(135deg, var(--gold), #a06010); }
.green-bg { background: linear-gradient(135deg, var(--green), #0d4522); }
.cdc-body { padding: 8px 0; background: white; }
.course-row {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px 32px;
  border-bottom: 1px solid rgba(0,0,0,0.05); transition: background 0.2s;
}
.course-row:last-child { border-bottom: none; }
.course-row:hover { background: rgba(123,28,46,0.03); }
.course-row i { font-size: 20px; color: var(--maroon); margin-top: 2px; flex-shrink: 0; }
.course-row strong { font-size: 16px; }
.course-row small { color: var(--text-light); font-size: 13px; }

/* ===== ADMISSION BANNER ===== */
.admission-banner {
  background: linear-gradient(135deg, var(--gold) 0%, #b07820 100%);
  padding: 28px 0;
}
.banner-content { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.banner-icon { font-size: 32px; color: white; flex-shrink: 0; }
.banner-text { flex: 1; min-width: 200px; }
.banner-text strong { display: block; font-size: 18px; color: white; font-weight: 700; }
.banner-text span { font-size: 13px; color: rgba(255,255,255,0.85); }

/* ===== CONTACT ===== */
.contact-section { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: white; padding: 20px 24px; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform 0.2s;
}
.contact-card:hover { transform: translateX(4px); }
.contact-icon {
  width: 44px; height: 44px; background: var(--maroon); color: white;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 4px; }
.contact-card p { font-size: 14px; color: var(--text-dark); line-height: 1.8; }
.contact-card a { color: var(--maroon); font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }

.contact-form-wrap {
  background: white; padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.contact-form-wrap h3 { font-family: 'Playfair Display', serif; font-size: 26px; margin-bottom: 28px; color: var(--maroon); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 2px solid rgba(0,0,0,0.1);
  border-radius: var(--radius); font-family: inherit; font-size: 14px;
  transition: border-color 0.2s; background: var(--cream);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--maroon); background: white;
}
.form-success {
  display: none; margin-top: 12px; text-align: center; font-weight: 600;
  color: var(--green); padding: 12px; background: rgba(26,107,58,0.08);
  border-radius: var(--radius);
}

/* ===== FOOTER ===== */
.footer { background: var(--maroon-dark); color: rgba(255,255,255,0.85); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: white; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.65); }
.footer-addr { margin-top: 12px; font-size: 13px; }
.footer-addr i { margin-right: 6px; color: var(--gold); }
.footer-links-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); margin-bottom: 16px; }
.footer-links-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links-col li { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.5; }
.footer-links-col a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-links-col a:hover { color: var(--gold); }
.footer-links-col li i { margin-right: 6px; color: var(--gold); width: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0;
  text-align: center; font-size: 13px; color: rgba(255,255,255,0.4);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.animate-on-scroll {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .inst-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: white; flex-direction: column; padding: 20px;
    box-shadow: var(--shadow-lg); border-bottom: 3px solid var(--maroon);
  }
  .nav-links.open { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-badge { right: 0; bottom: -10px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat { padding: 8px 20px; }
  .stat-divider { display: none; }
  .courses-tabs { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .inst-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .contact-form-wrap { padding: 24px; }
}
