/* =========================================================================
   bootstrap-theme.css — Bootstrap 5 + University layout overrides
   Load AFTER bootstrap.min.css, style.css, components.css
   ========================================================================= */

:root {
  --bs-primary: #0f172a;
  --bs-primary-rgb: 15, 23, 42;
  --bs-secondary: #1e40af;
  --bs-success: #0d9488;
  --bs-info: #38bdf8;
  --bs-warning: #f59e0b;
  --bs-body-font-family: 'Poppins', system-ui, sans-serif;
  --bs-body-color: #0f172a;
  --bs-body-bg: #ffffff;
  --bs-border-radius: 8px;
  --bs-border-radius-lg: 12px;
  --bs-link-color: #1e40af;
  --bs-link-hover-color: #0d9488;
}

[lang="ml"], .font-malayalam {
  font-family: 'Noto Sans Malayalam', 'Poppins', sans-serif;
}

/* Navbar */
.site-header .navbar {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.site-header .navbar-brand .brand-name {
  font-size: 1.15rem;
  line-height: 1.15;
}

.site-header .nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--theme-text) !important;
  padding: 0.45rem 0.85rem !important;
  border-radius: 999px;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--theme-secondary) !important;
  background: var(--theme-soft);
}

.site-header .nav-link.nav-cta {
  background: var(--theme-accent) !important;
  color: #fff !important;
  margin-left: 0.35rem;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.site-header .nav-link.nav-cta:hover {
  background: var(--theme-accent-hover) !important;
  color: #fff !important;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-stats-ribbon .hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--theme-line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 148, 136, 0.35);
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.65rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--theme-accent-light);
  color: var(--theme-accent);
  font-size: 1.35rem;
}

.stat-card .stat-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--theme-primary);
  font-family: var(--font-heading);
}

.stat-card .stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--theme-muted);
  margin-top: 0.15rem;
}

/* Section spacing with Bootstrap containers */
section {
  padding: 4rem 0;
}

section.section-alt {
  background: var(--theme-surface);
}

/* Cards */
.card.uni-card {
  border: 1px solid var(--theme-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.card.uni-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Forms — Bootstrap + custom */
.form-card {
  border-radius: var(--radius-lg);
}

.form-control, .form-select {
  border-radius: var(--radius);
  border-color: var(--theme-line);
  padding: 0.65rem 0.85rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--theme-secondary);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 95, 0.12);
}

.btn-primary {
  --bs-btn-bg: var(--theme-secondary);
  --bs-btn-border-color: var(--theme-secondary);
  --bs-btn-hover-bg: var(--theme-primary);
  --bs-btn-hover-border-color: var(--theme-primary);
  background: var(--theme-secondary);
  border-color: var(--theme-secondary);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.6rem 1.35rem;
}

.btn-light {
  font-weight: 700;
  border-radius: 999px;
}

/* Page hero */
.page-hero {
  padding: 3.5rem 0;
  color: #fff;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
}

/* Footer bootstrap grid */
.site-footer .footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.contact-info-card {
  background: #fff;
  border: 1px solid var(--theme-line);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.contact-info-card .ic {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--theme-soft);
  color: var(--theme-secondary);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Course toolbar */
.course-toolbar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
  .hero-stats-ribbon .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .course-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .hero-stats-ribbon .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* Bootstrap row layouts — avoid legacy CSS grid conflicts */
.vm-tiles.row,
#home-courses.row,
#home-testi.row,
#courses-grid.row,
#faculty-grid.row,
#gallery-grid.row,
#home-vision.row {
  display: flex;
}

.vm-tile {
  height: 100%;
}

.faculty-card.uni-card {
  padding: 1.75rem 1.25rem;
}

.faculty-card .faculty-bio {
  font-size: 0.9rem;
  color: var(--theme-muted);
  margin-top: 0.75rem;
}

.gallery-item {
  margin: 0;
}

.event-card.uni-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
}

.testi.uni-card {
  padding: 1.5rem;
}

.section-block {
  margin-bottom: 2.5rem;
}

.section-block .section-subtitle {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  color: var(--theme-primary);
}

.site-footer .social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: var(--transition);
}

.site-footer .social a:hover {
  background: var(--theme-accent);
  color: #fff;
}
