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

:root {
  --primary-color: #1a4b8c;
  --primary-dark: #0d2d5a;
  --secondary-color: #4a6fa5;
  --accent-color: #d4a84b;
  --accent-light: #f5d78e;
  --background-color: #f8fafc;
  --card-background: #ffffff;
  --text-color: #1a365d;
  --text-light: #4a6fa5;
  --border-color: #d1e3f6;
  --error-color: #c53030;
  --success-color: #2f855a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Dashboard back button — visible in navbar on every page */
.nav-dash-btn {
  color: white;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 0.38rem 1rem;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  letter-spacing: 0.01em;
  margin: 0 0.5rem;
}
.nav-dash-btn:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.7);
}

/* Navigation */
.navbar {
  background-color: var(--primary-color);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}

.nav-brand a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  height: 50px;
  width: auto;
  border-radius: 4px;
  background: white;
  padding: 2px;
}

.nav-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
}

/* Hamburger — mobile only */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 3px;
}
.hamburger.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

/* Enroll Now button — floats right of nav */
.nav-enroll-btn {
  color: #0a3d7a;
  background: #FFD700;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.42rem 1.1rem;
  border-radius: 20px;
  white-space: nowrap;
  margin-left: 0.5rem;
  transition: background 0.2s;
}
.nav-enroll-btn:hover { background: #e6c200; }

/* Top nav list */
.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
}
.nav-links li { position: relative; width: auto; }
.nav-links > li > a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.75rem;
  border-radius: 5px;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.nav-links > li > a:hover { background-color: var(--primary-dark); }
.nav-arrow { font-size: 0.7rem; opacity: 0.8; }

/* Student Login pill */
.nav-links .nav-portal-btn a {
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: white;
  font-weight: 700;
  border-radius: 20px;
  padding: 0.4rem 1rem;
}
.nav-links .nav-portal-btn a:hover {
  background: rgba(255,255,255,0.3);
}

/* Dropdown panel */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  list-style: none;
  padding: 0.4rem 0;
  margin: 0;
  min-width: 210px;
  z-index: 2000;
}
.nav-has-dropdown:hover .nav-dropdown { display: block; }
.nav-dropdown li a {
  color: #1a237e;
  text-decoration: none;
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-dropdown li a:hover { background: #f0f4ff; }
.nav-dropdown-divider {
  height: 1px;
  background: #e8eaf6;
  margin: 0.3rem 0;
}

/* Electives submenu */
.nav-submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  list-style: none;
  padding: 0.4rem 0;
  margin: 0;
  min-width: 200px;
  z-index: 2001;
}
.nav-has-submenu:hover .nav-submenu { display: block; }
.nav-submenu li a {
  color: #1a237e;
  text-decoration: none;
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-submenu li a:hover { background: #f0f4ff; }

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
  min-width: 0;
  width: 100%;
}

/* Page Headers */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-light);
}

/* Cards */
.card {
  background: var(--card-background);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.card h2, .card h3 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-light);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.2s, transform 0.1s;
}

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

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

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

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-success {
  background-color: var(--accent-color);
  color: white;
}

.btn-success:hover {
  background-color: #c09940;
}

.btn-danger {
  background-color: var(--error-color);
  color: white;
}

.btn-accent {
  background-color: var(--accent-color);
  color: white;
}

.btn-accent:hover {
  background-color: #c09940;
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-light);
}

/* Checkbox group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
}

/* Alerts */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.alert-error {
  background-color: #fed7d7;
  color: var(--error-color);
  border: 1px solid var(--error-color);
}

.alert-success {
  background-color: #c6f6d5;
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-background);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
}

tr:hover {
  background-color: var(--background-color);
}

.actions {
  display: flex;
  gap: 0.5rem;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.stat-card .number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.stat-card .label {
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* Material List */
.material-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.material-item:hover {
  border-color: var(--primary-color);
}

.material-info {
  flex: 1;
  min-width: 0;
}

.material-info h4 {
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* Class Announcement */
.class-announcement {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: #856404;
  font-weight: 500;
  font-size: 1.05rem;
}

/* Student Submissions */
.submission-section {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.submission-section h3 {
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.my-submissions-list {
  margin-bottom: 1rem;
}

.submission-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.submission-info {
  flex: 1;
}

.submission-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.submission-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.submission-info small {
  font-size: 0.75rem;
  color: var(--text-light);
}

.submission-actions {
  display: flex;
  gap: 0.5rem;
}

.submission-form-toggle {
  margin-top: 1rem;
  cursor: pointer;
}

.submission-form-toggle summary {
  font-weight: 500;
  color: var(--primary-color);
  padding: 0.5rem;
  border-radius: 4px;
  user-select: none;
}

.submission-form-toggle summary:hover {
  background: #f0f7ff;
}

.submission-form-toggle[open] summary {
  margin-bottom: 1rem;
}

.submission-form {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 4px;
}

/* Alert Messages */
.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.material-info p {
  font-size: 0.875rem;
  color: var(--text-light);
}

.material-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Highlighted sections */
.highlighted-section {
  background: var(--card-background);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 2px solid var(--border-color);
}

.highlighted-section h3 {
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.highlighted-section.today-section {
  border-color: #e53e3e;
  background: #fff5f5;
}

.highlighted-section.today-section h3 {
  color: #c53030;
}

.highlighted-section.week-section {
  border-color: var(--accent-color);
  background: #fffdf5;
}

.highlighted-section.week-section h3 {
  color: #b7791f;
}

.highlighted-section.favorites-section {
  border-color: #d69e2e;
  background: #fffff0;
}

.highlighted-section.favorites-section h3 {
  color: #b7791f;
}

/* Material Cards Grid */
.material-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.material-card {
  position: relative;
  background: var(--card-background);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.material-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.material-card.card-today {
  border-color: #fc8181;
  background: white;
}

.material-card.card-today:hover {
  border-color: #e53e3e;
  background: #fff5f5;
}

.material-card.card-week {
  border-color: var(--accent-light);
  background: white;
}

.material-card.card-week:hover {
  border-color: var(--accent-color);
  background: #fffdf5;
}

.material-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.material-card-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
  line-height: 1.3;
}

.material-card-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  flex: 1;
  line-height: 1.4;
}

.material-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.star-form-compact {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.star-btn-compact {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #cbd5e0;
  padding: 0;
  transition: color 0.2s, transform 0.1s;
  line-height: 1;
}

.star-btn-compact:hover {
  color: #d69e2e;
  transform: scale(1.15);
}

.star-btn-compact.starred {
  color: #d69e2e;
}

/* Star button */
.star-form {
  display: flex;
  align-items: center;
}

.star-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #cbd5e0;
  padding: 0;
  margin-right: 0.75rem;
  transition: color 0.2s, transform 0.1s;
  line-height: 1;
}

.star-btn:hover {
  color: #d69e2e;
  transform: scale(1.1);
}

.star-btn.starred {
  color: #d69e2e;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.status-badge.today {
  background: #fed7d7;
  color: #c53030;
}

.status-badge.week {
  background: #fefcbf;
  color: #b7791f;
}

/* Material item with highlight */
.material-item.highlight-today {
  border-left: 3px solid #e53e3e;
}

.material-item.highlight-week {
  border-left: 3px solid var(--accent-color);
}

.material-type {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: 3px;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-left: 0.5rem;
}

/* Unit sections */
.unit-section {
  margin-bottom: 2rem;
}

.unit-section h3 {
  color: var(--primary-dark);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 1rem;
}

/* Unit filter */
.unit-filter {
  background: var(--card-background);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.unit-filter label {
  font-weight: 500;
  color: var(--text-color);
}

.unit-filter select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  min-width: 200px;
}

.unit-filter select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Login Page */
.login-container {
  max-width: 400px;
  margin: 2rem auto;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-bottom: 4px solid var(--accent-color);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.hero .accent {
  color: var(--accent-light);
}

/* Slider */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.slider {
  position: relative;
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Prevent inactive slides from blocking clicks */
}

.slide.active {
  opacity: 1;
  pointer-events: auto; /* Allow clicks on active slide */
  z-index: 1; /* Ensure active slide is on top */
}

.slide-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  width: 100%;
  padding: 2rem;
  gap: 2rem;
}

.slide-text {
  flex: 1;
  color: white;
  text-align: left;
}

.slide-text h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent-light);
}

.slide-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.slide-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  opacity: 0.95;
}

.slide-image {
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-image img {
  max-width: 100%;
  max-height: 350px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background: white;
  padding: 10px;
}

/* Slider Navigation Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.3);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
  z-index: 10;
  display: none; /* Hidden - slider advances automatically */
}

.slider-btn:hover {
  background: rgba(255,255,255,0.5);
}

.slider-btn.prev {
  left: 1rem;
}

.slider-btn.next {
  right: 1rem;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.dot:hover {
  background: rgba(255,255,255,0.8);
  transform: scale(1.2);
}

.dot.active {
  background: var(--accent-color);
  transform: scale(1.3);
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: white;
  text-align: center;
  padding: 1.5rem;
  margin-top: auto;
}

/* Admin Sidebar Layout — sidebar removed, full-width content */
.admin-layout {
  display: block;
  min-height: calc(100vh - 200px);
}

.admin-sidebar {
  display: none !important;
}

.admin-content {
  width: 100%;
}

/* Admin filters */
.admin-filter {
  margin-bottom: 1rem;
}

.admin-filter input {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

.admin-filter input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.admin-filter-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.admin-filter-group input,
.admin-filter-group select {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

.admin-filter-group input {
  flex: 1;
  min-width: 200px;
}

.admin-filter-group select {
  min-width: 150px;
}

.admin-filter-group input:focus,
.admin-filter-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Quick Action Buttons */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: var(--card-background);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.2s;
}

.quick-action-btn:hover {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.quick-action-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.quick-action-label {
  font-weight: 500;
  text-align: center;
}

/* Class quick links */
.class-quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.class-quick-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.2s;
}

.class-quick-link:hover {
  border-color: var(--primary-color);
  background: #f0f7ff;
}

.class-quick-link .material-count {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    gap: 0;
  }
  
  .nav-brand a {
    flex-direction: column;
    text-align: center;
  }
  
  .nav-logo {
    height: 60px;
  }
  
  .nav-title {
    font-size: 1.1rem;
  }
  
  .hamburger { display: flex; }

  .nav-enroll-btn { display: none; }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

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

  .nav-links li { width: 100%; }

  .nav-links > li > a {
    padding: 0.75rem 1.25rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1rem;
  }

  .nav-links .nav-portal-btn a {
    margin: 0.5rem 1.25rem;
    text-align: center;
    border-radius: 20px;
  }

  /* Mobile dropdowns */
  .nav-dropdown,
  .nav-submenu {
    display: none;
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: rgba(0,0,0,0.15);
    padding: 0;
    min-width: unset;
  }

  .nav-has-dropdown.open > .nav-dropdown,
  .nav-has-submenu.open > .nav-submenu { display: block; }

  .nav-dropdown li a,
  .nav-submenu li a {
    color: rgba(255,255,255,0.9);
    padding: 0.65rem 2rem;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: none;
  }

  .nav-submenu li a { padding-left: 3rem; }

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

  .nav-dropdown-divider { background: rgba(255,255,255,0.1); }
  
  .admin-layout {
    display: block;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero img {
    height: 80px !important;
  }
  
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .quick-action-btn {
    padding: 1rem 0.5rem;
  }
  
  .material-cards-grid {
    grid-template-columns: 1fr;
  }
  
  /* Slider responsive */
  .slider {
    height: auto;
    min-height: 520px; /* Even more height */
  }
  
  .slide {
    display: none; /* Hide all slides by default on mobile */
    position: relative;
    height: auto;
    min-height: 500px;
  }
  
  .slide.active {
    display: flex; /* Only show active slide */
  }
  
  .slide-content {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
    min-height: 480px;
    justify-content: center;
  }
  
  .slide-text {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .slide-text h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }
  
  .slide-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
  }
  
  .slide-text p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
  }
  
  .slide-image {
    flex: 0 0 auto;
    margin-top: 0.5rem;
  }
  
  .slide-image img {
    max-width: 200px;
    max-height: 200px;
  }
  
  .slider-btn {
    font-size: 1.5rem;
    padding: 0.25rem 0.75rem;
  }
  
  /* Ensure buttons in slides are visible and clickable on mobile */
  .slide-text .btn {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  /* Slider dots - make them more visible on mobile */
  .slider-dots {
    bottom: 1rem;
  }
}

/* ============ PROGRESS TRACKING ============ */

/* Completion button in material list */
.complete-form {
  flex-shrink: 0;
}

.complete-btn {
  background: none;
  border: 2px solid #cbd5e0;
  color: #cbd5e0;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.complete-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: scale(1.1);
}

.complete-btn.completed {
  background: #38a169;
  border-color: #38a169;
  color: white;
}

.complete-btn.completed:hover {
  background: #2f855a;
  border-color: #2f855a;
}

/* Completion button in material cards */
.complete-form-compact {
  flex-shrink: 0;
}

.complete-btn-compact {
  background: none;
  border: 2px solid #cbd5e0;
  color: #cbd5e0;
  font-size: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.complete-btn-compact:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: scale(1.1);
}

.complete-btn-compact.completed {
  background: #38a169;
  border-color: #38a169;
  color: white;
}

.complete-btn-compact.completed:hover {
  background: #2f855a;
  border-color: #2f855a;
}

/* Completed material styling */
.material-item.completed {
  opacity: 0.7;
  background: #f0fff4;
}

.material-card.completed {
  opacity: 0.8;
  background: #f0fff4;
}

/* Card icons container */
.card-icons {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.25rem;
}


/* Assignments Section */
.assignments-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.assignments-section > h3 {
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.assignment-category {
  margin-bottom: 1.5rem;
}

.assignment-category h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.assignment-card {
  background: #ffffff;
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.2s;
}

.assignment-card:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.assignment-card.overdue-card {
  border-left-color: #c53030;
  background: #fff5f5;
}

.assignment-card.upcoming-card {
  border-left-color: #4a6fa5;
}

.assignment-card.completed-card {
  border-left-color: #38a169;
  background: #f0fff4;
}

.assignment-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.5rem;
}

.assignment-header h5 {
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin: 0;
  flex: 1;
}

.due-date {
  background: var(--accent-light);
  color: var(--text-color);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.due-date.overdue {
  background: #feb2b2;
  color: #742a2a;
}

.assignment-description {
  color: var(--text-light);
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.linked-material {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.assignment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.assignment-footer .points {
  color: var(--text-light);
  font-weight: 600;
}

.grade-badge {
  background: #38a169;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge {
  background: var(--secondary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.feedback-box {
  background: #edf2f7;
  padding: 0.75rem;
  border-radius: 4px;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.feedback-box strong {
  color: var(--primary-color);
}

/* Completed assignments collapsible */
.completed-category summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.completed-category summary::-webkit-details-marker {
  display: none;
}

.completed-category summary h4 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.completed-category summary h4::before {
  content: '▶';
  display: inline-block;
  transition: transform 0.2s;
}

.completed-category[open] summary h4::before {
  transform: rotate(90deg);
}

/* Overdue category styling */
.overdue-category h4 {
  color: #c53030;
}

/* Responsive */
@media (max-width: 768px) {
  .assignment-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .assignment-footer {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  
  .assignment-footer .btn {
    width: 100%;
    text-align: center;
  }
}


/* ============================================================
   PUBLIC HOME PAGE — BRIGHT & CHEERFUL REDESIGN
   ============================================================ */

/* ----- HERO BANNER ----- */
.public-hero {
  position: relative;
  background: linear-gradient(135deg, #1a4b8c 0%, #0d2d5a 60%, #1a1a6e 100%);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  overflow: hidden;
  margin: -2rem -2rem 0;
}

.hero-sunburst {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,168,75,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, #d4a84b, #f5d78e, #d4a84b);
  color: #5c3a00;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.4rem 1.4rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
  animation: badgePop 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes badgePop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-subtitle-text {
  color: #f5d78e;
  display: block;
  font-size: 2rem;
  font-weight: 700;
}

.hero-tagline {
  color: rgba(255,255,255,0.88);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #d4a84b, #e8c167);
  color: #3d2200;
  font-weight: 800;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.05rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(212,168,75,0.4);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212,168,75,0.5);
}

.btn-hero-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.05rem;
  border: 2px solid rgba(255,255,255,0.4);
  transition: background 0.2s, transform 0.2s;
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.hero-phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 50px;
  padding: 0.5rem 1.4rem 0.5rem 0.6rem;
  text-decoration: none;
  color: #f5d78e;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background 0.2s, transform 0.2s;
}

.hero-phone-badge img {
  width: 28px;
  height: 28px;
  display: block;
}

.hero-phone-badge:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.enroll-phone-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: linear-gradient(135deg, #1a4b8c 0%, #0d2d5a 100%);
  color: white;
  border-radius: 0.75rem;
  padding: 0.9rem 1.5rem;
  margin: 0 0 1.25rem;
  text-align: center;
  flex-wrap: wrap;
}

.enroll-phone-banner img {
  width: 32px;
  height: 32px;
  display: block;
}

.enroll-phone-banner a {
  color: #f5d78e;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}

.enroll-phone-banner a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .hero-phone-badge { font-size: 0.95rem; padding: 0.45rem 1.1rem 0.45rem 0.5rem; }
  .hero-phone-badge img { width: 24px; height: 24px; }
}

/* ----- TICKER STRIP ----- */
.ticker-wrap {
  background: linear-gradient(90deg, #d4a84b, #e8c167, #d4a84b);
  overflow: hidden;
  padding: 0.6rem 0;
  margin: 0 -2rem;
}

.ticker-track {
  display: flex;
  gap: 3rem;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.ticker-track span {
  color: #3d2200;
  font-weight: 700;
  font-size: 0.95rem;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----- SLIDER ENHANCEMENTS (public) ----- */
.pub-slider {
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  margin-top: 2rem;
}

.pub-slider .slider {
  height: 430px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Slide tags */
.slide-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.slide-tag-gold   { background: rgba(212,168,75,0.75); color: #3d2200; }
.slide-tag-green  { background: rgba(5,150,105,0.5); }
.slide-tag-purple { background: rgba(124,58,237,0.5); }
.slide-tag-pink   { background: rgba(219,39,119,0.5); }

/* Slide badges */
.slide-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.sbadge {
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.25);
}

/* Slide CTA button */
.btn-slide {
  display: inline-block;
  background: linear-gradient(135deg, #d4a84b, #f5d78e);
  color: #3d2200;
  font-weight: 800;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  margin-top: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-slide:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Slider progress bar */
.slider-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,0.15);
  z-index: 20;
}

.slider-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d4a84b, #f5d78e);
  border-radius: 0 2px 2px 0;
}

/* Show nav arrows on pub slider */
.pub-slider .slider-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  font-size: 1.5rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
}

.pub-slider .slider-btn:hover {
  background: rgba(255,255,255,0.35);
}

/* ----- SECTION HEADER ----- */
.section-header {
  text-align: center;
  margin: 2.5rem 0 1.5rem;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-top: 0.4rem;
}

/* ----- COURSE CARDS GRID ----- */
.pub-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.pub-course-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  border-top: 5px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pub-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.course-science  { border-top-color: #059669; }
.course-history  { border-top-color: #7c3aed; }
.course-elective { border-top-color: #db2777; }
.course-full     { border-top-color: #d4a84b; background: linear-gradient(135deg, #fffbf0, #fff8e1); }

.pcc-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.pub-course-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.pub-course-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.pub-course-card ul li {
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 0.25rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.pub-course-card ul li::before {
  content: '• ';
  color: var(--accent-color);
  font-weight: bold;
}

.pcc-tag {
  display: inline-block;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  border: 1px solid #6ee7b7;
}

.pcc-tag-gold {
  background: #fffbeb;
  color: #92400e;
  border-color: #d4a84b;
}

/* ----- À LA CARTE CALLOUT ----- */
.alacarte-callout {
  background: linear-gradient(135deg, #b45309, #92400e);
  border-radius: 20px;
  margin: 1.5rem 0;
  padding: 0.25rem;
  box-shadow: 0 8px 32px rgba(180,83,9,0.3);
}

.alacarte-inner {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-radius: 17px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.alacarte-icon {
  font-size: 3.5rem;
  flex-shrink: 0;
}

.alacarte-text { flex: 1; min-width: 200px; }

.alacarte-text h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 0.5rem;
}

.alacarte-text p {
  color: #78350f;
  font-size: 0.98rem;
  line-height: 1.6;
}

.btn-alacarte {
  display: inline-block;
  background: linear-gradient(135deg, #b45309, #d97706);
  color: white;
  font-weight: 800;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(180,83,9,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-alacarte:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(180,83,9,0.45);
}

/* ----- VERSE STRIP ----- */
.verse-strip {
  background: linear-gradient(90deg, #1a4b8c, #2563eb, #1a4b8c);
  text-align: center;
  padding: 1.25rem 2rem;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.verse-strip p {
  color: white;
  font-size: 1.1rem;
  font-style: italic;
  margin: 0;
}

/* ----- WHY FOLLOW THE LIGHT GRID ----- */
.pub-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.pub-info-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pub-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}

.pic-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.pub-info-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.pub-info-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ----- PORTAL CTA STRIP ----- */
.portal-cta-strip {
  background: linear-gradient(135deg, #0d2d5a, #1a4b8c);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-top: 1.5rem;
  box-shadow: 0 4px 20px rgba(13,45,90,0.3);
}

.portal-cta-inner h3 {
  color: #f5d78e;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.portal-cta-inner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.25rem;
}

.btn-portal {
  display: inline-block;
  background: linear-gradient(135deg, #d4a84b, #f5d78e);
  color: #3d2200;
  font-weight: 800;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.05rem;
  box-shadow: 0 4px 15px rgba(212,168,75,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-portal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212,168,75,0.5);
}

/* ---- RESPONSIVE ----- */
@media (max-width: 768px) {
  .public-hero { padding: 2.5rem 1rem 2rem; margin: -2rem -1rem 0; }
  .hero-title  { font-size: 2rem; }
  .hero-subtitle-text { font-size: 1.4rem; }
  .ticker-wrap { margin: 0 -1rem; }

  .pub-slider .slider { height: auto; min-height: 520px; }
  .pub-slider .slide  { min-height: 500px; }
  .pub-slider .slide-content { flex-direction: column; text-align: center; padding: 1.5rem 1rem; }
  .pub-slider .slide-text { text-align: center; }
  .pub-slider .slide-text h2 { font-size: 1.4rem; }
  .pub-slider .slide-text h3 { font-size: 1rem; }
  .pub-slider .slide-text p  { font-size: 0.88rem; }
  .pub-slider .slide-badges  { justify-content: center; }
  .pub-slider .slide-image   { flex: 0 0 auto; }
  .pub-slider .slide-image img { max-width: 180px; max-height: 180px; }

  .alacarte-inner { flex-direction: column; text-align: center; }
  .btn-alacarte   { width: 100%; text-align: center; }
}


/* ============================================================
   SCIENCE PAGE
   ============================================================ */

/* ----- SCIENCE HERO ----- */
.sci-hero {
  position: relative;
  background: linear-gradient(135deg, #064e3b 0%, #065f46 40%, #047857 80%, #1a4b8c 100%);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  overflow: hidden;
  margin: -2rem -2rem 0;
}

.sci-hero-glow {
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(52,211,153,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.sci-hero-inner { position: relative; z-index: 1; }

.sci-hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, #059669, #34d399, #059669);
  color: #022c22;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.4rem 1.4rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  animation: badgePop 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}

.sci-hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: white;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.sci-hero-sub {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

.sci-hero-verse {
  color: #a7f3d0;
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  font-style: italic;
}

/* ----- GRADE BAND NAV ----- */
.grade-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0 1.5rem;
}

.grade-nav-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.grade-nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.gn-hs { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: white; }
.gn-ms { background: linear-gradient(135deg, #065f46, #059669); color: white; }
.gn-el { background: linear-gradient(135deg, #b45309, #f59e0b); color: white; }

/* ----- COURSE SECTIONS ----- */
.course-section {
  background: white;
  border-radius: 20px;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  scroll-margin-top: 1rem;
}

.cs-header {
  padding: 1.75rem 2rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.cs-grade-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
  background: rgba(255,255,255,0.25);
  color: white;
}

.cs-header h2 {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  margin-bottom: 0.35rem;
}

.cs-tagline {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin: 0;
}

/* Color themes per level */
.cs-hs .cs-header { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.cs-ms .cs-header { background: linear-gradient(135deg, #065f46, #059669); }
.cs-el .cs-header { background: linear-gradient(135deg, #92400e, #d97706); }

.cs-hs { border-top: 5px solid #2563eb; }
.cs-ms { border-top: 5px solid #059669; }
.cs-el { border-top: 5px solid #d97706; }

/* Body layout */
.cs-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
}

/* Info column */
.cs-info-col { display: flex; flex-direction: column; gap: 1.25rem; }

.cs-detail-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
}

.cs-detail-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cs-detail-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

.cs-topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.cs-topic-list li {
  font-size: 0.88rem;
  color: var(--text-color);
  padding: 0.4rem 0.5rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* Details grid */
.cs-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.cs-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: white;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e2e8f0;
}

.cd-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  font-weight: 700;
}

.cd-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Action column */
.cs-action-col { display: flex; flex-direction: column; gap: 1.25rem; }

/* Syllabus card */
.cs-syllabus-card {
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  border: 2px dashed;
}

.cs-syllabus-hs { background: #eff6ff; border-color: #93c5fd; }
.cs-syllabus-ms { background: #ecfdf5; border-color: #6ee7b7; }
.cs-syllabus-el { background: #fffbeb; border-color: #fcd34d; }

.syllabus-icon { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }

.cs-syllabus-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.cs-syllabus-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Syllabus buttons */
.btn-syllabus {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-syllabus-hs { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: white; }
.btn-syllabus-ms { background: linear-gradient(135deg, #065f46, #059669); color: white; }
.btn-syllabus-el { background: linear-gradient(135deg, #92400e, #d97706); color: white; }

.btn-syllabus:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }

.coming-soon-btn { opacity: 0.7; cursor: default; }
.coming-soon-btn:hover { transform: none; box-shadow: none; }

.soon-badge {
  position: absolute;
  top: -10px; right: -10px;
  background: #d4a84b;
  color: #3d2200;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Enroll card */
.cs-enroll-card {
  background: var(--primary-dark);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  flex: 1;
}

.cs-enroll-card h3 {
  color: #f5d78e;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cs-enroll-card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.btn-enroll {
  display: inline-block;
  background: linear-gradient(135deg, #d4a84b, #f5d78e);
  color: #3d2200;
  font-weight: 800;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(212,168,75,0.3);
}

.btn-enroll:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212,168,75,0.45);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
  .sci-hero { padding: 2.5rem 1rem 2rem; margin: -2rem -1rem 0; }
  .sci-hero-title { font-size: 2rem; }

  .cs-body {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .cs-action-col { order: -1; }

  .cs-topic-list { grid-template-columns: 1fr; }
  .cs-details-grid { grid-template-columns: 1fr 1fr; }

  .grade-nav { gap: 0.75rem; }
  .grade-nav-btn { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
}


/* ============================================================
   SCIENCE PAGE — EXTENDED COMPONENTS
   ============================================================ */

/* ----- WIDE TOPIC LIST ----- */
.cs-topic-list-wide {
  grid-template-columns: 1fr !important;
}

.cs-topic-list-wide li {
  font-size: 0.9rem !important;
  line-height: 1.5;
}

/* ----- COURSE AT A GLANCE ----- */
.cs-course-at-glance {
  background: linear-gradient(135deg, #0d2d5a, #1a4b8c);
  border-radius: 16px;
  padding: 1.25rem;
}

.cs-course-at-glance h3 {
  color: #f5d78e;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.cag-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cag-row:last-child { border-bottom: none; }

.cag-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }

.cag-row strong { color: #f5d78e; font-size: 0.82rem; display: block; }
.cag-row div { color: rgba(255,255,255,0.82); font-size: 0.82rem; line-height: 1.4; }

/* ----- GRADING BAR CHART ----- */
.grade-bar-list { display: flex; flex-direction: column; gap: 0.7rem; }

.grade-bar-item { display: flex; flex-direction: column; gap: 0.3rem; }

.gb-label { font-size: 0.82rem; font-weight: 600; color: var(--text-color); }

.gb-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  border-radius: 50px;
  overflow: visible;
  height: 22px;
  position: relative;
}

.gb-bar {
  height: 100%;
  border-radius: 50px;
  min-width: 8px;
  transition: width 0.8s ease;
}

.gb-bar-hs { background: linear-gradient(90deg, #1e3a8a, #3b82f6); }
.gb-bar-ms { background: linear-gradient(90deg, #065f46, #10b981); }
.gb-bar-el { background: linear-gradient(90deg, #92400e, #f59e0b); }

.gb-pct {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-left: 0.25rem;
  white-space: nowrap;
}

/* ----- NEEDS LIST ----- */
.cs-needs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cs-needs-list li {
  font-size: 0.9rem;
  color: var(--text-color);
  padding: 0.35rem 0;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.4;
}

.cs-needs-list li:last-child { border-bottom: none; }

/* ----- AGE BAND CARDS (Physical Science) ----- */
.age-bands { display: flex; flex-direction: column; gap: 0.75rem; }

.age-band {
  border-radius: 10px;
  padding: 0.9rem 1rem;
  border-left: 4px solid;
}

.age-band-k1  { background: #fef3c7; border-left-color: #fbbf24; }
.age-band-23  { background: #ecfdf5; border-left-color: #34d399; }
.age-band-45  { background: #eff6ff; border-left-color: #60a5fa; }

.ab-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}

.ab-title span {
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.82rem;
  margin-left: 0.4rem;
}

.age-band p {
  font-size: 0.85rem !important;
  color: var(--text-light) !important;
  line-height: 1.5;
  margin: 0 !important;
}

/* ----- LIVE SYLLABUS BUTTON (no coming soon) ----- */
.btn-syllabus:not(.coming-soon-btn) {
  opacity: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .grade-bar-list { gap: 0.5rem; }
  .age-bands { gap: 0.5rem; }
  .cag-row { padding: 0.4rem 0; }
}

/* ============================================================
   HISTORY / SOCIAL STUDIES PAGE
   ============================================================ */

/* Hero */
.hist-hero {
  position: relative;
  background: linear-gradient(135deg, #7c2d12 0%, #9a3412 40%, #b45309 100%);
  color: white;
  text-align: center;
  padding: 4rem 2rem 3rem;
  margin: -2rem -2rem 0;
  overflow: hidden;
}
.hist-hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 30%, rgba(251,191,36,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hist-hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hist-hero-badge {
  display: inline-block;
  background: rgba(251,191,36,0.2);
  border: 1px solid rgba(251,191,36,0.5);
  color: #fde68a;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hist-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hist-hero-sub {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}
.hist-hero-verse {
  font-size: 0.95rem;
  color: #fde68a;
  font-style: italic;
  margin-bottom: 1.75rem;
}

/* Grade nav — history colors */
.gn-hist-hs {
  background: linear-gradient(135deg, #7c2d12, #9a3412);
  color: white;
  border: 2px solid #b45309;
}
.gn-hist-el {
  background: linear-gradient(135deg, #78350f, #b45309);
  color: white;
  border: 2px solid #d97706;
}
.gn-hist-hs:hover { background: linear-gradient(135deg, #9a3412, #b45309); }
.gn-hist-el:hover  { background: linear-gradient(135deg, #92400e, #d97706); }

/* Course sections — history color scheme */
.cs-hist-hs .cs-header { background: linear-gradient(135deg, #7c2d12, #9a3412); }
.cs-hist-el .cs-header { background: linear-gradient(135deg, #78350f, #b45309); }

.cs-hist-hs { border-top: 5px solid #9a3412; }
.cs-hist-el { border-top: 5px solid #b45309; }

/* Grade bars */
.gb-bar-hist-hs { background: linear-gradient(90deg, #7c2d12, #dc2626); }
.gb-bar-hist-el { background: linear-gradient(90deg, #78350f, #f59e0b); }

/* Syllabus cards */
.cs-syllabus-hist-hs { background: #fff7ed; border-color: #fdba74; }
.cs-syllabus-hist-el { background: #fffbeb; border-color: #fcd34d; }

.btn-syllabus-hist-hs {
  background: linear-gradient(135deg, #7c2d12, #9a3412);
  color: white;
}
.btn-syllabus-hist-hs:hover { background: linear-gradient(135deg, #9a3412, #b45309); color: white; }

.btn-syllabus-hist-el {
  background: linear-gradient(135deg, #78350f, #b45309);
  color: white;
}
.btn-syllabus-hist-el:hover { background: linear-gradient(135deg, #92400e, #d97706); color: white; }

/* Age bands — history specific */
.age-band-hist-ms { background: #fff7ed; border-left-color: #f97316; }
.age-band-hist-hs { background: #fef2f2; border-left-color: #f87171; }

/* Mobile */
@media (max-width: 768px) {
  .hist-hero { padding: 2.5rem 1rem 2rem; margin: -2rem -1rem 0; }
  .hist-hero-title { font-size: 2rem; }
}

/* ============================================================
   CONTACT PAGE — ENROLL NOTICE BAR & SUCCESS BANNER
   ============================================================ */
.enroll-notice-bar {
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  color: white;
  text-align: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: -2rem -2rem 1.5rem;
}
.enroll-notice-link {
  background: #f59e0b;
  color: #1e1e1e;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.enroll-notice-link:hover { background: #fbbf24; }

.contact-success-banner {
  background: #f0fdf4;
  border: 2px solid #22c55e;
  color: #166534;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-align: center;
}

/* ============================================================
   ENROLLMENT PAGE — INFO STRIP
   ============================================================ */
.enroll-page-strip {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.enroll-strip-item {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  color: #374151;
}

@media (max-width: 768px) {
  .enroll-notice-bar { margin: -2rem -1rem 1.5rem; }
  .enroll-page-strip { gap: 0.5rem; }
  .enroll-strip-item { font-size: 0.85rem; padding: 0.4rem 0.75rem; }
}

/* ============================================================
   ELECTIVES — OVERVIEW PAGE
   ============================================================ */

/* Hero */
.elec-hero {
  position: relative;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #7c3aed 100%);
  color: white;
  padding: 4rem 2rem 3rem;
  text-align: center;
  overflow: hidden;
  margin: -2rem -2rem 0;
}
.elec-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(255,215,0,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.elec-hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.elec-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fde68a;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.elec-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.elec-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  max-width: 680px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}
.elec-hero-verse {
  font-size: 0.95rem;
  color: #fde68a;
  font-style: italic;
  margin-bottom: 1.75rem;
}

/* Intro strip */
.elec-intro-strip {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  background: #1e3a8a;
  color: white;
}
.eis-item {
  flex: 1 1 180px;
  padding: 1.1rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
  line-height: 1.5;
}
.eis-item:last-child { border-right: none; }
.eis-item strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; color: #fde68a; }

/* How it works */
.elec-how-section {
  padding: 3rem 2rem;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}
.elec-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1e3a8a;
  text-align: center;
  margin: 0 0 0.5rem;
}
.elec-section-sub {
  text-align: center;
  color: #64748b;
  margin: 0 0 2rem;
  font-size: 1rem;
}
.elec-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}
.elec-how-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  text-align: center;
}
.elec-how-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.elec-how-card h3 { font-size: 1rem; font-weight: 700; color: #1e3a8a; margin: 0 0 0.5rem; }
.elec-how-card p { font-size: 0.9rem; color: #475569; line-height: 1.55; margin: 0; }

/* Electives grid section */
.elec-grid-section {
  padding: 3rem 2rem;
  background: white;
}
.elec-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Elective card base */
.elec-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 1.25rem;
  color: white;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.elec-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.elec-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.22); }
.elec-card:hover::before { background: rgba(255,255,255,0.06); }

.elec-card-emoji { font-size: 2.25rem; margin-bottom: 0.5rem; }
.elec-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.4rem;
}
.elec-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.6rem;
  line-height: 1.3;
}
.elec-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
  margin: 0 0 1rem;
  flex: 1;
}
.elec-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.elec-card-details span {
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.elec-card-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 0.75rem;
  margin-top: auto;
}

/* Card color variants */
.elec-card-blue    { background: linear-gradient(135deg, #1e3a8a, #1d4ed8); }
.elec-card-purple  { background: linear-gradient(135deg, #5b21b6, #7c3aed); }
.elec-card-teal    { background: linear-gradient(135deg, #134e4a, #0f766e); }
.elec-card-orange  { background: linear-gradient(135deg, #92400e, #b45309); }
.elec-card-navy    { background: linear-gradient(135deg, #0f172a, #1e3a8a); }
.elec-card-green   { background: linear-gradient(135deg, #14532d, #15803d); }
.elec-card-gold    { background: linear-gradient(135deg, #78350f, #d97706); }
.elec-card-crimson { background: linear-gradient(135deg, #7f1d1d, #b91c1c); }
.elec-card-rose    { background: linear-gradient(135deg, #831843, #be185d); }

/* Enroll CTA section */
.elec-enroll-section {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: white;
  text-align: center;
  padding: 3rem 2rem;
}
.elec-enroll-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
}
.elec-enroll-section p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  margin: 0 0 1.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.btn-enroll-big {
  display: inline-block;
  background: #f5d78e;
  color: #1e3a8a;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.85rem 2.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-enroll-big:hover { background: #fde68a; transform: translateY(-2px); }

/* ============================================================
   INDIVIDUAL ELECTIVE PAGES — shared helpers
   ============================================================ */

/* Grade grid inside detail card */
.elec-grade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.elec-grade-item {
  background: #f1f5f9;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid #1e3a8a;
}
.elec-grade-item strong {
  display: block;
  font-size: 0.85rem;
  color: #1e3a8a;
  margin-bottom: 0.25rem;
}
.elec-grade-item p {
  font-size: 0.82rem;
  color: #475569;
  margin: 0;
  line-height: 1.45;
}

/* Back link */
.elec-back-link {
  display: block;
  text-align: center;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem;
  transition: color 0.2s;
}
.elec-back-link:hover { color: #1e3a8a; }

/* Special notice bar (used on Bible page) */
.elec-notice-bar {
  background: #fef9c3;
  border-bottom: 2px solid #fde68a;
  color: #78350f;
  padding: 0.9rem 2rem;
  text-align: center;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.elec-notice-icon { font-size: 1.1rem; }

/* ============================================================
   HOME PAGE SLIDER — update Electives slide link
   ============================================================ */
/* (no changes needed — the /electives href in home.ejs is updated separately) */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .elec-hero { padding: 2.5rem 1rem 2rem; margin: -2rem -1rem 0; }
  .elec-hero-title { font-size: 1.9rem; }
  .elec-intro-strip { flex-direction: row; }
  .eis-item { flex: 1 1 140px; padding: 0.75rem 0.75rem; font-size: 0.8rem; }
  .elec-how-section, .elec-grid-section { padding: 2rem 1rem; }
  .elec-cards-grid { grid-template-columns: 1fr; }
  .elec-grade-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   HOME — COURSE CARD "SEE MORE" TEASER
   ============================================================ */
.pcc-see-more {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1d4ed8;
  margin: 0.25rem 0 0.75rem;
  letter-spacing: 0.01em;
}
.pub-course-card.course-elective:hover .pcc-see-more {
  text-decoration: underline;
}

/* ============================================================
   BLOG — PUBLIC PAGES
   ============================================================ */

/* Hero */
.blog-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 60%, #2a6da8 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 2rem 3rem;
  margin: -2rem -2rem 0;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '✦';
  position: absolute; top: 12px; left: 24px;
  font-size: 2rem; opacity: 0.15;
}
.blog-hero::after {
  content: '✦';
  position: absolute; bottom: 12px; right: 24px;
  font-size: 2rem; opacity: 0.15;
}
.blog-hero-inner { max-width: 700px; margin: 0 auto; }
.blog-hero h1 {
  font-size: 2.6rem; font-weight: 800;
  margin: 0.5rem 0 0.75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.blog-hero p { font-size: 1.1rem; opacity: 0.9; }

/* Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 0 0 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Card */
.blog-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(26,75,140,0.07);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,75,140,0.15);
  text-decoration: none;
}
.blog-card-image {
  width: 100%; height: 200px; overflow: hidden;
  background: linear-gradient(135deg, #e8f0fb, #d1e3f6);
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-no-image {
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--primary-color);
}
.blog-card-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem;
  font-size: 0.82rem; color: var(--text-light); margin-bottom: 0.6rem;
}
.blog-card-author { font-weight: 600; }
.blog-card-title {
  font-size: 1.2rem; font-weight: 700; color: var(--primary-dark);
  margin-bottom: 0.6rem; line-height: 1.35;
}
.blog-card-excerpt {
  font-size: 0.95rem; color: var(--text-light);
  line-height: 1.6; flex: 1; margin-bottom: 1rem;
}
.blog-read-more {
  font-size: 0.9rem; font-weight: 700; color: var(--accent-color);
  align-self: flex-start;
}

/* Empty state */
.blog-empty {
  text-align: center; padding: 4rem 2rem;
  color: var(--text-light); max-width: 500px; margin: 0 auto;
}
.blog-empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.blog-empty h3 { color: var(--primary-dark); margin-bottom: 0.5rem; }

/* ── Single Post ── */
.blog-post-wrap {
  max-width: 780px; margin: 0 auto; padding: 2rem 1rem 4rem;
}
.blog-back { margin-bottom: 1.25rem; }
.blog-back a {
  color: var(--primary-color); font-weight: 600;
  text-decoration: none; font-size: 0.95rem;
}
.blog-back a:hover { text-decoration: underline; }
.blog-post-header { margin-bottom: 1.75rem; }
.blog-post-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.75rem;
}
.blog-post-title {
  font-size: 2.2rem; font-weight: 800; color: var(--primary-dark);
  line-height: 1.25; margin-bottom: 0.75rem;
}
.blog-post-excerpt {
  font-size: 1.15rem; color: var(--text-light);
  font-style: italic; border-left: 4px solid var(--accent-color);
  padding-left: 1rem; line-height: 1.6;
}
.blog-post-image {
  border-radius: 14px; overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(26,75,140,0.12);
}
.blog-post-image img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.blog-post-content {
  font-size: 1.05rem; line-height: 1.85; color: var(--text-color);
  margin-bottom: 2.5rem;
}
.blog-post-content br + br { display: block; margin-top: 0.5rem; content: ''; }

/* ── Admin form extras ── */
.blog-toolbar {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.blog-toolbar button {
  background: var(--primary-color); color: #fff;
  border: none; border-radius: 6px;
  padding: 0.3rem 0.65rem; font-size: 0.82rem;
  cursor: pointer; font-weight: 600; transition: background 0.15s;
}
.blog-toolbar button:hover { background: var(--primary-dark); }
.blog-editor { font-family: monospace; font-size: 0.95rem; }
.form-hint { font-size: 0.8rem; color: var(--text-light); margin-top: 0.3rem; display: block; }
.req { color: var(--error-color); }

/* Home page excerpt strip */
.blog-excerpt-strip {
  background: linear-gradient(135deg, #f0f7ff, #e8f0fb);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin: 2.5rem auto;
  max-width: 1100px;
  display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap;
}
.bes-label {
  flex-shrink: 0;
  background: var(--primary-color); color: #fff;
  border-radius: 12px; padding: 0.5rem 1.1rem;
  font-weight: 700; font-size: 0.9rem; white-space: nowrap;
  align-self: flex-start; margin-top: 0.2rem;
}
.bes-posts { flex: 1; min-width: 250px; display: flex; flex-direction: column; gap: 1rem; }
.bes-post-item { display: flex; gap: 1rem; align-items: flex-start; }
.bes-post-img {
  width: 70px; height: 56px; border-radius: 8px; overflow: hidden;
  flex-shrink: 0; background: var(--border-color);
}
.bes-post-img img { width: 100%; height: 100%; object-fit: cover; }
.bes-post-img-empty {
  width: 70px; height: 56px; border-radius: 8px;
  background: linear-gradient(135deg, #e8f0fb, #d1e3f6);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.bes-post-text a {
  font-weight: 700; color: var(--primary-dark);
  text-decoration: none; font-size: 1rem; line-height: 1.3;
  display: block; margin-bottom: 0.2rem;
}
.bes-post-text a:hover { color: var(--primary-color); text-decoration: underline; }
.bes-post-excerpt { font-size: 0.88rem; color: var(--text-light); line-height: 1.5; }
.bes-all-link { flex-shrink: 0; align-self: center; }
.bes-all-link a {
  display: inline-block;
  background: var(--accent-color); color: #fff;
  border-radius: 10px; padding: 0.5rem 1.2rem;
  font-weight: 700; font-size: 0.9rem; text-decoration: none;
  white-space: nowrap; transition: background 0.2s;
}
.bes-all-link a:hover { background: #b8922e; }

/* Responsive */
@media (max-width: 768px) {
  .blog-hero h1 { font-size: 1.9rem; }
  .blog-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .blog-post-title { font-size: 1.6rem; }
  .blog-excerpt-strip { flex-direction: column; padding: 1.5rem; gap: 1rem; }
  .bes-all-link { align-self: flex-start; }
}

/* Blog post rendered HTML content */
.blog-post-content h2 {
  font-size: 1.5rem; font-weight: 700; color: var(--primary-dark);
  margin: 1.75rem 0 0.6rem;
}
.blog-post-content h3 {
  font-size: 1.2rem; font-weight: 700; color: var(--primary-color);
  margin: 1.4rem 0 0.5rem;
}
.blog-post-content strong { font-weight: 700; color: var(--text-color); }
.blog-post-content em { font-style: italic; }
.blog-post-content u { text-decoration: underline; }
.blog-post-content ul {
  margin: 0.75rem 0 0.75rem 1.75rem;
  list-style: disc;
}
.blog-post-content ul li { margin-bottom: 0.35rem; line-height: 1.7; }
.blog-post-content hr {
  border: none; border-top: 2px solid var(--border-color);
  margin: 2rem 0;
}
.blog-post-content blockquote {
  border-left: 4px solid var(--accent-color);
  background: linear-gradient(135deg, #fffbf0, #fdf6e3);
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--primary-dark);
  font-size: 1.05rem;
}
