/* Kerala Education Council - Modern Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Cinzel:wght@600;700&display=swap');

:root {
  --primary-navy: #0a192f;
  --primary-blue: #1e3a8a;
  --accent-gold: #d97706;
  --accent-gold-light: #f59e0b;
  --accent-teal: #0d9488;
  --surface-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --border-focus: #2563eb;
  --success-color: #16a34a;
  --warning-color: #ea580c;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-base: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Cinzel', serif;
  --font-size-base: 16px;
}

[data-theme="dark"] {
  --primary-navy: #030712;
  --primary-blue: #1d4ed8;
  --surface-bg: #0b0f19;
  --card-bg: #111827;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: #1f2937;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.5);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.6);
}

[data-contrast="high"] {
  --primary-navy: #000000;
  --primary-blue: #0000ff;
  --accent-gold: #ffaa00;
  --surface-bg: #ffffff;
  --card-bg: #ffffff;
  --text-main: #000000;
  --border-color: #000000;
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--surface-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Accessibility & Utility */
.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

/* Top Announcement Ticker Bar with Pause-on-Hover Scrolling */
.top-ticker-bar {
  background: #0f2942;
  color: #ffffff;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  margin-right: 16px;
}

.ticker-badge {
  background-color: var(--accent-gold);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: tickerLoop 35s linear infinite;
  will-change: transform;
}

.ticker-text {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffffff;
}

/* Pause Scrolling Animation on Hover */
.top-ticker-bar:hover .ticker-track,
.ticker-wrapper:hover .ticker-track,
.ticker-track:hover {
  animation-play-state: paused !important;
  cursor: pointer;
  color: #fef08a;
}

@keyframes tickerLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.top-utilities {
  display: flex;
  align-items: center;
  gap: 12px;
}

.utility-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.utility-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* Header & Brand Nav */
.main-header {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 2px solid #ffffff;
}

.brand-info h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

[data-theme="dark"] .brand-info h1 {
  color: #60a5fa;
}

.brand-info p {
  font-size: 0.82rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  text-decoration: none;
  min-height: 44px;
}

.btn-primary {
  background: var(--primary-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-gold {
  background: var(--accent-gold);
  color: #ffffff;
}

.btn-gold:hover {
  background: var(--accent-gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--surface-bg);
  border-color: var(--text-muted);
}

.btn-admin {
  background: #334155;
  color: #fff;
}

.btn-admin:hover {
  background: #1e293b;
}

/* Primary Navigation Bar (Sticky Darker Royal Blue Menu) */
.nav-bar {
  background-color: #1e3a8a;
  position: sticky;
  top: 0;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.35);
  width: 100%;
}

.nav-bar.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 10000;
  background-color: #1e3a8a;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-item a {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  min-height: 48px;
  background-color: transparent;
}

.nav-item a:hover,
.nav-item.active a {
  color: #ffffff;
  background-color: #172554;
  border-bottom-color: #f59e0b;
}

/* Mobile Hamburger Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  min-height: 44px;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Hero Section & Interactive Slider */
.hero-section {
  position: relative;
  min-height: 540px;
  color: #ffffff;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 540px;
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
  padding: 60px 24px;
}

.slide-item.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transform: scale(1.04);
  transition: transform 6s ease-out;
  filter: brightness(1.08) contrast(1.05);
}

.slide-item.active .slide-bg {
  transform: scale(1.0);
}

/* Lighter, translucent gradient so background imagery is vibrant and clear */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(10, 25, 47, 0.65) 0%, rgba(10, 25, 47, 0.30) 50%, rgba(10, 25, 47, 0.10) 100%);
  z-index: 2;
}

.hero-container {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 3;
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  width: 32px;
  border-radius: 12px;
  background: var(--accent-gold);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 119, 6, 0.2);
  border: 1px solid rgba(217, 119, 6, 0.5);
  color: var(--accent-gold-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--accent-gold-light);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 32px;
  max-width: 640px;
  line-height: 1.6;
}

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

/* Certificate Verification Section Styling (Pure White Background) */
.verify-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.verify-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  color: var(--text-main);
}

.verify-title {
  color: var(--primary-navy);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

[data-theme="dark"] .verify-title {
  color: #ffffff;
}

.verify-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* Hero Search Card inside Header Slider (Pure White Background) */
.hero-search-card,
.hero-quick-verify {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  color: #0f172a;
}

.hero-search-card h3,
.hero-quick-verify h3,
.quick-verify-title {
  color: #0f2942;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-search-card p,
.hero-quick-verify p,
.quick-verify-desc {
  color: #475569;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.quick-verify-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-navy);
}

[data-theme="dark"] .quick-verify-title {
  color: #60a5fa;
}

.quick-verify-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.quick-verify-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--card-bg);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.sample-ids {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: #475569;
  flex-wrap: wrap;
}

.sample-ids span:first-child {
  font-weight: 700;
  color: #1e293b;
}

.sample-tag {
  background-color: #f1f5f9;
  color: #2563eb;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sample-tag:hover {
  border-color: var(--primary-blue);
}

/* Statistics Bar */
.stats-bar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 32px 24px;
}

.stats-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(30, 58, 138, 0.1);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.1;
}

[data-theme="dark"] .stat-info h3 {
  color: #f3f4f6;
}

.stat-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Main Section Layouts */
.section {
  padding: 64px 24px;
}

.section-container {
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px auto;
}

.section-subtitle {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

[data-theme="dark"] .section-title {
  color: #f3f4f6;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Tab Controls */
.tab-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: 30px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

/* Academic Program Cards Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.program-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 58, 138, 0.3);
}

.program-badge {
  align-self: flex-start;
  background: #eff6ff;
  color: var(--primary-blue);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.program-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.program-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.program-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.program-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.program-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.program-fee {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-gold);
}

/* Certificate Verification Output Card */
.certificate-display-container {
  max-width: 850px;
  margin: 32px auto 0 auto;
}

.certificate-card {
  background: #ffffff;
  border: 12px solid #0f2942;
  border-radius: var(--radius-md);
  padding: 48px;
  position: relative;
  box-shadow: var(--shadow-lg);
  color: #0f172a;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 24px 24px;
}

.cert-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  opacity: 0.05;
  pointer-events: none;
}

.cert-header {
  text-align: center;
  border-bottom: 2px solid #0f2942;
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.cert-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px auto;
  display: block;
}

.cert-institution {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f2942;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cert-sub {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 600;
}

.cert-body {
  text-align: center;
  margin-bottom: 32px;
}

.cert-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #d97706;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.cert-text {
  font-size: 1rem;
  color: #334155;
  margin-bottom: 12px;
}

.cert-student-name {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f2942;
  font-family: var(--font-serif);
  margin: 10px 0 20px 0;
  text-decoration: underline;
  text-decoration-color: #d97706;
}

.cert-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: left;
  background: #f8fafc;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  margin-top: 20px;
}

.cert-detail-item {
  display: flex;
  flex-direction: column;
}

.cert-detail-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.cert-detail-value {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.cert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #cbd5e1;
}

.cert-qr-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qr-code-img {
  width: 80px;
  height: 80px;
  border: 1px solid #cbd5e1;
  padding: 4px;
  background: #fff;
}

.qr-text {
  font-size: 0.75rem;
  color: #64748b;
}

.cert-seal {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #f59e0b 0%, #b45309 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 4px 10px rgba(180, 83, 9, 0.4);
  border: 3px dashed #fff;
}

.cert-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* Modals & Dialogs */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 700px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border: 1px solid var(--border-color);
  transform: translateY(20px);
  transition: transform 0.25s ease;
  position: relative;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--card-bg);
  z-index: 20;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
}

[data-theme="dark"] .modal-title {
  color: #60a5fa;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: var(--surface-bg);
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}

/* Step Wizard Progress */
.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

.wizard-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.wizard-step.active .step-number {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #fff;
}

.wizard-step.completed .step-number {
  background: var(--success-color);
  border-color: var(--success-color);
  color: #fff;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Floating Chat Assistant (EduBot) */
.edubot-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
  cursor: pointer;
  z-index: 99;
  transition: all 0.3s ease;
  border: none;
}

.edubot-fab:hover {
  transform: scale(1.08);
}

.edubot-window {
  position: fixed;
  bottom: 98px;
  right: 28px;
  width: 380px;
  height: 500px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.25s ease;
}

.edubot-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.edubot-header {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.edubot-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
}

.edubot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface-bg);
}

.chat-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.chat-msg.bot {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--primary-blue);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.edubot-input-container {
  padding: 12px;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}

/* Directory Table & Admin Records */
.records-table-container {
  overflow-x: auto;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-top: 20px;
}

.records-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.records-table th {
  background: var(--surface-bg);
  padding: 14px 18px;
  font-weight: 700;
  color: var(--primary-navy);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .records-table th {
  color: #60a5fa;
}

.records-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.records-table tr:last-child td {
  border-bottom: none;
}

.records-table tr:hover {
  background: var(--surface-bg);
}

/* Accreditations Trust Bar & Logo Cards */
.accreditations-section {
  background: var(--card-bg);
  padding: 56px 24px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.accreditations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
  max-width: 1250px;
  margin: 32px auto 0 auto;
}

.accreditation-card {
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.accreditation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.accreditation-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 58, 138, 0.3);
  background: var(--card-bg);
}

.accreditation-card:hover::before {
  opacity: 1;
}

.accreditation-card > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.accreditation-logo-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  transition: transform 0.3s ease;
}

.accreditation-card:hover .accreditation-logo-wrapper {
  transform: scale(1.06);
}

.accreditation-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.accreditation-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  display: inline-block;
}

.tag-red { background: #fee2e2; color: #991b1b; }
.tag-blue { background: #dbeafe; color: #1e40af; }
.tag-green { background: #dcfce7; color: #166534; }
.tag-orange { background: #ffedd5; color: #9a3412; }
.tag-gold { background: #fef3c7; color: #92400e; }

.accreditation-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

[data-theme="dark"] .accreditation-title {
  color: #60a5fa;
}

.accreditation-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
}

.accreditation-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-blue);
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.accreditation-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
}

/* Footer */
.main-footer {
  background: var(--primary-navy);
  color: #cbd5e1;
  padding: 64px 24px 32px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand h2 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 20px;
}

.footer-links-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 700;
}

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

.footer-links-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links-col a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .nav-container {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 16px 0;
    width: 100%;
    background-color: #1e3a8a;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-links.mobile-open {
    display: flex;
    background-color: #1e3a8a;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    border-bottom: 3px solid #f59e0b;
  }

  .nav-item a {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border-bottom: none;
    border-left: 4px solid transparent;
    background-color: #1e3a8a;
    color: #ffffff;
  }

  .nav-item a:hover,
  .nav-item.active a {
    border-left-color: #f59e0b;
    background-color: #172554;
    color: #ffffff;
  }

  .header-container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .cert-details-grid {
    grid-template-columns: 1fr;
  }

  .cert-student-name {
    font-size: 1.5rem;
  }

  .quick-verify-form {
    gap: 10px;
  }
}

/* Standalone Full-Page View Overlay */
.standalone-page-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  background-color: #f8fafc;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Floating Controls (Sticky WhatsApp & Scroll to Top Buttons) */
.floating-controls-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 99900;
  pointer-events: none;
}

.floating-controls-container > * {
  pointer-events: auto;
}

.sticky-whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-whatsapp-btn:hover {
  background: #128c7e;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.sticky-top-btn {
  background: #1e3a8a;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.sticky-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sticky-top-btn:hover {
  background: #0f2942;
  transform: translateY(-2px);
}
