/* =================================================================
   Ren Design — Online Eğitim (1.28.0)
   Eğitimlerim, katalog, eğitim sayfası, ders sayfası
   ================================================================= */
.rd-eg-wrap { padding-top: 36px; padding-bottom: 56px; }
.rd-eg-wrap h1, .rd-eg-wrap h2 { margin-top: 0; }
.rd-eg-note { font-size: 13px; color: #888; margin: 6px 0 0; }
.rd-eg-staff { background: color-mix(in srgb, var(--rd-primary) 10%, transparent); color: var(--rd-text); padding: 8px 12px; border-radius: var(--rd-radius-sm, 10px); }
.rd-eg-crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 13.5px; color: #888; margin-bottom: 18px; }
.rd-eg-crumbs a { font-weight: 600; }

/* ---------- Eğitimlerim başlığı ---------- */
.rd-eg-my-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.rd-eg-my-head h1 { margin: 0 0 6px; font-size: clamp(28px, 4vw, 40px); }
.rd-eg-my-head p { margin: 0; color: #777; }

/* ---------- Kart ızgarası ---------- */
.rd-eg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.rd-eg-card { background: var(--rd-surface, #fff); border: 1px solid var(--rd-border); border-radius: var(--rd-radius-lg, 28px); overflow: hidden; box-shadow: var(--rd-shadow-soft); transition: transform .25s ease, box-shadow .25s ease; display: flex; }
.rd-eg-card:hover { transform: translateY(-4px); box-shadow: var(--rd-shadow-card); }
.rd-eg-card-link { display: flex; flex-direction: column; width: 100%; color: inherit; }
.rd-eg-card-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--rd-bg-alt); overflow: hidden; }
.rd-eg-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.rd-eg-card:hover .rd-eg-card-img img { transform: scale(1.05); }
.rd-eg-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.rd-eg-card-body h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.rd-eg-card-body p { margin: 0; font-size: 14px; color: #777; }
.rd-eg-card-cta { margin-top: auto; padding-top: 4px; font-weight: 700; color: var(--rd-primary); font-size: 14.5px; }
.rd-eg-expired .rd-eg-card-img img, .rd-eg-none .rd-eg-card-img img, .rd-eg-expired .rd-eg-ph, .rd-eg-none .rd-eg-ph { filter: grayscale(.75) brightness(.9); }
.rd-eg-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; background: rgba(20, 20, 30, .78); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px); }
.rd-eg-badge-ok { background: #16a34a; } .rd-eg-badge-warn { background: #d97706; }

/* ---------- Yer tutucu görsel ---------- */
.rd-eg-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 48px; font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(135deg, hsl(var(--h, 14), 70%, 58%), hsl(calc(var(--h, 14) + 40), 70%, 46%)); }

/* ---------- Chip'ler ve ilerleme ---------- */
.rd-eg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-eg-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--rd-text); background: var(--rd-bg-alt); border-radius: 999px; padding: 4px 11px; }
.rd-eg-progress { display: flex; align-items: center; gap: 10px; }
.rd-eg-progress-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--rd-bg-alt); overflow: hidden; border: 1px solid var(--rd-border); }
.rd-eg-progress-bar i { display: block; height: 100%; background: var(--rd-primary); border-radius: 999px; transition: width .5s ease; }
.rd-eg-progress-txt { font-size: 12.5px; font-weight: 700; white-space: nowrap; color: #777; }
.rd-eg-empty { text-align: center; padding: 48px 24px; background: var(--rd-bg-alt); border-radius: var(--rd-radius-lg, 28px); max-width: 640px; margin: 24px auto; }
.rd-eg-empty h2 { margin-bottom: 8px; font-size: 24px; }
.rd-eg-empty .rd-btn + .rd-btn { margin-left: 8px; }

/* ---------- Eğitim sayfası ---------- */
.rd-eg-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; align-items: center; margin-bottom: 34px; }
.rd-eg-hero-img { border-radius: var(--rd-radius-xl, 40px); overflow: hidden; aspect-ratio: 16 / 10; background: var(--rd-bg-alt); box-shadow: var(--rd-shadow-card); }
.rd-eg-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-eg-hero-text { display: flex; flex-direction: column; gap: 14px; order: -1; }
.rd-eg-hero-text h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.rd-eg-lead { margin: 0; font-size: 17px; color: #666; }
.rd-eg-cta { padding: 18px 20px; background: var(--rd-bg-alt); border-radius: var(--rd-radius-lg, 28px); display: flex; flex-direction: column; gap: 10px; }
.rd-eg-cta p { margin: 0; }
.rd-eg-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.rd-eg-intro, .rd-eg-about, .rd-eg-contents { margin-bottom: 36px; }
.rd-eg-about h2, .rd-eg-contents h2 { font-size: 26px; margin-bottom: 16px; }

/* ---------- Müfredat listesi (küçük resimli başlıklar) ---------- */
.rd-eg-curr { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rd-eg-row-in { display: flex; align-items: center; gap: 16px; padding: 10px 16px 10px 10px; background: var(--rd-surface, #fff); border: 1px solid var(--rd-border); border-radius: var(--rd-radius-md, 18px); color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.rd-eg-row-in:hover { transform: translateX(3px); box-shadow: var(--rd-shadow-soft); border-color: var(--rd-primary); }
.rd-eg-thumb { flex: 0 0 auto; width: 128px; aspect-ratio: 16 / 10; border-radius: var(--rd-radius-sm, 10px); overflow: hidden; background: var(--rd-bg-alt); display: block; }
.rd-eg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-eg-thumb .rd-eg-ph { font-size: 17px; }
.rd-eg-row-text { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.rd-eg-row-text strong { font-size: 16px; line-height: 1.35; }
.rd-eg-num { display: inline-block; min-width: 26px; font-size: 13px; font-weight: 800; color: var(--rd-primary); }
.rd-eg-num-lg { font-size: 15px; background: color-mix(in srgb, var(--rd-primary) 12%, transparent); border-radius: 999px; padding: 3px 12px; }
.rd-eg-row-text small { flex-basis: 100%; font-size: 12.5px; color: #888; display: flex; align-items: center; gap: 5px; }
.rd-eg-row-text small.rd-eg-ex { display: block; }
.rd-eg-state { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--rd-bg-alt); color: var(--rd-primary); }
.rd-eg-done .rd-eg-state { background: #16a34a; color: #fff; }
.rd-eg-s-login .rd-eg-state, .rd-eg-s-noaccess .rd-eg-state, .rd-eg-s-expired .rd-eg-state, .rd-eg-s-drip .rd-eg-state, .rd-eg-s-nocourse .rd-eg-state { color: #888; }
.rd-eg-s-login .rd-eg-row-in, .rd-eg-s-noaccess .rd-eg-row-in, .rd-eg-s-expired .rd-eg-row-in, .rd-eg-s-drip .rd-eg-row-in { opacity: .78; }
.rd-eg-s-login .rd-eg-thumb, .rd-eg-s-noaccess .rd-eg-thumb, .rd-eg-s-expired .rd-eg-thumb, .rd-eg-s-drip .rd-eg-thumb { filter: grayscale(.6); }
/* Alt sayfalar girintili */
.rd-eg-d1 { margin-left: 28px; } .rd-eg-d2 { margin-left: 56px; } .rd-eg-d3 { margin-left: 84px; }
.rd-eg-d1 .rd-eg-thumb { width: 108px; } .rd-eg-d2 .rd-eg-thumb, .rd-eg-d3 .rd-eg-thumb { width: 92px; }
.rd-eg-d1 .rd-eg-row-in, .rd-eg-d2 .rd-eg-row-in, .rd-eg-d3 .rd-eg-row-in { border-left: 3px solid color-mix(in srgb, var(--rd-primary) 45%, transparent); }

/* ---------- Ders sayfası ---------- */
.rd-eg-lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 34px; align-items: start; }
.rd-eg-lesson-head { margin-bottom: 18px; }
.rd-eg-lesson-head h1 { margin: 6px 0 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; }
.rd-eg-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--rd-radius-lg, 28px); overflow: hidden; background: #000; margin-bottom: 24px; box-shadow: var(--rd-shadow-card); }
.rd-eg-video iframe, .rd-eg-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rd-eg-embed iframe { max-width: 100%; }
.rd-eg-lesson-img { margin-bottom: 24px; border-radius: var(--rd-radius-lg, 28px); overflow: hidden; } .rd-eg-lesson-img img { width: 100%; height: auto; display: block; }
.rd-eg-files { margin: 28px 0; padding: 20px 22px; background: var(--rd-bg-alt); border-radius: var(--rd-radius-lg, 28px); }
.rd-eg-files h2 { font-size: 18px; margin: 0 0 12px; }
.rd-eg-files ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rd-eg-files a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.rd-eg-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 30px 0 10px; }
.rd-eg-complete.rd-is-done { background: #16a34a; }
.rd-eg-complete[disabled] { opacity: .6; cursor: wait; }
.rd-eg-complete-msg { font-size: 13px; color: #b91c1c; }
.rd-eg-finish { margin: 16px 0; padding: 18px 22px; border-radius: var(--rd-radius-lg, 28px); background: color-mix(in srgb, #16a34a 12%, transparent); border: 1px solid color-mix(in srgb, #16a34a 40%, transparent); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rd-eg-finish[hidden] { display: none; }
.rd-eg-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.rd-eg-pn { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; border: 1px solid var(--rd-border); border-radius: var(--rd-radius-md, 18px); background: var(--rd-surface, #fff); color: inherit; transition: border-color .2s, transform .2s; }
.rd-eg-pn:hover { border-color: var(--rd-primary); transform: translateY(-2px); }
.rd-eg-pn small { color: var(--rd-primary); font-weight: 700; } .rd-eg-pn span { font-weight: 600; }
.rd-eg-next { text-align: right; grid-column: 2; }
.rd-eg-gate { text-align: center; padding: 44px 24px; background: var(--rd-bg-alt); border-radius: var(--rd-radius-lg, 28px); }
.rd-eg-gate-ico { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: var(--rd-surface, #fff); color: var(--rd-primary); margin-bottom: 8px; box-shadow: var(--rd-shadow-soft); }
.rd-eg-gate h2 { margin: 6px 0 8px; font-size: 24px; } .rd-eg-gate p { margin: 0 0 12px; }

/* ---------- Yan müfredat paneli ---------- */
.rd-eg-side { position: sticky; top: 90px; }
.rd-eg-side-box { background: var(--rd-surface, #fff); border: 1px solid var(--rd-border); border-radius: var(--rd-radius-lg, 28px); padding: 16px; box-shadow: var(--rd-shadow-soft); max-height: calc(100vh - 120px); overflow: auto; }
.rd-eg-side-box > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 800; font-size: 16px; padding: 2px 4px 12px; list-style: none; }
.rd-eg-side-box > summary::-webkit-details-marker { display: none; }
.rd-eg-side-box > summary::after { content: "▾"; margin-left: 8px; color: #888; transition: transform .2s; }
.rd-eg-side-box:not([open]) > summary::after { transform: rotate(-90deg); }
.rd-eg-side-pct { font-style: normal; color: var(--rd-primary); margin-left: auto; }
.rd-eg-side-box .rd-eg-progress { margin: 0 4px 14px; }
.rd-eg-curr-side { gap: 6px; }
.rd-eg-curr-side .rd-eg-row-in { padding: 6px 10px 6px 6px; gap: 10px; border-radius: 14px; border-color: transparent; background: transparent; }
a.rd-eg-curr-side .rd-eg-row-in:hover, .rd-eg-curr-side a.rd-eg-row-in:hover { background: var(--rd-bg-alt); box-shadow: none; transform: none; border-color: transparent; }
.rd-eg-curr-side .rd-eg-thumb { width: 72px; border-radius: 8px; }
.rd-eg-curr-side .rd-eg-thumb .rd-eg-ph { font-size: 13px; }
.rd-eg-curr-side .rd-eg-row-text strong { font-size: 13.5px; }
.rd-eg-curr-side .rd-eg-num { min-width: 0; font-size: 12px; }
.rd-eg-curr-side .rd-eg-state { width: 26px; height: 26px; } .rd-eg-curr-side .rd-eg-state svg { width: 13px; height: 13px; }
.rd-eg-curr-side .rd-eg-d1 { margin-left: 14px; } .rd-eg-curr-side .rd-eg-d2 { margin-left: 28px; } .rd-eg-curr-side .rd-eg-d3 { margin-left: 42px; }
.rd-eg-curr-side .rd-eg-d1 .rd-eg-thumb, .rd-eg-curr-side .rd-eg-d2 .rd-eg-thumb, .rd-eg-curr-side .rd-eg-d3 .rd-eg-thumb { width: 60px; }
.rd-eg-curr-side .rd-eg-d1 .rd-eg-row-in, .rd-eg-curr-side .rd-eg-d2 .rd-eg-row-in, .rd-eg-curr-side .rd-eg-d3 .rd-eg-row-in { border-left-width: 2px; border-left-color: color-mix(in srgb, var(--rd-primary) 40%, transparent); }
.rd-eg-curr-side .rd-eg-current > .rd-eg-row-in { background: color-mix(in srgb, var(--rd-primary) 12%, transparent); border-color: var(--rd-primary); }
.rd-eg-curr .rd-eg-current > .rd-eg-row-in { border-color: var(--rd-primary); }

/* ---------- Duyarlı ---------- */
@media (max-width: 980px) {
	.rd-eg-lesson-layout { grid-template-columns: 1fr; }
	.rd-eg-side { position: static; order: 2; }
	.rd-eg-side-box { max-height: none; }
	.rd-eg-hero { grid-template-columns: 1fr; gap: 22px; }
	.rd-eg-hero-text { order: 0; }
}
@media (max-width: 600px) {
	.rd-eg-wrap { padding-top: 22px; }
	.rd-eg-grid { grid-template-columns: 1fr; gap: 18px; }
	.rd-eg-thumb { width: 92px; }
	.rd-eg-row-in { gap: 10px; padding: 8px 10px 8px 8px; }
	.rd-eg-row-text strong { font-size: 14.5px; }
	.rd-eg-d1 { margin-left: 14px; } .rd-eg-d2 { margin-left: 28px; } .rd-eg-d3 { margin-left: 42px; }
	.rd-eg-d1 .rd-eg-thumb, .rd-eg-d2 .rd-eg-thumb, .rd-eg-d3 .rd-eg-thumb { width: 76px; }
	.rd-eg-ex { display: none !important; }
	.rd-eg-prevnext { grid-template-columns: 1fr; } .rd-eg-next { grid-column: auto; }
}

/* ---------- 1.28.0 eklemeleri: devam et şeridi, notlar, yorumlar ---------- */
.rd-eg-resume { display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; margin: 0 0 26px; background: linear-gradient(135deg, color-mix(in srgb, var(--rd-primary) 14%, var(--rd-surface, #fff)), var(--rd-surface, #fff)); border: 1px solid var(--rd-primary); border-radius: var(--rd-radius-lg, 28px); color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.rd-eg-resume:hover { transform: translateY(-2px); box-shadow: var(--rd-shadow-soft); }
.rd-eg-resume-img { flex: 0 0 auto; width: 120px; aspect-ratio: 16 / 10; border-radius: var(--rd-radius-sm, 10px); overflow: hidden; background: var(--rd-bg-alt); }
.rd-eg-resume-img img, .rd-eg-resume-img .rd-eg-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-eg-resume-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rd-eg-resume-txt small { font-weight: 700; color: var(--rd-primary); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.rd-eg-resume-txt strong { font-size: 18px; line-height: 1.3; }
.rd-eg-resume-txt em { font-style: normal; color: #777; font-size: 13.5px; }
.rd-eg-resume-go { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--rd-primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.rd-eg-s-seq .rd-eg-state { color: #888; }
.rd-eg-s-seq .rd-eg-row-in { opacity: .78; } .rd-eg-s-seq .rd-eg-thumb { filter: grayscale(.6); }
.rd-eg-complete-next[hidden] { display: none; }
.rd-eg-notes { margin: 26px 0 8px; }
.rd-eg-notes h2 { font-size: 18px; margin: 0 0 10px; } .rd-eg-notes h2 small { font-weight: 500; color: #888; font-size: 13px; }
.rd-eg-notes textarea { width: 100%; min-height: 110px; resize: vertical; border-radius: var(--rd-radius-md, 18px); padding: 14px 16px; }
.rd-eg-note-msg { display: block; min-height: 18px; margin-top: 6px; font-size: 13px; color: #16a34a; }
.rd-eg-comments { margin-top: 34px; }
@media (max-width: 600px) { .rd-eg-resume-img { width: 84px; } .rd-eg-resume-txt strong { font-size: 15.5px; } }
/* 1.32.0 — eğitim kapağında video */
.rd-eg-hero-img.rd-eg-hero-video { aspect-ratio: auto; background: #000; }
.rd-eg-hero-img.rd-eg-hero-video .rd-cover { margin: 0; }
.rd-eg-hero-img .rd-cover-badge, .rd-eg-hero-img .rd-cover-badge img { width: 100%; height: 100%; }
