/* about — Figma page styles. Loaded after assets/css/style.css (see panacea_enqueue_assets). Scope every selector to this page/section. */

/* =====================================================================
   ABOUT EXAMSDOJO (template-parts/about/about-examsdojo.php)
   About page ONLY — the about-ed-* card markup is shared with the
   gradient-cards component, so everything is scoped to the About page
   template body class.
   Figma (1440 column): #F0F6F6 band, 45px title left, 16/24 intro from
   52%, 2x2 white cards (gap 48 x 44, radius 4, soft shadow, padding 24),
   72px tinted icon badge, 28/500 card title, 16/24 grey description,
   blue outline diamond hanging off the left edge.
   ===================================================================== */

body.page-template-page-about .about-ed-section {
    background: #F0F6F6;
    padding: 86px 15px 90px;
    overflow: hidden;
}

body.page-template-page-about .about-ed-section .about-ed-head {
    --bs-gutter-x: 48px;
    margin-bottom: 64px;
}

body.page-template-page-about .about-ed-section .about-ed-title {
    font-size: 45px;
    font-weight: 600;
    line-height: 1.2;
    color: #1A4DA1;
    margin: 0;
}

body.page-template-page-about .about-ed-section .about-ed-title .text-accent,
body.page-template-page-about .about-ed-section .about-ed-title .highlight {
    --warning-color: #F1921F; /* style.css .text-accent uses var(--warning-color) !important */
    color: #F1921F;
}

body.page-template-page-about .about-ed-section .about-ed-intro {
    font-size: 16px;
    line-height: 24px;
    color: #1E1F1F;
    max-width: 564px;
    margin: 0;
}

body.page-template-page-about .about-ed-section .about-ed-cards {
    --bs-gutter-x: 48px;
    --bs-gutter-y: 44px;
}

body.page-template-page-about .about-ed-section .about-ed-card {
    background: #ffffff;
    border: 0;
    border-radius: 4px;
    padding: 24px 24px 28px;
    height: 100%;
    box-shadow: 0 12px 30px rgba(16, 40, 40, 0.07);
}

body.page-template-page-about .about-ed-section .about-ed-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(26, 77, 161, 0.12);
}

/* tinted circular badge. The uploaded icons are 1:1 PNGs with a coloured
   ring and a white disc baked in: the image is drawn ~1.4x larger than the
   badge so the ring falls outside the circle, and multiply turns the white
   disc into the badge tint (icon artwork itself stays visible). */
body.page-template-page-about .about-ed-section .about-ed-icon {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 0 16px;
    border-radius: 50%;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E4EFFA;
}

body.page-template-page-about .about-ed-section .about-ed-icon img {
    width: 100px;
    height: 100px;
    max-width: none;
    flex: 0 0 100px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

body.page-template-page-about .about-ed-section .about-ed-cards > .col:nth-of-type(4n+2) .about-ed-icon {
    background: #FAEEE4;
}

body.page-template-page-about .about-ed-section .about-ed-cards > .col:nth-of-type(4n+3) .about-ed-icon {
    background: #FAF5E4;
}

body.page-template-page-about .about-ed-section .about-ed-cards > .col:nth-of-type(4n+4) .about-ed-icon {
    background: #ECE4FA;
}

body.page-template-page-about .about-ed-section .about-ed-card-title {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.25;
    color: #242424;
    margin: 0 0 14px;
}

body.page-template-page-about .about-ed-section .about-ed-card-desc {
    font-size: 16px;
    line-height: 24px;
    color: #686868;
    max-width: 500px;
    margin: 0;
}

/* blue outline diamond hanging off the left edge, level with the first card row */
body.page-template-page-about .about-ed-section .about-ed-diamond {
    position: absolute;
    width: 49px;
    height: 49px;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 5px solid #0084FF;
    border-radius: 12px;
    /* the span sits in the cards .row: its top edge is one row-gap (44px)
       above the first card and its left edge is half a gutter (24px) left
       of the column. Centre = 66px left of the column, 21px below card top. */
    top: calc(44px + 21px - 24.5px);
    left: calc(24px - 66px - 24.5px);
    z-index: 1;
}

/* narrower side gutters: pull the diamond in so it is not cut in half */
@media (max-width: 1599.98px) {
    body.page-template-page-about .about-ed-section .about-ed-diamond {
        left: calc(24px - 36px - 24.5px);
    }
}

@media (max-width: 1399.98px) {
    body.page-template-page-about .about-ed-section .about-ed-diamond {
        left: calc(24px - 26px - 24.5px);
    }
}

@media (max-width: 991.98px) {
    body.page-template-page-about .about-ed-section {
        padding: 56px 15px;
    }

    body.page-template-page-about .about-ed-section .about-ed-head {
        --bs-gutter-y: 16px;
        margin-bottom: 36px;
    }

    body.page-template-page-about .about-ed-section .about-ed-title {
        font-size: 30px;
    }

    body.page-template-page-about .about-ed-section .about-ed-intro {
        max-width: none;
    }

    body.page-template-page-about .about-ed-section .about-ed-cards {
        --bs-gutter-x: 24px;
        --bs-gutter-y: 24px;
    }

    body.page-template-page-about .about-ed-section .about-ed-card-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    body.page-template-page-about .about-ed-section .about-ed-diamond {
        width: 34px;
        height: 34px;
        border-width: 4px;
        border-radius: 9px;
        top: -14px;
        left: auto;
        right: 4px;
    }
}

@media (max-width: 575.98px) {
    body.page-template-page-about .about-ed-section {
        padding: 48px 15px;
    }

    body.page-template-page-about .about-ed-section .about-ed-title {
        font-size: 27px;
    }

    body.page-template-page-about .about-ed-section .about-ed-intro {
        font-size: 15px;
        line-height: 23px;
    }

    body.page-template-page-about .about-ed-section .about-ed-card {
        padding: 20px 20px 24px;
    }

    body.page-template-page-about .about-ed-section .about-ed-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    body.page-template-page-about .about-ed-section .about-ed-icon img {
        width: 84px;
        height: 84px;
        flex-basis: 84px;
    }

    body.page-template-page-about .about-ed-section .about-ed-card-title {
        font-size: 20px;
    }

    body.page-template-page-about .about-ed-section .about-ed-card-desc {
        font-size: 15px;
        line-height: 23px;
    }

    body.page-template-page-about .about-ed-section .about-ed-diamond {
        width: 28px;
        height: 28px;
        border-width: 3.5px;
        border-radius: 8px;
        top: -10px;
        right: 4px;
    }
}
