/* =========================================================
   Sabhyata Shikshyalaya - Main Stylesheet
   Theme: Crimson (Nepali red) + Gold + Cream/Navy
   ========================================================= */

/* ---------- Theme Variables ---------- */
:root {
  /* Light mode (warm cream - NOT pure white) */
  --bg-primary: #fbf6ec;        /* warm cream */
  --bg-secondary: #f4ead4;      /* deeper cream */
  --bg-tertiary: #efe2be;       /* gold-tinted cream */
  --bg-card: #ffffffd9;         /* soft translucent white */
  --text-primary: #2a2218;      /* deep warm brown */
  --text-secondary: #5a4b3a;    /* muted brown */
  --text-muted: #7a6a58;
  --border-color: #e8dcbf;

  /* Brand colors */
  --primary: #b8232e;           /* nepali crimson */
  --primary-dark: #8f1821;
  --primary-light: #d94149;
  --secondary: #d4a017;         /* saffron gold */
  --secondary-dark: #a87d0e;
  --accent: #1f6f5c;            /* deep teal */

  --shadow-sm: 0 2px 8px rgba(80, 50, 20, 0.08);
  --shadow-md: 0 6px 20px rgba(80, 50, 20, 0.12);
  --shadow-lg: 0 14px 40px rgba(80, 50, 20, 0.18);

  --nav-bg: #fdf9ee;
  --footer-bg: #2a1a14;
  --footer-text: #f5e9cf;

  --gradient-primary: linear-gradient(135deg, #b8232e 0%, #8f1821 100%);
  --gradient-hero: linear-gradient(135deg, rgba(184, 35, 46, 0.92) 0%, rgba(143, 24, 33, 0.88) 50%, rgba(212, 160, 23, 0.75) 100%);
  --gradient-gold: linear-gradient(135deg, #d4a017 0%, #a87d0e 100%);
}

/* Dark mode (deep navy - NOT pure black) */
[data-theme="dark"] {
  --bg-primary: #1a2234;        /* deep navy */
  --bg-secondary: #222c42;      /* lighter navy */
  --bg-tertiary: #2a3654;       /* mid navy */
  --bg-card: #2a3550e6;         /* card navy */
  --text-primary: #f5e9cf;      /* warm cream text */
  --text-secondary: #d6c5a0;
  --text-muted: #9d8f72;
  --border-color: #3a4868;

  --primary: #e63946;           /* brighter crimson */
  --primary-dark: #b8232e;
  --primary-light: #ff5a6a;
  --secondary: #f4c542;         /* brighter gold */
  --secondary-dark: #d4a017;
  --accent: #4ecdc4;            /* bright teal */

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.6);

  --nav-bg: #161d2d;
  --footer-bg: #0f1421;
  --footer-text: #d6c5a0;

  --gradient-primary: linear-gradient(135deg, #e63946 0%, #b8232e 100%);
  --gradient-hero: linear-gradient(135deg, rgba(230, 57, 70, 0.88) 0%, rgba(184, 35, 46, 0.85) 50%, rgba(212, 160, 23, 0.75) 100%);
  --gradient-gold: linear-gradient(135deg, #f4c542 0%, #d4a017 100%);
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-weight: 700;
  color: var(--text-primary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover { color: var(--secondary); }

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

/* ---------- Top Info Bar ---------- */
.top-bar {
  background: var(--gradient-primary);
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
}
.top-bar a { color: #fff; }
.top-bar a:hover { color: var(--secondary); }
.top-bar .info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 18px;
}
.top-bar .social-icons a {
  margin-left: 10px;
  font-size: 0.95rem;
}

/* ---------- Navbar ---------- */
.navbar-custom {
  background-color: var(--nav-bg) !important;
  box-shadow: var(--shadow-sm);
  padding: 14px 0;
  transition: all 0.3s ease;
}
.navbar-custom.scrolled {
  padding: 8px 0;
  background-color: var(--nav-bg) !important;
}
[data-theme="dark"] .navbar-custom {
  background-color: var(--nav-bg) !important;
  border-bottom: 1px solid var(--border-color);
}
.navbar-custom .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary) !important;
}
.navbar-custom .brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.brand-text small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
}

.navbar-custom .nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  padding: 10px 16px !important;
  position: relative;
  transition: color 0.25s;
}
.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--primary) !important;
}
.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
  width: 60%;
}

.theme-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  margin-left: 12px;
}
.theme-toggle:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(20deg);
}

.navbar-toggler {
  border: 2px solid var(--primary);
}
.navbar-toggler-icon-custom {
  color: var(--primary);
  font-size: 1.3rem;
}

/* ---------- Buttons ---------- */
.btn-primary-custom {
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: inline-block;
}
.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: #fff;
  filter: brightness(1.1);
}
.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}
.btn-outline-custom:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background-attachment: fixed;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 20px;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #fff;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.hero h1 .highlight {
  color: var(--secondary);
  font-style: italic;
}
.hero p.lead {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  max-width: 780px;
  margin: 0 auto 36px;
  color: #fdf3dc;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page hero (smaller) */
.page-hero {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px 20px 60px;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 14px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}
.page-hero .breadcrumb-custom {
  color: #fdf3dc;
  font-size: 0.95rem;
}
.page-hero .breadcrumb-custom a {
  color: var(--secondary);
}

/* ---------- Sections ---------- */
section {
  padding: 80px 0;
  position: relative;
}
.section-sm { padding: 50px 0; }
.section-title {
  text-align: center;
  margin-bottom: 56px;
}
.section-title .eyebrow {
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: block;
  font-family: 'Poppins', sans-serif;
}
.section-title h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 14px;
}
.section-title h2 .accent {
  color: var(--primary);
  font-style: italic;
}
.section-title p {
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

.bg-alt { background-color: var(--bg-secondary); }
.bg-alt-2 { background-color: var(--bg-tertiary); }

/* ---------- Cards ---------- */
.card-custom {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.card-custom::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.card-custom:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.card-custom:hover::before { transform: scaleX(1); }

.card-custom .icon-box {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.card-custom h4 { margin-bottom: 12px; font-size: 1.3rem; }
.card-custom p { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }

/* Image card */
.img-card {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease;
}
.img-card:hover { transform: translateY(-6px); }
.img-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.img-card:hover img { transform: scale(1.08); }
.img-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 34, 52, 0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #fff;
}
.img-card .overlay h5 { color: #fff; margin: 0; }

/* ---------- Stats ---------- */
.stats-section {
  background: var(--gradient-primary);
  color: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: rgba(212, 160, 23, 0.15);
  border-radius: 50%;
}
.stats-section::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -120px;
  width: 320px; height: 320px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}
.stat-item {
  text-align: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}
.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  font-family: 'Playfair Display', serif;
}
.stat-label {
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 8px;
  color: #fdf3dc;
}

/* ---------- Features/About ---------- */
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}
.about-feature .icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--gradient-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}
.about-feature h5 { margin-bottom: 4px; color: var(--primary); }
.about-feature p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 100%;
}
.testimonial-card .quote-icon {
  position: absolute;
  top: 20px; right: 26px;
  font-size: 3rem;
  color: var(--secondary);
  opacity: 0.3;
  font-family: serif;
  line-height: 1;
}
.testimonial-card p {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.testimonial-user {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-user img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--secondary);
}
.testimonial-user h6 { margin: 0; color: var(--primary); font-family: 'Poppins', sans-serif; }
.testimonial-user small { color: var(--text-muted); }

/* ---------- Gallery ---------- */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.gallery-filter-btn {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.gallery-filter-btn.active,
.gallery-filter-btn:hover {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: #fff;
}
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(184, 35, 46, 0.85), transparent 60%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
  transition: opacity 0.35s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item.hidden { display: none; }

/* ---------- Events timeline ---------- */
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 18px;
  align-items: center;
  transition: all 0.3s;
  height: 100%;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.event-date {
  flex-shrink: 0;
  width: 72px;
  height: 80px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.event-date .day { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.event-date .month { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.event-info h5 { margin-bottom: 6px; color: var(--primary); font-size: 1.1rem; }
.event-info p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }
.event-info .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.event-info .meta i { margin-right: 4px; color: var(--secondary); }

/* ---------- Faculty ---------- */
.faculty-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s;
  text-align: center;
}
.faculty-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.faculty-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.faculty-info { padding: 22px; }
.faculty-info h5 { color: var(--primary); margin-bottom: 4px; }
.faculty-info .role {
  color: var(--secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}
.faculty-info p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }
.faculty-socials {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.faculty-socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}
.faculty-socials a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* ---------- Admission ---------- */
.step-item {
  text-align: center;
  padding: 24px;
  position: relative;
}
.step-number {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-sm);
  font-family: 'Playfair Display', serif;
}
.step-item h5 { margin-bottom: 8px; }
.step-item p { color: var(--text-secondary); font-size: 0.92rem; margin: 0; }

/* ---------- Contact form ---------- */
.contact-info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  transition: all 0.3s;
}
.contact-info-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.contact-info-box .icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.contact-info-box h6 { color: var(--primary); margin-bottom: 4px; }
.contact-info-box p { margin: 0; color: var(--text-secondary); font-size: 0.92rem; }

.form-custom {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-custom .form-label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.92rem;
}
.form-custom .form-control,
.form-custom .form-select {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 12px 16px;
  transition: all 0.25s;
}
.form-custom .form-control:focus,
.form-custom .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184, 35, 46, 0.15);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}
.form-custom .form-control::placeholder { color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 70px 0 24px;
}
.footer h5 {
  color: var(--secondary);
  margin-bottom: 22px;
  font-size: 1.2rem;
}
.footer p, .footer a, .footer li {
  color: var(--footer-text);
  font-size: 0.92rem;
}
.footer a:hover { color: var(--secondary); }
.footer ul { padding-left: 0; list-style: none; }
.footer ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.footer ul li i {
  color: var(--secondary);
  margin-right: 10px;
  font-size: 0.8rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-brand .brand-logo {
  width: 52px; height: 52px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.6rem;
}
.footer-brand .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--footer-text) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.footer-social a:hover {
  background: var(--primary);
  color: #fff !important;
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-bottom a { color: var(--secondary); }

/* ---------- Animations ---------- */
.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(-40px); transition: all 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* =========================================================
   Hero Slider
   ========================================================= */
.hero-slider {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 1;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-slide.active {
  opacity: 1;
  z-index: 2;
}
.hero-slide .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  transition: transform 7s ease-out;
}
.hero-slide.active .slide-bg {
  transform: scale(1);
}
.hero-slide .slide-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}
.hero-slide .slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px 20px;
  text-align: center;
}
.hero-slide .slide-content > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-slide.active .slide-content > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.hero-slide.active .slide-content > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.hero-slide.active .slide-content > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.8s; }
.hero-slide.active .slide-content > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 1.1s; }

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 5;
  pointer-events: none;
}
.slider-btn {
  pointer-events: auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: scale(1.12);
}
.slider-indicators {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}
.slider-dot {
  width: 40px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.35s ease;
  overflow: hidden;
  position: relative;
}
.slider-dot.active {
  background: rgba(255, 255, 255, 0.3);
}
.slider-dot.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--secondary);
  animation: progress 6s linear forwards;
}
@keyframes progress {
  from { width: 0; }
  to { width: 100%; }
}

@media (max-width: 767px) {
  .hero-slider { min-height: 80vh; }
  .slider-btn { width: 42px; height: 42px; font-size: 0.95rem; }
  .slider-controls { padding: 0 12px; }
}

/* =========================================================
   Button ripple + shine
   ========================================================= */
.btn-primary-custom,
.btn-outline-custom,
.slider-btn,
.gallery-filter-btn,
.theme-toggle {
  position: relative;
  overflow: hidden;
}
.btn-primary-custom::before,
.btn-outline-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transition: left 0.6s ease;
}
.btn-primary-custom:hover::before,
.btn-outline-custom:hover::before {
  left: 100%;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.55);
  animation: rippleAnim 0.7s ease-out;
  pointer-events: none;
}
@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* =========================================================
   Enhanced card tilt + glow
   ========================================================= */
.card-custom {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}
.card-custom:hover {
  transform: translateY(-10px) rotateX(2deg);
  border-color: var(--secondary);
}
.card-custom .icon-box {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card-custom:hover .icon-box {
  transform: rotate(-8deg) scale(1.08);
}

.img-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(212, 160, 23, 0.25));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  pointer-events: none;
}
.img-card:hover::before { opacity: 1; }

/* Gallery item enhanced hover */
.gallery-item .gallery-overlay {
  background: linear-gradient(to top, rgba(184, 35, 46, 0.92) 0%, rgba(184, 35, 46, 0.4) 50%, transparent 100%);
  backdrop-filter: blur(2px);
}
.gallery-item img {
  transition: transform 0.2s ease-out, filter 0.6s ease;
}
.gallery-item:hover img {
  filter: hue-rotate(15deg) saturate(1.1);
}
.gallery-item {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}
.gallery-item:hover {
  transform: perspective(600px) rotateY(-4deg) rotateX(2deg) translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}
.gallery-item .gallery-overlay h5 {
  transform: translateY(20px);
  transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-overlay h5 { transform: translateY(0); }

/* =========================================================
   Animated gradient text
   ========================================================= */
.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* =========================================================
   Animated underline for section eyebrows
   ========================================================= */
.section-title .eyebrow {
  display: inline-block;
  position: relative;
}
.section-title .eyebrow::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width 0.6s ease, left 0.6s ease;
}
.section-title.visible .eyebrow::after,
.section-title .eyebrow.animate::after {
  width: 60px;
  left: calc(50% - 30px);
}

/* =========================================================
   Stagger reveal animations
   ========================================================= */
.stagger-reveal > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.stagger-reveal.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-reveal.visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-reveal.visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-reveal.visible > *:nth-child(4) { transition-delay: 0.35s; }
.stagger-reveal.visible > *:nth-child(5) { transition-delay: 0.45s; }
.stagger-reveal.visible > *:nth-child(6) { transition-delay: 0.55s; }
.stagger-reveal.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Floating decorations — enhanced
   ========================================================= */
.decoration-circle {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
}
.circle-1 {
  width: 140px; height: 140px;
  background: var(--gradient-gold);
  opacity: 0.12;
  top: 10%; right: 5%;
  animation: float 8s ease-in-out infinite;
}
.circle-2 {
  width: 200px; height: 200px;
  background: var(--gradient-primary);
  opacity: 0.10;
  bottom: 15%; left: 3%;
  animation: float 10s ease-in-out infinite reverse;
}
.circle-3 {
  width: 90px; height: 90px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  opacity: 0.10;
  top: 50%; right: 12%;
  animation: float 12s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  33% { transform: translateY(-24px) rotate(5deg); }
  66% { transform: translateY(-12px) rotate(-3deg); }
}

/* =========================================================
   Scroll progress bar
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-gold);
  z-index: 9999;
  transition: width 0.1s ease;
  box-shadow: 0 0 8px rgba(212, 160, 23, 0.6);
}

/* =========================================================
   Faculty card enhanced
   ========================================================= */
.faculty-card .faculty-socials a {
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.faculty-card:hover .faculty-socials a {
  transform: translateY(0);
}
.faculty-card .faculty-socials a:nth-child(1) { transition-delay: 0.1s; }
.faculty-card .faculty-socials a:nth-child(2) { transition-delay: 0.18s; }
.faculty-card .faculty-socials a:nth-child(3) { transition-delay: 0.26s; }
.faculty-card:hover .faculty-socials a {
  transform: translateY(-4px);
}

/* =========================================================
   Testimonial card shimmer
   ========================================================= */
.testimonial-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.08), transparent);
  transition: left 0.8s ease;
  pointer-events: none;
}
.testimonial-card:hover::after { left: 100%; }

/* =========================================================
   Event date pulse
   ========================================================= */
.event-date {
  transition: transform 0.3s ease;
}
.event-card:hover .event-date {
  transform: scale(1.05) rotate(-2deg);
}

/* =========================================================
   Navbar link hover glow
   ========================================================= */
.navbar-custom .nav-link {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.navbar-custom .nav-link:hover {
  text-shadow: 0 0 12px rgba(184, 35, 46, 0.35);
}

/* =========================================================
   Page hero parallax
   ========================================================= */
.page-hero {
  background-attachment: fixed;
}
@media (max-width: 767px) {
  .page-hero { background-attachment: scroll; }
}

/* =========================================================
   Form label animated underline
   ========================================================= */
.form-custom .form-label {
  position: relative;
  display: inline-block;
}
.form-custom .form-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width 0.3s ease;
}
.form-custom .form-control:focus ~ .form-label::after,
.form-custom .form-label:focus-within::after {
  width: 100%;
}

/* Focus ring for inputs */
.form-custom .form-control:focus,
.form-custom .form-select:focus {
  animation: focusPulse 0.4s ease;
}
@keyframes focusPulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 35, 46, 0.4); }
  100% { box-shadow: 0 0 0 8px rgba(184, 35, 46, 0); }
}

/* =========================================================
   Hero badge pulse
   ========================================================= */
.hero-badge {
  animation: badgePulse 2.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
  50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

/* =========================================================
   Stats number bounce
   ========================================================= */
.stat-number {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-item:hover .stat-number {
  transform: scale(1.1);
}

/* =========================================================
   Marquee pause on hover
   ========================================================= */
.notice-bar:hover .marquee {
  animation-play-state: paused;
}

/* =========================================================
   Back to top pulse when visible
   ========================================================= */
.back-to-top.show {
  animation: topPulse 2s ease-in-out infinite;
}
@keyframes topPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(184, 35, 46, 0.4); }
  50% { box-shadow: 0 6px 30px rgba(184, 35, 46, 0.7); }
}

/* =========================================================
   Footer link animated arrow
   ========================================================= */
.footer ul li {
  transition: transform 0.3s ease;
}
.footer ul li:hover {
  transform: translateX(6px);
}
.footer ul li:hover i {
  color: var(--primary) !important;
}

/* =========================================================
   CUSTOM ANIMATED CURSOR (desktop only)
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  body.custom-cursor {
    cursor: none;
  }
  body.custom-cursor a,
  body.custom-cursor button,
  body.custom-cursor input,
  body.custom-cursor textarea,
  body.custom-cursor select,
  body.custom-cursor label {
    cursor: none;
  }
}
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  transition: width 0.3s, height 0.3s, background 0.3s;
}
.cursor-ring {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.3s,
              background 0.3s,
              transform 0.08s linear;
}
body.custom-cursor.cursor-hover .cursor-ring {
  width: 64px;
  height: 64px;
  background: rgba(212, 160, 23, 0.25);
  border-color: var(--secondary);
}
body.custom-cursor.cursor-hover .cursor-dot {
  width: 4px;
  height: 4px;
}
body.custom-cursor.cursor-click .cursor-ring {
  width: 24px;
  height: 24px;
}
@media (max-width: 991px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* =========================================================
   3D MOUSE-TILT for cards
   ========================================================= */
.tilt-3d {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}
.tilt-3d .tilt-content {
  transform: translateZ(30px);
  transition: transform 0.3s ease;
}
.tilt-3d .tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.tilt-3d:hover .tilt-glare {
  opacity: 1;
}

/* =========================================================
   IMAGE TILT on mouse move
   ========================================================= */
.image-tilt {
  transition: transform 0.2s ease-out, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}
.image-tilt:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   SPINNING GRADIENT BORDER
   ========================================================= */
.gradient-border {
  position: relative;
  background: var(--bg-card);
  z-index: 1;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    var(--primary),
    var(--secondary),
    var(--accent),
    var(--primary)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  animation: borderSpin 4s linear infinite;
}
.gradient-border:hover::before {
  opacity: 1;
}
@keyframes borderSpin {
  to { transform: rotate(360deg); }
}

/* =========================================================
   IMAGE CLIP-PATH REVEAL ON SCROLL
   ========================================================= */
.clip-reveal {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.clip-reveal.revealed {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* =========================================================
   MAGNETIC BUTTONS (enhanced lift)
   ========================================================= */
.magnetic {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.3s ease;
  will-change: transform;
}

/* =========================================================
   FLOATING FORM LABELS
   ========================================================= */
.float-label {
  position: relative;
}
.float-label label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.25s ease;
  background: var(--bg-card);
  padding: 0 6px;
}
.float-label textarea + label {
  top: 20px;
  transform: none;
}
.float-label input:focus + label,
.float-label textarea:focus + label,
.float-label input:not(:placeholder-shown) + label,
.float-label textarea:not(:placeholder-shown) + label {
  top: 0;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  transform: translateY(-50%);
}

/* =========================================================
   NOISE TEXTURE OVERLAY
   ========================================================= */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
  mix-blend-mode: overlay;
}

/* =========================================================
   PARTICLES CANVAS
   ========================================================= */
.particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* =========================================================
   MORPH CARD (border-radius animation on hover)
   ========================================================= */
.morph-card {
  border-radius: 18px;
  transition: border-radius 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.4s ease,
              box-shadow 0.4s ease;
}
.morph-card:hover {
  border-radius: 40px 18px 40px 18px;
}

/* =========================================================
   SKEW HOVER
   ========================================================= */
.skew-hover {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.skew-hover:hover {
  transform: skew(-3deg, -1deg) scale(1.02);
}

/* =========================================================
   GLASSMORPHISM CARD
   ========================================================= */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: #fff;
}
[data-theme="dark"] .glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* =========================================================
   SCROLL-LINKED DECORATION ROTATION
   ========================================================= */
.rotate-on-scroll {
  transition: transform 0.1s linear;
}

/* =========================================================
   IMAGE OVERLAY — SLIDING BORDER
   ========================================================= */
.img-card::after {
  content: '';
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 40px;
  height: 3px;
  background: var(--secondary);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
  pointer-events: none;
}
.img-card:hover::after {
  width: 60%;
}

/* =========================================================
   GRADIENT BORDER ON HERO BADGE
   ========================================================= */
.hero-badge {
  position: relative;
  isolation: isolate;
}
.hero-badge::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    var(--secondary),
    var(--primary),
    var(--secondary)
  );
  z-index: -1;
  animation: borderSpin 6s linear infinite;
  filter: blur(4px);
  opacity: 0.6;
}

/* =========================================================
   STAGGER FADE FOR LIST ITEMS
   ========================================================= */
.stagger-list li {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-list.revealed li {
  opacity: 1;
  transform: translateX(0);
}
.stagger-list.revealed li:nth-child(1) { transition-delay: 0.05s; }
.stagger-list.revealed li:nth-child(2) { transition-delay: 0.12s; }
.stagger-list.revealed li:nth-child(3) { transition-delay: 0.19s; }
.stagger-list.revealed li:nth-child(4) { transition-delay: 0.26s; }
.stagger-list.revealed li:nth-child(5) { transition-delay: 0.33s; }
.stagger-list.revealed li:nth-child(6) { transition-delay: 0.40s; }
.stagger-list.revealed li:nth-child(7) { transition-delay: 0.47s; }

/* =========================================================
   HUE-ROTATE HOVER
   ========================================================= */
.hue-hover img {
  transition: filter 0.6s ease;
}
.hue-hover:hover img {
  filter: hue-rotate(20deg) saturate(1.15);
}

/* =========================================================
   ANIMATED NUMBER COUNTDOWN STYLE
   ========================================================= */
.stat-number {
  display: inline-block;
  background: linear-gradient(135deg, var(--secondary) 0%, #fff 50%, var(--secondary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 3s linear infinite;
}
@keyframes shine {
  to { background-position: 200% center; }
}

/* =========================================================
   HERO TEXT STROKE (for decorative effect on headings)
   ========================================================= */
.hero h1 {
  background: linear-gradient(135deg, #fff 0%, #fff 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* =========================================================
   SECTION DIVIDER — WAVE
   ========================================================= */
.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}
.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}
.wave-divider .shape-fill {
  fill: var(--bg-alt, var(--bg-secondary));
}

/* =========================================================
   IMAGE TILT — subtle perspective wrapper
   ========================================================= */
.tilt-wrap {
  perspective: 1000px;
}

/* =========================================================
   LINK UNDERLINE — ANIMATED FROM LEFT
   ========================================================= */
.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.link-underline:hover::after {
  width: 100%;
}

/* =========================================================
   CTA SECTION — MOVING GRADIENT BG
   ========================================================= */
.moving-gradient-bg {
  background: linear-gradient(-45deg,
    var(--primary),
    var(--primary-dark),
    var(--secondary),
    var(--primary));
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
}
@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s;
}
.back-to-top.show { display: flex; }
.back-to-top:hover { transform: translateY(-4px); }

/* Notice / Marquee */
.notice-bar {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 10px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}
.notice-bar .label {
  background: var(--gradient-primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.marquee {
  display: inline-block;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Responsive tweaks */
@media (max-width: 991px) {
  .navbar-custom .navbar-collapse {
    background: var(--nav-bg);
    padding: 16px;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: var(--shadow-md);
  }
  .theme-toggle { margin: 8px 0 0 0; }
}
@media (max-width: 767px) {
  section { padding: 56px 0; }
  .hero { min-height: 80vh; background-attachment: scroll; }
  .section-title { margin-bottom: 36px; }
  .stat-item { padding: 14px 8px; }
  .event-card { flex-direction: column; text-align: center; }
}
