/* =========================================================
   MOT Maths Landing Page
   /maths/
   ========================================================= */

.maths-home-section {
    padding: 0px 0;
}

.maths-home-section-heading {
    margin-bottom: 28px;
}

.maths-home-section-heading h2 {
    color: #123f67;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.maths-home-section-heading p {
    color: #526779;
    margin-bottom: 0;
}


/* =========================================================
   Hero
   ========================================================= */

.maths-home-hero {
    background: linear-gradient(100deg, #eaf9fc 0%, #f3fbfd 52%, #e1f5f9 100%);
    overflow: hidden;
}

.maths-home-hero-content {
    padding: 64px 20px 64px 0;
}

.maths-home-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #d9f1f7;
    color: #164d70;
    border-radius: 30px;
    padding: 7px 14px;
    font-size: .86rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.maths-home-badge i {
    color: #17a2b8;
}

.maths-home-hero h1 {
    color: #123f67;
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 750;
    line-height: 1.08;
    margin-bottom: 20px;
}

.maths-home-hero h1 span {
    color: #17a2b8;
    display: block;
}

.maths-home-hero-text {
    color: #405b70;
    font-size: 1.08rem;
    line-height: 1.65;
    max-width: 570px;
    margin-bottom: 26px;
}

.maths-home-primary-btn {
    background: #17a2b8;
    border: 2px solid #17a2b8;
    color: #fff;
    border-radius: 10px;
    padding: 11px 20px;
    font-weight: 600;
    transition: all .2s ease;
}

.maths-home-primary-btn:hover {
    background: #138da0;
    border-color: #138da0;
    color: #fff;
    transform: translateY(-1px);
}

.maths-home-primary-btn i {
    margin-left: 7px;
}

.maths-home-hero-image {
    min-height: 380px;
    height: 100%;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

.maths-home-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    object-position: center;
}

.maths-home-hero-doodle {
    position: absolute;
    color: #53c5d8;
    font-weight: 700;
    opacity: .65;
    pointer-events: none;
}

.maths-home-doodle-one {
    top: 45px;
    left: 12%;
    font-size: 2.5rem;
}

.maths-home-doodle-two {
    top: 150px;
    left: 5%;
    font-size: 2.3rem;
}

.maths-home-doodle-three {
    top: 85px;
    left: 28%;
    font-size: 2.6rem;
}


/* =========================================================
   Year cards
   ========================================================= */

.maths-home-years-section {
    background: #fff;
}

.maths-home-year-card {
    display: block;
    min-height: 210px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 22px;
    text-decoration: none;
    color: #123f67;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease;
}

.maths-home-year-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(20, 65, 95, .12);
}

.maths-home-year-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 14px 0 7px;
}

.maths-home-year-card p {
    color: #405b70;
    font-size: .91rem;
    line-height: 1.45;
    max-width: 230px;
    margin-bottom: 15px;
}

.maths-home-year-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    line-height: 1;
}

.maths-home-year-number span {
    font-size: .58rem;
}

.maths-home-year-number strong {
    font-size: 1.15rem;
}

.maths-home-year-icon {
    position: absolute;
    top: 26px;
    right: 25px;
    font-size: 2.8rem;
    opacity: .65;
}

.maths-home-explore {
    font-size: .88rem;
    font-weight: 700;
}

.maths-home-explore i {
    margin-left: 4px;
    transition: margin-left .2s ease;
}

.maths-home-year-card:hover .maths-home-explore i {
    margin-left: 8px;
}

.maths-home-year-5 {
    background: #eaf8fd;
    border-color: #d7eff7;
}

.maths-home-year-5 .maths-home-year-number {
    background: #20afd0;
}

.maths-home-year-6 {
    background: #edf9f1;
    border-color: #dcefe2;
}

.maths-home-year-6 .maths-home-year-number {
    background: #2ba76a;
}

.maths-home-year-6 .maths-home-year-icon {
    color: #2ba76a;
}

.maths-home-year-7 {
    background: #f3effd;
    border-color: #e7def9;
}

.maths-home-year-7 .maths-home-year-number {
    background: #8255d9;
}

.maths-home-year-7 .maths-home-year-icon {
    color: #8255d9;
}

.maths-home-year-8 {
    background: #fff5e8;
    border-color: #f8e8d1;
}

.maths-home-year-8 .maths-home-year-number {
    background: #ed8b17;
}

.maths-home-year-8 .maths-home-year-icon {
    color: #ed8b17;
}

.maths-home-year-9 {
    background: #edf5ff;
    border-color: #dbe9f9;
}

.maths-home-year-9 .maths-home-year-number {
    background: #287fda;
}

.maths-home-year-9 .maths-home-year-icon {
    color: #287fda;
}

.maths-home-year-10 {
    background: #eaf9fa;
    border-color: #d7eeee;
}

.maths-home-year-10 .maths-home-year-number {
    background: #12a4ae;
}

.maths-home-year-10 .maths-home-year-icon {
    color: #12a4ae;
}


/* =========================================================
   Progression
   ========================================================= */

.maths-home-progression {
    padding: 18px 0 30px;
}

.maths-home-progression-inner {
    background: #eaf8fb;
    border-radius: 14px;
    padding: 28px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.maths-home-progression-title {
    flex: 0 0 34%;
}

.maths-home-progression-title small {
    color: #147a90;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.maths-home-progression-title h2 {
    color: #123f67;
    font-size: 1.55rem;
    line-height: 1.25;
    margin: 7px 0 0;
}

.maths-home-progression-years {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.maths-home-progression-years a {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #17a2b8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
}

.maths-home-progression-years i {
    color: #48b8c9;
}


/* =========================================================
   Learning cards
   ========================================================= */

.maths-home-heading-with-link {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.maths-home-heading-with-link > a {
    color: #0799b0;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.maths-home-heading-with-link > a i {
    margin-left: 5px;
}

.maths-home-learning-card {
    min-height: 138px;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid transparent;
}

.maths-home-learning-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 12px 0 7px;
}

.maths-home-learning-card p {
    font-size: .82rem;
    color: #526779;
    line-height: 1.45;
    margin: 0;
}

.maths-home-learning-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
}

.maths-home-learn-understand {
    background: #eaf7fd;
    border-color: #d7edf7;
}

.maths-home-learn-understand .maths-home-learning-icon {
    background: #168ed0;
}

.maths-home-learn-practise {
    background: #fff4f5;
    border-color: #dceddf;
}

.maths-home-learn-practise .maths-home-learning-icon {
    background: #25a669;
}

.maths-home-learn-reason {
    background: #f5f0fd;
    border-color: #e7ddf7;
}

.maths-home-learn-reason .maths-home-learning-icon {
    background: #8255d9;
}

.maths-home-learn-master {
    background: #edfafa;
    border-color: #d8eeee;
}

.maths-home-learn-master .maths-home-learning-icon {
    background: #10a3ad;
}


/* =========================================================
   Curriculum
   ========================================================= */

.maths-home-curriculum-section {
    padding-top: 20px;
}

.maths-home-curriculum-card {
    height: 100%;
    min-height: 155px;
    background: #fff;
    border: 1px solid #dcecf1;
    border-radius: 12px;
    padding: 19px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.maths-home-curriculum-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(20, 65, 95, .08);
}

.maths-home-curriculum-card > i {
    color: #139db5;
    font-size: 1.5rem;
}

.maths-home-curriculum-card h3 {
    color: #123f67;
    font-size: .95rem;
    font-weight: 700;
    margin: 10px 0 6px;
}

.maths-home-curriculum-card p {
    color: #526779;
    font-size: .78rem;
    line-height: 1.45;
    margin: 0;
}


/* =========================================================
   Year page information
   ========================================================= */

.maths-home-page-info {
    padding: 18px 18px;
}

.maths-home-page-info-inner {
    background: #effafd;
    border-radius: 14px;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 0;
}

.maths-home-page-info-intro {
    padding-right: 28px;
}

.maths-home-page-info-intro h2 {
    color: #123f67;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.maths-home-page-info-intro p {
    color: #526779;
    font-size: .8rem;
    line-height: 1.5;
    margin: 0;
}

.maths-home-page-info-item {
    border-left: 1px solid #cde5eb;
    padding: 0 20px;
    display: flex;
    gap: 10px;
}

.maths-home-page-info-item > i {
    color: #159db6;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.maths-home-page-info-item h3 {
    color: #123f67;
    font-size: .82rem;
    font-weight: 700;
    margin: 0 0 5px;
}

.maths-home-page-info-item p {
    color: #526779;
    font-size: .7rem;
    line-height: 1.4;
    margin: 0;
}


/* =========================================================
   Selection CTA
   ========================================================= */

.maths-home-selection-cta {
    padding: 0 0 25px;
}

.maths-home-selection-inner {
    background: #e9f8fb;
    border-radius: 14px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.maths-home-selection-inner h2 {
    color: #123f67;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.maths-home-selection-inner p {
    color: #526779;
    font-size: .82rem;
    margin: 0;
}

.maths-home-secondary-btn {
    background: #17a2b8;
    color: #fff;
    border: 2px solid #17a2b8;
    border-radius: 9px;
    padding: 9px 18px;
    font-weight: 600;
    white-space: nowrap;
}

.maths-home-secondary-btn:hover {
    background: #138da0;
    border-color: #138da0;
    color: #fff;
}


/* =========================================================
   Final CTA
   ========================================================= */

.maths-home-final-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, #119ab1, #13a9bd);
    padding: 48px 0;
    color: #fff;
}

.maths-home-final-cta h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.maths-home-final-cta p {
    font-size: .9rem;
    margin-bottom: 22px;
}

.maths-home-final-light-btn {
    background: #fff;
    color: #078da5;
    border: 2px solid #fff;
    border-radius: 9px;
    padding: 9px 19px;
    font-weight: 700;
}

.maths-home-final-light-btn:hover {
    background: #f2fbfc;
    color: #078da5;
}

.maths-home-final-outline-btn {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.85);
    border-radius: 9px;
    padding: 9px 19px;
    font-weight: 700;
}

.maths-home-final-outline-btn:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.maths-home-cta-symbol {
    position: absolute;
    color: rgba(255,255,255,.22);
    font-size: 2rem;
    font-weight: 700;
}

.maths-home-cta-symbol-1 {
    left: 8%;
    top: 25%;
}

.maths-home-cta-symbol-2 {
    left: 15%;
    bottom: 20%;
}

.maths-home-cta-symbol-3 {
    right: 16%;
    top: 20%;
}

.maths-home-cta-symbol-4 {
    right: 8%;
    bottom: 22%;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991.98px) {

    .maths-home-hero-content {
        padding: 50px 0 35px;
    }

    .maths-home-hero-image,
    .maths-home-hero-image img {
        min-height: 300px;
    }

    .maths-home-progression-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .maths-home-progression-title {
        flex-basis: auto;
    }

    .maths-home-progression-years {
        justify-content: flex-start;
    }

    .maths-home-page-info-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 0;
    }

    .maths-home-page-info-intro {
        grid-column: 1 / -1;
        padding: 0 0 10px;
    }

    .maths-home-page-info-item {
        min-height: 55px;
    }

    .maths-home-page-info-item:nth-child(2) {
        border-left: 0;
    }
}


@media (max-width: 767.98px) {

    .maths-home-hero h1 {
        font-size: 2.5rem;
    }

    .maths-home-hero-text {
        font-size: 1rem;
    }

    .maths-home-hero-image,
    .maths-home-hero-image img {
        min-height: 240px;
    }

    .maths-home-hero-doodle {
        display: none;
    }

    .maths-home-section-heading h2 {
        font-size: 1.65rem;
    }

    .maths-home-heading-with-link {
        display: block;
    }

    .maths-home-heading-with-link > a {
        display: inline-block;
        margin-top: 10px;
    }

    .maths-home-progression-inner {
        padding: 24px 20px;
    }

    .maths-home-progression-years {
        gap: 2px;
    }

    .maths-home-progression-years a {
        width: 52px;
        height: 52px;
        font-size: .65rem;
    }

    .maths-home-progression-years i {
        font-size: .75rem;
    }

    .maths-home-page-info-inner {
        display: block;
        padding: 22px;
    }

    .maths-home-page-info-intro {
        padding-bottom: 20px;
    }

    .maths-home-page-info-item {
        border-left: 0;
        border-top: 1px solid #cde5eb;
        padding: 15px 0;
    }

    .maths-home-selection-inner {
        display: block;
        padding: 22px;
    }

    .maths-home-secondary-btn {
        display: inline-block;
        margin-top: 15px;
    }

    .maths-home-final-cta {
        padding: 42px 0;
    }

    .maths-home-final-cta h2 {
        font-size: 1.5rem;
    }
}


@media (max-width: 575.98px) {

    .maths-home-hero-content {
        padding-top: 38px;
    }

    .maths-home-hero h1 {
        font-size: 2.2rem;
    }

    .maths-home-year-card {
        min-height: 190px;
    }

    .maths-home-progression-years {
        justify-content: center;
    }

    .maths-home-progression-years a {
        width: 38px;
        height: 38px;
    }
}

* {
    box-sizing: border-box;
}

/*body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
}*/

/* ================================
   HERO
   ================================= */

.hero {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    background: #eefaff;
    display: flex;
    align-items: center;
}

/* ================================
   LEFT CONTENT
   ================================= */

.hero-content {
    position: relative;
    z-index: 3;
    width: 48%;
    padding: 35px 0 35px 5%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    margin-bottom: 12px;
    border-radius: 20px;
    background: #dceff8;
    color: #174c73;
    font-size: 13px;
    font-weight: 600;
}

.hero-badge span {
    font-size: 15px;
}

.hero h1 {
    margin: 0;
    color: #123b5d;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.05;
    font-weight: 700;
}

.hero h1 strong {
    display: block;
    color: #1599bb;
    font-weight: 700;
}

.hero-text {
    max-width: 500px;
    margin: 14px 0 22px;
    color: #38566a;
    font-size: 17px;
    line-height: 1.5;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 24px;
    border-radius: 12px;
    background: #149dbd;
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.hero-button:hover {
    background: #087f9d;
    transform: translateY(-1px);
}

/* ================================
   IMAGE
   ================================= */

.hero-image-wrap {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    width: 62%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    /*
     * THE IMPORTANT PART
     *
     * The image gradually becomes transparent
     * towards the left side.
     */

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        transparent 7%,
        rgba(0, 0, 0, 0.15) 18%,
        rgba(0, 0, 0, 0.45) 30%,
        rgba(0, 0, 0, 0.75) 42%,
        black 55%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        transparent 7%,
        rgba(0, 0, 0, 0.15) 18%,
        rgba(0, 0, 0, 0.45) 30%,
        rgba(0, 0, 0, 0.75) 42%,
        black 55%
    );
}

/* ================================
   OPTIONAL DECORATION
   ================================= */

.math-symbols {
    position: absolute;
    z-index: 2;
    left: 44%;
    top: 25px;
    color: #65cde0;
    opacity: 0.45;
    font-size: 34px;
    pointer-events: none;
}

.math-symbols .triangle {
    font-size: 42px;
}

.math-symbols .pi {
    margin-left: 35px;
}

.math-symbols .root {
    display: block;
    margin-top: 20px;
    margin-left: 50px;
}

/* ================================
   RESPONSIVE
   ================================= */

   @media (max-width: 768px) {

       .hero {

           min-height: auto;

           display: flex;

           flex-direction: column;

           align-items: stretch;

           background: #eefaff;

       }

       .hero-content {

           width: 100%;

           padding: 35px 25px 30px;

           text-align: center;

           margin: 0;

       }

       .hero-text {

           max-width: 500px;

           margin: 14px auto 22px;

       }

       .hero-image-wrap {

           position: relative;

           top: auto;

           right: auto;

           bottom: auto;

           left: auto;

           width: 100%;

           height: 280px;

           min-height: 0;

       }

       .hero-image {

           width: 100%;

           height: 100%;

           min-height: 0;

           object-fit: cover;

           object-position: center;

           -webkit-mask-image: none;

           mask-image: none;

       }

       .math-symbols {

           display: none;

       }

   }