/* Video Courses — layout & buttons aligned with live Eduma page:
   Video Courses inner page */

.page-video-courses #main-content.site-content.video-courses-wrap,
.page-video-courses #content.site-content.video-courses-wrap {
    padding: 52px 0 72px;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.page-video-courses #main-content.site-content.video-courses-wrap > .container,
.page-video-courses #content.site-content.video-courses-wrap > .container {
    max-width: 1170px;
}

/* Breadcrumb strip: full viewport width (white bar), inner nav uses .container */
.page-video-courses .courses-breadcrumb-bar {
    max-width: none;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.video-courses-page-inner {
    max-width: 100%;
}

/* ----- Pill “ghost” buttons (orange border + orange text, like YouTube CTA in ref) ----- */
.page-video-courses .btn-instructor-courses,
.page-video-courses .video-btn-yt,
.page-video-courses .video-link-outline,
.page-about-us .video-btn-yt {
    display: block;
    box-sizing: border-box;
    text-align: center;
    padding: 12px 22px;
    border: 2px solid var(--yellow);
    border-radius: 999px;
    background: transparent;
    color: var(--yellow-dark);
    font-family: Roboto, "Open Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.page-video-courses .btn-instructor-courses:hover,
.page-video-courses .video-btn-yt:hover,
.page-video-courses .video-link-outline:hover,
.page-about-us .video-btn-yt:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Intro CTA: rectangular (not pill) + slightly wider than other outline buttons */
.page-video-courses .btn-instructor-courses {
    border-radius: 0;
    min-width: 248px;
    padding: 12px 32px;
}

/* Nav: highlight Video Lessons */
.page-video-courses .nav-desktop .sub a[aria-current="page"],
.page-video-courses .nav-mobile .sub a[aria-current="page"] {
    color: var(--yellow-dark);
}

/* ----- Intro: left copy + right Instructor button (Eduma row layout) ----- */
.video-courses-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px 36px;
    align-items: center;
    margin-bottom: 44px;
}
.video-courses-intro-lead {
    text-align: left;
}
.video-courses-intro-lead p {
    margin: 0;
    font-family: "Roboto Slab", Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
    color: #666;
}
.video-courses-intro .btn-instructor-courses {
    display: inline-block;
    white-space: nowrap;
}
.video-courses-intro .btn-instructor-courses-wrap {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .video-courses-intro {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .video-courses-intro-lead {
        text-align: center;
    }
    .video-courses-intro .btn-instructor-courses-wrap {
        width: 100%;
    }
    .video-courses-intro .btn-instructor-courses {
        width: 100%;
        max-width: 320px;
    }
}

/* ----- YouTube: 16:9 thumbnail + link (opens youtube.com — same pattern as homepage) ----- */
.video-yt-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #0a0a0a;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}
.video-yt-wrap .video-yt-thumb {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}
.video-yt-wrap .video-yt-thumb:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
}
.video-yt-wrap .video-yt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-yt-wrap .video-yt-thumb:hover img {
    filter: brightness(1.06);
}
.video-yt-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 52px;
    margin-left: -36px;
    margin-top: -26px;
    background: rgba(33, 33, 33, 0.92);
    border-radius: 14px;
    pointer-events: none;
    transition: background 0.2s ease;
}
.video-yt-play::before {
    content: "";
    position: absolute;
    left: 54%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent #fff;
}
.video-yt-wrap .video-yt-thumb:hover .video-yt-play {
    background: #c00;
}

/* Primary CTA under featured player: same width as .video-yt-wrap above */
.video-btn-yt {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 22px 0 52px;
    padding: 14px 28px;
}

/* ----- Which 3×3: video + aside text & link ----- */
.which-3x3-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px 40px;
    /* Same row height as left column (video); right column stretches */
    align-items: stretch;
    margin-bottom: 32px;
}
/* Right column: button vertical center = left video center; text sits above, larger gap */
.which-3x3-aside {
    font-size: 15px;
    line-height: 1.65;
    color: #666;
    position: relative;
    min-height: 0;
    height: 100%;
    align-self: stretch;
}
.which-3x3-aside p strong {
    color: #666;
    font-weight: 700;
}
@media (min-width: 992px) {
    .which-3x3-aside .video-link-outline {
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 12px 24px;
        margin: 0;
    }
    /* Paragraph above pill; bottom offset − half pill height ≈ text↔button gap */
    .which-3x3-aside p {
        position: absolute;
        left: 0;
        right: 0;
        bottom: calc(50% + 58px);
        z-index: 2;
        margin: 0;
        text-align: left;
        width: 100%;
        max-width: 100%;
        max-height: min(42vh, calc(50% - 48px));
        overflow-y: auto;
    }
}
@media (max-width: 991px) {
    .which-3x3-row {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .which-3x3-aside {
        position: static;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
    }
    .which-3x3-aside p {
        position: static;
        z-index: auto;
        transform: none;
        margin: 0;
        max-height: none;
        overflow-y: visible;
        text-align: left;
    }
    .which-3x3-aside .video-link-outline {
        position: static;
        transform: none;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 12px 24px;
    }
}

/* ----- Section rules (center title + hairline, Eduma-style) ----- */
/* Section rule → next block = same vertical rhythm as Beginner (60px) */
.video-courses-rule {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 52px 0 60px;
}
.video-courses-rule::before,
.video-courses-rule::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ddd;
}
.video-courses-rule h2 {
    margin: 0;
    padding: 0 8px;
    font-family: "Roboto Slab", Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #333;
    text-align: center;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .video-courses-rule h2 {
        white-space: normal;
    }
}

/* Extra air above / below the first major section (after featured + Which 3×3) */
.video-courses-rule.video-courses-rule--beginner {
    margin-top: 80px;
    /* Same as .video-label-row margin-bottom: Beginner rule → How to solve = How to solve → buttons */
    margin-bottom: 60px;
}

/* ----- Beginner: column headings + part buttons ----- */
.video-label-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 20px;
    margin-bottom: 60px;
}
.video-label-row p {
    margin: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #666;
    line-height: 1.35;
}

.video-parts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 44px;
}
.video-parts-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

@media (max-width: 991px) {
    .video-label-row,
    .video-parts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .video-label-row,
    .video-parts-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Bridge: 2 Look OLL / PLL ----- */
.video-bridge-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    margin: 24px 0 60px;
}
.video-bridge-heading p {
    margin: 0;
    font-size: 15px;
    color: #666;
}
.video-bridge-heading strong {
    font-size: 16px;
    font-weight: 700;
    color: #666;
}

.video-two-col-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    max-width: 720px;
    margin: 0 auto 72px;
}

/* ----- Intermediate mini cards ----- */
.intermediate-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 58px;
}
.intermediate-mini-item {
    text-align: center;
}
.intermediate-mini-item p {
    margin: 0 0 60px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
    color: #666;
}

@media (max-width: 991px) {
    .intermediate-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .intermediate-mini-grid {
        grid-template-columns: 1fr;
    }
}

.intermediate-double-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 60px;
}
.intermediate-double-heading p {
    text-align: center;
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    color: #666;
}

.intermediate-split-parts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    /* Before “Advanced Cubing Tutorials” (4×4 + OLL block) — same air as .video-two-col-buttons → Intermediate */
    margin-bottom: 72px;
    align-items: start;
}
.intermediate-split-parts-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

@media (max-width: 767px) {
    .intermediate-double-heading,
    .intermediate-split-parts,
    .video-two-col-buttons {
        grid-template-columns: 1fr;
    }
}

/* ----- Advanced CFOP ----- */
.cfop-intro {
    text-align: center;
    margin-bottom: 60px;
}
.cfop-intro p {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    color: #666;
}

.cfop-letters-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 60px;
}
.cfop-letter {
    text-align: center;
    font-size: 14px;
    color: #666;
    line-height: 1.45;
}
.cfop-letter strong {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
    color: #666;
}

.cfop-buttons-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 60px;
}
.cfop-buttons-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.cfop-coming {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    text-align: center;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .cfop-letters-row,
    .cfop-buttons-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .cfop-letters-row,
    .cfop-buttons-row {
        grid-template-columns: 1fr;
    }
}

.advanced-headers-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 60px;
}
.advanced-headers-row p {
    text-align: center;
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    color: #666;
}

.intermediate-split-parts.video-adv-split {
    /* Before “Practice Guides” (Parity / L4E) — same as other major section breaks */
    margin-bottom: 72px;
}

/* ----- Practice ----- */
.practice-headers-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin: 36px 0 60px;
}
.practice-headers-row p {
    text-align: center;
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    color: #666;
}

.practice-btn-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.practice-btn-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

@media (max-width: 767px) {
    .advanced-headers-row,
    .practice-headers-row,
    .practice-btn-columns {
        grid-template-columns: 1fr;
    }
}

.video-courses-footer-note {
    text-align: center;
    margin-top: 52px;
    margin-bottom: 96px;
    padding-top: 12px;
    color: #666;
    font-size: 15px;
}
