:root {
  --ink: #172233;
  --muted: #5f6b7a;
  --cream: #f5f8fc;
  --paper: #ffffff;
  --gold: #2d6cdf;
  --gold-dark: #003b8f;
  --maroon: #003b8f;
  --maroon-dark: #0d1b2a;
  --border: #dbe5f1;
  --shadow: 0 18px 50px rgba(13, 27, 42, 0.12);
}
.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 6px 18px rgba(0, 59, 143, 0.14);
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  background: var(--cream);
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.top-bar {
  background: var(--maroon-dark);
  color: #fff;
  font-size: 0.9rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon-dark), var(--gold-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  border: 3px solid #fff;
  box-shadow: 0 5px 20px rgba(0,59,143,0.18);
}

.brand strong {
  display: block;
  font-size: 1.05rem;
}

.brand small {
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-links a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-links a:not(.admin-pill)::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.45rem;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover:not(.admin-pill)::after,
.nav-links a.active:not(.admin-pill)::after {
  transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a.active {
  background: #eaf1ff;
  color: var(--maroon);
  transform: translateY(-1px);
}

.nav-links .admin-pill {
  background: var(--maroon);
  color: #fff;
}

.nav-links .admin-pill:hover,
.nav-links .admin-pill.active {
  background: var(--gold-dark);
  color: #fff;
}

.menu-btn {
  display: none;
  border: 0;
  background: var(--maroon);
  color: #fff;
  font-size: 1.3rem;
  border-radius: 8px;
  width: 42px;
  height: 42px;
}


.update-ticker {
  position: relative;
  z-index: 5;
  width: min(91%, 1580px);
  min-height: 52px;
  margin: 22px auto -76px;
  display: none;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.1rem;
  padding: 0.55rem 1.35rem;
  background: linear-gradient(90deg, var(--gold-dark), var(--maroon-dark));
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0, 59, 143, 0.22);
  overflow: hidden;
}


.update-ticker::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 36%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-140%) skewX(-18deg);
  animation: ticker-shine 4.2s ease-in-out 1.6s infinite;
  pointer-events: none;
}

@keyframes ticker-shine {
  0%, 45% {
    transform: translateX(-140%) skewX(-18deg);
  }

  70%, 100% {
    transform: translateX(340%) skewX(-18deg);
  }
}
body.show-home-ticker .update-ticker {
  display: grid;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 30px;
  padding: 0 0.85rem;
  background: rgba(255, 255, 255, 0.86);
  color: var(--gold-dark);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-track {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  min-width: max-content;
  padding-left: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  animation: ticker-scroll 16s linear infinite;
}

.update-ticker:hover .ticker-content {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .ticker-content {
    padding-left: 0;
    animation: none;
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-card {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes seal-glow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(45,108,223,0);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(45,108,223,0.09);
  }
}
.tab-section {
  display: none;
}

.tab-section.active {
  display: block;
}

.hero {
  background:
    radial-gradient(circle at top left, rgba(45,108,223,0.16), transparent 34%),
    linear-gradient(135deg, #ffffff, #eaf1ff);
  padding: 7rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-content,
.hero-card,
.feature-card,
.classic-panel,
.contact-card,
.message-card,
.admin-panel {
  animation: fade-up 0.72s ease both;
}

.hero-card {
  animation: fade-up 0.78s ease both, float-card 6s ease-in-out 1s infinite;
}

.feature-card:nth-child(2),
.classic-panel:nth-child(2),
.contact-card:nth-child(2),
.admin-panel:nth-child(2) {
  animation-delay: 0.08s;
}

.feature-card:nth-child(3),
.admin-panel:nth-child(3) {
  animation-delay: 0.14s;
}

.eyebrow {
  color: var(--gold-dark);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin: 0 0 0.7rem;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.1;
  margin-top: 0;
}

.hero h1 {
  font-size: 4.75rem;
  margin-bottom: 1rem;
  color: var(--maroon-dark);
}

.hero-subtitle {
  font-size: 1.16rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.36), transparent 78%);
  transform: translateX(-130%);
  transition: transform 0.45s ease;
}

.btn:hover::after {
  transform: translateX(130%);
}

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

.btn.primary {
  background: var(--maroon);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,59,143,0.2);
}

.btn.primary:hover {
  background: var(--maroon-dark);
}

.btn.secondary {
  background: #f7faff;
  color: var(--maroon);
  border: 1px solid var(--border);
}

.btn.full {
  width: 100%;
}

.hero-card,
.classic-panel,
.feature-card,
.contact-card,
.message-card,
.admin-box,
.admin-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.feature-card:hover,
.classic-panel:hover,
.contact-card:hover,
.message-card:hover {
  transform: translateY(-5px);
  border-color: rgba(45,108,223,0.34);
  box-shadow: 0 22px 52px rgba(13, 27, 42, 0.14);
}

.hero-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
  animation: fade-up 0.78s ease both, float-card 6s ease-in-out 1s infinite;
}

.hero-card:hover {
  animation-play-state: paused;
  transform: translateY(-4px);
  box-shadow: 0 26px 58px rgba(13, 27, 42, 0.16);
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(45,108,223,0.12);
  right: -70px;
  top: -70px;
}

.seal {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: #fff;
  color: var(--maroon);
  border: 8px double var(--gold);
  font-weight: 900;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  animation: seal-glow 3.4s ease-in-out infinite;
}

.hero-card h3 {
  font-size: 2rem;
  color: var(--maroon-dark);
}

.hero-card li,
.classic-panel li {
  margin: 0.75rem 0;
}

.section-padding {
  padding: 4.5rem 0;
}

.section-title {
  margin-bottom: 2rem;
}

.section-title.centered {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-title span {
  color: var(--gold-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

.section-title h2,
.page-banner h1 {
  color: var(--maroon-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0.45rem 0 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 1.8rem;
}

.feature-card h3 {
  color: var(--maroon);
  font-size: 1.5rem;
}

.feature-card p,
.classic-panel p,
.contact-card p,
.message-card p,
.admin-box p {
  color: var(--muted);
  line-height: 1.7;
}

.page-banner {
  background: linear-gradient(135deg, var(--maroon-dark), var(--gold-dark));
  color: #fff;
  padding: 3.2rem 0;
}

.page-banner h1,
.page-banner .eyebrow {
  color: #fff;
}

.page-banner p:not(.eyebrow) {
  color: rgba(255,255,255,0.82);
  max-width: 760px;
}

.two-column,
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.classic-panel {
  padding: 2rem;
  border-top: 6px solid var(--gold);
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.info-list div {
  padding: 1.2rem;
  background: #f7faff;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.info-list strong {
  display: block;
  color: var(--maroon);
  margin-bottom: 0.3rem;
}

.info-list span {
  color: var(--muted);
}


.announcement-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.notice-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  background: #eaf1ff;
  color: var(--gold-dark);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.notice-badge.urgent {
  background: #fff1f2;
  color: #b4232f;
}

.notice-badge.important {
  background: #fff7ed;
  color: #c2410c;
}

.notice-badge.normal {
  background: #ecfdf3;
  color: #027a48;
}

.notice-badge.pinned {
  background: #eaf1ff;
  color: var(--gold-dark);
}

.notice-badge.audience,
.notice-badge.seen {
  background: #f7faff;
  color: var(--muted);
  text-transform: none;
}

.batch-check-list {
  display: grid;
  gap: 0.45rem;
  max-height: 180px;
  overflow: auto;
  margin-bottom: 1rem;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--ink);
  font-weight: 700;
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.checkbox-row.compact {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.empty-box.compact {
  padding: 0.8rem;
  border-radius: 10px;
}

.admin-announcement-actions {
  display: grid;
  gap: 0.5rem;
  min-width: 96px;
}

.admin-announcement-actions button {
  border: 1px solid var(--border);
  background: #f7faff;
  color: var(--gold-dark);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-announcement-actions button.danger {
  background: #fff1f2;
  color: #b4232f;
  border-color: #fecdd3;
}
.announcement-list {
  display: grid;
  gap: 1rem;
}

.announcement-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 6px solid var(--gold);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: 0 12px 30px rgba(42,27,15,0.08);
}

.announcement-card h3 {
  margin-bottom: 0.35rem;
  color: var(--maroon-dark);
  font-size: 1.45rem;
}

.announcement-date {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.announcement-card p {
  color: var(--muted);
  white-space: pre-wrap;
}

.empty-box {
  text-align: center;
  padding: 2.5rem;
  background: #f7faff;
  border: 1px dashed var(--gold);
  border-radius: 18px;
  color: var(--muted);
}

.contact-card,
.message-card,
.admin-box,
.admin-panel {
  padding: 2rem;
}

.contact-row {
  display: flex;
  gap: 0.6rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-row strong {
  min-width: 90px;
  color: var(--maroon);
}

.contact-card,
.message-card,
.contact-row,
.contact-row span {
  min-width: 0;
}

.contact-row span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.98rem;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(45,108,223,0.14);
}

label {
  display: block;
  font-weight: 700;
  color: var(--maroon-dark);
  margin-bottom: 0.35rem;
}

.admin-box {
  max-width: 440px;
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

.form-message {
  color: var(--maroon);
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}


.admin-mode-chooser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.mode-card {
  min-height: 190px;
  text-align: left;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.mode-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 22px 54px rgba(0, 59, 143, 0.16);
}

.mode-card span {
  display: inline-flex;
  margin-bottom: 1.2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.mode-card strong,
.mobile-dashboard-summary h3 {
  display: block;
  color: var(--maroon-dark);
  font-size: 1.5rem;
  margin-bottom: 0.55rem;
}

.mode-card small,
.mobile-dashboard-summary p,
.website-mode-topline p {
  color: var(--muted);
  line-height: 1.6;
}

.website-mode-topline,
.mobile-dashboard-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.website-mode-topline p,
.mobile-dashboard-summary p,
.mobile-dashboard-summary h3 {
  margin: 0;
}

.mobile-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.mobile-stat-grid article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 14px 34px rgba(13, 27, 42, 0.08);
}

.mobile-stat-grid span {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.mobile-stat-grid strong {
  color: var(--gold-dark);
  font-size: 2rem;
}

.app-admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  min-height: 620px;
}

.app-admin-sidebar {
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  min-height: 620px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(13, 27, 42, 0.08);
}

.app-sidebar-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.app-sidebar-head img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
  background: #f7faff;
}

.app-sidebar-head strong,
.app-sidebar-head span {
  display: block;
}

.app-sidebar-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.app-side-nav {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.app-side-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  padding: 0.75rem;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.app-side-link:hover,
.app-side-link.active {
  background: #eaf7ff;
  color: var(--gold-dark);
}

.side-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f2f6fc;
  color: var(--gold-dark);
  font-weight: 900;
}

.app-side-link.active .side-icon {
  background: #cfeeff;
}

.app-back-btn {
  margin-top: auto;
  border: 0;
  border-radius: 14px;
  background: var(--gold-dark);
  color: #fff;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.app-admin-main {
  min-width: 0;
}

.app-main-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.app-main-header h3,
.app-main-header p {
  margin: 0;
}

.app-main-header p:not(.eyebrow) {
  color: var(--muted);
}

.mobile-stat-grid.compact {
  grid-template-columns: repeat(2, 120px);
  gap: 0.7rem;
  margin: 0;
}

.mobile-stat-grid.compact article {
  padding: 0.9rem;
  border-radius: 14px;
  box-shadow: none;
}

.mobile-stat-grid.compact strong {
  font-size: 1.6rem;
}

.app-module-panel {
  display: block;
}

.app-module-panel > h3 {
  margin: 0 0 1rem;
}

.app-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.test-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.test-admin-grid.lower-grid {
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1fr) minmax(320px, 1.2fr);
  margin-top: 1rem;
}

.form-row.two,
.question-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.button-row.compact {
  margin-top: 0.8rem;
}

.btn.danger,
.button-row .btn.danger {
  background: #fff1f2;
  color: #b4232f;
  border-color: #fecdd3;
}

.test-list,
.question-list,
.test-result-list {
  display: grid;
  gap: 0.75rem;
  max-height: 560px;
  overflow: auto;
  padding-right: 0.2rem;
}

.test-card,
.question-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem;
}

.test-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  cursor: pointer;
}

.test-card:hover,
.test-card.selected {
  border-color: rgba(0, 62, 134, 0.35);
  background: #f7faff;
}

.test-card strong,
.test-card small,
.question-card strong,
.question-card small {
  display: block;
}

.test-card small,
.question-card small {
  color: var(--muted);
  margin-top: 0.25rem;
}

.test-card-actions {
  display: grid;
  gap: 0.45rem;
}

.test-card-actions button {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f7faff;
  color: var(--gold-dark);
  padding: 0.5rem 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.test-card-actions button.danger {
  background: #fff1f2;
  color: #b4232f;
  border-color: #fecdd3;
}

.question-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.question-head span {
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--gold-dark);
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.question-card p {
  margin: 0 0 0.65rem;
  white-space: pre-wrap;
}

.question-card ol {
  margin: 0;
  padding-left: 1.4rem;
}

.question-card li {
  margin: 0.25rem 0;
  color: var(--muted);
}

.question-card li.correct {
  color: #027a48;
  font-weight: 800;
}

.test-admin-grid {
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr);
  align-items: start;
}

.test-admin-grid.lower-grid {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  grid-template-areas:
    "tests bulk"
    "tests questions";
  align-items: start;
}

.test-admin-grid.lower-grid > .batch-create-box:nth-child(1) {
  grid-area: tests;
}

.test-admin-grid.lower-grid > .batch-create-box:nth-child(2) {
  grid-area: bulk;
}

.test-admin-grid.lower-grid > .batch-create-box:nth-child(3) {
  grid-area: questions;
}

.test-admin-grid.lower-grid textarea {
  min-height: 230px;
  font-family: inherit;
  line-height: 1.45;
}

.question-image-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.question-image-upload input[type="file"] {
  min-width: 0;
  margin-bottom: 0;
}

.question-image-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 0.8rem;
}

.question-image-preview img,
.question-card-image,
.option-card-image {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.question-image-preview img {
  max-height: 180px;
}

.question-card-image {
  max-height: 240px;
  margin: 0.6rem 0 0.8rem;
}

.option-card-image {
  max-height: 150px;
  margin-top: 0.4rem;
}

.question-card p,
.question-card li,
.question-card small,
.test-card strong,
.test-card small,
#bulkQuestionInput {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.question-card li span {
  display: block;
}

.test-module-panel {
  min-width: 0;
}

.test-app-shell {
  display: grid;
  gap: 1rem;
}

.test-app-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 1rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid rgba(0, 62, 134, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
}

.test-app-header h3,
.test-app-header p {
  margin: 0;
}

.test-batch-control label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.test-batch-control select,
.test-form-card select,
.test-form-card input,
.test-form-card textarea,
.test-import-card textarea {
  margin-bottom: 0.75rem;
}

.test-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.test-summary-strip article {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(13, 27, 42, 0.06);
}

.test-summary-strip span,
.selected-test-card dt {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.test-summary-strip strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--gold-dark);
  font-size: 1.65rem;
  line-height: 1;
}

.test-app-layout {
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
  grid-template-areas:
    "rail editor"
    "rail bank";
  gap: 1rem;
  align-items: start;
}

.test-rail {
  grid-area: rail;
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 128px);
  overflow: hidden;
}

.test-center-stack {
  grid-area: editor;
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.test-question-bank {
  grid-area: bank;
  overflow: hidden;
}

.test-center-stack .clean-form,
.test-question-bank {
  max-width: none;
}

.test-form-card,
.test-import-card,
.test-rail,
.test-question-bank {
  padding: 1rem;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(13, 27, 42, 0.07);
}

.test-panel-title {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.test-panel-title h4 {
  margin: 0;
  font-size: 1.02rem;
}

.test-panel-title .btn {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  font-size: 0.86rem;
}

.test-bank-title {
  align-items: flex-start;
  flex-wrap: wrap;
}

.test-bank-title > div:first-child {
  display: grid;
  gap: 0.42rem;
}

.test-view-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(0, 62, 134, 0.14);
  border-radius: 999px;
  background: #f6f9ff;
}

.test-view-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.test-view-switch button.active {
  background: var(--gold-dark);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 62, 134, 0.18);
}

.test-list,
.question-list,
.test-result-list {
  scrollbar-width: thin;
}

.test-rail .test-list {
  max-height: calc(100vh - 300px);
}

.test-question-bank .question-list,
.test-question-bank .test-result-list {
  max-height: 640px;
}

.test-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.9rem;
  border-radius: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.test-card:hover {
  transform: translateY(-2px);
}

.test-card.selected {
  border-color: rgba(0, 62, 134, 0.5);
  background: linear-gradient(135deg, #ffffff 0%, #edf5ff 100%);
  box-shadow: inset 4px 0 0 var(--gold-dark);
}

.test-card-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: start;
}

.test-card-topline strong {
  font-size: 0.98rem;
  line-height: 1.35;
}

.test-status-pill,
.test-mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: #eef4ff;
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.test-status-pill.published,
.test-mini-badge.published {
  background: #ecfdf3;
  color: #027a48;
}

.test-status-pill.draft,
.test-mini-badge.draft,
.test-mini-badge.muted {
  background: #f2f6fc;
  color: var(--muted);
}

.test-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.test-card-meta span {
  border-radius: 999px;
  background: #f7faff;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.24rem 0.5rem;
  font-size: 0.76rem;
  font-weight: 800;
}

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

.selected-test-summary {
  margin-bottom: 0.9rem;
}

.selected-test-card {
  padding: 0.85rem;
  border: 1px solid rgba(0, 62, 134, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
}

.selected-test-card.empty {
  display: grid;
  gap: 0.2rem;
  color: var(--muted);
}

.selected-test-card strong,
.selected-test-card span {
  display: block;
}

.selected-test-card strong {
  color: var(--maroon-dark);
}

.selected-test-card span {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.selected-test-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.85rem 0 0;
}

.selected-test-card dt,
.selected-test-card dd {
  margin: 0;
}

.selected-test-card dd {
  color: var(--ink);
  font-weight: 800;
}

.test-question-bank .question-card {
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(13, 27, 42, 0.05);
}

.test-question-bank .question-card + .question-card {
  margin-top: 0.8rem;
}

.test-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem;
  border: 1px solid rgba(0, 62, 134, 0.15);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 22px rgba(13, 27, 42, 0.05);
}

.test-result-card + .test-result-card {
  margin-top: 0.8rem;
}

.result-student-name {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
}

.result-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

.result-meta-line li {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.result-score-ring {
  display: grid;
  place-items: center;
  width: 72px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--gold-dark) var(--score, 0%), #e7eefb 0);
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: 900;
  position: relative;
}

.result-score-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: #fff;
}

.result-score-ring span {
  position: relative;
  z-index: 1;
}

.result-answer-preview {
  grid-column: 1 / -1;
  margin-top: 0.15rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.test-import-card textarea {
  min-height: 220px;
  line-height: 1.5;
}.clean-form {
  max-width: 720px;
}

.clean-form h4,
.student-list-panel h4 {
  margin: 0 0 0.8rem;
}

.student-list-panel {
  margin-top: 1rem;
}


.upload-progress {
  position: relative;
  height: 30px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaf1ff;
  margin-bottom: 1rem;
}

.upload-progress > div {
  display: grid;
  place-items: center;
  width: 0%;
  min-width: 52px;
  height: 100%;
  border-radius: inherit;
  background: var(--gold-dark);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  transition: width 0.2s ease;
}

.upload-status {
  margin: -0.4rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.upload-status.success {
  color: #027a48;
}

.upload-status.error {
  color: #b4232f;
}

button:disabled {
  opacity: 0.62;
  cursor: wait;
}
.form-divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}
.materials-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 1rem;
  margin-top: 1rem;
}

.material-folder-list,
.material-file-list {
  display: grid;
  gap: 0.65rem;
  max-height: 440px;
  overflow: auto;
  padding-right: 0.2rem;
}

.material-folder-item,
.material-file-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.material-folder-item {
  cursor: pointer;
}

.material-folder-item:hover,
.material-folder-item.selected {
  border-color: rgba(0, 62, 134, 0.35);
  background: #f7faff;
}

.material-folder-item strong,
.material-file-item strong,
.material-folder-item small,
.material-file-item small,
.material-file-item a {
  display: block;
}

.material-folder-item small,
.material-file-item small {
  color: var(--muted);
  margin-top: 0.2rem;
}

.material-file-item a {
  width: fit-content;
  margin-top: 0.35rem;
  color: var(--gold-dark);
  font-weight: 800;
  text-decoration: none;
}

.material-folder-item button,
.material-file-item button {
  border: 1px solid var(--border);
  background: #f7faff;
  color: var(--gold-dark);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.material-folder-item button.danger,
.material-file-item button.danger {
  background: #fff1f2;
  color: #b4232f;
  border-color: #fecdd3;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.full-panel {
  margin-top: 1.2rem;
}


.batch-admin-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.batch-create-box {
  background: #f7faff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
}

.compact-note {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
}

select {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.98rem;
  color: var(--ink);
  outline: none;
}

select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(45,108,223,0.14);
}


.admin-student-list {
  display: grid;
  gap: 0.7rem;
  max-height: 520px;
  overflow: auto;
  padding-right: 0.2rem;
}

.admin-student-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}


.student-credential-block h4 {
  margin-bottom: 0.9rem;
}

.student-credential-block dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.student-credential-block dl div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.student-credential-block dt {
  color: var(--muted);
  font-weight: 700;
}

.student-credential-block dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-student-actions {
  display: grid;
  gap: 0.55rem;
  min-width: 136px;
}

.admin-student-actions button {
  border: 1px solid var(--border);
  background: #f7faff;
  color: var(--gold-dark);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-student-actions button.danger {
  background: #fff1f2;
  color: #b4232f;
  border-color: #fecdd3;
}
.admin-student-item.blocked {
  border-color: #fecdd3;
  background: #fff7f8;
}

.admin-student-item h4,
.admin-student-item p {
  margin: 0 0 0.25rem;
}

.admin-student-item p,
.admin-student-item small {
  color: var(--muted);
}
.admin-batch-list {
  display: grid;
  gap: 0.8rem;
}

.admin-batch-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.admin-batch-item h4,
.admin-batch-item p {
  margin: 0 0 0.25rem;
}

.admin-batch-item p,
.admin-batch-item small {
  color: var(--muted);
}

.admin-batch-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.admin-batch-actions button {
  border: 1px solid var(--border);
  background: #f7faff;
  color: var(--gold-dark);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-batch-actions button.danger {
  background: #fff1f2;
  color: #b4232f;
  border-color: #fecdd3;
}.admin-batch-item {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-batch-item:hover,
.admin-batch-item:focus-visible,
.admin-batch-item.selected {
  border-color: rgba(0, 62, 134, 0.35);
  background: #f7faff;
  box-shadow: 0 14px 28px rgba(0, 45, 98, 0.08);
  outline: none;
}

.admin-batch-main {
  min-width: 0;
}

.selected-batch-panel {
  margin-top: 1rem;
}

.selected-batch-panel > .empty-box {
  margin-top: 0;
}

.selected-batch-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(0, 62, 134, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
}

.selected-batch-header h3,
.selected-batch-header p {
  margin: 0.25rem 0 0;
}

.selected-batch-header p {
  color: var(--muted);
}

.selected-batch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.batch-tool-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.batch-tool-card h4 {
  margin: 0;
}

.batch-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
}

.selected-student-list,
.selected-notice-list {
  display: grid;
  gap: 0.6rem;
}

.selected-student-row,
.selected-notice-row {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f7faff;
}

.selected-student-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.selected-student-row small,
.selected-notice-row small {
  display: block;
  color: var(--muted);
}

.selected-student-row button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--gold-dark);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-announcement-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f7faff;
  margin-bottom: 0.8rem;
}

.admin-announcement-item h4 {
  margin: 0 0 0.25rem;
}

.delete-btn {
  background: #b4232f;
  color: #fff;
  border: 0;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.footer {
  background: var(--maroon-dark);
  color: #fff;
  padding: 2rem 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer h3,
.footer p {
  margin: 0.25rem 0;
}

.footer p {
  color: rgba(255,255,255,0.78);
}

@media (max-width: 860px) {
  .top-bar-inner,
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }

  .menu-btn {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 76px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 0.8rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: 12px;
  }

  .hero-grid,
  .two-column,
  .contact-grid,
  .dashboard-grid,
  .admin-mode-chooser,
  .mobile-stat-grid,
  .batch-admin-layout,
  .app-admin-shell,
  .app-main-header,
  .app-module-grid,
  .test-admin-grid,
  .test-admin-grid.lower-grid,
  .materials-workspace,
  .feature-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

  .test-app-header,
  .test-app-layout,
  .test-summary-strip,
  .test-card-topline,
  .selected-test-card dl {
    grid-template-columns: 1fr;
  }

  .test-app-layout {
    grid-template-areas:
      "rail"
      "editor"
      "bank";
  }

  .test-rail,
  .test-question-bank {
    position: static;
    max-height: none;
  }

  .test-rail .test-list,
  .test-question-bank .question-list,
  .test-question-bank .test-result-list {
    max-height: none;
  }

  .test-admin-grid.lower-grid {
    grid-template-areas:
      "tests"
      "bulk"
      "questions";
  }

  .question-image-upload,
  .question-image-preview {
    grid-template-columns: 1fr;
  }

  .app-admin-sidebar {
    position: static;
    min-height: auto;
  }

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

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

  .hero {
    padding: 6.4rem 0 3.5rem;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .admin-batch-item {
    grid-template-columns: 1fr;
  }

  .admin-batch-actions {
    justify-content: flex-start;
  }

  
  .selected-batch-header,
  .selected-batch-grid,
  .batch-inline-form,
  .selected-student-row {
    grid-template-columns: 1fr;
  }

  .website-mode-topline,
  .mobile-dashboard-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .mode-card {
    min-height: 150px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  #contact .page-banner {
    padding: 2.4rem 0;
  }

  #contact .section-padding {
    padding: 2.8rem 0;
  }

  .contact-grid {
    gap: 1rem;
  }

  .contact-card,
  .message-card {
    width: 100%;
    padding: 1.2rem;
    border-radius: 18px;
  }

  .contact-card h3,
  .message-card h3 {
    font-size: 1.35rem;
  }

  .contact-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.75rem 0;
  }

  .contact-row strong {
    min-width: 0;
  }

  .message-card .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .update-ticker {
    width: min(98%, 1580px);
    min-height: 46px;
    margin: 16px auto -62px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.45rem 0.7rem;
  }

  
  .ticker-label {
    min-width: auto;
    min-height: 30px;
    padding: 0 0.7rem;
    font-size: 0.68rem;
  }

  .ticker-content {
    font-size: 0.86rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }
}






