@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ─── CSS Variables ─── */
:root {
  --navy:       #102A43;
  --navy-mid:   #1D3B53;
  --navy-light: #2F5D7C;
  --saffron:    #0F766E;
  --saffron-lt: #14B8A6;
  --cream:      #F6F8FB;
  --warm-white: #FFFFFF;
  --slate:      #64748B;
  --border:     #D8E2EA;
  --text:       #172033;
  --muted:      #64748B;
  --success:    #16A34A;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(16,42,67,0.10);
  --shadow-lg:  0 12px 48px rgba(16,42,67,0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  line-height: 1.2;
  color: var(--navy);
}

h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

/* ─── Header & Nav ─── */
header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

nav h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.37rem;
  color: white;
  letter-spacing: -0.02em;
  max-width: 280px;
  line-height: 1.2;
}

nav h1 span {
  color: var(--saffron-lt);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.nav-brand:hover {
  opacity: 0.85;
}

.nav-logo-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(34, 184, 232, 0.4);
  box-shadow: 0 0 10px rgba(34, 184, 232, 0.15);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-brand:hover .nav-logo-img {
  transform: scale(1.08);
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow: 0 0 14px rgba(20, 184, 166, 0.25);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 2px;
}

.nav-brand-ifh {
  font-family: 'Orbitron', 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #22B8E8;
  text-shadow: 0 0 8px rgba(34, 184, 232, 0.3);
}

.nav-brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav ul li a {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

nav ul li a:hover {
  color: white;
  background: rgba(255,255,255,0.08);
}

/* ─── Portal Dropdown — Premium Redesign ─── */
.dropdown {
  position: relative;
  display: inline-block;
}

/* The trigger button */
.dropbtn {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(15,118,110,0.25), rgba(15,118,110,0.08));
  border: 1px solid rgba(20,184,166,0.5);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}

.dropbtn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--saffron), #115E59);
  opacity: 0;
  transition: opacity 0.3s;
}

.dropbtn:hover::before,
.dropbtn.portal-open::before {
  opacity: 1;
}

.dropbtn .btn-label {
  position: relative;
  z-index: 1;
}

.dropbtn .btn-arrow {
  font-size: 0.6rem;
  position: relative;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: inline-block;
}

.dropbtn.portal-open .btn-arrow {
  transform: rotate(180deg);
}

.dropbtn:hover {
  box-shadow: 0 6px 24px rgba(15,118,110,0.45);
  transform: translateY(-1px);
  border-color: var(--saffron);
}

/* The dropdown panel */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 300px;
  z-index: 9999;
  padding: 10px;
  background: linear-gradient(160deg, rgba(10,20,38,0.98) 0%, rgba(16,42,67,0.98) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transform-origin: top right;
}

.dropdown-content.portal-visible {
  display: block;
  animation: portalDrop 0.28s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

.dropdown-content.portal-hiding {
  display: block;
  animation: portalHide 0.18s ease-in forwards;
}

@keyframes portalDrop {
  from { opacity: 0; transform: scale(0.92) translateY(-10px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

@keyframes portalHide {
  from { opacity: 1; transform: scale(1) translateY(0); }
  to   { opacity: 0; transform: scale(0.95) translateY(-6px); }
}

/* Panel header label */
.portal-panel-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 6px 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-panel-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--saffron-lt);
  box-shadow: 0 0 6px var(--saffron-lt);
  flex-shrink: 0;
}

/* Each portal link card */
.dropdown-content a {
  color: rgba(255,255,255,0.88);
  padding: 13px 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 14px;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  margin-bottom: 4px;
}

.dropdown-content a:last-child { margin-bottom: 0; }

.dropdown-content a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.22s;
}

.dropdown-content a:nth-child(2)::before { background: linear-gradient(120deg, rgba(15,118,110,0.18), rgba(15,118,110,0.04)); }
.dropdown-content a:nth-child(3)::before { background: linear-gradient(120deg, rgba(34,184,232,0.18), rgba(34,184,232,0.04)); }
.dropdown-content a:nth-child(4)::before { background: linear-gradient(120deg, rgba(16,185,129,0.18), rgba(16,185,129,0.04)); }

.dropdown-content a:hover::before { opacity: 1; }

.dropdown-content a:hover {
  color: #fff;
  transform: translateX(4px);
}

/* Icon bubbles */
.dropdown-content a .portal-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform 0.22s, box-shadow 0.22s;
  position: relative;
  z-index: 1;
}

.dropdown-content a:nth-child(2) .portal-icon {
  background: linear-gradient(135deg, rgba(15,118,110,0.35), rgba(15,118,110,0.12));
  border: 1px solid rgba(15,118,110,0.4);
  box-shadow: 0 4px 16px rgba(15,118,110,0.2);
}
.dropdown-content a:nth-child(3) .portal-icon {
  background: linear-gradient(135deg, rgba(34,184,232,0.35), rgba(34,184,232,0.12));
  border: 1px solid rgba(34,184,232,0.4);
  box-shadow: 0 4px 16px rgba(34,184,232,0.2);
}
.dropdown-content a:nth-child(4) .portal-icon {
  background: linear-gradient(135deg, rgba(16,185,129,0.35), rgba(16,185,129,0.12));
  border: 1px solid rgba(16,185,129,0.4);
  box-shadow: 0 4px 16px rgba(16,185,129,0.2);
}

.dropdown-content a:hover .portal-icon {
  transform: scale(1.12) rotate(-4deg);
}

.dropdown-content a:nth-child(2):hover .portal-icon { box-shadow: 0 6px 22px rgba(15,118,110,0.45); }
.dropdown-content a:nth-child(3):hover .portal-icon { box-shadow: 0 6px 22px rgba(34,184,232,0.45); }
.dropdown-content a:nth-child(4):hover .portal-icon { box-shadow: 0 6px 22px rgba(16,185,129,0.45); }

/* Text info next to icon */
.dropdown-content a .portal-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
  flex: 1;
}

.dropdown-content a .portal-info small {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.38);
  font-family: 'Inter', sans-serif;
}

/* Arrow chevron on each row */
.dropdown-content a .portal-chevron {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
  transition: color 0.2s, transform 0.2s;
  position: relative;
  z-index: 1;
}

.dropdown-content a:hover .portal-chevron {
  color: rgba(255,255,255,0.7);
  transform: translateX(3px);
}

/* Divider line at bottom of panel */
.portal-panel-footer {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.22);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn.primary {
  background: var(--saffron);
  color: white;
  box-shadow: 0 4px 12px rgba(15,118,110,0.35);
}

.btn.primary:hover {
  background: var(--saffron-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,118,110,0.45);
  color: white;
}

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

.btn.secondary:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
  transform: translateY(-2px);
}

.btn.outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

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

/* ─── Hero Section ─── */
.hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(47,93,124,0.72) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(15,118,110,0.15) 0%, transparent 60%);
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.hero-badge {
  display: inline-block;
  background: rgba(15,118,110,0.15);
  border: 1px solid rgba(15,118,110,0.3);
  color: var(--saffron-lt);
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  position: relative;
}

.hero h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: white;
  max-width: 720px;
  margin: 0 auto 20px;
  line-height: 1.1;
  position: relative;
}

.hero h2 em {
  font-style: italic;
  color: var(--saffron-lt);
}

.hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1.125rem;
  max-width: 520px;
  margin: 0 auto 40px;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ─── Notice Board ─── */
.notice-board-section {
  padding: 0 24px;
  margin-top: -30px;
  position: relative;
  z-index: 2;
}

.notice-board {
  max-width: 960px;
  margin: 0 auto;
  background: white;
  border-radius: 14px;
  padding: 28px 36px;
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--saffron);
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.notice-board h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--saffron);
  white-space: nowrap;
  padding-top: 4px;
}

.notice-board ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
}

.notice-board ul li {
  font-size: 0.875rem;
  color: var(--text);
  background: var(--cream);
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

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

section { padding: 80px 0; }

.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 14px;
}

/* ─── About Section ─── */
.about-section {
  background: var(--warm-white);
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--navy);
  color: white;
  padding: 28px 24px;
  border-radius: 12px;
  text-align: center;
}

.stat-card .number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--saffron-lt);
  display: block;
}

.stat-card .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.05em;
}

.stat-card.accent {
  background: var(--saffron);
}

.stat-card.accent .number { color: white; }
.stat-card.accent .label { color: rgba(255,255,255,0.8); }

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

/* ─── Features Section ─── */
.features-section {
  background: var(--cream);
}

.features-section .container { text-align: center; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 28px;
  text-align: left;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--saffron);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

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

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

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── Form Section ─── */
.form-section {
  background: var(--navy);
  padding: 80px 0;
}

.form-section .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.form-info h2 { color: white; margin-bottom: 16px; }
.form-info p { color: rgba(255,255,255,0.6); font-size: 0.95rem; margin-bottom: 24px; }

.form-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.form-checklist li::before {
  content: '✓';
  background: var(--saffron);
  color: white;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.form-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-card h3 {
  margin-bottom: 28px;
  font-size: 1.3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full { grid-column: 1 / -1; }

.form-section-label {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}


.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input, select, textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
  color: var(--text);
  transition: all 0.2s;
  width: 100%;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--saffron);
  background: white;
  box-shadow: 0 0 0 3px rgba(15,118,110,0.1);
}

textarea { resize: vertical; min-height: 90px; }

/* ─── Courses Page ─── */
.courses-hero {
  background: var(--navy);
  padding: 60px 24px;
  text-align: center;
}

.courses-hero h2 { color: white; }
.courses-hero p { color: rgba(255,255,255,0.6); margin-top: 12px; }

.courses-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.course-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

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

.course-header {
  background: var(--navy);
  padding: 28px;
  position: relative;
}

.course-tag {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(15,118,110,0.2);
  color: var(--saffron-lt);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  display: inline-block;
}

.course-header h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.course-duration {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.course-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.syllabus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.syllabus-list li {
  font-size: 0.875rem;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}

.syllabus-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--saffron);
  font-weight: 700;
}

.course-footer {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}

.course-footer .btn { flex: 1; text-align: center; }

/* ─── Dashboard / Portal ─── */
.portal-body {
  background: var(--cream);
  min-height: 100vh;
}

.portal-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
}

.login-card {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  overflow: hidden;
  width: 100%;
  max-width: 860px;
}

.login-aside {
  background: var(--navy);
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-aside .logo-mark {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  color: var(--saffron-lt);
  line-height: 1;
  margin-bottom: 20px;
}

.login-aside h2 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.login-aside p {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  line-height: 1.7;
}

.login-form-area {
  padding: 56px 48px;
}

.login-form-area h3 {
  margin-bottom: 8px;
}

.login-form-area .subtitle {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 32px;
}

.login-form-area .form-group { margin-bottom: 16px; }

.demo-hint {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--cream);
  padding: 10px;
  border-radius: 6px;
  border: 1px dashed var(--border);
}

/* Admin Panel */
.admin-panel, .student-panel {
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-header {
  background: var(--navy);
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.panel-header h2 { color: white; font-size: 1.5rem; }
.panel-header p  { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-top: 4px; }

.panel-card {
  background: white;
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.panel-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead th {
  background: var(--navy);
  color: white;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
}

.data-table thead th:first-child { border-radius: 8px 0 0 8px; }
.data-table thead th:last-child  { border-radius: 0 8px 8px 0; }

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

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

.data-table td {
  padding: 14px 16px;
  color: var(--text);
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(15,118,110,0.12);
  color: var(--saffron);
  letter-spacing: 0.05em;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }

/* Student portal info cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.info-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.info-card .label {
  font-size: 0.75rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.info-card .value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

/* ─── Footer ─── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 48px 24px;
  font-size: 0.875rem;
  line-height: 2;
}

footer strong { color: white; font-family: 'Syne', sans-serif; }

footer a {
  color: var(--saffron-lt);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

.footer-divider {
  width: 40px;
  height: 2px;
  background: var(--saffron);
  margin: 16px auto;
}

/* ─── Utility ─── */
.hidden { display: none !important; }

.text-center { text-align: center; }

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--navy);
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  border-left: 4px solid var(--saffron);
  animation: slideIn 0.3s ease;
  transform-origin: bottom right;
}

.toast.success { border-color: var(--success); }
.toast.error   { border-color: #DC2626; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  nav { 
    padding: 10px 16px; 
    height: auto; 
    flex-wrap: wrap; 
    gap: 12px;
    justify-content: center;
  }
  nav h1 { font-size: 0.95rem; max-width: 100%; text-align: center; }
  nav ul { 
    width: 100%; 
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  nav ul li a { padding: 6px 12px; font-size: 0.85rem; }
  
  .dropdown-content {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    margin-top: 15px;
  }
  /* Animation adjustment for mobile dropdown */
  @keyframes dropSlideMobile {
    from { opacity: 0; transform: translate(-50%, -8px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
  }
  .dropdown:hover .dropdown-content {
    animation: dropSlideMobile 0.25s ease-out forwards;
  }

  .hero { padding: 60px 20px; }
  .hero h2 { font-size: 1.8rem; }
  
  .notice-board-section { padding: 10px 16px 30px; }
  .notice-board {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { grid-template-columns: 1fr; }

  .form-section .container { grid-template-columns: 1fr; gap: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }

  .courses-grid { padding: 40px 16px; grid-template-columns: 1fr; }
  
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--featured { grid-column: span 1; grid-row: span 1; }
  .gallery-item--featured img { height: auto; min-height: 240px; }

  .login-card { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .login-form-area { padding: 36px 24px; }

  .panel-header { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
  .panel-card { padding: 20px 16px; overflow-x: hidden; }
  
  /* Make all data tables horizontally scrollable on mobile */
  .data-table { 
    display: block; 
    width: 100%; 
    overflow-x: auto; 
    white-space: nowrap; 
    -webkit-overflow-scrolling: touch;
  }
  .data-table th, .data-table td { padding: 10px 12px; }
}
/* Add to your existing style.css */

/* Dark theme */
body.dark {
  --navy: #0B1220;
  --navy-mid: #172033;
  --cream: #172033;
  --warm-white: #0B1220;
  --text: #e2e8f0;
  --border: #2F3F55;
  --muted: #9FB0C2;
}
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 6px 12px;
  cursor: pointer;
}
.apk-btn {
  background: #10b981;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
  70% { box-shadow: 0 0 0 12px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 24px;
}
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--cream);
}
.auth-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
}
.tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.tab-btn {
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
}
.tab-btn.active {
  border-bottom: 2px solid var(--saffron);
  color: var(--saffron);
}
