/* =========================================================
   ADNI ISLAMIC SCHOOL
   ENHANCEMENT PROGRAM
   enhancement.css
========================================================= */

/* =========================================================
   BASE
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #1f2937;
    background: #f7f9fc;
}

button {
    font-family: inherit;
}

#programs {
    padding: 90px 0;
}

#programs .wrap {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

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

.hero {
    min-height: 650px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 110%,
            rgba(255, 196, 0, .30),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #052b57 0%,
            #0753ad 100%
        );
}

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    right: -180px;
    top: -180px;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow:
        0 0 0 50px rgba(255,255,255,.025),
        0 0 0 100px rgba(255,255,255,.018);
}

.hero .wrap {
    position: relative;
    z-index: 2;
}

.hero .k {
    color: #fff;
}

.hero h1 {
    max-width: 900px;
    margin: 18px auto;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
}

.hero h1 span {
    display: block;
    color: #f2c94c;
}

.hero p {
    max-width: 760px;
    margin: 25px auto 0;
    color: #dcecff;
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero .btns {
    margin-top: 25px;
}

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

.nav {
    position: relative;
    z-index: 10;
}

.navin {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
}

.navin a {
    text-decoration: none;
}

/* =========================================================
   ABOUT
========================================================= */

#about {
    padding: 90px 20px;
    background: #fff;
}

#about .wrap {
    max-width: 850px;
    margin: auto;
}

#about .intro {
    max-width: 760px;
    margin: 25px auto 0;
    line-height: 1.9;
}

/* =========================================================
   PROGRAM ACCORDION
========================================================= */

.program-accordion {
    max-width: 1100px;
    margin: 55px auto 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.program-item {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(5,43,87,.06);
    box-shadow: 0 15px 45px rgba(0,0,0,.07);
    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.program-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 55px rgba(0,0,0,.10);
}

/* =========================================================
   PROGRAM HEADER
========================================================= */

.program-header {
    width: 100%;
    border: 0;
    outline: 0;
    background: #fff;
    cursor: pointer;

    padding: 30px 34px;

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

    text-align: left;
}

.program-header:focus-visible {
    outline: 3px solid rgba(242,201,76,.55);
    outline-offset: -3px;
}

.program-left {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.program-icon {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;

    border-radius: 20px;

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

    color: #fff;
    font-size: 32px;

    background:
        linear-gradient(
            135deg,
            #0b4d8a,
            #176dc0
        );

    box-shadow:
        0 10px 25px rgba(11,77,138,.20);

    transition: .35s ease;
}

.program-header:hover .program-icon {
    transform: scale(1.06) rotate(-2deg);
}

.program-left h3 {
    margin: 0;
    color: #052b57;
    font-size: 1.35rem;
    line-height: 1.35;
}

.program-left p {
    margin: 7px 0 0;
    color: #6b7280;
    line-height: 1.6;
}

.arrow {
    flex: 0 0 auto;
    margin-left: 20px;
    color: #0b4d8a;
    font-size: 25px;
    transition: transform .4s ease;
}

.program-item.active .arrow {
    transform: rotate(180deg);
}

.program-item.active .program-header {
    background: #fbfdff;
}

/* =========================================================
   PROGRAM CONTENT
========================================================= */

.program-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .55s ease;
}

.program-item.active .program-content {
    max-height: 3000px;
}

.program-content-inner {
    padding: 0 34px 40px;
}

/* =========================================================
   SPDU INTRODUCTION
========================================================= */

.spdu-intro{
    width:100%;
    max-width:900px;
    margin:0 auto;
}

.spdu-intro h4{
    margin:0 0 20px;
    color:#052b57;
    font-size:1.55rem;
    line-height:1.4;
    text-align:center;
}

.spdu-intro p{
    max-width:880px;
    margin:0 auto;
    color:#555;
    line-height:2;
    font-size:1rem;
    text-align:justify;
}

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

.spdu-image {
    width: 100%;
    margin: 45px auto 65px;
    text-align: center;
}

.spdu-image img {
    width: 100%;
    max-width: 950px;
    height: auto;

    display: block;
    margin: 0 auto;

    border-radius: 24px;

    object-fit: cover;

    box-shadow:
        0 22px 60px rgba(0,0,0,.15);

    transition:
        transform .45s ease,
        box-shadow .45s ease;
}

.spdu-image img:hover {
    transform: scale(1.012);
    box-shadow:
        0 28px 70px rgba(0,0,0,.18);
}

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

.spdu-services {
    max-width: 1050px;
    margin: 0 auto;
}

.services-heading {
    text-align: center;
    margin-bottom: 38px;
}

.services-heading span {
    display: inline-block;
    margin-bottom: 8px;

    color: #0b4d8a;

    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.services-heading{
    text-align:center;
    margin-bottom:38px;
}

.service-card p{
    position:relative;
    z-index:2;

    margin:0;

    color:#666;
    line-height:1.8;
    text-align:justify;
}

/* =========================================================
   SERVICES GRID
========================================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    position: relative;
    overflow: hidden;

    min-height: 270px;
    padding: 32px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7faff
        );

    border: 1px solid rgba(11,77,138,.08);
    border-radius: 22px;

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

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

.service-card::before {
    content: "";
    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    background:
        linear-gradient(
            to bottom,
            #f2c94c,
            #0b4d8a
        );

    transform: scaleY(0);
    transform-origin: bottom;

    transition: transform .45s ease;
}

.service-card::after {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    right: -75px;
    bottom: -75px;

    border-radius: 50%;

    background: rgba(11,77,138,.035);

    transition: .45s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(11,77,138,.15);

    box-shadow:
        0 22px 50px rgba(0,0,0,.10);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card:hover::after {
    transform: scale(1.5);
}

/* =========================================================
   SERVICE NUMBER
========================================================= */

.service-number {
    position: absolute;

    top: 22px;
    right: 25px;

    color: #d7dee8;

    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 1px;

    transition: .35s ease;
}

.service-card:hover .service-number {
    color: #c2ccd9;
}

/* =========================================================
   SERVICE ICON
========================================================= */

.service-icon {
    width: 62px;
    height: 62px;

    margin-bottom: 22px;

    border-radius: 17px;

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

    background: #eaf2fb;
    color: #0b4d8a;

    font-size: 26px;

    transition:
        background .4s ease,
        color .4s ease,
        transform .4s ease;
}

.service-card:hover .service-icon {
    background: #0b4d8a;
    color: #fff;
    transform: rotate(-5deg) scale(1.08);
}

/* =========================================================
   SERVICE CONTENT
========================================================= */

.service-card h5 {
    position: relative;
    z-index: 2;

    margin: 0 0 12px;

    color: #052b57;
    font-size: 1.15rem;
    line-height: 1.4;
}

.service-card h5 span {
    color: #b48a00;
    font-size: .78rem;
    font-weight: 800;
}

.service-card p {
    position: relative;
    z-index: 2;

    margin: 0;

    color: #666;
    line-height: 1.8;
}

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

.service-arrow {
    position: relative;
    z-index: 2;

    margin-top: 20px;

    color: #0b4d8a;
    font-size: 18px;

    transition:
        transform .4s ease,
        color .4s ease;
}

.service-card:hover .service-arrow {
    transform: translateX(8px);
    color: #052b57;
}

/* =========================================================
   SPDU FEATURE ROWS
   Real programme images with alternating layout
========================================================= */

.spdu-feature-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:42px;
    align-items:center;
    max-width:1050px;
    margin:45px auto;
}

.spdu-feature-image{
    position:relative;
    overflow:hidden;
    aspect-ratio:4 / 3;
    border-radius:24px;
    background:#eaf2fb;
    box-shadow:0 20px 50px rgba(5,43,87,.12);
}

.spdu-feature-image::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(
        180deg,
        rgba(5,43,87,0) 55%,
        rgba(5,43,87,.12) 100%
    );
}

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

.spdu-feature-image:hover img{
    transform:scale(1.045);
}

/* Image positioning */

.spdu-feature-left .spdu-feature-image{
    order:1;
}

.spdu-feature-left .spdu-feature-content{
    order:2;
}

.spdu-feature-right .spdu-feature-image{
    order:2;
}

.spdu-feature-right .spdu-feature-content{
    order:1;
}

/* Keep important areas visible in the supplied photos */

.spdu-feature-left .spdu-feature-image img{
    object-position:50% 55%;
}

.spdu-feature-right .spdu-feature-image img{
    object-position:50% 50%;
}

/* Feature copy */

.spdu-feature-content{
    padding:18px 6px;
}

.spdu-feature-number{
    display:block;
    margin-bottom:9px;
    color:#d1d9e3;
    font-size:.78rem;
    font-weight:800;
    letter-spacing:1px;
}

.spdu-feature-label{
    display:block;
    margin-bottom:9px;
    color:#0b4d8a;
    font-size:.7rem;
    font-weight:800;
    letter-spacing:1.8px;
    text-transform:uppercase;
}

.spdu-feature-content h5{
    margin:0 0 14px;
    color:#052b57;
    font-size:clamp(1.5rem,3vw,2.15rem);
    line-height:1.2;
}

.spdu-feature-content p{
    margin:0;
    color:#667085;
    font-size:.96rem;
    line-height:1.85;
}

.spdu-feature-points{
    display:flex;
    flex-direction:column;
    gap:9px;
    margin-top:22px;
}

.spdu-feature-points span{
    display:flex;
    align-items:center;
    gap:9px;
    color:#344054;
    font-size:.83rem;
    font-weight:700;
}

.spdu-feature-points i{
    color:#0b4d8a;
    font-size:17px;
}

/* Heading before the four cards */

.spdu-support-heading{
    max-width:750px;
    margin:65px auto 30px;
    text-align:center;
}

.spdu-support-heading span{
    display:block;
    margin-bottom:8px;
    color:#0b4d8a;
    font-size:.7rem;
    font-weight:900;
    letter-spacing:2px;
    text-transform:uppercase;
}

.spdu-support-heading h5{
    margin:0;
    color:#052b57;
    font-size:clamp(1.45rem,3vw,2rem);
}

/* =========================================================
   SPDU FEATURE ROWS - RESPONSIVE
========================================================= */

@media(max-width:700px){

    .spdu-feature-row{
        grid-template-columns:1fr;
        gap:22px;
        margin:35px auto;
    }

    .spdu-feature-left .spdu-feature-image,
    .spdu-feature-right .spdu-feature-image{
        order:1;
    }

    .spdu-feature-left .spdu-feature-content,
    .spdu-feature-right .spdu-feature-content{
        order:2;
    }

    .spdu-feature-image{
        aspect-ratio:4 / 3;
        border-radius:18px;
    }

    .spdu-feature-content{
        padding:5px 3px;
    }

    .spdu-feature-content h5{
        font-size:1.45rem;
    }

    .spdu-support-heading{
        margin-top:48px;
    }

}


/* =========================================================
   SPDU STRUCTURED SUPPORT CLASS
========================================================= */

.spdu-structured-support{
    margin:65px auto 10px;
    padding:38px;
    border-radius:28px;
    background:linear-gradient(145deg,#f7fbff 0%,#ffffff 70%);
    border:1px solid rgba(11,77,138,.08);
    box-shadow:0 15px 45px rgba(0,0,0,.06);
}

.spdu-structured-head{
    max-width:820px;
    margin:0 auto 35px;
    text-align:center;
}

.spdu-structured-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 13px;
    border-radius:999px;
    background:#eaf2fb;
    color:#0b4d8a;
    font-size:.72rem;
    font-weight:800;
    letter-spacing:1.4px;
    text-transform:uppercase;
}

.spdu-structured-head h4{
    margin:16px 0 12px;
    color:#052b57;
    font-size:clamp(1.7rem,3vw,2.25rem);
    line-height:1.2;
}

.spdu-structured-head p{
    max-width:760px;
    margin:0 auto;
    color:#667085;
    line-height:1.85;
}

.spdu-support-meta{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:9px;
    margin-top:20px;
}

.spdu-support-meta span{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:8px 12px;
    border-radius:999px;
    background:#fff;
    border:1px solid #dce7f2;
    color:#052b57;
    font-size:.76rem;
    font-weight:800;
}

.spdu-support-meta i{
    color:#b48a00;
}

.spdu-support-areas{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.spdu-support-card{
    position:relative;
    min-height:320px;
    padding:25px;
    padding-bottom:78px;
    overflow:hidden;
    border:1px solid rgba(11,77,138,.08);
    border-radius:22px;
    background:#fff;
    box-shadow:0 8px 25px rgba(0,0,0,.04);
    transition:transform .4s ease,box-shadow .4s ease,background .4s ease;
}

.spdu-support-card::before{
    content:"";
    position:absolute;
    width:170px;
    height:170px;
    right:-90px;
    bottom:-90px;
    border-radius:50%;
    background:rgba(11,77,138,.035);
    transition:.45s ease;
}

.spdu-support-card:hover{
    transform:translateY(-8px);
    background:#052b57;
    box-shadow:0 24px 55px rgba(5,43,87,.16);
}

.spdu-support-card:hover::before{
    transform:scale(1.55);
    background:rgba(242,201,76,.10);
}

.spdu-support-card-top{
    position:relative;
    z-index:2;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.spdu-support-icon{
    width:56px;
    height:56px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:17px;
    background:#eaf2fb;
    color:#0b4d8a;
    font-size:24px;
    transition:.4s ease;
}

.spdu-support-card-top > span{
    color:#d1d9e3;
    font-size:.76rem;
    font-weight:800;
    letter-spacing:1px;
}

.spdu-support-card:hover .spdu-support-icon{
    background:#f2c94c;
    color:#052b57;
    transform:rotate(-5deg) scale(1.08);
}

.spdu-support-card-body{
    position:relative;
    z-index:2;
    margin-top:32px;
    padding-bottom:8px;
}

.spdu-support-card-body small{
    color:#0b4d8a;
    font-size:.68rem;
    font-weight:800;
    letter-spacing:1.5px;
    text-transform:uppercase;
    transition:.35s ease;
}

.spdu-support-card-body h5{
    margin:8px 0 10px;
    color:#052b57;
    font-size:1.25rem;
    line-height:1.35;
    transition:.35s ease;
}

.spdu-support-card-body p{
    margin:0;
    color:#667085;
    font-size:.92rem;
    line-height:1.75;
    transition:.35s ease;
}

.spdu-support-card:hover .spdu-support-card-body small{
    color:#f2c94c;
}

.spdu-support-card:hover .spdu-support-card-body h5{
    color:#fff;
}

.spdu-support-card:hover .spdu-support-card-body p{
    color:#dcecff;
}

.spdu-support-card-footer{
    position:absolute;
    z-index:3;
    left:25px;
    right:25px;
    bottom:20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    color:#0b4d8a;
    font-size:.72rem;
    font-weight:800;
    transition:.35s ease;
}

.spdu-support-card-footer i{
    font-size:17px;
    transition:.35s ease;
}

.spdu-support-card:hover .spdu-support-card-footer{
    color:#f2c94c;
}

.spdu-support-card:hover .spdu-support-card-footer i{
    transform:translate(3px,-3px);
}

.spdu-support-goal{
    display:grid;
    grid-template-columns:62px 1fr;
    gap:18px;
    align-items:center;
    margin-top:22px;
    padding:25px 28px;
    border-radius:21px;
    background:#052b57;
    color:#fff;
}

.spdu-support-goal-icon{
    width:58px;
    height:58px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:17px;
    background:#f2c94c;
    color:#052b57;
    font-size:22px;
}

.spdu-support-goal small{
    color:#f2c94c;
    font-size:.68rem;
    font-weight:800;
    letter-spacing:1.5px;
}

.spdu-support-goal h5{
    margin:4px 0 5px;
    color:#fff;
    font-size:1.3rem;
}

.spdu-support-goal p{
    margin:0;
    color:#dcecff;
    line-height:1.7;
}

@media(max-width:700px){

    .spdu-structured-support{
        margin-top:45px;
        padding:25px 18px;
        border-radius:20px;
    }

    .spdu-support-meta{
        flex-direction:column;
        align-items:stretch;
    }

    .spdu-support-meta span{
        justify-content:center;
    }

    .spdu-support-areas{
        grid-template-columns:1fr;
        gap:14px;
    }

    .spdu-support-card{
        min-height:285px;
        padding:23px;
        padding-bottom:72px;
        border-radius:18px;
    }

    .spdu-support-card-footer{
        left:23px;
        right:23px;
    }

    .spdu-support-goal{
        grid-template-columns:1fr;
        padding:24px;
    }

}

/* =========================================================
   OTHER PROGRAM CONTENT
========================================================= */

.program-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 45px;
    align-items: center;
}

.program-text h4 {
    margin-bottom: 18px;
    color: #052b57;
}

.program-text p {
    color: #555;
    line-height: 1.9;
}

.program-text ul {
    padding-left: 22px;
    margin-top: 22px;
}

.program-text li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.program-image {
    display: flex;
    justify-content: center;
}

.program-image img {
    width: 100%;
    max-width: 500px;
    display: block;
    border-radius: 22px;
    object-fit: cover;

    box-shadow:
        0 20px 50px rgba(0,0,0,.12);
}

/* =========================================================
   BUTTON
========================================================= */

.program-text .btn {
    margin-top: 20px;
}

.btn.yellow {
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.btn.yellow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

/* =========================================================
   CTA
========================================================= */

#contact {
    padding: 90px 20px;
}

#contact .ctabox {
    text-align: center;
}

#contact .ctabox p {
    max-width: 700px;
    margin: 0 auto 28px;
}

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

@media (max-width: 992px) {

    .hero {
        min-height: 580px;
    }

    .program-header {
        padding: 26px;
    }

    .program-content-inner {
        padding: 0 26px 34px;
    }

    .program-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .program-image {
        order: -1;
    }

    .program-image img {
        max-width: 700px;
    }

    .spdu-image img {
        max-width: 800px;
    }

}

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

@media (max-width: 700px) {

    #programs {
        padding: 65px 0;
    }

    #programs .wrap {
        width: min(100% - 28px, 1200px);
    }

    #about {
        padding: 65px 18px;
    }

    .hero {
        min-height: 530px;
        padding: 65px 18px;
    }

    .hero h1 {
        font-size: clamp(2.15rem, 10vw, 3rem);
    }

    .hero p {
        font-size: .98rem;
    }

    .navin {
        gap: 18px;
    }

    .program-accordion {
        margin-top: 40px;
        gap: 16px;
    }

    .program-item {
        border-radius: 18px;
    }

    .program-header {
        padding: 21px 18px;
    }

    .program-left {
        gap: 15px;
        align-items: center;
    }

    .program-icon {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        border-radius: 15px;
        font-size: 24px;
    }

    .program-left h3 {
        font-size: 1rem;
    }

    .program-left p {
        font-size: .88rem;
    }

    .arrow {
        margin-left: 10px;
        font-size: 20px;
    }

    .program-content-inner {
        padding: 0 18px 25px;
    }

    .spdu-intro h4 {
        font-size: 1.28rem;
    }

    .spdu-intro p {
        font-size: .94rem;
        line-height: 1.85;
    }

    .spdu-image {
        margin: 30px auto 45px;
    }

    .spdu-image img {
        border-radius: 16px;
    }

    .services-heading {
        margin-bottom: 28px;
    }

    .services-heading h4 {
        font-size: 1.7rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        min-height: auto;
        padding: 25px;
        border-radius: 18px;
    }

    .service-icon {
        width: 56px;
        height: 56px;
        font-size: 23px;
    }

    .service-card p {
        font-size: .93rem;
        line-height: 1.75;
    }

    .service-item p {
        padding-left: 0;
    }

}

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

@media (max-width: 420px) {

    .program-left {
        gap: 12px;
    }

    .program-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        font-size: 21px;
    }

    .program-left h3 {
        font-size: .94rem;
    }

    .program-left p {
        font-size: .82rem;
    }

    .arrow {
        font-size: 18px;
    }

    .service-card {
        padding: 22px;
    }

}