/* Shared WordPress artwork and Elementor page banners. */
body .blue-hero {
    --ta2-page-navy: #0a2853;
    --ta2-page-royal: #2452d6;
    --ta2-page-sky: #18b7e6;
    background: linear-gradient(110deg, #0a2853 4%, #113779 31%, #2452d6 62%, #2452d6 100%);
}

body .blue-hero .blue-hero-inner { position: relative; z-index: 1; }
body .blue-hero .blue-hero-photo { overflow: hidden; }
body .blue-hero .blue-hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}
body .blue-hero.hero-hero {
    min-height: clamp(330px, 28vw, 472px);
}
body .hero-hero .blue-hero-copy { width: min(44%, 42rem); }
body .hero-hero .blue-hero-photo {
    left: 44%;
    clip-path: polygon(10.3% 0, 100% 0, 100% 100%, 0 100%);
}
body .blue-hero.hero-hero .blue-hero-photo img {
    object-fit: cover;
    object-position: 66% 65%;
    background: transparent;
    clip-path: polygon(calc(10.3% + 4px) 0, 100% 0, 100% 100%, 4px 100%);
}

body .blue-hero.academy-page-banner { min-height: clamp(192px, 16.8vw, 280px); }
body .academy-page-banner .blue-hero-photo { inset-inline-start: 47%; }
body .blue-hero .blue-hero-copy p { line-height: 1.48; }
body .blue-hero.banner-find-a-class .blue-hero-photo img { background: transparent; object-fit: cover; }
body .blue-hero.banner-locations {
    min-height: clamp(185px, 16vw, 265px);
    background: linear-gradient(104deg, #0a2853 3%, #113b80 24%, #2452d6 51%, #2452d6 100%);
}
body .blue-hero.banner-locations .blue-hero-photo {
    position: absolute;
    inset: 0 0 0 40%;
    z-index: 0;
    height: 100%;
    border: 0;
    clip-path: none;
    background: transparent;
    mask-image: linear-gradient(90deg, transparent, #000 17%);
}
body .blue-hero.banner-locations .blue-hero-photo img {
    position: static;
    max-width: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 64% 56%;
    background: transparent;
    mask-image: none;
    clip-path: none;
}
body .banner-locations .blue-hero-copy { width: min(43%, 39rem); }
body .blue-hero.banner-locations .blue-hero-inner { padding-block: clamp(20px, 2.2vw, 32px); }
body .banner-locations .banner-count { margin-block: 0 0.42em; color: #d8f3ff; }
body .banner-locations .blue-hero-copy p:last-child { margin-bottom: 0; }
body .blue-hero.hero-segment-1 .blue-hero-photo img { object-position: 54% 44%; }
body .blue-program.card-segment-1 .blue-card-photo img { object-position: 52% 48%; }
body .blue-hero.banner-find-a-class img { object-position: 48% 26%; }
@media (min-width: 1001px) {
    body .blue-hero.banner-find-a-class .blue-hero-photo { inset-inline-start: 53%; }
    body .blue-hero.banner-find-a-class { min-height: clamp(210px, 18.8vw, 300px); }
}
body .blue-hero.banner-parent-resources img { object-position: 54% 10%; }
body .blue-hero.banner-faq img { object-position: 51% 16%; }
body .blue-hero.banner-about-us img { object-position: 48% 42%; }
body .blue-hero:is(.banner-careers, .banner-driving-instructor-application) .blue-hero-photo img {
    object-position: 53% 25%;
}
body .blue-hero.banner-announcements img { object-position: 50% 49%; }
body .blue-hero.banner-contact img { object-position: 54% 56%; }
body .blue-hero.banner-teen-licensing-process img { object-position: 52% 59%; }
body .blue-hero.hero-private .blue-hero-photo img,
body .blue-program.card-private .blue-card-photo img { object-position: 51% 10%; }
body .blue-hero.hero-simulator .blue-hero-photo img { object-position: 53% 56%; }
body .blue-hero :is(.blue-secondary, .blue-btn):focus-visible,
body .blue-programs .blue-program:focus-visible {
    outline: 3px solid #f8c400;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #0a2853;
}
body .blue-hero .blue-btn:any-link {
    background: #f8c400;
    color: #0a2853;
}
body .blue-hero .blue-btn:hover { background: #ffdb50; color: #0a2853; }

/* Keep the promise text and its supporting photograph together at all viewport sizes. */
body .ta2-about .about-grid section:has(> [data-ta2-page-art="coaching"]) {
    display: grid;
    box-sizing: border-box;
    width: min(100%, 1100px);
    margin-inline: auto;
    padding: clamp(20px, 2.15vw, 32px) clamp(18px, 2.25vw, 32px) 20px !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .92fr);
    align-items: center;
    gap: 12px clamp(22px, 2vw, 30px);
}
body .ta2-about .about-grid section:has(> [data-ta2-page-art="coaching"]) > h2 {
    grid-area: 1 / 1; align-self: end; margin: 0; max-width: 20ch;
}
body .ta2-about .about-grid section:has(> [data-ta2-page-art="coaching"]) > ul {
    grid-area: 2 / 1; align-self: start; margin-block: 0;
}
body .ta2-about .about-grid section > [data-ta2-page-art="coaching"] {
    grid-area: 1 / 2 / span 2;
    align-self: center;
    width: 100%;
    max-width: none;
    aspect-ratio: 1.6;
    object-fit: cover;
    object-position: 66% 42%;
    height: auto;
    border-radius: 12px;
}
body .academy-careers-intro.e-con { padding: 0; gap: 0; }
body .academy-page-banner h1 { text-wrap: balance; }
body .blue-hero .blue-hero-copy { min-width: 0; }
body .journey-title > .blue-hero { padding: 0; }
body .academy-news, body .elementor .faq-grid.e-con { background-color: #f5f8fc; }

@media (min-width: 701px) and (max-width: 1000px) {
    body .blue-hero.hero-hero { min-height: 282px; }
    body .hero-hero .blue-hero-inner { padding-block: 24px; }
    body .blue-hero.hero-hero h1 { font-size: clamp(55px, 7.8vw, 75px); }
    body .hero-hero .blue-hero-copy { width: 46%; }
    body .hero-hero .blue-hero-actions { gap: 10px; }
    body .blue-hero.hero-hero .blue-hero-photo img { object-position: 75% 62%; }
}
@media (max-width: 700px) {
    body .blue-hero.hero-hero,
    body .blue-hero.academy-page-banner { min-height: 0; }
    body .hero-hero .blue-hero-copy,
    body .blue-hero.banner-locations .blue-hero-copy { width: 100%; }
    body .blue-hero.hero-hero .blue-hero-inner { padding-block: 17px 18px; }
    body .blue-hero.academy-page-banner .blue-hero-inner { padding-block: 16px; }
    body .blue-hero.hero-hero .blue-hero-photo,
    body .blue-hero.academy-page-banner .blue-hero-photo,
    body .blue-hero.hero-segment-1 .blue-hero-photo {
        position: relative;
        order: 1;
        inset: auto;
        height: clamp(115px, 31vw, 185px);
        width: 100%;
        clip-path: none;
        mask-image: none;
        border-top: 3px solid #18b7e6;
        z-index: 0;
    }
    body .blue-hero.hero-hero .blue-hero-photo { height: clamp(144px, 39vw, 214px); }
    body .blue-hero.hero-hero .blue-hero-photo img { clip-path: none; object-position: 57% 100%; }
    body .blue-hero.banner-locations .blue-hero-photo { height: clamp(105px, 30vw, 167px); }
    body .blue-hero.banner-locations .blue-hero-photo img { object-position: 55% 58%; }
    body .blue-hero .blue-hero-copy p { margin-block: 8px 12px; }
    body .hero-segment-2 .blue-hero-photo img { object-position: 65% 39%; }
    body .blue-hero:is(.banner-careers, .banner-driving-instructor-application) .blue-hero-photo {
        height: clamp(144px, 40vw, 216px);
    }
    body .blue-hero:is(.banner-careers, .banner-driving-instructor-application) .blue-hero-photo img {
        object-position: 54% 34%;
    }
    body .ta2-about .about-grid section:has(> [data-ta2-page-art="coaching"]) {
        display: flex; flex-direction: column; align-items: stretch; gap: 13px; padding-block: 18px;
    }
    body .ta2-about .about-grid section:has(> [data-ta2-page-art="coaching"]) > :is(h2, ul) { align-self: stretch; }
    body .ta2-about .about-grid section > [data-ta2-page-art="coaching"] {
        order: 3; align-self: center; height: auto; aspect-ratio: auto;
    }
}

/* The two policy pages use native WordPress headings and paragraphs. */
body:is(.page-id-364, .page-id-365) main.site-main {
    background: #f5f8fc;
    width: 100%;
    max-width: none;
}
body:is(.page-id-364, .page-id-365) main > .page-content {
    box-sizing: border-box;
    width: min(100%, 58rem);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 60px) clamp(18px, 5vw, 64px);
    color: #0a2853;
    background: white;
    font: 400 clamp(16px, 1.12vw, 18px)/1.65 var(--bl-body, Arial, sans-serif);
}
body:is(.page-id-364, .page-id-365) main .wp-block-heading {
    color: #0a2853;
    font-family: var(--bl-display, sans-serif);
    line-height: 1.08;
    letter-spacing: -.02em;
}
body:is(.page-id-364, .page-id-365) main h1.wp-block-heading { font-size: clamp(40px, 5vw, 64px); margin: 0 0 16px; }
body:is(.page-id-364, .page-id-365) main h2.wp-block-heading { font-size: clamp(27px, 3vw, 36px); margin: 1em 0 .35em; }
body:is(.page-id-364, .page-id-365) main .page-content a:any-link { color: #17459c; text-decoration: underline; text-underline-offset: .16em; }
body:is(.page-id-364, .page-id-365) main .page-content a:focus-visible { outline: 3px solid #2452d6; outline-offset: 3px; }

/* A class explanation and its coaching image form one two-column unit. */
body .ta2-about .about-grid section:has(> [data-ta2-page-art="coaching"]) {
    background-color: white;
}
body .ta2-about .about-grid section:has(> [data-ta2-page-art="coaching"]) > h2 {
    max-width: none;
}
body .ta2-about .about-grid section:has(> [data-ta2-page-art="coaching"]) > ul {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    max-width: none;
    padding: 0;
}
body .ta2-about .about-grid section:has(> [data-ta2-page-art="coaching"]) > ul li {
    margin: 0;
    border: 0;
    padding: 0;
    font-size: clamp(16px, 1.1vw, 18px);
    line-height: 1.55;
}
body .ta2-about .about-grid section:has(> [data-ta2-page-art="coaching"]) > ul strong {
    display: inline;
    margin: 0;
}
@media (max-width: 700px) {
    body .ta2-about .about-grid section > img[data-ta2-page-art="coaching"] {
        width: min(100%, 500px);
        height: auto;
        max-height: none;
        flex: none;
        aspect-ratio: 1080 / 692;
        aspect-ratio: attr(width type(<number>)) / attr(height type(<number>));
        contain-intrinsic-size: none;
        object-fit: contain;
    }
}

body.page-id-282 #academy-reviews.blue-reviews.fj-reviews {
    padding-block-start: clamp(14px, 1.4vw, 22px) !important;
}

body .blue-hero.banner-careers .blue-btn:any-link {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: fit-content;
    max-width: 100%;
    min-height: 45px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f8c400;
    color: #0a2853;
    font: 700 15px/1.2 var(--bl-body, sans-serif);
    text-decoration: none;
}
body .blue-hero.banner-careers .blue-btn:hover { background: #ffda46; }
body .blue-hero.banner-careers .blue-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@media (min-width: 1001px) {
    /* The positioning script uses the rendered map size when spacing nearby campus markers. */
    body #local-campuses .local-inner {
        max-width: 1296px;
        grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
        gap: clamp(26px, 2.5vw, 40px);
    }
}

/* Keep the real theme-day portrait whole beside the family's reading column. */
body.home .academy-classroom.blue-inner {
    box-sizing: border-box;
    width: min(100%, 1260px);
    max-width: none;
    margin-inline: auto;
    padding: clamp(24px, 3vw, 40px) clamp(16px, 2.7vw, 35px);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 2.2vw, 32px);
}
body.home .academy-classroom > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 720 / 373;
    max-height: none;
    object-fit: contain;
}
body.home .academy-classroom h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
}
body.home .academy-classroom p {
    max-width: 62ch;
    margin: 0 0 .68em;
    font-size: clamp(1rem, 1.13vw, 1.06rem);
    line-height: 1.5;
}
body.home .academy-classroom strong { font-weight: 750; }
body.home .academy-classroom a:any-link {
    display: inline-block;
    color: #17499c;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .18em;
}
body.home .academy-classroom a:hover { color: #0a2853; }
@media (max-width: 760px) {
    body.home .academy-classroom.blue-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 24px 16px;
    }
    /* Leave the corner controls reachable while reading each paragraph. */
    body.home .academy-classroom > div { padding-inline-end: 56px; }
    body.home .academy-classroom h2 { font-size: clamp(1.8rem, 6.5vw, 2.25rem); }
    body.home .academy-classroom a {
        padding-block: 5px;
    }
}

/* Use the original photograph and visual order on phones. */
body.home #why-choose > img {
    height: auto;
    aspect-ratio: 2048 / 1061;
    object-fit: contain;
}
@media (min-width: 761px) and (max-width: 1023px) {
    body.home #why-choose {
        width: min(100%, 760px);
        grid-template-columns: minmax(0, 1fr);
        padding-inline: 24px;
        gap: 20px;
    }
}
@media (min-width: 1024px) {
    body.home #why-choose {
        width: min(100%, 2200px);
        padding: clamp(28px, 3vw, 54px) var(--bl-gutter);
        grid-template-columns: minmax(0, 57fr) minmax(0, 43fr);
        grid-template-areas: "intro intro" "photo benefits";
        align-items: start;
        column-gap: clamp(28px, 2.5vw, 48px);
        row-gap: clamp(20px, 1.8vw, 30px);
    }
    body.home #why-choose > .classroom-story { display: contents; }
    body.home #why-choose .classroom-intro { grid-area: intro; }
    body.home #why-choose .classroom-intro p { max-width: 88ch; margin: 0; }
    body.home #why-choose > img { grid-area: photo; }
    body.home #why-choose .classroom-benefits { grid-area: benefits; max-width: 68ch; }
    body.home #why-choose .classroom-benefits p { max-width: none; }
}

/* Keep FAQ links in their sentences and the narrow-screen controls beside the answer. */
body .blue-course-faq details p a { display: inline; margin: 0; }
@media (max-width: 480px) {
    body .blue-course-faq details > :is(summary, p) {
        padding-inline-end: max(0px, calc(74px - var(--bl-gutter, 16px)));
    }
}
