/* ========================================
   COLOUR & WRITE FOR KIDS
   YOUTUBE SECTION — V2 THEME
======================================== */


/* ========================================
   MAIN YOUTUBE SECTION
======================================== */

.youtube-section {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 60px;

    padding: 70px 8%;

    background: var(--surface-warm);

    border: 1px solid var(--border);

    box-sizing: border-box;

    border-radius: var(--radius-card);

    margin: 0 auto;

    transition:
        background-color var(--transition),
        border-color var(--transition);
}


/* ========================================
   LEFT CONTENT
======================================== */

.youtube-left {

    flex: 1;

    min-width: 0;

    box-sizing: border-box;
}


/* ========================================
   YOUTUBE TAG / YELLOW BADGE
======================================== */

.youtube-tag {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background: var(--yellow);

    /* FIXED DARK TEXT — works in light + dark mode */
    color: #2E3A59 !important;

    padding: 14px 22px;

    border-radius: var(--radius-pill);

    font-size: 16px;

    font-weight: 800;

    line-height: 1.2;

    margin-bottom: 25px;

    border: 1px solid rgba(46, 58, 89, 0.10);

    box-shadow: var(--shadow-small);

    transition:
        background-color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


/* ========================================
   BADGE ICON
======================================== */

.youtube-tag span,
.youtube-tag i {

    color: #2E3A59 !important;

    font-size: 18px;

    line-height: 1;
}


/* ========================================
   DARK MODE BADGE
   IMPORTANT:
   Keep badge text dark even though the
   global heading becomes light in dark mode.
======================================== */

[data-theme="dark"] .youtube-tag {

    background: var(--yellow);

    color: #2E3A59 !important;
}


[data-theme="dark"] .youtube-tag span,
[data-theme="dark"] .youtube-tag i {

    color: #2E3A59 !important;
}


/* ========================================
   HEADING
======================================== */

.youtube-left h2 {

    margin: 0 0 25px;

    color: var(--heading);

    font-size: 48px;

    line-height: 1.15;

    font-weight: 800;
}


/* ========================================
   DESCRIPTION
======================================== */

.youtube-left p {

    margin: 0 0 30px;

    color: var(--text-muted);

    font-size: 18px;

    line-height: 1.8;

    max-width: 520px;
}


/* ========================================
   YOUTUBE BUTTON
======================================== */

.youtube-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background: var(--coral);

    color: #ffffff !important;

    text-decoration: none;

    padding: 15px 25px;

    border-radius: var(--radius-button);

    font-size: 16px;

    font-weight: 700;

    transition:
        background-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);

    box-sizing: border-box;

    max-width: 100%;
}


/* ========================================
   YOUTUBE BUTTON HOVER
======================================== */

.youtube-btn:hover {

    background: var(--coral);

    color: #ffffff !important;

    transform: translateY(-2px);

    box-shadow: var(--shadow-small);
}


/* ========================================
   RIGHT VIDEO AREA
======================================== */

.youtube-right {

    flex: 0 1 420px;

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;
}


/* ========================================
   VIDEO CARD
======================================== */

.video-card {

    width: 100%;

    max-width: 420px;

    min-height: 260px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-card);

    box-shadow: var(--shadow-card);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 15px;

    text-align: center;

    text-decoration: none;

    color: var(--text-muted);

    font-size: 22px;

    font-weight: 700;

    line-height: 1.3;

    padding: 30px;

    box-sizing: border-box;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background-color var(--transition),
        border-color var(--transition);
}


/* ========================================
   VIDEO CARD HOVER
======================================== */

.video-card:hover {

    transform: translateY(-4px);

    box-shadow: var(--shadow-hover);
}


/* ========================================
   YOUTUBE PLAY ICON
======================================== */

.play-button {

    width: 65px;

    height: 45px;

    background: #FF0000;

    color: #ffffff;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 25px;

    line-height: 1;

    padding-left: 3px;

    box-sizing: border-box;
}


/* ========================================
   VIDEO TEXT
======================================== */

.video-card span {

    color: var(--text-muted);

    font-size: 22px;

    font-weight: 700;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {

    .youtube-section {

        gap: 35px;

        padding: 60px 6%;
    }


    .youtube-left h2 {

        font-size: 40px;
    }


    .youtube-left p {

        font-size: 17px;
    }


    .youtube-right {

        flex: 0 1 350px;
    }


    .video-card {

        min-height: 230px;

        font-size: 21px;
    }


    .video-card span {

        font-size: 21px;
    }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

    .youtube-section {

        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        justify-content: flex-start;

        gap: 35px;

        padding: 50px 30px;

        margin: 0;

        border-radius: var(--radius-card);

        box-sizing: border-box;

        overflow: hidden;
    }


    /* ------------------------------------
       LEFT CONTENT
    ------------------------------------ */

    .youtube-left {

        width: 100%;

        flex: none;

        min-width: 0;

        text-align: left;

        box-sizing: border-box;
    }


    /* ------------------------------------
       YOUTUBE BADGE
    ------------------------------------ */

    .youtube-tag {

        display: inline-flex;

        align-items: center;

        justify-content: center;

        max-width: 100%;

        padding: 12px 18px;

        margin-bottom: 25px;

        font-size: 15px;

        line-height: 1.3;

        box-sizing: border-box;

        background: var(--yellow);

        color: #2E3A59 !important;
    }


    .youtube-tag span,
    .youtube-tag i {

        color: #2E3A59 !important;

        font-size: 17px;
    }


    /* ------------------------------------
       HEADING
    ------------------------------------ */

    .youtube-left h2 {

        width: 100%;

        margin: 0 0 22px;

        font-size: 38px;

        line-height: 1.25;

        word-break: normal;

        overflow-wrap: normal;
    }


    /* ------------------------------------
       DESCRIPTION
    ------------------------------------ */

    .youtube-left p {

        width: 100%;

        max-width: none;

        margin: 0 0 28px;

        font-size: 17px;

        line-height: 1.75;

        box-sizing: border-box;
    }


    /* ------------------------------------
       BUTTON
    ------------------------------------ */

    .youtube-btn {

        display: inline-flex;

        width: auto;

        max-width: 100%;

        min-height: 52px;

        padding: 14px 22px;

        font-size: 15px;

        line-height: 1.3;

        text-align: center;

        white-space: normal;

        box-sizing: border-box;
    }


    /* ------------------------------------
       VIDEO AREA
    ------------------------------------ */

    .youtube-right {

        width: 100%;

        flex: none;

        display: flex;

        align-items: center;

        justify-content: center;

        box-sizing: border-box;
    }


    .video-card {

        width: 100%;

        max-width: 100%;

        min-height: 210px;

        padding: 25px;

        border-radius: var(--radius-card);

        font-size: 20px;

        line-height: 1.3;

        box-sizing: border-box;
    }


    .video-card span {

        font-size: 20px;
    }


    .play-button {

        width: 60px;

        height: 42px;

        font-size: 23px;
    }
}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 480px) {

    .youtube-section {

        padding: 45px 28px;

        gap: 30px;

        border-radius: var(--radius-card);
    }


    /* ------------------------------------
       BADGE
    ------------------------------------ */

    .youtube-tag {

        padding: 11px 16px;

        font-size: 14px;

        background: var(--yellow);

        color: #2E3A59 !important;
    }


    .youtube-tag span,
    .youtube-tag i {

        color: #2E3A59 !important;

        font-size: 16px;
    }


    /* ------------------------------------
       HEADING
    ------------------------------------ */

    .youtube-left h2 {

        font-size: 36px;

        line-height: 1.25;
    }


    /* ------------------------------------
       DESCRIPTION
    ------------------------------------ */

    .youtube-left p {

        font-size: 16px;

        line-height: 1.7;
    }


    /* ------------------------------------
       BUTTON
    ------------------------------------ */

    .youtube-btn {

        width: auto;

        max-width: 100%;

        padding: 13px 20px;

        font-size: 14px;
    }


    /* ------------------------------------
       VIDEO CARD
    ------------------------------------ */

    .video-card {

        min-height: 200px;

        padding: 22px;
    }


    .video-card span {

        font-size: 19px;
    }


    /* ------------------------------------
       PLAY BUTTON
    ------------------------------------ */

    .play-button {

        width: 58px;

        height: 40px;

        font-size: 22px;
    }
}