/* ==========================================================================
   About Shaykh Azhar Iqbal — about-shaikh-azhar-iqbal.php
   Same palette and type as the Our Graduates page (graduates.css).
   Everything is scoped under .sa so it cannot leak into the shared header,
   footer or the Bootstrap 3 / style-v1.css rules used on the rest of the site.
   ========================================================================== */

.sa {
    --sa-navy: #243a73;
    --sa-navy-deep: #1a2b57;
    --sa-navy-soft: #eef1f8;
    --sa-gold: #faa619;
    --sa-gold-soft: #fbe3b3;
    --sa-gold-text: #9a5b00;
    --sa-ink: #1c2541;
    --sa-text: #3d4458;
    --sa-muted: #586074;
    --sa-line: #e6e3da;
    --sa-cream: #faf8f3;
    --sa-card: #ffffff;
    --sa-radius: 14px;
    --sa-shadow: 0 1px 2px rgba(28, 37, 65, .04), 0 2px 8px rgba(28, 37, 65, .04);
    --sa-shadow-hover: 0 4px 10px rgba(28, 37, 65, .06), 0 14px 32px rgba(28, 37, 65, .08);
    --sa-serif: "Noto Serif", Georgia, "Times New Roman", serif;
    --sa-sans: "Open Sans", "Segoe UI", Arial, sans-serif;
    --sa-arabic: "Amiri", "Traditional Arabic", "Noto Naskh Arabic", serif;

    display: block;
    background: var(--sa-card);
    color: var(--sa-text);
    font-family: var(--sa-sans);
    font-size: 16px;
    font-weight: 400;
    /* style-v1.css sets body line-height in em, which would inherit as a fixed px value */
    line-height: 1.7;
    overflow-x: clip;
}

.sa *,
.sa *::before,
.sa *::after {
    box-sizing: border-box;
}

.sa h1,
.sa h2,
.sa h3,
.sa h4 {
    margin: 0;
    font-family: var(--sa-serif);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    color: var(--sa-ink);
}

.sa p {
    margin: 0;
}

.sa a {
    color: var(--sa-navy);
}

.sa :focus-visible {
    outline: 3px solid var(--sa-gold);
    outline-offset: 2px;
}

.sa-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Shared: sections, eyebrow, headings, buttons
   -------------------------------------------------------------------------- */

.sa-section {
    padding: 72px 0;
}

.sa-section__head {
    max-width: 640px;
    margin: 0 auto 40px;
    text-align: center;
}

.sa .sa-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sa-gold-text);
}

.sa .sa-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--sa-gold);
}

.sa .sa-eyebrow--center {
    display: flex;
    justify-content: center;
}

.sa .sa-eyebrow--center::after {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--sa-gold);
}

.sa .sa-heading {
    margin-bottom: 20px;
    font-size: clamp(26px, 3.2vw, 36px);
    letter-spacing: -.01em;
}

.sa .sa-subheading {
    margin: 32px 0 10px;
    font-size: 20px;
    color: var(--sa-navy);
}

.sa .sa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid var(--sa-navy);
    border-radius: 999px;
    background: var(--sa-navy);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}

.sa .sa-btn:hover,
.sa .sa-btn:focus {
    background: var(--sa-navy-deep);
    border-color: var(--sa-navy-deep);
    color: #fff;
    text-decoration: none;
}

.sa .sa-btn:active {
    transform: translateY(1px);
}

.sa .sa-btn--block {
    display: flex;
    width: 100%;
}

.sa .sa-btn--gold {
    background: var(--sa-gold);
    border-color: var(--sa-gold);
    color: var(--sa-ink);
}

.sa .sa-btn--gold:hover,
.sa .sa-btn--gold:focus {
    background: #ffb938;
    border-color: #ffb938;
    color: var(--sa-ink);
}

.sa .sa-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.sa .sa-btn--ghost:hover,
.sa .sa-btn--ghost:focus {
    background: rgba(255, 255, 255, .1);
    border-color: #fff;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Biography + at a glance
   -------------------------------------------------------------------------- */

.sa-bio {
    padding-top: 40px;
}

.sa-bio__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px;
    align-items: start;
}

.sa-bio__text {
    max-width: 700px;
}

.sa-bio__text p + p {
    margin-top: 14px;
}

.sa .sa-lead {
    font-family: var(--sa-serif);
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.65;
    color: var(--sa-ink);
}

/* Gold initial on the opening paragraph */
.sa .sa-lead::first-letter {
    float: left;
    margin: 6px 10px 0 0;
    font-size: 3.4em;
    font-weight: 700;
    line-height: .8;
    color: var(--sa-navy);
}

.sa-glance {
    position: sticky;
    top: 24px;
    padding: 28px;
    background: var(--sa-cream);
    border: 1px solid var(--sa-line);
    border-top: 3px solid var(--sa-gold);
    border-radius: var(--sa-radius);
    box-shadow: var(--sa-shadow);
}

.sa .sa-glance__title {
    margin-bottom: 18px;
    font-size: 20px;
}

.sa-glance__list {
    margin: 0 0 24px;
}

.sa-glance__list > div {
    padding: 12px 0;
    border-top: 1px solid var(--sa-line);
}

.sa-glance__list > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.sa .sa-glance__list dt {
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sa-muted);
}

.sa .sa-glance__list dd {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--sa-ink);
}

.sa-glance__edu {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.sa-glance__edu li {
    position: relative;
    padding-left: 18px;
}

.sa-glance__edu li + li {
    margin-top: 10px;
}

/* Small diamond bullets, echoing the star lattice */
.sa-glance__edu li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .6em;
    width: 7px;
    height: 7px;
    background: var(--sa-gold);
    transform: rotate(45deg);
}

.sa .sa-glance__edu strong {
    display: block;
    font-weight: 600;
}

.sa .sa-glance__edu span {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--sa-muted);
}

/* --------------------------------------------------------------------------
   President's message
   -------------------------------------------------------------------------- */

.sa-message {
    background-color: var(--sa-cream);
    /* Faint eight-point-star lattice, same motif as the page hero */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23243a73' stroke-opacity='.05'%3E%3Crect x='16' y='16' width='40' height='40'/%3E%3Crect x='16' y='16' width='40' height='40' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='8'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 72px 72px;
    border-top: 1px solid var(--sa-line);
    border-bottom: 1px solid var(--sa-line);
}

.sa-message__card {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 56px;
    background: var(--sa-card);
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-radius);
    box-shadow: var(--sa-shadow);
}

/* Large gold quotation mark */
.sa-message__card::before {
    content: "\201C";
    position: absolute;
    top: -30px;
    left: 50%;
    width: 60px;
    height: 60px;
    margin-left: -30px;
    border-radius: 50%;
    background: var(--sa-navy);
    color: var(--sa-gold);
    font-family: var(--sa-serif);
    font-size: 54px;
    line-height: 88px;
    text-align: center;
}

.sa .sa-hadith {
    margin: 18px 0 32px;
    padding: 0 0 32px;
    border: 0;
    border-bottom: 1px solid var(--sa-line);
    font-style: normal;
    text-align: center;
    color: var(--sa-ink);
}

.sa .sa-hadith__isnad {
    font-family: var(--sa-arabic);
    font-size: 18px;
    line-height: 2;
    color: var(--sa-muted);
}

.sa .sa-hadith__arabic {
    margin: 4px 0 18px;
    font-family: var(--sa-arabic);
    font-size: clamp(30px, 4.4vw, 42px);
    font-weight: 700;
    line-height: 1.8;
    color: var(--sa-navy);
}

.sa .sa-hadith__translation {
    max-width: 560px;
    margin: 0 auto;
    font-family: var(--sa-serif);
    font-size: 18px;
    line-height: 1.6;
    color: var(--sa-text);
}

.sa .sa-hadith__translation q {
    display: block;
    margin-top: 6px;
    font-size: 21px;
    font-style: italic;
    color: var(--sa-ink);
}

.sa .sa-hadith__source {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--sa-gold-text);
}

.sa .sa-hadith__source cite {
    display: inline;
    margin: 0;
    font-size: inherit;
    font-style: normal;
    color: inherit;
}

/* style-v1.css prefixes every blockquote cite with an em dash */
.sa .sa-hadith__source cite::before {
    content: none;
}

.sa-message__body p + p {
    margin-top: 16px;
}

.sa-message__body {
    font-size: 17px;
    line-height: 1.8;
}

.sa-signature {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 28px;
    padding-left: 16px;
    border-left: 3px solid var(--sa-gold);
}

.sa-signature__name {
    font-family: var(--sa-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--sa-ink);
}

.sa-signature__role {
    font-size: 14px;
    color: var(--sa-muted);
}

/* --------------------------------------------------------------------------
   Work & initiatives
   -------------------------------------------------------------------------- */

.sa-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sa-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: var(--sa-card);
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-radius);
    box-shadow: var(--sa-shadow);
    transition: box-shadow .25s, transform .25s, border-color .25s;
}

.sa-card:hover {
    border-color: #d8d3c4;
    box-shadow: var(--sa-shadow-hover);
    transform: translateY(-3px);
}

.sa-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: var(--sa-navy-soft);
}

.sa-card__media img {
    max-width: 52px;
    max-height: 48px;
    width: auto;
    height: auto;
}

.sa-card__media--icon {
    color: var(--sa-navy);
}

.sa .sa-card__title {
    margin-bottom: 8px;
    font-size: 19px;
}

.sa-card__text {
    flex: 1 1 auto;
    margin-bottom: 18px !important;
    font-size: 15px;
    line-height: 1.65;
}

.sa .sa-card__link {
    align-self: flex-start;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--sa-gold-soft);
    transition: border-color .2s;
}

.sa .sa-card__link::after {
    content: " →";
}

.sa .sa-card__link:hover,
.sa .sa-card__link:focus {
    color: var(--sa-navy-deep);
    text-decoration: none;
    border-bottom-color: var(--sa-gold);
}

/* --------------------------------------------------------------------------
   Bayan
   -------------------------------------------------------------------------- */

.sa-watch {
    padding-top: 0;
}

.sa-watch__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    align-items: center;
    padding: 32px;
    background: var(--sa-navy-soft);
    border-radius: calc(var(--sa-radius) + 6px);
}

.sa-watch__player {
    overflow: hidden;
    border-radius: var(--sa-radius);
    background: var(--sa-navy-deep);
    box-shadow: 0 18px 40px -18px rgba(26, 43, 87, .55);
}

.sa-watch__player video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 600 / 338;
    background: var(--sa-navy-deep);
}

.sa-watch__text p:not(.sa-eyebrow) {
    margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   Call to action
   -------------------------------------------------------------------------- */

.sa-cta {
    padding: 64px 0;
    color: #fff;
    background-color: var(--sa-navy);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07'%3E%3Crect x='16' y='16' width='40' height='40'/%3E%3Crect x='16' y='16' width='40' height='40' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='8'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(180deg, var(--sa-navy) 0%, var(--sa-navy-deep) 100%);
    background-size: 72px 72px, auto;
    text-align: center;
}

.sa .sa-cta__title {
    margin-bottom: 12px;
    font-size: clamp(24px, 3vw, 34px);
    color: #fff;
}

.sa .sa-cta__text {
    max-width: 560px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, .86);
}

.sa-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .sa-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .sa-bio__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .sa-bio__text {
        max-width: none;
    }

    .sa-glance {
        position: static;
    }

    .sa-watch__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

@media (max-width: 767px) {
    .sa {
        font-size: 15px;
    }

    .sa-section {
        padding: 52px 0;
    }

    .sa-bio {
        padding-top: 24px;
    }

    .sa-message {
        padding-top: 64px;
    }

    .sa-message__card {
        padding: 44px 22px 32px;
    }

    .sa-message__body {
        font-size: 16px;
    }

    .sa-watch {
        padding-top: 0;
    }

    .sa-watch__grid {
        padding: 18px;
    }
}

@media (max-width: 560px) {
    .sa-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .sa-glance {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sa *,
    .sa *::before,
    .sa *::after {
        transition: none !important;
    }

    .sa-card:hover {
        transform: none;
    }
}
