:root {
    --primary: #206fff;
    --primary-dark: #0f4dbd;
    --red: #e91e2b;
    --gold: #ffd83d;
    --navy: #0b2a55;
    --ink: #172033;
    --muted: #667085;
    --soft: #f4f8ff;
    --border: #e7ecf4;
    --white: #fff;
    --shadow: 0 18px 55px rgba(11, 42, 85, .09)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 78px
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    overflow-x: hidden
}

img {
    max-width: 100%;
    height: auto
}

.skip-link {
    position: absolute;
    left: -9999px
}

.skip-link:focus {
    left: 10px;
    top: 10px;
    z-index: 9999;
    background: #fff;
    padding: 10px
}

.topbar {
    background: var(--navy);
    color: #dfeaff
}

.topbar a {
    color: #fff;
    text-decoration: none
}

.site-header {
    box-shadow: 0 2px 18px rgba(11, 42, 85, .08)
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px
}

.brand-name {
    line-height: 1.05;
    color: var(--navy);
    font-size: 1rem
}

.brand-name small {
    display: block;
    color: var(--muted);
    font-weight: 500;
    font-size: .72rem;
    margin-top: 3px
}

.navbar .nav-link {
    font-weight: 600;
    color: #344054;
    padding: .75rem .65rem !important
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary)
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary)
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark)
}

.hero {
    position: relative;
    isolation: isolate;
    color: #fff;
    overflow: hidden;
    background: #0b2a55;
}

/* Actual hero photograph */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;

    background-image:
        linear-gradient(
            90deg,
            rgba(7, 29, 60, 0.94) 0%,
            rgba(11, 42, 85, 0.82) 38%,
            rgba(32, 111, 255, 0.65) 100%
        ),
        url('../images/hero-section-img.jpg');

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;

    opacity: 1;
}

/* Additional subtle blue layer */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(32, 111, 255, 0.25),
            transparent 45%
        ),
        linear-gradient(
            180deg,
            rgba(7, 29, 60, 0.10),
            rgba(7, 29, 60, 0.30)
        );

    pointer-events: none;
}

/* Hero content */
.hero-inner {
    min-height: 720px;
    display: flex;
    align-items: center;
    padding: 90px 0;
}

.hero h1 {
    font-size: clamp(2.35rem, 6vw, 5rem);
    font-weight: 850;
    letter-spacing: -.055em;
    line-height: 1.02;
}

.hero p {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #e6efff;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 8px 14px;
    border-radius: 50px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hero-logo {
    max-width: 360px;
    width: 72%;
    filter: drop-shadow(0 25px 30px rgba(0, 0, 0, .25));
    border-radius: 24px;
}

.hero-note {
    font-size: .88rem;
    color: #dbe8ff;
}

.hero-stat {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 28px;
}

.hero-stat strong {
    font-size: 1.15rem;
}

.hero-stat span {
    display: block;
    color: #cbdcff;
    font-size: .82rem;
}

/* Remove the old campus image rule */
.photo-bg.hero-campus {
    background-image: none;
}




/* .hero {
    position: relative;
    isolation: isolate;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, #071d3c, #0b2a55 42%, #206fff)
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(90deg, rgba(7, 29, 60, .94), rgba(11, 42, 85, .75), rgba(32, 111, 255, .62)), url('../images/campus-hero.svg') center/cover no-repeat;
    opacity: .98
}

.hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    right: -230px;
    bottom: -280px;
    z-index: -1
}

.hero-inner {
    min-height: 720px;
    display: flex;
    align-items: center;
    padding: 90px 0
}

.hero h1 {
    font-size: clamp(2.35rem, 6vw, 5rem);
    font-weight: 850;
    letter-spacing: -.055em;
    line-height: 1.02
}

.hero p {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #e6efff;
    max-width: 700px
}

.hero-badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 8px 14px;
    border-radius: 50px;
    font-weight: 700;
    backdrop-filter: blur(8px)
}

.hero-logo {
    max-width: 360px;
    width: 72%;
    filter: drop-shadow(0 25px 30px rgba(0, 0, 0, .25));
    border-radius: 24px
}

.hero-note {
    font-size: .88rem;
    color: #dbe8ff
}

.hero-stat {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 28px
}

.hero-stat strong {
    font-size: 1.15rem
}

.hero-stat span {
    display: block;
    color: #cbdcff;
    font-size: .82rem
} */

.section {
    padding: 92px 0
}

.section-sm {
    padding: 60px 0
}

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

.section-title {
    font-weight: 850;
    color: var(--navy);
    letter-spacing: -.035em
}

.section-lead {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.8
}

.eyebrow {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .76rem
}

.eyebrow-light {
    color: #ffe47b
}

.trust-strip {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow);
    margin-top: -70px;
    position: relative;
    z-index: 3
}

.trust-item {
    display: flex;
    gap: 12px;
    align-items: flex-start
}

.trust-item i {
    font-size: 1.55rem;
    color: var(--primary)
}

.program-card,
.feature-card,
.staff-card,
.event-card,
.success-card,
.blog-card,
.info-card,
.quote-card {
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(20, 45, 90, .06);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease
}

.program-card:hover,
.feature-card:hover,
.staff-card:hover,
.event-card:hover,
.success-card:hover,
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(20, 45, 90, .13);
    border-color: #d5e2fa
}

.icon-box {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #eaf1ff;
    color: var(--primary);
    font-size: 1.4rem
}

.program-card .duration {
    color: var(--red);
    font-weight: 750
}

.feature-card p,
.program-card p,
.staff-card p,
.event-card p,
.success-card p,
.blog-card p {
    line-height: 1.7
}

.mini-link {
    font-weight: 750;
    color: var(--primary);
    text-decoration: none
}

.mini-link:hover {
    color: var(--primary-dark)
}

.image-frame {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow);
    background: #eaf1ff
}

.image-frame img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
    transition: transform .7s ease
}

.image-frame:hover img {
    transform: scale(1.035)
}

.image-caption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 13px 15px;
    border-radius: 16px;
    background: rgba(7, 29, 60, .78);
    color: #fff;
    backdrop-filter: blur(8px)
}

.image-caption strong {
    display: block
}

.image-caption span {
    font-size: .82rem;
    color: #d8e5ff
}

.photo-bg {
    min-height: 420px;
    border-radius: 28px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow)
}

.photo-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 29, 60, .05), rgba(7, 29, 60, .72))
}

.photo-bg .photo-content {
    position: absolute;
    z-index: 1;
    left: 28px;
    right: 28px;
    bottom: 28px;
    color: #fff
}

.photo-bg.hero-campus {
    background-image: url('../images/campus-hero.svg')
}

.photo-bg.classroom {
    background-image: url('../images/classroom.svg')
}

.photo-bg.hospital {
    background-image: url('../images/alkhadmat-hospital.jfif')
}

.photo-bg.hostel {
    background-image: url('../images/hostel.svg')
}

.principal-wrap {
    position: relative
}

.principal-quote {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.75;
    color: var(--navy);
    font-weight: 650
}

.quote-mark {
    font-size: 5rem;
    line-height: .5;
    color: var(--gold);
    font-family: Georgia, serif
}

.signature-line {
    border-top: 1px solid var(--border);
    padding-top: 16px
}

.profile-placeholder {
    height: 290px;
    background: url('../images/principal.svg') center/cover no-repeat
}

.staff-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    background: #edf3ff
}

.staff-track-wrap {
    overflow: hidden;
    position: relative
}

.staff-track {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: staffScroll 32s linear infinite
}

.staff-track:hover {
    animation-play-state: paused
}

.staff-item {
    width: 280px;
    flex: 0 0 280px
}

.staff-card {
    overflow: hidden
}

.staff-card .staff-photo {
    height: 245px
}

.staff-role {
    color: var(--primary);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em
}

@keyframes staffScroll {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

.event-img,
.success-img,
.blog-img {
    width: 100%;
    height: 235px;
    object-fit: cover;
    display: block;
    background: #eaf1ff
}

.event-card,
.success-card,
.blog-card {
    overflow: hidden
}

.badge-soft {
    background: #eaf1ff;
    color: var(--primary);
    font-weight: 750
}

.success-card {
    position: relative
}

.success-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(var(--primary), var(--red))
}

.success-number {
    font-size: 2.5rem;
    font-weight: 850;
    color: var(--navy);
    letter-spacing: -.04em
}

.blog-card .blog-img {
    height: 210px
}

.blog-meta {
    font-size: .78rem;
    color: var(--muted);
    font-weight: 700
}

.blog-card h3 {
    line-height: 1.3
}

.story-banner {
    position: relative;
    isolation: isolate;
    color: #fff;
    overflow: hidden;
    background: var(--navy);
    border-radius: 30px
}

.story-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(11, 42, 85, .96), rgba(11, 42, 85, .67)), url('../images/seminar-1.jpg') center/cover no-repeat
}

.story-banner .btn-light:hover {
    transform: translateY(-2px)
}

.story-banner .btn {
    transition: transform .25s ease
}

.stats {
    background: var(--navy);
    color: #fff
}

.stat-num {
    font-size: 2.3rem;
    font-weight: 850
}

.stat-label {
    color: #b9c8df;
    font-size: .88rem
}

.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0b2a55, #206fff);
    color: #fff;
    padding: 90px 0 75px
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../images/seminar.svg') center/cover;
    opacity: .08
}

.page-hero>* {
    position: relative;
    z-index: 1
}

.page-hero h1 {
    font-weight: 850
}

.form-control,
.form-select {
    padding: .8rem 1rem;
    border-radius: 12px;
    border-color: #dce4ef
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(32, 111, 255, .12)
}

.form-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(20, 45, 90, .05)
}

.facility-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    background: #eaf1ff
}

.gallery-placeholder {
    min-height: 230px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #dce8ff, #f9fbff);
    color: #6c7c94
}

.table thead th {
    background: var(--navy);
    color: #fff
}

.footer {
    background: #081d3b;
    color: #fff
}

.footer a {
    color: #dce8ff;
    text-decoration: none;
    display: block;
    margin: .4rem 0
}

.footer a:hover {
    color: #fff
}

.footer-logo {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 14px
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25D366;
    color: #fff;
    font-size: 1.8rem;
    text-decoration: none;
    z-index: 1050;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
    transition: transform .25s ease
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.08)
}

.whatsapp-label {
    position: fixed;
    right: 88px;
    bottom: 27px;
    background: #fff;
    color: var(--navy);
    padding: 8px 13px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
    font-size: .8rem;
    font-weight: 750;
    z-index: 1049
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1)
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1)
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1)
}

.reveal.show,
.reveal-left.show,
.reveal-right.show {
    opacity: 1;
    transform: none
}

.delay-1 {
    transition-delay: .08s
}

.delay-2 {
    transition-delay: .16s
}

.delay-3 {
    transition-delay: .24s
}

.notice {
    border-left: 4px solid var(--gold);
    background: #fff9d9;
    padding: 14px 16px;
    border-radius: 0 12px 12px 0
}

.required:after {
    content: " *";
    color: var(--red)
}

@media(max-width:991.98px) {
    .hero-inner {
        min-height: auto;
        padding: 70px 0
    }

    .hero-logo {
        margin-top: 40px;
        max-width: 260px
    }

    .section {
        padding: 70px 0
    }

    .trust-strip {
        margin-top: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0
    }

    .staff-track {
        animation-duration: 27s
    }

    .photo-bg {
        min-height: 360px
    }

    .navbar .nav-link {
        padding: .65rem .25rem !important
    }
}

@media(max-width:575.98px) {
    .brand-logo {
        width: 48px;
        height: 48px
    }

    .brand-name {
        font-size: .88rem
    }

    .brand-name small {
        font-size: .62rem
    }

    .hero h1 {
        font-size: 2.35rem
    }

    .hero-inner {
        padding: 55px 0
    }

    .section {
        padding: 58px 0
    }

    .section-title {
        font-size: 2rem
    }

    .hero-stat {
        margin-top: 22px
    }

    .hero-stat strong {
        font-size: 1rem
    }

    .photo-bg {
        min-height: 330px;
        border-radius: 20px
    }

    .photo-bg .photo-content {
        left: 20px;
        right: 20px;
        bottom: 20px
    }

    .staff-item {
        width: 245px;
        flex-basis: 245px
    }

    .staff-track {
        gap: 14px
    }

    .whatsapp-float {
        right: 15px;
        bottom: 15px;
        width: 54px;
        height: 54px
    }

    .whatsapp-label {
        display: none
    }

    .profile-placeholder {
        height: 245px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none
    }

    .staff-track {
        animation: none
    }

    .image-frame img {
        transition: none
    }
}