﻿:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --primary: #1d4ed8;
  --primary-dark: #0f172a;
  --accent: #f97316;
  --card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Candara', 'Trebuchet MS', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #fef3c7 0%, #f8fafc 45%, #e0f2fe 100%);
  min-height: 100vh;
  --invert: 0;
  --saturate: 1;
}

body.login-background {
  position: relative;
  background: url('images/banner1.jpg') center/cover no-repeat fixed;
}

body.login-background::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: -1;
}

.page-filter {
  min-height: 100vh;
  filter: invert(var(--invert)) saturate(var(--saturate));
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #111827;
  color: #b91c1c;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 999;
}

.skip-link:focus {
  left: 12px;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 5vw;
  background: #0b4aa1;
  color: #fff;
  font-size: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.email-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.top-left a {
  font-weight: 600;
  color: #fff;
}

.top-label {
  margin-right: 6px;
  opacity: 0.8;
}

.top-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.access-menu {
  position: relative;
}

.access-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px;
  display: none;
  z-index: 200;
}

.access-menu:hover .access-dropdown,
.access-menu:focus-within .access-dropdown,
.access-menu.open .access-dropdown {
  display: grid;
  gap: 6px;
}

.access-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
}

.access-item[aria-checked='true'] {
  border-color: #b91c1c;
  background: rgba(255, 255, 255, 0.18);
}

.lang-menu {
  position: relative;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px;
  display: none;
  z-index: 200;
}

.lang-menu:hover .lang-dropdown,
.lang-menu:focus-within .lang-dropdown {
  display: grid;
  gap: 6px;
}

.lang-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
}
.big-cursor,
.big-cursor * {
  cursor: url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><circle cx='10' cy='10' r='6' fill='black'/><circle cx='10' cy='10' r='4' fill='white'/></svg>\") 10 10, auto;
}

.hide-cursor,
.hide-cursor * {
  cursor: none !important;
}
.tool-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.login-btn {
  background: #f97316;
  border-color: #f97316;
  font-weight: 700;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5vw;
  position: sticky;
  top: 0;
  background: #f7f1e1;
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid #dbe6ff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 56px;
  height: 56px;
}

.brand-title {
  font-family: 'Copperplate Gothic Bold', 'Copperplate Gothic', serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
  background: linear-gradient(90deg, #f97316 0%, #fb923c 35%, #111827 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.brand-subtitle {
  margin: 2px 0 0;
  color: #4b5d7c;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 6px rgba(15, 23, 42, 0.06);
}

.menu-toggle {
  display: none;
  background: var(--primary);
  color: #b91c1c;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.main-nav {
  display: flex;
  gap: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  color: #0f172a;
}

.main-nav a:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.08);
}

.notice-link {
  color: #b91c1c;
  font-weight: 800;
  position: relative;
  padding: 6px 16px;
  border-radius: 999px;
  background: #ffe4e6;
  border: 1px solid #fecdd3;
  box-shadow: 0 12px 24px rgba(185, 28, 28, 0.2);
  animation: noticeBlink 1.4s ease-in-out infinite, noticeGlow 2s ease-in-out infinite;
}

.notice-link::before,
.notice-link::after {
  right: -12px;
  animation: sparkleRight 1.2s ease-in-out infinite 0.3s;
}

.notice-link .sparkle-star {
  position: absolute;
  width: 11px;
  height: 11px;
  opacity: 0;
  clip-path: polygon(50% 0%, 61% 38%, 100% 38%, 68% 59%, 79% 100%, 50% 75%, 21% 100%, 32% 59%, 0% 38%, 39% 38%);
  pointer-events: none;
  animation: sparkleStar 1.4s ease-in-out infinite;
}

.notice-link .sparkle-star.star-1 {
  top: -6px;
  left: -18px;
  animation-delay: 0.1s;
  background: radial-gradient(circle, #ef4444 0%, rgba(239, 68, 68, 0) 70%);
}

.notice-link .sparkle-star.star-2 {
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  animation-delay: 0.4s;
  background: radial-gradient(circle, #22c55e 0%, rgba(34, 197, 94, 0) 70%);
}

.notice-link .sparkle-star.star-3 {
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0.7s;
  background: radial-gradient(circle, #3b82f6 0%, rgba(59, 130, 246, 0) 70%);
}

@keyframes sparkleStar {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes sparkleLeft {
  0%,
  100% {
    opacity: 0;
    transform: translateY(-50%) scale(0.6);
  }
  50% {
    opacity: 1;
    transform: translateY(-70%) scale(1.1);
  }
}

@keyframes sparkleRight {
  0%,
  100% {
    opacity: 0;
    transform: translateY(-50%) scale(0.6);
  }
  50% {
    opacity: 1;
    transform: translateY(-30%) scale(1.1);
  }
}

.main-nav a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.banner-slider {
  position: relative;
  height: 480px;
  overflow: hidden;
  border-top: 2px solid #ef4444;
}

.banner-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.banner-slider img.active {
  opacity: 1;
}

.announcement-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 5vw;
  background: linear-gradient(135deg, #fff7ed 0%, #eff6ff 52%, #f0fdf4 100%);
  color: #0f172a;
  border-top: 4px solid #fb923c;
  border-bottom: 1px solid #cbd5e1;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  animation: announceBarGlow 4.5s ease-in-out infinite;
}

.announcement-label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 16px;
  white-space: nowrap;
  color: #0f172a;
  background: linear-gradient(135deg, #fde68a, #fdba74);
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.22);
}

.announcement-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
}

.announcement-icon svg {
  width: 100%;
  height: 100%;
  fill: #0f172a;
}

.announcement-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-width: 180px;
}

.announcement-track {
  color: #0f172a;
  display: inline-block;
  white-space: nowrap;
  animation: marquee 16s linear infinite;
  padding-left: 100%;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.announcement-track.paused {
  animation-play-state: paused;
}

.announcement-controls {
  display: flex;
  gap: 8px;
}

.announce-btn {
  border: 1px solid rgba(30, 64, 175, 0.25);
  background: #ffffff;
  color: #0f172a;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.announce-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.16);
}

@keyframes announceBarGlow {
  0%,
  100% {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  }
  50% {
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.16);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.6);
  color: #b91c1c;
  font-size: 28px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.banner-arrow:hover {
  background: rgba(15, 23, 42, 0.85);
}

.banner-arrow--prev {
  left: 16px;
}

.banner-arrow--next {
  right: 16px;
}

.primary-btn,
.ghost-btn {
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.primary-btn {
  background: var(--accent);
  color: #b91c1c;
}

.ghost-btn {
  background: transparent;
  color: #b91c1c;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.section {
  padding: 70px 5vw;
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-family: 'Palatino Linotype', 'Book Antiqua', serif;
  font-size: 30px;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--muted);
}

.students-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.students-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.students-more-btn {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.student-card {
  position: relative;
  background: #ffffff;
  border-radius: 22px;
  padding: 26px;
  border: 1px solid #e6e2d6;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.student-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #f59e0b, #ef4444, #3b82f6);
}

.student-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
  border-color: #d4c7a8;
}

.student-card img {
  width: 100%;
  border-radius: 16px;
  height: 260px;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
  background: #f2f2f2;
}
.student-card h3 {
  font-size: 20px;
  margin: 6px 0 8px;
  color: #1f2937;
}

.student-meta {
  color: #4b5563;
  font-size: 15px;
  margin: 0 0 6px;
}

.student-meta:last-child {
  margin-bottom: 0;
}


.loading-card {
  padding: 28px;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed var(--border);
  color: var(--muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.today-question-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.today-question-grid .info-card {
  min-height: 260px;
}

.today-insight-card {
  background: linear-gradient(150deg, #ffffff 0%, #f0f7ff 45%, #e8f9f3 100%);
}

.today-insight-pill {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #1e3a8a;
  font-weight: 700;
  font-size: 13px;
}

.today-insight-list {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #334155;
  line-height: 1.5;
}

.info-card {
  position: relative;
  background: #ffffff;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid #e6e2d6;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #22c55e, #06b6d4, #3b82f6);
}

.info-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.info-card-link:focus-visible .info-card {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.info-card:hover {
  transform: translateY(-8px);
  border-color: #d4c7a8;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.upcoming-test-card--active {
  border-color: #16a34a;
  box-shadow: 0 22px 48px rgba(22, 163, 74, 0.24);
}

.test-status {
  font-weight: 800;
  letter-spacing: 0.4px;
}

.test-status--active {
  color: #15803d;
}

.test-status--inactive {
  color: #92400e;
}

.test-status--upcoming {
  color: #ca8a04;
}

.test-status--over {
  color: #92400e;
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e0f2fe, #ecfdf3);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.card-icon svg {
  width: 30px;
  height: 30px;
  fill: #1d4ed8;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.gallery-btn {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.gallery-item {
  position: relative;
  border: none;
  background: #ffffff;
  padding: 12px;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid #e6e2d6;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-align: left;
}

.gallery-item img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
  transition: transform 0.25s ease;
  display: block;
  background: #f2f2f2;
}

.gallery-item span {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: #1f2937;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
  border-color: #d4c7a8;
}

.gallery-item:hover img {
  transform: scale(1.02);
}
.is-hidden {
  display: none;
}

.login-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-radius: 20px;
  background: #1d4ed8;
  color: #fff;
  box-shadow: var(--shadow);
}

.login-page {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.login-panel,
.login-info {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.login-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.login-lock {
  width: 44px;
  height: 44px;
}

.login-title h3 {
  margin: 0 0 4px;
}

.login-title p {
  margin: 0;
  color: #fff;
}




.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.login-form input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
}

.login-form select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: #fff;
}

.password-rules {
  font-size: 12px;
  color: var(--muted);
}

.password-toggle-row {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
}

.password-toggle-row input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.captcha-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  min-width: 100px;
  background: #111827;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 2px;
}

.login-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

.login-actions .register-now {
  margin-left: 10px;
}

.login-hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.login-list {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.dashboard-form {
  display: grid;
  gap: 12px;
}

.dashboard-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.dashboard-form input,
.dashboard-form textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
}

.notice-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.query-status {
  margin-top: 10px;
  color: var(--primary);
  font-weight: 600;
}

.dashboard-logout {
  margin-top: 24px;
}

.admin-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-tab {
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--primary-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.admin-tab.active {
  background: var(--primary);
  color: #b91c1c;
  border-color: var(--primary);
}

.admin-panels {
  display: grid;
  gap: 20px;
}

.admin-panel[hidden] {
  display: none;
}

.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.admin-form input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
}

.admin-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.admin-status {
  margin-top: 10px;
  font-weight: 600;
  color: var(--primary);
}

.admin-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14px;
}

.notice-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.notice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.notice-table thead {
  background: #0b4aa1;
  color: #b91c1c;
}

.notice-table th,
.notice-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.notice-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.notice-table a {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 800px) {
  .notice-table {
    font-size: 12px;
  }

  .notice-table th,
  .notice-table td {
    padding: 10px;
  }
}

.detail-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.detail-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #e0f2fe;
}

.detail-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--primary);
}

.detail-grid {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-highlight {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  font-weight: 600;
  color: var(--primary-dark);
}

.detail-back {
  margin-top: 24px;
  display: inline-flex;
}

.footer {
  background: #0b4aa1;
  color: #fff;
  padding: 40px 5vw 24px;
}

.footer h3,
.footer p,
.footer a,
.footer .footer-note,
.footer .footer-credit,
.footer .visitor-block p {
  color: #fff;
}


.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.footer h3 {
  margin-top: 0;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 700;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.social-icons a:nth-child(1) {
  background: linear-gradient(135deg, #1877f2, #60a5fa);
}

.social-icons a:nth-child(2) {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.social-icons a:nth-child(3) {
  background: linear-gradient(135deg, #111827, #1f2937);
}

.social-icons a:nth-child(4) {
  background: linear-gradient(135deg, #ff0000, #f97316);
}

.social-float {
  position: fixed;
  top: 80px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 160;
  transition: top 0.2s ease;
  transform: translateY(var(--social-offset, 0px));
}

.social-float .social-link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.social-float .social-link:nth-child(1) {
  background: linear-gradient(135deg, #1877f2, #60a5fa);
}

.social-float .social-link:nth-child(2) {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.social-float .social-link:nth-child(3) {
  background: linear-gradient(135deg, #111827, #1f2937);
}

.social-float .social-link:nth-child(4) {
  background: linear-gradient(135deg, #ff0000, #f97316);
}

.social-float .social-link {
  animation: socialPulse 2.8s ease-in-out infinite;
}

.social-float .social-link:nth-child(2) {
  animation-delay: 0.2s;
}

.social-float .social-link:nth-child(3) {
  animation-delay: 0.4s;
}

.social-float .social-link:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes socialPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.06);
  }
}

.footer-note {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.7);
}

.visitor-block p:first-child {
  margin-top: 0;
}

.footer-credit {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #b91c1c;
  font-size: 20px;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  filter: invert(var(--invert)) saturate(var(--saturate));
}

.lightbox img {
  max-width: min(900px, 90vw);
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.lightbox-caption {
  margin-top: 16px;
  color: #b91c1c;
  font-weight: 600;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: #fff;
  color: #0f172a;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

.high-contrast {
  background: #000;
  color: #fff;
}

.high-contrast a {
  color: #fff;
}

.high-contrast .top-header,
.high-contrast .main-header {
  background: #000;
  color: #fff;
}

.high-contrast .student-card,
.high-contrast .info-card,
.high-contrast .login-card {
  background: #000;
  color: #fff;
  border-color: #fff;
}

.high-contrast .gallery-item img {
  box-shadow: none;
  border: 2px solid #fff;
}

.cache-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 420px;
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 14px;
  z-index: 9999;
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.45);
}

.cache-consent__content h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.cache-consent__content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.45;
}

.cache-consent__actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cache-consent__actions .ghost-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 1100px) {
  .students-grid,
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .main-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
  }

  .main-nav.open {
    display: flex;
  }

  .students-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .login-page {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .banner-slider {
    height: 300px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .cache-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #f59e0b, #ef4444, #3b82f6);
  border-radius: 18px 18px 0 0;
}

.gallery-item::after {
  content: attr(data-caption);
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: #1f2937;
  letter-spacing: 0.2px;
}




















/* ===== 2026 LMS Enhancement Layer ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #2f6bff;
  --secondary: #06b6d4;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-dark: rgba(15, 23, 42, 0.65);
  --line: rgba(148, 163, 184, 0.35);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 22px 55px rgba(15, 23, 42, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(47, 107, 255, 0.2), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(6, 182, 212, 0.2), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(245, 158, 11, 0.18), transparent 35%),
    linear-gradient(145deg, #f7fbff 0%, #edf4ff 42%, #f5fbff 100%);
  color: #0f172a;
}

.top-header {
  background: linear-gradient(90deg, #0f2a65, #0b4aa1 45%, #1f7bbf);
  box-shadow: var(--shadow-soft);
}

.main-header {
  background: #f7f1e1;
  border: 1px solid #e8dcc3;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.main-nav a {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.main-nav a:hover {
  transform: translateY(-2px);
  color: #0b4aa1;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 2px;
  border-radius: 8px;
  background: linear-gradient(90deg, #2f6bff, #06b6d4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.banner-slider {
  height: clamp(320px, 45vw, 560px);
  border-top: 2px solid #ef4444;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.banner-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.42));
  pointer-events: none;
}

.hero-ict {
  position: relative;
  margin: -52px 5vw 0;
  padding: 34px;
  border-radius: 24px;
  color: #0f172a;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.hero-ict::before,
.hero-ict::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.hero-ict::before {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.25), transparent 65%);
  top: -70px;
  right: -40px;
}

.hero-ict::after {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.28), transparent 70%);
  bottom: -30px;
  left: -20px;
}

.hero-ict h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  line-height: 1.25;
}

.hero-ict p {
  margin: 0;
  max-width: none;
  width: 100%;
  line-height: 1.6;
  color: #334155;
}

.hero-cta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.ghost-btn {
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.primary-btn {
  background: linear-gradient(90deg, #f97316, #fb923c);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.3);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  border: 1px solid rgba(15, 23, 42, 0.28);
  color: #0f172a;
}

.section {
  padding: 64px 5vw;
}

.section-header h2 {
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
}

.students-grid,
.cards-grid {
  gap: 22px;
}

.student-card,
.info-card,
.dashboard-card,
.admin-card,
.login-panel,
.login-info,
.notice-table-wrap,
.detail-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
}

.student-card,
.info-card {
  box-shadow: var(--shadow-soft);
}

.student-card:hover,
.info-card:hover {
  box-shadow: var(--shadow-strong);
}

.student-card img {
  border: 1px solid #111827;
}

.info-card h3,
.student-card h3 {
  margin-top: 0;
}

.announcement-bar {
  background: linear-gradient(135deg, #fff7ed 0%, #eff6ff 52%, #f0fdf4 100%);
  border-top: 4px solid #fb923c;
}

.announcement-label {
  background: linear-gradient(135deg, #fde68a, #fdba74);
  color: #0f172a;
}

.announcement-track {
  color: #0f172a;
}

.leaderboard-card {
  position: relative;
}

.leaderboard-card::after {
  content: 'Top';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  font-weight: 700;
}

.practice-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.practice-bar select,
.admin-form select,
.admin-form input,
.dashboard-form input,
.dashboard-form textarea,
.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 12px;
  padding: 11px 12px;
  font-family: inherit;
}

.practice-bar select {
  max-width: 320px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery-item:nth-child(3n) img {
  aspect-ratio: 3/4;
}

.gallery-item:nth-child(4n) img {
  aspect-ratio: 16/9;
}

.footer {
  background: linear-gradient(120deg, #08245c, #0b4aa1 52%, #0d5cbc);
}

.footer-tagline {
  margin-top: 16px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.social-float {
  top: 180px;
}

.social-float .social-link {
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.test-shell {
  padding: 26px;
}

.test-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.timer-box {
  min-width: 150px;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(145deg, #0b4aa1, #2f6bff);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.timer-box span {
  display: block;
  font-size: 12px;
  opacity: 0.9;
}

.timer-box strong {
  font-size: 26px;
  letter-spacing: 1px;
}

.test-form {
  display: grid;
  gap: 16px;
}

.test-questions {
  display: grid;
  gap: 14px;
}

.test-question-card {
  padding: 20px;
}

.test-options {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.test-options label {
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.test-options label:hover {
  border-color: rgba(47, 107, 255, 0.6);
  background: rgba(47, 107, 255, 0.06);
}

.test-result {
  margin-top: 16px;
}

.resource-card .resource-open {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.notice-table thead {
  background: linear-gradient(90deg, #0b4aa1, #2f6bff);
}

.dashboard-logout {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-tab.active {
  background: linear-gradient(90deg, #2f6bff, #0b4aa1);
}

.dark-mode {
  color: #e2e8f0;
  background:
    radial-gradient(circle at 12% 10%, rgba(59, 130, 246, 0.22), transparent 35%),
    radial-gradient(circle at 86% 18%, rgba(8, 145, 178, 0.2), transparent 36%),
    linear-gradient(150deg, #0b1222 0%, #111827 52%, #0f172a 100%);
}

.dark-mode .main-header,
.dark-mode .hero-ict,
.dark-mode .student-card,
.dark-mode .info-card,
.dark-mode .dashboard-card,
.dark-mode .admin-card,
.dark-mode .notice-table-wrap,
.dark-mode .login-panel,
.dark-mode .login-info {
  background: var(--surface-dark);
  border-color: rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
}

.dark-mode .main-nav a,
.dark-mode .brand-title,
.dark-mode .brand-subtitle,
.dark-mode .student-meta,
.dark-mode .section-header p,
.dark-mode .info-card p,
.dark-mode .dashboard-card p,
.dark-mode .dashboard-card li,
.dark-mode .admin-hint {
  color: #cbd5e1;
}

.dark-mode .practice-bar select,
.dark-mode .admin-form input,
.dark-mode .admin-form select,
.dark-mode .dashboard-form input,
.dark-mode .dashboard-form textarea,
.dark-mode .login-form input {
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}

.dark-mode .ghost-btn {
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, 0.45);
}

/* Student spotlight enhancement */
.student-card {
  background: linear-gradient(160deg, #ffffff 0%, #f8fbff 45%, #eef6ff 100%);
  border: 1px solid rgba(47, 107, 255, 0.16);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  text-align: center;
}

.student-card--female {
  background: linear-gradient(160deg, #fff5fb 0%, #ffe4ef 42%, #ffeaf4 100%);
  border: 1px solid rgba(236, 72, 153, 0.28);
  box-shadow: 0 18px 38px rgba(190, 24, 93, 0.14);
}

.student-card--female::before {
  background: linear-gradient(90deg, #ec4899, #f472b6, #f9a8d4);
}

.student-card--female::after {
  border-color: rgba(236, 72, 153, 0.24);
}

.student-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 1px solid rgba(34, 197, 94, 0.15);
  pointer-events: none;
}

.student-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 26px 52px rgba(15, 23, 42, 0.2);
}

.student-avatar-wrap {
  width: 136px;
  height: 136px;
  margin: 0 auto 16px;
  border-radius: 999px;
  padding: 4px;
  background: linear-gradient(135deg, #0ea5e9, #22c55e, #f59e0b);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12), 0 12px 28px rgba(15, 23, 42, 0.18);
}

.student-card--female .student-avatar-wrap {
  background: linear-gradient(135deg, #ec4899, #f472b6, #fb7185);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14), 0 12px 28px rgba(190, 24, 93, 0.16);
}

.student-card img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 0;
  border: 2px solid #0f172a;
  background: #f8fafc;
}

.student-school {
  font-weight: 600;
  color: #1e293b;
}

.student-stream {
  color: #334155;
}

.student-gender {
  font-weight: 700;
  color: #0f172a;
}

.student-achievement {
  color: #475569;
  min-height: 24px;
}

.student-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde68a, #fdba74);
  color: #7c2d12;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.25);
}

.student-badge-icon {
  font-size: 14px;
  font-family: 'Segoe UI Symbol', 'Arial Unicode MS', serif;
  line-height: 1;
}

/* Admin spotlight controls */
.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.student-upload-preview-wrap {
  display: flex;
  justify-content: center;
}

.student-upload-preview {
  width: 100px;
  height: 100px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  border: 2px solid #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
  background: #f8fafc;
}

.admin-row {
  gap: 10px;
}

.admin-row span {
  flex: 1;
}

.admin-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-row-actions .primary-btn,
.admin-row-actions .ghost-btn {
  padding: 6px 10px;
}

@media (max-width: 1100px) {
  .hero-ict {
    margin-top: -34px;
  }
}

@media (max-width: 900px) {
  .test-top {
    flex-direction: column;
  }

  .timer-box {
    width: 100%;
  }

  .social-float {
    display: none;
  }
}

@media (max-width: 800px) {
  .hero-ict {
    margin: -20px 4vw 0;
    padding: 20px;
  }

  .hero-cta {
    gap: 8px;
  }

  .hero-cta .primary-btn,
  .hero-cta .ghost-btn {
    width: 100%;
    text-align: center;
  }

  .announcement-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .announcement-label {
    font-size: 14px;
  }

  .announcement-track {
    font-size: 14px;
    line-height: 1.35;
  }

  .announcement-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* ===== Navigation Simplification ===== */
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.main-nav-lms {
  gap: 12px;
  align-items: center;
}

.nav-link,
.nav-group-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #0f172a;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-group-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.12);
}

.nav-group {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  padding: 8px;
  display: none;
  z-index: 180;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.nav-dropdown a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

.nav-dropdown a::after {
  display: none !important;
}

.nav-dropdown a:hover {
  background: rgba(47, 107, 255, 0.1);
}

.nav-group:hover .nav-dropdown,
.nav-group.open .nav-dropdown {
  display: block;
}

.main-header.compact {
  padding-top: 18px;
  padding-bottom: 18px;
}

.main-header.compact .logo {
  width: 56px;
  height: 56px;
}

.main-header.compact .brand-title {
  font-size: 33px;
}

.main-header.compact .brand-subtitle {
  font-size: 14px;
}

@media (max-width: 980px) {
  .top-right {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 800px) {
  .main-nav-lms {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 0 14px;
  }

  .main-nav-lms.open {
    display: flex;
  }

  .nav-group {
    width: 100%;
  }

  .nav-link,
  .nav-group-btn {
    width: 100%;
    text-align: left;
    border-radius: 12px;
  }

  .nav-dropdown {
    position: static;
    display: none;
    min-width: 100%;
    box-shadow: none;
    margin-top: 6px;
    border-radius: 12px;
  }

  .nav-group.open .nav-dropdown {
    display: block;
  }
}

/* ===== Professional International UI Pass (UI-only) ===== */
:root {
  --pro-bg: #f4f7fb;
  --pro-surface: #ffffff;
  --pro-text: #0f172a;
  --pro-muted: #5b6b84;
  --pro-border: #d9e2ef;
  --pro-primary: #1e40af;
  --pro-primary-2: #2563eb;
  --pro-topbar: #0b1f4d;
  --pro-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.08);
  --pro-shadow-md: 0 16px 36px rgba(15, 23, 42, 0.12);
}

body {
  background:
    radial-gradient(circle at 12% 10%, rgba(37, 99, 235, 0.12), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(14, 165, 233, 0.1), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, var(--pro-bg) 55%, #eef4fb 100%);
  color: var(--pro-text);
}

.top-header {
  background: linear-gradient(90deg, #081736 0%, var(--pro-topbar) 55%, #123373 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--pro-shadow-sm);
}

.main-header {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--pro-border);
  box-shadow: var(--pro-shadow-sm);
}

.brand-title {
  font-family: 'Copperplate Gothic Bold', 'Copperplate Gothic', serif;
  font-size: 33px;
  color: #0f172a;
  background: linear-gradient(90deg, #f97316 0%, #fb923c 35%, #111827 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.2px;
  text-shadow: none;
}

.brand-subtitle {
  color: #4a5d7b;
  text-shadow: none;
}

.nav-link,
.nav-group-btn {
  font-weight: 700;
  letter-spacing: 0.45px;
  color: #12213c;
}

.nav-link:hover,
.nav-group-btn:hover {
  color: var(--pro-primary);
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}

.nav-dropdown {
  border-color: var(--pro-border);
  background: #ffffff;
  box-shadow: var(--pro-shadow-md);
}

.section {
  padding: clamp(34px, 4.2vw, 52px) 5vw;
}

.section-header {
  margin-bottom: 20px;
}

.section-header h2 {
  color: #102447;
  letter-spacing: 0.2px;
}

.section-title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-title-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
  flex: 0 0 36px;
}

.section-title-icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.section-title-text {
  display: inline-block;
}

.section-header p {
  color: var(--pro-muted);
  font-size: 1.01rem;
}

.hero-ict {
  background: linear-gradient(145deg, #fff9d7 0%, #fff3b0 55%, #ffe58f 100%);
  border: 1px solid #e7cf73;
  box-shadow: var(--pro-shadow-md);
}

.hero-ict h1 {
  color: #11254b;
  letter-spacing: 0.2px;
}

.hero-ict p {
  color: #455a79;
}

.today-question-grid .info-card {
  min-height: 220px;
}

.test-schedule-shell {
  padding: 14px;
}

@media (max-width: 800px) {
  .section {
    padding: 30px 5vw;
  }

  .section-header {
    margin-bottom: 16px;
  }
}

.primary-btn,
.ghost-btn {
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.primary-btn {
  background: linear-gradient(135deg, var(--pro-primary), var(--pro-primary-2));
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 10px 20px rgba(30, 64, 175, 0.28);
}

.ghost-btn {
  background: #ffffff;
  color: #1d355f;
  border: 1px solid var(--pro-border);
}

.student-card,
.info-card,
.dashboard-card,
.admin-card,
.login-panel,
.login-info,
.notice-table-wrap,
.detail-card {
  background: var(--pro-surface);
  border: 1px solid var(--pro-border);
  box-shadow: var(--pro-shadow-sm);
}

.student-card:hover,
.info-card:hover,
.dashboard-card:hover {
  box-shadow: var(--pro-shadow-md);
}

.announcement-bar {
  background: linear-gradient(90deg, #ecf2fb 0%, #f3f8ff 100%);
  border-top: 3px solid #f59e0b;
  border-bottom: 1px solid #d7e3f4;
}

.announcement-label {
  background: #dc2626;
  color: #fff7ed;
  border: 1px solid #991b1b;
  box-shadow: 0 8px 16px rgba(153, 27, 27, 0.3);
}

.announcement-label .announcement-icon svg {
  fill: #fde047;
}

.announcement-scroll {
  background: linear-gradient(90deg, #ffe08a 0%, #ffd166 45%, #ffbf69 100%);
  border: 1px solid rgba(146, 64, 14, 0.25);
  border-radius: 10px;
  padding: 7px 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.announcement-track {
  color: #111827;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.notice-table thead {
  background: linear-gradient(90deg, #173a7a 0%, #2354a6 100%);
  color: #ffffff;
}

.footer {
  background: linear-gradient(180deg, #0c1d43 0%, #081732 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer h3,
.footer p,
.footer a,
.footer-credit,
.footer-tagline {
  color: #f8fbff;
}

.footer a:hover {
  color: #bfdbfe;
}

/* ===== ICT Test Schedule Dashboard ===== */
.test-schedule-shell {
  position: relative;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(243, 248, 255, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.test-schedule-shell::before {
  content: '';
  position: absolute;
  top: -48px;
  right: -48px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25), rgba(6, 182, 212, 0));
  pointer-events: none;
}

.test-schedule-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.test-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.test-tab {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  color: #26415f;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
}

.test-tab:hover {
  transform: translateY(-1px);
}

.test-tab.active {
  color: #ffffff;
}

.test-tab-indicator {
  position: absolute;
  z-index: 1;
  left: 6px;
  top: 6px;
  bottom: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
  transition: transform 0.28s ease, width 0.28s ease;
}

.test-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.test-topic-filter {
  min-width: 220px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #ffffff;
  color: #102447;
  padding: 10px 12px;
  font-size: 14px;
}

.test-week-nav {
  display: inline-flex;
  gap: 8px;
}

.test-week-nav .ghost-btn {
  min-width: 42px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
}

.test-panel {
  opacity: 0;
  transform: translateY(8px);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

.test-panel.single-card {
  grid-template-columns: minmax(0, 1fr);
}

.test-panel.single-card .test-card {
  max-width: 100%;
}

.test-panel[hidden] {
  display: none !important;
}

.test-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeSlideIn 0.35s ease;
}

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

.test-card {
  position: relative;
  overflow: hidden;
  color: #0f172a;
}

.test-card h3,
.test-card .student-meta,
.test-card strong {
  color: #0f172a;
}

.test-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.test-card--previous {
  background: linear-gradient(160deg, #ffffff 0%, #f3f4f6 100%);
}

.test-card--previous::after {
  background: linear-gradient(90deg, #64748b, #cbd5e1);
}

.test-card--current {
  background: linear-gradient(160deg, #f0f9ff 0%, #ecfeff 100%);
  border-color: rgba(14, 116, 144, 0.3);
}

.test-card--current::after {
  background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.test-card--upcoming {
  background: linear-gradient(160deg, #faf5ff 0%, #fff7ed 100%);
  border-color: rgba(168, 85, 247, 0.3);
}

.test-card--upcoming::after {
  background: linear-gradient(90deg, #a855f7, #f97316);
}

.test-progress {
  height: 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.3);
  overflow: hidden;
  margin: 8px 0 14px;
}

.test-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.test-card-strategy {
  margin: 12px 0 14px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff7e6 0%, #fff1f2 45%, #eef6ff 100%);
  border: 1px solid rgba(251, 146, 60, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 22px rgba(30, 64, 175, 0.08);
}

.test-card-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(340px, 1fr);
  gap: 16px;
  align-items: start;
}

.test-card-summary .test-progress {
  margin-bottom: 14px;
}

.test-card-layout .test-card-strategy {
  margin: 0;
  min-height: 100%;
}

.test-card-quickpanel {
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(224, 242, 254, 0.85));
  border: 1px solid rgba(14, 165, 233, 0.25);
  min-height: 100%;
}

.test-card-quickpanel h4 {
  margin: 0 0 8px;
  color: #102447;
  font-size: 16px;
}

.test-card-quickpanel ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.55;
}

.test-card-strategy h4 {
  margin: 0 0 8px;
  color: #0f2a57;
  font-size: 16px;
}

.strategy-title-icon {
  margin-right: 6px;
  font-size: 15px;
  vertical-align: baseline;
}

.test-card-strategy p {
  margin: 0 0 10px;
  color: #374151;
}

.test-card-strategy-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.test-card-strategy-list {
  margin: 0 0 10px;
  padding-left: 18px;
  line-height: 1.5;
  color: #374151;
}

.test-card-strategy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 1024px) {
  .test-card-layout {
    grid-template-columns: 1fr;
  }
}

.test-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.4px;
}

.test-status--previous {
  background: rgba(100, 116, 139, 0.16);
  color: #334155;
}

.test-status--active {
  background: rgba(34, 197, 94, 0.18);
  color: #166534;
}

.test-status--upcoming {
  background: rgba(249, 115, 22, 0.18);
  color: #9a3412;
}

.test-insight-card {
  background: linear-gradient(160deg, #ffffff 0%, #eef6ff 55%, #ecfdf5 100%);
  border-color: rgba(59, 130, 246, 0.24);
}

.test-insight-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.test-insight-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.test-insight-list {
  margin: 0 0 16px;
  padding-left: 18px;
  line-height: 1.5;
  color: #334155;
}

.test-strategy-inline {
  margin-top: 16px;
}

.test-strategy-head {
  margin-bottom: 12px;
}

.test-strategy-head h3 {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  color: #102447;
}

.test-strategy-head p {
  margin: 0;
  color: #4b5d7c;
}

@media (max-width: 900px) {
  .test-schedule-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .test-tools {
    justify-content: space-between;
  }
}

@media (max-width: 700px) {
  .test-tabs {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .test-tab {
    padding: 9px 12px;
    font-size: 13px;
  }

  .test-topic-filter {
    min-width: 100%;
  }
}

/* ===== Premium Leaderboard ===== */
.leaderboard-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.leaderboard-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.leaderboard-tab {
  border: none;
  background: transparent;
  color: #243b5a;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.leaderboard-tab:hover {
  transform: translateY(-1px);
  background: rgba(37, 99, 235, 0.08);
}

.leaderboard-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.26);
}

.leaderboard-filters {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.leaderboard-filters input,
.leaderboard-filters select {
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 11px;
  padding: 9px 11px;
  background: #fff;
  min-width: 180px;
}

.leaderboard-card-premium {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.leaderboard-card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.18);
}

.leader-rank-1 {
  background: linear-gradient(155deg, #1b2a4d 0%, #f7c948 130%);
  color: #f8fafc;
}

.leader-rank-2 {
  background: linear-gradient(155deg, #e2e8f0 0%, #8ee6ff 120%);
}

.leader-rank-3 {
  background: linear-gradient(155deg, #e9d5ff 0%, #c4b5fd 60%, #93c5fd 130%);
}

.leader-rank-other {
  background: linear-gradient(155deg, #ffffff 0%, #f8fafc 100%);
}

.leader-rank-1 h3,
.leader-rank-1 .student-meta,
.leader-rank-1 strong {
  color: #f8fafc;
}

.leaderboard-rank-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.leader-rank-chip {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.leader-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
}

.leader-badge-icon {
  font-family: 'Segoe UI Symbol', 'Arial Unicode MS', serif;
  font-size: 14px;
}

.leaderboard-avatar-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  padding: 3px;
  background: linear-gradient(135deg, #22c55e, #06b6d4, #2563eb);
  margin-bottom: 10px;
}

.leaderboard-avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
}

.leaderboard-online-dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #22c55e;
  border: 2px solid #fff;
}

.leader-progress-ring {
  --leader-pct: 0;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 12px 0;
  background:
    radial-gradient(circle, #fff 52%, transparent 53%),
    conic-gradient(#06b6d4 calc(var(--leader-pct) * 1%), rgba(148, 163, 184, 0.28) 0);
}

.leader-rank-1 .leader-progress-ring {
  background:
    radial-gradient(circle, #1b2a4d 52%, transparent 53%),
    conic-gradient(#fbbf24 calc(var(--leader-pct) * 1%), rgba(226, 232, 240, 0.25) 0);
}

.leader-progress-ring span {
  font-size: 12px;
  font-weight: 800;
}

.leader-progress-bar {
  height: 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.3);
  overflow: hidden;
}

.leader-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

@media (max-width: 900px) {
  .leaderboard-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .leaderboard-filters {
    width: 100%;
  }

  .leaderboard-filters input,
  .leaderboard-filters select {
    min-width: 100%;
  }
}


/* ===== Leaderboard Visual Upgrade ===== */
.leaderboard-analytics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.leader-metric-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  padding: 14px 16px;
}

.leader-metric-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: #475569;
  font-weight: 700;
}

.leader-metric-value {
  margin: 6px 0 0;
  font-size: 25px;
  color: #0f2a5f;
  font-weight: 800;
}

#leaderboardGrid.cards-grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  align-items: stretch;
}

.leaderboard-card-premium {
  isolation: isolate;
}

.leaderboard-card-premium::after {
  content: '';
  position: absolute;
  inset: auto -30% -55% auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.35;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), rgba(59, 130, 246, 0));
}

.leader-rank-1 {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 20px 42px rgba(14, 28, 63, 0.34), 0 0 0 1px rgba(251, 191, 36, 0.2) inset;
}

.leader-rank-1 .leader-rank-chip {
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.52);
  color: #fff8db;
}

.leader-rank-2 {
  border-color: rgba(56, 189, 248, 0.42);
}

.leader-rank-3 {
  border-color: rgba(147, 51, 234, 0.35);
}

.leader-rank-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.35);
}

.leader-badge-chip {
  backdrop-filter: blur(4px);
}

.leader-rank-1 .leader-badge-chip {
  background: rgba(251, 191, 36, 0.17);
  border: 1px solid rgba(254, 240, 138, 0.45);
}

.leader-rank-2 .leader-badge-chip {
  background: rgba(56, 189, 248, 0.16);
}

.leader-rank-3 .leader-badge-chip {
  background: rgba(168, 85, 247, 0.16);
}

.leaderboard-avatar-wrap {
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.leader-progress-ring {
  animation: leaderPulse 2.8s ease-in-out infinite;
}

.leader-progress-bar span {
  transition: width 0.6s ease;
}

.leader-accent-label {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: #35507b;
}

.leader-rank-1 .leader-accent-label {
  color: #ffe08a;
}

.leader-placeholder {
  opacity: 0.96;
}

.leader-placeholder .leaderboard-avatar {
  filter: grayscale(1);
  opacity: 0.85;
}

.leader-placeholder .leader-progress-ring,
.leader-placeholder .leader-progress-bar span {
  opacity: 0.65;
}

.leader-placeholder .leader-badge-chip {
  background: rgba(255, 255, 255, 0.22);
}

@keyframes leaderPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@media (max-width: 1100px) {
  .leaderboard-analytics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #leaderboardGrid.cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .leaderboard-tabs {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
  }

  .leaderboard-tab {
    flex: 0 0 auto;
  }

  .leaderboard-analytics {
    grid-template-columns: 1fr;
  }

  #leaderboardGrid.cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 2026 Dashboard Redesign Overrides ===== */
.hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  animation: floatChip 4s ease-in-out infinite;
}

.hero-float--one { top: 20px; right: 150px; }
.hero-float--two { top: 72px; right: 32px; animation-delay: 0.8s; }
.hero-float--three { bottom: 20px; right: 120px; animation-delay: 1.5s; }

@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.section {
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5vw;
  right: 5vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.35), transparent);
}

.strategy-grid,
.today-question-grid {
  grid-template-columns: 1fr;
}

.strategy-card {
  background: linear-gradient(145deg, #eef4ff 0%, #ffffff 52%, #ecfdf5 100%);
  border-color: rgba(37, 99, 235, 0.22);
}

.strategy-metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px;
}

.strategy-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
}

.strategy-list {
  margin: 0 0 14px;
  padding-left: 18px;
  line-height: 1.55;
  color: #334155;
}

.strategy-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.today-quiz-card {
  background: linear-gradient(145deg, #ffffff 0%, #eff6ff 58%, #f8fafc 100%);
  border-color: rgba(59, 130, 246, 0.18);
}

.today-options {
  display: grid;
  gap: 9px;
  margin: 12px 0 14px;
}

.today-combined-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.today-col {
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.today-col-question {
  background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
}

.today-col-insight {
  background: linear-gradient(150deg, #fff9ec 0%, #fef3c7 38%, #ecfeff 100%);
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 12px 24px rgba(15, 23, 42, 0.08);
}

.insight-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.insight-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.28);
}

.insight-icon svg {
  width: 19px;
  height: 19px;
  fill: #ffffff;
}

.insight-head h3 {
  margin: 0 0 3px;
  color: #102447;
}

.insight-head p {
  margin: 0;
  color: #475569;
  font-size: 14px;
}

.insight-mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 10px;
}

.insight-metric {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(251, 146, 60, 0.26);
  color: #7c2d12;
  font-size: 12px;
  font-weight: 700;
}

.today-insight-list {
  list-style: none;
  padding-left: 0;
}

.today-insight-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.insight-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex: 0 0 10px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.insight-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(30, 64, 175, 0.2);
}

.today-extra-questions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(148, 163, 184, 0.6);
}

.today-extra-questions h4 {
  margin: 0 0 8px;
  color: #102447;
  font-size: 16px;
}

.today-extra-questions ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.5;
}

.today-extra-questions li {
  margin-bottom: 8px;
}

.today-extra-meta {
  display: block;
  font-size: 12px;
  color: #475569;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .today-combined-card {
    grid-template-columns: 1fr;
  }
}

.today-option {
  display: flex !important;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.today-option:hover {
  border-color: rgba(37, 99, 235, 0.38);
  background: rgba(37, 99, 235, 0.06);
}

.today-option input {
  accent-color: #2563eb;
}

.today-quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.today-feedback {
  margin: 10px 0 0;
  font-weight: 700;
}

.today-feedback.is-correct { color: #166534; }
.today-feedback.is-wrong { color: #b91c1c; }

.topic-card {
  position: relative;
  overflow: hidden;
}

.topic-chip {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.topic-progress {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.topic-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1d4ed8, #06b6d4);
}

.topic-color-1 { background: linear-gradient(145deg, #eff6ff, #dbeafe); }
.topic-color-2 { background: linear-gradient(145deg, #eef2ff, #e0e7ff); }
.topic-color-3 { background: linear-gradient(145deg, #ecfeff, #cffafe); }
.topic-color-4 { background: linear-gradient(145deg, #ecfdf5, #d1fae5); }
.topic-color-5 { background: linear-gradient(145deg, #fff7ed, #ffedd5); }
.topic-color-6 { background: linear-gradient(145deg, #faf5ff, #ede9fe); }
.topic-color-7 { background: linear-gradient(145deg, #fefce8, #fef9c3); }
.topic-color-8 { background: linear-gradient(145deg, #fdf2f8, #fce7f3); }

@media (max-width: 800px) {
  .hero-float { display: none; }
}
