/* ============================================================
   Kabale Brainstorm High School - Main Stylesheet v2
   Design inspired by kbhs React reference app
   Colors: Navy #172554 | Blue #1e40af | Amber #f59e0b | Slate #0f172a
   Compatible with Macromedia Dreamweaver 8 / PHP 5.3+ / WAMP 2.0
   ============================================================ */

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables / Design Tokens ---------- */
/* Derived from Tailwind classes used in App.tsx */
/* blue-950:#172554 blue-900:#1e3a8a blue-800:#1e40af blue-600:#2563eb */
/* amber-500:#f59e0b amber-400:#fbbf24 slate-800:#1e293b slate-600:#475569 */

/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.6;
  padding-top: 120px; /* accounts for fixed header */
}
/* Watermark school logo on every public page */
body:before {
  content: '';
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 420px;
  margin-top: -210px;
  margin-left: -210px;
  background-image: url('https://miaoda-conversation-file.s3cdn.medo.dev/user-by2lvehjuy9t/app-by2qo5n6a32b/20260528/bgw-removebg-preview(1).png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
a { color: #1e40af; text-decoration: none; }
a:hover { color: #f59e0b; text-decoration: none; }
h1,h2,h3,h4,h5 { margin-bottom: 10px; line-height: 1.3; font-weight: 800; }
p { margin-bottom: 10px; }
ul { list-style: disc; padding-left: 20px; margin-bottom: 10px; }
img { border: 0; max-width: 100%; }
.clear { clear: both; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   STICKY HEADER
   ============================================================ */
.sticky-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(23,37,84,0.18);
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: #1e3a8a;
  color: #bfdbfe;
  font-size: 11px;
  padding: 6px 0;
  letter-spacing: 0.02em;
}
.top-bar-left { float: left; }
.top-bar span { color: #bfdbfe; }
.top-bar-right { float: right; }
.top-bar span { margin-right: 16px; }
.top-bar a { color: #bfdbfe; }
.top-bar a:hover { color: #f59e0b; }

/* Admin / Portal login button in top bar */
.top-bar-admin-btn {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #e2e8f0 !important;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  margin-left: 4px;
}
.top-bar-admin-btn:hover {
  background: rgba(255,255,255,0.2) !important;
  color: #fff !important;
  text-decoration: none;
}

/* ---------- Site Header ---------- */
.site-header {
  background: #FFFFFF;
  padding: 6px 0;
  border-bottom: 3px solid #f59e0b;
  overflow: hidden;
}
.logo-area { float: left; overflow: visible; }
.logo-img {
  float: left;
  width: 64px; height: 64px;
  margin-right: 14px;
  border-radius: 4px;
  object-fit: contain;
  background: transparent;
}
.logo-text-wrap { float: left; padding-top: 6px; }
.logo-text {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: #0000FF;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
}
.logo-sub {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
}
.logo-motto {
  display: block;
  font-size: 10px;
  color: #808080;
  font-style: italic;
  margin-top: 1px;
}

/* ---------- Navigation ---------- */
.nav-bar {
  background: transparent;
}
/* Nav floated right, vertically centred inside .site-header row */
.nav-area {
  float: right;
  padding-top: 4px;
}
.nav-menu { list-style: none; padding: 0; margin: 0; }
.nav-menu li { float: left; }
.nav-menu li a {
  display: block;
  color: #000000;
  padding: 18px 14px 14px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-menu li a:hover,
.nav-menu li.active a {
  color: #FFFFFF;
  border-bottom-color: #f59e0b;
  text-decoration: none;
  background: #003366;
}
.nav-admin-btn {
  float: right;
  padding: 8px 16px;
  margin: 5px 0;
  background: #f59e0b;
  color: #172554 !important;
  font-size: 11px;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  border-bottom: none !important;
}
.nav-admin-btn:hover {
  background: #d97706 !important;
  color: #ffffff !important;
}

/* ============================================================
   HERO SLIDESHOW
   ============================================================ */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  display: none;
}
.slide.active { display: block; animation: fadeInSlide 0.7s ease forwards; }
@keyframes fadeInSlide {
  from { opacity: 0; }
  to { opacity: 1; }
}
.slide-overlay {
  background: linear-gradient(135deg, rgba(23,37,84,0.85) 0%, rgba(23,37,84,0.5) 60%, rgba(0,0,0,0.2) 100%);
  width: 100%; height: 100%;
}
.slide-content { padding-top: 80px; max-width: 580px; }
.slide-badge {
  display: inline-block;
  background: #f59e0b;
  color: #172554;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.slide-content h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 900;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  letter-spacing: -0.02em;
}
.slide-content h2 {
  color: #bfdbfe;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}
.slide-content p {
  color: #e2e8f0;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.7;
  max-width: 500px;
}
.slide-prev, .slide-next {
  position: absolute;
  top: 50%; margin-top: -24px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 12px 18px;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 8px;
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.2);
}
.slide-prev { left: 16px; }
.slide-next { right: 16px; }
.slide-prev:hover, .slide-next:hover {
  background: #f59e0b;
  color: #172554;
  text-decoration: none;
}
.slide-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  margin: 0 4px;
  cursor: pointer;
}
.dot.active { background: #f59e0b; width: 24px; border-radius: 4px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: #1e40af;
  color: #fff;
  padding: 11px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: #172554; color: #fff; text-decoration: none; transform: translateY(-1px); }

.btn-amber {
  display: inline-block;
  background: #f59e0b;
  color: #172554;
  padding: 11px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.1s;
}
.btn-amber:hover { background: #d97706; color: #172554; text-decoration: none; transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  background: #e2e8f0;
  color: #1e293b;
  padding: 11px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-secondary:hover { background: #cbd5e1; color: #1e293b; text-decoration: none; }

.btn-white {
  display: inline-block;
  background: #fff;
  color: #1e40af;
  padding: 11px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-white:hover { background: #f1f5f9; color: #1e40af; text-decoration: none; }

.btn-outline-white {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.5);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); color: #fff; text-decoration: none; }

.btn-full { width: 100%; text-align: center; display: block; }

.btn-download {
  display: inline-block;
  background: #1e40af;
  color: #fff;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-download:hover { background: #172554; color: #fff; text-decoration: none; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 56px 0; }
.bg-white { background: #fff; }
.bg-light { background: #f8fafc; }
.bg-blue { background: #172554; }
.bg-navy { background: #0f172a; }
.bg-amber { background: #f59e0b; }

.section-title { text-align: center; margin-bottom: 40px; }
.section-title .section-tag {
  display: inline-block;
  background: #eff6ff;
  color: #1e40af;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  border: 1px solid #bfdbfe;
}
.section-title h2 {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.section-title p {
  color: #64748b;
  max-width: 600px;
  margin: 10px auto 0;
  font-size: 15px;
}
.section-title.light h2 { color: #fff; }
.section-title.light p { color: #93c5fd; }
.section-title.light .section-tag {
  background: rgba(255,255,255,0.12);
  color: #fbbf24;
  border-color: rgba(245,158,11,0.3);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: #0f172a;
  padding: 0;
  border-top: 3px solid #f59e0b;
}
.stats-bar-inner { overflow: hidden; }
.stat-item {
  float: left;
  width: 25%;
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.stat-item:last-child { border-right: none; }
.stat-item strong {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: #f59e0b;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-item span {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

/* ============================================================
   TWO-COLUMN LAYOUT
   ============================================================ */
.two-col .col { float: left; width: 48%; margin-right: 4%; }
.two-col .col:last-child { margin-right: 0; }

/* ============================================================
   NEWS / CONTENT CARDS
   ============================================================ */
.cards-row { overflow: hidden; }
.card {
  float: left;
  width: 30%;
  margin-right: 3%;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15,23,42,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:last-child { margin-right: 0; }
.card:hover {
  box-shadow: 0 8px 32px rgba(30,64,175,0.14);
  transform: translateY(-3px);
}
.card-category {
  background: #1e40af;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.card-image {
  width: 100%; height: 180px;
  object-fit: cover;
  display: block;
}
.card-image-placeholder {
  width: 100%; height: 180px;
  background: #eff6ff;
  display: table;
  text-align: center;
}
.card-image-placeholder span {
  display: table-cell;
  vertical-align: middle;
  color: #93c5fd;
  font-size: 13px;
}
.card-body { padding: 18px; }
.card-date { color: #94a3b8; font-size: 11px; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.card-body h3 { font-size: 15px; color: #0f172a; margin-bottom: 8px; font-weight: 700; line-height: 1.4; }
.card-link { color: #1e40af; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.card-link:hover { color: #f59e0b; text-decoration: none; }

/* ============================================================
   ABOUT / FEATURE ITEMS
   ============================================================ */
.about-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(15,23,42,0.15);
  margin-bottom: 20px;
}
.about-features { }
.feature-item {
  display: table;
  width: 100%;
  margin-bottom: 16px;
  background: #eff6ff;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  transition: box-shadow 0.2s;
}
.feature-item:hover { box-shadow: 0 4px 16px rgba(30,64,175,0.1); }
.feature-icon {
  display: table-cell;
  font-size: 24px;
  width: 44px;
  vertical-align: top;
}
.feature-text { display: table-cell; vertical-align: top; padding-left: 10px; }
.feature-text h4 { font-size: 14px; color: #172554; margin-bottom: 4px; font-weight: 700; }
.feature-text p { font-size: 13px; color: #475569; margin: 0; }

/* ============================================================
   EVENTS LIST
   ============================================================ */
.events-list { }
.event-item {
  display: table;
  width: 100%;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1e40af;
  border-radius: 12px;
  padding: 18px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.event-item:hover {
  box-shadow: 0 4px 20px rgba(30,64,175,0.1);
  transform: translateX(3px);
}
.event-date {
  display: table-cell;
  text-align: center;
  min-width: 64px;
  vertical-align: top;
  padding-right: 20px;
  border-right: 1px solid #e2e8f0;
}
.event-day { display: block; font-size: 30px; font-weight: 900; color: #1e40af; line-height: 1; }
.event-month { display: block; font-size: 11px; color: #64748b; text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; }
.event-year { display: block; font-size: 11px; color: #94a3b8; }
.event-info { display: table-cell; vertical-align: top; padding-left: 20px; }
.event-info h3 { font-size: 16px; color: #0f172a; margin-bottom: 6px; font-weight: 700; }
.event-meta span { display: inline-block; margin-right: 16px; color: #64748b; font-size: 12px; }
.event-past { border-left-color: #94a3b8; opacity: 0.7; }

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-grid { overflow: hidden; }
.gallery-item { float: left; width: 22%; margin: 0 1.5% 20px; }
.gallery-link { display: block; position: relative; border-radius: 12px; overflow: hidden; }
.gallery-link img { width: 100%; height: 150px; object-fit: cover; display: block; }
.gallery-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(23,37,84,0);
  display: table;
  text-align: center;
  transition: background 0.25s;
}
.gallery-overlay span {
  display: table-cell;
  vertical-align: middle;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.25s;
}
.gallery-link:hover .gallery-overlay { background: rgba(23,37,84,0.72); }
.gallery-link:hover .gallery-overlay span { opacity: 1; }
.gallery-title { font-size: 12px; font-weight: 700; margin-top: 8px; color: #1e293b; }
.gallery-category { font-size: 11px; color: #94a3b8; text-transform: capitalize; }
.gallery-placeholder {
  width: 100%; height: 150px;
  background: #eff6ff;
  display: table;
  text-align: center;
  border-radius: 12px;
}
.gallery-placeholder span {
  display: table-cell;
  vertical-align: middle;
  font-size: 12px;
  color: #93c5fd;
}

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-tabs { margin-bottom: 24px; }
.filter-tabs a {
  display: inline-block;
  padding: 7px 18px;
  background: #fff;
  color: #475569;
  border-radius: 20px;
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  transition: background 0.2s, color 0.2s;
}
.filter-tabs a:hover,
.filter-tabs a.active {
  background: #1e40af;
  color: #fff;
  border-color: #1e40af;
  text-decoration: none;
}

/* ============================================================
   DOWNLOADS TABLE
   ============================================================ */
.filter-form { margin-bottom: 20px; }
.filter-row { overflow: hidden; }
.filter-row input.search-input {
  padding: 9px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  width: 220px;
  float: left;
  margin-right: 8px;
  font-family: 'Inter', Arial, sans-serif;
}
.filter-row select.filter-select {
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  float: left;
  margin-right: 8px;
  font-family: 'Inter', Arial, sans-serif;
}
.filter-row .btn-primary,
.filter-row .btn-secondary {
  float: left;
  margin-right: 8px;
  padding: 9px 18px;
}
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15,23,42,0.06);
}
.data-table th {
  background: #172554;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  vertical-align: middle;
  color: #334155;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafc; }
.badge-class {
  background: #eff6ff;
  color: #1e40af;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #bfdbfe;
}

/* ============================================================
   PAGE BANNER
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, #172554 0%, #1e3a8a 100%);
  padding: 18px 0;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  background: rgba(245,158,11,0.07);
  border-radius: 50%;
}
.page-banner h1 { color: #fff; font-size: 22px; font-weight: 900; margin-bottom: 4px; letter-spacing: -0.02em; }
.page-banner p { color: #93c5fd; font-size: 14px; margin: 0; }
.page-banner .breadcrumb a { color: #93c5fd; }
.page-banner .breadcrumb a:hover { color: #f59e0b; }
.page-banner .breadcrumb span { color: #64748b; }

/* ============================================================
   FORMS
   ============================================================ */
.form-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(15,23,42,0.06);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 6px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group textarea { resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
  outline: none;
}
.form-row { overflow: hidden; }
.form-row .form-group.half { float: left; width: 48%; margin-right: 4%; }
.form-row .form-group.half:last-child { margin-right: 0; }
.req { color: #ef4444; }
.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
}
.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
}
.info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 16px 20px;
  color: #1e40af;
  font-size: 13px;
}
.check-item { padding: 5px 0; font-size: 13px; color: #334155; }
.info-checklist { margin: 12px 0; }

/* ============================================================
   CONTACT INFO
   ============================================================ */
.contact-info-list { margin-top: 16px; }
.contact-info-item { display: table; width: 100%; margin-bottom: 18px; }
.contact-icon {
  display: table-cell;
  font-size: 18px;
  width: 38px;
  vertical-align: top;
  color: #1e40af;
  padding-top: 2px;
}
.contact-info-item div { display: table-cell; vertical-align: top; }
.contact-info-item strong { display: block; font-size: 13px; font-weight: 700; color: #0f172a; }
.contact-info-item p { color: #64748b; margin: 2px 0 0; font-size: 13px; }

/* ============================================================
   ARTICLE LAYOUT
   ============================================================ */
.article-layout { overflow: hidden; }
.article-main { float: left; width: 65%; }
.article-sidebar {
  float: right;
  width: 30%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}
.article-featured-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(15,23,42,0.1);
}
.article-meta { margin-bottom: 14px; }
.article-excerpt { color: #475569; font-style: italic; font-size: 15px; }
.article-content { font-size: 15px; line-height: 1.8; color: #334155; }
.sidebar-item { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9; }
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item h4 { font-size: 13px; font-weight: 700; }
.sidebar-item h4 a { color: #0f172a; }
.sidebar-item h4 a:hover { color: #1e40af; }
.sidebar-item p { font-size: 12px; color: #64748b; }

/* ============================================================
   PROGRAMS BOX
   ============================================================ */
.program-box {
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 16px;
}
.program-box h3 { color: #f59e0b; margin-bottom: 12px; font-size: 18px; }
.program-box p,
.program-box ul,
.program-box li { color: #bfdbfe; font-size: 14px; }

/* ============================================================
   SUBJECTS
   ============================================================ */
.subjects-category { margin-bottom: 36px; }
.category-heading {
  color: #1e40af;
  font-size: 18px;
  font-weight: 800;
  border-bottom: 2px solid #bfdbfe;
  padding-bottom: 8px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================================
   TEACHER CARDS & MODAL
   ============================================================ */
.teacher-card { cursor: pointer; }
.teacher-card:hover { box-shadow: 0 8px 32px rgba(30,64,175,0.2) !important; }
.teacher-photo {
  text-align: center;
  padding: 24px 0 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}
.teacher-photo img {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1e40af;
  box-shadow: 0 4px 12px rgba(30,64,175,0.2);
}
.teacher-initials {
  display: inline-block;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e40af 0%, #172554 100%);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  line-height: 88px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(30,64,175,0.3);
}
.teacher-role {
  color: #f59e0b;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Teacher Modal */
/* ============================================================
   TEACHER PROFILE MODAL  (redesigned v4)
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15,23,42,0.80);
  z-index: 2000;
  overflow-y: auto;
}
.modal-overlay.open { display: block; }

/* centred wrapper */
.modal-box {
  background: #fff;
  border-radius: 18px;
  max-width: 520px;
  margin: 60px auto 40px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(15,23,42,0.5);
  position: relative;
}

/* ---- HEADER BAND ---- */
.tmodal-header {
  background: linear-gradient(135deg, #1e2e7a 0%, #1e40af 100%);
  padding: 26px 28px 24px;
  position: relative;
}
.tmodal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  text-align: center;
  line-height: 34px;
  display: block;
  z-index: 10;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  border: 1.5px solid rgba(255,255,255,0.35);
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}
.tmodal-close:hover { background: rgba(255,255,255,0.32); text-decoration: none; color: #fff; }
.tmodal-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #bfdbfe;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.tmodal-title {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding-right: 44px;
}

/* ---- BODY ---- */
.tmodal-body {
  background: #f5f7fc;
  padding: 26px 28px 22px;
}

/* Identity row: avatar left, info right */
.tmodal-identity {
  display: table;
  width: 100%;
  margin-bottom: 20px;
}
.tmodal-avatar-wrap {
  display: table-cell;
  width: 106px;
  vertical-align: middle;
  padding-right: 18px;
}
.tmodal-avatar-box {
  width: 90px; height: 90px;
  background: #dbeafe;
  border-radius: 14px;
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
  overflow: hidden;
}
.tmodal-avatar-box img {
  width: 90px; height: 90px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.tmodal-avatar-icon {
  font-size: 38px;
  color: #3b82f6;
  line-height: 1;
}
.tmodal-identity-info { display: table-cell; vertical-align: middle; }
.tmodal-name {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.tmodal-role {
  font-size: 13px;
  font-weight: 800;
  color: #1e40af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
/* contact pills */
.tmodal-pills { overflow: hidden; }
.tmodal-pill {
  display: inline-block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  color: #334155;
  margin-right: 8px;
  margin-bottom: 6px;
  white-space: nowrap;
}
.tmodal-pill-icon { color: #3b82f6; margin-right: 4px; }

/* extra info (subjects/qualification) */
.tmodal-extra {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* quote block */
.tmodal-quote-block {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 18px 20px 16px;
  margin-bottom: 22px;
  position: relative;
}
.tmodal-quote-mark {
  font-size: 36px;
  color: #f59e0b;
  line-height: 1;
  margin-bottom: 8px;
  font-family: Georgia, serif;
}
.tmodal-quote-text {
  font-size: 14px;
  color: #334155;
  font-style: italic;
  line-height: 1.75;
  font-weight: 500;
}

/* action buttons */
.tmodal-actions {
  overflow: hidden;
  text-align: right;
}
.tmodal-btn-call {
  display: inline-block;
  background: transparent;
  border: 1.5px solid #334155;
  color: #334155;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  margin-right: 10px;
  -webkit-transition: background 0.2s, color 0.2s;
  transition: background 0.2s, color 0.2s;
}
.tmodal-btn-call:hover { background: #f1f5f9; color: #1e40af; text-decoration: none; }
.tmodal-btn-close {
  display: inline-block;
  background: #172554;
  border: 1.5px solid #172554;
  color: #fff;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}
.tmodal-btn-close:hover { background: #1e40af; border-color: #1e40af; text-decoration: none; color: #fff; }

@media screen and (max-width: 560px) {
  .modal-box { margin: 16px; width: auto; max-width: 100%; }
  .tmodal-title { font-size: 20px; }
  .tmodal-avatar-wrap { width: 76px; padding-right: 12px; }
  .tmodal-avatar-box { width: 64px; height: 64px; }
  .tmodal-avatar-box img { width: 64px; height: 64px; }
  .tmodal-btn-call, .tmodal-btn-close { display: block; margin: 0 0 10px; text-align: center; }
}

/* ============================================================
   ANNOUNCEMENT / BANNER STRIP
   ============================================================ */
.announcement-bar {
  background: #f59e0b;
  color: #172554;
  padding: 9px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ============================================================
   CALL TO ACTION STRIP
   ============================================================ */
.cta-strip {
  background: linear-gradient(135deg, #1e40af 0%, #172554 100%);
  padding: 22px 0;
  text-align: center;
  border-top: 3px solid #f59e0b;
}
.cta-strip h2 { color: #fff; font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.cta-strip p { color: #93c5fd; font-size: 13px; margin-bottom: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0f172a;
  padding: 56px 0 0;
  color: #94a3b8;
  border-top: 4px solid #f59e0b;
}
.footer .footer-cols-wrap { display: table; width: 100%; table-layout: fixed; border-collapse: collapse; }
.footer-col { display: table-cell; width: 25%; padding-right: 28px; vertical-align: top; float: none; margin-right: 0; -webkit-box-sizing: border-box; box-sizing: border-box; }
.footer-col:last-child { padding-right: 0; }
.footer-logo-wrap { margin-bottom: 16px; overflow: hidden; }
.footer-logo-img {
  float: left;
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-right: 10px;
}
.footer-brand { float: left; padding-top: 6px; }
.footer-brand-name {
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.footer-brand-sub {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-motto {
  font-size: 10px;
  color: #f59e0b;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-left: 2px solid #f59e0b;
  padding-left: 10px;
  margin-top: 12px;
}
.footer-col p { font-size: 12px; color: #64748b; margin-bottom: 6px; line-height: 1.6; }
.footer-col h3 {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 8px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links li a {
  color: #64748b;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links li a:hover { color: #f59e0b; }
.footer-contact-item { display: table; width: 100%; margin-bottom: 10px; }
.footer-contact-icon {
  display: table-cell;
  width: 20px;
  vertical-align: top;
  color: #f59e0b;
  font-size: 13px;
  padding-top: 1px;
}
.footer-contact-text {
  display: table-cell;
  vertical-align: top;
  font-size: 12px;
  color: #64748b;
  padding-left: 6px;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 36px;
  padding: 16px 0;
}
.footer-bottom p { color: #475569; font-size: 11px; margin: 0; }
.footer-bottom-left { float: left; }
.footer-bottom-right { float: right; }
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: #f59e0b; }

/* ============================================================
   FADE-IN ANIMATION FOR SECTIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ADMIN PANEL STYLES
   ============================================================ */
.admin-login-page { background: #0f172a; }
.login-box {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  max-width: 400px;
  margin: 80px auto;
  box-shadow: 0 24px 64px rgba(15,23,42,0.4);
}
.login-header { text-align: center; margin-bottom: 24px; }
.login-header h2 { font-size: 18px; color: #0f172a; font-weight: 800; }
.login-header p { color: #64748b; font-size: 12px; }

.admin-body {
  background-color: #f1f5f9;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  padding-top: 0; /* admin has its own topbar, no fixed public header */
}
/* Override public watermark for admin — use admin-specific one instead */
body.admin-body:before { display: none; }
/* Watermark logo on admin pages */
.admin-body:before {
  content: '';
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 360px;
  height: 360px;
  margin-top: -180px;
  margin-left: -180px;
  background-image: url('https://miaoda-conversation-file.s3cdn.medo.dev/user-by2lvehjuy9t/app-by2qo5n6a32b/20260528/bgw-removebg-preview(1).png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.admin-topbar {
  background: #0f172a;
  color: #64748b;
  padding: 10px 20px;
  font-size: 12px;
  border-bottom: 3px solid #f59e0b;
}
.admin-topbar-left { float: left; color: #fff; font-size: 13px; font-weight: 700; }
.admin-topbar-right { float: right; }
.admin-topbar-right a { color: #64748b; margin-left: 12px; text-decoration: none; font-weight: 600; }
.admin-topbar-right a:hover { color: #f59e0b; }
.admin-layout { overflow: hidden; min-height: calc(100vh - 46px); }
.admin-sidebar {
  float: left;
  width: 210px;
  background: #172554;
  min-height: calc(100vh - 80px);
  padding-top: 8px;
}
.admin-content {
  margin-left: 210px;
  padding: 16px 32px;
  min-height: calc(100vh - 80px);
}
.admin-footer {
  background: #0f172a;
  color: #475569;
  text-align: center;
  padding: 12px;
  font-size: 11px;
  border-top: 1px solid #1e293b;
}

.admin-nav { list-style: none; padding: 12px 0 0; }
.admin-nav li a {
  display: block;
  color: #93c5fd;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.admin-nav li a:hover,
.admin-nav li.active a {
  background: rgba(255,255,255,0.07);
  color: #fff;
  border-left-color: #f59e0b;
  text-decoration: none;
}
.admin-nav li.nav-header {
  color: #1e40af;
  font-size: 10px;
  padding: 16px 18px 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.admin-section-header {
  overflow: hidden;
  margin-bottom: 22px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
}
.admin-section-header h1 { float: left; font-size: 20px; color: #0f172a; font-weight: 800; }
.admin-section-header .btn-primary { float: right; }
.admin-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 1px 4px rgba(15,23,42,0.05);
}

.stats-grid { overflow: hidden; margin-bottom: 28px; }
.stat-box {
  float: left;
  width: 22%;
  margin-right: 2.5%;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15,23,42,0.05);
  transition: box-shadow 0.2s;
}
.stat-box:hover { box-shadow: 0 4px 16px rgba(30,64,175,0.1); }
.stat-box:nth-child(4n) { margin-right: 0; }
.stat-icon { float: left; font-size: 28px; margin-right: 12px; line-height: 1; color: #1e40af; }
.stat-info { overflow: hidden; }
.stat-info strong { display: block; font-size: 26px; color: #0f172a; font-weight: 900; line-height: 1; }
.stat-info span { font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-link { display: block; text-align: right; font-size: 11px; color: #1e40af; margin-top: 6px; font-weight: 700; }

.admin-form-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  max-width: 720px;
  box-shadow: 0 1px 4px rgba(15,23,42,0.05);
}
.form-actions { margin-top: 22px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.form-actions .btn-primary, .form-actions .btn-secondary { margin-right: 10px; }

.btn-edit {
  display: inline-block;
  background: #eff6ff;
  color: #1e40af;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  margin-right: 4px;
  border: 1px solid #bfdbfe;
  transition: background 0.15s;
}
.btn-edit:hover { background: #1e40af; color: #fff; text-decoration: none; }

.btn-delete {
  display: inline-block;
  background: #fef2f2;
  color: #dc2626;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #fecaca;
  transition: background 0.15s;
}
.btn-delete:hover { background: #dc2626; color: #fff; text-decoration: none; }

/* ============================================================
   RESPONSIVE ADJUSTMENTS (basic)
   ============================================================ */
@media print {
  .sticky-header, .hero-slideshow, .cta-strip, .footer { display: none; }
}

/* ============================================================
   FULL RESPONSIVE CSS - MOBILE FIRST
   Breakpoints: 480px | 768px | 1024px | 1200px
   ============================================================ */

/* ---- Hamburger Button ---- */
.nav-hamburger {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  float: right;
  margin: 8px 0;
  line-height: 1;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #003366;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- TABLET (max 1024px) ---- */
@media screen and (max-width: 1024px) {
  .container { padding: 0 16px; }

  /* Logo area */
  .logo-img { width: 54px; height: 54px; }
  .logo-text { font-size: 16px; }
  .logo-sub  { font-size: 10px; }
  .logo-motto{ font-size: 10px; }

  /* Nav: reduce font */
  .nav-menu li a { font-size: 12px; padding: 14px 10px; }

  /* Stats bar */
  .stats-bar-inner { gap: 0; }
  .stat-item { padding: 16px 10px; }
  .stat-item strong { font-size: 22px; }

  /* Two-col becomes stacked */
  .two-col .col { width: 100%; float: none; margin-bottom: 24px; }

  /* Cards: 2 per row */
  .cards-row .card { width: calc(50% - 14px); }

  /* Footer cols */
  .footer-col { width: calc(50% - 16px); }

  /* About images */
  .about-img { max-height: 180px; }
}

/* ---- MOBILE (max 768px) ---- */
@media screen and (max-width: 768px) {
  /* === TOP BAR === */
  .top-bar { padding: 6px 0; }
  .top-bar-left span { display: block; font-size: 10px; margin-bottom: 2px; }
  .top-bar-right { float: none; clear: both; padding-top: 4px; }
  .top-bar-admin-btn { padding: 3px 8px; font-size: 9px; }

  /* === SITE HEADER === */
  .site-header { padding: 10px 0; }
  .logo-area a { display: flex; align-items: center; }
  .logo-img { width: 46px; height: 46px; margin-right: 10px; }
  .logo-text { font-size: 14px; }
  .logo-sub  { font-size: 9px; display: none; }
  .logo-motto{ font-size: 9px; }
  .logo-text-wrap { max-width: calc(100% - 60px); }

  /* === HAMBURGER === */
  .nav-hamburger { display: block; }

  /* === NAV MENU === */
  .nav-area { float: none; clear: both; width: 100%; }
  .nav-menu {
    flex-direction: column;
    background: #1e3a8a;
    margin: 0;
    padding: 0;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    /* Smooth slide animation */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.28s ease;
  }
  .nav-menu.open {
    max-height: 640px;
    opacity: 1;
  }
  .nav-menu li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    color: #e2e8f0;
  }
  .nav-menu li.active a,
  .nav-menu li a:hover { background: rgba(255,255,255,0.1); color: #f59e0b; }
  .nav-menu li a.nav-admin-btn { display: none; } /* hidden from mobile nav — already in top bar */

  /* === STICKY HEADER OFFSET === */
  body { padding-top: 0; }

  /* === HERO === */
  .hero-slideshow { min-height: 360px; }
  .slide-content { padding: 20px; }
  .slide-content h1 { font-size: 22px; }
  .slide-content h2 { font-size: 15px; }
  .slide-content p  { font-size: 13px; display: none; }
  .slide-badge { font-size: 10px; }
  .btn-amber, .btn-outline-white { padding: 8px 16px; font-size: 12px; }

  /* === STATS BAR === */
  .stats-bar-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-item { padding: 14px 8px; border-right: 1px solid rgba(255,255,255,0.1); }
  .stat-item strong { font-size: 20px; }
  .stat-item span { font-size: 10px; }

  /* === SECTIONS === */
  .section { padding: 36px 0; }
  .section-title h2 { font-size: 20px; }
  .section-title p { font-size: 13px; }
  .section-tag { font-size: 10px; padding: 4px 12px; }

  /* === CARDS: 1 per row === */
  .cards-row .card { width: 100%; float: none; margin-bottom: 18px; }

  /* === ABOUT === */
  .about-img { max-height: 200px; width: 100%; border-radius: 10px; margin-bottom: 12px; }
  .feature-item { flex-direction: column; }
  .feature-icon { font-size: 22px; margin-bottom: 6px; }

  /* === EVENTS === */
  .event-item { flex-direction: column; }
  .event-date { flex-direction: row; margin-right: 0; margin-bottom: 10px; gap: 6px; align-items: center; }
  .event-day { font-size: 22px; }
  .event-month, .event-year { font-size: 11px; }

  /* === FORMS === */
  .form-row { display: block; }
  .form-group.half { width: 100%; }
  input, select, textarea { font-size: 14px; }
  .filter-row { flex-direction: column; gap: 8px; }
  .filter-row input,
  .filter-row select { width: 100%; }

  /* === ARTICLE LAYOUT === */
  .article-layout { display: block; }
  .article-main { width: 100%; }
  .article-sidebar { width: 100%; margin-top: 24px; }

  /* === GALLERY GRID === */
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery-item img { height: 120px; }

  /* === DATA TABLE === */
  .data-table { font-size: 11px; }
  .data-table th, .data-table td { padding: 8px 6px; }

  /* === FOOTER === */
  .footer-col { width: 100%; float: none; margin-bottom: 28px; }
  .footer-logo-img { height: 36px; }
  .cta-strip h2 { font-size: 18px; }
  .cta-strip p { font-size: 13px; }
  .footer-bottom-left, .footer-bottom-right { float: none; text-align: center; }

  /* === PAGE BANNER === */
  .page-banner h1 { font-size: 20px; }
  .page-banner p { font-size: 12px; }

  /* === MODAL === */
  .modal-box { width: 92%; padding: 20px; max-height: 90vh; overflow-y: auto; }

  /* === ADMIN PANEL === */
  .admin-layout { display: block; }
  .admin-sidebar { width: 100%; min-height: auto; padding-bottom: 0; }
  .admin-content { margin-left: 0; padding: 16px; }
  .admin-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .admin-nav li { display: inline-block; }
  .admin-nav li a { padding: 6px 12px; font-size: 11px; border-radius: 6px; border: none; }
  .admin-nav li.nav-header { width: 100%; font-size: 10px; padding: 8px 12px 2px; }
  .admin-topbar { padding: 6px 12px; font-size: 11px; }
  .admin-topbar-right { float: none; }
  .admin-section { padding: 14px; }
  .admin-section h2 { font-size: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card .stat-number { font-size: 24px; }

  /* === PORTAL PAGES === */
  .portal-container { padding: 16px; }
  .portal-box { padding: 20px; }
}

/* ---- SMALL MOBILE (max 480px) ---- */
@media screen and (max-width: 480px) {
  .logo-text  { font-size: 12px; }
  .logo-motto { display: none; }
  .logo-img   { width: 38px; height: 38px; }

  .hero-slideshow { min-height: 300px; }
  .slide-content h1 { font-size: 18px; }
  .slide-content h2 { font-size: 13px; }

  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .stat-item strong { font-size: 17px; }

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

  .filter-tabs { flex-wrap: wrap; gap: 6px; }
  .filter-tabs a { font-size: 11px; padding: 5px 12px; }

  .btn-primary, .btn-secondary, .btn-amber { font-size: 12px; padding: 8px 14px; }

  .cta-strip { padding: 18px 16px; }
  .cta-strip h2 { font-size: 16px; }
  .cta-strip p { display: none; }

  .two-col .col { margin-bottom: 16px; }

  .top-bar-left span { font-size: 9px; }
}

/* ---- LARGE SCREENS (min 1280px) ---- */
@media screen and (min-width: 1280px) {
  .container { max-width: 1200px; padding: 0 32px; }
}

/* ============================================================
   PORTAL PAGES (teacher/student submission portal)
   ============================================================ */
.portal-container { max-width: 960px; margin: 40px auto; padding: 0 16px; }
.portal-header {
  background: linear-gradient(135deg, #172554 0%, #1e40af 100%);
  color: #fff;
  padding: 20px 28px;
  border-radius: 14px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.portal-header h1 { font-size: 18px; font-weight: 800; margin: 0; }
.portal-header p  { font-size: 12px; opacity: 0.75; margin: 2px 0 0; }
.portal-header-right a { color: #fcd34d; font-size: 12px; text-decoration: none; }
.portal-header-right a:hover { text-decoration: underline; }

.portal-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.portal-box h2 {
  font-size: 16px;
  font-weight: 800;
  color: #172554;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

/* Status badges */
.status-pending  { background: #fef3c7; color: #92400e; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.status-approved { background: #dcfce7; color: #166534; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.status-rejected { background: #fee2e2; color: #991b1b; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }

/* Portal login page */
.portal-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #172554 0%, #1e3a8a 60%, #1e40af 100%);
  padding: 20px;
}
.portal-login-box {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.portal-login-box .logo-row {
  text-align: center;
  margin-bottom: 24px;
}
.portal-login-box .logo-row img { height: 56px; width: auto; }
.portal-login-box h2 {
  text-align: center;
  font-size: 18px;
  color: #172554;
  font-weight: 800;
  margin: 0 0 4px;
}
.portal-login-box p { text-align: center; color: #94a3b8; font-size: 12px; margin-bottom: 20px; }


/* ============================================================
   FILE UPLOAD WIDGET
   ============================================================ */
.file-upload-wrap {
  position: relative;
  border: 2px dashed #bfdbfe;
  border-radius: 10px;
  padding: 14px 16px;
  background: #f0f7ff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 6px;
}
.file-upload-wrap:hover { border-color: #1e40af; background: #eff6ff; }
.file-upload-wrap input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.file-upload-hint {
  font-size: 13px;
  color: #64748b;
  pointer-events: none;
  line-height: 1.5;
}

/* ============================================================
   REGISTRATIONS ADMIN — results file link
   ============================================================ */
.results-file-link {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #bfdbfe;
}
.results-file-link:hover { background: #1e40af; color: #fff; text-decoration: none; }

/* ============================================================
   PROFILE PHOTO & PORTAL ENHANCEMENTS (Phase 3)
   ============================================================ */
.portal-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 16px 40px;
}
.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #172554, #1e40af);
  color: #fff;
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.portal-header h1 { font-size: 20px; margin: 0; }
.portal-header p  { font-size: 12px; color: rgba(255,255,255,0.7); margin: 4px 0 0; }
.portal-header-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.portal-header-right a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
}
.portal-header-right a:hover { background: rgba(255,255,255,0.22); color: #fff; }
.portal-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  border: 1px solid #e2e8f0;
}
.portal-box h2 { font-size: 16px; color: #172554; font-weight: 800; margin: 0 0 14px; }

/* Profile photo responsive grid */
@media (max-width: 600px) {
  .portal-container > div[style*="grid-template-columns:200px"] {
    grid-template-columns: 1fr !important;
  }
}

/* Role colour badges (shared admin + portal) */
.badge-role-teacher  { background:#dbeafe;color:#1e40af; }
.badge-role-student  { background:#fef3c7;color:#92400e; }
.badge-role-parent   { background:#dcfce7;color:#166534; }
.badge-role-alumni   { background:#f3e8ff;color:#6b21a8; }

/* Content-approval filter tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 2px;
}
.filter-tabs a {
  padding: 7px 16px;
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-bottom: none;
  transition: background 0.18s, color 0.18s;
}
.filter-tabs a:hover { background: #dbeafe; color: #1e40af; }
.filter-tabs a.active { background: #1e40af; color: #fff; border-color: #1e40af; }

/* Status badges */
.status-pending  { background:#fef3c7;color:#92400e;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:700;display:inline-block; }
.status-approved { background:#dcfce7;color:#166534;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:700;display:inline-block; }
.status-rejected { background:#fee2e2;color:#991b1b;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:700;display:inline-block; }

/* Portal login box */
.portal-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #172554 0%, #1e40af 60%, #0ea5e9 100%);
  padding: 24px;
}
.portal-login-box {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.portal-login-box h2 { color: #172554; font-size: 20px; font-weight: 800; margin-bottom: 4px; text-align: center; }
.portal-login-box p  { color: #64748b; font-size: 13px; text-align: center; margin-bottom: 20px; }
.portal-login-box .logo-row { text-align: center; margin-bottom: 16px; }
.portal-login-box .logo-row img { height: 64px; }

/* Alert boxes */
.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}
.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}

/* Form elements (portal) */
.form-group  { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 5px; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #334155;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.18s, box-shadow 0.18s;
  font-family: Inter, Arial, sans-serif;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30,64,175,0.12);
}
.form-group textarea { resize: vertical; }
.form-row  { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .half { flex: 1; min-width: 0; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.req { color: #dc2626; }

/* Buttons */
.btn-primary {
  display: inline-block;
  background: #1e40af;
  color: #fff;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}
.btn-primary:hover { background: #172554; color: #fff; }
.btn-secondary {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: background 0.18s;
}
.btn-secondary:hover { background: #e2e8f0; }
.btn-amber {
  display: inline-block;
  background: #f59e0b;
  color: #fff;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}
.btn-amber:hover { background: #d97706; }
.btn-edit {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #bfdbfe;
  margin-right: 4px;
}
.btn-edit:hover { background: #1e40af; color: #fff; }
.btn-delete {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #fecaca;
  margin-right: 4px;
}
.btn-delete:hover { background: #dc2626; color: #fff; }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: #f8fafc;
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
}
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #334155;
}
.data-table tr:hover td { background: #f8fafc; }

/* =====================================================
   NEW COMPONENTS v3 — 2026 UPDATE
   ===================================================== */

/* --- About Two-Column: Image LEFT, Text RIGHT --- */
.about-two-col { display: table; width: 100%; border-collapse: collapse; }
.about-img-col  { display: table-cell; width: 44%; vertical-align: top; padding-right: 32px; }
.about-text-col { display: table-cell; width: 56%; vertical-align: top; }
.about-img-col .about-img { width: 100%; height: auto; border-radius: 10px; display: block; }

/* --- Mission / Vision / Motto Cards --- */
.mvm-row { margin-top: 40px; display: table; width: 100%; border-collapse: collapse; }
.mvm-card {
  display: table-cell;
  width: 33.33%;
  background: #f0f4ff;
  border-top: 4px solid #1e40af;
  border-radius: 8px;
  padding: 22px 20px;
  text-align: center;
  vertical-align: top;
}
.mvm-card + .mvm-card { margin-left: 0; }
.mvm-row .mvm-card:nth-child(2) { background: #fffbeb; border-top-color: #f59e0b; margin: 0 16px; }
.mvm-row .mvm-card:nth-child(3) { background: #f0fdf4; border-top-color: #16a34a; }
.mvm-icon { font-size: 32px; margin-bottom: 10px; }
.mvm-card h3 { font-size: 16px; font-weight: 800; color: #172554; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.mvm-card p  { font-size: 13px; color: #475569; line-height: 1.7; }

/* --- Feature Sections (Study / Co-Curr / UNEB) --- */
.feature-sections-row { display: table; width: 100%; border-collapse: separate; border-spacing: 0; }
.feature-section-card {
  display: table-cell;
  width: 33.33%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  vertical-align: top;
}
.feature-section-card + .feature-section-card { margin-left: 0; }
.feature-sections-row .feature-section-card:nth-child(2) { margin: 0 16px; }
.feature-section-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.feature-section-body { padding: 18px 16px; }
.feature-section-body .feature-icon { font-size: 26px; margin-bottom: 8px; }
.feature-section-body h3 { font-size: 15px; font-weight: 800; color: #172554; margin-bottom: 6px; }
.feature-section-body p  { font-size: 13px; color: #475569; line-height: 1.65; }

/* --- Dark Navy Section for Events Carousel --- */
.bg-dark-navy { background: #0f172a; }
.section.bg-dark-navy .section-title h2 { color: #f8fafc; }
.section.bg-dark-navy .section-title p  { color: #94a3b8; }

/* --- Events Horizontal Carousel --- */
.events-carousel-wrap {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.events-carousel-viewport {
  overflow: hidden;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}
.events-carousel-track {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
  -webkit-transition: -webkit-transform 0.4s ease;
  transition: transform 0.4s ease;
}
.events-carousel-card {
  min-width: 240px;
  max-width: 280px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 16px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}
.events-carousel-card .event-date-box {
  background: #1e40af;
  color: #fff;
  border-radius: 6px;
  text-align: center;
  padding: 8px 12px;
  margin-bottom: 12px;
  display: inline-block;
  min-width: 56px;
}
.events-carousel-card .event-day   { display: block; font-size: 22px; font-weight: 900; line-height: 1; }
.events-carousel-card .event-month { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.events-carousel-card .event-year  { display: block; font-size: 10px; color: #93c5fd; }
.events-carousel-card .event-card-body h3 { font-size: 14px; font-weight: 700; color: #f1f5f9; margin-bottom: 6px; }
.events-carousel-card .event-meta-item  { font-size: 12px; color: #94a3b8; margin-bottom: 3px; }
.events-carousel-card .event-card-desc  { font-size: 12px; color: #64748b; margin-top: 6px; line-height: 1.5; }

.events-carousel-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  cursor: pointer;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}
.events-carousel-btn:hover { background: rgba(255,255,255,0.22); }

/* --- Admin table (for slides list) --- */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { background: #f1f5f9; color: #172554; padding: 10px 12px; text-align: left; border-bottom: 2px solid #e2e8f0; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.admin-table tr:hover td { background: #f8fafc; }
.btn-danger {
  display: inline-block;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-danger:hover { background: #dc2626; color: #fff; }

/* --- Responsive stacking --- */
@media (max-width: 768px) {
  .about-two-col,
  .about-img-col,
  .about-text-col  { display: block; width: 100%; padding: 0; }
  .about-img-col   { margin-bottom: 20px; }
  .mvm-row { display: block; }
  .mvm-card { display: block; width: auto; margin: 0 0 14px 0 !important; }
  .feature-sections-row { display: block; }
  .feature-section-card { display: block; width: auto; margin: 0 0 16px 0 !important; }
  .events-carousel-card { min-width: 220px; }
}

/* ===== PARAGRAPH JUSTIFICATION (all public pages) ===== */
p, .card-body p, .section p, .about-text p,
.news-body p, .news-detail p, .event-desc p,
.contact-text p, .admissions-text p, .page-content p,
.slide-content p, .about-section p {
  text-align: justify;
}

/* External portal links in nav */
.nav-portal-link {
  color: #fcd34d !important;
  border-bottom-color: transparent !important;
}
.nav-portal-link:hover {
  color: #f59e0b !important;
  border-bottom-color: #f59e0b !important;
  background: rgba(245,158,11,0.12) !important;
}

/* ============================================================
   GALLERY LIGHTBOX
   ============================================================ */
.gallery-lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  text-align: center;
}
.gallery-lightbox-overlay.open { display: block; }
.gallery-lightbox-content {
  display: inline-block;
  position: relative;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  max-width: 90%;
}
.gallery-lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
}
.gallery-lightbox-caption {
  color: #e2e8f0;
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
  font-weight: 600;
}
.gallery-lightbox-close {
  position: fixed;
  top: 18px; right: 24px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  text-decoration: none;
  line-height: 1;
  z-index: 10000;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
}
.gallery-lightbox-close:hover { background: #f59e0b; color: #0f172a; }

/* ============================================================
   PDF RESOURCE THUMBNAIL GRID
   ============================================================ */
.pdf-thumb-grid { overflow: hidden; margin-top: 8px; }
.pdf-thumb-card {
  float: left;
  width: 30%;
  margin: 0 1.5% 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  -webkit-transition: box-shadow 0.2s, -webkit-transform 0.2s;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pdf-thumb-card:hover {
  box-shadow: 0 6px 24px rgba(30,64,175,0.13);
  -webkit-transform: translateY(-3px);
  -ms-transform: translateY(-3px);
  transform: translateY(-3px);
}
.pdf-thumb-icon {
  background: linear-gradient(135deg, #172554 0%, #1e40af 100%);
  padding: 28px 0 20px;
  text-align: center;
}
.pdf-icon-box {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  padding: 10px 18px;
  min-width: 64px;
}
.pdf-icon-ext {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: #f59e0b;
  letter-spacing: 0.06em;
  line-height: 1;
}
.pdf-icon-label {
  display: block;
  font-size: 9px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 3px;
}
.pdf-thumb-body { padding: 14px 14px 10px; }
.pdf-thumb-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.4;
}
.pdf-thumb-meta { margin-bottom: 8px; }
.pdf-meta-type {
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 6px;
}
.pdf-thumb-info { font-size: 11px; color: #94a3b8; margin-bottom: 4px; }
.pdf-thumb-action { padding: 10px 14px 14px; text-align: center; }
.pdf-thumb-action .btn-download { display: block; text-align: center; width: 100%; box-sizing: border-box; }

@media (max-width: 900px) {
  .pdf-thumb-card { width: 46%; margin: 0 2% 18px; }
}
@media (max-width: 560px) {
  .pdf-thumb-card { width: 100%; margin: 0 0 16px; float: none; }
  .footer .container { display: block; }
  .footer-col { width: 100%; float: none; margin-right: 0; margin-bottom: 24px; }
}


/* ============================================================
   CONTACT PAGE — HORIZONTAL INFO CARDS
   ============================================================ */
.contact-cards-row { overflow: hidden; margin-bottom: 32px; }
.contact-card {
  float: left;
  width: 22%;
  margin-right: 4%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #1e40af;
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.contact-card:last-of-type { margin-right: 0; }
.contact-card-icon { font-size: 26px; margin-bottom: 8px; }
.contact-card-label {
  font-size: 10px;
  font-weight: 800;
  color: #1e40af;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.contact-card-value { font-size: 12px; color: #475569; line-height: 1.5; }
.contact-card-value a { color: #1e40af; text-decoration: none; }
.contact-card-value a:hover { text-decoration: underline; }

/* ============================================================
   ACADEMICS — PROGRAM CARDS (HORIZONTAL)
   ============================================================ */
.program-cards-row { display: table; width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 8px; }
.program-card {
  display: table-cell;
  width: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 28px 28px 24px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
  vertical-align: top;
}
.program-card:first-child { border-radius: 12px 0 0 12px; }
.program-card:last-child  { border-radius: 0 12px 12px 0; border-left: none; }
.program-card-badge {
  display: inline-block;
  background: #f59e0b;
  color: #172554;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.program-card h3 { color: #f59e0b; margin-bottom: 12px; font-size: 18px; }
.program-card p,
.program-card ul,
.program-card li { color: #bfdbfe; font-size: 14px; }
.program-card ul { padding-left: 18px; }
.program-card li { margin-bottom: 6px; }

/* ============================================================
   ADMISSIONS — 3-COLUMN INFO ROW
   ============================================================ */
.admission-info-row { overflow: hidden; margin-bottom: 8px; }
.admission-info-card {
  float: left;
  width: 30%;
  margin-right: 5%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.admission-info-card:last-child { margin-right: 0; }
.admission-info-icon { font-size: 28px; margin-bottom: 10px; }
.admission-info-card h4 {
  font-size: 14px;
  font-weight: 800;
  color: #172554;
  margin-bottom: 12px;
}
.admission-info-card p { font-size: 13px; color: #475569; margin-bottom: 8px; line-height: 1.6; }
.admission-info-card .check-item { font-size: 12px; color: #475569; padding: 4px 0; }

/* ============================================================
   RESPONSIVE UPDATES
   ============================================================ */
@media screen and (max-width: 1024px) {
  .contact-card { width: 46%; margin-right: 4%; margin-bottom: 16px; }
  .contact-card:nth-child(2) { margin-right: 0; }
  .contact-card:nth-child(3) { margin-right: 4%; }
  .contact-card:nth-child(4) { margin-right: 0; }
  .admission-info-card { width: 29%; margin-right: 6%; }
  .admission-info-card:last-child { margin-right: 0; }
}

@media screen and (max-width: 768px) {
  /* Hide top blue bar on mobile */
  .top-bar-wrap { display: none; }

  /* Footer cols stack to 2 per row on mobile */
  .footer .footer-cols-wrap { display: block; overflow: hidden; }
  .footer-col { display: block; float: left; width: 46%; padding-right: 0; margin-right: 4%; margin-bottom: 24px; }
  .footer-col:nth-child(even) { margin-right: 0; }

  /* Contact cards 2 per row */
  .contact-card { width: 46%; margin-right: 4%; margin-bottom: 14px; }
  .contact-card:nth-child(2) { margin-right: 0; }
  .contact-card:nth-child(3) { margin-right: 4%; }
  .contact-card:nth-child(4) { margin-right: 0; }

  /* Admissions info cards stack */
  .admission-info-card { width: 100%; float: none; margin-right: 0; margin-bottom: 16px; }

  /* Program cards stack */
  .program-cards-row { display: block; }
  .program-card { display: block; width: 100%; margin-bottom: 20px; border-radius: 12px !important; border-left: 1px solid rgba(255,255,255,0.2) !important; }
}

@media screen and (max-width: 480px) {
  /* Contact cards full width */
  .contact-card { width: 100%; float: none; margin-right: 0; margin-bottom: 12px; }

  /* Footer full width */
  .footer-col { width: 100%; float: none; margin-right: 0; }
}
