/* ══════════════════════════════════════════════════════════
   ISMS — Diliman Preparatory School & Diliman College
   Master Stylesheet
   ══════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --navy: #1B2A6B;
  --navy-dark: #111D4E;
  --blue: #2E4BAD;
  --blue-light: #4A6BD5;
  --accent: #E8A838;
  --accent-hover: #D4962E;
  --bg-light: #F2F4FA;
  --bg-white: #ffffff;
  --text-dark: #333333;
  --text-medium: #666666;
  --text-light: #999999;
  --border-light: #E0E4EF;
  --success: #27AE60;
  --warning: #F39C12;
  --danger: #E74C3C;
  --info: #3498DB;
  --shadow-sm: 0 1px 3px rgba(27, 42, 107, 0.08);
  --shadow-md: 0 4px 12px rgba(27, 42, 107, 0.12);
  --shadow-lg: 0 8px 30px rgba(27, 42, 107, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* ── Utility Classes ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-navy { color: var(--navy); }
.text-blue { color: var(--blue); }
.text-accent { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy-dark);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--bg-white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--bg-white);
}

.btn-navy {
  background: var(--navy);
  color: var(--bg-white);
}
.btn-navy:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(27, 42, 107, 0.95);
  backdrop-filter: blur(10px);
  padding: 0 24px;
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--navy);
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.navbar-logo {
  width: 44px;
  height: 44px;
  background: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: var(--navy);
}

.navbar-brand-text {
  color: var(--bg-white);
}

.navbar-brand-text .brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.navbar-brand-text .brand-sub {
  font-size: 11px;
  opacity: 0.7;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.navbar-links a:hover {
  color: var(--bg-white);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-cta .btn {
  padding: 9px 22px;
  font-size: 13px;
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bg-white);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .navbar-links, .navbar-cta {
    display: none;
  }
  .navbar-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }
  .navbar-cta.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(72px + var(--nav-links-height, 200px));
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 0 24px 24px;
  }
}

/* ══════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 50%, var(--navy-dark) 100%);
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.2) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(255,255,255,0.15) 0%, transparent 40%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  color: var(--bg-white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 168, 56, 0.15);
  border: 1px solid rgba(232, 168, 56, 0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

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

.hero-subtitle {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 16px;
  line-height: 1.7;
  max-width: 520px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin: 32px 0;
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 13px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
}

/* Hero visual - Dashboard mockup */
.hero-visual {
  position: relative;
}

.hero-dashboard {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.hero-dashboard:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.dash-header {
  background: var(--navy);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dash-dot.red { background: #FF5F57; }
.dash-dot.yellow { background: #FFBD2E; }
.dash-dot.green { background: #28C840; }

.dash-title {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  margin-left: 8px;
}

.dash-body {
  padding: 24px;
}

.dash-welcome {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.dash-role {
  font-size: 13px;
  color: var(--text-medium);
  margin-bottom: 20px;
}

.dash-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.dash-card {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.dash-card-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.dash-card-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}

.dash-card-label {
  font-size: 11px;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-table {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.dash-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: var(--navy);
  padding: 8px 12px;
  font-size: 10px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.dash-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 10px 12px;
  font-size: 12px;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

.dash-table-row:nth-child(even) {
  background: var(--bg-light);
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 600;
}

.status-badge.enrolled { background: #D4EFDF; color: #1E8449; }
.status-badge.pending { background: #FEF5E7; color: #B7950B; }
.status-badge.graduated { background: #D6EAF8; color: #2471A3; }

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title { font-size: 36px; }
  .hero-subtitle { margin: 0 auto 16px; }
  .hero-stats { justify-content: center; }
  .hero-stat { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
}

/* ══════════════════════════════════════
   FEATURES SECTION
   ══════════════════════════════════════ */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.7;
}

@media (max-width: 968px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   MODULES SECTION
   ══════════════════════════════════════ */
.modules-section {
  background: var(--bg-light);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.module-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.module-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-weight: 800;
  font-size: 18px;
}

.module-info h3 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 8px;
}

.module-info p {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.6;
}

.module-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  background: var(--bg-light);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

/* ══════════════════════════════════════
   TIMELINE SECTION
   ══════════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 32px;
  width: 3px;
  background: linear-gradient(to bottom, var(--navy), var(--blue), var(--accent));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 20px;
  top: 4px;
  width: 28px;
  height: 28px;
  background: var(--navy);
  border-radius: 50%;
  border: 4px solid var(--bg-white);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.timeline-item.active .timeline-marker {
  background: var(--accent);
}

.timeline-week {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blue);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.7;
}

.timeline-milestone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 12px;
  background: rgba(39, 174, 96, 0.1);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}

/* ══════════════════════════════════════
   ABOUT / TEAM SECTION
   ══════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  text-align: center;
  transition: var(--transition);
}

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

.team-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  font-weight: 800;
  color: var(--bg-white);
}

.team-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-role {
  font-size: 14px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 14px;
}

.team-desc {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.7;
}

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

/* ══════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--bg-white);
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.05) 0%, transparent 40%);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 4px;
}

.footer-brand .brand-sub {
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ══════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  color: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.login-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
}

.login-visual-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 400px;
}

.login-visual-logo {
  width: 90px;
  height: 90px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
  font-weight: 900;
  border: 2px solid rgba(255,255,255,0.2);
}

.login-visual h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.login-visual p {
  opacity: 0.8;
  font-size: 15px;
  line-height: 1.7;
}

.login-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  background: var(--bg-white);
}

.login-form-container {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.login-form-header {
  margin-bottom: 36px;
}

.login-form-header h1 {
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 8px;
}

.login-form-header p {
  color: var(--text-medium);
  font-size: 15px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-white);
}

.form-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 75, 173, 0.1);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-medium);
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
}

.form-link {
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
  transition: var(--transition);
}

.form-link:hover {
  color: var(--navy);
}

.login-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  justify-content: center;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  font-size: 13px;
  color: var(--text-light);
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.ms365-btn {
  width: 100%;
  padding: 12px;
  background: var(--bg-light);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.ms365-btn:hover {
  border-color: var(--blue);
  background: var(--bg-white);
}

.ms365-icon {
  width: 20px;
  height: 20px;
}

.login-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-medium);
}

.role-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.role-option {
  padding: 10px 8px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-medium);
}

.role-option:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.role-option.active {
  border-color: var(--navy);
  background: var(--bg-light);
  color: var(--navy);
}

.role-option-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-form-side { padding: 40px 24px; }
}

/* ══════════════════════════════════════
   DASHBOARD PAGE
   ══════════════════════════════════════ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: var(--navy);
  color: var(--bg-white);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
}

.sidebar-brand-text .s-brand-name {
  font-size: 14px;
  font-weight: 700;
}

.sidebar-brand-text .s-brand-sub {
  font-size: 10px;
  opacity: 0.5;
}

.sidebar-nav {
  padding: 16px 12px;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.4;
  padding: 16px 12px 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
  cursor: pointer;
  margin-bottom: 2px;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.08);
  color: var(--bg-white);
}

.sidebar-link.active {
  background: rgba(255,255,255,0.12);
  color: var(--bg-white);
}

.sidebar-link-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.sidebar-link-badge {
  margin-left: auto;
  background: var(--accent);
  color: var(--navy-dark);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
}

.sidebar-user {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.sidebar-user-info .s-user-name {
  font-size: 13px;
  font-weight: 600;
}

.sidebar-user-info .s-user-role {
  font-size: 11px;
  opacity: 0.5;
}

/* Main content area */
.dashboard-main {
  margin-left: 260px;
  background: var(--bg-light);
  min-height: 100vh;
}

.dashboard-topbar {
  background: var(--bg-white);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  width: 320px;
}

.topbar-search input {
  border: none;
  background: none;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  outline: none;
  color: var(--text-dark);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--bg-light);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
}

.topbar-icon-btn:hover {
  background: var(--border-light);
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--bg-white);
}

.dashboard-content {
  padding: 32px;
}

/* Dashboard Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.stat-card-icon.blue { background: rgba(46, 75, 173, 0.1); }
.stat-card-icon.green { background: rgba(39, 174, 96, 0.1); }
.stat-card-icon.orange { background: rgba(243, 156, 18, 0.1); }
.stat-card-icon.red { background: rgba(231, 76, 60, 0.1); }

.stat-card-trend {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 50px;
}

.stat-card-trend.up { background: rgba(39, 174, 96, 0.1); color: var(--success); }
.stat-card-trend.down { background: rgba(231, 76, 60, 0.1); color: var(--danger); }

.stat-card-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.stat-card-label {
  font-size: 13px;
  color: var(--text-medium);
}

/* Dashboard panels */
.dashboard-panels {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.panel {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.panel-body {
  padding: 20px 24px;
}

/* Data table in dashboard */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-medium);
  border-bottom: 2px solid var(--border-light);
}

.data-table tbody td {
  padding: 12px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: var(--bg-light);
}

.student-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.student-avatar-sm {
  width: 32px;
  height: 32px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}

/* Activity feed */
.activity-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
}

.activity-dot.blue { background: var(--blue); }
.activity-dot.green { background: var(--success); }
.activity-dot.orange { background: var(--warning); }

.activity-text {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
}

.activity-time {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 3px;
}

@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-panels { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); transition: var(--transition); }
  .sidebar.open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-in.delay-1 { animation-delay: 0.1s; }
.animate-in.delay-2 { animation-delay: 0.2s; }
.animate-in.delay-3 { animation-delay: 0.3s; }
.animate-in.delay-4 { animation-delay: 0.4s; }
.animate-in.delay-5 { animation-delay: 0.5s; }
.animate-in.delay-6 { animation-delay: 0.6s; }

/* ══════════════════════════════════════
   SCHOOL INFO SECTION
   ══════════════════════════════════════ */
.school-info-section {
  background: var(--bg-white);
}

.school-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.school-info-content h2 {
  font-size: 32px;
  color: var(--navy);
  margin-bottom: 16px;
}

.school-info-content p {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 16px;
}

.school-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.school-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}

.school-highlight-icon {
  font-size: 24px;
}

.school-highlight-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.school-info-visual {
  position: relative;
}

.school-image-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  color: var(--bg-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.school-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 40%);
}

.school-crest {
  position: relative;
  z-index: 2;
  font-size: 80px;
  margin-bottom: 24px;
}

.school-image-placeholder h3 {
  position: relative;
  z-index: 2;
  font-size: 24px;
  margin-bottom: 8px;
}

.school-image-placeholder p {
  position: relative;
  z-index: 2;
  opacity: 0.8;
  font-size: 15px;
}

@media (max-width: 768px) {
  .school-info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ══════════════════════════════════════
   CONTACT / CAMPUSES
   ══════════════════════════════════════ */
.campuses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.campus-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  text-align: center;
  transition: var(--transition);
}

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

.campus-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.campus-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.campus-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 6px;
}

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

/* ══════════════════════════════════════
   SCROLLBAR STYLING
   ══════════════════════════════════════ */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* ══════════════════════════════════════
   SELECT DROPDOWN
   ══════════════════════════════════════ */
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 75, 173, 0.1);
}
