/* ═══════════════════════════════════════════════════════════
   Starlit — сторінка "Навчання" (Starlit Pro).
   Підключається лише на template-education.php разом з page.css.
════════════════════════════════════════════════════════════ */

/* problem → solution */
.why { background: var(--paper); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line);
    border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.why-card { background: var(--paper); padding: 38px 34px; }
.why-card .n { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 16px; }
.why-card h3 { font-size: 20px; font-weight: 600; color: var(--petrol-deep); margin-bottom: 12px; letter-spacing: 0; line-height: 1.35; }
.why-card p { font-size: 14.5px; color: var(--muted); line-height: 1.75; }

/* formats */
.fmt { background: var(--ice-soft); }
.fmt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.fmt-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 34px; display: flex; flex-direction: column; }
.fmt-card.wide { grid-column: 1 / -1; background: linear-gradient(160deg, #fff, var(--ice-soft)); }
@media (min-width: 881px) {
    .fmt-card.wide .fmt-list { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 34px; }
    .fmt-card.wide .fmt-list li:first-child { border-top: 1px solid var(--line); }
}
.fmt-card .tag { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 14px; }
.fmt-card h3 { font-size: 22px; font-weight: 600; color: var(--petrol-deep); margin-bottom: 12px; letter-spacing: 0; }
.fmt-card p { font-size: 14.5px; color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.fmt-list { list-style: none; margin-top: auto; }
.fmt-list li { font-size: 13.5px; color: var(--ink); padding: 9px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; }
.fmt-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-light); flex-shrink: 0; margin-top: 8px; }
.fmt-list li b { font-weight: 600; color: var(--petrol); }
.fmt-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.fmt-meta div { font-size: 12px; color: var(--muted); }
.fmt-meta div b { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }

/* platform */
.platform { background: var(--warm); }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pf-list { list-style: none; margin-top: 26px; }
.pf-list li { font-size: 15px; color: var(--ink); padding: 14px 0 14px 24px; border-bottom: 1px solid var(--line); position: relative; }
.pf-list li::before { content: ""; position: absolute; left: 0; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.pf-slot { border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(160deg, #fff, var(--ice-soft));
    aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 40px; overflow: hidden; }
.pf-slot.has-img { padding: 0; }
.pf-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* schedule */
.sched { background: var(--paper); }
.sched-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sched-item { display: grid; grid-template-columns: 130px 150px 1fr auto; gap: 26px; align-items: center;
    padding: 26px 30px; border-bottom: 1px solid var(--line); background: var(--paper); transition: background 0.2s; }
.sched-item:last-child { border-bottom: none; }
.sched-item:hover { background: var(--ice-soft); }
.sched-date b { display: block; font-size: 26px; font-weight: 300; color: var(--petrol-deep); line-height: 1.1; }
.sched-date span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sched-type { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--teal); border: 1px solid var(--line); border-radius: 30px; padding: 7px 14px;
    text-align: center; white-space: nowrap; }
.sched-what b { display: block; font-size: 17px; font-weight: 600; color: var(--petrol-deep); margin-bottom: 4px; }
.sched-what span { font-size: 13.5px; color: var(--muted); }
.sched-cta { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--petrol); text-decoration: none; border: 1px solid var(--line); border-radius: 40px;
    padding: 12px 24px; transition: all 0.25s; white-space: nowrap; }
.sched-cta:hover { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.sched-note { font-size: 13px; color: var(--muted); margin-top: 22px; }
@media (max-width: 880px) {
    .sched-item { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
    .sched-cta { justify-self: start; }
}

/* trainers */
.trainers { background: var(--paper); }
.tr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tr-card { text-align: center; }
.tr-photo { aspect-ratio: 4/5; border-radius: 12px; border: 1px solid var(--line);
    background: linear-gradient(160deg, #fff, var(--ice-soft));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; text-align: center; padding: 0; margin-bottom: 20px; overflow: hidden; }
.tr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-name { font-size: 19px; font-weight: 600; color: var(--petrol-deep); margin-bottom: 6px; }
.tr-role { font-size: 13.5px; color: var(--muted); line-height: 1.6; max-width: 30ch; margin: 0 auto; }

/* audience */
.aud { background: var(--paper); }
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
    border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.aud-card { background: var(--paper); padding: 32px 26px; transition: background 0.2s; }
.aud-card:hover { background: var(--ice-soft); }
.aud-card h3 { font-size: 17px; font-weight: 600; color: var(--petrol-deep); margin-bottom: 10px; letter-spacing: 0; }
.aud-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* steps */
.how { background: linear-gradient(155deg, var(--petrol-mid), var(--petrol-deep)); }
.how .section-tag { color: var(--teal-light); }
.how .section-title { color: #fff; }
.how .section-sub { color: rgba(255,255,255,.7); }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.step { padding: 26px 40px 0 0; border-top: 1px solid var(--line-light); }
.step-num { font-size: 46px; font-weight: 300; color: rgba(255,255,255,.25); line-height: 1; margin-bottom: 22px; }
.step h4 { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.step p { font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.7; }

@media (max-width: 880px) {
    .why-grid, .fmt-grid, .steps-row, .pf-grid, .tr-grid { grid-template-columns: 1fr; }
    .pf-grid { gap: 32px; }
    .aud-grid { grid-template-columns: 1fr 1fr; }
    .step { padding: 22px 0 32px 0; }
    .step:last-child { padding-bottom: 0; }
}
@media (max-width: 560px) { .aud-grid { grid-template-columns: 1fr; } }
