/* =============================================================
   VAREDUN — site styles
   One stylesheet for the home, Games, and For Teachers pages.
   All classes are namespaced with `vd-` to avoid clashing with
   the theme, Bootstrap, or WordPress block styles.
   Load this AFTER the theme CSS so these rules win.
   ============================================================= */

:root {
    --vd-blue:       #0470B8;
    --vd-blue-dark:  #0359a0;
    --vd-navy:       #12314a;
    --vd-ink:        #16324a;
    --vd-green:      #20b15a;
    --vd-yellow:     #ffcf4d;
    --vd-gold:       #c98a00;
    --vd-muted:      #5b6f82;
    --vd-muted-2:    #8095a8;
    --vd-body:       #4a5f73;
    --vd-line:       #eef2f6;
    --vd-line-blue:  #cbe4fa;
    --vd-sky:        #eef7ff;
    --vd-wrap:       1200px;
    --vd-pad-x:      28px;
    --vd-radius:     24px;
    --font-head:     'Baloo 2', system-ui, sans-serif;
    --font-body:     'Nunito', system-ui, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body) !important;
    color: var(--vd-ink);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body a { color: var(--vd-blue); text-decoration: none; }
body a:hover { color: var(--vd-blue-dark); }
img { max-width: 100%; }

.vd-wrap {
    max-width: var(--vd-wrap);
    margin: 0 auto;
    padding-left: var(--vd-pad-x);
    padding-right: var(--vd-pad-x);
}

.vd-eyebrow {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--vd-blue);
    margin: 0;
}
.vd-eyebrow--gold { color: var(--vd-yellow); }

.vd-h1 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 58px;
    line-height: 1.04;
    letter-spacing: -.5px;
    margin: 20px 0 0;
    color: var(--vd-navy);
}
.vd-h1 .vd-accent { color: var(--vd-blue); }

.vd-h2 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 42px;
    margin: 8px 0 0;
    color: var(--vd-navy);
}
.vd-h2--sm { font-size: 32px; }

.vd-lead {
    font-size: 19px;
    line-height: 1.6;
    color: var(--vd-body);
    font-weight: 600;
    max-width: 520px;
    margin: 20px 0 0;
}

.vd-center { text-align: center; }
.vd-center .vd-lead,
.vd-center .vd-h2 { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.vd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 17px;
    padding: 15px 30px;
    border-radius: 999px;
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.vd-btn:hover { transform: translateY(-2px); }
.vd-btn--green { background: var(--vd-green); color: #fff; box-shadow: 0 10px 24px rgba(32,177,90,.35); }
.vd-btn--green:hover { color: #fff; }
.vd-btn--blue { background: var(--vd-blue); color: #fff; box-shadow: 0 10px 24px rgba(4,112,184,.28); }
.vd-btn--blue:hover { color: #fff; }
.vd-btn--ghost { background: #fff; color: var(--vd-blue); border-color: var(--vd-line-blue); }
.vd-btn--ghost:hover { color: var(--vd-blue-dark); }
.vd-btn--sm { font-size: 15px; padding: 12px 22px; }
.vd-btn--block { display: flex; width: 100%; border-radius: 12px; padding: 12px; }

/* =============================================================
   HEADER
   ============================================================= */
.vd-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--vd-line);
}
.vd-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.vd-logo { display: flex; align-items: center; gap: 10px; }
.vd-logo img { display: block; height: 40px; width: auto; }

.vd-nav {
    display: flex;
    gap: 26px;
    margin-left: 18px;
    font-weight: 700;
    font-size: 15px;
}
.vd-nav a { color: #42566a; }
.vd-nav a:hover { color: var(--vd-blue); }

.vd-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}
.vd-login { font-weight: 700; font-size: 15px; color: #42566a; }

/* mobile menu toggle (CSS-only, no JS dependency) */
.vd-nav-toggle { display: none; }
.vd-burger {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--vd-line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    position: relative;
}
.vd-burger span,
.vd-burger span::before,
.vd-burger span::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--vd-navy);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: transform .2s ease, opacity .2s ease;
}
.vd-burger span { top: 50%; }
.vd-burger span::before { top: -6px; }
.vd-burger span::after  { top: 6px; }

/* =============================================================
   HERO
   ============================================================= */
.vd-hero {
    position: relative;
    background: linear-gradient(180deg, var(--vd-sky) 0%, #ffffff 100%);
    overflow: hidden;
}
.vd-hero__blob {
    position: absolute;
    top: -80px;
    right: -60px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffe08a, #ffcf4d);
    opacity: .35;
    filter: blur(6px);
    pointer-events: none;
}
.vd-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 40px;
    align-items: center;
    padding-top: 70px;
    padding-bottom: 80px;
}
.vd-hero--compact .vd-hero__inner { padding-top: 54px; padding-bottom: 54px; }
.vd-hero__inner--rel { position: relative; }
.vd-hero__center { position: relative; padding-top: 54px; padding-bottom: 54px; }
.vd-hero__cta--center { justify-content: center; }

/* hero variant of the class-code card (For Teachers) */
.vd-codecard--hero { padding: 26px 34px; }
.vd-codecard--hero .vd-codecard__code { font-size: 44px; letter-spacing: 6px; margin: 4px 0; }
.vd-codecard__hint { font-size: 13px; font-weight: 700; color: var(--vd-muted-2); max-width: 200px; margin: 4px auto 0; }

.vd-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #d5e9fb;
    color: var(--vd-blue);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .4px;
    padding: 7px 14px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(4,112,184,.08);
}

.vd-hero__cta {
    display: flex;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.vd-stats {
    display: flex;
    gap: 26px;
    margin-top: 34px;
    flex-wrap: wrap;
}
.vd-stat__num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 26px;
    color: var(--vd-navy);
}
.vd-stat__label { font-size: 13px; font-weight: 700; color: var(--vd-muted-2); }
.vd-stats .vd-divider { width: 1px; background: #e3ecf4; }

.vd-hero__art {
    display: flex;
    justify-content: center;
    position: relative;
}
.vd-hero__art-shadow {
    position: absolute;
    bottom: 0;
    width: 280px;
    height: 60px;
    background: rgba(4,112,184,.18);
    filter: blur(24px);
    border-radius: 50%;
}
.vd-phone {
    position: relative;
    width: 250px;
    background: #16324a;
    border: 8px solid #16324a;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(18,49,74,.28);
    animation: vd-floaty 5s ease-in-out infinite;
}
.vd-phone img { display: block; width: 100%; height: auto; }

@keyframes vd-floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

/* =============================================================
   TEACHER STRIP
   ============================================================= */
.vd-teachers { background: var(--vd-navy); color: #fff; }
.vd-teachers__inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 36px;
    align-items: center;
    padding-top: 44px;
    padding-bottom: 44px;
}
.vd-teachers h2 { font-family: var(--font-head); font-weight: 800; font-size: 32px; margin: 8px 0 10px; }
.vd-teachers p { font-size: 17px; line-height: 1.6; color: #c3d4e3; font-weight: 600; margin: 0; max-width: 560px; }
.vd-teachers__cta {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: flex-end;
}
.vd-codecard {
    background: #fff;
    border-radius: 16px;
    padding: 18px 22px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.vd-codecard__label { font-size: 12px; font-weight: 800; color: var(--vd-muted-2); letter-spacing: 1px; }
.vd-codecard__code {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 34px;
    color: var(--vd-blue);
    letter-spacing: 4px;
}
.vd-teachers__arrow { font-size: 44px; line-height: 1; }
.vd-teachers__link {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 18px;
    color: var(--vd-yellow);
    max-width: 120px;
    line-height: 1.2;
}
.vd-teachers__link:hover { color: var(--vd-yellow); }

/* =============================================================
   SECTIONS (generic vertical rhythm)
   ============================================================= */
.vd-section { padding-top: 80px; padding-bottom: 40px; }
.vd-section--tight { padding-top: 60px; padding-bottom: 20px; }
.vd-section--pad { padding-top: 60px; padding-bottom: 60px; }

/* =============================================================
   CARDS / GAMES GRID
   ============================================================= */
.vd-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 44px;
}
.vd-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--vd-line);
    border-radius: var(--vd-radius);
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(18,49,74,.08);
}
.vd-card__media {
    aspect-ratio: 16 / 11;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #2f4a63;
}
.vd-card__media--contain img { height: 100%; width: auto; }
.vd-card__media--cover img { width: 100%; height: 100%; object-fit: cover; }
.vd-card__media--a { background: #2f4a63; }
.vd-card__media--b { background: #4a628a; }
.vd-card__media--c { background: #0e0e12; }
.vd-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 24px;
}
.vd-card__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 23px;
    margin: 12px 0 6px;
    color: var(--vd-navy);
}
.vd-card__text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--vd-muted);
    font-weight: 600;
    margin: 0 0 18px;
    flex: 1;
}

.vd-tag {
    display: inline-flex;
    align-self: flex-start;
    font-weight: 800;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 999px;
}
.vd-tag--green { background: #eafaf0; color: var(--vd-green); }
.vd-tag--blue  { background: #eef4ff; color: var(--vd-blue); }
.vd-tag--gold  { background: #fff5da; color: var(--vd-gold); }

/* =============================================================
   MISSION / FEATURES
   ============================================================= */
.vd-mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 44px;
}
.vd-feature {
    border-radius: 22px;
    padding: 30px;
    background: #f5f9fd;
}
.vd-feature--blue  { background: #f5f9fd; }
.vd-feature--gold  { background: #fdf6ea; }
.vd-feature--green { background: #eafaf0; }
.vd-feature__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
}
.vd-feature__icon--blue  { background: var(--vd-blue); }
.vd-feature__icon--gold  { background: #e0a500; }
.vd-feature__icon--green { background: var(--vd-green); }
.vd-feature h3 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 22px;
    margin: 18px 0 8px;
    color: var(--vd-navy);
}
.vd-feature p { font-size: 15px; line-height: 1.6; color: var(--vd-muted); font-weight: 600; margin: 0; }

/* =============================================================
   NEWS BANNER
   ============================================================= */
.vd-news {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: center;
    background: linear-gradient(120deg, var(--vd-blue), #0a5aa0);
    border-radius: 26px;
    padding: 44px;
    color: #fff;
    box-shadow: 0 20px 50px rgba(4,112,184,.25);
}
.vd-news__icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
}
.vd-news h3 { font-family: var(--font-head); font-weight: 800; font-size: 26px; margin: 8px 0 10px; }
.vd-news p { font-size: 16px; line-height: 1.6; color: #dce8f4; font-weight: 600; margin: 0; max-width: 760px; }

/* =============================================================
   CONTACT CTA
   ============================================================= */
.vd-cta { background: #fdf6ea; }
.vd-cta__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 70px var(--vd-pad-x);
    text-align: center;
}
.vd-cta h2 { font-family: var(--font-head); font-weight: 800; font-size: 38px; margin: 0 0 12px; color: var(--vd-navy); }
.vd-cta p { font-size: 18px; line-height: 1.6; color: var(--vd-muted); font-weight: 600; max-width: 560px; margin: 0 auto 28px; }

/* =============================================================
   STEPS (For Teachers "how it works")
   ============================================================= */
.vd-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 44px;
}
.vd-step {
    position: relative;
    background: #fff;
    border: 1px solid var(--vd-line);
    border-radius: 22px;
    padding: 32px 28px 28px;
    box-shadow: 0 10px 28px rgba(18,49,74,.06);
}
.vd-step__num {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--vd-blue);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vd-step h3 { font-family: var(--font-head); font-weight: 800; font-size: 20px; margin: 18px 0 8px; color: var(--vd-navy); }
.vd-step p { font-size: 15px; line-height: 1.6; color: var(--vd-muted); font-weight: 600; margin: 0; }

/* =============================================================
   GAME DETAIL ROWS (Games page)
   ============================================================= */
.vd-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--vd-line);
}
.vd-detail:last-child { border-bottom: 0; }
.vd-detail--flip .vd-detail__media { order: 2; }
.vd-detail__media {
    border-radius: var(--vd-radius);
    overflow: hidden;
    aspect-ratio: 16 / 11;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(18,49,74,.12);
}
.vd-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.vd-detail__media--contain img { width: auto; height: 100%; object-fit: contain; }
.vd-detail h3 { font-family: var(--font-head); font-weight: 800; font-size: 30px; margin: 14px 0 10px; color: var(--vd-navy); }
.vd-detail p { font-size: 16px; line-height: 1.6; color: var(--vd-muted); font-weight: 600; margin: 0 0 20px; }
.vd-detail__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.vd-detail__actions--mt { margin-top: 18px; }
.vd-detail__meta { display: flex; gap: 20px; flex-wrap: wrap; margin: 0 0 18px; }
.vd-detail__meta div span { display: block; }
.vd-meta-k { font-size: 12px; font-weight: 800; letter-spacing: .5px; color: var(--vd-muted-2); }
.vd-meta-v { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--vd-navy); }

/* =============================================================
   FAQ (For Teachers page)
   ============================================================= */
.vd-faq { max-width: 820px; margin: 44px auto 0; display: flex; flex-direction: column; gap: 14px; }
.vd-faq details {
    background: #f5f9fd;
    border: 1px solid var(--vd-line);
    border-radius: 16px;
    padding: 20px 24px;
}
.vd-faq summary {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 18px;
    color: var(--vd-navy);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.vd-faq summary::-webkit-details-marker { display: none; }
.vd-faq summary::after { content: "+"; font-size: 26px; color: var(--vd-blue); line-height: 1; }
.vd-faq details[open] summary::after { content: "\2013"; }
.vd-faq p { font-size: 15px; line-height: 1.6; color: var(--vd-muted); font-weight: 600; margin: 14px 0 0; }

/* =============================================================
   FOOTER
   ============================================================= */
.vd-footer { background: var(--vd-navy); color: #c3d4e3; }
.vd-footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 30px;
}
.vd-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 24px;
    color: #fff;
}
.vd-footer p { font-size: 15px; line-height: 1.6; font-weight: 600; margin: 16px 0 0; max-width: 360px; }
.vd-footer__head {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    color: #fff;
}
.vd-footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    font-weight: 600;
}
.vd-footer__links a,
.vd-footer__col a { color: #c3d4e3; }
.vd-footer__links a:hover,
.vd-footer__col a:hover { color: #fff; }
.vd-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    font-weight: 600;
    font-size: 15px;
}
.vd-social { display: flex; gap: 12px; margin-top: 18px; }
.vd-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 800;
    color: #fff;
    font-size: 16px;
}
.vd-social a:hover { background: rgba(255,255,255,.2); color: #fff; }
.vd-copy {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px var(--vd-pad-x);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #7f95aa;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* Tablet / small laptop */
@media (max-width: 980px) {
    .vd-hero__inner { grid-template-columns: 1fr; gap: 28px; }
    .vd-hero__art { order: -1; }
    .vd-h1 { font-size: 46px; }
    .vd-teachers__inner { grid-template-columns: 1fr; gap: 24px; }
    .vd-teachers__cta { justify-content: flex-start; }
    .vd-games-grid { grid-template-columns: repeat(2, 1fr); }
    .vd-steps { grid-template-columns: repeat(2, 1fr); }
    .vd-detail { grid-template-columns: 1fr; gap: 24px; }
    .vd-detail--flip .vd-detail__media { order: -1; }
}

/* Phones */
@media (max-width: 720px) {
    :root { --vd-pad-x: 20px; }

    /* header: collapse nav into a toggle menu */
    .vd-header__inner { position: relative; flex-wrap: wrap; gap: 0; row-gap: 0; }
    .vd-logo { margin-right: auto; }
    .vd-burger { display: block; margin-left: 0; }

    .vd-nav,
    .vd-header__actions {
        display: none;
        flex-basis: 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
    }
    .vd-nav { margin-top: 8px; }
    .vd-nav a { padding: 13px 4px; border-top: 1px solid var(--vd-line); font-size: 16px; }
    .vd-header__actions { padding-bottom: 10px; }
    .vd-header__actions .vd-login { padding: 13px 4px; border-top: 1px solid var(--vd-line); }
    .vd-header__actions .vd-btn { justify-content: center; margin-top: 10px; }

    .vd-nav-toggle:checked ~ .vd-nav,
    .vd-nav-toggle:checked ~ .vd-header__actions { display: flex; }
    .vd-nav-toggle:checked ~ .vd-burger span { background: transparent; }
    .vd-nav-toggle:checked ~ .vd-burger span::before { transform: translateX(-50%) rotate(45deg); top: 0; }
    .vd-nav-toggle:checked ~ .vd-burger span::after  { transform: translateX(-50%) rotate(-45deg); top: 0; }

    .vd-h1 { font-size: 36px; }
    .vd-lead { font-size: 17px; }
    .vd-h2 { font-size: 30px; }
    .vd-h2--sm { font-size: 26px; }

    .vd-hero__inner { padding-top: 40px; padding-bottom: 48px; }
    .vd-section { padding-top: 52px; padding-bottom: 28px; }
    .vd-section--tight,
    .vd-section--pad { padding-top: 44px; padding-bottom: 40px; }

    .vd-stats { gap: 18px; }
    .vd-stats .vd-divider { display: none; }

    .vd-btn { font-size: 16px; padding: 14px 24px; }
    .vd-hero__cta .vd-btn { flex: 1 1 auto; }

    .vd-games-grid,
    .vd-mission-grid,
    .vd-steps { grid-template-columns: 1fr; }

    .vd-teachers__cta { flex-wrap: wrap; gap: 16px; }
    .vd-teachers__arrow { display: none; }

    .vd-news { grid-template-columns: 1fr; padding: 30px; text-align: left; }
    .vd-news__icon { width: 64px; height: 64px; font-size: 30px; }

    .vd-cta__inner { padding-top: 52px; padding-bottom: 52px; }
    .vd-cta h2 { font-size: 30px; }

    .vd-footer__inner { grid-template-columns: 1fr; gap: 30px; }
    .vd-detail h3 { font-size: 26px; }
}

/* =============================================================
   DEFENSIVE HARDENING
   Guards against the WordPress theme, Bootstrap, and Jetpack Boost
   wrappers that surround our content on the live site. These rules
   only touch VAREDUN (`vd-`) elements, so they cannot affect the
   rest of the theme.
   ============================================================= */

/* Full-bleed color bands must ignore any theme/Bootstrap container
   max-width or side padding they get nested inside. */
.vd-hero,
.vd-teachers,
.vd-cta,
.vd-footer {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
}

/* Our centered content column — force it back to spec even if a
   Bootstrap `.row`/`.col` or WP layout wrapper adds negative margins
   or width overrides. */
.vd-wrap {
    max-width: var(--vd-wrap) !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

/* Grids/flex rows must not inherit Bootstrap `.row` negative margins
   or be forced to `display:block` by the theme. */
.vd-detail       { display: grid !important; }
.vd-games-grid,
.vd-mission-grid,
.vd-steps        { display: grid !important; }
.vd-hero__inner,
.vd-teachers__inner,
.vd-footer__inner { display: grid !important; }
.vd-detail,
.vd-games-grid,
.vd-mission-grid,
.vd-steps,
.vd-footer__inner,
.vd-header__inner,
.vd-hero__cta,
.vd-detail__actions {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Buttons: keep the pill shape, correct text color, and inline-flex
   layout even if the theme restyles `a` tags inside content. */
.vd-btn {
    display: inline-flex !important;
    width: auto !important;
    text-decoration: none !important;
    font-family: var(--font-head), system-ui, sans-serif !important;
}
.vd-btn--green,
.vd-btn--blue { color: #fff !important; }
.vd-btn--ghost { color: var(--vd-blue) !important; background: #fff !important; }
.vd-btn--block { display: flex !important; width: 100% !important; }

/* Images inside media frames should fill, never collapse to 0/auto
   from a theme `img { width:auto }` rule. */
.vd-detail__media img,
.vd-card__media img { display: block; }
