/* =========================================================
   NEW AFRICA INTERNATIONAL SCHOOL
   SCHOOL LIFE PAGE
========================================================= */


/* =========================================================
   COMMON
========================================================= */

.life-section {
    padding: 115px 0;
}


.life-label {
    margin-bottom: 15px;

    color: var(--blue);

    font-size: .73rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 2px;
}


.life-label-light {
    color: var(--gold);
}



/* =========================================================
   HERO
========================================================= */

.life-hero {
    position: relative;

    min-height: 720px;

    display: flex;

    align-items: flex-end;

    overflow: hidden;

    background: var(--navy-dark);

    color: white;
}


.life-hero-image {
    position: absolute;
    inset: 0;

    background:
        url("../assets/images/life-hero.jpg")
        center / cover
        no-repeat;
}


.life-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4,26,45,.95) 0%,
            rgba(4,26,45,.82) 42%,
            rgba(4,26,45,.38) 72%,
            rgba(4,26,45,.12) 100%
        );
}


.life-hero-inner {
    position: relative;
    z-index: 3;

    min-height: 720px;

    padding-bottom: 70px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 70px;
}


.life-hero-content {
    max-width: 900px;
}


.life-breadcrumb {
    display: flex;

    gap: 10px;

    margin-bottom: 46px;

    color: rgba(255,255,255,.45);

    font-size: .7rem;
}


.life-breadcrumb a {
    color: rgba(255,255,255,.85);
}


.life-eyebrow {
    margin-bottom: 15px;

    color: var(--gold);

    font-size: .73rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 2px;
}


.life-hero h1 {
    max-width: 900px;

    margin-bottom: 27px;

    font-size: clamp(4.7rem, 7.5vw, 7.8rem);

    line-height: .9;

    letter-spacing: -6px;
}


.life-hero h1 span {
    color: var(--gold);
}


.life-hero-description {
    max-width: 640px;

    color: rgba(255,255,255,.72);

    font-size: 1rem;

    line-height: 1.85;
}


.life-hero-actions {
    margin-top: 35px;

    display: flex;

    flex-wrap: wrap;

    gap: 13px;
}


.life-primary-btn,
.life-outline-btn {
    min-height: 56px;

    padding: 0 27px;

    border-radius: 8px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 13px;

    font-size: .82rem;

    font-weight: 800;

    transition: .3s;
}


.life-primary-btn {
    background: var(--blue);

    color: white;

    box-shadow:
        0 15px 35px rgba(10,111,183,.3);
}


.life-primary-btn:hover {
    transform: translateY(-3px);

    background: var(--blue-light);
}


.life-outline-btn {
    border: 1px solid rgba(255,255,255,.42);

    color: white;
}


.life-outline-btn:hover {
    background: white;

    color: var(--navy);
}


.life-hero-card {
    width: 285px;

    flex: 0 0 285px;

    padding: 28px;

    border-radius: 15px;

    border: 1px solid rgba(255,255,255,.15);

    background: rgba(255,255,255,.08);

    backdrop-filter: blur(12px);
}


.life-hero-card small {
    display: block;

    margin-bottom: 12px;

    color: var(--gold);

    font-size: .62rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.3px;
}


.life-hero-card strong {
    font-size: 1.08rem;

    line-height: 1.55;
}



/* =========================================================
   INFO STRIP
========================================================= */

.life-info-strip {
    background: white;

    border-bottom: 1px solid var(--border);
}


.life-info-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);
}


.life-info-grid > div {
    min-height: 105px;

    padding: 25px 28px;

    border-right: 1px solid var(--border);

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.life-info-grid > div:first-child {
    border-left: 1px solid var(--border);
}


.life-info-grid span {
    color: var(--blue);

    font-size: .63rem;

    font-weight: 800;
}


.life-info-grid small {
    margin-top: 5px;

    color: var(--muted);

    font-size: .6rem;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.life-info-grid strong {
    margin-top: 2px;

    color: var(--navy);

    font-size: .9rem;
}



/* =========================================================
   INTRO
========================================================= */

.life-intro {
    background: white;
}


.life-intro-grid {
    display: grid;

    grid-template-columns: .9fr 1.1fr;

    gap: 100px;

    align-items: center;
}


.life-intro-content h2 {
    margin-bottom: 27px;

    color: var(--navy);

    font-size: clamp(3rem, 4.7vw, 4.6rem);

    line-height: 1.03;

    letter-spacing: -3.5px;
}


.life-intro-content > p {
    margin-bottom: 18px;

    color: var(--muted);

    font-size: .89rem;

    line-height: 1.85;
}


.life-intro-content .life-lead {
    color: #354e65;

    font-size: 1.05rem;

    font-weight: 600;
}


.life-intro-content .text-link {
    margin-top: 14px;
}


.life-intro-images {
    position: relative;

    min-height: 640px;
}


.life-intro-main {
    position: absolute;

    right: 0;
    top: 0;

    width: 78%;
}


.life-intro-main img {
    height: 540px;

    border-radius: 18px;

    object-fit: cover;
}


.life-intro-small {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 47%;

    padding: 9px;

    border-radius: 15px;

    background: white;

    box-shadow:
        0 20px 50px rgba(20,45,70,.16);
}


.life-intro-small img {
    height: 260px;

    border-radius: 10px;

    object-fit: cover;
}


.life-intro-badge {
    position: absolute;

    right: -25px;
    bottom: 55px;

    width: 155px;
    height: 155px;

    padding: 27px;

    border-radius: 50%;

    background: var(--gold);

    color: var(--navy);

    display: flex;

    flex-direction: column;

    justify-content: center;

    box-shadow:
        0 20px 45px rgba(20,45,70,.16);
}


.life-intro-badge span {
    margin-bottom: 5px;

    font-size: .59rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.life-intro-badge strong {
    font-size: 1rem;

    line-height: 1.25;
}



/* =========================================================
   ACTIVITIES
========================================================= */

.life-activities {
    background: var(--navy-dark);

    color: white;
}


.life-activities-heading {
    display: grid;

    grid-template-columns: 1.1fr .6fr;

    gap: 80px;

    align-items: flex-end;

    margin-bottom: 45px;
}


.life-activities-heading h2 {
    max-width: 750px;

    font-size: clamp(3rem, 5vw, 5rem);

    line-height: 1;

    letter-spacing: -4px;
}


.life-activities-heading > p {
    color: rgba(255,255,255,.54);

    font-size: .87rem;

    line-height: 1.8;
}


.activity-tabs {
    margin-bottom: 35px;

    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}


.activity-tab {
    min-height: 42px;

    padding: 0 18px;

    border: 1px solid rgba(255,255,255,.14);

    border-radius: 30px;

    background: transparent;

    color: rgba(255,255,255,.6);

    font: inherit;

    font-size: .7rem;

    font-weight: 700;

    cursor: pointer;

    transition: .3s;
}


.activity-tab:hover {
    color: white;

    border-color: rgba(255,255,255,.35);
}


.activity-tab.active {
    background: var(--blue);

    border-color: var(--blue);

    color: white;
}


.activity-grid {
    display: grid;

    grid-template-columns: 1.3fr 1fr 1fr;

    grid-auto-rows: 315px;

    gap: 14px;
}


.activity-card {
    position: relative;

    overflow: hidden;

    border-radius: 14px;

    transition: opacity .3s;
}


.activity-card.hidden {
    display: none;
}


.activity-large {
    grid-row: span 2;
}


.activity-wide {
    grid-column: span 2;
}


.activity-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .6s;
}


.activity-card:hover img {
    transform: scale(1.055);
}


.activity-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(4,25,44,.9),
            rgba(4,25,44,.07) 65%
        );
}


.activity-content {
    position: absolute;

    z-index: 3;

    left: 27px;
    right: 27px;
    bottom: 26px;
}


.activity-content > span {
    display: block;

    margin-bottom: 5px;

    color: var(--gold);

    font-size: .61rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.4px;
}


.activity-content h3 {
    margin-bottom: 6px;

    font-size: 1.45rem;
}


.activity-content p {
    max-width: 450px;

    color: rgba(255,255,255,.63);

    font-size: .76rem;

    line-height: 1.6;
}



/* =========================================================
   SPORTS
========================================================= */

.life-sports {
    background: #f6f9fc;
}


.life-sports-grid {
    display: grid;

    grid-template-columns: 1.05fr .95fr;

    gap: 100px;

    align-items: center;
}


.life-sports-photo {
    position: relative;

    padding: 0 35px 35px 0;
}


.life-sports-photo::before {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;

    width: 65%;
    height: 65%;

    background: #e5f3fb;

    border-radius: 18px;
}


.life-sports-photo img {
    position: relative;

    z-index: 2;

    height: 600px;

    border-radius: 18px;

    object-fit: cover;
}


.sports-photo-label {
    position: absolute;

    z-index: 4;

    left: -30px;
    bottom: 55px;

    width: 205px;

    padding: 25px;

    border-radius: 13px;

    background: var(--gold);

    color: var(--navy);

    box-shadow:
        0 20px 45px rgba(20,45,70,.16);
}


.sports-photo-label span {
    display: block;

    margin-bottom: 6px;

    font-size: .6rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.sports-photo-label strong {
    font-size: 1rem;

    line-height: 1.45;
}


.life-sports-content h2 {
    margin-bottom: 24px;

    color: var(--navy);

    font-size: clamp(3rem, 4.6vw, 4.5rem);

    line-height: 1.03;

    letter-spacing: -3.5px;
}


.life-sports-content > p {
    color: var(--muted);

    font-size: .88rem;

    line-height: 1.8;
}


.sport-benefits {
    margin-top: 30px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    border-top: 1px solid #dce5ec;

    border-left: 1px solid #dce5ec;
}


.sport-benefits > div {
    min-height: 130px;

    padding: 22px;

    display: grid;

    grid-template-columns: 35px 1fr;

    gap: 12px;

    border-right: 1px solid #dce5ec;

    border-bottom: 1px solid #dce5ec;
}


.sport-benefits > div > span {
    color: var(--blue);

    font-size: .61rem;

    font-weight: 800;
}


.sport-benefits h3 {
    margin-bottom: 4px;

    color: var(--navy);

    font-size: .9rem;
}


.sport-benefits p {
    color: var(--muted);

    font-size: .72rem;

    line-height: 1.6;
}



/* =========================================================
   CREATIVE LIFE
========================================================= */

.creative-life {
    background: var(--navy-dark);

    color: white;
}


.creative-heading {
    max-width: 900px;

    margin-bottom: 55px;
}


.creative-heading h2 {
    font-size: clamp(3rem, 5vw, 5rem);

    line-height: 1;

    letter-spacing: -4px;
}


.creative-gallery {
    display: grid;

    grid-template-columns: 1.25fr 1fr;

    grid-template-rows: 300px 300px;

    gap: 14px;
}


.creative-card {
    position: relative;

    overflow: hidden;

    border-radius: 14px;
}


.creative-tall {
    grid-row: 1 / 3;
}


.creative-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .6s;
}


.creative-card:hover img {
    transform: scale(1.055);
}


.creative-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(4,25,44,.88),
            rgba(4,25,44,.05) 65%
        );
}


.creative-card > div {
    position: absolute;

    z-index: 3;

    left: 27px;
    bottom: 25px;
}


.creative-card span {
    color: var(--gold);

    font-size: .61rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.4px;
}


.creative-card h3 {
    margin-top: 5px;

    font-size: 1.4rem;
}



/* =========================================================
   CLUBS
========================================================= */

.clubs-section {
    background: white;
}


.clubs-grid {
    display: grid;

    grid-template-columns: .75fr 1.25fr;

    gap: 100px;
}


.clubs-heading {
    align-self: start;

    position: sticky;

    top: 125px;
}


.clubs-heading h2 {
    margin-bottom: 23px;

    color: var(--navy);

    font-size: clamp(3rem, 4.5vw, 4.4rem);

    line-height: 1.03;

    letter-spacing: -3.5px;
}


.clubs-heading > p {
    color: var(--muted);

    font-size: .86rem;

    line-height: 1.8;
}


.clubs-list {
    border-top: 1px solid var(--border);
}


.club-row {
    min-height: 135px;

    padding: 30px 0;

    display: grid;

    grid-template-columns: 55px .8fr 1.1fr;

    gap: 25px;

    align-items: center;

    border-bottom: 1px solid var(--border);

    transition: .3s;
}


.club-row:hover {
    padding-left: 15px;
}


.club-row > span {
    color: var(--blue);

    font-size: .65rem;

    font-weight: 800;
}


.club-row h3 {
    color: var(--navy);

    font-size: 1.1rem;
}


.club-row p {
    color: var(--muted);

    font-size: .78rem;

    line-height: 1.65;
}



/* =========================================================
   TRIPS
========================================================= */

.life-trip-feature {
    position: relative;

    min-height: 620px;

    display: flex;

    align-items: center;

    overflow: hidden;

    color: white;
}


.life-trip-image {
    position: absolute;

    inset: 0;

    background:
        url("../assets/images/life-trip-feature.jpg")
        center / cover
        no-repeat;
}


.life-trip-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5,28,48,.94),
            rgba(5,28,48,.7),
            rgba(5,28,48,.22)
        );
}


.life-trip-content {
    position: relative;

    z-index: 3;
}


.life-trip-content > p {
    margin-bottom: 15px;

    color: var(--gold);

    font-size: .7rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 2px;
}


.life-trip-content h2 {
    max-width: 900px;

    margin-bottom: 25px;

    font-size: clamp(3.6rem, 6vw, 6rem);

    line-height: .97;

    letter-spacing: -4.5px;
}


.life-trip-content > span {
    display: block;

    max-width: 600px;

    color: rgba(255,255,255,.67);

    font-size: .92rem;

    line-height: 1.8;
}



/* =========================================================
   MOMENTS
========================================================= */

.life-moments {
    background: #f6f9fc;
}


.life-moments-heading {
    margin-bottom: 50px;

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 45px;
}


.life-moments-heading > div {
    max-width: 770px;
}


.life-moments-heading h2 {
    color: var(--navy);

    font-size: clamp(3rem, 4.8vw, 4.8rem);

    line-height: 1;

    letter-spacing: -4px;
}


.moments-grid {
    display: grid;

    grid-template-columns: 1.2fr .8fr 1fr;

    grid-template-rows: 260px 260px;

    gap: 12px;
}


.moment-image {
    overflow: hidden;

    border-radius: 12px;
}


.moment-one {
    grid-row: 1 / 3;
}


.moment-four {
    grid-column: 2 / 4;
}


.moment-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .5s;
}


.moment-image:hover img {
    transform: scale(1.05);
}



/* =========================================================
   COMMUNITY
========================================================= */

.life-community {
    padding: 80px 0;

    background: var(--gold);
}


.life-community-grid {
    display: grid;

    grid-template-columns: 1fr .65fr;

    gap: 90px;

    align-items: center;
}


.life-community-grid > div:first-child > p {
    margin-bottom: 10px;

    color: rgba(16,47,80,.65);

    font-size: .65rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}


.life-community h2 {
    max-width: 720px;

    color: var(--navy);

    font-size: clamp(2.6rem, 4vw, 4rem);

    line-height: 1.05;

    letter-spacing: -3px;
}


.life-community-grid > div:last-child > p {
    margin-bottom: 18px;

    color: rgba(16,47,80,.72);

    font-size: .84rem;

    line-height: 1.8;
}


.life-community a {
    color: var(--navy);

    font-size: .77rem;

    font-weight: 800;
}



/* =========================================================
   FINAL CTA
========================================================= */

.life-final-cta {
    position: relative;

    min-height: 550px;

    display: flex;

    align-items: center;

    overflow: hidden;

    color: white;
}


.life-final-image {
    position: absolute;

    inset: 0;

    background:
        url("../assets/images/life-final.jpg")
        center / cover
        no-repeat;
}


.life-final-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5,28,48,.94),
            rgba(5,28,48,.72),
            rgba(5,28,48,.25)
        );
}


.life-final-content {
    position: relative;

    z-index: 3;
}


.life-final-content > p {
    margin-bottom: 15px;

    color: var(--gold);

    font-size: .7rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 2px;
}


.life-final-content h2 {
    max-width: 850px;

    margin-bottom: 18px;

    font-size: clamp(3.5rem, 5.5vw, 5.8rem);

    line-height: .98;

    letter-spacing: -4.5px;
}


.life-final-content > span {
    display: block;

    max-width: 570px;

    color: rgba(255,255,255,.67);

    font-size: .92rem;

    line-height: 1.8;
}


.life-final-buttons {
    margin-top: 32px;

    display: flex;

    flex-wrap: wrap;

    gap: 13px;
}


.life-final-buttons a {
    min-height: 55px;

    padding: 0 27px;

    border-radius: 8px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background: var(--blue);

    color: white;

    font-size: .8rem;

    font-weight: 800;

    transition: .3s;
}


.life-final-buttons a:hover {
    transform: translateY(-3px);
}


.life-final-buttons .secondary {
    border: 1px solid rgba(255,255,255,.44);

    background: transparent;
}


.life-final-buttons .secondary:hover {
    background: white;

    color: var(--navy);
}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .life-hero-card {
        display: none;
    }


    .life-intro-grid,
    .life-sports-grid {
        gap: 65px;
    }

}



/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 850px) {

    .life-section {
        padding: 90px 0;
    }


    .life-hero,
    .life-hero-inner {
        min-height: 640px;
    }


    .life-intro-grid,
    .life-sports-grid,
    .clubs-grid {
        grid-template-columns: 1fr;
    }


    .life-activities-heading {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .activity-grid {
        grid-template-columns: 1fr 1fr;
    }


    .activity-large {
        grid-row: auto;
    }


    .activity-wide {
        grid-column: span 2;
    }


    .creative-gallery {
        grid-template-columns: 1fr 1fr;

        grid-template-rows: 430px 300px;
    }


    .creative-tall {
        grid-column: 1 / 3;

        grid-row: auto;
    }


    .clubs-heading {
        position: static;
    }


    .life-community-grid {
        grid-template-columns: 1fr;

        gap: 28px;
    }

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .life-hero,
    .life-hero-inner {
        min-height: 620px;
    }


    .life-hero-inner {
        padding-bottom: 55px;
    }


    .life-hero-image {
        background-position: 58% center;
    }


    .life-hero-overlay {
        background: rgba(4,26,45,.82);
    }


    .life-breadcrumb {
        margin-bottom: 35px;
    }


    .life-hero h1 {
        font-size: 3.6rem;

        letter-spacing: -3.5px;
    }


    .life-hero-description {
        font-size: .9rem;
    }


    .life-hero-actions {
        flex-direction: column;
    }


    .life-primary-btn,
    .life-outline-btn {
        width: 100%;
    }


    .life-info-grid {
        grid-template-columns: 1fr 1fr;
    }


    .life-intro-content h2,
    .life-activities-heading h2,
    .life-sports-content h2,
    .creative-heading h2,
    .clubs-heading h2,
    .life-moments-heading h2 {
        font-size: 2.55rem;

        letter-spacing: -2.4px;
    }


    .life-intro-images {
        min-height: 510px;
    }


    .life-intro-main {
        width: 90%;
    }


    .life-intro-main img {
        height: 430px;
    }


    .life-intro-small {
        width: 50%;
    }


    .life-intro-small img {
        height: 190px;
    }


    .life-intro-badge {
        right: -5px;

        bottom: 15px;

        width: 120px;
        height: 120px;

        padding: 21px;
    }


    .activity-tabs {
        overflow-x: auto;

        flex-wrap: nowrap;

        padding-bottom: 5px;
    }


    .activity-tab {
        flex: 0 0 auto;
    }


    .activity-grid {
        display: flex;

        flex-direction: column;
    }


    .activity-card,
    .activity-large,
    .activity-wide {
        height: 390px;
    }


    .life-sports-photo {
        padding: 20px 0 0;
    }


    .life-sports-photo img {
        height: 470px;
    }


    .sports-photo-label {
        left: -5px;

        bottom: 25px;

        width: 180px;
    }


    .sport-benefits {
        grid-template-columns: 1fr;
    }


    .creative-gallery {
        display: flex;

        flex-direction: column;
    }


    .creative-card,
    .creative-tall {
        height: 390px;
    }


    .club-row {
        grid-template-columns: 40px 1fr;

        gap: 17px;
    }


    .club-row p {
        grid-column: 2;
    }


    .life-trip-feature {
        min-height: 520px;
    }


    .life-trip-overlay {
        background: rgba(5,28,48,.78);
    }


    .life-trip-content h2 {
        font-size: 3rem;

        letter-spacing: -3px;
    }


    .life-moments-heading {
        flex-direction: column;

        align-items: flex-start;
    }


    .moments-grid {
        display: flex;

        flex-direction: column;
    }


    .moment-image {
        height: 320px;
    }


    .life-community {
        padding: 65px 0;
    }


    .life-community h2 {
        font-size: 2.6rem;

        letter-spacing: -2.5px;
    }


    .life-final-cta {
        min-height: 500px;
    }


    .life-final-overlay {
        background: rgba(5,28,48,.78);
    }


    .life-final-content h2 {
        font-size: 3rem;

        letter-spacing: -3px;
    }


    .life-final-buttons {
        flex-direction: column;
    }


    .life-final-buttons a {
        width: 100%;
    }

}



/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .life-hero h1 {
        font-size: 3.1rem;
    }


    .life-info-grid {
        grid-template-columns: 1fr;
    }


    .life-intro-content h2,
    .life-activities-heading h2,
    .life-sports-content h2,
    .creative-heading h2,
    .clubs-heading h2,
    .life-moments-heading h2 {
        font-size: 2.3rem;
    }


    .life-trip-content h2,
    .life-final-content h2 {
        font-size: 2.65rem;
    }

}