/*
Theme Name: AldermoorFarm-Theme
Author: Hybrid Media
Author URI: https://hybridmedia.design
Description: Aldermoor Farm Primary School custom child theme based on Astra.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aldermoorfarm-theme
Template: astra
*/

/* =========================================================
GLOBAL STYLES
========================================================= */

html * {
color: #000;
font-family: "Futura", sans-serif;
font-weight: 200;
}

.page .entry-header {
margin-bottom: 1.5em;
display: none !important;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

#page,
.site,
.site-content {
    max-width: 100%;
    overflow-x: clip;
}


/* =========================================================
   NAVIGATION
========================================================= */

.site-header {
    position: absolute !important;
    top: 0;
    left: 0;
    z-index: 100;

    width: 100% !important;
}

.ast-builder-menu-1 .main-header-menu {
    border-radius: 60px;
}

.ast-above-header.ast-above-header-bar,
.ast-primary-header-bar {
    background-color: transparent !important;
}

.ast-builder-menu-1 .menu-item > .menu-link {
    padding-left: clamp(12px, 1.4vw, 20px);
    padding-right: clamp(12px, 1.4vw, 20px);
    padding-top: 6px;
padding-bottom: 6px;
font-weight: 600;
}

.ast-desktop:not(:has(.ast-header-sticked))
.ast-primary-header-bar
.main-header-menu > .menu-item {
    line-height: 60px !important;
}

.site-primary-header-wrap.ast-builder-grid-row-container.site-header-focus-item.ast-container {
    width: 100% !important;
    max-width: 1200px;

    padding-left: 30px;
    padding-right: 30px;
}


.ast-icon svg:not([fill]) {
fill: white;
}

.ast-builder-menu-1 .sub-menu, .ast-builder-menu-1 .inline-on-mobile .sub-menu {
border-color: #dc493d;
}

.ast-desktop .astra-menu-animation-fade>.menu-item:hover>.sub-menu {
border-radius: 30px;
padding: 5%;
}

.ast-desktop .astra-menu-animation-fade>.menu-item .menu-item:hover>.sub-menu {
border-radius: 30px;
padding: 5%;
}

.ast-mobile-header-wrap .ast-mobile-header-content, .ast-desktop-header-content {
background-color: #dc493d !important;
}

@media (max-width:921px){
.ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item > .menu-link {
color: white;
}

.ast-builder-menu-mobile .main-navigation .menu-link:hover, .ast-builder-menu-mobile .main-navigation .main-header-menu > .menu-item:hover > .menu-link {
color: white;
background: #dc493d !important;
}

.ast-builder-menu-mobile .main-navigation .main-header-menu, .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-link, .ast-builder-menu-mobile .main-navigation .main-header-menu .sub-menu{
    background-color: #dc493d !important;
    color: white;
}
}




/* =========================================================
   HERO SLIDESHOW
========================================================= */

.page-id-11 #slideshow {
    position: relative;

    width: 100%;
    height: 90vh;
    min-height: 620px;

    overflow: hidden;
}

#slideshow {
position: relative;
width: 100%;
height: 60vh;
min-height: 620px;
overflow: hidden;
}

/* =========================================================
   SLIDES
========================================================= */

.slides {
    position: absolute;
    inset: 0;

    z-index: 1;

    width: 100%;
    height: 100%;

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;

    opacity: 0;

    transition: opacity 1s ease;
}

.slides.active {
    opacity: 1;
}


/* =========================================================
   DARK TOP OVERLAY
========================================================= */

#slideshow::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    z-index: 2;

    width: 100%;
    height: 30vh;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0)
    );

    pointer-events: none;
}


/* =========================================================
   HERO CONTENT
========================================================= */

#slideshow-container {
    position: absolute;
    inset: 0;

    z-index: 10;

    width: 100%;
    height: 100%;

    pointer-events: none;
}

#slideshow-wrapper {
    position: relative;

    width: min(100% - 60px, 1450px);
    height: 100%;

    margin-inline: auto;
}


/* =========================================================
   HERO MESSAGE
========================================================= */
/*
#slider-message {
    position: absolute;

    left: 0;
    bottom: 190px;

    z-index: 20;

    width: min(760px, 100%);

    color: #ffffff;

    pointer-events: auto;
} */

#slider-message {
position: absolute;
left: 0;
bottom: 250px;
z-index: 20;
width: min(810px, 100%);
color: #ffffff;
pointer-events: auto;
}


/* =========================================================
   HERO TYPOGRAPHY
========================================================= */

.welcome,
.message {
    margin: 0;

    font-family: "Futura", sans-serif;

    font-size: clamp(32px, 4vw, 62px);
    font-weight: bold;
    line-height: 1.15;

    color: var(--e-global-color-secondary);

    text-shadow:
        3px 3px 8px rgba(0, 0, 0, 0.8);
}

.welcome {
    margin-bottom: 4px;
}


/* =========================================================
   PAGE TITLE
========================================================= */

.page-title {
    max-width: 900px;
}


/* =========================================================
   READ MORE BUTTON
========================================================= */

.readmore {
    display: inline-flex;

    width: auto;

    margin-top: 35px;

    background-color: #DC493D;

    border-radius: 15px;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}

.readmore:hover {
    transform: translateY(-2px);

    background-color: #752729;
}

.readmore span {
    display: block;

    padding: 0;
}

.readmore-link {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 55px;

    padding: 15px 30px;

    color: #ffffff;

    font-family: "Futura", sans-serif;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.2;

    text-decoration: none !important;
}

.readmore-link:hover,
.readmore-link:focus {
    color: #ffffff;
    text-decoration: none;
}


/* =========================================================
   SLIDER BOTTOM CURVE
========================================================= */

#header-shape {
    position: absolute;

    left: 0;
    bottom: -1px;

    z-index: 30;

    width: 100%;
    height: 160px;

    margin: 0;
    padding: 0;

    overflow: hidden;

    line-height: 0;

    pointer-events: none;
}

#header-shape svg {
    display: block;

    width: 100%;
    height: calc(100% + 2px);

    margin: 0;
    padding: 0;

    border: 0;
    outline: 0;
}

#header-shape path {
    fill: #ffffff;
    stroke: none;
}


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

@media (max-width: 1000px) {

    .site-primary-header-wrap.ast-builder-grid-row-container.site-header-focus-item.ast-container {
        padding-left: 25px;
        padding-right: 25px;
    }

    #slideshow {
        height: 80vh;
        min-height: 600px;
    }

    #slideshow-wrapper {
        width: min(100% - 50px, 1450px);
    }

    #slider-message {
        bottom: 155px;
    }

    .welcome,
    .message {
        font-size: clamp(32px, 5vw, 44px);
    }

    #header-shape {
        height: 120px;
    }
}


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

@media (max-width: 700px) {

    .site-primary-header-wrap.ast-builder-grid-row-container.site-header-focus-item.ast-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    #slideshow {
        height: 75vh;

        min-height: 540px;
        max-height: 750px;
    }

    #slideshow::before {
        height: 220px;
    }

    #slideshow-wrapper {
        width: calc(100% - 40px);
    }

    #slider-message {
        bottom: 120px;

        width: 100%;
    }

    .welcome,
    .message {
        font-size: clamp(28px, 8vw, 38px);
        line-height: 1.12;
    }

    .readmore {
        margin-top: 25px;

        border-radius: 12px;
    }

    .readmore-link {
        min-height: 50px;

        padding: 13px 24px;

        font-size: 15px;
    }

    #header-shape {
        height: 90px;
    }
}


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

@media (max-width: 450px) {

    #slideshow {
        height: 70vh;
        min-height: 520px;
    }

    #slideshow-wrapper {
        width: calc(100% - 30px);
    }

    #slider-message {
        bottom: 100px;
    }

    .welcome,
    .message {
        font-size: clamp(26px, 8vw, 34px);
    }

    .readmore {
        margin-top: 20px;
    }

    .readmore-link {
        padding: 12px 22px;

        font-size: 14px;
    }

    #header-shape {
        height: 75px;
    }
}


/* =========================================================
   SHORT LANDSCAPE SCREENS
========================================================= */

@media (max-height: 650px) and (min-width: 701px) {

    #slideshow {
        min-height: 560px;
    }

    #slider-message {
        bottom: 140px;
    }

    .welcome,
    .message {
        font-size: 36px;
    }

    .readmore {
        margin-top: 20px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .slides,
    .readmore {
        transition: none;
    }
}




/* =========================================================
HEADTEACHER WELCOME BLOCK
========================================================= */



/* =========================================================
   HEADTEACHER WELCOME
========================================================= */

.welcome-message {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: center;

    gap: clamp(2rem, 5vw, 5rem);

    width: 100%;
    max-width: 1200px;

    margin-inline: auto;

    /* Responsive left/right spacing */
    padding-inline: clamp(1.5rem, 4vw, 3rem);

    box-sizing: border-box;
}


/* =========================================================
   TEXT CONTENT
========================================================= */

.welcome-school {
    min-width: 0;
    width: 100%;
}


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

.school-title {
    margin: 0 0 1rem;

    font-family: "Futura", Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;

    color: #DC493D;

    /* Remove any existing glow/shadow */
    text-shadow: none;

    overflow-wrap: break-word;
}


/* =========================================================
   WELCOME TEXT
========================================================= */

.welcome-text {
    max-width: 65ch;

    font-size: clamp(1rem, 1.3vw, 1.125rem);
    line-height: 1.7;

    overflow-wrap: break-word;
}

.welcome-text > :first-child {
    margin-top: 0;
}

.welcome-text > :last-child {
    margin-bottom: 0;
}


/* =========================================================
   READ MORE
========================================================= */

.readmore {
    margin-top: 1.5rem;
}

.readmore-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    color: #DC493D;

    font-family: "Futura", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.readmore-link:hover {
    color: #b83830;
    transform: translateX(3px);
}

.readmore-link:focus-visible {
    outline: 3px solid #DC493D;
    outline-offset: 4px;
}


/* =========================================================
   IMAGE
========================================================= */

.welcome-image {
    min-width: 0;
    width: 100%;
}

.welcome-image img {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    border-radius: 20px;

    object-fit: cover;
}


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

@media (max-width: 800px) {

    .welcome-message {
        grid-template-columns: 1fr;

        gap: 2rem;

        padding-inline: 1.5rem;
    }

    .welcome-school {
        width: 100%;
    }

    .school-title {
        font-size: clamp(1.9rem, 7vw, 2.75rem);
        line-height: 1.12;
    }

    .welcome-text {
        max-width: 100%;
    }

    /*
     * Image naturally sits underneath the text
     * because it is the second item in the markup.
     */
    .welcome-image {
        width: min(100%, 520px);
        margin-inline: auto;
    }

}


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

@media (max-width: 480px) {

    .welcome-message {
        gap: 1.5rem;

        /* 20px breathing room on each side */
        padding-inline: 1.25rem;
    }

    .school-title {
        margin-bottom: 1rem;

        font-size: clamp(1.75rem, 8vw, 2.25rem);
        line-height: 1.15;
    }

    .welcome-text {
        font-size: 1rem;
        line-height: 1.65;
    }

    .readmore {
        margin-top: 1.25rem;
    }

    .welcome-image img {
        border-radius: 14px;
    }

}


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

@media (max-width: 360px) {

    .welcome-message {
        padding-inline: 1rem;
    }

    .school-title {
        font-size: 1.7rem;
    }

}


/* =========================================================
   REDUCED MOTION / ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .readmore-link {
        transition: none;
    }

    .readmore-link:hover {
        transform: none;
    }

}



/* =========================================================
   STATISTICS
========================================================= */

#statistics-container {
    width: 100%;
    margin-top: clamp(40px, 5vw, 80px);
}

.statistics-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-inline: 20px;
    box-sizing: border-box;
    text-align: center;
}

.statistics-header {
    max-width: 900px;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    line-height: 1.3;
}

.school-statistics-title {
    margin: 0;
    color: #DC493D;
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
}


/* Statistics grid */

#school-stats {
    display: grid;

    /* Automatically fits 3, 2 or 1 columns depending on space */
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(250px, 100%), 1fr)
    );

    gap: clamp(30px, 4vw, 50px);

    width: 100%;
    max-width: 1100px;
    margin: 0 auto;

    padding: clamp(45px, 7vw, 80px) 30px;

    box-sizing: border-box;
}


/* Individual statistic */

#school-stats .stat {
    min-width: 0;
    text-align: center;

    opacity: 0;
    transform: translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}


/* Visible state added by JavaScript */

#school-stats .stat.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Statistic number */

#school-stats .stat-number {
    display: flex;
    align-items: baseline;
    justify-content: center;

    margin: 0;

    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;

    overflow-wrap: anywhere;
}


/* Animated number */

#school-stats .counter {
    display: inline-block;
}


/* Statistic title */

#school-stats .stat-title {
    margin-top: 15px;

    font-size: clamp(0.95rem, 1.5vw, 1.125rem);
    font-weight: 500;
    line-height: 1.4;
}


/* =========================================================
   STATISTICS — MOBILE
========================================================= */

@media (max-width: 600px) {

    .statistics-wrapper {
        padding-inline: 15px;
    }

    .statistics-header {
        font-size: 1.25rem;
    }

    .school-statistics-title {
        margin-top: 5px;
    }

    #school-stats {
        grid-template-columns: 1fr;
        gap: 35px;

        padding: 40px 15px;
    }

    #school-stats .stat-number {
        font-size: 3rem;
    }

    #school-stats .stat-title {
        margin-top: 10px;
    }
}




/* =========================================================
   QUICK LINKS CAROUSEL
========================================================= */

.homelinks {
    position: relative;
    width: 100%;
    padding: clamp(35px, 5vw, 55px) 0;
    box-sizing: border-box;
}

.homelinks__container {
    position: relative;
    width: min(1170px, calc(100% - 100px));
    margin: 0 auto;
}

.homelinks_heading {
margin-bottom: 45px;
text-align: center;
}

.homelinks_heading h2 {
position: relative;
display: inline-block;
margin: 0;
padding-bottom: 14px;
font-family: "Futura", sans-serif;
font-size: 3em;
font-weight: bold;
line-height: 1.2;
color: #2c3031;
}

.homelinks_heading h2::after {
content: "";
position: absolute;
bottom: 0;
left: 50%;
width: 60px;
height: 4px;
border-radius: 10px;
background: #DC493D;
transform: translateX(-50%);
}

.homelinks__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.homelinks__track {
    display: flex;
    align-items: flex-start;
    width: 100%;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.homelinks__slide {
    flex: 0 0 28%;
    width: 28%;
    min-width: 0;
    margin-right: 2%;
    box-sizing: border-box;
}

.homelinks__slide:last-child {
    margin-right: 0;
}

.homelinks__link {
    position: relative;
    display: block;
    width: 100%;
    max-width: 335px;
    margin: 0 auto;
    padding: 15px 0;
    color: inherit;
    text-decoration: none;
}

.homelinks__media {
    position: relative;
    display: block;
    width: 100%;
}

.homelinks__image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    transition: margin-top 0.2s ease-in-out;
}

.homelinks__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.homelinks__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.homelinks__link:hover .homelinks__overlay,
.homelinks__link:focus-visible .homelinks__overlay {
    opacity: 0.76;
}

.homelinks__border {
    display: block;
    width: 80%;
    height: 15px;
    margin: 0 auto;
    background-color: #DC493D;

    transition:
        width 0.2s ease-in-out,
        margin-top 0.2s ease-in-out;
}

.homelinks__link:hover .homelinks__border,
.homelinks__link:focus-visible .homelinks__border {
    width: 50%;
    margin-top: 15px;
}

.homelinks__link:hover .homelinks__image-wrapper,
.homelinks__link:focus-visible .homelinks__image-wrapper {
    margin-top: -15px;
}

.homelinks__content {
    padding-top: 5%;
    text-align: center;
    font-family: GilroySemiBold, Arial, sans-serif;
}

.homelinks__title {
    margin: 0;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.3;
}

/* Navigation */

.homelinks__button {
    position: absolute;
    top: 50%;
    z-index: 20;

    width: 44px;
    height: 60px;
    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;

    transform: translateY(-50%);
}

.homelinks__button--prev {
    left: -50px;
}

.homelinks__button--next {
    right: -50px;
}

.homelinks__button span {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 55px;
    line-height: 1;
    color: #8c8989;
    transition: opacity 0.2s ease;
}

.homelinks__button:hover span,
.homelinks__button:focus-visible span {
    opacity: 0.5;
}

.homelinks__button.disabled,
.homelinks__button:disabled {
    opacity: 0.2;
    cursor: default;
}


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

@media (max-width: 1000px) {

    .homelinks__container {
        width: calc(100% - 80px);
    }

    .homelinks__slide {
        flex: 0 0 47%;
        width: 47%;
        margin-right: 3%;
    }

    .homelinks__button--prev {
        left: -40px;
    }

    .homelinks__button--next {
        right: -40px;
    }
}


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

@media (max-width: 600px) {

    .homelinks {
        padding: 35px 0;
    }

    .homelinks__container {
        width: calc(100% - 50px);
    }

    .homelinks__slide {
        flex: 0 0 88%;
        width: 88%;
        margin-right: 5%;
    }

    .homelinks__link {
        max-width: none;
        padding: 10px 0;
    }

    .homelinks__content {
        padding-top: 15px;
    }

    .homelinks__title {
        font-size: 1.125rem;
    }

    .homelinks__button {
        width: 30px;
    }

    .homelinks__button--prev {
        left: -27px;
    }

    .homelinks__button--next {
        right: -27px;
    }

    .homelinks__button span {
        font-size: 40px;
    }
}


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

@media (max-width: 400px) {

    .homelinks__container {
        width: calc(100% - 40px);
    }

    .homelinks__slide {
        flex: 0 0 92%;
        width: 92%;
        margin-right: 5%;
    }

    .homelinks__button--prev {
        left: -22px;
    }

    .homelinks__button--next {
        right: -22px;
    }

    .homelinks__title {
        font-size: 1rem;
    }
}



/* =========================================================
TWITTER / X SECTION
========================================================= */

.twitter-section {
position: relative;
width: 100%;
padding: 160px 0 170px;
overflow: hidden;
background: #DC493D;
}

/* Content */

.twitter-container {
position: relative;
z-index: 10;
width: 1170px;
max-width: calc(100% - 40px);
margin: 0 auto;
text-align: center;
}

/* Top white curve */

.twitter-top-curve {
position: absolute;
top: -1px;
left: 0;
z-index: 2;
width: 100%;
height: 160px;
line-height: 0;
pointer-events: none;
}

.twitter-top-curve svg {
display: block;
width: 100%;
height: 100%;
}

.twitter-top-curve path {
fill: #fff;
}

/* Bottom white curve */

.twitter-bottom-curve {
position: absolute;
bottom: -1px;
left: 0;
z-index: 2;
width: 100%;
height: 160px;
line-height: 0;
pointer-events: none;
}

.twitter-bottom-curve svg {
display: block;
width: 100%;
height: 100%;
}

.twitter-bottom-curve path {
fill: #fff;
}

/* Title */

.twitter-title {
position: relative;
z-index: 10;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 30px;
color: #fff;
}

.x-social-link {
display: inline-flex;
align-items: center;
justify-content: center;
transform: translateY(-7px);
}

.x-social-icon {
display: block;
width: 64px;
height: 44px;
fill: #fff;
}

.twitter-title h2 {
position: relative;
display: inline-block;
margin: 0;
padding-bottom: 14px;
font-family: "Futura", sans-serif;
font-size: 3em;
font-weight: bold;
line-height: 1.2;
color: #fff;
}

/* Custom Twitter feed button */

#ctf #ctf-more {
background: #fff !important;
}

/* Twitter feed */

.twitter-feed {
position: relative;
z-index: 10;
width: 100%;
}

/* Follow button */

.twitter-follow-button-wrapper {
position: relative;
z-index: 10;
display: flex;
justify-content: center;
margin-top: 30px;
}

.twitter-follow-button {
display: inline-block;
padding: 12px 24px;
border: 2px solid #fff;
border-radius: 30px;
background: #fff;
color: #DC493D;
font-family: GilroySemiBold, Arial, sans-serif;
font-size: 14px;
font-weight: 600;
line-height: 1;
text-decoration: none;
transition:
background 0.2s ease,
color 0.2s ease;
}

.twitter-follow-button:hover {
background: #DC493D;
color: #fff;
text-decoration: none;
}

/* Desktop */

@media (min-width: 1001px) {
.twitter-top-curve,
.twitter-bottom-curve {
height: 160px;
}
}

/* Tablet */

@media (max-width: 1000px) {
.twitter-section {
padding: 130px 0 140px;
}


.twitter-top-curve,
.twitter-bottom-curve {
    height: 120px;
}

.twitter-container {
    max-width: calc(100% - 50px);
}

.twitter-title h2 {
    font-size: 27px;
}


}

/* Mobile */

@media (max-width: 600px) {
.twitter-section {
padding: 110px 0 120px;
}


.twitter-top-curve,
.twitter-bottom-curve {
    height: 90px;
}

.twitter-container {
    max-width: calc(100% - 30px);
}

.twitter-title {
    margin-bottom: 20px;
}

.twitter-title h2 {
    font-size: 24px;
}

.twitter-follow-button-wrapper {
    margin-top: 25px;
}

.twitter-follow-button {
    padding: 11px 22px;
    font-size: 13px;
}


}

/* =========================================================
LATEST NEWSLETTERS
========================================================= */

.newsletter-section {
position: relative;
width: 100%;
padding: 80px 0 90px;
overflow: hidden;
background: #fff;
}

/* Container */

.newsletter-container {
width: 1170px;
max-width: calc(100% - 40px);
margin: 0 auto;
}

/* Section heading */

.newsletter-header {
margin-bottom: 45px;
text-align: center;
}

.newsletter-header h2 {
position: relative;
display: inline-block;
margin: 0;
padding-bottom: 14px;
font-family: "Futura", sans-serif;
font-size: 3em;
font-weight: bold;
line-height: 1.2;
color: #2c3031;
}

.newsletter-header h2::after {
content: "";
position: absolute;
bottom: 0;
left: 50%;
width: 60px;
height: 4px;
border-radius: 10px;
background: #DC493D;
transform: translateX(-50%);
}

/* Arrows */

.newsletter-arrows {
display: flex;
align-items: center;
gap: 10px;
}

.newsletter-arrows button {
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
padding: 0;
border: 2px solid #DC493D;
border-radius: 50%;
background: #fff;
color: #DC493D;
cursor: pointer;
transition:
background 0.25s ease,
color 0.25s ease,
transform 0.2s ease;
}

.newsletter-arrows button:hover {
background: #DC493D;
color: #fff;
transform: translateY(-2px);
}

.newsletter-arrows button span {
display: block;
margin-top: -2px;
font-family: Arial, sans-serif;
font-size: 29px;
line-height: 1;
}

/* Carousel */

.newsletter-carousel {
width: 100%;
overflow: hidden;
}

.newsletter-track {
display: flex;
gap: 30px;
transition: transform 0.5s ease-in-out;
will-change: transform;
}

/* Slide */

.newsletter-slide {
position: relative;
flex: 0 0 calc((100% - 60px) / 3);
min-width: 0;
}

/* Newsletter card */

.newsletter-card {
position: relative;
display: block;
width: 100%;
min-height: 500px;
overflow: hidden;
background: #fff;
text-decoration: none;
box-shadow: 0px 18px 15px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 1px solid rgba(0, 0, 0, 0.1);
}

.newsletter-card:hover {
transform: translateY(-5px);
box-shadow: 0 14px 10px rgba(0, 0, 0, 0.1);
}

/* Image */

.newsletter-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
background: #DC493D;
}

.newsletter-image img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.6s ease;
}

.newsletter-card:hover .newsletter-image img {
transform: scale(1.05);
}

/* Subtle red image overlay */

.newsletter-image::before {
content: "";
position: absolute;
top: 0;
left: 0;
z-index: 1;
width: 100%;
height: 100%;
background: rgba(168, 59, 63, 0.06);
pointer-events: none;
}

/* White curved content area */

.newsletter-card-content {
position: absolute;
bottom: -1px;
left: -10%;
z-index: 3;
width: 120%;
min-height: 220px;
padding: 82px 15% 30px;
box-sizing: border-box;
border-radius: 50% 50% 0 0 / 32% 32% 0 0;
background: #fff;
text-align: center;
}

/* Red accent */

.newsletter-card-content::before {
content: "";
position: absolute;
top: 32px;
left: 50%;
width: 45px;
height: 4px;
border-radius: 10px;
background: #DC493D;
transform: translateX(-50%);
}

/* Date */

.newsletter-date {
margin-bottom: 8px;
font-family: Arial, sans-serif;
font-size: 11px;
font-weight: 600;
line-height: 1.4;
letter-spacing: 1px;
text-transform: uppercase;
color: #888;
}

/* Title */

.newsletter-card h3 {
max-width: 330px;
margin: 0 auto 16px;
font-family: GilroySemiBold, Arial, sans-serif;
font-size: 23px;
font-weight: 600;
line-height: 1.3;
color: #DC493D;
}

/* Read more */

.newsletter-read-more {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
font-family: GilroySemiBold, Arial, sans-serif;
font-size: 14px;
color: #DC493D;
}

.newsletter-read-more span:last-child {
font-size: 20px;
transition: transform 0.25s ease;
}

.newsletter-card:hover .newsletter-read-more span:last-child {
transform: translateX(6px);
}

/* Tablet */

@media (max-width: 1000px) {
.newsletter-section {
padding: 65px 0 75px;
}


.newsletter-track {
    gap: 20px;
}

.newsletter-slide {
    flex: 0 0 calc((100% - 20px) / 2);
}

.newsletter-card {
    min-height: 480px;
}

.newsletter-card-content {
    min-height: 215px;
    padding-top: 80px;
}

.newsletter-header h2 {
    font-size: 30px;
}


}

/* Mobile */

@media (max-width: 700px) {
.newsletter-section {
padding: 55px 0 65px;
}


.newsletter-container {
    max-width: calc(100% - 30px);
}

.newsletter-header {
    margin-bottom: 30px;
}

.newsletter-header h2 {
    font-size: 28px;
}

.newsletter-header h2::after {
    width: 50px;
}

.newsletter-arrows {
    gap: 7px;
}

.newsletter-arrows button {
    width: 39px;
    height: 39px;
}

.newsletter-arrows button span {
    font-size: 25px;
}

.newsletter-track {
    gap: 15px;
}

.newsletter-slide {
    flex: 0 0 100%;
}

.newsletter-card {
    min-height: 470px;
}

.newsletter-card-content {
    min-height: 210px;
    padding-top: 78px;
}

.newsletter-card h3 {
    font-size: 21px;
}


}

/* Small mobile */

@media (max-width: 450px) {
.newsletter-container {
max-width: calc(100% - 24px);
}


.newsletter-card {
    min-height: 450px;
}

.newsletter-card-content {
    min-height: 200px;
    padding-top: 75px;
}

.newsletter-card h3 {
    font-size: 20px;
}


}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
.newsletter-card,
.newsletter-image img,
.newsletter-read-more span:last-child,
.newsletter-arrows button,
.newsletter-track {
transition: none !important;
}
}

/* =========================================================
VISION & VALUES
========================================================= */

.vision-values-section {
position: relative;
width: 100%;
padding: 80px 0 90px;
overflow: hidden;
background: #fff;
}

/* Container */

.vision-values-container {
width: 1170px;
max-width: calc(100% - 40px);
margin: 0 auto;
}

/* Section heading */

.vision-values-heading {
margin-bottom: 45px;
text-align: center;
}

.vision-values-heading h2 {
position: relative;
display: inline-block;
margin: 0;
padding-bottom: 14px;
font-family: "Futura", sans-serif;
font-size: 3em;
font-weight: bold;
line-height: 1.2;
color: #2c3031;
}

.vision-values-heading h2::after {
content: "";
position: absolute;
bottom: 0;
left: 50%;
width: 60px;
height: 4px;
border-radius: 10px;
background: #DC493D;
transform: translateX(-50%);
}

/* Three blocks */

.vision-values-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
}

/* Individual block */

.vision-value-item {
position: relative;
min-width: 0;
overflow: hidden;
background: #fff;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Card */

.vision-value-card {
position: relative;
display: block;
width: 100%;
min-height: 500px;
overflow: hidden;
background: #fff;
text-decoration: none;
transition:
transform 0.3s ease,
box-shadow 0.3s ease;
}

/* Image */

.vision-value-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
background: #DC493D;
}

.vision-value-image img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.6s ease;
}

.vision-value-card:hover .vision-value-image img {
transform: scale(1.05);
}

/* Subtle image overlay */

.vision-value-image::before {
content: "";
position: absolute;
top: 0;
left: 0;
z-index: 1;
width: 100%;
height: 100%;
background: rgba(168, 59, 63, 0.08);
pointer-events: none;
}

/* White curved text area */

.vision-value-content {
position: absolute;
bottom: -1px;
left: -10%;
z-index: 3;
width: 120%;
min-height: 255px;
padding: 60px 15% 20px;
box-sizing: border-box;
border-radius: 50% 50% 0 0 / 32% 32% 0 0;
background: #fff;
text-align: center;
}

/* Red accent */

.vision-value-content::before {
content: "";
position: absolute;
top: 38px;
left: 50%;
width: 45px;
height: 4px;
border-radius: 10px;
background: #DC493D;
transform: translateX(-50%);
}

/* Title */

.vision-value-content h3 {
position: relative;
margin: 0 0 12px;
font-family: GilroySemiBold, Arial, sans-serif;
font-size: 25px;
font-weight: 600;
line-height: 1.25;
color: #DC493D;
}

/* Text */

.vision-value-text {
max-width: 320px;
margin: 0 auto;
font-family: Arial, sans-serif;
font-size: 14px;
line-height: 1.6;
color: #000;
}

.vision-value-text p {
margin-top: 0;
}

.vision-value-text p:last-child {
margin-bottom: 0;
}

/* Read more */

.vision-value-read-more {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-top: 18px;
font-family: GilroySemiBold, Arial, sans-serif;
font-size: 14px;
color: #DC493D;
}

.vision-value-read-more span {
font-size: 20px;
transition: transform 0.25s ease;
}

.vision-value-card:hover .vision-value-read-more span {
transform: translateX(6px);
}

/* Tablet */

@media (max-width: 1000px) {
.vision-values-section {
padding: 65px 0 75px;
}


.vision-values-grid {
    gap: 20px;
}

.vision-value-card {
    min-height: 470px;
}

.vision-value-content {
    min-height: 210px;
    padding-top: 90px;
}

.vision-value-content h3 {
    font-size: 22px;
}


}

/* Mobile */

@media (max-width: 700px) {
.vision-values-section {
padding: 55px 0 65px;
}


.vision-values-container {
    max-width: calc(100% - 30px);
}

.vision-values-heading {
    margin-bottom: 30px;
}

.vision-values-heading h2 {
    font-size: 28px;
}

.vision-values-grid {
    grid-template-columns: 1fr;
    gap: 25px;
}

.vision-value-card {
    min-height: 480px;
}

.vision-value-content {
    min-height: 215px;
    padding-top: 92px;
}


}

/* Small mobile */

@media (max-width: 450px) {
.vision-values-container {
max-width: calc(100% - 24px);
}


.vision-value-card {
    min-height: 450px;
}

.vision-value-content {
    min-height: 205px;
    padding-top: 85px;
}

.vision-value-content h3 {
    font-size: 21px;
}

.vision-value-text {
    font-size: 13px;
}


}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
.vision-value-card,
.vision-value-image img,
.vision-value-read-more span {
transition: none !important;
}
}






/* =========================================================
   ALDERMOOR FARM PRIMARY SCHOOL
   HOUSE POINTS
========================================================= */


/* =========================================================
   SECTION
========================================================= */

.house-points-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 160px 0 170px;
    background: #DC493D;
    color: #ffffff;
    overflow: hidden;
}


/* =========================================================
   TOP CURVE
========================================================= */

.house-points-top-curve {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 160px;
    z-index: 2;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
    overflow: hidden;
    pointer-events: none;
    border: 0 !important;
    outline: 0 !important;
}

.house-points-top-curve svg {
    display: block;
    width: 100%;
    height: calc(100% + 2px);
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
}

.house-points-top-curve path {
    fill: #ffffff;
}


/* =========================================================
   CONTAINER
========================================================= */

.house-points-container {
    position: relative;
    z-index: 10;
    width: 1200px;
    max-width: calc(100% - 60px);
    margin: 0 auto;
}


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

.house-points-heading {
    position: relative;
    z-index: 10;
    margin-bottom: 45px;
    text-align: center;
}

.house-points-heading h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 14px;
    font-family: Futura, sans-serif;
    font-size: 3em;
    line-height: 1.2;
    font-weight: bold;
    color: #ffffff;
}


/* Heading underline */

.house-points-heading h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 4px;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 10px;
}


/* =========================================================
   HOUSE POINTS GRID
========================================================= */

.house-points-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
}


/* =========================================================
   HOUSE POINT CARD
========================================================= */

.house-point-card {
    position: relative;
    min-width: 0;
    min-height: 360px;
    padding: 35px 25px 30px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    color: #2c3031;

    border-radius: 20px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12);

    text-align: center;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* Card hover */

.house-point-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.16);
}


/* =========================================================
   HOUSE LOGO
========================================================= */

.house-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 130px;
    height: 130px;

    margin: 0 auto 20px;
}

.house-logo img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    transition:
        transform 0.3s ease;
}


/* Logo hover */

.house-point-card:hover .house-logo img {
    transform: scale(1.05);
}


/* =========================================================
   HOUSE NAME
========================================================= */

.house-name {
    margin: 0 0 15px;

    font-family:
        GilroySemiBold,
        Arial,
        sans-serif;

    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;

    color: #DC493D;
}


/* =========================================================
   HOUSE SCORE
========================================================= */

.house-score {
    display: flex;
    align-items: baseline;
    justify-content: center;

    margin: 0;

    font-family:
        Futura,
        Arial,
        sans-serif;

    font-size: 64px;
    line-height: 1;
    font-weight: 700;

    color: #2c3031;
}


/* Animated counter */

.house-counter {
    display: inline-block;
}


/* =========================================================
   HOUSE POINTS LABEL
========================================================= */

.house-points-label {
    margin-top: 10px;

    font-family:
        Arial,
        sans-serif;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;

    letter-spacing: 1px;
    text-transform: uppercase;

    color: #888888;
}


/* =========================================================
   HOUSE COLOUR ACCENTS
========================================================= */

/*
   These can be changed later if you want each house
   to have its own colour.
*/

.house-attenborough {
    --house-colour: #4f8f5b;
}

.house-malala {
    --house-colour: #6c63a8;
}

.house-rashford {
    --house-colour: #d48a35;
}

.house-thunberg {
    --house-colour: #4b8fa8;
}


/* Accent line above each card */

.house-point-card.house-attenborough:before{
content: "";
position: absolute;
top: 0;
left: 50%;
width: 60px;
height: 5px;
transform: translateX(-50%);
background: #609C01;
border-radius: 0 0 10px 10px;
}

.house-point-card.house-malala::before {
content: "";
position: absolute;
top: 0;
left: 50%;
width: 60px;
height: 5px;
transform: translateX(-50%);
background: #C98702;
border-radius: 0 0 10px 10px;
}


.house-point-card.house-rashford:before{
content: "";
position: absolute;
top: 0;
left: 50%;
width: 60px;
height: 5px;
transform: translateX(-50%);
background: #D90605;
border-radius: 0 0 10px 10px;
}

.house-point-card.house-thunberg:before{
content: "";
position: absolute;
top: 0;
left: 50%;
width: 60px;
height: 5px;
transform: translateX(-50%);
background: #0162C6;
border-radius: 0 0 10px 10px;
}




/* House name colour */


.house-point-card.house-attenborough .house-name {
color: #609C01;
}

.house-point-card.house-malala .house-name {
color: #C98702;
}

.house-point-card.house-rashford .house-name {
color: #D90605;
}

.house-point-card.house-thunberg .house-name {
color: #0162C6;
}


/* =========================================================
   BOTTOM CURVE
========================================================= */

.house-points-bottom-curve {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 160px;

    z-index: 2;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 0;

    overflow: hidden;

    pointer-events: none;

    border: 0 !important;
    outline: 0 !important;
}

.house-points-bottom-curve svg {
    display: block;

    width: 100%;
    height: calc(100% + 2px);

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    outline: 0 !important;
}

.house-points-bottom-curve path {
    fill: #ffffff;
}


/* =========================================================
   REMOVE THEME BORDERS / SHADOWS
========================================================= */

.house-points-section,
.house-points-top-curve,
.house-points-bottom-curve,
.house-points-top-curve svg,
.house-points-bottom-curve svg {
    box-shadow: none !important;
}


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

@media (max-width: 1000px) {

    .house-points-section {
        padding: 130px 0 140px;
    }

    .house-points-top-curve,
    .house-points-bottom-curve {
        height: 120px;
    }

    .house-points-container {
        max-width: calc(100% - 50px);
    }

    .house-points-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .house-point-card {
        min-height: 340px;
    }

    .house-logo {
        width: 115px;
        height: 115px;
    }

    .house-name {
        font-size: 22px;
    }

    .house-score {
        font-size: 56px;
    }

    .house-points-heading h2 {
        font-size: 30px;
    }
}


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

@media (max-width: 700px) {

    .house-points-section {
        padding: 110px 0 120px;
    }

    .house-points-top-curve,
    .house-points-bottom-curve {
        height: 90px;
    }

    .house-points-container {
        max-width: calc(100% - 30px);
    }

    .house-points-heading {
        margin-bottom: 30px;
    }

    .house-points-heading h2 {
        font-size: 28px;
    }

    .house-points-heading h2::after {
        width: 50px;
    }

    .house-points-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .house-point-card {
        min-height: 310px;
        padding: 30px 15px 25px;
        border-radius: 15px;
    }

    .house-logo {
        width: 90px;
        height: 90px;
        margin-bottom: 15px;
    }

    .house-name {
        margin-bottom: 12px;
        font-size: 19px;
    }

    .house-score {
        font-size: 45px;
    }

    .house-points-label {
        margin-top: 8px;
        font-size: 11px;
    }
}


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

@media (max-width: 450px) {

    .house-points-section {
        padding: 95px 0 105px;
    }

    .house-points-top-curve,
    .house-points-bottom-curve {
        height: 75px;
    }

    .house-points-container {
        max-width: calc(100% - 24px);
    }

    .house-points-grid {
        gap: 15px;
    }

    .house-point-card {
        min-height: 285px;
        padding: 25px 10px 20px;
    }

    .house-logo {
        width: 75px;
        height: 75px;
        margin-bottom: 12px;
    }

    .house-name {
        font-size: 17px;
    }

    .house-score {
        font-size: 38px;
    }

    .house-points-label {
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    .house-point-card::before {
        width: 45px;
        height: 4px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .house-point-card,
    .house-logo img {
        transition: none !important;
    }
}








/* =========================================================
   ICS Calendar Plugin Changes
========================================================= */



.school-calendar-content .ics-calendar-basic-wrapper ul.events.r34ics-basic-events>li.event:before {
background: #ffffff !important;
}






/* =========================================================
   ALDERMOOR FARM PRIMARY SCHOOL
   SCHOOL CALENDAR
========================================================= */


/* =========================================================
   SECTION
========================================================= */

.school-calendar-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 160px 0 170px;
    background: #DC493D;
    color: #ffffff;
    overflow: hidden;
}


/* =========================================================
   TOP CURVE
========================================================= */

.school-calendar-top-curve {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 160px;
    z-index: 2;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
    overflow: hidden;
    pointer-events: none;
    border: 0 !important;
    outline: 0 !important;
}

.school-calendar-top-curve svg {
    display: block;
    width: 100%;
    height: calc(100% + 2px);
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
}

.school-calendar-top-curve path {
    fill: #ffffff;
}


/* =========================================================
   CONTAINER
========================================================= */

.school-calendar-container {
    position: relative;
    z-index: 10;
    width: 1200px;
    max-width: calc(100% - 60px);
    margin: 0 auto;
}


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

.school-calendar-heading {
    position: relative;
    z-index: 10;
    margin-bottom: 45px;
    text-align: center;
}

.school-calendar-heading h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 14px;
    font-family: Futura, sans-serif;
    font-size: 3em;
    line-height: 1.2;
    font-weight: bold;
    color: #ffffff;
}


/* Heading underline */

.school-calendar-heading h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 4px;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 10px;
}


/* =========================================================
   CALENDAR PANEL
========================================================= */

.school-calendar-content {
    position: relative;
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
    color: #2c3031;
}


/* Red accent line */
/*
.school-calendar-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 80px;
    height: 5px;
    transform: translateX(-50%);
    background: #DC493D;
    border-radius: 0 0 10px 10px;
} */


/* =========================================================
   ICS CALENDAR
========================================================= */

/*
 * Keep the ICS Calendar plugin contained inside the
 * white calendar panel.
 */

.school-calendar-content .ics-calendar {
    width: 100%;
    max-width: 100%;
    margin: 0;
    color: #2c3031;
}


/* Calendar headings */

.school-calendar-content .ics-calendar h2,
.school-calendar-content .ics-calendar h3,
.school-calendar-content .ics-calendar h4 {
    font-family: Futura, Arial, sans-serif;
    color: #DC493D;
}


/* Calendar links */

.school-calendar-content .ics-calendar a {
    color: #DC493D;
}


/* Prevent wide calendar content escaping the panel */

.school-calendar-content table {
    max-width: 100%;
}


/* =========================================================
   BOTTOM CURVE
========================================================= */

.school-calendar-bottom-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px;
    z-index: 2;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
    overflow: hidden;
    pointer-events: none;
    border: 0 !important;
    outline: 0 !important;
}

.school-calendar-bottom-curve svg {
    display: block;
    width: 100%;
    height: calc(100% + 2px);
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
}

.school-calendar-bottom-curve path {
    fill: #ffffff;
}


/* =========================================================
   REMOVE THEME BORDERS / SHADOWS
========================================================= */

.school-calendar-section,
.school-calendar-top-curve,
.school-calendar-bottom-curve,
.school-calendar-top-curve svg,
.school-calendar-bottom-curve svg {
    border: 0 !important;
    outline: 0 !important;
}


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

@media (max-width: 1000px) {

    .school-calendar-section {
        padding: 130px 0 140px;
    }

    .school-calendar-top-curve,
    .school-calendar-bottom-curve {
        height: 120px;
    }

    .school-calendar-container {
        max-width: calc(100% - 50px);
    }

    .school-calendar-heading h2 {
        font-size: 30px;
    }

    .school-calendar-content {
        padding: 30px;
    }
}


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

@media (max-width: 700px) {

    .school-calendar-section {
        padding: 110px 0 120px;
    }

    .school-calendar-top-curve,
    .school-calendar-bottom-curve {
        height: 90px;
    }

    .school-calendar-container {
        max-width: calc(100% - 30px);
    }

    .school-calendar-heading {
        margin-bottom: 30px;
    }

    .school-calendar-heading h2 {
        font-size: 28px;
    }

    .school-calendar-heading h2::after {
        width: 50px;
    }

    .school-calendar-content {
        padding: 25px 20px;
        border-radius: 15px;
    }

    /*
     * Allows calendar tables to scroll horizontally
     * rather than breaking the page on small screens.
     */
    .school-calendar-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}


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

@media (max-width: 450px) {

    .school-calendar-section {
        padding: 95px 0 105px;
    }

    .school-calendar-top-curve,
    .school-calendar-bottom-curve {
        height: 75px;
    }

    .school-calendar-container {
        max-width: calc(100% - 24px);
    }

    .school-calendar-content {
        padding: 22px 15px;
    }

    .school-calendar-content::before {
        width: 55px;
        height: 4px;
    }
}


/* =========================================================
ACCREDITATIONS
========================================================= */

.accreditations-section {
position: relative;
width: 100%;
padding: 75px 0 85px;
overflow: hidden;
background: #fff;
}

/* Container */

.accreditations-container {
width: 1200px;
max-width: calc(100% - 40px);
margin: 0 auto;
}

/* Heading */

.accreditations-heading {
margin-bottom: 40px;
text-align: center;
}

.accreditations-heading h2 {
position: relative;
display: inline-block;
margin: 0;
padding-bottom: 14px;
font-family: "Futura", sans-serif;
font-size: 3em;
font-weight: bold;
line-height: 1.2;
color: #2c3031;
}

.accreditations-heading h2::after {
content: "";
position: absolute;
bottom: 0;
left: 50%;
width: 60px;
height: 4px;
border-radius: 10px;
background: #DC493D;
transform: translateX(-50%);
}

/* Slider */

.accreditations-slider {
position: relative;
width: 100%;
overflow: hidden;
}

/* Track */

.accreditations-track {
display: flex;
align-items: center;
width: max-content;
will-change: transform;
animation: accreditation-scroll 35s linear infinite;
}

/* Individual logo */

.accreditation-slide {
display: flex;
flex: 0 0 300px;
align-items: center;
justify-content: center;
width: 300px;
height: 180px;
padding: 0 10px;
box-sizing: border-box;
}

/* Logo area */

.accreditation-logo {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 165px;
overflow: visible;
}

/* Logo image */

.accreditation-logo img {
display: block;
width: auto;
max-width: 100%;
height: auto;
max-height: 135px;
object-fit: contain;
transform: scale(1);
transition: transform 0.4s ease;
}

.accreditation-logo:hover img {
transform: scale(1.15);
}

/* Continuous animation */

@keyframes accreditation-scroll {
from {
transform: translateX(0);
}


to {
    transform: translateX(-50%);
}


}

/* Pause when hovered */

.accreditations-slider:hover .accreditations-track {
animation-play-state: paused;
}

/* Tablet */

@media (max-width: 1000px) {
.accreditations-section {
padding: 65px 0 75px;
}


.accreditations-container {
    max-width: calc(100% - 30px);
}

.accreditations-heading {
    margin-bottom: 35px;
}

.accreditations-heading h2 {
    font-size: 30px;
}

.accreditation-slide {
    flex-basis: 270px;
    width: 270px;
    height: 160px;
    padding: 0 8px;
}

.accreditation-logo {
    height: 145px;
}

.accreditation-logo img {
    max-height: 115px;
}


}

/* Mobile */

@media (max-width: 700px) {
.accreditations-section {
padding: 55px 0 65px;
}


.accreditations-container {
    max-width: calc(100% - 30px);
}

.accreditations-heading {
    margin-bottom: 30px;
}

.accreditations-heading h2 {
    font-size: 28px;
}

.accreditations-heading h2::after {
    width: 50px;
}

.accreditation-slide {
    flex-basis: 250px;
    width: 250px;
    height: 145px;
    padding: 0 6px;
}

.accreditation-logo {
    height: 130px;
}

.accreditation-logo img {
    max-height: 100px;
}

.accreditation-logo:hover img {
    transform: scale(1.12);
}


}

/* Small mobile */

@media (max-width: 450px) {
.accreditation-slide {
flex-basis: 230px;
width: 230px;
height: 135px;
}


.accreditation-logo {
    height: 120px;
}

.accreditation-logo img {
    max-height: 90px;
}

.accreditation-logo:hover img {
    transform: scale(1.1);
}


}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
.accreditations-track {
animation: none;
}


.accreditation-logo img {
    transition: none;
}


}

/* =========================================================
ASTRA FOOTER OVERRIDES
========================================================= */

.ast-footer-copyright {
display: none !important;
}

#colophon {
display: none;
}


/* =========================================================
ALDERMOOR FARM PRIMARY SCHOOL
CUSTOM FOOTER
========================================================= */

/* Red curve above footer */

.footer-red-curve {

position: relative;

display: block;

width: 100%;

height: 90px;

margin: 0;

padding: 0;

overflow: hidden;

z-index: 2;

background: #fff;

line-height: 0;

}

.footer-red-curve svg {

display: block;

width: 100%;

height: calc(100% + 1px);

margin: 0;

padding: 0;

vertical-align: bottom;

transform: translateY(1px);

}

.footer-red-curve path {

fill: #DC493D;

stroke: none;

}

/* Main footer */

.site-footer {

position: relative;

z-index: 1;

width: 100%;

margin: -1px 0 0;

padding: 0;

background: #DC493D;

color: #fff;

}

/* Footer container */

.site-footer-container {
display: grid;
grid-template-columns: 1.1fr 1.5fr 1fr;
gap: 55px;
width: 1200px;
max-width: calc(100% - 60px);
margin: 0 auto;
padding: 65px 0 55px;
box-sizing: border-box;
}

/* Footer column */

.footer-column {

min-width: 0;

}

/* Footer headings */

.footer-column h3 {

position: relative;

display: inline-block;

margin: 0 0 28px;

padding-bottom: 12px;

font-family: GilroySemiBold, Arial, sans-serif;

font-size: 21px;

font-weight: 600;

line-height: 1.3;

color: #fff;

}

.footer-column h3::after {

content: "";

position: absolute;

bottom: 0;

left: 0;

width: 40px;

height: 3px;

border-radius: 10px;

background: #fff;

}

/* School logo */

.footer-brand {

display: flex;

align-items: flex-start;

justify-content: flex-start;

}

.footer-logo {

display: inline-flex;

align-items: center;

justify-content: center;

max-width: 230px;

text-decoration: none;

}

.footer-logo img {

display: block;

width: auto;

max-width: 100%;

height: auto;

max-height: 150px;

object-fit: contain;

}

/* Contact details */

.footer-contact-item {

display: flex;

align-items: flex-start;

gap: 15px;

margin: 0 0 20px;

}

.footer-contact-item\:last-child {

margin-bottom: 0;

}

/* Contact icon */

.footer-icon {

display: flex;

flex: 0 0 25px;

align-items: center;

justify-content: center;

width: 25px;

height: 25px;

margin-top: 1px;

}

.footer-icon svg {

display: block;

width: 22px;

height: 22px;

fill: none;

stroke: #ffffff;

stroke-width: 1.8;

stroke-linecap: round;

stroke-linejoin: round;

}

/* Address */

.footer-contact address {

margin: 0;

padding: 0;

font-family: Arial, sans-serif;

font-size: 14px;

font-style: normal;

line-height: 1.7;

color: rgba(255, 255, 255, 0.92);

}

.footer-contact address span {

display: block;

color: #fff;

}

/* Phone and email */

.footer-contact a {

font-family: Arial, sans-serif;

font-size: 14px;

line-height: 1.5;

color: #fff;

text-decoration: none;

word-break: break-word;

transition: opacity 0.2s ease;

}

.footer-contact a\:hover {

opacity: 0.7;

}

/* Quick links */

.footer-links ul {

margin: 0;

padding: 0;

list-style: none;

}

.footer-links li {

margin: 0 0 11px;

padding: 0;

}

.footer-links li\:last-child {

margin-bottom: 0;

}

.footer-links a {

position: relative;

display: inline-block;

padding-left: 17px;

font-family: Arial, sans-serif;

font-size: 14px;

line-height: 1.5;

color: rgba(255, 255, 255, 0.92);

text-decoration: none;

transition: transform 0.2s ease, opacity 0.2s ease;

}

.footer-links a::before {

content: "›";

position: absolute;

top: -1px;

left: 0;

font-size: 18px;

line-height: 1;

color: #fff;

}

.footer-links a\:hover {

opacity: 0.75;

transform: translateX(4px);

}

/* Leadership team */

.footer-staff ul {

margin: 0;

padding: 0;

list-style: none;

}

.footer-staff li {

margin: 0 0 13px;

padding: 0;

}

.footer-staff li\:last-child {

margin-bottom: 0;

}

.footer-staff strong {

display: block;

margin-bottom: 2px;

font-family: GilroySemiBold, Arial, sans-serif;

font-size: 14px;

font-weight: 600;

line-height: 1.4;

color: #fff;

}

.footer-staff li span {

display: block;

font-family: Arial, sans-serif;

font-size: 14px;

line-height: 1.4;

color: rgba(255, 255, 255, 0.9);

}

/* SENCO information */

.footer-senco {

margin: 22px 0 0;

padding-top: 18px;

border-top: 1px solid rgba(255, 255, 255, 0.25);

font-family: Arial, sans-serif;

font-size: 13px;

line-height: 1.6;

color: rgba(255, 255, 255, 0.9);

}

.footer-senco a {

display: inline-block;

margin-top: 3px;

font-weight: 600;

color: #fff;

text-decoration: none;

}

.footer-senco a\:hover {

text-decoration: underline;

}

/* Footer bottom */

.footer-bottom {

width: 100%;

margin: 0;

border-top: 1px solid rgba(255, 255, 255, 0.2);

}

.footer-bottom-container {

display: flex;

align-items: center;

justify-content: space-between;

gap: 30px;

width: 1200px;

max-width: calc(100% - 60px);

margin: 0 auto;

padding: 20px 0;

box-sizing: border-box;

}

/* Copyright */

.footer-bottom p {

margin: 0;

padding: 0;

font-family: Arial, sans-serif;

font-size: 12px;

line-height: 1.5;

color: rgba(255, 255, 255, 0.75);

}

/* Hybrid Media */

.footer-design {

text-align: right;

}

.footer-design a {

font-weight: 600;

color: #fff;

text-decoration: none;

transition: opacity 0.2s ease;

}

.footer-design a\:hover {

opacity: 0.7;

text-decoration: underline;

}

/* Tablet */

@media (max-width: 1100px) {

.site-footer-container {

grid-template-columns: 1fr 1fr;

gap: 45px;

}

}

/* Small tablet */

@media (max-width: 800px) {

.site-footer-container {

grid-template-columns: 1fr 1fr;

gap: 40px 35px;

max-width: calc(100% - 50px);

padding: 55px 0 50px;

}

}

/* Mobile */

@media (max-width: 650px) {

.footer-red-curve {

height: 65px;

}

.site-footer-container {

grid-template-columns: 1fr;

gap: 40px;

max-width: calc(100% - 40px);

padding: 50px 0 45px;

}

.footer-logo {

max-width: 200px;

}

.footer-column h3 {

margin-bottom: 22px;

font-size: 20px;

}

.footer-bottom-container {

flex-direction: column;

align-items: flex-start;

justify-content: flex-start;

gap: 8px;

max-width: calc(100% - 40px);

padding: 18px 0;

}

.footer-design {

text-align: left;

}

}

/* Small mobile */

@media (max-width: 450px) {

.footer-red-curve {

height: 55px;

}

.site-footer-container {

max-width: calc(100% - 30px);

padding: 45px 0 40px;

}

.footer-bottom-container {

max-width: calc(100% - 30px);

}

}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {

.footer-contact a,

.footer-links a,

.footer-design a {

transition: none;

}

}



/* =========================================================
   SCHOOL POLICIES
========================================================= */

.policies-list {
    display: flex;
    flex-direction: column;
    gap: 14px;

    width: 100%;
    margin: 0;
    padding: 0;
}


/* =========================================================
   POLICY CARD
========================================================= */

.policy-wrap {
    width: 100%;
    margin: 0;

    background: #ffffff;

    border: 1px solid #e5e5e5;
    border-radius: 12px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.06);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.policy-wrap:hover {
    transform: translateY(-3px);

    border-color: #DC493D;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   POLICY LINK
========================================================= */

.policy-link {
    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 18px;

    width: 100%;
    min-height: 90px;

    padding: 18px 22px;

    box-sizing: border-box;

    color: #2c3031;

    text-decoration: none !important;
}


.policy-link:hover,
.policy-link:focus {
    color: #DC493D;

    text-decoration: none !important;
}


/* =========================================================
   PDF ICON
========================================================= */

.policy-icon {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 54px;

    width: 54px;
    height: 64px;

    background: #DC493D;

    border-radius: 5px;

    color: #ffffff;

    box-sizing: border-box;
}


/* folded document corner */

.policy-icon::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;

    width: 0;
    height: 0;

    border-top: 14px solid #ffffff;
    border-left: 14px solid rgba(0, 0, 0, 0.15);
}


.policy-icon span {
    margin-top: 8px;

    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;

    letter-spacing: 0.5px;

    color: #ffffff;
}


/* =========================================================
   POLICY TITLE
========================================================= */

.policy-title {
    flex: 1;

    min-width: 0;

    font-family:
        Futura,
        Arial,
        sans-serif;

    font-size: 20px;
    line-height: 1.35;
    font-weight: 600;

    color: inherit;

    overflow-wrap: anywhere;
}


/* =========================================================
   ARROW
========================================================= */

.policy-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: #f3f3f3;

    color: #DC493D;

    font-family: Arial, sans-serif;
    font-size: 23px;
    line-height: 1;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.policy-link:hover .policy-arrow {
    background: #DC493D;

    color: #ffffff;

    transform: translateX(3px);
}


/* =========================================================
   KEYBOARD ACCESSIBILITY
========================================================= */

.policy-link:focus-visible {
    outline: 3px solid #DC493D;
    outline-offset: -3px;
}


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

@media (max-width: 800px) {

    .policies-list {
        gap: 12px;
    }


    .policy-link {
        min-height: 82px;

        gap: 15px;

        padding: 15px 18px;
    }


    .policy-icon {
        flex-basis: 48px;

        width: 48px;
        height: 58px;
    }


    .policy-title {
        font-size: 18px;
    }


    .policy-arrow {
        flex-basis: 38px;

        width: 38px;
        height: 38px;

        font-size: 21px;
    }
}


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

@media (max-width: 500px) {

    .policies-list {
        gap: 10px;
    }


    .policy-link {
        min-height: 76px;

        gap: 12px;

        padding: 13px 14px;
    }


    .policy-icon {
        flex: 0 0 42px;

        width: 42px;
        height: 52px;
    }


    .policy-icon::before {
        border-top-width: 11px;
        border-left-width: 11px;
    }


    .policy-icon span {
        font-size: 9px;
    }


    .policy-title {
        font-size: 16px;
        line-height: 1.35;
    }


    .policy-arrow {
        flex: 0 0 34px;

        width: 34px;
        height: 34px;

        font-size: 19px;
    }
}


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

@media (max-width: 360px) {

    .policy-link {
        gap: 10px;

        padding: 12px;
    }


    .policy-icon {
        flex-basis: 38px;

        width: 38px;
        height: 47px;
    }


    .policy-title {
        font-size: 15px;
    }


    .policy-arrow {
        flex-basis: 30px;

        width: 30px;
        height: 30px;

        font-size: 17px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .policy-wrap,
    .policy-arrow {
        transition: none;
    }


    .policy-wrap:hover {
        transform: none;
    }


    .policy-link:hover .policy-arrow {
        transform: none;
    }
}



/* ===================================
 Additional Changes
 ====================================== */
.has-ast-global-color-4-color.has-vivid-red-background-color.has-text-color.has-background.has-medium-font-size.wp-block-paragraph strong,
.has-white-color.has-vivid-red-background-color.has-text-color.has-background.has-link-color.has-medium-font-size.wp-elements-1.wp-block-paragraph strong {
color: white !important;
}

/* =========================================================
   SITE-WIDE DOCUMENT LINKS — MATCH SCHOOL POLICIES
   Applies to WordPress File blocks and standalone PDF links.
   Existing .policy-* cards remain unchanged.
========================================================= */

:root {
    --af-document-red: #DC493D;
    --af-document-ink: #2c3031;
}

/* Document containers */
.entry-content .wp-block-file,
.entry-content p:has(> a[href$=".pdf" i]:only-child),
.entry-content p:has(> a[href*=".pdf?" i]:only-child) {
    margin: 0 0 14px;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.entry-content .wp-block-file:hover,
.entry-content p:has(> a[href$=".pdf" i]:only-child):hover,
.entry-content p:has(> a[href*=".pdf?" i]:only-child):hover {
    transform: translateY(-3px);
    border-color: var(--af-document-red);
    box-shadow: 0 8px 22px rgba(0,0,0,.10);
}

/* Card-style links with CSS-generated PDF icon */
.entry-content .wp-block-file > a:first-of-type,
.entry-content p > a[href$=".pdf" i]:only-child,
.entry-content p > a[href*=".pdf?" i]:only-child {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 90px;
    padding: 18px 22px;
    color: var(--af-document-ink);
    font-family: Futura, Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

.entry-content .wp-block-file > a:first-of-type::before,
.entry-content p > a[href$=".pdf" i]:only-child::before,
.entry-content p > a[href*=".pdf?" i]:only-child::before {
    content: "PDF";
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    width: 54px;
    height: 64px;
    border-radius: 5px;
    background: var(--af-document-red);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
}

.entry-content .wp-block-file > a:first-of-type:hover,
.entry-content p > a[href$=".pdf" i]:only-child:hover,
.entry-content p > a[href*=".pdf?" i]:only-child:hover {
    color: var(--af-document-red);
}

.entry-content .wp-block-file > a:first-of-type:focus-visible,
.entry-content p > a[href$=".pdf" i]:only-child:focus-visible,
.entry-content p > a[href*=".pdf?" i]:only-child:focus-visible {
    outline: 3px solid var(--af-document-red);
    outline-offset: -4px;
}

/* Gutenberg File block's separate download button */
.entry-content .wp-block-file .wp-block-file__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 22px 18px;
    padding: 10px 18px;
    border-radius: 24px;
    background: var(--af-document-red);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.entry-content .wp-block-file .wp-block-file__button:hover,
.entry-content .wp-block-file .wp-block-file__button:focus-visible {
    background: #a83229;
    color: #fff;
}

@media (max-width: 600px) {
    .entry-content .wp-block-file > a:first-of-type,
    .entry-content p > a[href$=".pdf" i]:only-child,
    .entry-content p > a[href*=".pdf?" i]:only-child {
        gap: 14px;
        min-height: 76px;
        padding: 14px;
        font-size: 16px;
    }
    .entry-content .wp-block-file > a:first-of-type::before,
    .entry-content p > a[href$=".pdf" i]:only-child::before,
    .entry-content p > a[href*=".pdf?" i]:only-child::before {
        flex-basis: 42px;
        width: 42px;
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .entry-content .wp-block-file,
    .entry-content p:has(> a[href$=".pdf" i]:only-child),
    .entry-content p:has(> a[href*=".pdf?" i]:only-child) {
        transition: none;
    }
}

/* =========================================================
   CENTRE DOCUMENT CARDS WITHIN PAGE CONTENT
   Keep card text and PDF icons left-aligned.
========================================================= */
.entry-content .wp-block-file,
.entry-content p:has(> a[href$=".pdf" i]:only-child),
.entry-content p:has(> a[href*=".pdf?" i]:only-child) {
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .entry-content .wp-block-file,
    .entry-content p:has(> a[href$=".pdf" i]:only-child),
    .entry-content p:has(> a[href*=".pdf?" i]:only-child) {
        max-width: 100%;
    }
}

/* =========================================================
   SINGLE NEWS / NEWSLETTER POSTS — ALDERMOOR FARM
   ========================================================= */
body.single-post .site-content .ast-container {
    max-width: 1180px;
    margin-inline: auto;
}
body.single-post #primary {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    border: 0;
}
body.single-post #secondary { display: none; }
body.single-post article.post {
    max-width: 1000px;
    margin: 0 auto 70px;
    padding: clamp(24px, 4vw, 55px);
    background: #fff;
    border: 1px solid #f0e9e7;
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(44,48,49,.07);
    box-sizing: border-box;
}
body.single-post article.post .entry-header {
    display: block !important;
    text-align: center;
    margin-bottom: 32px;
}
body.single-post article.post .entry-title {
    color: #2c3031;
    font-family: Futura, Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.2;
    margin: 0 0 14px;
}
body.single-post article.post .entry-header::after {
    content: '';
    display: block;
    width: 62px;
    height: 4px;
    margin: 22px auto 0;
    border-radius: 8px;
    background: #DC493D;
}
body.single-post article.post .entry-meta {
    color: #62676b;
    font-size: 14px;
}
body.single-post article.post .entry-meta a { color: #DC493D; }
body.single-post article.post .entry-content {
    max-width: 900px;
    margin-inline: auto;
    font-size: 17px;
    line-height: 1.75;
}
body.single-post article.post .entry-content iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 580px;
    border: 0;
    border-radius: 14px;
    background: #f5f5f5;
}
body.single-post article.post .entry-content .wp-block-embed,
body.single-post article.post .entry-content .wp-block-embed__wrapper {
    width: 100%;
    max-width: 100%;
}
body.single-post .post-navigation,
body.single-post .navigation.post-navigation {
    max-width: 1000px;
    margin: 0 auto 50px;
}
body.single-post .post-navigation a { color: #DC493D; font-weight: 600; }
body.single-post .post-navigation a:hover { color: #a93229; }
body.single-post .comments-area { max-width: 1000px; margin-inline: auto; }
@media (max-width: 700px) {
    body.single-post article.post {
        margin-bottom: 40px;
        padding: 24px 18px;
        border-radius: 14px;
    }
    body.single-post article.post .entry-content iframe { min-height: 430px; }
}
@media (prefers-reduced-motion: reduce) {
    body.single-post article.post * { scroll-behavior: auto; }
}


/* =========================================================
   SINGLE POSTS — WHITE PAGE BACKGROUND AND NO COMMENTS
   ========================================================= */
body.single-post,
body.single-post #page,
body.single-post .site,
body.single-post #content,
body.single-post .site-content,
body.single-post .site-content .ast-container,
body.single-post #primary,
body.single-post .site-main {
    background-color: #ffffff !important;
    background-image: none !important;
}
body.single-post .comments-area,
body.single-post #comments,
body.single-post .comment-respond,
body.single-post .comments-link {
    display: none !important;
}


/* =========================================================
   SINGLE POSTS — BRANDED EDITORIAL REFRESH
   White background retained; comments remain hidden.
   ========================================================= */
body.single-post .site-content {
    position: relative;
    padding-bottom: clamp(50px, 7vw, 110px);
}
body.single-post .site-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(90deg, #dc493d 0 33%, #f6bb64 33% 66%, #752729 66%);
    pointer-events: none;
}
body.single-post article.post {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: clamp(30px, 5vw, 70px);
    padding: clamp(26px, 5vw, 64px);
    border: 1px solid #f3e3df;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 22px 65px rgba(65, 33, 29, .11);
}
body.single-post article.post::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -110px;
    right: -110px;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220,73,61,.10), rgba(220,73,61,0) 72%);
    pointer-events: none;
}
body.single-post article.post .entry-header {
    position: relative;
    padding: 10px 0 32px;
    margin-bottom: 35px;
}
body.single-post article.post .entry-header::before {
    content: "SCHOOL NEWS";
    display: table;
    margin: 0 auto 19px;
    padding: 9px 17px;
    border-radius: 999px;
    background: #fff1ee;
    color: #a83228;
    font-family: Futura, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}
body.single-post article.post .entry-title {
    max-width: 820px;
    margin: 0 auto 15px;
    color: #292e30 !important;
    font-size: clamp(30px, 4.3vw, 52px);
    line-height: 1.12;
    letter-spacing: -.025em;
}
body.single-post article.post .entry-header::after {
    width: 84px;
    height: 5px;
    margin-top: 25px;
    background: linear-gradient(90deg, #dc493d, #f6bb64);
}
body.single-post article.post .entry-meta,
body.single-post article.post .entry-meta * {
    color: #62676b;
    font-size: 13px;
    font-weight: 500;
}
body.single-post article.post .entry-content {
    color: #303638;
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.8;
}
body.single-post article.post .entry-content h2,
body.single-post article.post .entry-content h3 {
    color: #b63b31;
    font-weight: 700;
    line-height: 1.25;
}
body.single-post article.post .entry-content a:not(.wp-block-button__link) {
    color: #a83228;
    font-weight: 600;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
body.single-post article.post .entry-content a:not(.wp-block-button__link):hover {
    color: #752729;
}
body.single-post article.post .post-thumb img,
body.single-post article.post .wp-post-image,
body.single-post article.post .entry-content > figure img {
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(44,48,49,.10);
}
body.single-post article.post .entry-content iframe {
    border: 1px solid #eee2df;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(44,48,49,.10);
}
body.single-post .post-navigation a {
    display: inline-block;
    padding: 14px 20px;
    border: 1px solid #f0d4cf;
    border-radius: 14px;
    background: #fff;
    color: #a83228 !important;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.single-post .post-navigation a:hover,
body.single-post .post-navigation a:focus-visible {
    transform: translateY(-3px);
    border-color: #dc493d;
    box-shadow: 0 8px 22px rgba(220,73,61,.12);
}
body.single-post article.post a:focus-visible,
body.single-post .post-navigation a:focus-visible {
    outline: 3px solid #dc493d;
    outline-offset: 3px;
}
@media (max-width: 700px) {
    body.single-post article.post {
        margin-top: 25px;
        padding: 26px 18px;
        border-radius: 18px;
    }
    body.single-post article.post .entry-header {
        padding-bottom: 18px;
        margin-bottom: 25px;
    }
    body.single-post article.post .entry-header::before {
        font-size: 11px;
    }
    body.single-post article.post .entry-content iframe {
        border-radius: 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.single-post .post-navigation a { transition: none; }
    body.single-post .post-navigation a:hover { transform: none; }
}

/* =========================================================
   SINGLE POSTS — WIDER DESKTOP LAYOUT / SINGLE-LINE TITLES
   ========================================================= */
@media (min-width: 1100px) {
    body.single-post .site-content .ast-container {
        width: min(100% - 48px, 1400px);
        max-width: 1400px;
        margin-inline: auto;
    }
    body.single-post article.post {
        width: 100%;
        max-width: 1320px;
        margin-inline: auto;
        padding-inline: clamp(36px, 4vw, 58px);
    }
    body.single-post article.post .entry-title {
        max-width: none;
        font-size: clamp(32px, 3.1vw, 46px);
        text-wrap: nowrap;
        white-space: nowrap;
    }
}
@media (min-width: 1100px) and (max-width: 1250px) {
    body.single-post article.post .entry-title {
        font-size: 32px;
    }
}
@media (max-width: 1099px) {
    body.single-post article.post .entry-title {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: break-word;
    }
}


/* Aldermoor Farm Primary School — footer Google Map */
.af-footer-map { width:100%; padding:42px 24px 52px; background:#fff; }
.af-footer-map__inner { width:min(100%,1320px); margin-inline:auto; }
.af-footer-map__top { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:22px; }
.af-footer-map__eyebrow { display:block; margin-bottom:8px; color:#DC493D; font-size:12px; font-weight:800; letter-spacing:.15em; }
.af-footer-map h2 { margin:0 0 8px; font-family:Futura, 'Trebuchet MS', sans-serif; font-size:clamp(28px,3.2vw,42px); line-height:1.15; color:#202020; }
.af-footer-map p { margin:0; color:#555; font-size:16px; }
.af-footer-map__directions { display:inline-flex; align-items:center; gap:10px; padding:13px 20px; border-radius:999px; background:#DC493D; color:#fff !important; font-weight:700; text-decoration:none !important; white-space:nowrap; transition:background .2s, transform .2s; }
.af-footer-map__directions:hover,.af-footer-map__directions:focus-visible { background:#ae2f25; transform:translateY(-2px); color:#fff !important; }
.af-footer-map__frame { overflow:hidden; border:5px solid #fff; border-radius:20px; box-shadow:0 12px 34px rgba(25,30,40,.14); background:#f2f2f2; }
.af-footer-map__frame iframe { display:block; width:100%; height:360px; border:0; }
@media (max-width:767px) { .af-footer-map { padding:32px 16px 40px; } .af-footer-map__top { align-items:flex-start; flex-direction:column; gap:18px; } .af-footer-map__frame iframe { height:280px; } }
