/* introduction.php: styles only this page uses. Shared look: Styles/site.css */

/* ═══════════════════════════════════════════
   ROOT — BSM ISLAMIC PALETTE
═══════════════════════════════════════════ */

body {
    line-height: 1.6;
}

body::before {
            content: '';
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 0;
            background:
                radial-gradient(circle at 10% 10%, rgba(201, 168, 76, .04) 0%, transparent 55%),
                radial-gradient(circle at 90% 90%, rgba(0, 14, 44, .05) 0%, transparent 55%);
        }

/* ═════════ HERO ═════════ */

.page-hero {
    padding: 72px 24px 60px;
}

.page-hero::before {
    background-image: repeating-linear-gradient(45deg, rgba(201, 168, 76, .025) 0, rgba(201, 168, 76, .025) 1px, transparent 1px, transparent 55px), repeating-linear-gradient(-45deg, rgba(201, 168, 76, .025) 0, rgba(201, 168, 76, .025) 1px, transparent 1px, transparent 55px);
}

.hero-ring {
    width: 520px;
    height: 520px;
}

.hero-ring::before {
    inset: 44px;
}

.hero-ring::after {
            content: '';
            position: absolute;
            inset: 88px;
            border: 1px solid rgba(201, 168, 76, .03);
            border-radius: 50%;
        }

.hero-content {
    max-width: 780px;
    margin: 0 auto;
}

.hero-bismillah {
            font-family: var(--font-ar);
            font-size: clamp(18px, 3vw, 30px);
            color: var(--gold);
            margin-bottom: 16px;
            opacity: 0;
            animation: fadeUp .9s ease forwards .1s;
        }

.hero-div {
            display: flex;
            align-items: center;
            gap: 14px;
            justify-content: center;
            margin: 14px 0;
            opacity: 0;
            animation: fadeUp .9s ease forwards .25s;
        }

.hero-div-line {
            flex: 1;
            max-width: 100px;
            height: 1px;
        }

.hero-div-line:first-child {
            background: linear-gradient(90deg, transparent, var(--gold));
        }

.hero-div-line:last-child {
            background: linear-gradient(90deg, var(--gold), transparent);
        }

.hero-div-gem {
            color: var(--gold);
            font-size: 13px;
        }

.hero-title-ar {
            font-family: var(--font-ar);
            font-size: clamp(24px, 4.5vw, 48px);
            color: var(--white);
            margin-bottom: 8px;
            opacity: 0;
            animation: fadeUp .9s ease forwards .4s;
        }

.hero-title-bn {
            font-family: var(--font-display);
            font-size: clamp(16px, 2.5vw, 26px);
            color: var(--gold-light);
            margin-bottom: 8px;
            opacity: 0;
            animation: fadeUp .9s ease forwards .55s;
        }

.hero-crumb {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(201, 168, 76, .1);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 6px 18px;
            font-size: 12px;
            color: rgba(255, 255, 255, .6);
            opacity: 0;
            animation: fadeUp .9s ease forwards .7s;
        }

.hero-crumb a {
            color: var(--gold);
            text-decoration: none;
        }

@keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(20px)
            }

            to {
                opacity: 1;
                transform: translateY(0)
            }
        }

/* ═════════ STATS BAR ═════════ */

.stats-bar {
            background: var(--primary-light);
            border-bottom: 1px solid var(--border);
            padding: 0 24px;
        }

.stats-bar-inner {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: stretch;
            gap: 0;
            overflow-x: auto;
        }

.stat-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 18px 32px;
            border-right: 1px solid var(--border);
            white-space: nowrap;
            flex-shrink: 0;
        }

.stat-item:last-child {
            border-right: none;
        }

.stat-icon {
            font-size: 20px;
            color: var(--gold);
        }

.stat-val {
            font-family: var(--font-display);
            font-size: 28px;
            color: var(--white);
            line-height: 1;
        }

.stat-lbl {
            font-size: 11px;
            color: rgba(255, 255, 255, .5);
            margin-top: 2px;
            letter-spacing: .5px;
        }

/* ═════════ SECTION WRAPPER ═════════ */

.section {
            max-width: 1400px;
            margin: 0 auto;
            padding: 72px 24px;
        }

.section-hdr {
            text-align: center;
            margin-bottom: 52px;
        }

.section-tag {
            display: inline-block;
            background: rgba(201, 168, 76, .1);
            border: 1px solid var(--border);
            color: var(--gold-ink);
            font-size: 10.5px;
            letter-spacing: 2px;
            text-transform: uppercase;
            padding: 5px 16px;
            border-radius: 20px;
            margin-bottom: 14px;
        }

.section-title {
            font-family: var(--font-display);
            font-size: clamp(22px, 3.5vw, 36px);
            color: var(--primary);
            margin-bottom: 6px;
        }

.section-title-ar {
            font-family: var(--font-ar);
            font-size: clamp(18px, 2.5vw, 28px);
            color: var(--gold-ink);
            direction: rtl;
            margin-bottom: 14px;
        }

.leadership-section .section-title-ar { color: var(--gold); } /* navy band */

.orn-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-top: 4px;
        }

.orn-line {
            width: 56px;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--gold));
        }

.orn-line.r {
            background: linear-gradient(90deg, var(--gold), transparent);
        }

.orn-gem {
            width: 7px;
            height: 7px;
            background: var(--gold);
            transform: rotate(45deg);
            flex-shrink: 0;
        }

/* ═════════ LEADERSHIP SECTION BG ═════════ */

.leadership-section {
            background: var(--primary);
            padding: 72px 0;
            position: relative;
            overflow: hidden;
        }

.leadership-section::before {
            content: '';
            position: absolute;
            top: -120px;
            right: -120px;
            width: 480px;
            height: 480px;
            border: 1px solid rgba(201, 168, 76, .06);
            border-radius: 50%;
            pointer-events: none;
        }

.leadership-section::after {
            content: '';
            position: absolute;
            bottom: -80px;
            left: -80px;
            width: 320px;
            height: 320px;
            border: 1px solid rgba(201, 168, 76, .05);
            border-radius: 50%;
            pointer-events: none;
        }

.leadership-inner {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 24px;
            position: relative;
            z-index: 1;
        }

/* ═════════ LEADER CARDS ═════════ */

.leaders-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 32px;
            margin-top: 0;
        }

@media(max-width:780px) {
    .leaders-grid {
                grid-template-columns: 1fr;
            }
}

.leader-card {
            background: rgba(255, 255, 255, .03);
            border: 1px solid var(--border-solid);
            border-radius: 8px;
            overflow: hidden;
            transition: all .4s;
            position: relative;
        }

.leader-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--gold), transparent);
        }

.leader-card:hover {
            background: rgba(201, 168, 76, .05);
            transform: translateY(-6px);
            box-shadow: var(--shadow-gold);
        }

.leader-card-top {
            display: flex;
            align-items: center;
            gap: 24px;
            padding: 32px;
            border-bottom: 1px solid var(--border);
        }

.leader-photo-wrap {
            position: relative;
            flex-shrink: 0;
        }

.leader-photo {
            width: 110px;
            height: 110px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--gold);
            box-shadow: 0 0 0 5px rgba(201, 168, 76, .15);
        }

.leader-photo-placeholder {
            width: 110px;
            height: 110px;
            border-radius: 50%;
            background: rgba(201, 168, 76, .1);
            border: 3px solid var(--border-solid);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 0 5px rgba(201, 168, 76, .08);
        }

.leader-photo-placeholder i {
            font-size: 40px;
            color: rgba(201, 168, 76, .4);
        }

.leader-crown {
            position: absolute;
            bottom: -2px;
            right: -2px;
            width: 28px;
            height: 28px;
            background: var(--gold);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: var(--primary);
            border: 2px solid var(--primary);
        }

.leader-info {
            flex: 1;
            min-width: 0;
        }

.leader-post-ar {
            font-family: var(--font-ar);
            font-size: 16px;
            color: var(--gold);
            direction: rtl;
            margin-bottom: 4px;
        }

.leader-post-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(201, 168, 76, .15);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 3px 12px;
            font-size: 11px;
            color: var(--gold);
            margin-bottom: 10px;
        }

.leader-name {
            font-family: var(--font-display);
            font-size: clamp(16px, 2vw, 20px);
            color: var(--white);
            margin-bottom: 4px;
            line-height: 1.3;
        }

.leader-name-bn {
            font-size: 12px;
            color: rgba(255, 255, 255, .55);
            margin-bottom: 8px;
        }

.leader-meta {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

.leader-meta span {
            font-size: 11.5px;
            color: rgba(255, 255, 255, .5);
            display: flex;
            align-items: center;
            gap: 6px;
        }

.leader-meta span i {
            color: var(--gold);
            font-size: 10px;
            width: 12px;
        }

.leader-quote-area {
            padding: 24px 32px;
        }

.quote-mark {
            font-family: var(--font-ar);
            font-size: 48px;
            color: rgba(201, 168, 76, .2);
            line-height: .8;
            margin-bottom: 6px;
            display: block;
        }

.leader-quote-ar {
            font-family: var(--font-ar);
            font-size: 16px;
            color: var(--gold-light);
            direction: rtl;
            line-height: 2;
            margin-bottom: 8px;
        }

.leader-quote-bn {
            font-size: 13px;
            color: rgba(255, 255, 255, .6);
            line-height: 1.9;
            font-style: italic;
        }

.leader-quote-none {
            font-size: 13px;
            color: rgba(255, 255, 255, .3);
            text-align: center;
            padding: 8px 0;
        }

/* ═════════ FACULTY GRID ═════════ */

.faculty-section-outer {
            background: var(--cream-deep);
            padding: 72px 0;
        }

.faculty-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 24px;
        }

.faculty-card {
            background: var(--white);
            border: 1px solid rgba(0, 14, 44, .08);
            border-radius: 6px;
            overflow: hidden;
            transition: all .4s;
            box-shadow: 0 2px 12px rgba(0, 14, 44, .06);
            position: relative;
        }

.faculty-card::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--gold), transparent);
            transform: scaleX(0);
            transition: transform .4s;
        }

.faculty-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 40px rgba(0, 14, 44, .14);
        }

.faculty-card:hover::after {
            transform: scaleX(1);
        }

.faculty-photo-wrap {
            background: var(--primary);
            height: 180px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }

.faculty-photo-wrap::before {
            content: '';
            position: absolute;
            inset: 0;
            background: repeating-linear-gradient(45deg, rgba(201, 168, 76, .025) 0, rgba(201, 168, 76, .025) 1px, transparent 1px, transparent 30px);
        }

.faculty-photo {
            width: 90%;
            height: 90%;
            display: block;
            transition: transform .5s;
        }

.faculty-card:hover .faculty-photo {
            transform: scale(1.05);
        }

.faculty-placeholder {
            width: 90px;
            height: 90px;
            border-radius: 50%;
            background: rgba(201, 168, 76, .08);
            border: 2px solid var(--border-solid);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 1;
        }

.faculty-placeholder i {
            font-size: 36px;
            color: rgba(201, 168, 76, .35);
        }

.faculty-body {
            padding: 20px;
        }

.faculty-post-tag {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: rgba(0, 14, 44, .06);
            border: 1px solid rgba(0, 14, 44, .1);
            border-radius: 20px;
            padding: 3px 11px;
            font-size: 10.5px;
            color: var(--text-light);
            margin-bottom: 10px;
            letter-spacing: .3px;
        }

.faculty-name {
            font-family: var(--font-display);
            font-size: 15px;
            color: var(--primary);
            margin-bottom: 4px;
            line-height: 1.4;
        }

.faculty-post-bn {
            font-size: 11.5px;
            color: var(--gold-ink);
            font-weight: 600;
            margin-bottom: 10px;
        }

.faculty-meta {
            border-top: 1px solid rgba(0, 14, 44, .06);
            padding-top: 12px;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

.faculty-meta-item {
            font-size: 11px;
            color: var(--text-light);
            display: flex;
            align-items: center;
            gap: 6px;
        }

.faculty-meta-item i {
            color: var(--gold);
            font-size: 10px;
            width: 12px;
            flex-shrink: 0;
        }

/* ═════════ POST GROUP HEADERS ═════════ */

.post-group {
            margin-bottom: 48px;
        }

.post-group-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 24px;
            padding: 0 4px;
        }

.post-group-title {
            font-family: var(--font-ar);
            font-size: 20px;
            color: var(--text-mid);
            white-space: nowrap;
        }

.post-group-count {
            background: var(--primary);
            color: var(--gold);
            font-size: 12px;
            padding: 3px 12px;
            border-radius: 20px;
            border: 1px solid var(--border);
            white-space: nowrap;
        }

.post-group-line {
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, rgba(0, 14, 44, .12), transparent);
        }

/* a long post name and its count fit on a phone instead of widening the page */

@media (max-width: 560px) {
    .post-group-header { flex-wrap: wrap; gap: 8px 12px; }

    .post-group-title { white-space: normal; }
}

/* ═════════ ABOUT INSTITUTION ═════════ */

.about-band {
            background: var(--primary);
            padding: 56px 0;
        }

.about-band-inner {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 24px;
            display: grid;
            grid-template-columns: 1fr 1fr 1fr 1fr;
            gap: 1px;
            background: var(--border);
        }

.about-stat {
            background: var(--primary);
            padding: 36px 28px;
            text-align: center;
            transition: background .3s;
        }

.about-stat:hover {
            background: rgba(201, 168, 76, .06);
        }

.about-stat-icon {
            font-size: 28px;
            color: var(--gold);
            margin-bottom: 14px;
            display: block;
        }

.about-stat-num {
            font-family: var(--font-display);
            font-size: 46px;
            color: var(--white);
            line-height: 1;
            display: block;
        }

.about-stat-lbl {
            font-size: 12px;
            color: rgba(255, 255, 255, .5);
            margin-top: 6px;
            letter-spacing: .5px;
        }

@media(max-width:720px) {
    .about-band-inner {
                grid-template-columns: 1fr 1fr;
            }
}

@media(max-width:460px) {
    .about-band-inner {
                grid-template-columns: 1fr;
            }
}

/* ═════════ EMPTY STATE ═════════ */

.empty-state {
            text-align: center;
            padding: 60px 20px;
        }

.empty-state i {
            font-size: 48px;
            color: rgba(0, 14, 44, .15);
            margin-bottom: 16px;
            display: block;
        }

.empty-state p {
            color: var(--text-light);
            font-size: 14px;
        }

/* ═════════ FOOTER ═════════ */

.social-icon {
            width: 36px;
            height: 36px;
            border: 1px solid var(--border);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255, 255, 255, .5);
            font-size: 13px;
            text-decoration: none;
            transition: all .3s;
        }

/* ═════════ ISLAMIC PATTERN BG ═════════ */

.pattern-bg {
            background-image:
                radial-gradient(circle, rgba(201, 168, 76, .06) 1px, transparent 1px);
            background-size: 32px 32px;
        }

/* ═════════ RESPONSIVE ═════════ */

@media(max-width:1024px) {
    .faculty-grid {
                grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
            }
}

@media(max-width:768px) {
    .leaders-grid {
                grid-template-columns: 1fr;
            }

    .leader-card-top {
                flex-direction: column;
                text-align: center;
            }

    .leader-meta span {
                justify-content: center;
            }

    .leader-post-ar,
            .leader-name-bn {
                text-align: center;
            }

    .stats-bar-inner {
                flex-wrap: wrap;
            }

    .stat-item {
                padding: 14px 20px;
                flex: 1 0 45%;
            }
}

@media(max-width:480px) {
    .faculty-grid {
                grid-template-columns: repeat(2, 1fr);
            }

    .faculty-photo-wrap {
                height: 140px;
            }
}

/* qualifications under a teacher's name (management/teacher_qualifications.php) */
.t-quals { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; line-height: 1.6; color: var(--text-mid); }
.t-quals li { position: relative; padding-inline-start: 14px; margin-top: 2px; }
.t-quals li::before { content: ''; position: absolute; inset-inline-start: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.t-quals li.lang-ar { font-size: 15px; }
.leader-card .t-quals { color: var(--muted-on-navy); margin-bottom: 10px; } /* the leaders' band is navy */

/* biography: a quiet button on the card opens the teacher's own words in a dialog */
.t-bio-btn { display: inline-flex; align-items: center; min-height: 36px; margin-top: 10px; padding: 0 16px; border: 1.5px solid var(--gold); border-radius: 999px; background: transparent; color: var(--gold-ink); font: 600 14px var(--font-bn); cursor: pointer; }
:lang(ar) .t-bio-btn { font-family: var(--font-ar); font-size: 15px; }
.t-bio-btn:hover { background: var(--gold); color: var(--primary); }
.leader-card .t-bio-btn { color: var(--gold-light); } /* the leaders' band is navy */
.leader-card .t-bio-btn:hover { color: var(--primary); }
.t-bio { margin: auto; /* the site's reset (* {margin:0}) would undo the browser's centring */ text-align: start; padding: 0; border: 0; border-radius: 16px; width: min(640px, calc(100% - 32px)); max-height: min(85vh, 760px); background: var(--white); color: var(--text-dark); box-shadow: 0 24px 64px rgba(0, 14, 44, .35); }
.t-bio::backdrop { background: rgba(0, 14, 44, .55); }
.t-bio-in { padding: 22px 24px 26px; }
.t-bio-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.t-bio-head h2 { margin: 0; font-size: 22px; line-height: 1.4; color: var(--primary); }
.t-bio-head p { margin: 4px 0 0; font-size: 14px; color: var(--text-light); }
.t-bio-close { flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream); color: var(--primary); font-size: 24px; line-height: 1; cursor: pointer; }
.t-bio-body p { margin: 0 0 12px; font-size: 17px; line-height: 1.9; }
:lang(ar) .t-bio-body p { font-family: var(--font-ar); font-size: 19px; line-height: 2; }
.t-bio .t-quals { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-mid); }
.t-bio-btn:focus-visible, .t-bio-close:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
