/* ══════════════════════════════════════════════
   TÜBA Açık Ders — site.css
   Institutional Light Theme
══════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────── */
:root {
  --bg-primary: #F7F6F3;
  --bg-secondary: #EEECEA;
  --bg-card: #FFFFFF;

  --navy: #0D2B5E;
  --navy-light: #1E3A6E;
  --navy-muted: #3D5A8A;
  --navy-pale: #EEF2FB;

  --gold: #B8922A;
  --gold-light: #D4A840;
  --gold-pale: #FBF3E0;

  --text-primary: #1A1F36;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;

  --border: #E2E4EB;
  --border-focus: #3D5A8A;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-card: 0 1px 4px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-gold: 0 4px 20px rgba(184, 146, 42, 0.2);

  --radius-card: 12px;
  --transition-base: 200ms ease;

  --font-serif: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Code', monospace;
}

/* ── Reset & Base ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Navbar ─────────────────────────────────── */
.navbar-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
}

/* ── Hero Section ───────────────────────────── */
.hero-section {
  background: linear-gradient(160deg, var(--navy) 0%, #1A3A6E 55%, #0A2050 100%);
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 500px;
  background: radial-gradient(ellipse at center,
    rgba(184, 146, 42, 0.15) 0%,
    rgba(30, 58, 110, 0.1) 40%,
    transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  pointer-events: none;
}

/* Eyebrow badge */
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.05em;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* Hero title */
.hero-title {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  padding: 0.12em 0.05em 0.08em;
  color: #FFFFFF;
  animation: clipReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  clip-path: inset(0 0 100% 0);
}

@keyframes clipReveal {
  from { clip-path: inset(0 0 100% 0); opacity: 0; }
  to   { clip-path: inset(-0.2em -0.05em -0.08em -0.05em); opacity: 1; }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  animation: fadeUp 0.7s ease 0.3s both;
}

/* Stats row */
.stats-row { animation: fadeUp 0.7s ease 0.5s both; }

.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* ── Category Sidebar ───────────────────────── */
.category-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.sidebar-header h2 { color: var(--text-secondary); }

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: background var(--transition-base), color var(--transition-base);
  border-left: 2px solid transparent;
  margin-bottom: 1px;
}

.sidebar-item:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.sidebar-item.active {
  background: var(--navy-pale);
  color: var(--navy);
  border-left-color: var(--navy);
  font-weight: 500;
}

.sidebar-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.count-badge {
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 1px 7px;
  flex-shrink: 0;
}

.sidebar-item.active .count-badge {
  background: var(--navy-pale);
  color: var(--navy-muted);
}

.sidebar-group + .sidebar-group,
.sidebar-group + .sidebar-item,
.sidebar-item + .sidebar-group {
  margin-top: 2px;
}

.sidebar-group-toggle {
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
}

.sidebar-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition-base);
}

.sidebar-chevron svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sidebar-chevron.is-open {
  transform: rotate(90deg);
}

.sidebar-sublist {
  margin: 2px 0 6px 0;
  padding-left: 10px;
  border-left: 1px solid var(--border);
  margin-left: 18px;
}

.sidebar-subitem {
  padding-left: 6px;
}

.sidebar-subitem .sidebar-sub-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.sidebar-subitem.active .sidebar-sub-dot,
.sidebar-subitem:hover .sidebar-sub-dot {
  background: var(--navy-muted);
}

.sidebar-subitem.active {
  border-left-color: transparent;
}

/* ── Search Bar ─────────────────────────────── */
.search-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  padding: 11px 44px 11px 16px;
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.search-input::placeholder { color: var(--text-muted); }

.search-input:focus {
  border-color: var(--navy-muted);
  box-shadow: 0 0 0 3px rgba(61, 90, 138, 0.1);
}

.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-base);
}

.search-btn:hover { color: var(--navy); }

/* ── Filter Pills ───────────────────────────── */
.filter-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.filter-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.filter-pill:hover {
  border-color: var(--navy-muted);
  color: var(--navy);
  background: var(--navy-pale);
}

.filter-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}

/* ── Course Grid ────────────────────────────── */
.course-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .course-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Course Card ────────────────────────────── */
.course-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  animation: fadeUp 0.4s ease forwards;
  opacity: 0;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.course-card:nth-child(1)  { animation-delay: 0.04s }
.course-card:nth-child(2)  { animation-delay: 0.08s }
.course-card:nth-child(3)  { animation-delay: 0.12s }
.course-card:nth-child(4)  { animation-delay: 0.16s }
.course-card:nth-child(5)  { animation-delay: 0.20s }
.course-card:nth-child(6)  { animation-delay: 0.24s }
.course-card:nth-child(7)  { animation-delay: 0.28s }
.course-card:nth-child(8)  { animation-delay: 0.32s }
.course-card:nth-child(9)  { animation-delay: 0.36s }
.course-card:nth-child(10) { animation-delay: 0.40s }
.course-card:nth-child(11) { animation-delay: 0.44s }
.course-card:nth-child(12) { animation-delay: 0.48s }

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(184, 146, 42, 0.35);
}

/* Gold gradient top border */
.card-top-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.course-card:hover .card-top-border { opacity: 1; }

/* Material availability badges */
.material-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.material-badge.available { color: var(--gold); }
.material-badge.unavailable { color: var(--text-muted); opacity: 0.5; }

/* ── Institution Badges ─────────────────────── */
.mit-badge      { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; border-radius: 999px; padding: 2px 10px; }
.yale-badge     { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; border-radius: 999px; padding: 2px 10px; }
.harvard-badge  { background: #FEF2F2; color: #9B1C1C; border: 1px solid #FECACA; border-radius: 999px; padding: 2px 10px; }
.nd-badge       { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; border-radius: 999px; padding: 2px 10px; }
.stanford-badge { background: #FFF1F2; color: #9F1239; border: 1px solid #FECDD3; border-radius: 999px; padding: 2px 10px; }
.other-badge    { background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; }

/* ── Course Detail Header ───────────────────── */
.course-header {
  background: linear-gradient(160deg, var(--navy) 0%, #1A3A6E 60%, var(--navy) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.course-header-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(184, 146, 42, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.course-header h1 { color: #FFFFFF; }
.course-header .text-text-primary { color: #FFFFFF; }
.course-header .text-text-secondary { color: rgba(255,255,255,0.65); }
.course-header .course-description,
.course-header .course-description.prose-lecture,
.course-header .course-description.prose-lecture p,
.course-header .course-description.prose-lecture li,
.course-header .course-description.prose-lecture span,
.course-header .course-description.prose-lecture div,
.course-header .course-description.prose-lecture h1,
.course-header .course-description.prose-lecture h2,
.course-header .course-description.prose-lecture h3,
.course-header .course-description.prose-lecture h4 {
  color: rgba(255, 255, 255, 0.82) !important;
}
.course-header .course-description.prose-lecture strong,
.course-header .course-description.prose-lecture b {
  color: #FFFFFF !important;
}
.course-header .course-description.prose-lecture a {
  color: var(--gold-light) !important;
  text-decoration: underline;
}
.course-header .course-description-divider {
  border-color: rgba(255, 255, 255, 0.15);
}
.course-header .course-description {
  width: 100%;
  max-width: none;
}
.course-header .meta-chip {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
}

/* ── Breadcrumb ─────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; flex-wrap: wrap; }
.bc-link { color: var(--text-secondary); text-decoration: none; transition: color var(--transition-base); }
.bc-link:hover { color: var(--navy); }
.bc-sep { color: var(--text-muted); flex-shrink: 0; }
.bc-current { color: var(--text-primary); font-weight: 500; }

/* Meta chips */
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ── Tabs ───────────────────────────────────── */
.tab-nav { border-bottom: 2px solid var(--border); }

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--transition-base), border-color var(--transition-base);
  white-space: nowrap;
  margin-bottom: -2px;
}

.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--navy); }

.tab-enter { transition: opacity 0.2s ease, transform 0.2s ease; }
.tab-enter-start { opacity: 0; transform: translateY(6px); }
.tab-enter-end   { opacity: 1; transform: translateY(0); }

/* ── Schedule Table ─────────────────────────── */
.schedule-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.schedule-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }

.schedule-table thead tr {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.schedule-table thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.schedule-row { border-bottom: 1px solid var(--border); transition: background var(--transition-base); }
.schedule-row:last-child { border-bottom: none; }
.schedule-row:nth-child(even) { background: var(--bg-primary); }
.schedule-row:hover { background: var(--navy-pale); }

.session-num { padding: 12px 16px; color: var(--navy); font-size: 0.8rem; font-weight: 700; text-align: center; font-family: var(--font-mono); }
.topic-cell { padding: 12px 16px; color: var(--text-primary); }
.notes-cell { padding: 12px 16px; color: var(--text-secondary); }

/* ── File List ──────────────────────────────── */
.file-list { max-width: 700px; }

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.file-item:hover {
  border-color: rgba(184, 146, 42, 0.4);
  box-shadow: 0 2px 8px rgba(184, 146, 42, 0.1);
}

.file-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-pale);
  border: 1px solid rgba(184, 146, 42, 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--navy-pale);
  border: 1px solid rgba(61, 90, 138, 0.2);
  border-radius: 6px;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition-base), border-color var(--transition-base);
  white-space: nowrap;
  flex-shrink: 0;
}

.download-btn:hover {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}

/* ── Empty State ────────────────────────────── */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-icon  { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-title { font-family: var(--font-serif); font-size: 1.3rem; color: var(--text-primary); margin-bottom: 8px; }
.empty-desc  { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ── Buttons ────────────────────────────────── */
.btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: var(--shadow-sm);
}

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

.btn-navy-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 500;
  font-size: 0.8rem;
  border-radius: 7px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-base);
}

.btn-navy-sm:hover { background: var(--navy-light); }

.btn-outline-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(13, 43, 94, 0.3);
  cursor: pointer;
  transition: all var(--transition-base);
}

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

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gold);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

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

/* ── Forms ──────────────────────────────────── */
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.form-input:focus {
  border-color: var(--navy-muted);
  box-shadow: 0 0 0 3px rgba(61, 90, 138, 0.1);
}

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

.form-select {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-base);
  box-shadow: var(--shadow-sm);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-select:focus {
  border-color: var(--navy-muted);
  box-shadow: 0 0 0 3px rgba(61, 90, 138, 0.1);
}

.form-error {
  display: block;
  font-size: 0.78rem;
  color: #DC2626;
  margin-top: 4px;
}

/* Checkbox card */
.checkbox-card {
  display: flex;
  cursor: pointer;
}

.checkbox-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-card-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all var(--transition-base);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.checkbox-card input:checked + .checkbox-card-label {
  border-color: var(--navy);
  background: var(--navy-pale);
  color: var(--navy);
}

.checkbox-card:hover .checkbox-card-label {
  border-color: var(--navy-muted);
  background: var(--navy-pale);
}

/* Alerts */
.alert-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
  color: #15803D;
  font-size: 0.875rem;
}

.alert-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  color: #DC2626;
  font-size: 0.875rem;
}

/* ── Admin Panel ────────────────────────────── */
.admin-sidebar {
  width: 240px;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  transition: transform 0.2s ease;
}

@media (min-width: 1024px) {
  .admin-sidebar {
    position: relative;
    transform: translateX(0) !important;
  }
}

.admin-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition-base), color var(--transition-base);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
}

.admin-nav-item:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.9);
}

.admin-nav-item.active {
  background: rgba(255,255,255,0.12);
  color: #FFFFFF;
}

.admin-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.admin-logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all var(--transition-base);
}

.admin-logout-btn:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.2);
}

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  height: 56px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.admin-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-stat-value {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.admin-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table thead tr {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.admin-table thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.admin-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-base);
}

.admin-table tbody tr:last-child { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg-primary); }
.admin-table tbody td { padding: 12px 16px; vertical-align: middle; }

.admin-action-link {
  display: inline-flex;
  align-items: center;
  padding: 5px;
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-base), background var(--transition-base);
}

.admin-action-link:hover {
  color: var(--navy);
  background: var(--navy-pale);
}

.admin-quick-action {
  display: block;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.admin-quick-action:hover {
  border-color: var(--navy-muted);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Role badge */
.role-badge-admin {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.role-badge-admin.admin {
  background: var(--navy-pale);
  color: var(--navy);
  border: 1px solid rgba(13, 43, 94, 0.2);
}

.role-badge-admin.owner {
  background: var(--gold-pale);
  color: var(--gold);
  border: 1px solid rgba(184, 146, 42, 0.25);
}

/* Status badges */
.status-badge-active {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid #BBF7D0;
}

.status-badge-inactive {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #F9FAFB;
  color: #6B7280;
  border: 1px solid #E5E7EB;
}

/* Lang pills */
.lang-pill-tr {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
  font-family: var(--font-mono);
}

.lang-pill-en {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  font-family: var(--font-mono);
}

/* ── Footer ─────────────────────────────────── */
.footer-section {
  background: linear-gradient(180deg, #0f2447 0%, var(--navy) 40%, #0a1a38 100%);
  color: rgba(255,255,255,0.7);
  position: relative;
  overflow: hidden;
}

.footer-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(184, 146, 42, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 90% 100%, rgba(255, 255, 255, 0.03) 0%, transparent 55%);
  pointer-events: none;
}

.footer-section > div {
  position: relative;
  z-index: 1;
}

.footer-main {
  align-items: start;
}

.footer-intro {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 28rem;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
}

.footer-columns {
  align-items: start;
}

@media (min-width: 1024px) {
  .footer-columns {
    padding-left: 2.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.footer-block {
  min-width: 0;
}

.footer-heading {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-heading::after {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  margin-top: 0.5rem;
  background: var(--gold-light);
  border-radius: 1px;
  opacity: 0.85;
}

.footer-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0;
}

.footer-bottom {
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-section .text-text-primary  { color: rgba(255,255,255,0.9); }
.footer-section .text-text-secondary { color: rgba(255,255,255,0.5); }
.footer-section .border-border-dark  { border-color: rgba(255,255,255,0.1); }
.footer-section a:hover { color: var(--gold-light) !important; }

/* Inst badge in footer */
.inst-badge {
  color: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.15);
}
.inst-badge:hover {
  color: var(--gold-light) !important;
  border-color: rgba(184, 146, 42, 0.5) !important;
}

/* ── Autocomplete ───────────────────────────── */
#search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.15s ease;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--transition-base);
  text-decoration: none;
}

.suggestion-item:hover { background: var(--navy-pale); }
.suggestion-code { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-secondary); background: var(--bg-secondary); padding: 2px 6px; border-radius: 4px; flex-shrink: 0; }
.suggestion-title { font-size: 0.85rem; color: var(--text-primary); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-inst { font-size: 0.72rem; color: var(--text-muted); flex-shrink: 0; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Utilities ──────────────────────────────── */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

::selection { background: var(--navy-pale); color: var(--navy); }

.prose-lecture p { margin-bottom: 0.5rem; }
.prose-lecture p:last-child { margin-bottom: 0; }
.prose-lecture p:empty,
.prose-lecture p:has(> br:only-child) {
  min-height: 1.25em;
}
.prose-lecture h2 { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 600; color: var(--text-primary); margin: 1.5rem 0 0.75rem; }
.prose-lecture h2:first-child { margin-top: 0; }
.prose-lecture h3 { font-size: 1.125rem; font-weight: 600; color: var(--text-primary); margin: 1.25rem 0 0.5rem; }
.prose-lecture a { color: var(--navy); text-decoration: underline; }
.prose-lecture a:hover { color: var(--gold); }
.prose-lecture strong { font-weight: 600; }
.prose-lecture em { font-style: italic; }
.prose-lecture u { text-decoration: underline; }
.prose-lecture ul, .prose-lecture ol { margin: 0.5rem 0 0.5rem 1.25rem; }
.prose-lecture img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }

[x-cloak] { display: none !important; }

/* ── Lecture blocks (course detail) ─────────── */
.lecture-block {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.lecture-block.is-collapsible .lecture-content {
  margin-top: 1rem;
}
.lecture-block.is-collapsed .lecture-content {
  display: none;
}
.lecture-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.lecture-toggle:hover .lecture-topic {
  color: var(--gold);
}
.lecture-toggle-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}
.lecture-block:not(.is-collapsed) .lecture-toggle-icon {
  transform: rotate(180deg);
}
.video-wrapper.interactive-swf {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}
.video-wrapper.interactive-swf .swf-lazy-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 12rem;
}
.video-wrapper.interactive-swf .swf-player-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.video-wrapper.interactive-swf .swf-player-host[hidden] {
  display: none !important;
}
.swf-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid var(--gold);
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.swf-play-btn:hover {
  background: rgba(201, 162, 39, 0.22);
  transform: translateY(-1px);
}
.swf-error {
  padding: 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.lecture-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.lecture-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.lecture-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
  background: rgba(184, 146, 42, 0.1);
  border: 1px solid rgba(184, 146, 42, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  flex-shrink: 0;
}
.lecture-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 42rem; /* ~672px — rahat izleme, tam ekran isteğe bağlı */
  aspect-ratio: 16 / 9;
  background: #0a1628;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(10, 22, 40, 0.1);
}
@media (min-width: 1024px) {
  .video-wrapper {
    max-width: 40rem; /* ~640px — geniş ekranda daha kompakt */
  }
}
@media (max-width: 480px) {
  .video-wrapper {
    max-width: 100%;
    border-radius: 10px;
  }
}
.video-wrapper iframe,
.video-wrapper .lecture-video,
.video-wrapper .swf-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}
.video-wrapper.interactive-html {
  min-height: 20rem;
}
.video-wrapper.interactive-html .interactive-frame {
  background: #fff;
}
.lecture-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.lecture-resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition-base);
}
.lecture-resource-link:hover {
  color: var(--gold);
  border-color: rgba(184, 146, 42, 0.4);
  background: rgba(184, 146, 42, 0.06);
}

/* ── Footer social links ────────────────────── */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition-base);
}
.footer-social a:hover {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(212, 168, 64, 0.35);
  transform: translateY(-1px);
}
.footer-social .nsosyal-icon {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}
.footer-brand-logo img {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity var(--transition-base);
}
.footer-brand-logo:hover img {
  opacity: 1;
}

/* legacy */
.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition-base);
}
.footer-social-icon:hover {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(212, 168, 64, 0.35);
  transform: translateY(-1px);
}

/* ── Partner logo carousel ─────────────────── */
.partner-carousel-section {
  margin-top: 3rem;
  padding: 1.75rem 0 1.25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.partner-carousel-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 80rem;
  margin: 0 auto 1.25rem;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .partner-carousel-header { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .partner-carousel-header { padding: 0 2rem; }
}

.partner-carousel-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
  line-height: 1;
}

.partner-carousel-heading::before {
  content: "";
  width: 4px;
  height: 1.15em;
  background: var(--navy);
  border-radius: 1px;
  flex-shrink: 0;
}

.partner-carousel-header::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--border);
  min-width: 2rem;
}

.partner-carousel {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
}

.partner-carousel::before,
.partner-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(6rem, 12vw);
  z-index: 2;
  pointer-events: none;
}

.partner-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-card) 20%, transparent);
}

.partner-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-card) 20%, transparent);
}

.partner-carousel-track {
  display: flex;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: partner-scroll 40s linear infinite;
  animation-play-state: paused;
}

.partner-carousel-track.is-ready {
  animation-play-state: running;
}

.partner-carousel-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.partner-carousel-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9rem;
  height: 3rem;
  margin-right: 3rem;
  opacity: 0.85;
  transition: opacity var(--transition-base);
}

.partner-carousel-item:hover,
.partner-carousel-item:focus-visible,
.partner-carousel-item.is-colored {
  opacity: 1;
}

.partner-carousel-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: grayscale(100%);
  transition: filter var(--transition-base);
}

.partner-carousel-item:hover img,
.partner-carousel-item:focus-visible img,
.partner-carousel-item:active img,
.partner-carousel-item.is-colored img {
  filter: grayscale(0%);
}

@keyframes partner-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .partner-carousel-track {
    animation: none;
    animation-play-state: running;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 1.5rem 3rem;
  }

  .partner-carousel-group[aria-hidden="true"] {
    display: none;
  }

  .partner-carousel-item {
    margin-right: 0;
  }
}

/* ── Cookie consent ────────────────────────── */
.cookie-consent {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 100;
  max-width: 42rem;
  margin: 0 auto;
}
.cookie-consent--expanded {
  max-width: 36rem;
}
.cookie-consent-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.cookie-consent-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cookie-consent-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.cookie-consent-text a {
  color: var(--navy);
  text-decoration: underline;
}
.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
.btn-outline-navy-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy);
  background: transparent;
  border: 1px solid rgba(13, 43, 94, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
}
.btn-outline-navy-sm:hover {
  background: var(--navy-pale);
  border-color: rgba(13, 43, 94, 0.4);
}
.cookie-preferences {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cookie-pref-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: 8px;
}
.cookie-pref-info strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.cookie-pref-info p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}
.cookie-preferences-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.25rem;
}
.cookie-toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}
.cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-track {
  width: 2.5rem;
  height: 1.375rem;
  background: var(--border);
  border-radius: 999px;
  transition: background var(--transition-base);
  position: relative;
}
.cookie-toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1rem;
  height: 1rem;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition-base);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.cookie-toggle input:checked + .cookie-toggle-track {
  background: var(--navy);
}
.cookie-toggle input:checked + .cookie-toggle-track::after {
  transform: translateX(1.125rem);
}
.cookie-toggle--locked {
  cursor: not-allowed;
  opacity: 0.7;
}
@media (min-width: 640px) {
  .cookie-consent-main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-consent-text {
    flex: 1;
    padding-right: 1rem;
  }
}

/* ── Home notice (homepage) ───────────────── */
.home-notice-section {
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}
.home-notice-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.home-notice-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #9a6b1a;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.home-notice-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.home-notice-content ol {
  list-style: decimal;
  margin-left: 1.25rem;
}
.home-notice-content li {
  margin-bottom: 0.5rem;
}
.home-notice-content li:last-child {
  margin-bottom: 0;
}
.home-notice-content a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.home-notice-content a:hover {
  color: var(--gold);
}

/* ── Info Cards (homepage) ─────────────────── */
.icard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}
.icard:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(184,146,42,0.25);
}
.icard--accent {
  border-left: 3px solid var(--navy);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--navy-pale) 100%);
}

.icard-icon-wrap {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icard-icon--gold  { background: var(--gold-pale);  color: var(--gold); }
.icard-icon--navy  { background: var(--navy-pale);  color: var(--navy); }
.icard-icon { width: 1.25rem; height: 1.25rem; }

.icard-content { flex: 1; min-width: 0; }

.icard-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.icard-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.icard-text strong { color: var(--text-primary); }

.icard-link {
  color: var(--gold);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-base);
}
.icard-link:hover { color: var(--gold-light); }

/* notice inside icard */
.notice-inline-content ol {
  list-style: decimal;
  padding-left: 1.1rem;
  margin: 0;
}
.notice-inline-content li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.25rem;
}
.notice-inline-content a {
  color: var(--gold);
  text-decoration: none;
}
.notice-inline-content a:hover { color: var(--gold-light); }

/* ── Footer Moodle logo ───────────────────── */
.footer-moodle-logo {
  display: inline-flex;
  align-items: center;
  opacity: 0.65;
  transition: opacity var(--transition-base);
}
.footer-moodle-logo:hover {
  opacity: 1;
}
.footer-moodle-logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 640px) {
  .hero-title { font-size: 2.25rem; }
  .stat-divider { display: none; }
  .stats-row { gap: 20px; }
  .admin-sidebar { width: 200px; }
}
