/* IQRA SCHOOL — HOMEPAGE PART 03 */

:root {
    --iqra-blue: #123a73;
    --iqra-green: #008b70;
    --iqra-gold: #e9ae37;
    --iqra-soft: #f3f7fc;
    --iqra-text: #263548;
}

.section-padding {
    padding: 85px 0;
}

.section-soft {
    background: var(--iqra-soft);
}

.section-label {
    color: var(--iqra-green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-title {
    font-family: 'Poppins', 'Hind Siliguri', sans-serif;
    color: var(--iqra-blue);
    font-weight: 700;
    font-size: clamp(26px, 3vw, 39px);
    line-height: 1.3;
    margin: 12px 0 18px;
}

.section-heading {
    max-width: 750px;
    margin: 0 auto 45px;
}

.section-heading p,
.section-description {
    color: #657487;
    font-size: 16px;
    line-height: 1.9;
}

.btn-school-primary {
    background: var(--iqra-green);
    color: white;
    border-radius: 30px;
    padding: 12px 27px;
    font-weight: 600;
}

.btn-school-primary:hover {
    background: #006e58;
    color: white;
}

/* HERO */

.hero-slide {
    min-height: 610px;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    background-image:
        linear-gradient(
            90deg,
            rgba(8,35,73,.96) 0%,
            rgba(8,35,73,.83) 48%,
            rgba(8,35,73,.25) 100%
        ),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-container {
    position: relative;
    z-index: 1;
    padding-top: 75px;
    padding-bottom: 85px;
}

.home-hero-tag {
    display: inline-block;
    background: var(--iqra-gold);
    color: #18304b;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(32px, 4.5vw, 61px);
    font-weight: 700;
    line-height: 1.18;
    margin: 25px 0;
}

.hero-description {
    font-size: 19px;
    line-height: 1.9;
    max-width: 650px;
    color: #eef4fb;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn-hero-primary {
    background: var(--iqra-green);
    color: white;
    padding: 14px 25px;
    border-radius: 30px;
    font-weight: 700;
}

.btn-hero-primary:hover {
    background: #00715b;
    color: white;
}

.btn-hero-outline {
    border: 2px solid white;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
}

.btn-hero-outline:hover {
    background: white;
    color: var(--iqra-blue);
}

.home-hero .carousel-control-prev,
.home-hero .carousel-control-next {
    width: 6%;
}

.home-hero .carousel-indicators button {
    width: 28px;
    height: 5px;
    border: 0;
    border-radius: 8px;
}

/* HIGHLIGHTS */

.quick-highlights {
    position: relative;
    z-index: 2;
    margin-top: -40px;
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: white;
    padding: 27px 23px;
    border-radius: 15px;
    box-shadow: 0 12px 35px rgba(0,0,0,.09);
    height: 100%;
}

.highlight-card > i {
    font-size: 35px;
    color: var(--iqra-green);
}

.highlight-card h3 {
    font-size: 17px;
    color: var(--iqra-blue);
    font-weight: 700;
    margin-bottom: 5px;
}

.highlight-card p {
    margin: 0;
    color: #778496;
    font-size: 13px;
}

/* WELCOME */

.welcome-panel {
    min-height: 340px;
    border-radius: 24px;
    padding: 45px 35px;
    background: linear-gradient(
        135deg,
        #123a73,
        #008b70
    );
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 18px 40px rgba(18,58,115,.15);
}

.welcome-panel > i {
    font-size: 75px;
    color: var(--iqra-gold);
    margin-bottom: 20px;
}

.welcome-panel h3 {
    font-size: 26px;
    font-weight: 700;
}

.welcome-panel p {
    line-height: 1.8;
    color: #e4f3f0;
}

/* ACADEMIC PROGRAMS */

.program-card {
    background: white;
    border-radius: 17px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,.06);
    transition: transform .3s, box-shadow .3s;
}

.program-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
}

.program-image {
    position: relative;
}

.program-image img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    display: block;
    background: #e5ecf4;
}

.program-icon {
    position: absolute;
    right: 20px;
    bottom: -25px;
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    background: var(--iqra-green);
    color: white;
    border-radius: 14px;
    font-size: 25px;
    border: 4px solid white;
}

.program-content {
    padding: 37px 23px 25px;
}

.program-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--iqra-blue);
}

.program-level {
    color: var(--iqra-green);
    font-size: 13px;
    font-weight: 700;
}

.program-content p {
    margin-top: 15px;
    color: #687789;
    line-height: 1.8;
    min-height: 110px;
}

.program-link {
    color: var(--iqra-blue);
    font-weight: 700;
}

.program-link:hover {
    color: var(--iqra-green);
}

/* FEATURES */

.feature-card {
    text-align: center;
    padding: 35px 25px;
    background: white;
    border: 1px solid #e8eef5;
    border-radius: 17px;
    transition: .3s;
}

.feature-card:hover {
    border-color: var(--iqra-green);
    box-shadow: 0 12px 35px rgba(0,0,0,.07);
    transform: translateY(-5px);
}

.feature-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 25px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: #e6f5f0;
    color: var(--iqra-green);
    font-size: 34px;
}

.feature-card h3 {
    color: var(--iqra-blue);
    font-size: 19px;
    font-weight: 700;
}

.feature-card p {
    color: #6c7888;
    line-height: 1.8;
    margin: 15px 0 0;
}

/* ACHIEVEMENTS */

.stats-section {
    background: linear-gradient(
        120deg,
        #123a73,
        #075c6a
    );
    color: white;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 45px;
    font-weight: 700;
    color: var(--iqra-gold);
}

.stat-card p {
    font-weight: 600;
    margin-top: 10px;
}

/* STUDENT LIFE */

.activity-card {
    position: relative;
    height: 330px;
    overflow: hidden;
    border-radius: 18px;
    background: #dce7f0;
}

.activity-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.activity-card:hover img {
    transform: scale(1.07);
}

.activity-content {
    position: absolute;
    inset: auto 0 0;
    padding: 50px 25px 25px;
    background: linear-gradient(
        transparent,
        rgba(0,24,53,.95)
    );
    color: white;
}

.activity-content span {
    color: #f4cc74;
    font-size: 13px;
}

.activity-content h3 {
    font-size: 23px;
    font-weight: 700;
    margin-top: 8px;
}

/* NOTICES */

.notice-card {
    background: white;
    padding: 26px;
    border: 1px solid #e5ecf4;
    border-left: 5px solid var(--iqra-green);
    border-radius: 12px;
    height: 100%;
    transition: .3s;
}

.notice-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,.07);
}

.notice-date {
    font-size: 13px;
    color: var(--iqra-green);
    font-weight: 700;
    margin-bottom: 12px;
}

.notice-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--iqra-blue);
}

.notice-card p {
    color: #687789;
    line-height: 1.8;
    margin-bottom: 0;
}

/* VIDEO GALLERY */

.video-card {
    background: white;
    border-radius: 17px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 8px 28px rgba(0,0,0,.06);
}

.video-thumbnail {
    height: 215px;
    position: relative;
    background: #123a73;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.5);
    font-size: 55px;
}

.video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--iqra-green);
    color: white;
    display: grid;
    place-items: center;
    font-size: 35px;
    transition: .3s;
}

.video-play:hover {
    background: var(--iqra-gold);
    color: #123a73;
}

.video-content {
    padding: 22px;
}

.video-content h3 {
    color: var(--iqra-blue);
    font-size: 18px;
    font-weight: 700;
}

.video-content span {
    color: #718095;
    font-size: 13px;
}

.empty-video {
    padding: 55px 20px;
    border: 2px dashed #cbd8e6;
    border-radius: 18px;
}

.empty-video i {
    color: var(--iqra-green);
    font-size: 55px;
}

.empty-video h3 {
    margin-top: 20px;
    color: var(--iqra-blue);
}

/* ADMISSION CTA */

.admission-cta {
    background: linear-gradient(
        120deg,
        #123a73,
        #008b70
    );
    padding: 75px 0;
    color: white;
}

.cta-label {
    display: inline-block;
    background: var(--iqra-gold);
    color: #123a73;
    border-radius: 25px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 13px;
}

.admission-cta h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(26px, 3vw, 39px);
    margin: 20px 0;
}

.admission-cta p {
    color: #e8f6f2;
    font-size: 17px;
    line-height: 1.8;
}

.btn-cta {
    background: var(--iqra-gold);
    color: #123a73;
    padding: 16px 28px;
    border-radius: 30px;
    font-weight: 700;
}

.btn-cta:hover {
    background: white;
    color: #123a73;
}

/* RESPONSIVE */

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

    .hero-slide {
        min-height: 520px;
    }

    .hero-title {
        font-size: 43px;
    }

    .program-content p {
        min-height: auto;
    }

    .quick-highlights {
        margin-top: 25px;
    }
}

@media (max-width: 767px) {
    .hero-slide {
        min-height: 550px;
        background-image:
            linear-gradient(
                rgba(8,35,73,.90),
                rgba(8,35,73,.83)
            ),
            var(--hero-image);
        text-align: center;
    }

    .hero-title {
        font-size: 33px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        justify-content: center;
    }

    .home-hero .carousel-control-prev,
    .home-hero .carousel-control-next {
        display: none;
    }

    .highlight-card {
        padding: 22px;
    }

    .section-padding {
        padding: 55px 0;
    }

    .section-title {
        font-size: 27px;
    }

    .activity-card {
        height: 280px;
    }

    .admission-cta {
        text-align: center;
        padding: 55px 0;
    }

    .btn-cta {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .program-card,
    .feature-card,
    .activity-card img,
    .video-play {
        transition: none;
    }
}

/* IBSB hero background videos — preserves existing text and CTAs */
.hero-video-slide { position: relative; isolation: isolate; overflow: hidden; background-position:center; background-size:cover; }
.ibsb-hero-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; pointer-events:none; }
.ibsb-hero-video-shade { position:absolute; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(90deg,rgba(7,30,66,.87) 0%,rgba(7,30,66,.64) 52%,rgba(7,30,66,.30) 100%); }
.hero-video-slide .hero-container { position:relative; z-index:1; }
@media(max-width:767.98px) { .ibsb-hero-video-shade {background:linear-gradient(90deg,rgba(7,30,66,.85),rgba(7,30,66,.72));} }
@media(prefers-reduced-motion:reduce) { .ibsb-hero-video {display:none;} }
