:root {
  --primary: #161616;
  --primary-light: #2a2a2a;
  --primary-pale: #f3f0e8;
  --accent: #b78a2f;
  --gold: #c79532;
  --gold-light: #f4d77b;
  --silver: #d8dbe0;
  --silver-light: #f8f8f6;
  --platinum: #ece8de;
  --white: #ffffff;
  --gray-50: #fbfaf7;
  --gray-100: #ebe7de;
  --gray-300: #c7c5bd;
  --gray-500: #77746d;
  --gray-700: #3f3d38;
  --text: #24221f;
  --success: #1b7a3e;
  --success-bg: #e8f7ed;
  --fail: #c0392b;
  --fail-bg: #fdecea;
  --shadow-sm: 0 2px 10px rgba(22,22,22,0.08);
  --shadow-md: 0 12px 34px rgba(22,22,22,0.14);
  --shadow-lg: 0 24px 70px rgba(22,22,22,0.22);
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(244,215,123,0.18), transparent 32rem),
    linear-gradient(180deg, var(--silver-light) 0%, var(--gray-50) 42%, #ffffff 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============ INTRO ANIMATION / LOADER ============ */
#loader {
  position: fixed; inset: 0;
  background: linear-gradient(125deg, #0f0b21 0%, #2a1b5c 45%, #1d0f3d 75%, #0f0b21 100%);
  background-size: 300% 300%;
  animation: loaderBgShift 6s ease infinite;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
  overflow: hidden;
}
#loader::before, #loader::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5;
}
#loader::before { width: 380px; height: 380px; background: #ec4899; top: -120px; left: -100px; animation: loaderBlobFloat 7s ease-in-out infinite; }
#loader::after { width: 320px; height: 320px; background: #7c3aed; bottom: -100px; right: -80px; animation: loaderBlobFloat 8s ease-in-out infinite reverse; }
@keyframes loaderBgShift { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
@keyframes loaderBlobFloat { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,20px)} }
.intro-logo {
  width: 130px;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  opacity: 0;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 28px rgba(236,72,153,.55));
  animation: introLogoIn 0.9s 0.1s forwards, logoPulseGlow 2.2s 1.2s ease-in-out infinite;
}
@keyframes introLogoIn {
  from { opacity: 0; transform: scale(0.7) translateY(10px) rotate(-6deg); }
  to   { opacity: 1; transform: scale(1) translateY(0) rotate(0); }
}
@keyframes logoPulseGlow {
  0%,100% { filter: drop-shadow(0 0 20px rgba(236,72,153,.45)); }
  50%     { filter: drop-shadow(0 0 42px rgba(255,206,76,.65)); }
}
.intro-text {
  text-align: center;
  color: white;
  position: relative; z-index: 2;
}
.intro-line {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0;
  background: linear-gradient(90deg,#fff,#ffce4c,#ec4899,#fff);
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fadeSlideUp 0.8s forwards, shimmerText 3s linear infinite;
}
.intro-line.location {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--gold-light);
  background: none; -webkit-background-clip: unset; background-clip: unset;
  letter-spacing: 3px;
  margin-top: 0.35rem;
  animation: fadeSlideUp 0.8s forwards;
}
.intro-blank-lines {
  height: 2.6em;
}
.intro-line.tagline {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #c9c1ff;
  background: none; -webkit-background-clip: unset; background-clip: unset;
  letter-spacing: 3px;
  animation: fadeSlideUp 0.8s forwards;
}
@keyframes shimmerText { to { background-position: -300% 0; } }
.intro-line.name { animation-delay: 0.6s; }
.intro-line.location { animation-delay: 1.15s; }
.intro-line.tagline { animation-delay: 1.7s; }
.loader-bar {
  width: 220px; height: 4px;
  background: rgba(255,255,255,.12);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2rem;
  opacity: 0;
  position: relative; z-index: 2;
  animation: fadeSlideUp 0.6s 2.1s forwards;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg,#7c3aed,#ec4899,#ffce4c);
  background-size: 200% auto;
  animation: loadFill 1.4s ease 2.1s forwards, loaderBarShimmer 1s linear infinite;
  border-radius: 2px;
}
@keyframes loadFill { from{width:0} to{width:100%} }
@keyframes loaderBarShimmer { to { background-position: -200% 0; } }
@keyframes fadeSlideUp {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ============ PAGES ============ */
.page { display: none; min-height: 100vh; }
.page.active { display: block; animation: pageIn 0.4s ease; }
@keyframes pageIn { from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:translateY(0)} }

/* ============ NAVBAR ============ */
.top-announcement {
  background: linear-gradient(90deg, #080808, #3c2e1a, #080808);
  color: var(--gold-light);
  border-bottom: 1px solid rgba(244,215,123,0.36);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 150;
}
.top-announcement-track {
  display: inline-flex;
  gap: 4rem;
  min-width: max-content;
  padding: 0.55rem 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  animation: announcementMove 18s linear infinite;
}
.top-announcement-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.top-announcement-track span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 12px rgba(244,215,123,0.8);
}
@keyframes announcementMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

nav {
  background: linear-gradient(135deg, rgba(10,10,10,0.96), rgba(39,36,31,0.96));
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 24px rgba(0,0,0,0.22);
  border-bottom: 1px solid rgba(244,215,123,0.22);
  backdrop-filter: blur(14px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  cursor: pointer;
}
.nav-logo {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(244,215,123,0.24), rgba(216,219,224,0.14));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(244,215,123,0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 8px 20px rgba(0,0,0,0.28);
  overflow: hidden;
}
.nav-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.nav-title {
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  line-height: 1.3;
}
.nav-title small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--gray-300);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 0.5rem; }
.nav-links a, .nav-links button {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.nav-links a:hover, .nav-links button:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-links .btn-nav-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary);
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  box-shadow: 0 8px 22px rgba(199,149,50,0.28);
}
.nav-links .btn-nav-primary:hover { background: var(--gold-light); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: white; border-radius: 2px; transition: 0.3s; }

/* ============ HOME PAGE ============ */
.hero {
  background:
    linear-gradient(135deg, rgba(8,8,8,0.96) 0%, rgba(25,24,22,0.94) 55%, rgba(76,58,28,0.92) 100%),
    url('assets/img_01_88a7072bd3.png') center 18% / 420px auto no-repeat;
  color: white;
  padding: 4.25rem 1.5rem 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(244,215,123,0.12), transparent),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d8dbe0' fill-opacity='0.04'%3E%3Cpath d='M0 39h80v2H0zM39 0h2v80h-2z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.85;
}
.hero-inner {
  max-width: 900px; margin: 0 auto;
  text-align: center; position: relative;
}
.hero-logo {
  width: min(260px, 70vw);
  height: auto;
  margin: 0 auto 1.25rem;
  display: block;
  filter: drop-shadow(0 22px 28px rgba(0,0,0,0.44));
  animation: fadeSlideUp 0.6s 0.12s both;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(216,219,224,0.12);
  border: 1px solid rgba(244,215,123,0.35);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.6s 0.2s both;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--gold-light); border-radius: 50%; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  animation: fadeSlideUp 0.6s 0.35s both;
}
.hero h1 span { color: var(--gold-light); }
.hero-location {
  font-size: 1rem;
  color: var(--gray-300);
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeSlideUp 0.6s 0.45s both;
}
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeSlideUp 0.6s 0.55s both;
}
.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeSlideUp 0.6s 0.65s both;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary);
  border: none; cursor: pointer;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,149,42,0.4); }
.btn-outline {
  background: rgba(216,219,224,0.06);
  color: white;
  border: 1.5px solid rgba(216,219,224,0.48);
  cursor: pointer;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

.hero-stats {
  display: flex; justify-content: center; gap: 2.4rem; flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeSlideUp 0.6s 0.75s both;
}
.stat {
  text-align: center;
  min-width: 138px;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 800;
  color: var(--gold-light);
}
.stat-label { font-size: 0.82rem; color: var(--gray-300); text-transform: uppercase; letter-spacing: 1px; }

/* Features section */
.section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(244,215,123,0.18), rgba(216,219,224,0.28));
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-sub { color: var(--gray-500); font-size: 1rem; margin-bottom: 3rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: linear-gradient(180deg, #ffffff 0%, var(--silver-light) 100%);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(199,149,50,0.16);
  transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(199,149,50,0.2), rgba(216,219,224,0.34));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--primary); margin-bottom: 0.5rem; }
.feature-card p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.6; }

/* Notice band */
.notice-band {
  background: var(--primary-pale);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  display: flex; align-items: flex-start; gap: 12px;
}
.notice-band .notice-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.notice-band h4 { font-size: 0.95rem; color: var(--primary); margin-bottom: 0.25rem; }
.notice-band p { font-size: 0.88rem; color: var(--gray-700); }

.media-showcase {
  margin: 3rem 0 0;
}
.media-showcase-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.media-showcase-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  color: var(--primary);
}
.media-showcase-header p {
  color: var(--gray-500);
  font-size: 0.92rem;
}
.media-layer-label {
  display: inline-block;
  margin: 1.2rem 0 0.8rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.media-card {
  background: linear-gradient(180deg, #ffffff 0%, var(--silver-light) 100%);
  border: 1px solid rgba(199,149,50,0.2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--primary);
}
.media-card.wide img {
  aspect-ratio: 16 / 9;
}

/* ============ LOGIN PAGE ============ */
.login-wrapper {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at center 12%, rgba(244,215,123,0.2), transparent 24rem),
    linear-gradient(135deg, #080808 0%, #1d1c19 58%, #4a3820 100%);
  padding: 2rem 1rem;
}
.login-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(199,149,50,0.2);
  animation: fadeSlideUp 0.5s ease;
}
.login-card .card-header {
  text-align: center; margin-bottom: 2rem;
}
.login-card .inst-logo {
  width: 96px; height: 96px;
  background: linear-gradient(135deg, rgba(244,215,123,0.24), rgba(216,219,224,0.32));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 10px 26px rgba(22,22,22,0.22);
  border: 1px solid rgba(199,149,50,0.3);
  overflow: hidden;
}
.login-card .inst-logo img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}
.login-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.login-card p { color: var(--gray-500); font-size: 0.88rem; }

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}
.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--gray-50);
  transition: all 0.2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(199,149,50,0.14);
}
.form-group .hint { font-size: 0.78rem; color: var(--gray-500); margin-top: 0.3rem; }

.btn-full {
  width: 100%;
  padding: 0.95rem;
  background: linear-gradient(135deg, var(--primary), #3b3022);
  color: white;
  border: none; cursor: pointer;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-full:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(199,149,50,0.25); }
.btn-full:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.login-footer { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--gray-500); }
.login-footer a { color: var(--primary); text-decoration: none; font-weight: 500; cursor: pointer; }
.login-footer a:hover { text-decoration: underline; }

/* ============ DASHBOARD ============ */
.dashboard-wrapper {
  min-height: 100vh;
  background:
    linear-gradient(180deg, var(--silver-light), var(--gray-50) 36%, #ffffff);
}
.dashboard-hero {
  background: linear-gradient(135deg, #0b0b0b 0%, #25231f 62%, #4d391d 100%);
  padding: 2.5rem 1.5rem;
  color: white;
  border-bottom: 1px solid rgba(244,215,123,0.25);
}
.dashboard-hero-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.student-greeting { flex: 1; }
.student-greeting .welcome { font-size: 0.85rem; color: var(--gray-300); text-transform: uppercase; letter-spacing: 1px; }
.student-greeting h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 700;
  margin: 0.25rem 0;
}
.student-greeting .reg { font-size: 0.9rem; color: var(--gray-300); }
.student-avatar {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 800;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.btn-logout {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  transition: 0.2s;
  flex-shrink: 0;
}
.btn-logout:hover { background: rgba(255,255,255,0.25); }

.dashboard-content {
  max-width: 900px; margin: 0 auto;
  padding: 2rem 1.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.info-chip {
  background: linear-gradient(180deg, #ffffff 0%, var(--silver-light) 100%);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.info-chip .chip-label { font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.3rem; }
.info-chip .chip-value { font-size: 1rem; font-weight: 600; color: var(--text); }

/* ============ QUIZZES PLACEHOLDER ============ */
.quiz-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.quiz-card {
  background: linear-gradient(135deg, #0b0b0b 0%, #25231f 62%, #4d391d 100%);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  color: white;
  border: 2px solid rgba(201,149,42,0.4);
  position: relative;
  overflow: hidden;
}
.quiz-card .quiz-icon { font-size: 2.75rem; margin-bottom: 0.75rem; }
.quiz-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.quiz-card p {
  color: var(--gray-300);
  font-size: 0.92rem;
  max-width: 460px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}
.quiz-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary);
  padding: 0.35rem 1rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.btn-disabled {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: not-allowed;
}

/* ============ GOOGLE LOGIN ============ */
.btn-google {
  width: 100%;
  padding: 0.85rem;
  background: white;
  color: var(--text);
  border: 1.5px solid var(--gray-100);
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: var(--shadow-sm);
}
.btn-google:hover { border-color: var(--gray-300); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-google:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-google svg { width: 20px; height: 20px; flex-shrink: 0; }
.google-profile {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--gray-100);
}
.google-profile .g-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #4285F4, #34A853);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.google-profile .g-info .g-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.google-profile .g-info .g-email { font-size: 0.78rem; color: var(--gray-500); }
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--gray-50);
  outline: none;
  cursor: pointer;
}
.form-group select:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(199,149,50,0.14); }

/* ============ ADMIN: MANAGE STUDENTS ============ */
.add-student-form {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.add-student-form input {
  flex: 1; min-width: 220px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
}
.add-student-form input:focus { border-color: var(--primary); }
.btn-add {
  background: linear-gradient(135deg, var(--primary), #3b3022);
  color: white;
  border: none; cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.2s;
}
.btn-add:hover { background: var(--primary-light); }
.btn-delete {
  background: var(--fail-bg);
  color: var(--fail);
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: 0.2s;
  margin-left: 0.4rem;
}
.btn-delete:hover { background: var(--fail); color: white; }

/* ============ ADMIN PANEL ============ */
.admin-wrapper { min-height: 100vh; }
.admin-topbar {
  background: linear-gradient(135deg, #080808 0%, #25231f 62%, #4d391d 100%);
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(244,215,123,0.26);
}
.admin-topbar .admin-title {
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.admin-title-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(244,215,123,0.35);
  padding: 0.15rem;
}
.admin-topbar .admin-title small { display: block; color: var(--gray-300); font-family: 'DM Sans', sans-serif; font-size: 0.78rem; font-weight: 400; }

.admin-content { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.admin-stat-card {
  background: linear-gradient(180deg, #ffffff 0%, var(--silver-light) 100%);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(199,149,50,0.15);
  text-align: center;
}
.admin-stat-card .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 800;
  color: var(--primary);
}
.admin-stat-card .lbl { font-size: 0.78rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; }

.admin-toolbar {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.search-input {
  flex: 1; min-width: 220px;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2377746d' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") 0.8rem center / 16px no-repeat;
  outline: none;
}
.search-input:focus { border-color: var(--primary); }

.filter-select {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  background: white;
  color: var(--text);
  cursor: pointer;
  outline: none;
}
.filter-select:focus { border-color: var(--primary); }

.students-table-wrap {
  background: linear-gradient(180deg, #ffffff 0%, var(--silver-light) 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}
.students-table { width: 100%; border-collapse: collapse; }
.students-table thead th {
  background: linear-gradient(135deg, var(--primary), #3b3022);
  color: white;
  padding: 0.9rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.students-table tbody tr { border-bottom: 1px solid var(--gray-100); transition: background 0.15s; }
.students-table tbody tr:hover { background: var(--gray-50); }
.students-table tbody td { padding: 0.9rem 1rem; font-size: 0.88rem; }
.students-table tbody td:first-child { font-weight: 600; color: var(--primary); }

.btn-edit {
  background: linear-gradient(135deg, rgba(244,215,123,0.18), rgba(216,219,224,0.32));
  color: var(--primary);
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  transition: 0.2s;
}
.btn-edit:hover { background: var(--primary); color: white; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.68);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal-card {
  background: linear-gradient(180deg, #ffffff 0%, var(--silver-light) 100%);
  border-radius: 20px;
  padding: 2rem;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(199,149,50,0.18);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from{transform:translateY(30px);opacity:0} to{transform:translateY(0);opacity:1} }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.modal-header h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--primary); }
.btn-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s;
}
.btn-close:hover { background: var(--gray-300); }
.modal-student-info {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.modal-student-info .sname { font-weight: 700; color: var(--primary); font-size: 1rem; }
.modal-student-info .sreg { font-size: 0.85rem; color: var(--gray-500); margin-top: 2px; }
.modal-form select, .modal-form textarea, .modal-form input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  background: white;
  color: var(--text);
  transition: 0.2s;
}
.modal-form select:focus, .modal-form textarea:focus, .modal-form input:focus { border-color: var(--primary); }
.modal-form textarea { resize: vertical; min-height: 80px; }
.modal-form label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.4rem; }
.modal-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.btn-save {
  flex: 1;
  padding: 0.85rem;
  background: var(--primary);
  color: white;
  border: none; cursor: pointer;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.2s;
}
.btn-save:hover { background: var(--primary-light); }
.btn-cancel {
  padding: 0.85rem 1.5rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border: none; cursor: pointer;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.2s;
}
.btn-cancel:hover { background: var(--gray-300); }

/* ============ TOAST ============ */
#toast-container {
  position: fixed;
  bottom: 2rem; right: 1.5rem;
  z-index: 9998;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s ease;
  min-width: 240px;
  max-width: 340px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--fail); }
.toast.warning { background: var(--gold); color: var(--primary); }
@keyframes toastIn { from{transform:translateX(100%);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes toastOut { to{transform:translateX(110%);opacity:0} }

/* ============ FOOTER ============ */
footer {
  background: linear-gradient(135deg, #080808 0%, #201f1c 60%, #3c2e1a 100%);
  color: white;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid rgba(244,215,123,0.24);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.footer-brand-mark {
  width: 120px;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.34));
}
.footer-brand p { color: var(--gray-300); font-size: 0.88rem; line-height: 1.6; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-light); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--gray-300); text-decoration: none; font-size: 0.88rem; transition: 0.2s; cursor: pointer; }
.footer-col ul li a:hover { color: white; }
.footer-col p { color: var(--gray-300); font-size: 0.88rem; line-height: 1.8; }
.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--gray-300);
  font-size: 0.88rem;
}
.footer-contact-links a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-links a:hover {
  color: var(--gold-light);
}
.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.82rem; color: var(--gray-500);
}

/* ============ RESPONSIVE ============ */
@media(max-width: 768px) {
  .nav-inner { padding: 0 1rem; }
  .nav-brand { min-width: 0; }
  .nav-logo { width: 46px; height: 46px; }
  .nav-logo img { width: 40px; height: 40px; }
  .nav-title { font-size: 0.9rem; }
  .nav-title small { font-size: 0.64rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left:0; right:0; background: var(--primary); padding: 1rem; gap: 0.25rem; }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links button { width: 100%; text-align: left; }
  .hamburger { display: flex; }
  .hero { padding: 3rem 1rem 4rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { justify-content: center; width: 100%; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .stat { min-width: 0; }
  .top-announcement-track { animation-duration: 12s; font-size: 0.78rem; }
  .section { padding: 3rem 1rem; }
  .notice-band { flex-direction: column; }
  .media-showcase-header { align-items: flex-start; }
  .media-grid { grid-template-columns: 1fr; }
  .media-card img,
  .media-card.wide img { aspect-ratio: 4 / 3; }
  .info-grid { grid-template-columns: 1fr; }
  .subjects-card { overflow-x: auto; }
  .subjects-table { min-width: 520px; }
  .admin-content { padding: 1rem; }
  .students-table-wrap { overflow-x: auto; }
  .students-table { min-width: 760px; }
  .admin-toolbar { flex-direction: column; }
  .search-input,
  .filter-select { width: 100%; }
  .dashboard-hero-inner { flex-direction: column; }
  .modal-card { width: calc(100% - 2rem); max-height: calc(100vh - 2rem); overflow-y: auto; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions button { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media(max-width: 480px) {
  .top-announcement-track { gap: 2rem; font-size: 0.68rem; }
  .hero-logo { width: min(210px, 72vw); }
  .hero h1 { font-size: 2rem; }
  .hero-badge { font-size: 0.7rem; letter-spacing: 0.5px; }
  .hero-stats { grid-template-columns: 1fr; margin-top: 2.5rem; padding-top: 2rem; }
  .section-title { font-size: 1.55rem; }
  .media-layer-label { display: block; margin-top: 1.6rem; }
  .login-card { padding: 2rem 1.2rem; }
  .result-card { padding: 1.5rem; }
  .result-main { font-size: 2rem !important; }
}

/* ===================== TEAM SECTION ===================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  margin-top: 1rem;
}
.team-card {
  background: linear-gradient(180deg, #ffffff 0%, var(--silver-light) 100%);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(199,149,50,0.16);
  transition: all 0.3s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 6px 18px rgba(199,149,50,0.28);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(199,149,50,0.22), rgba(216,219,224,0.4));
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
}
.team-name { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; }
.team-degree { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 0.5rem; }
.team-role {
  display: inline-block;
  background: linear-gradient(135deg, rgba(244,215,123,0.25), rgba(216,219,224,0.3));
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.28rem 0.85rem;
  border-radius: 50px;
}

/* ===================== MAP SECTION ===================== */
.map-wrap {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(199,149,50,0.16);
}
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ===================== FLOATING CALL + WHATSAPP BUTTONS ===================== */
.call-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(199,149,50,0.45);
  z-index: 999;
  animation: callPulse 2.2s infinite;
}
.call-fab:hover { transform: scale(1.08); }
@keyframes callPulse {
  0% { box-shadow: 0 0 0 0 rgba(199,149,50,0.45); }
  70% { box-shadow: 0 0 0 14px rgba(199,149,50,0); }
  100% { box-shadow: 0 0 0 0 rgba(199,149,50,0); }
}
.wa-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 5rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(37,211,102,0.45);
  z-index: 999;
  animation: waPulse 2.2s infinite;
}
.wa-fab:hover { transform: scale(1.08); }
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.45); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.btn-nav-call {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}

@media(max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; }
  .map-wrap iframe { height: 260px; }
}

/* ===================== KURAL QUOTE BAND ===================== */
.kural-band {
  margin-top: 2rem;
  background: linear-gradient(135deg, rgba(199,149,50,0.1), rgba(216,219,224,0.2));
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.kural-icon { font-size: 1.6rem; line-height: 1; }
.kural-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--primary);
  white-space: pre-line;
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}
.kural-sub { color: var(--gray-500); font-size: 0.85rem; margin-top: 0.5rem; }

/* ===================== INSTAGRAM EMBED ===================== */
.insta-embed-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.insta-embed-wrap iframe { border-radius: var(--radius) !important; }

/* ===================== YOUTUBE SHORT EMBED ===================== */
.yt-embed-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.yt-embed-wrap iframe,
.yt-facade {
  width: 100%;
  max-width: 315px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(199,149,50,0.16);
}
.yt-facade {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: #000;
}
.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  padding-left: 4px;
}

.yt-fallback-link { text-align: center; margin-top: 0.6rem; font-size: 0.85rem; }
.yt-fallback-link a { color: var(--accent); font-weight: 600; text-decoration: none; }
.yt-fallback-link a:hover { text-decoration: underline; }

/* ======================================================================
   QUIZ 2 — COA PRACTICAL — added styles
   ====================================================================== */
.quiz-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.quiz-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.2rem 4rem;
}
.quiz-header-bar { text-align: center; margin-bottom: 1.5rem; }
.quiz-header-bar h2 { font-family: 'Playfair Display', serif; color: var(--primary); margin-bottom: 0.3rem; }
.quiz-header-bar p { color: var(--gray-500); font-size: 0.92rem; }

.quiz-section-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  color: var(--primary);
  border-bottom: 2px solid var(--primary-pale);
  padding-bottom: 0.5rem;
  margin: 2rem 0 0.75rem;
}
.quiz-question {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
}
.quiz-question .qnum {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 0.4rem;
}
.quiz-question .qtext { font-size: 0.98rem; line-height: 1.55; margin-bottom: 0.7rem; color: var(--primary); }

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.94rem;
}
.quiz-option:hover { background: var(--primary-pale); }
.quiz-option input { margin-top: 0.2rem; }
.quiz-option.review { cursor: default; }
.quiz-option.review.correct { background: var(--success-bg); color: var(--success); }
.quiz-option.review.wrong { background: var(--fail-bg); color: var(--fail); }

.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.94rem;
}
.match-row:last-child { border-bottom: none; }
.match-left { flex: 1; }
.match-row select {
  flex: 1;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  background: var(--gray-50);
}

.quiz-actions { text-align: center; margin-top: 1.6rem; }

.score-hero {
  text-align: center;
  padding: 2.4rem 1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}
.score-num { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; }
.score-lbl { font-family: 'DM Sans', sans-serif; opacity: 0.85; letter-spacing: 0.04em; margin-top: 0.3rem; }

.spark{position:fixed;top:0;left:0;width:6px;height:6px;border-radius:50%;background:radial-gradient(circle,#fff8dc,#c9971e);pointer-events:none;z-index:9999;animation:sparkFade .65s ease-out forwards}
@keyframes sparkFade{to{transform:translate(var(--dx),var(--dy)) scale(0);opacity:0}}
