/* =========================================================
   TAHFIZ ENHANCEMENT PROGRAMME
   Based on SPDU page structure
   ========================================================= */

:root {

    --tahfiz-navy: #273480;
    --tahfiz-dark: #1d2869;
    --tahfiz-gold: #c5a253;

    --tahfiz-green: #83b52d;
    --tahfiz-blue: #2b86b3;

    --tahfiz-light: #f8fafc;
    --tahfiz-light-blue: #f2f6fb;
    --tahfiz-light-gold: #fbf8f0;

    --tahfiz-text: #5f6470;
}



/* =========================================================
   HERO
   Follow SPDU Hero Style
   ========================================================= */

.tahfiz-page-hero {

    position: relative;

    min-height: 570px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 110px 20px;

    overflow: hidden;

    background: linear-gradient(
        135deg,
        #273480 0%,
        #1d2869 100%
    );
}


/* Decorative circle - bottom right */

.tahfiz-page-hero::after {

    content: "";

    position: absolute;

    width: 470px;
    height: 470px;

    right: -220px;
    bottom: -235px;

    border-radius: 50%;

    border: 1px solid rgba(197,162,83,.28);

    pointer-events: none;
}


/* Hero content */

.tahfiz-hero-content {

    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 1000px;

    margin: 0 auto;

    text-align: center;
}


/* Eyebrow */

.tahfiz-eyebrow {

    display: block;

    margin-bottom: 14px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.7px;

    text-transform: uppercase;

    color: #c5a253;
}


/* QGDP */

.tahfiz-acronym {

    margin-bottom: 14px;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 7px;

    color: rgba(255,255,255,.78);
}



/* Main title */

.tahfiz-page-hero h1 {

    margin: 0;

    font-size: clamp(42px, 5vw, 64px);

    font-weight: 800;

    line-height: 1.05;

    letter-spacing: -1.5px;

    color: #fff;
}


/* Gold second line */

.tahfiz-page-hero h1 span {

    display: block;

    color: #c5a253;
}


/* Subtitle */

.tahfiz-page-hero p {

    max-width: 720px;

    margin: 22px auto 0;

    font-size: 16px;

    line-height: 1.7;

    color: rgba(255,255,255,.88);

    text-align: center;
}


/* =========================================================
   OPTIONAL HERO LINE
   ========================================================= */

.tahfiz-hero-line {

    width: 60px;
    height: 3px;

    margin: 22px auto;

    background: #c5a253;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {

    .tahfiz-page-hero {

        min-height: 430px;

        padding: 75px 20px;
    }


    .tahfiz-page-hero h1 {

        font-size: 38px;

        line-height: 1.08;
    }


    .tahfiz-acronym {

        font-size: 12px;

        letter-spacing: 5px;
    }


    .tahfiz-page-hero p {

        font-size: 14px;

        max-width: 90%;
    }


    .tahfiz-page-hero::after {

        width: 350px;
        height: 350px;

        right: -190px;
        bottom: -175px;
    }
}


@media (max-width: 575.98px) {

    .tahfiz-page-hero {

        min-height: 400px;
    }


    .tahfiz-page-hero h1 {

        font-size: 32px;

        letter-spacing: -0.5px;
    }


    .tahfiz-eyebrow {

        font-size: 10px;

        letter-spacing: 1.4px;
    }
}

/* =========================================================
   COMMON SECTION
   ========================================================= */

.tahfiz-introduction,
.tahfiz-structure,
.tahfiz-morning,
.tahfiz-holiday,
.tahfiz-pricing,
.tahfiz-closing {

    padding: 95px 0;
}


.tahfiz-introduction,
.tahfiz-structure,
.tahfiz-pricing {

    background: #fff;
}


.tahfiz-morning,
.tahfiz-closing {

    background: var(--tahfiz-light);
}


.tahfiz-holiday {

    background: var(--tahfiz-light-gold);
}


.tahfiz-section-heading {

    max-width: 820px;

    margin: 0 auto 48px;

    text-align: center;
}


.tahfiz-section-heading > span {

    display: block;

    margin-bottom: 10px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.8px;

    color: var(--tahfiz-gold);
}


.tahfiz-section-heading h2 {

    margin: 0 0 15px;

    font-size: clamp(32px,4vw,46px);

    font-weight: 800;

    line-height: 1.15;

    color: var(--tahfiz-navy);
}


.tahfiz-section-heading p {

    max-width: 760px;

    margin: 0 auto;

    font-size: 15px;

    line-height: 1.8;

    color: var(--tahfiz-text);
}



/* =========================================================
   INTRODUCTION
   ========================================================= */

.tahfiz-introduction {

    padding: 95px 0 100px;

    background: #fff;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.tahfiz-section-heading {

    max-width: 900px;

    margin: 0 auto 45px;

    text-align: center;
}


.tahfiz-section-heading > span {

    display: inline-block;

    margin-bottom: 12px;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.7px;

    text-transform: uppercase;

    color: var(--tahfiz-gold);
}


.tahfiz-section-heading h2 {

    margin: 0;

    font-size: clamp(34px, 4vw, 48px);

    font-weight: 800;

    line-height: 1.15;

    color: var(--tahfiz-navy);
}


/* =========================================================
   INTRO IMAGE
   ========================================================= */

.tahfiz-intro-image {

    width: 100%;

    max-width: 1100px;

    height: 480px;

    margin: 0 auto 50px;

    overflow: hidden;

    border-radius: 24px;

    background: var(--tahfiz-light);

    box-shadow:
        0 20px 50px rgba(39,52,128,.10);
}


.tahfiz-intro-image img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform .5s ease;
}


.tahfiz-intro-image:hover img {

    transform: scale(1.02);
}


/* =========================================================
   INTRODUCTION COPY
   ========================================================= */

.tahfiz-intro-copy {

    max-width: 900px;

    margin: 0 auto;

    text-align: justify;
}


.tahfiz-intro-copy p {

    margin: 0 0 20px;

    font-size: 16px;

    line-height: 1.9;

    color: var(--tahfiz-text);
}


.tahfiz-intro-copy p:last-child {

    margin-bottom: 0;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {

    .tahfiz-introduction {

        padding: 65px 0 70px;
    }


    .tahfiz-section-heading {

        margin-bottom: 30px;
    }


    .tahfiz-section-heading h2 {

        font-size: 32px;
    }


    .tahfiz-intro-image {

        height: 300px;

        margin-bottom: 35px;

        border-radius: 18px;
    }


    .tahfiz-intro-copy p {

        font-size: 15px;

        line-height: 1.8;
    }

}


@media (max-width: 575.98px) {

    .tahfiz-intro-image {

        height: 240px;

        border-radius: 16px;
    }


    .tahfiz-section-heading h2 {

        font-size: 29px;
    }

}


/* =========================================================
   PROGRAMME STRUCTURE
   ========================================================= */

.tahfiz-branch-card {

    position: relative;

    height: 100%;

    min-height: 205px;

    display: flex;

    align-items: center;

    gap: 25px;

    padding: 32px;

    text-decoration: none;

    border-radius: 20px;

    background: #fff;

    border: 1px solid rgba(39,52,128,.08);

    box-shadow:
        0 12px 35px rgba(39,52,128,.07);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.tahfiz-branch-card:hover {

    color: inherit;

    transform: translateY(-6px);

    box-shadow:
        0 20px 45px rgba(39,52,128,.12);
}


.tahfiz-branch-card::before {

    content: "";

    position: absolute;

    top: 20px;
    bottom: 20px;
    left: 0;

    width: 4px;

    border-radius: 0 5px 5px 0;

    background: var(--tahfiz-gold);
}


.tahfiz-branch-icon {

    flex: 0 0 62px;

    width: 62px;
    height: 62px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--tahfiz-navy);

    color: #fff;

    font-size: 25px;
}


.tahfiz-branch-content {

    flex: 1;
}


.tahfiz-branch-content span {

    display: block;

    margin-bottom: 5px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;

    color: var(--tahfiz-gold);
}


.tahfiz-branch-content h3 {

    margin: 0 0 8px;

    font-size: 22px;
    font-weight: 800;

    color: var(--tahfiz-navy);
}


.tahfiz-branch-content p {

    margin: 0;

    font-size: 14px;

    line-height: 1.7;

    color: var(--tahfiz-text);
}


.tahfiz-branch-card > i {

    font-size: 21px;

    color: var(--tahfiz-gold);
}



/* =========================================================
   MORNING TAHFIZ CARDS
   ========================================================= */

.tahfiz-program-card {

    height: 100%;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border-radius: 18px;

    background: #fff;

    border: 1px solid rgba(39,52,128,.08);

    box-shadow:
        0 15px 40px rgba(39,52,128,.07);
}


.tahfiz-program-header {

    min-height: 125px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 28px 30px;

    color: #fff;
}


.tahfiz-program-header.primary {

    background: var(--tahfiz-green);
}


.tahfiz-program-header.secondary {

    background: var(--tahfiz-blue);
}


.tahfiz-program-header small {

    display: block;

    margin-bottom: 7px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.7px;
}


.tahfiz-program-header h3 {

    margin: 0;

    font-size: 23px;
    font-weight: 800;
}


.tahfiz-program-header > i {

    font-size: 30px;

    opacity: .9;
}


.tahfiz-program-body {

    flex: 1;

    padding: 30px;
}


.tahfiz-card-intro {

    margin: 0 0 25px;

    font-size: 14px;

    line-height: 1.8;

    color: var(--tahfiz-text);
}



/* =========================================================
   FEATURE LIST
   ========================================================= */

.tahfiz-feature-list {

    display: flex;

    flex-direction: column;

    gap: 22px;
}


.tahfiz-feature-item {

    display: flex;

    gap: 15px;
}


.tahfiz-feature-icon {

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #f0f2f8;

    color: var(--tahfiz-navy);

    font-size: 17px;
}


.tahfiz-feature-item h4 {

    margin: 0 0 4px;

    font-size: 16px;
    font-weight: 800;

    color: var(--tahfiz-navy);
}


.tahfiz-feature-item p {

    margin: 0;

    font-size: 13px;

    line-height: 1.7;

    color: var(--tahfiz-text);
}



/* =========================================================
   PROGRAMME TIME
   ========================================================= */

.tahfiz-time-card {

    max-width: 900px;

    margin: 38px auto 0;

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 24px 28px;

    border-radius: 14px;

    background: #fff;

    box-shadow:
        0 8px 25px rgba(39,52,128,.06);
}


.tahfiz-time-icon {

    flex: 0 0 50px;

    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eef2fa;

    color: var(--tahfiz-navy);

    font-size: 20px;
}


.tahfiz-time-card small {

    display: block;

    margin-bottom: 3px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;

    color: var(--tahfiz-gold);
}


.tahfiz-time-card h3 {

    margin: 0 0 4px;

    font-size: 20px;
    font-weight: 800;

    color: var(--tahfiz-navy);
}


.tahfiz-time-card p {

    margin: 0;

    font-size: 13px;

    line-height: 1.7;

    color: var(--tahfiz-text);
}



/* =========================================================
   SCHOOL HOLIDAY
   ========================================================= */

.tahfiz-holiday-card {

    position: relative;

    height: 100%;

    padding: 30px;

    border-radius: 16px;

    background: #fff;

    border: 1px solid #eee5d1;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.tahfiz-holiday-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(90,75,30,.08);
}


.tahfiz-holiday-card-top {

    display: flex;

    align-items: center;

    gap: 18px;
}


.tahfiz-holiday-icon {

    flex: 0 0 52px;

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #fff8e7;

    color: var(--tahfiz-gold);

    font-size: 22px;
}


.tahfiz-holiday-card-top > div:nth-child(2) {

    flex: 1;
}


.tahfiz-holiday-card small {

    display: block;

    margin-bottom: 5px;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.4px;

    color: var(--tahfiz-gold);
}


.tahfiz-holiday-card h3 {

    margin: 0;

    font-size: 20px;
    font-weight: 800;

    color: var(--tahfiz-navy);
}


.tahfiz-holiday-toggle {

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 50%;

    background: #fff8e7;

    color: var(--tahfiz-gold);

    font-size: 19px;

    transition:
        transform .3s ease,
        background .3s ease;
}


.tahfiz-holiday-content {

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transition:
        max-height .4s ease,
        opacity .3s ease;

}


.tahfiz-holiday-card.is-open
.tahfiz-holiday-content {

    max-height: 400px;

    padding-top: 22px;

    opacity: 1;
}


.tahfiz-holiday-card.is-open
.tahfiz-holiday-toggle {

    transform: rotate(45deg);

    background: var(--tahfiz-gold);

    color: #fff;
}


.tahfiz-holiday-content p {

    margin: 0 0 12px;

    font-size: 13px;

    line-height: 1.75;

    color: var(--tahfiz-text);
}


.tahfiz-holiday-content p:last-child {

    margin-bottom: 0;
}



/* =========================================================
   PRICING / PROGRAMME STRUCTURE
   ========================================================= */

.tahfiz-price-card {

    height: 100%;
    min-height: 555px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 2px solid;

    background: #fff;
}


/* =========================================================
   PRIMARY CARD
   ========================================================= */

.tahfiz-price-card.primary {

    border-color: var(--tahfiz-green);
}


/* =========================================================
   SECONDARY CARD
   ========================================================= */

.tahfiz-price-card.secondary {

    border-color: var(--tahfiz-blue);
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.tahfiz-price-content {

    flex: 1;

    padding: 25px 40px 35px;
}


/* =========================================================
   CARD TITLE
   ========================================================= */

.tahfiz-price-title {

    margin: 0 0 25px;

    text-align: center;

    font-size: 44px;
    font-weight: 900;

    letter-spacing: 1px;

    color: #555;
}


/* =========================================================
   PROGRAMME LIST
   ========================================================= */

.tahfiz-price-list {

    display: flex;

    flex-direction: column;
}


.tahfiz-price-list > div {

    min-height: 78px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 12px 20px;

    text-align: center;

    border-top: 2px solid;
}


/* Primary list borders */

.tahfiz-price-card.primary .tahfiz-price-list > div {

    border-color: rgba(131,181,45,.75);
}


/* Secondary list borders */

.tahfiz-price-card.secondary .tahfiz-price-list > div {

    border-color: rgba(43,134,179,.65);
}


/* =========================================================
   PROGRAMME TEXT
   ========================================================= */

.tahfiz-price-list strong {

    font-size: 18px;
    font-weight: 800;

    color: #555;
}


.tahfiz-price-list span {

    font-size: 16px;

    line-height: 1.4;

    color: #666;
}


/* =========================================================
   SECONDARY INTRO
   ========================================================= */

.tahfiz-secondary-intro {

    min-height: 65px;

    margin: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    font-size: 18px;

    line-height: 1.45;

    color: #555;
}


/* =========================================================
   PRICE BAR
   ========================================================= */

.tahfiz-price-bar {

    min-height: 72px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0 28px;

    font-size: 39px;
    font-weight: 900;

    color: #fff;

    text-align: center;
}


/* Primary price */

.tahfiz-price-card.primary .tahfiz-price-bar {

    background: var(--tahfiz-green);
}


/* Secondary price */

.tahfiz-price-card.secondary .tahfiz-price-bar {

    background: var(--tahfiz-blue);
}


/* =========================================================
   PRICE NOTE
   ========================================================= */

.tahfiz-price-note {

    max-width: 1050px;

    margin: 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 14px;

    padding: 18px 25px;

    background: #eef4f8;

    border-radius: 0 0 14px 14px;

    text-align: center;
}


.tahfiz-price-note i {

    flex-shrink: 0;

    font-size: 20px;

    color: var(--tahfiz-blue);
}


.tahfiz-price-note p {

    margin: 0;

    font-size: 14px;

    line-height: 1.6;

    color: #555;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {

    .tahfiz-price-content {

        padding: 25px 20px 30px;
    }


    .tahfiz-price-title {

        font-size: 36px;
    }


    .tahfiz-price-bar {

        min-height: 65px;

        font-size: 32px;
    }


    .tahfiz-price-note {

        padding: 16px 18px;

        gap: 10px;
    }

}


/* =========================================================
   PROGRAMME VISUALS
   ========================================================= */

.tahfiz-visual-card {

    overflow: hidden;

    border-radius: 18px;

    background: #fff;

    border: 1px solid rgba(39,52,128,.08);

    box-shadow:
        0 12px 35px rgba(39,52,128,.07);
}


.tahfiz-visual-card img {

    width: 100%;
    height: 280px;

    display: block;

    object-fit: cover;
}


.tahfiz-visual-card > div {

    padding: 22px 25px;
}


.tahfiz-visual-card small {

    display: block;

    margin-bottom: 5px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;

    color: var(--tahfiz-gold);
     text-align: center;
}


.tahfiz-visual-card h3 {

    margin: 0;

    font-size: 21px;
    font-weight: 800;

    color: var(--tahfiz-navy);
     text-align: center;
}



/* =========================================================
   CLOSING
   ========================================================= */

.tahfiz-closing-card {

    max-width: 1050px;

    margin: auto;

    display: flex;

    align-items: center;

    gap: 25px;

    padding: 35px 40px;

    border-radius: 20px;

    background: #fff;

    border: 1px solid rgba(39,52,128,.08);

    box-shadow:
        0 15px 40px rgba(39,52,128,.06);
}


.tahfiz-closing-icon {

    flex: 0 0 62px;

    width: 62px;
    height: 62px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--tahfiz-navy);

    color: #fff;

    font-size: 25px;
}


.tahfiz-closing-card small {

    display: block;

    margin-bottom: 5px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;

    color: var(--tahfiz-gold);
}


.tahfiz-closing-card h3 {

    margin: 0 0 8px;

    font-size: 24px;
    font-weight: 800;

    color: var(--tahfiz-navy);
}


.tahfiz-closing-card p {

    margin: 0;

    font-size: 14px;

    line-height: 1.7;

    color: var(--tahfiz-text);
}



/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .tahfiz-page-hero {

        padding: 80px 0;
    }


    .tahfiz-hero-image {

        min-height: 350px;
    }


    .tahfiz-hero-image img {

        min-height: 350px;
    }


    .tahfiz-price-card {

        min-height: auto;
    }

}


@media (max-width: 767px) {

    .tahfiz-introduction,
    .tahfiz-structure,
    .tahfiz-morning,
    .tahfiz-holiday,
    .tahfiz-pricing,
    .tahfiz-closing {

        padding: 65px 0;
    }


    .tahfiz-intro-card {

        padding: 30px 22px;
    }


    .tahfiz-branch-card {

        min-height: auto;

        padding: 25px;
    }


    .tahfiz-program-header {

        padding: 24px;
    }


    .tahfiz-program-body {

        padding: 24px;
    }


    .tahfiz-time-card {

        align-items: flex-start;
    }


    .tahfiz-price-content {

        padding: 25px 20px 30px;
    }


    .tahfiz-price-title {

        font-size: 34px;
    }


    .tahfiz-price-bar {

        font-size: 32px;
    }


    .tahfiz-closing-card {

        align-items: flex-start;

        padding: 28px 24px;
    }

}


@media (max-width: 575px) {

    .tahfiz-hero-image {

        min-height: 280px;
    }


    .tahfiz-hero-image img {

        min-height: 280px;
    }


    .tahfiz-branch-card {

        flex-wrap: wrap;
    }


    .tahfiz-price-list strong {

        font-size: 16px;
    }


    .tahfiz-price-list span {

        font-size: 14px;
    }


    .tahfiz-price-note {

        align-items: flex-start;

        text-align: left;
    }

}