/*
 * Akademi kurslar sayfası (web/academy/index.php) — `cg-`.
 *
 * Sol programlar sütunu ve telefon şeridi academy-home.css'ten gelir
 * (`ac-side`, `ac-rail`); burada yalnızca sayfaya özgü bölümler var.
 */
.cg-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; }
.cg-main .ac-rail { order: 0; }

/* Seçili program (sol sütun ve şerit) */
.ac-side-item.is-on { background: var(--sc-accent-50); }
.ac-side-item.is-on .ac-side-name { color: var(--sc-accent); font-weight: 800; }
.ac-side-item.is-on .ac-side-count { background: var(--sc-accent); color: var(--sc-accent-ink); }
.ac-rail-item.is-on b { color: var(--sc-accent); }

/* ── Başlık bandı ─────────────────────────────────────────────────────── */
.cg-band { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: end; min-height: 300px;
    padding: 34px 0 0 44px; border-radius: 28px; background: var(--sc-violet); color: #fff; }
.cg-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgb(255 255 255 / .16) 1.2px, transparent 1.6px); background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(110deg, #000 10%, transparent 60%); mask-image: linear-gradient(110deg, #000 10%, transparent 60%); }
.cg-band::after { content: ''; position: absolute; z-index: -1; right: -8%; top: 50%; width: 52%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgb(255 255 255 / .26), transparent); }
.cg-band-copy { align-self: center; padding-bottom: 34px; }
.cg-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13.5px; font-weight: 600; color: rgb(255 255 255 / .75); }
.cg-crumbs i { font-size: 10px; opacity: .7; }
.st-body .cg-crumbs a { color: rgb(255 255 255 / .85); }
.st-body .cg-crumbs a:hover { color: #fff; }
.cg-title { margin: 12px 0 0; font-size: clamp(30px, 3vw, 44px); line-height: 1.06; font-weight: 800; letter-spacing: -.035em; color: #fff; }
.cg-lead { margin: 10px 0 0; max-width: 58ch; font-size: 15.5px; line-height: 1.55; color: rgb(255 255 255 / .84); }
.cg-search { display: flex; align-items: center; gap: 10px; max-width: 540px; margin-top: 20px; padding: 6px 6px 6px 16px; border-radius: 16px; background: #fff; box-shadow: 0 14px 30px -18px rgb(30 0 80 / .55); }
.cg-search i { color: var(--sc-g500); font-size: 16px; }
.cg-search input { flex: 1; min-width: 0; height: 42px; border: 0; outline: 0; background: transparent; font: 500 15px var(--st-font); color: var(--sc-ink); }
.cg-search button { flex: none; height: 42px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--sc-accent); color: var(--sc-accent-ink); font: 700 14.5px var(--st-font); cursor: pointer; }
.cg-search button:hover { background: var(--sc-accent-dark); }
.cg-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.cg-stats li { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 10px; background: rgb(255 255 255 / .16); font-size: 13px; font-weight: 600; color: rgb(255 255 255 / .85); }
.cg-stats b { font-size: 16px; font-weight: 800; color: #fff; }
.cg-band-art { align-self: end; justify-self: end; width: 100%; max-width: 300px; max-height: 280px; object-fit: contain; object-position: bottom right; margin-right: 24px; filter: drop-shadow(0 22px 28px rgb(0 0 0 / .22)); }
.cg-band-art.is-object { align-self: center; max-width: 170px; max-height: 200px; margin: 0 52px 0 0; transform: rotate(-8deg); }

/* ── Süzgeç çubuğu ────────────────────────────────────────────────────── */
.cg-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 10px 10px 10px 20px; border-radius: 20px; background: #fff;
    box-shadow: 0 1px 2px rgb(20 20 30 / .04), 0 14px 30px -26px rgb(30 30 60 / .45); }
.cg-count { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cg-count b { font-size: 16px; font-weight: 800; color: var(--sc-ink); }
.cg-count span { font-size: 14px; color: var(--sc-g500); }
.cg-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cg-select { position: relative; display: inline-flex; align-items: center; }
.cg-select > i { position: absolute; left: 13px; font-size: 14px; color: var(--sc-g500); pointer-events: none; }
.cg-select::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid var(--sc-g500); border-bottom: 2px solid var(--sc-g500); transform: rotate(45deg); pointer-events: none; }
.cg-select select { height: 42px; padding: 0 36px 0 36px; border: 1.5px solid transparent; border-radius: 13px; background: var(--sc-g100); font: 600 14px var(--st-font); color: var(--sc-ink); cursor: pointer;
    -webkit-appearance: none; appearance: none; transition: border-color .15s, background .15s; }
.cg-select select:hover { background: var(--sc-g200); }
.cg-select select:focus-visible { outline: none; border-color: var(--sc-accent); background: #fff; }
.cg-apply, .st-body .cg-clear { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border: 0; border-radius: 13px; background: #fde4e4; color: #c62e33; font: 700 13.5px var(--st-font); cursor: pointer; }

/* ── Kurslar ──────────────────────────────────────────────────────────── */
.cg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cg-empty { display: grid; justify-items: center; gap: 8px; padding: 44px 24px; border-radius: 26px; background: #fff; text-align: center; }
.cg-empty img { width: 120px; }
.cg-empty h2 { margin: 6px 0 0; font-size: 22px; font-weight: 800; color: var(--sc-ink); }
.cg-empty p { margin: 0; max-width: 46ch; font-size: 14.5px; line-height: 1.6; color: var(--sc-g600); }
.st-body .cg-btn { margin-top: 10px; display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 14px; background: var(--sc-accent); color: var(--sc-accent-ink); font-weight: 700; }

/* ── Neden ────────────────────────────────────────────────────────────── */
.cg-why { margin-top: 18px; display: grid; gap: 18px; }
.cg-why h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.025em; color: var(--sc-ink); }
.cg-why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cg-why-card { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgb(20 20 30 / .04), 0 14px 30px -26px rgb(30 30 60 / .45); }
.cg-why-ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; border-radius: 18px; background: var(--sc-g100); }
.cg-why-ic img { width: 38px; height: 38px; object-fit: contain; }
.cg-why-card b { font-size: 16px; color: var(--sc-ink); }
.cg-why-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--sc-g600); }
.cg-shell { padding-bottom: 56px; }

/* ── Duyarlı ──────────────────────────────────────────────────────────── */
@media (max-width: 1300px) {
    .cg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cg-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cg-band { grid-template-columns: minmax(0, 1fr) 240px; }
}
@media (max-width: 1023px) {
    .cg-shell { padding-bottom: 32px; }
    .cg-main { gap: 18px; }
}
@media (max-width: 760px) {
    .cg-band { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 26px 20px 0; border-radius: 26px; }
    .cg-band-copy { padding-bottom: 0; }
    .cg-title { font-size: 30px; }
    .cg-lead { font-size: 14.5px; }
    .cg-search { margin-top: 18px; }
    .cg-search button { padding: 0 16px; }
    .cg-band-art { align-self: center; max-width: 220px; max-height: 170px; margin: 14px 0 0; object-position: bottom center; }
    .cg-band-art.is-object { display: none; }
    .cg-band:has(.is-object) { padding-bottom: 24px; }
    .cg-bar { padding: 14px; border-radius: 20px; }
    .cg-filters { width: 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px 2px; width: calc(100% + 28px); scrollbar-width: none; }
    .cg-filters::-webkit-scrollbar { display: none; }
    .cg-select { flex: none; }
    .cg-grid { grid-template-columns: 1fr; gap: 16px; }
    .cg-grid .st-course-cover { aspect-ratio: 16 / 10; }
    .cg-why h2 { font-size: 21px; }
    .cg-why-grid { gap: 12px; }
    .cg-why-card { padding: 16px; }
    .cg-why-ic { width: 48px; height: 48px; border-radius: 15px; }
    .cg-why-ic img { width: 32px; height: 32px; }
}
