/* ==========================================================================
   Seventh-Day Adventist Matric & ICSE Higher Secondary School, Pulierranghy
   Official Design System & Stylesheet (style.css)
   Colors: #010080 (Royal Navy), #1456be (Cobalt Blue), #f5b300 (Gold)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Color Palette */
  --primary: #010080;
  --primary-dark: #00005a;
  --primary-light: #1210a6;
  --cobalt: #1456be;
  --cobalt-light: #256fe6;
  --accent-gold: #f5b300;
  --accent-gold-hover: #e0a300;
  --accent-red: #dc2626;
  
  /* Neutral Colors */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  --border-focus: #1456be;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px rgba(1, 0, 128, 0.06), 0 1px 2px rgba(1, 0, 128, 0.04);
  --shadow-md: 0 4px 12px rgba(1, 0, 128, 0.08), 0 2px 4px rgba(1, 0, 128, 0.04);
  --shadow-lg: 0 10px 25px rgba(1, 0, 128, 0.12), 0 4px 10px rgba(1, 0, 128, 0.06);
  --shadow-xl: 0 20px 35px rgba(1, 0, 128, 0.16), 0 8px 16px rgba(1, 0, 128, 0.08);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--cobalt);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   1. Utility Top Bar
   ========================================================================== */
.top-bar {
  background: var(--primary);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.top-bar a {
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.top-bar a svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.top-bar a:hover {
  color: var(--accent-gold);
}

.affiliation-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent-gold);
  border: 1px solid rgba(245, 179, 0, 0.3);
  white-space: nowrap;
}

.top-bar .affiliation-badge {
  margin-left: auto;
}

.staff-login-link {
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(20, 86, 190, 0.6);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.staff-login-link:hover {
  background: var(--accent-gold);
  color: var(--primary);
}

/* ==========================================================================
   2. Main Header & Navigation
   ========================================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  position: relative;
  gap: 0.75rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
  flex: 0 1 auto;
}

.brand-logo {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--cobalt) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  box-shadow: 0 4px 10px rgba(1, 0, 128, 0.25);
  border: 2px solid var(--accent-gold);
  flex-shrink: 0;
  font-weight: 800;
  font-family: var(--font-heading);
}

.brand-logo-img {
  height: 52px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.04);
}

.brand-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--cobalt);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 1px;
  white-space: nowrap;
}

.brand-estd {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  align-items: center;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.38rem 0.52rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(20, 86, 190, 0.08);
}

.btn-apply-header {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #e5a400 100%);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.42rem 0.92rem;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 10px rgba(245, 179, 0, 0.3);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 0.35rem;
  transition: all var(--transition-fast);
  margin-left: 0.25rem;
  flex-shrink: 0;
}

.btn-apply-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(245, 179, 0, 0.45);
  background: linear-gradient(135deg, #ffd000 0%, var(--accent-gold) 100%);
}

.mobile-menu-btn {
  display: none;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
  background: rgba(1, 0, 128, 0.08);
  border-color: rgba(1, 0, 128, 0.2);
}

/* ==========================================================================
   3. Breaking News Marquee
   ========================================================================== */
.news-marquee-bar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--cobalt) 100%);
  color: #fff;
  padding: 0.45rem 0;
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  border-bottom: 2px solid var(--accent-gold);
}

.news-marquee-label {
  background: var(--accent-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.marquee-content-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.marquee-text {
  display: inline-block;
  padding-left: 100%;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-text:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-block;
  margin-right: 3rem;
  color: #f8fafc;
}

.marquee-item a {
  color: var(--accent-gold);
  text-decoration: underline;
  margin-left: 0.5rem;
}

@keyframes marquee-scroll {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 560px;
  background: linear-gradient(135deg, rgba(1, 0, 128, 0.88) 0%, rgba(20, 86, 190, 0.82) 100%),
              url('../assets/images/Seventh-Day_Adventist_School_Entrance_Gate.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 4.5rem 0;
}

.hero-overlay-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 179, 0, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 2.85rem;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-description {
  font-size: 1.12rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary-hero {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #e0a300 100%);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 179, 0, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-primary-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(245, 179, 0, 0.55);
  color: var(--primary);
}

.btn-secondary-hero {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-secondary-hero:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-3px);
}

/* Hero Quick Highlights Card */
.hero-card-floating {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--text-dark);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
}

.hero-card-floating::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-gold) 100%);
  border-radius: 4px 4px 0 0;
}

.hero-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-body);
}

.hero-feature-icon {
  width: 24px;
  height: 24px;
  background: rgba(20, 86, 190, 0.12);
  color: var(--cobalt);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  margin-top: 2px;
}

/* ==========================================================================
   5. Key Statistics Metrics Bar
   ========================================================================== */
.stats-strip {
  background: var(--primary);
  color: #fff;
  padding: 2.25rem 0;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  text-align: center;
  max-width: 1040px;
  margin: 0 auto;
}

.stat-item {
  padding: 0 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Section Headers & Common Layout
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 1040px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  color: var(--cobalt);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  background: rgba(20, 86, 190, 0.08);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(1.8rem, 2.4vw, 2.25rem);
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 800;
  text-wrap: balance;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

/* ==========================================================================
   6. Courses of Study Section (Inspired by SDA Tenkasi)
   ========================================================================== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.course-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cobalt);
}

.course-card-header {
  padding: 2rem 2rem 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(1, 0, 128, 0.04) 0%, rgba(20, 86, 190, 0.08) 100%);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.course-icon-badge {
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: var(--accent-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(1, 0, 128, 0.2);
}

.course-card-title {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.course-card-grades {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cobalt);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-card-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-card-text {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.course-highlights-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.course-highlights-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

.course-highlights-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cobalt);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.6;
}

.course-highlights-list li strong {
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.25rem;
}

/* Document Checklist Specific (Admission Page) */
.doc-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doc-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.doc-checklist-item:hover {
  background: #f0f7ff;
  border-color: #bfdbfe;
  transform: translateX(3px);
}

.doc-checklist-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: #dbeafe;
  color: var(--cobalt);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 2px;
}

.doc-checklist-content {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-body);
  flex: 1;
}

.doc-checklist-content strong {
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.35rem;
}

.admission-checklist-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.course-card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.course-card-link:hover {
  color: var(--cobalt);
  gap: 0.6rem;
}

/* ==========================================================================
   7. Higher Secondary 4 Streams Matrix
   ========================================================================== */
.streams-table-wrapper {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.streams-table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.streams-table-wrapper::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 999px;
}

.streams-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 999px;
}

.streams-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.streams-table th {
  background: var(--primary);
  color: #fff;
  padding: 1.15rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.streams-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
  vertical-align: top;
}

.streams-table tr:last-child td {
  border-bottom: none;
}

.streams-table tr:hover {
  background-color: rgba(20, 86, 190, 0.03);
}

.stream-name-cell {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.05rem;
}

.stream-tag-pill {
  display: inline-block;
  background: rgba(20, 86, 190, 0.1);
  color: var(--cobalt);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.3rem;
}

.stream-subjects-list {
  color: var(--text-dark);
  font-weight: 500;
}

.stream-careers {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   8. Why Choose Us (5 Pillars)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.85rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-gold);
}

.pillar-icon-box {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem auto;
  background: linear-gradient(135deg, rgba(1, 0, 128, 0.08) 0%, rgba(20, 86, 190, 0.15) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 800;
}

.pillar-title {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.pillar-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   9. Meet Our Principal & SEIU Network (Inspired by SDA Vellore)
   ========================================================================== */
.principal-section-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  padding: 2.75rem;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2.25rem 3rem;
  align-items: start;
}

.principal-photo-col {
  width: 100%;
  max-width: 420px;
  min-height: 480px;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(1, 0, 128, 0.14);
  background: var(--primary);
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  padding: 0;
  color: #fff;
}

.principal-photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.principal-badge-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(1, 0, 77, 0.95) 0%, rgba(1, 0, 77, 0.85) 75%, transparent 100%);
  padding: 1.25rem 1.25rem 1.15rem 1.25rem;
  border-left: 4px solid var(--accent-gold);
}

.principal-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.principal-designation {
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.principal-message-col {
  padding: 0;
}

.quote-mark {
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(20, 86, 190, 0.2);
  font-family: serif;
  display: block;
  margin-bottom: -1rem;
}

.principal-message-text {
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 0.5rem;
  white-space: pre-line;
  font-style: normal;
}

.ellen-white-banner {
  grid-column: 1 / -1;
  width: 100%;
  background: linear-gradient(135deg, rgba(1, 0, 128, 0.04) 0%, rgba(20, 86, 190, 0.08) 100%);
  border-left: 5px solid var(--cobalt);
  padding: 1.6rem 2.25rem;
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
  box-shadow: 0 4px 16px rgba(1, 0, 128, 0.04);
}

.ellen-white-quote {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.7;
  font-style: italic;
}

.ellen-white-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

/* ==========================================================================
   10. Campus Facilities Gallery Showcase
   ========================================================================== */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.facility-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.facility-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.facility-thumb-box {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.facility-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.facility-card:hover .facility-thumb-box img {
  transform: scale(1.06);
}

.facility-badge-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(1, 0, 128, 0.85);
  color: var(--accent-gold);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.facility-body {
  padding: 1.5rem;
}

.facility-title {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.facility-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Campus News & Events Posts Grid
   ========================================================================== */
.news-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 992px) {
  .news-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .news-posts-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-card-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #0f172a;
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.news-card:hover .news-card-thumb img {
  transform: scale(1.05);
}

.news-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.news-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.news-card-title {
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.news-card-snippet {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.news-card-link {
  color: var(--cobalt);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: color var(--transition-fast);
  margin-top: auto;
}

.news-card-link:hover {
  color: var(--primary);
}

/* ==========================================================================
   11. High-Speed 0 KB YouTube Facade
   ========================================================================== */
.video-showcase-container {
  max-width: 900px;
  margin: 0 auto;
}

.youtube-facade {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
}

.youtube-facade img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-normal);
}

.youtube-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  background: var(--accent-red);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.7);
  transition: all var(--transition-fast);
  z-index: 2;
}

.youtube-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #fff;
  margin-left: 5px;
}

.youtube-facade:hover .youtube-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: #b91c1c;
}

.youtube-facade iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   12. Frictionless Tri-Channel Admission CTA Strip
   ========================================================================== */
.admission-cta-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--cobalt) 100%);
  color: #fff;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.admission-cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.admission-cta-title {
  font-size: 2.25rem;
  color: #fff;
  margin-bottom: 1rem;
}

.admission-cta-title span {
  color: var(--accent-gold);
}

.admission-cta-text {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.admission-channels-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-cta-online {
  background: var(--accent-gold);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: 0 6px 18px rgba(245, 179, 0, 0.4);
}

.btn-cta-online:hover {
  background: #ffd000;
  transform: translateY(-2px);
  color: var(--primary);
}

.btn-cta-wa {
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-cta-wa:hover {
  background: #20ba5a;
  color: #fff;
  transform: translateY(-2px);
}

.btn-cta-pdf {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-cta-pdf:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   13. Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: all var(--transition-normal);
  animation: pulse-wa 2.5s infinite;
}

.floating-whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08);
  color: #fff;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   14. Direct Online Enquiry Modal (No Sign-Up)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 0, 128, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 95%;
  max-height: 94vh;
  overflow-y: auto;
  scrollbar-width: thin;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  position: relative;
}

@media (min-height: 520px) {
  .modal-card {
    overflow-y: hidden;
  }
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
}

.modal-title {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.15rem;
  font-weight: 700;
}

.modal-subtitle {
  font-size: 0.78rem;
  color: var(--accent-gold);
}

.modal-close-btn {
  position: absolute;
  top: 0.65rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.modal-body {
  padding: 0.85rem 1.25rem 0.95rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 0.5rem;
}

.form-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: var(--text-dark);
  background-color: #fff;
  transition: border-color var(--transition-fast);
  box-sizing: border-box;
}

.modal-card .form-input,
.modal-card .form-select {
  height: 34px;
  padding: 0.35rem 0.6rem;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(20, 86, 190, 0.15);
}

.btn-submit-enquiry {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--cobalt) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(1, 0, 128, 0.22);
  transition: all var(--transition-fast);
  margin-top: 0.15rem;
}

.btn-submit-enquiry:hover {
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--primary) 100%);
  box-shadow: 0 6px 16px rgba(1, 0, 128, 0.35);
}

/* ==========================================================================
   Anti-Bot Security Captcha Box (Institutional Grade)
   ========================================================================== */
.captcha-single-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.5rem;
}

.captcha-inline-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.captcha-challenge-inline,
.captcha-challenge {
  background: linear-gradient(135deg, #01004d, #1456be);
  color: #ffffff;
  font-family: 'Courier New', Courier, monospace, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  user-select: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.captcha-input-inline {
  flex: 1;
  min-width: 80px;
  padding: 0.25rem 0.55rem !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  height: 32px !important;
  box-sizing: border-box !important;
}

.captcha-input-inline:focus {
  border-color: var(--cobalt) !important;
  box-shadow: 0 0 0 2px rgba(20, 86, 190, 0.15) !important;
}

.captcha-verification-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
}

.captcha-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.captcha-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.captcha-label svg {
  color: var(--cobalt);
}

.btn-captcha-refresh {
  background: transparent;
  border: none;
  color: var(--cobalt);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.btn-captcha-refresh:hover {
  background: #eff6ff;
  color: var(--primary);
}

.captcha-body {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.captcha-input-wrap {
  flex: 1;
}

.captcha-input {
  padding: 0.35rem 0.65rem !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  height: 32px !important;
}

.captcha-input:focus {
  border-color: var(--cobalt) !important;
  box-shadow: 0 0 0 3px rgba(20, 86, 190, 0.15) !important;
}

.captcha-error-msg {
  color: #dc2626;
  font-size: 0.74rem;
  font-weight: 600;
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* ==========================================================================
   15. 1-Click Social Share Bar Component
   ========================================================================== */
.share-bar-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin: 1.5rem 0;
}

.share-bar-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-share-wa {
  background: #25d366;
  color: #fff;
}

.btn-share-fb {
  background: #1877f2;
  color: #fff;
}

.btn-share-copy {
  background: var(--bg-alt);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}

.btn-share:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   16. Footer
   ========================================================================== */
.site-footer {
  background: #01004d;
  color: #cbd5e1;
  padding: 4rem 0 1.25rem 0;
  border-top: 4px solid var(--accent-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col-title {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-about-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  color: #cbd5e1;
}

.footer-affiliation-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.footer-affiliation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 179, 0, 0.35);
  margin: 0;
  white-space: nowrap;
}

.footer-tech-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold);
  background: rgba(245, 179, 0, 0.12);
  border: 1px solid rgba(245, 179, 0, 0.35);
  text-decoration: none;
  transition: all var(--transition-fast);
  margin: 0;
  white-space: nowrap;
}

.footer-tech-partner-badge:hover {
  background: var(--accent-gold);
  color: #01004d;
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

.footer-bottom-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 1.25rem;
  /* Safe clearance on the right so the floating WhatsApp button never covers or obscures the Kenfra branding */
  padding-right: 6.5rem;
}

.footer-kenfra-ad {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  font-size: 0.86rem;
  color: #cbd5e1;
}

.kenfra-credit-text {
  color: #94a3b8;
}

.kenfra-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.kenfra-brand-badge {
  background: linear-gradient(135deg, rgba(245, 179, 0, 0.22), rgba(245, 179, 0, 0.08));
  border: 1px solid rgba(245, 179, 0, 0.55);
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 1.2px;
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.kenfra-brand-link:hover .kenfra-brand-badge {
  background: var(--accent-gold);
  color: #01004d;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 14px rgba(245, 179, 0, 0.55);
  transform: translateY(-1px);
}

/* ==========================================================================
   17. Responsive Media Queries
   ========================================================================== */
@media (max-width: 1080px) {
  .mobile-menu-btn {
    display: flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    padding: 1.25rem 1.5rem 1.75rem;
    box-shadow: 0 16px 32px rgba(1, 0, 128, 0.16), 0 6px 12px rgba(1, 0, 128, 0.08);
    border-top: 2px solid var(--accent-gold);
    border-bottom: 4px solid var(--primary);
    z-index: 1001;
  }
  .main-nav.active {
    display: block;
    animation: navSlideDown 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
  }
  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    border-bottom: 1px solid #f1f5f9;
    border-radius: var(--radius-sm);
  }
  .nav-link:hover, .nav-link.active {
    background: rgba(1, 0, 128, 0.06);
    color: var(--primary);
    font-weight: 700;
    padding-left: 1.25rem;
  }
  .btn-apply-header {
    width: 100%;
    justify-content: center;
    margin: 1rem 0 0 0;
    padding: 0.85rem;
    font-size: 0.95rem;
  }
  .hero-overlay-grid, .admission-cta-grid, .admission-checklist-grid {
    grid-template-columns: 1fr;
  }
  .principal-section-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.75rem;
  }
  .principal-photo-col {
    position: static;
    width: 100%;
    max-width: 100%;
    height: 380px;
    max-height: 380px;
    min-height: 300px;
  }
  .ellen-white-banner {
    padding: 1.25rem 1.25rem;
    margin-top: 0;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat-item:nth-child(3) {
    border-right: none;
  }
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  /* Top Bar: Exactly 2 Balanced Lines on Tablet & Mobile */
  .top-bar {
    padding: 0.45rem 0;
  }
  .top-bar-container {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 0.35rem 0.75rem !important;
    width: 100% !important;
  }
  .top-tel-link {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    font-size: 0.76rem !important;
    white-space: nowrap !important;
  }
  .top-office-link {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    font-size: 0.76rem !important;
    white-space: nowrap !important;
  }
  .top-email-link {
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    font-size: 0.75rem !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .top-bar .affiliation-badge {
    display: none !important;
  }
  .staff-login-link {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: end !important;
    margin-left: 0 !important;
    font-size: 0.72rem !important;
    padding: 0.2rem 0.55rem !important;
    white-space: nowrap !important;
  }

  /* Header Branding */
  .brand-wrapper {
    gap: 0.6rem;
    max-width: calc(100% - 50px);
  }
  .brand-logo-img {
    height: 46px;
    width: auto;
    max-width: 78px;
  }
  .brand-name {
    font-size: 0.98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-subtitle {
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-estd {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-item {
    border-right: none;
    padding: 0.75rem;
  }
  .courses-grid, .facilities-grid, .pillars-grid {
    grid-template-columns: 1fr;
  }
  .form-group-row {
    grid-template-columns: 1fr;
  }
  .form-input, .form-select, .form-textarea {
    font-size: 16px; /* Prevents iOS Safari auto-zoom on form focus */
  }
  .site-footer {
    padding: 2.75rem 0 1.25rem 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
  }
  .footer-bottom-strip {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 4.5rem;
    gap: 0.85rem;
  }
  .floating-whatsapp-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .site-header .container {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }
  .brand-wrapper {
    gap: 0.45rem;
    max-width: calc(100% - 46px);
  }
  .brand-logo-img {
    height: 38px;
    width: auto;
    max-width: 62px;
  }
  .brand-name {
    font-size: 0.86rem;
    line-height: 1.15;
  }
  .brand-subtitle {
    font-size: 0.58rem;
    letter-spacing: 0.2px;
  }
  .mobile-menu-btn {
    width: 38px;
    height: 38px;
    font-size: 1.35rem;
  }
  .top-bar-contact {
    gap: 0.45rem;
  }
  .top-bar-contact a {
    font-size: 0.7rem;
  }
  .hero-title {
    font-size: 1.65rem;
    line-height: 1.2;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .btn-primary-hero, .btn-secondary-hero {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.25rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .modal-dialog {
    padding: 1.25rem;
    margin: 0.75rem;
  }
  .table-responsive,
  .streams-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .streams-table {
    min-width: 580px;
  }
  .news-marquee-bar {
    font-size: 0.78rem;
  }
  .news-marquee-label {
    padding: 0.2rem 0.45rem;
    font-size: 0.7rem;
  }
}


/* ==========================================================================
   Modern Clean 2-Row Filter Card (Shared by News & Gallery)
   ========================================================================== */
.filter-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  margin-bottom: 2.5rem;
  overflow: hidden;
}

/* Row 1: Category Filter Pills (Auto-wrapping on Desktop, Smooth Touch-Swipe on Mobile) */
.filter-card-header {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  background: #fafbfc;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .filter-card-header {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 0.85rem;
  }
}

.filter-card-header::-webkit-scrollbar {
  height: 4px;
}
.filter-card-header::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.45rem 1.1rem;
  border-radius: 30px;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.filter-pill:hover {
  color: var(--primary);
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.filter-pill.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--cobalt) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(1, 0, 128, 0.22);
}

.filter-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.filter-pill:not(.active) .filter-pill-badge {
  background: #f1f5f9;
  color: #64748b;
}

.filter-pill.active .filter-pill-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Row 2: Search, Dropdowns, and Results Counter */
.filter-card-toolbar {
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: #ffffff;
}

.filter-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 380px;
}

.filter-search-input {
  width: 100%;
  padding: 0.6rem 2.2rem 0.6rem 2.35rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #1e293b;
  background: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-search-input:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(20, 86, 190, 0.12);
}

.filter-search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.filter-search-clear {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #e2e8f0;
  color: #64748b;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.filter-search-clear:hover {
  background: #cbd5e1;
  color: #1e293b;
}

.filter-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-dropdown-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-dropdown-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.filter-select {
  padding: 0.52rem 2rem 0.52rem 0.85rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-select:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(20, 86, 190, 0.12);
}

.filter-counter-badge {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
  background: #f1f5f9;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.filter-counter-badge strong {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 768px) {
  .filter-card-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-search-box {
    max-width: 100%;
    min-width: 100%;
  }
  .filter-toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .filter-dropdown-group {
    flex: 1;
  }
  .filter-select {
    width: 100%;
  }
}

/* ==========================================================================
   Two-Column Text & Image Dynamic Layout Harmonization
   (Auto-adapts so images never look small when text is large)
   ========================================================================== */
.about-heritage-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: stretch;
  margin-bottom: 5rem;
}

.about-heritage-img-col {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.about-heritage-img-wrap {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #0f172a;
  position: sticky;
  top: 100px;
  align-self: start;
}

.about-heritage-img-wrap img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-principal-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.75rem;
  align-items: stretch;
}

.about-principal-card-col {
  position: sticky;
  top: 100px;
  align-self: start;
  height: 100%;
}

.img-frame-standard {
  min-height: 380px !important;
}

.img-frame-medium {
  min-height: 480px !important;
}

.img-frame-tall {
  min-height: 580px !important;
}

.img-frame-full {
  height: 100% !important;
  min-height: 440px !important;
}

@media (max-width: 991px) {
  .about-heritage-grid, .about-principal-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-heritage-img-wrap, .about-principal-card-col {
    position: static;
    min-height: 320px;
    height: 360px;
  }
}

/* ==========================================================================
   Universal Rich Text Public Styling
   (Applied to formatted text in dynamic sections across all public pages)
   ========================================================================== */
.rt-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.85em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  background: rgba(1, 0, 128, 0.08);
  border: 1px solid rgba(1, 0, 128, 0.15);
  border-radius: 999px;
  vertical-align: middle;
  margin: 0 0.2rem;
}

[data-theme="dark"] .rt-badge {
  background: rgba(245, 179, 0, 0.15);
  color: var(--accent-gold);
  border-color: rgba(245, 179, 0, 0.3);
}

[data-section-key] blockquote,
.principal-message-text blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent-gold);
  background: rgba(1, 0, 128, 0.03);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--primary);
  font-weight: 500;
  line-height: 1.6;
}

[data-section-key] ul,
.principal-message-text ul {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

[data-section-key] ol,
.principal-message-text ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  list-style-type: decimal;
}

[data-section-key] li,
.principal-message-text li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

[data-section-key] h3,
.principal-message-text h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

[data-section-key] h4,
.principal-message-text h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cobalt);
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

[data-section-key] a,
.principal-message-text a {
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease;
}

[data-section-key] a:hover,
.principal-message-text a:hover {
  color: var(--primary);
  text-decoration-thickness: 2px;
}

/* ==========================================================================
   Story Detail Image Layout Balancing & Text Wrap
   ========================================================================== */
.story-block-image {
  margin: 2.25rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-alt, #f8fafc);
  border: 1px solid var(--border-light, #e2e8f0);
}
.story-block-image img {
  width: 100%;
  height: auto;
  display: block;
}
.story-block-image.story-img-full {
  width: 100%;
  clear: both;
  margin: 2.25rem 0;
}
.story-block-image.story-img-medium {
  max-width: 75%;
  margin: 2rem auto;
  clear: both;
  display: block;
}
.story-block-image.story-img-compact {
  max-width: 50%;
  margin: 1.75rem auto;
  clear: both;
  display: block;
}
.story-block-image.story-img-float-left {
  float: left;
  width: 44%;
  max-width: 44%;
  margin: 0.5rem 1.85rem 1.5rem 0;
  clear: left;
}
.story-block-image.story-img-float-right {
  float: right;
  width: 44%;
  max-width: 44%;
  margin: 0.5rem 0 1.5rem 1.85rem;
  clear: right;
}
.story-block-image.story-img-frame-standard img {
  max-height: 380px;
  width: 100%;
  object-fit: cover;
}
.story-block-image.story-img-frame-tall img {
  max-height: 480px;
  width: 100%;
  object-fit: cover;
}
.story-block-image.story-img-frame-auto img {
  height: auto;
  width: 100%;
}
#storyBlocksContainer::after {
  content: "";
  display: table;
  clear: both;
}
@media (max-width: 768px) {
  .story-block-image.story-img-float-left,
  .story-block-image.story-img-float-right,
  .story-block-image.story-img-medium,
  .story-block-image.story-img-compact {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 1.5rem 0 !important;
  }
}

