:root {
  --rose: #b94a50;
  --rose-dark: #8f3338;
  --rose-pale: #fdf0f0;
  --rose-mid: #f0d0d0;
  --green: #3a7d44;
  --green-light: #e8f5ea;
  --red: #c0392b;
  --red-light: #fde8e6;
  --yellow: #b7791f;
  --yellow-light: #fef9e7;
  --blue: #2563eb;
  --blue-light: #dbeafe;
  --bg: #fdfaf8;
  --white: #ffffff;
  --text: #2c1f1f;
  --text-mid: #5c4a4a;
  --text-light: #9c8484;
  --border: #e8d8d0;
  --border-mid: #d4b8b0;
  --radius: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Georgia,'Times New Roman',serif; background: var(--bg); color: var(--text); line-height: 1.65; font-size: 15px; }
a { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header { background: var(--white); border-bottom: 2px solid var(--rose-mid); padding: 0 32px; display: flex; align-items: center; justify-content: space-between; height: 56px; position: sticky; top: 0; z-index: 100; }
.site-logo { font-size: 1.2rem; font-weight: bold; color: var(--rose); }
.site-logo span { color: var(--text); }
.header-nav { display: flex; gap: 22px; font-size: 0.87rem; }
.header-nav a { color: var(--text-mid); }
.header-nav a:hover { color: var(--rose); text-decoration: none; }

.bolum-wrap { display: flex; min-height: calc(100vh - 56px); }
.bolum-sidebar { width: 210px; flex-shrink: 0; background: var(--white); border-right: 1px solid var(--border); padding: 16px 0; position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; }
.sidebar-group-title { font-size: 0.66rem; font-weight: bold; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-light); padding: 10px 14px 3px; }
.sidebar-btn { display: block; width: 100%; text-align: left; padding: 7px 14px; background: none; border: none; font-family: Georgia,serif; font-size: 0.83rem; color: var(--text-mid); cursor: pointer; border-left: 3px solid transparent; transition: all 0.12s; }
.sidebar-btn:hover { background: var(--rose-pale); color: var(--rose); }
.sidebar-btn.active { background: var(--rose-pale); color: var(--rose); border-left-color: var(--rose); font-weight: bold; }

.bolum-content { flex: 1; min-width: 0; }
.section-page { display: none; }
.section-page.active { display: block; }
.page-wrap { max-width: 740px; margin: 0 auto; padding: 32px 24px 80px; }

.breadcrumb { font-size: 0.78rem; color: var(--text-light); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb span { margin: 0 5px; }

.lesson-header { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 2px solid var(--rose-mid); }
.lesson-tag { font-size: 0.68rem; font-weight: bold; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rose); margin-bottom: 5px; }
.lesson-title { font-size: 1.65rem; font-weight: bold; color: var(--text); margin-bottom: 4px; }
.lesson-desc { font-size: 0.88rem; color: var(--text-mid); }

.section { margin-bottom: 30px; }
.section-title { font-size: 0.68rem; font-weight: bold; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-light); margin-bottom: 9px; padding-bottom: 5px; border-bottom: 1px solid var(--border); }

.explain { background: var(--rose-pale); border-left: 3px solid var(--rose); padding: 11px 15px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.89rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 11px; }
.explain strong { color: var(--text); }
.note { background: var(--yellow-light); border-left: 3px solid var(--yellow); padding: 9px 13px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.85rem; color: #713f12; margin-bottom: 11px; line-height: 1.7; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; margin-bottom: 11px; }
.data-table th { background: var(--rose-pale); padding: 6px 11px; text-align: left; font-size: 0.68rem; letter-spacing: 0.5px; color: var(--rose); font-weight: bold; border-bottom: 2px solid var(--border); text-transform: uppercase; }
.data-table td { padding: 7px 11px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--rose-pale); }
.data-table .tr { font-weight: bold; color: var(--text); }

.audio-slot { display: inline-flex; align-items: center; gap: 5px; background: var(--white); border: 1px dashed var(--border-mid); border-radius: var(--radius); padding: 3px 9px; margin-top: 3px; font-size: 0.75rem; color: var(--text-light); }
.audio-slot input[type=file] { display: none; }
.audio-slot-btn { background: var(--white); border: 1px solid var(--border); border-radius: 5px; padding: 2px 7px; font-size: 0.73rem; cursor: pointer; color: var(--text-mid); font-family: Georgia,serif; transition: all 0.12s; white-space: nowrap; }
.audio-slot-btn:hover { border-color: var(--rose); color: var(--rose); }
.audio-slot audio { height: 22px; }

.image-slot { border: 1px dashed var(--border-mid); border-radius: var(--radius); width: 100%; min-height: 145px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; background: var(--rose-pale); overflow: hidden; position: relative; margin-bottom: 9px; }
.image-slot:hover { border-color: var(--rose); }
.image-slot img { width: 100%; height: 100%; object-fit: cover; position: absolute; top:0; left:0; }
.image-slot .slot-hint { font-size: 0.77rem; color: var(--text-light); text-align: center; padding: 9px; z-index: 1; }
.image-slot input[type=file] { display: none; }

.video-slot { border: 1px dashed var(--border-mid); border-radius: var(--radius); width: 100%; min-height: 195px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; background: var(--rose-pale); overflow: hidden; position: relative; margin-bottom: 9px; }
.video-slot:hover { border-color: var(--rose); }
.video-slot video { width:100%;height:100%;object-fit:cover;position:absolute;top:0;left:0; }
.video-slot .slot-hint { font-size: 0.77rem; color: var(--text-light); text-align: center; padding: 13px; z-index: 1; }
.video-slot input[type=file] { display: none; }
.video-questions { background: var(--rose-pale); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px; margin-bottom: 13px; }
.video-questions .vq-title { font-size: 0.68rem; font-weight: bold; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-light); margin-bottom: 9px; }

.dialogue { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px; margin-bottom: 9px; }
.dialogue-label { font-size: 0.74rem; color: var(--text-light); margin-bottom: 11px; font-style: italic; }
.d-line { display: flex; gap: 7px; margin-bottom: 9px; align-items: flex-start; }
.d-line.right { flex-direction: row-reverse; }
.d-avatar { width: 27px; height: 27px; border-radius: 50%; background: var(--rose-pale); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.83rem; flex-shrink: 0; }
.d-bubble { background: var(--rose-pale); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 10px; max-width: 76%; font-size: 0.86rem; }
.d-line.right .d-bubble { background: var(--green-light); border-color: #c3e6c9; }
.d-tr { font-weight: bold; color: var(--text); }

.visual-q { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 11px; }
.visual-q-img { border-bottom: 1px solid var(--border); min-height: 165px; background: var(--rose-pale); display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; overflow: hidden; }
.visual-q-img img { width:100%;height:100%;object-fit:cover;position:absolute;top:0;left:0; }
.visual-q-img .hint { font-size:0.77rem;color:var(--text-light);text-align:center;padding:17px;z-index:1; }
.visual-q-img input[type=file] { display:none; }
.visual-q-body { padding: 11px 13px; }
.visual-q-text { font-size: 0.89rem; font-weight: bold; margin-bottom: 7px; }

.quiz-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 11px; }
.quiz-title { font-size: 0.91rem; font-weight: bold; margin-bottom: 13px; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 7px; }
.q-item { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.q-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.q-text { font-size: 0.88rem; margin-bottom: 8px; color: var(--text); line-height: 1.5; }
.q-text .hl { background: var(--yellow-light); color: #713f12; padding: 1px 5px; border-radius: 3px; font-weight: bold; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.opt { padding: 7px 10px; background: var(--rose-pale); border: 1px solid var(--border); border-radius: var(--radius); font-family: Georgia,serif; font-size: 0.85rem; color: var(--text); cursor: pointer; text-align: left; transition: all 0.12s; }
.opt:hover:not(:disabled) { background: var(--rose-mid); border-color: var(--rose); }
.opt.correct { background: var(--green-light); border-color: var(--green); color: #1a4d22; }
.opt.wrong { background: var(--red-light); border-color: var(--red); color: #6b1a14; }
.q-feedback { margin-top: 6px; font-size: 0.79rem; font-weight: bold; display: none; }
.q-feedback.show { display: block; }
.q-feedback.correct { color: var(--green); }
.q-feedback.wrong { color: var(--red); }
.quiz-score { background: var(--rose-pale); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 13px; font-size: 0.86rem; color: var(--rose); font-weight: bold; display: none; margin-top: 9px; }

.reading-text { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; font-size: 0.9rem; line-height: 1.9; margin-bottom: 11px; }
.reading-text p { margin-bottom: 9px; }
.reading-text p:last-child { margin-bottom: 0; }

.metin-q { background: var(--rose-pale); border-left: 3px solid var(--rose); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 15px; margin-bottom: 11px; font-size: 0.89rem; line-height: 1.8; color: var(--text-mid); }

.img-q { min-height: 125px; border: 1px dashed var(--border-mid); border-radius: var(--radius); background: var(--rose-pale); display: flex; align-items: center; justify-content: center; cursor: pointer; margin-bottom: 7px; overflow: hidden; position: relative; }
.img-q img { width:100%;height:100%;object-fit:cover;position:absolute;top:0;left:0; }
.img-q .hint { font-size:0.75rem;color:var(--text-light);text-align:center;padding:13px; }
.img-q input { display:none; }

.fill-blank { display: inline-block; border-bottom: 2px solid var(--rose); min-width: 125px; text-align: center; font-weight: bold; color: var(--rose); padding: 1px 5px; margin: 0 3px; }

.lesson-nav { display: flex; justify-content: space-between; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); }
.btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 15px; border-radius: var(--radius); font-family: Georgia,serif; font-size: 0.86rem; cursor: pointer; border: 1px solid var(--border); background: var(--white); color: var(--text-mid); transition: all 0.12s; text-decoration: none; }
.btn:hover { border-color: var(--rose); color: var(--rose); text-decoration: none; }
.btn.primary { background: var(--rose); border-color: var(--rose); color: white; font-weight: bold; }
.btn.primary:hover { background: var(--rose-dark); border-color: var(--rose-dark); }

.index-hero { text-align: center; padding: 54px 22px 38px; border-bottom: 2px solid var(--rose-mid); margin-bottom: 34px; }
.index-hero h1 { font-size: 2.1rem; font-weight: bold; color: var(--text); margin-bottom: 7px; }
.index-hero p { font-size: 0.9rem; color: var(--text-mid); max-width: 400px; margin: 0 auto; }

.unit-list { max-width: 620px; margin: 0 auto; padding: 0 22px 80px; }
.unit-group { margin-bottom: 30px; }
.unit-group-title { font-size: 0.67rem; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); margin-bottom: 5px; padding-bottom: 5px; border-bottom: 1px solid var(--border); }
.unit-row { display: flex; align-items: center; gap: 11px; padding: 9px 12px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 3px; text-decoration: none; color: var(--text); transition: all 0.12s; }
.unit-row:hover { border-color: var(--rose); background: var(--rose-pale); text-decoration: none; }
.unit-row.exam { background: var(--yellow-light); border-color: #f0d080; }
.unit-row.reading { background: var(--green-light); border-color: #b8dfc0; }
.unit-num { font-size: 0.73rem; font-weight: bold; color: var(--text-light); min-width: 22px; }
.unit-name { flex: 1; font-size: 0.88rem; }
.unit-type { font-size: 0.72rem; color: var(--text-light); }
.unit-row.locked { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

.idialogue { background: var(--rose-pale); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 13px; }
.idialogue-header { background: var(--rose-mid); padding: 7px 13px; border-bottom: 1px solid var(--border); font-size: 0.79rem; color: var(--text-mid); font-style: italic; }
.idialogue-body { padding: 14px; }
.idialogue-history { margin-bottom: 11px; display: flex; flex-direction: column; gap: 7px; }
.idialogue-prompt { font-size: 0.79rem; color: var(--text-mid); margin-bottom: 6px; font-style: italic; }
.idialogue-choices { display: flex; flex-direction: column; gap: 5px; }
.idialogue-choice { padding: 7px 11px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); font-family: Georgia,serif; font-size: 0.85rem; color: var(--text); cursor: pointer; text-align: left; transition: all 0.12s; }
.idialogue-choice:hover:not(:disabled) { border-color: var(--rose); background: var(--rose-pale); }
.idialogue-choice.correct { background: var(--green-light); border-color: var(--green); pointer-events: none; }
.idialogue-choice.wrong { background: var(--red-light); border-color: var(--red); pointer-events: none; }
.idialogue-feedback { margin-top: 6px; font-size: 0.79rem; font-weight: bold; min-height: 15px; }
.idialogue-next { margin-top: 8px; padding: 5px 13px; background: var(--rose); border: none; border-radius: var(--radius); color: white; font-family: Georgia,serif; font-size: 0.82rem; cursor: pointer; display: none; font-weight: bold; }
.idialogue-complete { text-align: center; padding: 11px; background: var(--green-light); border-radius: var(--radius); font-weight: bold; color: #1a4d22; display: none; margin-top: 7px; }

@media(max-width:640px){ .bolum-sidebar{display:none;} .opts{grid-template-columns:1fr;} .page-wrap{padding:18px 12px 60px;} }
