/* ════════════════════════════════════════════
   SUMITRA COLLEGE — Global Stylesheet
   Color Palette: Maroon + Gold + Cream
   ════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Nunito:wght@300;400;600;700&family=Cinzel:wght@400;600;700&display=swap');

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

:root {
  --maroon:       #6b1a1a;
  --maroon-dark:  #3a0a0a;
  --maroon-mid:   #5a1212;
  --gold:         #c9a84c;
  --gold-light:   #f0d080;
  --gold-pale:    #fdf0c0;
  --cream:        #fdf6e3;
  --cream-dark:   #f5e8c8;
  --text-dark:    #2a1a0e;
  --text-muted:   #7a5c3a;
  --white:        #ffffff;
  --shadow:       rgba(106,26,26,0.18);
  --transition:   0.35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--maroon-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* ══════════════ NAVBAR ══════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(58,10,10,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 80px;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(42,6,6,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo-emblem {
  width: 75px; height:75px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-emblem svg { width: 22px; height: 22px; fill: var(--gold); }
.nav-logo-text { line-height: 1.1; }
.nav-logo-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--cream); letter-spacing: 1px;
}
.nav-logo-sub {
  font-size: 0.62rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
}
.nav-links {
  display: flex; gap: 6px; list-style: none; align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(253,246,227,0.75);
  padding: 8px 14px; border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 4px; left: 14px; right: 14px; height: 1.5px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--maroon-dark) !important;
  border-radius: 30px !important; padding: 8px 20px !important;
  font-weight: 700 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-2px); }
.nav-cta::after { display: none !important; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--gold); border-radius: 2px; transition: all 0.3s; }
.mobile-menu {
  display: none;
  position: fixed; top: 70px; left: 0; right: 0;
  background: rgba(42,6,6,0.98);
  padding: 20px 5%;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  flex-direction: column; gap: 4px;
  z-index: 999;
}
.mobile-menu a {
  text-decoration: none; color: rgba(253,246,227,0.8);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; padding: 12px 16px; border-radius: 8px;
  transition: color 0.3s, background 0.3s;
}
.mobile-menu a:hover { color: var(--gold); background: rgba(201,168,76,0.08); }
@media(max-width:860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ══════════════ PAGE HERO ══════════════ */
.page-hero {
  padding: 140px 5% 80px;
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 60%, #8b2222 100%);
  position: relative; overflow: hidden; text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23c9a84c' fill-opacity='0.06'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900; color: var(--cream);
  animation: slideUp 0.8s ease forwards;
}
.page-hero h1 span { color: var(--gold); }
.page-hero p {
  margin-top: 12px; max-width: 600px; margin-inline: auto;
  font-size: 1rem; color: rgba(253,246,227,0.75); line-height: 1.7;
  animation: slideUp 0.8s ease 0.15s both;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-top: 18px; font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(201,168,76,0.7);
  animation: fadeIn 1s ease 0.3s both;
}
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ══════════════ SECTION STYLES ══════════════ */
.section { padding: 90px 5%; }
.section-alt { background: var(--cream-dark); }
.section-dark {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 100%);
  color: var(--cream);
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  font-size: 0.75rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 10px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; line-height: 1.15;
  color: var(--maroon);
}
.section-dark .section-title { color: var(--cream); }
.section-title span { color: var(--gold); }
.section-divider {
  display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 14px;
}
.sdiv-line { width: 60px; height: 1.5px; background: var(--gold); opacity: 0.5; }
.sdiv-diamond { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.section-subtitle {
  max-width: 560px; margin: 18px auto 0;
  font-size: 0.98rem; color: var(--text-muted); line-height: 1.7;
}
.section-dark .section-subtitle { color: rgba(253,246,227,0.65); }

/* ══════════════ CARDS ══════════════ */
.card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 4px 24px var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px var(--shadow); }
.card-gold {
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  color: var(--cream); border: 1px solid rgba(201,168,76,0.25);
}
.card-icon-wrap {
  width: 60px; height: 60px; border-radius: 14px;
  background: linear-gradient(135deg, var(--maroon), var(--gold));
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card-icon-wrap svg { width: 28px; height: 28px; fill: var(--cream); }

/* ══════════════ BUTTONS ══════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 50px; border: none; cursor: pointer;
  font-family: 'Nunito', sans-serif; font-size: 0.88rem;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  text-decoration: none; transition: all var(--transition);
}
.btn-primary { background: var(--gold); color: var(--maroon-dark); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.4); }
.btn-outline { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--maroon-dark); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--maroon); }
.btn-white:hover { background: var(--cream); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }

/* ══════════════ GRID UTILITIES ══════════════ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media(max-width:1024px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media(max-width:768px)  { .grid-3, .grid-2 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr; } }

/* ══════════════ STATS BAR ══════════════ */
.stats-bar {
  display: flex; flex-wrap: wrap; gap: 0;
  background: linear-gradient(90deg, var(--maroon-dark), var(--maroon));
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.stat-item {
  flex: 1; min-width: 160px; padding: 30px 20px; text-align: center;
  border-right: 1px solid rgba(201,168,76,0.15);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem; font-weight: 900; color: var(--gold);
  line-height: 1;
}
.stat-label { font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(253,246,227,0.6); margin-top: 6px; }

/* ══════════════ FOOTER ══════════════ */
footer {
  background: var(--maroon-dark);
  color: var(--cream);
  padding: 70px 5% 0;
  border-top: 1px solid rgba(201,168,76,0.2);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand-name img{display:inline-block;}
.footer-brand-name {text-align:center;
  font-family: 'Cinzel', serif;
  font-size: 1.3rem; font-weight: 700; color: var(--cream); margin: 14px 0 8px;
}
.footer-brand-sub { font-size: 0.72rem; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; }
.footer-desc { font-size: 0.88rem; color: rgba(253,246,227,0.6); line-height: 1.7; margin-top: 12px; }
.footer-heading { font-family: 'Cinzel', serif; font-size: 0.82rem; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: rgba(253,246,227,0.65); font-size: 0.88rem; transition: color 0.3s, padding-left 0.3s; }
.footer-links a:hover { color: var(--gold-light); padding-left: 6px; }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact-icon { width: 18px; height: 18px; fill: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-contact-text { font-size: 0.85rem; color: rgba(253,246,227,0.65); line-height: 1.5; }
.footer-bottom {
  margin-top: 50px; padding: 22px 0;
  border-top: 1px solid rgba(201,168,76,0.15);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.78rem; color: rgba(253,246,227,0.4);
}
.footer-bottom a { color: var(--gold); text-decoration: none; }
@media(max-width:900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ══════════════ ANIMATIONS ══════════════ */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideLeft { from { opacity:0; transform:translateX(-28px); } to { opacity:1; transform:translateX(0); } }
@keyframes slideRight { from { opacity:0; transform:translateX(28px); } to { opacity:1; transform:translateX(0); } }
@keyframes scaleIn { from { opacity:0; transform:scale(0.92); } to { opacity:1; transform:scale(1); } }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1;} 50%{transform:scale(1.35);opacity:0.6;} }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ══════════════ MISC ══════════════ */
.gold-text { color: var(--gold); }
.tag {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  background: rgba(201,168,76,0.15); color: var(--gold); border: 1px solid rgba(201,168,76,0.3);
}
.badge-live { display: flex; align-items: center; gap: 6px; }
.badge-dot { width:7px;height:7px;background:var(--gold);border-radius:50%;animation:pulse 2s infinite; }

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

/* Particles */
.particles-wrap { position: absolute; inset:0; overflow:hidden; pointer-events:none; }
.particle { position:absolute; border-radius:50%; background:var(--gold-light); opacity:0; animation:floatUp linear infinite; }
@keyframes floatUp {
  0%   { transform:translateY(100%) scale(0); opacity:0; }
  10%  { opacity:0.5; }
  90%  { opacity:0.15; }
  100% { transform:translateY(-120%) scale(1.5); opacity:0; }
}
