/* ==========================================================================
   BAMISAYO SCHOOL & COLLEGE - OFFICIAL STYLESHEET
   Motto: Beaming talents for a brighter future
   ========================================================================== */

:root {
  --navy-dark: #0a1931;
  --navy: #14279b;
  --navy-light: #1e3a8a;
  --sky: #0ea5e9;
  --sky-light: #e0f2fe;
  --gold: #d4af37;
  --gold-light: #fef3c7;
  --bg-light: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 25px -5px rgba(10, 25, 49, 0.08), 0 8px 10px -6px rgba(10, 25, 49, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(10, 25, 49, 0.15);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Announcement Bar */
.top-bar {
  background: var(--navy-dark);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--gold);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar span strong {
  color: var(--gold);
}

/* Header & Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: #000;
}

.brand-text h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-text p {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(20, 39, 155, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(20, 39, 155, 0.35);
}

.btn-gold {
  background: linear-gradient(135deg, #e5c158 0%, var(--gold) 100%);
  color: var(--navy-dark);
}

.btn-gold:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #ffffff;
}

.btn-danger {
  background: #fee2e2;
  color: var(--danger);
  border: 1px solid #fecaca;
}

.btn-danger:hover {
  background: var(--danger);
  color: #ffffff;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, #102a5c 60%, #0c4a6e 100%);
  color: #ffffff;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

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

.motto-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #fde68a;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero h2 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}

.hero h2 span {
  color: #38bdf8;
}

.hero p {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
}

.stat-item p {
  font-size: 0.82rem;
  margin: 0;
  color: #94a3b8;
}

.hero-media {
  position: relative;
}

.campus-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
  background: #0f172a;
}

.campus-frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.campus-caption {
  background: rgba(10, 25, 49, 0.92);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #e2e8f0;
}

/* Section Generic */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.75rem;
}

.section-tag {
  display: inline-block;
  color: var(--navy);
  background: var(--sky-light);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.65rem;
}

.section-header p {
  color: var(--text-muted);
}

/* Result Checker Portal Section */
.portal-section {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.portal-wrapper {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  align-items: start;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
}

.form-group {
  margin-bottom: 1.05rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.68rem 0.9rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.94rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(20, 39, 155, 0.12);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.preset-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--navy-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
}

.preset-pill:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.demo-box {
  margin-top: 1.25rem;
  padding: 0.9rem;
  background: #f1f5f9;
  border-radius: 8px;
  border-left: 3.5px solid var(--sky);
}

.demo-box p {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.5rem;
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.alert-error {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: none;
}

.alert-success {
  background: #f0fdf4;
  color: var(--success);
  border: 1px solid #bbf7d0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: none;
}

/* Report Card Sheet */
.report-placeholder {
  text-align: center;
  padding: 4rem 2rem;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  color: var(--text-muted);
}

.report-placeholder img {
  width: 78px;
  height: 78px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  opacity: 0.85;
}

.report-sheet {
  display: none;
  background: #ffffff;
  border: 2px solid var(--navy-dark);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border-bottom: 3px double var(--navy-dark);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.report-header img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: #000;
}

.report-school-info {
  text-align: center;
  flex: 1;
}

.report-school-info h3 {
  font-size: 1.42rem;
  font-weight: 900;
  color: var(--navy-dark);
  letter-spacing: 0.02em;
}

.report-school-info .motto {
  font-style: italic;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.88rem;
}

.report-school-info .sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.report-title-banner {
  background: var(--navy-dark);
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  padding: 0.42rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.student-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem 0.9rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 0.8rem 0.95rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.83rem;
}

.student-meta-grid div span {
  color: var(--text-muted);
  font-weight: 600;
}

.student-meta-grid div strong {
  color: var(--navy-dark);
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin-bottom: 1rem;
}

.result-table th {
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 0.52rem 0.55rem;
  border: 1px solid var(--navy-dark);
}

.result-table th.num,
.result-table td.num {
  text-align: center;
}

.result-table td {
  padding: 0.48rem 0.55rem;
  border: 1px solid #cbd5e1;
}

.result-table tr:nth-child(even) {
  background: #f8fafc;
}

.grade-badge {
  display: inline-block;
  padding: 0.12rem 0.42rem;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.76rem;
}

.grade-A { background: #dcfce7; color: #166534; }
.grade-B { background: #dbeafe; color: #1e40af; }
.grade-C { background: #fef9c3; color: #854d0e; }
.grade-D, .grade-E { background: #ffedd5; color: #9a3412; }
.grade-F { background: #fee2e2; color: #991b1b; }

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.summary-box {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.55rem;
  text-align: center;
}

.summary-box small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.summary-box strong {
  font-size: 1rem;
  color: var(--navy-dark);
}

/* Affective & Grading Key Row */
.report-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.mini-box {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  background: #f8fafc;
  font-size: 0.78rem;
}

.mini-box h5 {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy-dark);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.25rem;
}

.remarks-box {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.84rem;
  background: #fffbeb;
  margin-bottom: 1rem;
}

.remarks-box p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.remarks-box p:last-child {
  margin-bottom: 0;
}

/* Official School Newsletter Section on Report Card */
.report-newsletter-box {
  border: 1.5px solid var(--navy);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #f0f9ff;
  padding: 0.95rem 1.1rem;
  margin-bottom: 1rem;
}

.report-newsletter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #bae6fd;
  padding-bottom: 0.4rem;
  margin-bottom: 0.55rem;
}

.report-newsletter-header h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.report-newsletter-header span {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--navy);
  color: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.report-newsletter-content {
  font-size: 0.83rem;
  color: #1e293b;
  white-space: pre-line;
  line-height: 1.55;
}

.signature-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sig-line {
  flex: 1;
  border-top: 1.5px solid #475569;
  padding-top: 0.3rem;
  text-align: center;
  font-weight: 700;
  color: var(--navy-dark);
}

/* ==========================================================================
   SCHOOL EVENTS GALLERY SECTION
   ========================================================================== */

.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

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

.gallery-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-media-box {
  position: relative;
  height: 230px;
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
}

.gallery-media-box img,
.gallery-media-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-media-box img {
  transform: scale(1.04);
}

.media-type-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(10, 25, 49, 0.85);
  color: #fde68a;
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gallery-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--sky);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.gallery-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.45rem;
}

.gallery-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.gallery-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* Lightbox Viewer */
.lightbox-content {
  background: #0a1931;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  max-width: 860px;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.lightbox-media {
  max-height: 70vh;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media img,
.lightbox-media video {
  max-height: 70vh;
  width: auto;
  max-width: 100%;
}

.lightbox-info {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Academic Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--sky-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Modal for Staff Admin & Media Admin */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 49, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.file-drop-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Footer */
.footer {
  background: var(--navy-dark);
  color: #cbd5e1;
  padding: 3.5rem 0 1.5rem;
  border-top: 4px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
}

.footer ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.84rem;
  color: #94a3b8;
}


.footer-link-btn {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.footer-link-btn:hover {
  color: var(--gold);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .portal-wrapper,
  .grid-3,
  .gallery-grid,
  .footer-grid,
  .report-sub-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .student-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Mobile Menu Drawer & Active Link Highlight */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
}

.nav-links a.active {
  color: var(--navy);
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2.5px;
  background: var(--gold);
  border-radius: 2px;
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 2px solid var(--navy);
    box-shadow: var(--shadow-md);
    z-index: 999;
  }

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

  .nav-links li a {
    display: block;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-actions .btn-sm {
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
  }
}

/* Print Styling - Outputs Clean Official Result Sheet + Newsletter Only */
@media print {
  body * {
    visibility: hidden;
  }

  #reportSheet,
  #reportSheet * {
    visibility: visible;
  }

  #reportSheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: 2px solid #000;
    box-shadow: none;
    padding: 0.75rem;
  }

  .no-print {
    display: none !important;
  }
}
