/* NYDK - Sade CSS, build yok */
:root {
  --primary: #FFFFFF;          /* Sayfa zemini */
  --secondary: #0F1E3A;        /* Lacivert metin / başlık */
  --accent: #8B1E2D;           /* Bordo CTA */
  --accent-hover: #741824;
  --section-bg: #F5F7FA;       /* Açık gri section arkaplanı */
  --border-subtle: #E6EAF0;    /* İnce border rengi */
  --shadow-soft: 0 4px 12px rgba(0,0,0,0.04);
}

/* Ortak SVG ikonlar (emoji yerine) */
.nydk-icon { display: block; width: 1.25em; height: 1.25em; flex-shrink: 0; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--primary);
  color: var(--secondary);
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6,
.logo,
.nav a,
.btn {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.main { min-height: calc(100vh - 8rem); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-subtle);
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(15,31,58,0.03);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.logo { font-size: 1.25rem; font-weight: 700; color: var(--secondary); text-decoration: none; }
.logo-img { height: 120px; display: block; object-fit: contain; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
  transition: background .2s;
}
.nav-toggle:hover { background: #f5f7fa; }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--secondary);
  margin: 0 auto;
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { color: var(--secondary); text-decoration: none; font-size: 1rem; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--accent); }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-caret {
  font-size: 0.65rem;
  margin-left: 0.2rem;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  min-width: 220px;
  background: #FFFFFF;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 0.5rem 0;
  display: none;
  z-index: 60;
  /* Fareyi menüye götürürken boşlukta kapanmasın diye görünmez köprü */
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 10px;
}
.nav-item-dropdown:hover .nav-dropdown {
  display: block;
}
.nav-dropdown a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 400;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  background: #F5F7FA;
  color: var(--secondary);
}
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-user { display: inline-flex; align-items: center; gap: 0.5rem; margin-right: 0.25rem; }
.header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #F3F4F6;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--secondary);
}
.user-name { font-size: 0.875rem; color: var(--secondary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 1.4rem; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  border-radius: 0.75rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease-out, color .15s ease-out, box-shadow .15s ease-out, border-color .15s ease-out, transform .15s ease-out;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn-outline {
  background: #FFFFFF;
  color: var(--secondary);
  border: 1px solid var(--secondary);
}
.btn-outline:hover {
  background: var(--secondary);
  color: #FFFFFF;
}

/* Panel header (admin & öğrenci) */
.panel-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border-subtle);
  background: #FFFFFF;
}
.panel-header-student {
  background: #0B1F3B;
  color: #FFFFFF;
  border-bottom-color: rgba(15,31,59,0.2);
}
.panel-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
}
.panel-header-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.panel-header-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.panel-header-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #EEF2FF;
  color: #4338CA;
}
.panel-header-student .panel-header-badge {
  background: rgba(255,255,255,0.12);
  color: #E5E7EB;
}
.panel-header-title {
  font-size: 1.05rem;
  font-weight: 600;
}
.panel-header-student .panel-header-title {
  color: #FFFFFF;
}
.panel-header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.panel-header-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  color: #4B5563;
  background: #F3F4F6;
}
.panel-header-nav a:hover {
  background: #E5E7EB;
}
.panel-header-nav a.active {
  background: #111827;
  color: #FFFFFF;
}
.panel-header-student .panel-header-nav a {
  background: rgba(15,23,42,0.9);
  color: #E5E7EB;
}
.panel-header-student .panel-header-nav a.active {
  background: #FFFFFF;
  color: #111827;
}
.panel-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Hero */
.hero {
  background: linear-gradient(rgba(11,31,59,.75), rgba(11,31,59,.6)), url(/public/assets/hero.webp) center / cover no-repeat;
  color: #fff;
  padding: 14rem 1rem;
  min-height: 44rem;
  text-align: center;
}
.hero h1 { font-size: 2.25rem; margin: 0; }
.hero p { font-size: 1.125rem; opacity: .9; max-width: 36rem; margin: 1.5rem auto 0; }
.hero .btns { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.hero .btn-outline { border-color: rgba(255,255,255,.5); background:#FFFFFF; color: var(--secondary); }
.hero .btn-outline:hover { background: #f3f4f6; color: var(--secondary); }

/* Sections */
.section { padding: 4rem 1rem; }
.section h2 { text-align: center; font-size: 1.875rem; margin: 0 0 1rem; }
.section .lead { text-align: center; color: #555; max-width: 48rem; margin: 0 auto 2rem; }
.cards { display: grid; gap: 1.5rem; max-width: 1280px; margin: 0 auto; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .18s ease-out, transform .18s ease-out, border-color .18s ease-out;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(15,31,58,0.08);
  border-color: rgba(15,31,58,0.16);
}
.card.border-accent {
  border-left: 4px solid var(--accent);
}
.card h3 { margin: 0 0 .5rem; font-size: 1.1rem; color: var(--secondary); }
.card p { margin: 0; color: #4B5563; font-size: 0.94rem; }

/* Hizmetler kartları */
.services-grid {
  margin-top: 2rem;
}
.service-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--section-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--secondary);
}
.service-card-title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--secondary);
}

/* CTA box */
.cta-box {
  background: linear-gradient(135deg, #800020 0%, #9a0026 50%, #a3182e 100%);
  color: #fff; border-radius: 1.5rem; padding: 3rem 2rem; text-align: center;
  max-width: 1280px; margin: 0 auto 2rem; box-shadow: 0 12px 40px -4px rgba(11,31,59,.12);
}
.cta-box h2 { margin: 0; font-size: 1.5rem; }
.cta-box p { margin: .75rem 0 0; opacity: .9; }
.cta-box .btn { margin-top: 1.5rem; background: #fff; color: var(--accent); }
.cta-box .btn:hover { background: #f5f5f5; }

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #0B1F3B 0%, #152a47 50%, #1e3a5f 100%);
  color: #fff; padding: 3rem 1rem 1rem; margin-top: 2rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: 1280px; margin: 0 auto; }
.site-footer h3, .site-footer h4 { margin: 0 0 .5rem; }
.site-footer p, .site-footer ul { margin: 0; font-size: 0.875rem; color: rgba(255,255,255,.8); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.copyright { text-align: center; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.2); font-size: 0.875rem; color: rgba(255,255,255,.6); }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: .25rem; font-weight: 500; font-size: 0.875rem; }
.input { width: 100%; padding: .625rem 1rem; border: 1px solid #ddd; border-radius: .5rem; font-size: 1rem; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(128,0,32,.2); }
.error { color: #c00; font-size: 0.875rem; margin-top: .25rem; }
.form-2col-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.form-2col-main {
  flex: 2 1 260px;
}
.form-2col-side {
  flex: 1 1 220px;
}
.file-upload {
  border: 1px dashed var(--border-subtle);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.file-upload-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.file-upload-label {
  font-size: 0.875rem;
  color: var(--secondary);
  font-weight: 500;
}
.file-upload-hint {
  font-size: 0.8rem;
  color: #6B7280;
}
.file-upload-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.file-upload-button {
  flex-shrink: 0;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
}
.auth-wrapper {
  min-height: calc(100vh - 8rem);
  padding: 2.5rem 1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(128,0,32,0.06), transparent 55%),
    radial-gradient(circle at bottom right, rgba(11,31,59,0.06), transparent 55%);
}
.page-form {
  max-width: 28rem;
  width: 100%;
}
.auth-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem 2.25rem 2.25rem;
  box-shadow: 0 16px 40px -8px rgba(11,31,59,.18);
  border: 1px solid rgba(11,31,59,.06);
}
.page-form h1 {
  text-align: center;
  margin: 0 0 1.75rem;
  font-size: 1.75rem;
}
.page-form-subtitle {
  font-size: 0.9rem;
  color: #555;
  margin: -0.5rem 0 1.25rem;
  text-align: center;
}
.btn-block {
  width: 100%;
}
.page-form-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}
.page-form-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.page-form-footer a:hover {
  text-decoration: underline;
}

/* Content page */
.content-page { max-width: 48rem; margin: 0 auto; padding: 2rem 1rem; }
.content-page.contact-page { max-width: 960px; }
.content-page h1 { font-size: 2rem; margin: 0 0 1rem; }
.content-page p { color: #444; margin: 0 0 1rem; }
.content-page ul { margin: 0 0 1rem; padding-left: 1.5rem; }

/* İletişim sayfası */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.contact-form-card { padding: 1.75rem; }
.contact-form-card .btn { margin-top: 0.25rem; }
.contact-info-card { padding: 1.25rem; }
.contact-map-wrap { margin-top: 1.5rem; }
.contact-map {
  width: 100%;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #F5F7FA;
}
.contact-map iframe { display: block; }
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-map { height: 220px; }
}

/* Content feature layout (mulakat sayfası vb.) */
.feature-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}
.feature-main {
  flex: 2 1 260px;
}
.feature-media {
  flex: 1 1 220px;
}
.feature-photo-card {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 32px -8px rgba(11,31,59,.28);
  border: 1px solid rgba(11,31,59,.1);
  background: #000;
}
.feature-photo-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.feature-photo-card figcaption {
  padding: .75rem 1rem;
  font-size: 0.85rem;
  color: #f9fafb;
  background: linear-gradient(135deg, rgba(11,31,59,.9), rgba(128,0,32,.9));
}

/* Pills */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 1.5rem 0; }
.pill {
  display: inline-block; padding: .5rem 1.25rem; border-radius: 9999px;
  background: linear-gradient(135deg, #fff, #f8fafc); color: var(--secondary);
  text-decoration: none; font-weight: 500; font-size: 0.875rem;
  box-shadow: 0 4px 20px -2px rgba(11,31,59,.08);
  transition: background .2s, color .2s, transform .2s;
}
.pill:hover { background: var(--accent); color: #fff; transform: scale(1.03); }

/* Panel layout */
.panel { max-width: 1280px; margin: 0 auto; padding: 1.5rem; }
.panel h1 { margin: 0 0 1rem; }
.table-wrapper { width: 100%; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .75rem; text-align: left; border-bottom: 1px solid #eee; }
.table th { font-weight: 600; background: #f8fafc; }
.alert { padding: 1rem; border-radius: .5rem; margin-bottom: 1rem; }
.alert-error { background: #fee; color: #c00; }
.alert-success { background: #efe; color: #060; }

/* Öğrenci paneli */
.student-dashboard { padding-top: 2rem; padding-bottom: 3rem; }
.student-hero {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: flex-start; justify-content: space-between;
  padding: 2rem 1.75rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #0B1F3B 0%, #152a47 50%, #1e3a5f 100%);
  color: #fff;
  box-shadow: 0 12px 32px -6px rgba(11,31,59,.5);
}
.student-hero-main h1 {
  margin: 0 0 .5rem;
  font-size: 1.75rem;
}
.student-hero-main p {
  margin: 0;
  font-size: 0.98rem;
  opacity: .9;
}
.student-hero-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 260px;
}
.student-hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: 0.8rem;
}
.student-hero-package {
  min-width: 220px;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 0.9rem;
}
.student-hero-package strong { display:block; margin-bottom:.25rem; }

.student-progress {
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  background: rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.15);
  font-size: 0.85rem;
}
.student-progress h3 {
  margin: 0 0 .4rem;
  font-size: 0.95rem;
}
.student-progress ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.student-progress li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.15rem;
  color: rgba(255,255,255,.9);
}
.student-progress-label {
  opacity: .85;
}
.student-progress-value {
  font-weight: 600;
}

.student-tiles {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.student-tile h3 { margin-bottom: .25rem; }
.student-tile p { font-size: 0.9rem; margin-bottom: .75rem; }

/* Student video layout (course-style) */
.video-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}
.video-main {
  flex: 2 1 360px;
  min-width: 0;
}
.video-sidebar {
  flex: 1 1 260px;
  max-height: 75vh;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.video-player-shell {
  background: #000;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px -12px rgba(11,31,59,0.7);
  width: 100%;
  max-width: 1920px;
  aspect-ratio: 16 / 9;
}
.video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  vertical-align: middle;
}
.video-title {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
}
.video-meta-row {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #6B7280;
}
.video-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.video-placeholder {
  padding: 2.5rem 2rem;
  border-radius: 1.25rem;
  border: 1px dashed var(--border-subtle);
  background: #F9FAFB;
}
.video-sidebar-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: #F9FAFB;
}
.video-sidebar-header h2 {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B7280;
}
.video-list {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
}
.video-list-item {
  border-bottom: 1px solid var(--border-subtle);
}
.video-list-item:last-child {
  border-bottom: none;
}
.video-list-link {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--secondary);
}
.video-list-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.video-list-sub {
  display: block;
  font-size: 0.8rem;
  color: #6B7280;
}
.video-list-item.is-active {
  background: #F3F4FF;
  border-left: 3px solid var(--accent);
}
.video-list-item.is-active .video-list-link {
  padding-left: calc(1rem - 3px);
}

/* Kurs oynatıcı (Udemy benzeri) */
.course-player-page {
  padding-top: 2.5rem;
}
.course-player-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.course-player-header-main {
  flex: 2 1 260px;
  min-width: 0;
}
.course-player-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: #EEF2FF;
  color: #4338CA;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.course-player-title {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
}
.course-player-description {
  margin: 0;
  max-width: 36rem;
  font-size: 0.95rem;
  color: #4B5563;
}
.course-player-progress-card {
  flex: 1 1 220px;
  min-width: 220px;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  box-shadow: var(--shadow-soft);
}
.course-player-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.course-player-progress-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6B7280;
}
.course-player-progress-value {
  font-size: 1.1rem;
  font-weight: 600;
}
.course-progress-bar {
  position: relative;
  width: 100%;
  height: 0.45rem;
  border-radius: 999px;
  background: #E5E7EB;
  overflow: hidden;
}
.course-progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4338CA, #8B1E2D);
  transition: width .25s ease-out;
}
.course-player-progress-meta {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #6B7280;
}

.course-player-layout {
  align-items: flex-start;
}
.course-video-shell {
  margin-bottom: 0.75rem;
}
.course-video-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}
.course-video-controls-left,
.course-video-controls-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.btn-xs {
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
}
.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}
.course-playback-select {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #4B5563;
}
.course-playback-select select {
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}
.course-autoplay-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #4B5563;
}
.course-autoplay-toggle input {
  width: 14px;
  height: 14px;
}
.course-lecture-description {
  margin-top: 0.75rem;
  padding: 0.75rem 0.25rem;
  font-size: 0.95rem;
  color: #4B5563;
}
.course-next-lesson {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #D1FAE5;
  background: #ECFDF5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.course-next-lesson-text {
  font-size: 0.9rem;
  color: #065F46;
  display: flex;
  flex-direction: column;
}
.course-next-lesson-text strong {
  font-size: 0.95rem;
}

.course-sidebar {
  position: sticky;
  top: 6rem;
}
.course-sidebar-scroll {
  overflow-y: auto;
}
.course-section {
  border-bottom: 1px solid var(--border-subtle);
}
.course-section:last-child {
  border-bottom: none;
}
.course-section-header {
  padding: 0.7rem 1rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #F9FAFB;
}
.course-section-title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.course-section-index {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9CA3AF;
}
.course-section-name {
  font-size: 0.9rem;
  font-weight: 600;
}
.course-section-meta {
  font-size: 0.8rem;
  color: #6B7280;
  white-space: nowrap;
}
.course-lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.course-lesson-item {
  border-top: 1px solid var(--border-subtle);
}
.course-lesson-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: var(--secondary);
}
.course-lesson-main {
  flex: 1 1 auto;
  min-width: 0;
}
.course-lesson-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
}
.course-lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #6B7280;
}
.course-lesson-duration {
  color: #4B5563;
}
.course-lesson-status-label {
  color: #059669;
}
.course-lesson-progress {
  position: relative;
  margin-top: 0.25rem;
  width: 100%;
  height: 0.22rem;
  border-radius: 999px;
  background: #E5E7EB;
  overflow: hidden;
}
.course-lesson-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4F46E5, #10B981);
}
.course-lesson-status-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}
.course-lesson-check {
  font-size: 0.9rem;
  color: #059669;
}
.course-lesson-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4F46E5;
}
.course-lesson-item.is-active {
  background: #EEF2FF;
  border-left: 3px solid #4F46E5;
}
.course-lesson-item.is-completed .course-lesson-title {
  text-decoration: none;
}

@media (max-width: 960px) {
  .course-player-header {
    flex-direction: column;
  }
  .course-sidebar {
    position: static;
    max-height: none;
  }
}

@media (max-width: 960px) {
  .video-layout {
    flex-direction: column;
  }
  .video-sidebar {
    max-height: none;
    order: -1;
  }
}

/* Admin dashboard (kurumsal, beyaz ağırlıklı) */
.admin-dashboard {
  padding-top: 2rem;
  padding-bottom: 3rem;
}
.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.75rem;
  margin-bottom: 2rem;
}
.admin-header-main h1 {
  margin: 0 0 .4rem;
  font-size: 1.75rem;
  color: var(--secondary);
}
.admin-header-subtitle {
  margin: 0;
  max-width: 32rem;
  font-size: 0.95rem;
  color: #6B7280;
}
.admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  min-width: 260px;
}
.admin-stat-card {
  flex: 1 1 160px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}
.admin-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--section-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--secondary);
}
.admin-stat-content {
  display: flex;
  flex-direction: column;
}
.admin-stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.1;
}
.admin-stat-label {
  font-size: 0.8rem;
  color: #6B7280;
}
.admin-modules {
  margin-top: 1rem;
}
.admin-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.admin-module-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform .15s ease-out, box-shadow .15s ease-out;
}
.admin-module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.admin-module-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--section-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.admin-module-title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--secondary);
}
.admin-module-text {
  margin: 0;
  font-size: 0.9rem;
  color: #6B7280;
}
.admin-module-meta {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.8rem;
  color: #9CA3AF;
}
.admin-module-actions {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}


@media (max-width: 768px) {
  .site-header .container {
    flex-wrap: wrap;
    height: auto;
    min-height: 5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .logo-img { height: 80px; }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-actions { margin-left: 0.5rem; }
  .nav {
    display: none;
    order: 10;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
  }
  .site-header.nav-open .nav { display: flex; }
  .nav a {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
  }
  .nav a:hover { background: #f5f7fa; }
  .nav-item-dropdown .nav-dropdown {
    position: static;
    display: none;
    margin: 0.25rem 0 0 0;
    padding: 0 0 0 1rem;
    border: none;
    box-shadow: none;
    min-width: auto;
  }
  .nav-item-dropdown.is-open .nav-dropdown { display: block; }
  .nav-item-dropdown .nav-dropdown::before { display: none; }
  .nav-item-dropdown .nav-dropdown a { padding: 0.5rem 0; font-size: 0.9rem; }
  .nav-item-dropdown:hover .nav-dropdown { display: none; }
  .user-name { display: none; }
  .feature-layout { flex-direction: column; }
  .feature-photo-card img { height: 200px; }
  .hero {
    padding: 8rem 1rem 6rem;
    min-height: 32rem;
  }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .form-2col-layout {
    flex-direction: column;
  }
  .panel { padding: 1rem; }
  .panel-header-inner {
    padding: 0.7rem 1rem;
    align-items: flex-start;
  }
  .panel-header-main {
    flex-direction: column;
    align-items: flex-start;
  }
  .panel-header-nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .panel-header-nav a {
    white-space: nowrap;
  }
  .panel .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -0.5rem 1rem; }
  .panel .table-wrapper .table { min-width: 520px; }
  .admin-header {
    flex-direction: column;
  }
  .admin-stats {
    width: 100%;
  }
  .admin-module-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
