/* ==========================================================================
   Reflections Gurukul — standalone theme
   Colors/typography extracted from the live CSS of the MasterStudy "Classic
   LMS" reference demo (masterstudy.stylemixthemes.com/classic-lms-elementor),
   applied to original Gurukul markup, copy and imagery.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --gu-primary: #227aff;
    --gu-primary-dark: #385bce;
    --gu-primary-tint: rgba(34, 122, 255, .1);
    --gu-gold: #eab830;
    --gu-green: #17d292;
    --gu-danger: #f13e3e;
    --gu-navy: #001931;
    --gu-slate: #4d5e6f;
    --gu-border: #dbe0e9;
    --gu-bg: #f0f2f5;
    --gu-bg-soft: #eef1f7;
    --gu-white: #ffffff;
    --gu-radius: 8px;
    --gu-radius-lg: 14px;
    --gu-shadow: 0 4px 18px rgba(0, 25, 49, .07);
    --gu-shadow-hover: 0 10px 28px rgba(0, 25, 49, .13);
    --gu-container: 1200px;
}

* { box-sizing: border-box; }

/* ── Loading spinner ──────────────────────────────────────────────────────
   Single reusable pattern - no page in this app had any loading indicator
   before, so a blank container looked identical to a legitimate "no data yet"
   empty state. Drop '<span class="gu-spinner"></span>' inside a div/grid with
   .gu-loading, or inside a <td class="gu-loading-cell" colspan="N"> for a
   table body - existing render calls already overwrite it on arrival. */

.gu-spinner {
    display: inline-block; width: 26px; height: 26px; border: 3px solid var(--gu-border);
    border-top-color: var(--gu-primary); border-radius: 50%; animation: gu-spin .7s linear infinite;
}
@keyframes gu-spin { to { transform: rotate(360deg); } }
.gu-loading { display: flex; align-items: center; justify-content: center; padding: 48px 20px; color: var(--gu-slate); }
/* display:flex on a <td> breaks its table-cell layout participation - table
   rows get text-align/padding instead, which is enough to center an
   inline-block spinner without disturbing the table's column layout. */
.gu-loading-cell { text-align: center; padding: 48px 20px; color: var(--gu-slate); }

/* Bootstrap's .row ships -15px side margins meant to be offset by .container's
   padding - this codebase never uses .container (only .gu-container), so that
   compensation never existed and .row was bleeding 15px past the page edge. */
.row { margin-left: 0; margin-right: 0; }

/* overflow-x:hidden lives on html, not body - setting overflow-x to anything
   but visible forces the OTHER axis (overflow-y) to compute as auto too (CSS
   overflow spec), which silently turns body into its own scroll container.
   That breaks position:sticky for every descendant (the site header included)
   that expects to stick relative to the real viewport - it still LOOKS fine on
   short pages that never scroll, but the header just scrolls away like a
   normal element on any page with real content. html doesn't have this problem
   since it's already the actual viewport-associated scrolling element. */
html { overflow-x: hidden; }

body {
    font-family: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gu-slate);
    background: var(--gu-white);
    margin: 0;
}

img { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 700;
    color: var(--gu-navy);
    margin-top: 0;
}

a { color: var(--gu-primary); }

.gu-container {
    max-width: var(--gu-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.gu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: .95rem;
    padding: 12px 26px;
    border-radius: 45px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}

.gu-btn-primary { background: var(--gu-primary); color: var(--gu-white); }
.gu-btn-primary:hover { background: var(--gu-primary-dark); color: var(--gu-white); }

.gu-btn-outline { background: var(--gu-primary-tint); color: var(--gu-primary); }
.gu-btn-outline:hover { background: var(--gu-primary); color: var(--gu-white); }

.gu-btn-ghost { background: transparent; color: var(--gu-white); border-color: rgba(255, 255, 255, .5); }
.gu-btn-ghost:hover { background: rgba(255, 255, 255, .12); color: var(--gu-white); }

/* Attention-grabbing CTA distinct from the standard primary/outline/ghost set -
   gold instead of the site's blue, a soft pulsing ring, plus a diagonal shine
   that sweeps left-to-right on a loop (the "new announcement" shimmer look). */
.gu-btn-highlight {
    position: relative; overflow: hidden;
    background: var(--gu-gold); color: var(--gu-navy);
    animation: gu-pulse-ring 2s ease-out infinite;
}
.gu-btn-highlight:hover { background: #d1a220; color: var(--gu-navy); }
.gu-btn-highlight::after {
    content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.65), transparent);
    transform: skewX(-20deg);
    animation: gu-shimmer-sweep 2.5s ease-in-out infinite;
}
@keyframes gu-pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(234,184,48,.55); }
    70%  { box-shadow: 0 0 0 14px rgba(234,184,48,0); }
    100% { box-shadow: 0 0 0 0 rgba(234,184,48,0); }
}
@keyframes gu-shimmer-sweep {
    0%   { left: -75%; }
    50%  { left: 125%; }
    100% { left: 125%; }
}

/* Scrolling announcement strip - two identical copies of the text placed back
   to back, animated exactly -50% so the loop point is invisible (copy #2 is
   already in copy #1's start position the instant it wraps). */
.gu-marquee { background: var(--gu-navy); overflow: hidden; white-space: nowrap; }
.gu-marquee__track {
    display: inline-flex; width: max-content; text-decoration: none;
    animation: gu-marquee-scroll 16s linear infinite;
}
.gu-marquee__track:hover { animation-play-state: paused; text-decoration: none; }
.gu-marquee__track span {
    display: inline-block; padding: 10px 40px; color: var(--gu-gold); font-weight: 700; font-size: .9rem; white-space: nowrap;
}
@keyframes gu-marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 575px) {
    .gu-marquee__track span { font-size: .78rem; padding: 8px 24px; }
}

.gu-btn-block { display: flex; width: 100%; }

/* Custom file-picker button - the raw <input type="file"> renders as an
   unstyled native control that clashes with every other gu-btn on the page,
   so it's visually hidden and a styled <label> triggers it instead. */
.gu-file-upload {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    background: var(--gu-primary-tint); color: var(--gu-primary); font-weight: 600; font-size: .88rem;
    padding: 9px 18px; border-radius: 45px; transition: background .2s, color .2s;
}
.gu-file-upload:hover { background: var(--gu-primary); color: var(--gu-white); }
.gu-file-upload input[type="file"] {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.gu-file-upload__name { display: inline-block; margin-left: 10px; font-size: .82rem; color: var(--gu-slate); vertical-align: middle; }

/* Upload progress - a plain text status was easy to miss; a filled bar with
   a matching label is the standard, unmissable "something is happening" cue. */
.gu-upload-progress { margin-top: 16px; }
.gu-upload-progress__label { font-size: .82rem; color: var(--gu-slate); margin-bottom: 6px; font-weight: 600; }
.gu-upload-progress__track { background: var(--gu-bg-soft); border-radius: 20px; height: 8px; overflow: hidden; }
.gu-upload-progress__fill {
    height: 100%; width: 0%; border-radius: 20px; background: var(--gu-primary);
    transition: width .25s ease;
}

/* ── Header / nav ────────────────────────────────────────────────────── */

.gu-nav { background: var(--gu-white); border-bottom: 1px solid var(--gu-border); position: sticky; top: 0; z-index: 1000; }

.gu-nav-inner {
    max-width: var(--gu-container);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.gu-nav-logo { font-size: 1.35rem; font-weight: 800; color: var(--gu-navy); text-decoration: none; white-space: nowrap; }
.gu-nav-logo:hover { color: var(--gu-navy); text-decoration: none; }
.gu-nav-logo span { color: var(--gu-primary); }

.gu-nav-links { display: flex; align-items: center; gap: 28px; flex: 1; list-style: none; margin: 0; padding: 0; }
.gu-nav-links a { color: var(--gu-navy); font-weight: 600; font-size: .95rem; text-decoration: none; }
.gu-nav-links a:hover { color: var(--gu-primary); }

.gu-nav-hamburger { color: var(--gu-navy); font-size: 1.4rem; margin-right: 14px; text-decoration: none; display: none; }

.gu-nav-account { display: flex; align-items: center; gap: 14px; position: relative; }
.gu-nav-account .signin { font-weight: 600; color: var(--gu-navy) !important; text-decoration: none; }
.gu-nav-account .rounded-circle {
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gu-primary); color: var(--gu-white) !important;
    font-weight: 700; font-size: .85rem; text-decoration: none;
}

.dropdown-content {
    display: none;
    position: absolute; top: 48px; right: 0;
    background: var(--gu-white);
    border-radius: var(--gu-radius);
    box-shadow: var(--gu-shadow-hover);
    min-width: 220px;
    padding: 8px 0;
    z-index: 1100;
}
.dropdown-content a { display: block; padding: 10px 18px; color: var(--gu-navy); font-size: .9rem; font-weight: 500; text-decoration: none; }
.dropdown-content a:hover { background: var(--gu-bg-soft); color: var(--gu-primary); }
.dropdown-content.show { display: block; }
.dropdown-content .dropdown-section-label {
    padding: 10px 18px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: #9aa5b1; border-top: 1px solid #eee; margin-top: 4px;
}

.sidenav {
    height: 100%; width: 0; position: fixed; z-index: 1200; top: 0; left: 0;
    background: var(--gu-navy); overflow-x: hidden; transition: width .25s ease; padding-top: 50px;
}
.sidenav a { padding: 10px 24px; text-decoration: none; font-size: 1rem; font-weight: 600; color: var(--gu-white); display: block; }
.sidenav a:hover { color: var(--gu-gold); }
.sidenav .closebtn { position: absolute; top: 6px; right: 20px; font-size: 2rem; }

@media (max-width: 991px) {
    .gu-nav-links { display: none; }
    .gu-nav-hamburger { display: inline-block; }
}

@media (max-width: 420px) {
    .gu-nav-inner { padding: 12px 14px; gap: 12px; }
    .gu-nav-logo { font-size: 1.1rem; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.gu-hero { background: linear-gradient(135deg, var(--gu-navy) 0%, #0a3a63 100%); padding: 64px 0 150px; color: var(--gu-white); }
.gu-hero h1 { color: var(--gu-white); font-size: 2.4rem; margin-bottom: 16px; }
.gu-hero p { color: rgba(255,255,255,.78); font-size: 1.05rem; max-width: 560px; margin-bottom: 26px; }
.gu-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 575px) {
    .gu-hero { padding: 40px 0 130px; }
    .gu-hero h1 { font-size: 1.6rem; }
    .gu-hero p { font-size: .92rem; }
    .gu-hero-actions .gu-btn { flex: 1; min-width: 140px; }
}

/* Avatar-left/content-right, same idea as .gu-featured-instructor's layout -
   the old stacked-vertically version made instructor-profile.html's header
   much taller than it needed to be for the amount of content in it. */

/* ── Stats band ──────────────────────────────────────────────────────── */

.gu-stats-band { background: var(--gu-navy); padding: 48px 0; }
.gu-stats-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; text-align: center; }
.gu-stats-row > div { flex: 1; min-width: 140px; }
.gu-stat-icon { display: block; font-size: 1.7rem; color: var(--gu-white); margin-bottom: 12px; }
.gu-stats-band .gu-stat-val { font-size: 1.9rem; font-weight: 800; color: var(--gu-gold); }
.gu-stats-band .gu-stat-label { font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.72); text-transform: uppercase; margin-top: 4px; }

/* Dashboard stat cards reuse .gu-stat-val/.gu-stat-label on light backgrounds - see .gu-stat-card below */
.gu-stat-val { font-size: 1.9rem; font-weight: 800; color: var(--gu-navy); }
.gu-stat-label { font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--gu-slate); text-transform: uppercase; margin-top: 4px; }

/* ── Category tiles ─────────────────────────────────────────────────────
   Pulled up to overlap the bottom of the hero banner, each tile a distinct
   bold color - matches the MasterStudy reference's category strip. */

.gu-categories-section { position: relative; z-index: 2; margin-top: -110px; }
.gu-categories { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.gu-category-tile {
    border: none; border-radius: var(--gu-radius-lg);
    padding: 32px 16px; text-align: center; text-decoration: none; color: var(--gu-white);
    box-shadow: 0 12px 28px rgba(0,25,49,.18);
    transition: box-shadow .2s, transform .2s;
}
.gu-category-tile:hover { box-shadow: 0 16px 34px rgba(0,25,49,.26); transform: translateY(-4px); color: var(--gu-white); }
.gu-category-tile i { font-size: 2rem; color: var(--gu-white); margin-bottom: 12px; display: block; }
.gu-category-tile span { font-weight: 700; font-size: .92rem; }

.gu-category-tile:nth-child(5n+1) { background: var(--gu-green); }
.gu-category-tile:nth-child(5n+2) { background: #17b8d6; }
.gu-category-tile:nth-child(5n+3) { background: var(--gu-primary); }
.gu-category-tile:nth-child(5n+4) { background: var(--gu-gold); }
.gu-category-tile:nth-child(5n+5) { background: #e0469e; }

.gu-category-tile.active { box-shadow: 0 0 0 3px var(--gu-white), 0 0 0 6px var(--gu-navy), 0 16px 34px rgba(0,25,49,.26); }

@media (max-width: 991px) { .gu-categories { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 650px) { .gu-categories-section { margin-top: -80px; } .gu-categories { grid-template-columns: repeat(2, 1fr); gap: 14px; } .gu-category-tile { padding: 22px 12px; } }

/* ── Section heading + sort/filter bar ──────────────────────────────── */

.gu-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.gu-sort-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.gu-sort-tabs span {
    padding: 9px 18px; border-radius: 45px; font-size: .85rem; font-weight: 600;
    color: var(--gu-primary); background: var(--gu-primary-tint); cursor: pointer; transition: .2s;
}
.gu-sort-tabs span.active, .gu-sort-tabs span:hover { color: var(--gu-white); background: var(--gu-primary); }
/* Separates "All" (a category filter) from the Popular/Newest/Rating group (a
   sort order) - both can be active at once since they're independent axes,
   so a plain gap alone made it look like one flat row of 4 sort options. */
.gu-sort-tabs span.gu-sort-tabs__divider, .gu-sort-tabs span.gu-sort-tabs__divider:hover {
    width: 1px; padding: 0; align-self: stretch; background: var(--gu-border); margin: 2px 4px; cursor: default;
}

/* ── Course grid + card ──────────────────────────────────────────────── */

.gu-course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1200px) { .gu-course-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 850px) { .gu-course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .gu-course-grid { grid-template-columns: 1fr; } }

.gu-course-card {
    background: var(--gu-white); border: 1px solid var(--gu-border); border-radius: var(--gu-radius-lg);
    overflow: hidden; transition: transform .2s, box-shadow .2s; height: 100%; display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
}
.gu-course-card:hover { transform: translateY(-4px); box-shadow: var(--gu-shadow-hover); color: inherit; }
.gu-course-card__thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--gu-bg-soft); }
.gu-course-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gu-course-card__thumb-top {
    position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.gu-course-card__cat-badge {
    background: rgba(255,255,255,.95); color: var(--gu-navy); font-size: .72rem; font-weight: 700; letter-spacing: .02em;
    padding: 5px 12px; border-radius: 20px; text-transform: uppercase; box-shadow: 0 2px 8px rgba(0,25,49,.12);
}
.gu-course-card__thumb-actions { display: flex; align-items: center; gap: 8px; }
.gu-course-card__badge {
    background: var(--gu-danger); color: var(--gu-white); font-size: .72rem; font-weight: 700; letter-spacing: .03em;
    padding: 5px 12px; border-radius: 20px; text-transform: uppercase; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,25,49,.12);
}
.gu-course-card__badge--sale { background: var(--gu-gold); }
.gu-course-card__badge--free { background: var(--gu-green); }
.gu-course-card__wishlist {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255,255,255,.95); color: var(--gu-slate); display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; padding: 0; box-shadow: 0 2px 8px rgba(0,25,49,.12);
}
.gu-course-card__wishlist.active { color: var(--gu-danger); }
.gu-course-card__body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.gu-course-card__category { color: var(--gu-primary); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.gu-course-card__title { font-size: 1.02rem; font-weight: 700; color: var(--gu-navy); margin-bottom: 8px; }
.gu-course-card__excerpt {
    font-size: .85rem; color: var(--gu-slate); margin-bottom: 12px; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gu-course-card__meta { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--gu-slate); margin-bottom: 10px; flex-wrap: wrap; }
.gu-course-card__instructor:hover { color: var(--gu-primary); text-decoration: underline; }
.gu-course-card__rating { color: var(--gu-gold); font-weight: 700; font-size: .85rem; }
.gu-course-card__footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--gu-border); display: flex; align-items: center; justify-content: space-between; }
.gu-course-card__price { font-size: 1.05rem; font-weight: 800; color: var(--gu-navy); }
.gu-course-card__price--free { color: var(--gu-green); }
.gu-course-card__price-old { font-size: .82rem; color: #9aa5b1; text-decoration: line-through; margin-right: 6px; font-weight: 500; }

.gu-load-more { display: flex; justify-content: center; margin-top: 36px; }

/* ── Featured instructor ───────────────────────────────────────────────── */

.gu-featured-instructor {
    display: flex; align-items: center; gap: 32px; background: var(--gu-bg-soft);
    border-radius: var(--gu-radius-lg); padding: 36px 40px;
}
.gu-featured-instructor__avatar {
    width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0; background: var(--gu-primary-tint);
    color: var(--gu-primary); font-size: 2.2rem; display: flex; align-items: center; justify-content: center;
}
.gu-featured-instructor__eyebrow { color: var(--gu-primary); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.gu-featured-instructor__name { margin-bottom: 12px; }
.gu-featured-instructor__stats { display: flex; gap: 22px; flex-wrap: wrap; color: var(--gu-slate); font-size: .88rem; font-weight: 600; margin-bottom: 18px; }
.gu-featured-instructor__stats i { color: var(--gu-primary); margin-right: 6px; }
.gu-featured-instructor__courses { margin-top: 22px; }
.gu-featured-instructor__courses-label { display: block; font-size: .78rem; font-weight: 700; color: var(--gu-slate); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 10px; }
.gu-featured-instructor__course-list { display: flex; gap: 12px; flex-wrap: wrap; }
.gu-mini-course {
    display: flex; align-items: center; gap: 10px; background: var(--gu-white); border: 1px solid var(--gu-border);
    border-radius: var(--gu-radius); padding: 6px 14px 6px 6px; text-decoration: none; color: var(--gu-navy);
    font-size: .85rem; font-weight: 600; max-width: 220px; transition: box-shadow .2s, transform .2s;
}
.gu-mini-course:hover { box-shadow: var(--gu-shadow-hover); transform: translateY(-2px); color: var(--gu-navy); }
.gu-mini-course img { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.gu-mini-course span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 650px) { .gu-featured-instructor { flex-direction: column; text-align: center; padding: 28px 24px; } .gu-featured-instructor__stats, .gu-featured-instructor__course-list { justify-content: center; } .gu-mini-course { text-align: left; } }

/* ── Newsletter ────────────────────────────────────────────────────────── */

.gu-newsletter { background: var(--gu-navy); padding: 48px 0; }
.gu-newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.gu-newsletter__inner h2 { color: var(--gu-white); font-size: 1.5rem; margin-bottom: 6px; }
.gu-newsletter__inner p { color: rgba(255,255,255,.72); margin: 0; }
.gu-newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; }
.gu-newsletter__form input { width: 280px; max-width: 100%; padding: 12px 16px; border-radius: var(--gu-radius); border: none; }
@media (max-width: 480px) { .gu-newsletter__form input { width: 100%; } }

/* ── Blog / Reflections.Live cross-promo ──────────────────────────────── */

.gu-blog-carousel-wrap { position: relative; }
.gu-blog-carousel {
    display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
    padding-bottom: 8px; scrollbar-width: none;
}
.gu-blog-carousel::-webkit-scrollbar { display: none; }
.gu-blog-card {
    flex: 0 0 260px; scroll-snap-align: start; display: block; text-decoration: none; color: inherit;
    border: 1px solid var(--gu-border); border-radius: var(--gu-radius-lg); overflow: hidden;
    transition: box-shadow .2s ease;
}
.gu-blog-card:hover { box-shadow: var(--gu-shadow); text-decoration: none; color: inherit; }
.gu-blog-card__thumb { width: 100%; height: 150px; object-fit: cover; display: block; background: var(--gu-bg-soft); }
.gu-blog-card__body { padding: 14px 16px; }
.gu-blog-card__title {
    font-size: .92rem; font-weight: 700; color: var(--gu-navy); line-height: 1.4; margin: 0 0 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gu-blog-card__date { font-size: .76rem; color: var(--gu-slate); }
.gu-blog-carousel-arrow {
    position: absolute; top: 65px; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--gu-border); background: var(--gu-white); color: var(--gu-navy); cursor: pointer; z-index: 2;
}
.gu-blog-carousel-arrow:hover { background: var(--gu-bg-soft); }
.gu-blog-carousel-arrow--prev { left: -20px; }
.gu-blog-carousel-arrow--next { right: -20px; }
@media (max-width: 650px) {
    .gu-blog-carousel-arrow { display: none; }
    .gu-blog-card { flex-basis: 220px; }
}

/* ── Course detail page ──────────────────────────────────────────────── */

/* Same gradient as .gu-hero for visual consistency across pages, but keeps its
   own (smaller) padding/heading size - unlike courses.html, nothing overlaps
   into extra bottom padding here, and the H1 is an arbitrary course title
   rather than a short crafted headline, so it needs to stay compact. */
@media (max-width: 575px) {
    .gu-course-meta-row { gap: 20px; }
}

@media (max-width: 991px) {
    #gu-sidebar { position: static; }
    #gu-course-preview { margin-top: 28px; }
}

.gu-course-preview { position: relative; border-radius: var(--gu-radius-lg); overflow: hidden; cursor: pointer; aspect-ratio: 16/9; background: var(--gu-bg-soft); }
.gu-course-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gu-course-preview__play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px;
    border-radius: 50%; background: rgba(255,255,255,.92); color: var(--gu-primary); font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,25,49,.25);
    transition: transform .2s;
}
.gu-course-preview__play i { margin-left: 3px; }
.gu-course-preview:hover .gu-course-preview__play { transform: translate(-50%, -50%) scale(1.08); }

.gu-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--gu-border); margin: 32px 0 24px; overflow-x: auto; }
.gu-tabs button {
    background: none; border: none; padding: 14px 2px; font-weight: 700; font-size: .95rem;
    color: var(--gu-slate); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap;
}
.gu-tabs button.active { color: var(--gu-primary); border-bottom-color: var(--gu-primary); }
/* Mouse clicks left the browser's default focus box on the button - keep a
   visible ring for keyboard users (:focus-visible) without showing it on click. */
.gu-tabs button:focus { outline: none; }
.gu-tabs button:focus-visible { outline: 2px solid var(--gu-primary); outline-offset: 2px; }
.gu-tab-panel { display: none; }
.gu-tab-panel.active { display: block; }

.gu-curriculum-section { border: 1px solid var(--gu-border); border-radius: var(--gu-radius); margin-bottom: 12px; overflow: hidden; }
.gu-curriculum-section__head {
    display: flex; justify-content: space-between; align-items: center; padding: 16px 20px;
    background: var(--gu-bg-soft); cursor: pointer; font-weight: 700; color: var(--gu-navy);
}
.gu-curriculum-section__meta { font-size: .8rem; font-weight: 500; color: var(--gu-slate); }
.gu-curriculum-section__body { display: none; }
.gu-curriculum-section.open .gu-curriculum-section__body { display: block; }
.gu-curriculum-section.open .gu-curriculum-section__head i { transform: rotate(180deg); }
.gu-lecture-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--gu-border); font-size: .9rem; }
.gu-lecture-row i.gu-lecture-type { color: var(--gu-primary); margin-right: 10px; width: 16px; text-align: center; }
.gu-lecture-row .gu-lecture-lock { color: #b3bac2; }
.gu-lecture-row .gu-lecture-duration { color: var(--gu-slate); font-size: .82rem; }

/* Only the compact Enroll/CTA card floats - not the whole #gu-sidebar stack
   (CTA + Course Details + Referral + Popular Courses), which together run
   taller than most viewports and would scroll the Enroll button out of view
   long before the page itself finishes scrolling. */
#gu-sidebar-cta-card {
    position: sticky; top: 90px;
    background: var(--gu-white);
    box-shadow: 0 16px 36px rgba(0, 25, 49, .16);
}
.gu-sidebar-card { border: 1px solid var(--gu-border); border-radius: var(--gu-radius-lg); box-shadow: var(--gu-shadow); overflow: hidden; }
.gu-sidebar-card__body { padding: 22px; }

.gu-enroll-split-btn {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: var(--gu-primary); color: var(--gu-white); border: none; border-radius: var(--gu-radius);
    padding: 14px 18px; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
}
.gu-enroll-split-btn:hover { background: var(--gu-primary-dark); color: var(--gu-white); }
.gu-enroll-split-btn__price s { opacity: .7; font-weight: 400; margin-right: 6px; }

.gu-wishlist-share-row { display: flex; gap: 20px; margin: 16px 0 0; }
.gu-wishlist-share-row button {
    background: none; border: none; padding: 0; color: var(--gu-slate); font-size: .88rem;
    cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.gu-wishlist-share-row button:hover { color: var(--gu-primary); }

.gu-sidebar-course-item { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--gu-border); }
.gu-sidebar-course-item:first-child { border-top: none; padding-top: 0; }
.gu-sidebar-course-item img { width: 64px; height: 48px; object-fit: cover; border-radius: var(--gu-radius); flex-shrink: 0; }
.gu-sidebar-course-item__title { font-weight: 700; color: var(--gu-navy); font-size: .85rem; line-height: 1.3; margin-bottom: 4px; }
.gu-sidebar-course-item__meta { font-size: .8rem; color: var(--gu-slate); }

.gu-includes-list { list-style: none; margin: 12px 0 0; padding: 0; font-size: .87rem; }
.gu-includes-list li { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--gu-border); color: var(--gu-slate); }
.gu-includes-list li i { color: var(--gu-primary); margin-right: 6px; width: 14px; text-align: center; }
.gu-share-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.gu-share-row a, .gu-share-row button {
    width: 34px; height: 34px; border-radius: 50%; background: var(--gu-bg-soft); color: var(--gu-slate);
    display: flex; align-items: center; justify-content: center; border: none; padding: 0; cursor: pointer;
}
.gu-share-row a:hover, .gu-share-row button:hover { background: var(--gu-primary-tint); color: var(--gu-primary); }

.gu-description-body.collapsed { max-height: 160px; overflow: hidden; position: relative; }
.gu-description-body.collapsed::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), var(--gu-white));
}
.gu-show-more-btn { display: inline-block; margin-top: 10px; color: var(--gu-primary); font-weight: 700; cursor: pointer; font-size: .9rem; }

.gu-avatar-circle {
    width: 48px; height: 48px; border-radius: 50%; background: var(--gu-primary); color: var(--gu-white);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.gu-avatar-circle--sm { width: 36px; height: 36px; font-size: .8rem; }

.gu-course-meta-row { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }
.gu-course-meta-row__item { display: flex; align-items: center; gap: 10px; }
.gu-course-meta-row__icon { font-size: 1.4rem; color: var(--gu-slate); width: 36px; text-align: center; }
.gu-course-meta-row__label { font-size: .78rem; color: var(--gu-slate); }
.gu-course-meta-row__value { font-weight: 700; color: var(--gu-navy); }
.gu-course-meta-row__value a { color: inherit; }
.gu-course-meta-row__value a:hover { color: var(--gu-primary); }

.gu-review-summary { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.gu-review-summary__score { font-size: 2.4rem; font-weight: 800; color: var(--gu-navy); }
.gu-review-item { padding: 16px 0; border-top: 1px solid var(--gu-border); }
.gu-review-item__head { display: flex; justify-content: space-between; font-weight: 700; color: var(--gu-navy); margin-bottom: 4px; }

/* ── Dashboard shell (learner / instructor / admin) ──────────────────────
   Used to reserve a 240px sidebar column for .gu-dashboard-nav, a local
   sub-nav that duplicated every link already in the global header dropdown
   (see js/nav.js) except Analytics, which moved into that dropdown - the
   sidebar itself was removed from all 9 pages, freeing this width for content
   (the wide admin tables/stat grids that needed it most). */

/* padding shorthand replaces all four sides, not just top/bottom - this used to
   be "36px 0", which fully overrode .gu-container's "0 20px" (equal specificity,
   later rule wins the whole property) and silently zeroed the side gutters on
   every dashboard-style page instead of just adding vertical spacing. */
.gu-dashboard { padding: 36px 20px; }
.gu-dashboard-content h2 { font-size: 1.4rem; margin-bottom: 20px; }

.gu-stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.gu-stat-card { border: 1px solid var(--gu-border); border-radius: var(--gu-radius); padding: 20px; }
.gu-stat-card .gu-stat-val { font-size: 1.5rem; text-align: left; }
.gu-stat-card .gu-stat-label { text-align: left; }

.gu-progress { background: var(--gu-bg-soft); border-radius: 40px; height: 8px; overflow: hidden; }
.gu-progress > div { background: var(--gu-primary); height: 100%; }

@media (max-width: 850px) {
    .gu-stat-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .gu-stat-cards { grid-template-columns: 1fr; }
}

.gu-benefit-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gu-benefit-card { border: 1px solid var(--gu-border); border-radius: var(--gu-radius-lg); padding: 24px 20px; text-align: center; }
.gu-benefit-card i { font-size: 1.6rem; color: var(--gu-primary); margin-bottom: 14px; }
.gu-benefit-card h4 { font-size: 1rem; margin-bottom: 8px; }
.gu-benefit-card p { font-size: .87rem; color: var(--gu-slate); margin: 0; }

.gu-steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 820px; margin: 0 auto; }
.gu-step { text-align: center; }
.gu-step__num {
    width: 40px; height: 40px; border-radius: 50%; background: var(--gu-primary); color: var(--gu-white);
    display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 12px;
}
.gu-step h4 { font-size: .98rem; margin-bottom: 6px; }
.gu-step p { font-size: .87rem; color: var(--gu-slate); margin: 0; }

@media (max-width: 850px) {
    .gu-benefit-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
    .gu-steps-row { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
    .gu-benefit-cards { grid-template-columns: 1fr; }
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.gu-footer { background: var(--gu-navy); color: rgba(255, 255, 255, .72); padding: 56px 0 0; margin-top: 60px; }
.gu-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.gu-footer a:hover { color: var(--gu-white); }
.gu-footer h6 { color: var(--gu-white); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 18px; }
.gu-footer h6.gu-footer-brand { text-transform: none; letter-spacing: normal; }
.gu-footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 40px; }
.gu-footer-cols a { display: block; margin-bottom: 10px; font-size: .88rem; }
.gu-footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: .85rem; line-height: 1.5; }
.gu-footer-contact-item i { color: var(--gu-primary); width: 16px; margin-top: 3px; flex-shrink: 0; }
.gu-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .82rem; text-align: center; }

@media (max-width: 767px) { .gu-footer-cols { grid-template-columns: 1fr 1fr; } }

/* ── Course player ───────────────────────────────────────────────────── */

/* Immersive player: whole viewport, no page-level scroll - the site header is
   kept in the DOM (gurukulBootstrap() requires #header to exist to run the auth
   check) but hidden, and the topbar/main/sidebar become a fixed-height flex
   column with two independently-scrolling panes, like a real video player
   instead of a page that happens to contain a video. */
body.gu-player-page { margin: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
body.gu-player-page #header { display: none; }

.gu-player-topbar {
    display: flex; align-items: center; gap: 20px; padding: 14px 28px; border-bottom: 1px solid var(--gu-border);
    flex-wrap: wrap; flex-shrink: 0; background: var(--gu-white);
}
.gu-player-topbar a { color: var(--gu-navy); font-weight: 700; text-decoration: none; white-space: nowrap; }
#gu-player-course-title { overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.gu-player-progress-track { flex: 1; min-width: 120px; background: var(--gu-border); height: 8px; border-radius: 40px; overflow: hidden; }
.gu-player-progress-track > div { background: var(--gu-green); height: 100%; transition: width .3s; }
#gu-player-progress-label { font-size: .82rem; color: var(--gu-slate); white-space: nowrap; }
.gu-player-topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.gu-player-topbar-actions .gu-btn { padding: 8px 14px; font-size: .85rem; white-space: nowrap; }
#gu-player-prev-btn, #gu-player-next-btn { padding: 8px 12px; }

.gu-player-layout { display: grid; grid-template-columns: 1fr 340px; flex: 1; min-height: 0; }
.gu-player-main { padding: 0; overflow-y: auto; min-height: 0; }
.gu-player-main__body { padding: 24px 32px 32px; }
.gu-player-main__body h3 { margin-bottom: 18px; }
/* Full width, full video, no cropping - cropping to hit a fixed height (an
   earlier attempt) cut off real content (badges/text near the top and bottom
   of the frame), which looked worse than just scrolling a bit to see the tabs
   below. Same as Udemy's own player: full-width, natural 16:9 height. */
.gu-player-video { background: #000; }
.gu-player-video iframe, .gu-player-video video { width: 100%; aspect-ratio: 16/9; display: block; border: none; }
.gu-player-article { line-height: 1.75; color: var(--gu-slate); padding: 28px 32px; }
.gu-player-pdf iframe { width: 100%; height: 80vh; border: none; display: block; background: var(--gu-bg-soft); }
.gu-player-pdf__open { margin: 16px 20px; }

/* Shown over a locked lecture's video sample once playback hits the cutoff
   (see attachTeaserCutoff in course-detail.js) - a soft nudge, not a lock
   screen the user can't see past, so it stays translucent over the paused frame. */
.gu-preview-teaser-overlay {
    position: absolute; inset: 0; background: rgba(0,10,25,.88); color: var(--gu-white);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 16px; text-align: center; padding: 24px;
}
.gu-preview-teaser-overlay p { margin: 0; font-size: 1.05rem; font-weight: 600; }
.gu-player-sidebar {
    border-left: 1px solid var(--gu-border); background: var(--gu-bg-soft);
    overflow-y: auto; min-height: 0;
}

.gu-player-qa-item { padding: 14px 0; border-top: 1px solid var(--gu-border); }
.gu-player-qa-item:first-child { border-top: none; padding-top: 0; }
.gu-player-qa-reply { padding: 8px 12px; margin: 8px 0 0 20px; background: var(--gu-bg-soft); border-radius: var(--gu-radius); font-size: .85rem; }
.gu-player-qa-ask { display: flex; gap: 8px; margin-bottom: 20px; }

@media (max-width: 900px) {
    /* Two independently-scrolling panes stop making sense on a small screen -
       fall back to one normal, page-scrolling column instead. */
    body.gu-player-page { height: auto; overflow: visible; display: block; }
    .gu-player-layout { display: block; }
    .gu-player-main, .gu-player-sidebar { overflow-y: visible; height: auto; }
    .gu-player-sidebar { border-left: none; border-top: 1px solid var(--gu-border); }
}

@media (max-width: 575px) {
    .gu-player-topbar { padding: 12px 16px; gap: 10px; }
    #gu-player-course-title { max-width: 120px; }
    .gu-player-main__body { padding: 20px 16px 24px; }
    .gu-player-article { padding: 20px 16px; }
}

/* ── Certificate ─────────────────────────────────────────────────────── */

.gu-certificate {
    max-width: 900px; margin: 40px auto; padding: 60px; text-align: center;
    border: 3px solid var(--gu-primary); position: relative; background: var(--gu-white);
}
.gu-certificate::before {
    content: ''; position: absolute; inset: 12px; border: 1px solid var(--gu-gold);
}
.gu-certificate h1 { font-size: 1rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gu-slate); }
.gu-certificate .gu-cert-name { font-size: 2.4rem; color: var(--gu-navy); margin: 18px 0; }
.gu-certificate .gu-cert-course { font-size: 1.3rem; color: var(--gu-primary); margin-bottom: 18px; }
.gu-certificate .gu-cert-meta { display: flex; justify-content: space-around; margin-top: 40px; font-size: .85rem; color: var(--gu-slate); flex-wrap: wrap; gap: 16px; }

@media (max-width: 650px) {
    .gu-certificate { padding: 28px 20px; margin: 20px auto; }
    .gu-certificate .gu-cert-name { font-size: 1.5rem; }
    .gu-certificate .gu-cert-course { font-size: 1.05rem; }
}

/* ── Quiz ────────────────────────────────────────────────────────────── */

.gu-quiz-question { border: 1px solid var(--gu-border); border-radius: var(--gu-radius); padding: 20px; margin-bottom: 16px; }
.gu-quiz-question h5 { margin-bottom: 14px; }
.gu-quiz-option { display: block; padding: 10px 14px; border: 1px solid var(--gu-border); border-radius: var(--gu-radius); margin-bottom: 8px; cursor: pointer; font-weight: 500; }
.gu-quiz-option:hover { border-color: var(--gu-primary); }
.gu-quiz-option input { margin-right: 10px; }

@media print {
    .gu-nav, .gu-footer, #gu-cert-print-btn { display: none !important; }
    .gu-certificate { border-color: #000; margin: 0; }
    .gu-certificate::before { border-color: #000; }
}

/* ── Sweetalert theme override ──────────────────────────────────────────
   The library injects its own <style> tag at runtime, after this stylesheet
   in the DOM, so equal-specificity rules would normally lose to its defaults.
   Body-prefixed selectors + targeted !important keep these winning regardless
   of script load order. Class names taken from the actual sweetalert@2.1.2
   bundle (it ships no separate CSS file to reference). ────────────────── */

body .swal-overlay { background: rgba(0, 25, 49, .55); }
body .swal-modal {
    border-radius: var(--gu-radius-lg);
    font-family: 'Albert Sans', sans-serif;
    box-shadow: var(--gu-shadow-hover);
}
body .swal-title { color: var(--gu-navy); font-family: 'Albert Sans', sans-serif; font-weight: 700; }
body .swal-text { color: var(--gu-slate); font-family: 'Albert Sans', sans-serif; text-align: center; }

body .swal-icon--error__line { background-color: var(--gu-danger) !important; }
body .swal-icon--error { border-color: var(--gu-danger) !important; }
body .swal-icon--warning { border-color: var(--gu-gold) !important; }
body .swal-icon--warning__body, body .swal-icon--warning__dot { background-color: var(--gu-gold) !important; }
body .swal-icon--info { border-color: var(--gu-primary) !important; background-color: var(--gu-primary) !important; }
body .swal-icon--success__ring { border-color: rgba(23, 210, 146, .3) !important; }
body .swal-icon--success__line { background-color: var(--gu-green) !important; }
body .swal-icon--success__hide-corners { background: var(--gu-white) !important; }

body .swal-button {
    background-color: var(--gu-primary);
    border-radius: 45px;
    font-family: 'Albert Sans', sans-serif;
    font-weight: 600;
    padding: 10px 24px;
    box-shadow: none;
}
body .swal-button:not([disabled]):hover { background-color: var(--gu-primary-dark); }
body .swal-button:active { background-color: var(--gu-primary-dark); }
body .swal-button:focus { box-shadow: 0 0 0 2px var(--gu-primary-tint); }
body .swal-button--cancel { background-color: var(--gu-bg-soft); color: var(--gu-slate); }
body .swal-button--cancel:not([disabled]):hover { background-color: var(--gu-border); }
body .swal-button--danger { background-color: var(--gu-danger); }
body .swal-button--danger:not([disabled]):hover { background-color: #c92e2e; }

body .swal-content__input, body .swal-content__textarea {
    border: 1px solid var(--gu-border);
    border-radius: var(--gu-radius);
    font-family: 'Albert Sans', sans-serif;
}

/* ── Bootstrap modal fixes ───────────────────────────────────────────────
   The vendored bootstrap.min.css mixes an older .modal-header (plain block,
   no flex) with a newer, larger .close icon - the old "margin-top:-2px"
   fine-tune was calibrated for a smaller icon, so the X now overflows past
   the header's bottom border. Flexbox sidesteps the float/margin hack
   entirely instead of re-tuning a magic-number offset. */
.modal-header { display: flex; align-items: center; justify-content: space-between; }
.modal-header .close { float: none; margin: 0; line-height: 1; }
body .swal-content__input:focus, body .swal-content__textarea:focus { border-color: var(--gu-primary); }
