/* 
 * DKMV (Divya Kripa Maha Vidyalaya) Stylesheet 
 * Core Design System, Typography, Layouts & Animations
 */

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

/* ==========================================
   1. Design Tokens & CSS Variables
   ========================================== */
:root {
  /* Colors */
  --color-primary: #0b132b;          /* Deep rich academic navy */
  --color-primary-light: #1c2541;    /* Slate navy */
  --color-secondary: #c5a880;        /* Elegant academic gold/champagne */
  --color-secondary-dark: #b08d5c;   /* Darker gold accent */
  --color-secondary-light: #ebd8c0;  /* Soft cream gold */
  
  --color-bg-main: #f8fafc;          /* Off-white background */
  --color-bg-card: #ffffff;          /* Clean white cards */
  --color-text-dark: #1e293b;        /* Slate-800 for high readability */
  --color-text-muted: #64748b;       /* Slate-500 for descriptive text */
  --color-text-light: #f1f5f9;       /* Light neutral text for dark backgrounds */
  
  --color-border: #e2e8f0;           /* Soft border grey */
  --color-success: #10b981;          /* Emerald emerald success */
  --color-error: #ef4444;            /* Red alert */
  
  /* Gradients */
  --grad-navy: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
  --grad-gold: linear-gradient(135deg, #c5a880 0%, #b08d5c 100%);
  --grad-white: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --grad-glass: rgba(11, 19, 43, 0.85);

  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, Cambria, serif;

  /* Layout Constants */
  --max-width: 1200px;
  --header-height: 90px;
  --header-shrink-height: 70px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  
  /* Shadow Systems */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(11, 19, 43, 0.08), 0 4px 6px -2px rgba(11, 19, 43, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(11, 19, 43, 0.12), 0 10px 10px -5px rgba(11, 19, 43, 0.04);
  --shadow-gold: 0 4px 14px 0 rgba(197, 168, 128, 0.4);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   2. Reset & Global Styles
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-shrink-height) + 40px);
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-main);
  color: var(--color-text-dark);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary-light);
  border: 2px solid var(--color-bg-main);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* ==========================================
   3. Typography & Utility Classes
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

p {
  color: var(--color-text-muted);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--grad-gold);
  border-radius: var(--radius-sm);
}

.section-subtitle {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-secondary-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

/* Gradient Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--grad-gold);
  color: var(--color-primary);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(197, 168, 128, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-light);
  border: 2px solid var(--color-secondary);
}

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

.btn-navy {
  background: var(--grad-navy);
  color: var(--color-text-light);
  box-shadow: var(--shadow-sm);
}

.btn-navy:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 0.95;
}

/* ==========================================
   4. Announcement Ticker & Banners
   ========================================== */
/* Top News Ticker */
.news-ticker-container {
  background-color: var(--color-primary-light);
  color: var(--color-text-light);
  height: 40px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1001;
}

.ticker-label {
  background: var(--grad-gold);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  letter-spacing: 0.5px;
  box-shadow: 4px 0 10px rgba(0,0,0,0.2);
}

.ticker-wrap {
  width: 100%;
  padding-left: 180px;
  overflow: hidden;
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-slide 25s linear infinite;
}

.ticker:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-block;
  padding: 0 35px;
  font-size: 0.85rem;
  font-weight: 500;
}

.ticker-item span {
  color: var(--color-secondary);
  margin-right: 8px;
  font-weight: 700;
}

@keyframes ticker-slide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Admission Alert Banner */
.admission-banner {
  background: var(--grad-gold);
  color: var(--color-primary);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 999;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.admission-banner span.badge {
  background-color: var(--color-primary);
  color: var(--color-secondary-light);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(11, 19, 43, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(11, 19, 43, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(11, 19, 43, 0); }
}

/* ==========================================
   5. Header & Navigation Bar
   ========================================== */
header.sticky-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
}

header.sticky-header.shrunk {
  height: var(--header-shrink-height);
  box-shadow: var(--shadow-md);
  background-color: rgba(11, 19, 43, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* Toggle header colors when shrunk/dark navbar */
header.sticky-header.shrunk .logo-text h2 {
  color: #ffffff;
}
header.sticky-header.shrunk .logo-text span {
  color: var(--color-secondary);
}
header.sticky-header.shrunk nav ul li a {
  color: var(--color-text-light);
}
header.sticky-header.shrunk nav ul li a:hover {
  color: var(--color-secondary);
}
header.sticky-header.shrunk .mobile-menu-btn span {
  background-color: #ffffff;
}

header .navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--grad-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.logo-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: var(--transition-smooth);
}

.logo-text span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-secondary-dark);
  font-weight: 600;
  transition: var(--transition-smooth);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

nav ul li a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-dark);
  padding: 8px 0;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: var(--transition-smooth);
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: var(--color-secondary-dark);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Menu Burger Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

@media (max-width: 992px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-primary);
    padding: 40px 24px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  
  header.sticky-header.shrunk nav {
    top: var(--header-shrink-height);
    height: calc(100vh - var(--header-shrink-height));
    background-color: var(--color-primary);
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  
  nav ul li a {
    color: var(--color-text-light);
    font-size: 1.1rem;
  }
  
  /* Mobile-only action helper */
  .mobile-only-action {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 0 8px;
  }
  
  /* Keep Result Search button visible on mobile/tab but hide text (icon only) */
  .nav-actions .btn-search {
    padding: 0;
    font-size: 1.1rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-gold);
    color: var(--color-primary);
    box-shadow: var(--shadow-gold);
  }
  
  .nav-actions .btn-search span {
    display: none;
  }
}

/* Mobile-only action helper - default state for desktop */
.mobile-only-action {
  display: none;
}

/* ==========================================
   6. Hero Section & Counters
   ========================================= */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height) - 40px);
  background: var(--grad-navy);
  color: var(--color-text-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25; /* Sleek dark overlay blend */
  filter: grayscale(10%) contrast(110%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 19, 43, 0.6) 0%, rgba(11, 19, 43, 0.9) 100%);
  z-index: 2;
}

.hero-section .container {
  position: relative;
  z-index: 3;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(197, 168, 128, 0.15);
  border: 1px solid rgba(197, 168, 128, 0.3);
  color: var(--color-secondary-light);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-badge i {
  color: var(--color-secondary);
}

.hero-content h1 {
  font-size: 4rem;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-content h1 span {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-secondary);
  font-weight: 700;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
}

.hero-desc {
  font-size: 1.2rem;
  color: rgba(241, 245, 249, 0.85);
  margin-bottom: 36px;
  max-width: 600px;
}

@media (max-width: 992px) {
  .hero-desc {
    margin: 0 auto 36px;
  }
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .hero-actions {
    justify-content: center;
  }
}

/* Hero Widgets/Counters */
.hero-counters-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  box-shadow: var(--shadow-lg);
  animation: fadeInRight 1s ease-out;
}

@media (max-width: 576px) {
  .hero-counters-card {
    grid-template-columns: 1fr;
  }
}

.counter-item {
  text-align: center;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.counter-item:nth-child(even) {
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.counter-item:nth-last-child(-n+2) {
  border-bottom: none;
}

@media (max-width: 576px) {
  .counter-item:nth-child(even) {
    border-left: none;
  }
  .counter-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }
  .counter-item:last-child {
    border-bottom: none !important;
  }
}

.counter-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  display: block;
  margin-bottom: 4px;
}

.counter-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(241, 245, 249, 0.7);
  font-weight: 600;
}

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

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================
   7. About College & Prospectus
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-text h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.highlight-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.highlight-box i {
  color: var(--color-secondary-dark);
  font-size: 1.4rem;
  margin-top: 3px;
}

.highlight-box h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.highlight-box p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-card img {
  width: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.about-image-card:hover img {
  transform: scale(1.05);
}

.founder-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(11, 19, 43, 0.9);
  backdrop-filter: blur(8px);
  border-left: 4px solid var(--color-secondary);
  color: var(--color-text-light);
  padding: 16px 20px;
  border-radius: var(--radius-md);
}

.founder-tag h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.founder-tag p {
  color: var(--color-secondary-light);
  font-size: 0.8rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================
   8. Mission, Vision, and Values
   ========================================== */
.mv-section {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  position: relative;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .mv-grid {
    grid-template-columns: 1fr;
  }
}

.mv-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 48px;
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
  position: relative;
}

.mv-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
  border-color: rgba(197, 168, 128, 0.25);
}

.mv-icon {
  width: 64px;
  height: 64px;
  background: var(--grad-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.mv-card h3 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 16px;
}

.mv-card p {
  color: rgba(241, 245, 249, 0.8);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Values Core Section */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 992px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.value-card {
  background-color: var(--color-bg-card);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition-smooth);
  border: 1px solid var(--color-border);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}

.value-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(197, 168, 128, 0.1);
  color: var(--color-secondary-dark);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  transition: var(--transition-smooth);
}

.value-card:hover .value-icon {
  background: var(--grad-gold);
  color: var(--color-primary);
}

.value-card h4 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==========================================
   9. Courses Grid Section
   ========================================== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

.course-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}

.course-header {
  position: relative;
  height: 180px;
  background: var(--grad-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 24px;
}

.course-header img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.course-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 19, 43, 0.8) 0%, rgba(197, 168, 128, 0.4) 100%);
}

.course-header h3 {
  color: #ffffff;
  font-size: 1.6rem;
  z-index: 2;
  text-align: center;
}

.course-body {
  padding: 32px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-secondary-dark);
}

.course-body p {
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.course-info-extended {
  display: none;
  background-color: var(--color-bg-main);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border-left: 3px solid var(--color-secondary);
  font-size: 0.85rem;
  animation: fadeIn 0.3s ease;
}

.course-info-extended ul {
  list-style: none;
  margin-top: 8px;
}

.course-info-extended ul li {
  margin-bottom: 4px;
  padding-left: 14px;
  position: relative;
}

.course-info-extended ul li::before {
  content: '•';
  color: var(--color-secondary-dark);
  position: absolute;
  left: 0;
}

.course-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

/* ==========================================
   10. Faculty & Campus Section
   ========================================== */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .faculty-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .faculty-grid {
    grid-template-columns: 1fr;
  }
}

.faculty-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: var(--transition-smooth);
}

.faculty-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}

.faculty-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 32px auto 16px;
  background: var(--grad-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-size: 2.2rem;
  font-family: var(--font-serif);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--color-bg-main);
  transition: var(--transition-smooth);
}

.faculty-card:hover .faculty-avatar {
  background: var(--grad-gold);
  color: var(--color-primary);
  transform: scale(1.05);
}

.faculty-card h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.faculty-card .role {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-secondary-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.faculty-card .dept {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 19, 43, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: var(--transition-smooth);
  padding: 16px;
  text-align: center;
}

.gallery-overlay i {
  font-size: 1.8rem;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.gallery-overlay span {
  font-weight: 600;
  font-size: 0.95rem;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ==========================================
   11. Statistics Counter Section
   ========================================== */
.stats-banner {
  background: var(--grad-navy);
  color: var(--color-text-light);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-box {
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-secondary);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: rgba(241, 245, 249, 0.6);
  letter-spacing: 1px;
}

/* ==========================================
   12. Testimonials Carousel
   ========================================== */
.testimonials-section {
  background-color: var(--color-bg-main);
}

.testimonials-wrapper {
  max-width: 800px;
  margin: 40px auto 0;
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  min-width: 100%;
  padding: 16px;
  box-sizing: border-box;
}

.testimonial-card {
  background-color: var(--color-bg-card);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  text-align: center;
  position: relative;
}

.testimonial-card i.quote-icon {
  font-size: 3rem;
  color: rgba(197, 168, 128, 0.2);
  position: absolute;
  top: 24px;
  left: 32px;
}

.testimonial-stars {
  color: var(--color-secondary-dark);
  margin-bottom: 16px;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text-dark);
  margin-bottom: 24px;
}

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

.author-info h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
}

.author-info p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-border);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.control-dot.active {
  background-color: var(--color-secondary-dark);
  transform: scale(1.2);
}

/* ==========================================
   13. Contact Form & Google Map
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

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

.info-item {
  display: flex;
  gap: 20px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(11, 19, 43, 0.05);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.info-content h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.info-content p, .info-content a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.info-content a:hover {
  color: var(--color-secondary-dark);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-3px);
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  height: 250px;
}

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

/* Contact Form */
.contact-form-panel {
  background-color: var(--color-bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-main);
  transition: var(--transition-smooth);
  color: var(--color-text-dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-secondary-dark);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

/* Alert Boxes */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 24px;
  border-left: 4px solid transparent;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #065f46;
  border-left-color: var(--color-success);
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: #991b1b;
  border-left-color: var(--color-error);
}

/* ==========================================
   14. Footer Section
   ========================================== */
footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(241, 245, 249, 0.7);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.footer-links h4, .footer-contact h4 {
  font-family: var(--font-sans);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h4::after, .footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-secondary);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links ul li a {
  color: rgba(241, 245, 249, 0.75);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links ul li a::before {
  content: '→';
  color: var(--color-secondary);
  transition: var(--transition-smooth);
}

.footer-links ul li a:hover {
  color: var(--color-secondary-light);
  padding-left: 4px;
}

.footer-contact p {
  color: rgba(241, 245, 249, 0.75);
  font-size: 0.95rem;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-contact p i {
  color: var(--color-secondary);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(241, 245, 249, 0.5);
}

/* ==========================================
   15. Dialog Modals & Lightbox
   ========================================== */
/* Result Search Modal Overlay */
dialog[closedby="any"] {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0;
  width: 90%;
  max-width: 600px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-bg-card);
  z-index: 10000;
  animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalScaleIn {
  from { transform: translate(-50%, -40%) scale(0.9); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

dialog::backdrop {
  background-color: rgba(11, 19, 43, 0.75);
  backdrop-filter: blur(8px);
}

/* Fallback backdrop when using dialog polyfill or plain overlay class */
.dialog-backdrop-fallback {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 19, 43, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
}

.modal-header {
  background: var(--grad-navy);
  color: var(--color-text-light);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  color: #ffffff;
  font-size: 1.4rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: var(--color-secondary);
}

.modal-body {
  padding: 32px;
}

.modal-body .form-group-search {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

/* Result Sheet Display */
.result-display-box {
  margin-top: 24px;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: none;
  animation: fadeIn 0.4s ease;
}

.student-gradecard {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-bg-main);
  box-shadow: var(--shadow-sm);
}

.gradecard-header {
  background-color: var(--color-primary-light);
  color: #ffffff;
  padding: 16px 20px;
  border-bottom: 2px solid var(--color-secondary);
}

.gradecard-header h4 {
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
}

.gradecard-header p {
  color: var(--color-secondary-light);
  font-size: 0.8rem;
  margin-top: 2px;
}

.gradecard-details {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--color-border);
}

.gradecard-details div {
  font-size: 0.9rem;
}

.gradecard-details strong {
  color: var(--color-primary);
}

.gradecard-grades {
  padding: 20px;
  background-color: #ffffff;
}

.grade-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.9rem;
}

.grade-row:last-child {
  border-bottom: none;
}

.grade-row.total {
  font-weight: 700;
  color: var(--color-primary);
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
  padding-top: 12px;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 19, 43, 0.95);
  z-index: 11000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-content {
  max-width: 85%;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 3px solid #ffffff;
}

.lightbox-caption {
  color: var(--color-text-light);
  margin-top: 16px;
  font-weight: 600;
  font-size: 1.1rem;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  color: var(--color-secondary);
}

/* ==========================================
   16. CSS Scroll-Driven Animations & Media Queries
   ========================================= */
/* Progress Scroll Indicator at Top of Page */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--grad-gold);
  width: 0%;
  z-index: 1002;
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    /* Page progress bar */
    .scroll-progress-bar {
      width: 100%;
      animation: progress-grow auto linear both;
      animation-timeline: scroll(root);
    }
    
    @keyframes progress-grow {
      from { width: 0%; }
      to { width: 100%; }
    }
  }
  
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    /* Standard Fade & Scroll Reveal */
    @keyframes reveal-fade-in {
      from { opacity: 0; transform: translateY(50px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    .scroll-reveal {
      animation: reveal-fade-in auto cubic-bezier(0.25, 1, 0.5, 1) both;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
  }
}
