/* =========================================================
   READTHINKCODE | TEACHING STRATEGIES
   Dedicated page CSS. Preserves existing WordPress block HTML.
   Sage dividers, pale mint backgrounds, restrained card shadows.
   ========================================================= */

/* 1. PAGE AND FULL-WIDTH SECTIONS */
body:has(.teaching-page) #site-content,
body:has(.teaching-page) .content-area,
body:has(.teaching-page) .entry-content,
.teaching-page {
    background-color: #F2F9F8;
}

.teaching-page {
    overflow-x: clip;
}

.teaching-page .wp-block-group.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}


/* Shared faint coding-symbol texture, only on plain-color sections. */
.teaching-page .teaching-quote-section,
.teaching-page .teaching-core-section,
.teaching-page .teaching-strategies-section,
.teaching-page .teaching-application-section {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='260' viewBox='0 0 280 260'%3E%3Cg fill='%235A9B79' fill-opacity='0.12' font-family='monospace' font-weight='bold'%3E%3Ctext x='150' y='70' font-size='27'%3E%26lt;/%26gt;%3C/text%3E%3Ctext x='45' y='185' font-size='25'%3E%7B%20%7D%3C/text%3E%3Ctext x='175' y='225' font-size='22'%3Eif()%3C/text%3E%3C/g%3E%3C/svg%3E");
    background-size: 280px 260px;
    background-repeat: repeat;
}

/* 2. HERO: KEEP THE ORIGINAL PHOTO AND POSITION */
.teaching-page .teaching-hero-section,
.teaching-page .teaching-hero-section.alignfull {
    position: relative;
    width: 100vw;
    max-width: 100vw !important;
    min-height: 460px;
    padding: 120px 24px 60px;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    background-image: url('https://readthinkcode.org/wp-content/uploads/2026/04/teaching-strategies-hero.webp');
    background-size: cover;
    background-position: 78% 45%;
    background-repeat: no-repeat;
    overflow: hidden;
    filter: brightness(1.12) contrast(1.05);
}

.teaching-page .teaching-hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.22) 0%,
        rgba(0,0,0,0.12) 45%,
        rgba(0,0,0,0.04) 75%,
        rgba(0,0,0,0) 100%
    );
}

.teaching-page .teaching-hero-section > .wp-block-group__inner-container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.teaching-page .teaching-hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding: 24px 26px;
    background: rgba(0,0,0,0.28);
    border-radius: 18px;
    text-align: left;
}

.teaching-page .teaching-hero-content .benefits-eyebrow,
.teaching-page .teaching-hero-content h1,
.teaching-page .teaching-hero-content p {
    color: #FFFFFF !important;
    text-align: left !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.teaching-page .teaching-hero-content .benefits-eyebrow {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.teaching-page .teaching-hero-content h1 {
    margin: 0 0 16px;
    font-size: 42px;
    line-height: 1.15;
}

.teaching-page .teaching-hero-content p {
    font-size: 18px;
    line-height: 1.7;
}

/* 3. QUOTATION: SUBTLE GREEN INSTEAD OF WHITE */
.teaching-page .teaching-quote-section {
    padding: 34px 24px 28px;
    background-color: #F2F9F8;
    text-align: center;
}

.teaching-page .teaching-quote {
    max-width: 950px;
    margin: 0 auto 8px;
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.5;
    color: #263F39;
}

.teaching-page .teaching-quote-author {
    margin: 0;
    font-size: 15px;
    color: #536B60;
    opacity: 1;
}

/* 4. HANDS-ON LEARNING SECTION */
.teaching-page .teaching-core-section,
.teaching-page .teaching-core-section.alignfull {
    width: 100vw;
    max-width: 100vw !important;
    padding: 50px 24px;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    background-color: #EDF7F1;
}

.teaching-page .teaching-core-inner {
    max-width: 1000px;
    margin: 0 auto !important;
    padding: 0 24px;
    box-sizing: border-box;
}

.teaching-page .teaching-core-inner > h2,
.teaching-page .teaching-strategies-inner h2 {
    color: #263F39;
}

.teaching-page .teaching-core-section .wp-block-media-text {
    gap: 28px;
}

.teaching-page .teaching-core-section .wp-block-media-text__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

/* 5. CORE STRATEGIES AND WHITE CARDS */
.teaching-page .teaching-strategies-section,
.teaching-page .teaching-strategies-section.alignfull {
    max-width: 100vw !important;
    padding: 50px 24px 60px;
    background-color: #F2F9F8;
    /* Replaces the old blue graph-paper background. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='260' viewBox='0 0 280 260'%3E%3Cg fill='%235A9B79' fill-opacity='0.12' font-family='monospace' font-weight='bold'%3E%3Ctext x='150' y='70' font-size='27'%3E%26lt;/%26gt;%3C/text%3E%3Ctext x='45' y='185' font-size='25'%3E%7B%20%7D%3C/text%3E%3Ctext x='175' y='225' font-size='22'%3Eif()%3C/text%3E%3C/g%3E%3C/svg%3E");
    background-size: 280px 260px;
    background-repeat: repeat;
}

.teaching-page .teaching-strategies-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.teaching-page .teaching-strategies-inner > .wp-block-group__inner-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.teaching-page .teaching-card-row {
    max-width: 1100px;
    margin: 28px auto 0 !important;
    gap: 20px;
    align-items: stretch;
}

.teaching-page .teaching-card-row > .wp-block-column {
    display: flex;
    padding: 0;
    overflow: visible;
}

/* Existing HTML intentionally uses .benefits-card in this section. */
.teaching-page .teaching-card-row .benefits-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 22px 20px;
    box-sizing: border-box;
    text-align: center;
    background: #FFFFFF;
    border: 1px solid #D1E8DB;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    overflow: visible;
    transition: transform .2s ease, box-shadow .2s ease;
}

.teaching-page .teaching-card-row .benefits-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.09);
}

.teaching-page .teaching-card-row .benefits-card > .wp-block-group__inner-container {
    background: transparent !important;
    box-shadow: none !important;
}

.teaching-page .teaching-card-row .benefits-card h4 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
    color: #263F39;
}

.teaching-page .teaching-card-row .wp-block-image {
    margin: 10px auto 14px;
}

.teaching-page .teaching-card-row img {
    display: block;
    width: auto;
    max-width: min(130px, 100%);
    height: auto;
    margin: 0 auto;
    border-radius: 14px;
}

.teaching-page .teaching-card-row .benefits-card p {
    margin: 0;
    line-height: 1.65;
    color: #38584A;
}

/* 6. CLASSROOM APPLICATION SECTION */
.teaching-page .teaching-application-section {
    padding: 50px 24px 60px;
    margin-bottom: 0 !important;
    background-color: #EDF7F1;
}

.teaching-page .teaching-application-section > .wp-block-columns {
    max-width: 1100px;
    margin: 0 auto;
    gap: 30px;
}

.teaching-page .teaching-application-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.teaching-page .teaching-application-section h2,
.teaching-page .teaching-application-section h3 {
    color: #263F39;
}

.teaching-page .teaching-application-section .primary-button .wp-block-button__link {
    border-radius: 999px;
}

/* Existing generic style from Additional CSS is not relied on here. */
.teaching-page .teaching-application-section .wp-block-column h2.wp-block-heading {
    margin-bottom: 20px;
}

/* 7. RESPONSIVE */
@media (max-width: 900px) {
    .teaching-page .teaching-core-section .wp-block-media-text {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: start;
    }

    .teaching-page .teaching-core-section .wp-block-media-text__media,
    .teaching-page .teaching-core-section .wp-block-media-text__content {
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .teaching-page .teaching-core-section .wp-block-media-text__media {
        margin: 0 0 24px !important;
    }

    .teaching-page .teaching-core-section .wp-block-media-text__content {
        padding: 0 !important;
    }

    .teaching-page .teaching-core-section .wp-block-media-text__media img {
        width: 100%;
        max-width: 100%;
        object-fit: cover;
    }
}

@media (max-width: 767px) {
    .teaching-page .teaching-hero-content h1 {
        font-size: 23px !important;
        max-width: 20ch;
        font-weight: bold;
    }

    .teaching-page .teaching-hero-content p {
        font-size: 16px;
        line-height: 1.3;
    }

    .teaching-page .teaching-card-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .teaching-page .teaching-hero-section { padding: 80px 20px 50px; }
    .teaching-page .teaching-hero-content { padding: 20px; }
    .teaching-page .teaching-quote-section,
    .teaching-page .teaching-core-section,
    .teaching-page .teaching-strategies-section,
    .teaching-page .teaching-application-section { padding-left: 18px; padding-right: 18px; }
    .teaching-page .teaching-core-inner { padding: 0; }
    .teaching-page .teaching-card-row .benefits-card { padding: 20px 16px; }
}

/* ==========================================
   TEACHING STRATEGIES - FULL-WIDTH DIVIDERS
   ========================================== */

/* Target each section directly */
.teaching-page .teaching-hero-section,
.teaching-page .teaching-quote-section,
.teaching-page .teaching-core-section,
.teaching-page .teaching-strategies-section,
.teaching-page .teaching-application-section {
    position: relative;
}

/* Full-width sage-green dividers */
.teaching-page .teaching-hero-section::after,
.teaching-page .teaching-quote-section::after,
.teaching-page .teaching-core-section::after,
.teaching-page .teaching-strategies-section::after,
.teaching-page .teaching-application-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;

    background: linear-gradient(
        90deg,
        #DCEFE5 0%,
        #8FBFA5 50%,
        #DCEFE5 100%
    );

    z-index: 5;
    pointer-events: none;
}
