/* Study-skills layout — mirrors the travel hub pattern (drop cap,
   interspersed visuals, two-column with sticky monetisation sidebar)
   with track-specific colour coding via gradient hero cards. */

/* ── Track colour tokens ─────────────────────────────────────────── */
:root {
    --study-primary-1:   oklch(0.65 0.18 60);    /* warm gold */
    --study-primary-2:   oklch(0.58 0.16 35);    /* warm orange */
    --study-secondary-1: oklch(0.55 0.18 145);   /* fresh green */
    --study-secondary-2: oklch(0.42 0.14 165);   /* deeper green */
    --study-senior-1:    oklch(0.50 0.18 260);   /* indigo */
    --study-senior-2:    oklch(0.38 0.16 285);   /* deep purple */
    --study-university-1: oklch(0.42 0.16 220);  /* steel blue */
    --study-university-2: oklch(0.28 0.12 250);  /* midnight */
    --study-section-1:   oklch(0.50 0.18 290);   /* brand purple */
    --study-section-2:   oklch(0.55 0.16 240);   /* brand blue */
}

/* ── Hero card ────────────────────────────────────────────────────── */
.study-hero {
    background: linear-gradient(135deg, var(--study-section-1), var(--study-section-2));
    color: #fff;
    padding: 3rem 1.5rem 2.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    text-align: center;
}
.study-hero--primary          { background: linear-gradient(135deg, var(--study-primary-1), var(--study-primary-2)); }
.study-hero--secondary        { background: linear-gradient(135deg, var(--study-secondary-1), var(--study-secondary-2)); }
.study-hero--senior-secondary { background: linear-gradient(135deg, var(--study-senior-1), var(--study-senior-2)); }
.study-hero--university       { background: linear-gradient(135deg, var(--study-university-1), var(--study-university-2)); }

.study-hero h1 {
    color: #fff;
    font-size: 2.2rem;
    margin: 0.5rem 0 0.75rem;
    letter-spacing: -0.02em;
}
.study-hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 640px;
}
.study-hero__badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    color: #fff;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Course pages use the travel-subhero photo overlay (first video thumb
   as bg). The .study-hero override just adds the badge styling. */
.travel-subhero--hero.study-hero h1 {
    color: #fff;
}

/* ── Track / course grid (replaces post-card grid) ────────────────── */
.study-grid-wrap {
    max-width: 960px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}
.study-grid-wrap__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
    color: #0f172a;
    margin: 0 0 1.25rem;
    font-weight: 600;
}
.study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.study-grid__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}
.study-grid__card::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--study-section-1), var(--study-section-2));
}
.study-grid__card--primary::before          { background: linear-gradient(90deg, var(--study-primary-1), var(--study-primary-2)); }
.study-grid__card--secondary::before        { background: linear-gradient(90deg, var(--study-secondary-1), var(--study-secondary-2)); }
.study-grid__card--senior-secondary::before { background: linear-gradient(90deg, var(--study-senior-1), var(--study-senior-2)); }
.study-grid__card--university::before       { background: linear-gradient(90deg, var(--study-university-1), var(--study-university-2)); }

.study-grid__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.2);
}
.study-grid__card-body { padding: 1.1rem 1.25rem 1rem; flex: 1; display: flex; flex-direction: column; }
.study-grid__card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}
.study-grid__card-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #4b5563;
    margin: 0 0 0.85rem;
    flex: 1;
}
.study-grid__card-cta {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--nav-active-fg, #5e2bcc);
    margin-top: auto;
}

/* ── Prev/next navigation between courses ───────────────────────── */
.study-prevnext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 960px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}
.study-prevnext__btn {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s;
}
.study-prevnext__btn:hover {
    border-color: var(--nav-active-fg, #5e2bcc);
    transform: translateY(-2px);
}
.study-prevnext__btn--next { text-align: right; }
.study-prevnext__label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.3rem;
}
.study-prevnext__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

/* ── Travel-intro overrides for study-skills body ───────────────── */
.travel-intro--study {
    max-width: 760px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #1f2937;
}
.travel-intro--study > p:first-of-type::first-letter {
    float: left;
    font-size: 3.2rem;
    line-height: 0.95;
    margin: 0.4rem 0.55rem 0 0;
    color: #0f172a;
    font-weight: 700;
    font-family: Georgia, "Times New Roman", serif;
}
.travel-intro--study a {
    color: var(--nav-active-fg, #5e2bcc);
    text-decoration: none;
    border-bottom: 1px solid rgba(94, 43, 204, 0.25);
}
.travel-intro--study a:hover {
    border-bottom-color: var(--nav-active-fg, #5e2bcc);
}

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .study-hero          { padding: 2rem 1rem 1.75rem; }
    .study-hero h1       { font-size: 1.75rem; }
    .study-prevnext      { grid-template-columns: 1fr; }
    .study-prevnext__btn--next { text-align: left; }
    .travel-intro--study { font-size: 1rem; }
    .travel-intro--study > p:first-of-type::first-letter { font-size: 2.5rem; }
}

/* ── Stat strip (below hero, above track grid) ──────────────────── */
.study-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
    max-width: 960px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
}
.study-stat {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.study-stat::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--study-section-1), var(--study-section-2));
}
.study-stat--primary::before          { background: linear-gradient(90deg, var(--study-primary-1), var(--study-primary-2)); }
.study-stat--secondary::before        { background: linear-gradient(90deg, var(--study-secondary-1), var(--study-secondary-2)); }
.study-stat--senior-secondary::before { background: linear-gradient(90deg, var(--study-senior-1), var(--study-senior-2)); }
.study-stat--university::before       { background: linear-gradient(90deg, var(--study-university-1), var(--study-university-2)); }

.study-stat__num {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.study-stat__label {
    display: block;
    font-size: 0.72rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-top: 0.35rem;
}

/* When the grid is rendered ABOVE the body, tighten the top margin */
.study-grid-wrap--top {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

/* Distinct H2 sections inside the editorial body — adds a side-bar
   accent so each "What this section is for" / "What the courses
   contain" heading is a visual break, not just text-on-text. */
.travel-intro--study h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-left: 0.85rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    border-left: 4px solid oklch(0.55 0.16 290);
    letter-spacing: -0.01em;
}
.travel-intro--study h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.12rem;
    font-weight: 600;
    color: #0f172a;
}

/* Lift the post-paragraph-1 hero figure on track / section landings */
.travel-intro__figure--video {
    margin: 1.75rem 0;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 28px -12px rgba(15, 23, 42, 0.3);
}
.travel-intro__figure--video img {
    display: block;
    width: 100%;
    height: auto;
}
.travel-intro__figure-cap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.25rem 1rem 0.85rem;
    background: linear-gradient(to top, rgba(15,23,42,0.92), rgba(15,23,42,0));
    color: #fff;
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.travel-intro__play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.95);
    color: #0f172a;
    border-radius: 50%;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ── Creator-picks shelf (real Amazon items linked by video creators) ── */
.creator-picks {
    max-width: 960px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 14px;
}
.creator-picks__group {
    margin-top: 1.25rem;
}
.creator-picks__group:first-of-type { margin-top: 0; }

.creator-picks__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #78350f;
    margin: 0 0 0.3rem;
}
.creator-picks__hint {
    font-size: 0.82rem;
    color: #92400e;
    margin: 0 0 1rem;
    font-style: italic;
}
.creator-picks__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.85rem;
}
.creator-picks__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}
.creator-picks__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -8px rgba(120, 53, 15, 0.25);
}
.creator-picks__cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.creator-picks__cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
.creator-picks__fallback {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.creator-picks__body {
    padding: 0.65rem 0.75rem 0.85rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.creator-picks__name {
    font-size: 0.82rem;
    line-height: 1.3;
    color: #0f172a;
    margin: 0;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.creator-picks__cta {
    font-size: 0.74rem;
    color: #b45309;
    font-weight: 600;
    margin-top: auto;
}
.creator-picks__notice {
    font-size: 0.7rem;
    color: #92400e;
    text-align: center;
    margin: 1.25rem 0 0;
    font-style: italic;
}
