﻿/* =========================================================
   DAR-UL-IFTA AL-BAYAN PESHAWAR
   INSTITUTIONAL ABOUT & FOUNDER PROFILE
   PROFESSIONAL PUBLIC PRESENTATION
   ========================================================= */

/* ---------------------------------------------------------
   PAGE FOUNDATION
   --------------------------------------------------------- */

.about-page main {
    background:
        linear-gradient(
            180deg,
            #f5f8fa 0%,
            #ffffff 30%,
            #f7fafb 100%
        );
}

.about-page .main-nav a[aria-current="page"] {
    background: #145274;
}

.about-page .main-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

/* ---------------------------------------------------------
   INSTITUTIONAL HERO
   --------------------------------------------------------- */

.about-page .about-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 76px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 255, 255, 0.10),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #082b42 0%,
            #104d6d 52%,
            #0b3558 100%
        );
}

.about-page .about-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.025),
            transparent
        );
}

.about-page .about-hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.about-page .about-hero .section-heading {
    display: block;
    margin: 0;
}

.about-page .about-hero .section-label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 17px;
    color: #ead793;
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 999px;
    font-size: 15px;
    line-height: 1.9;
}

.about-page .about-hero .section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1.7;
    font-weight: 700;
}

.about-page .about-language-note {
    max-width: 760px;
    margin: 14px auto 0;
    color: #dfeaf0;
    font-size: 16px;
    line-height: 2;
}

/* ---------------------------------------------------------
   SCHOLARLY READING COLUMN
   --------------------------------------------------------- */

.about-page .about-content {
    padding: 64px 0 76px;
}

.about-page .about-section {
    padding: 0;
    margin: 0 0 26px;
}

.about-page .about-section:last-child {
    margin-bottom: 0;
}

.about-page .about-section > .container {
    width: min(900px, 92%);
    padding: 34px 40px 36px;
    background: #ffffff;
    border: 1px solid #dfe8ed;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(24, 55, 70, 0.045);
}

.about-page .about-section .section-label {
    margin-bottom: 4px;
    color: #a88320;
    font-size: 15px;
    line-height: 1.9;
}

.about-page .about-section h2 {
    margin: 0 0 20px;
    color: #0b3558;
    font-size: clamp(28px, 3vw, 35px);
    line-height: 1.85;
    font-weight: 700;
}

.about-page .about-section h3 {
    margin: 25px 0 12px;
    color: #145274;
    font-size: 23px;
    line-height: 1.9;
}

.about-page .about-section p {
    max-width: 760px;
    margin: 0 auto 16px;
    color: #304655;
    font-size: 18px;
    line-height: 2.35;
}

.about-page .about-section p:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   INTRODUCTION
   --------------------------------------------------------- */

.about-page .about-introduction > .container {
    position: relative;
    border-top: 4px solid #c9a227;
}

.about-page .about-introduction > .container::before {
    content: "";
    position: absolute;
    top: -4px;
    right: 0;
    width: 34%;
    height: 4px;
    background: #0b3558;
}

/* ---------------------------------------------------------
   FOUNDER PROFILE
   --------------------------------------------------------- */

.about-page .founder-section > .container {
    border-color: #d8e3e9;
    box-shadow:
        0 10px 28px rgba(11, 53, 88, 0.075);
}

.about-page .founder-profile {
    position: relative;
    padding: 24px 28px;
    background: #f8fafb;
    border: 1px solid #e2eaee;
    border-radius: 10px;
}

.about-page .founder-profile::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 4px;
    border-radius: 0 10px 10px 0;
    background: #c9a227;
}

.about-page .founder-profile > p {
    margin-bottom: 20px;
}

.about-page .founder-education {
    padding-top: 18px;
    border-top: 1px solid #dde6eb;
}

.about-page .founder-education h3 {
    margin-top: 0;
}

.about-page .founder-education p {
    margin-bottom: 10px;
}

.about-page .founder-education strong {
    color: #0b3558;
}

/* ---------------------------------------------------------
   TEACHERS + OBJECTIVES
   --------------------------------------------------------- */

.about-page .teacher-list,
.about-page .about-objectives {
    list-style: none;
    max-width: 780px;
    margin: 22px auto 0;
    padding: 0;
}

.about-page .teacher-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.about-page .teacher-list li,
.about-page .about-objectives li {
    position: relative;
    padding: 15px 42px 15px 18px;
    color: #304655;
    background: #f8fafb;
    border: 1px solid #e2eaee;
    border-radius: 9px;
    font-size: 17px;
    line-height: 2;
}

.about-page .teacher-list li::before,
.about-page .about-objectives li::before {
    content: "";
    position: absolute;
    top: 25px;
    right: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c9a227;
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.13);
}

.about-page .about-objectives {
    display: grid;
    gap: 12px;
}

.about-page .about-objectives li {
    padding-top: 16px;
    padding-bottom: 16px;
}

/* ---------------------------------------------------------
   VISION
   --------------------------------------------------------- */

.about-page .vision-section > .container {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #fbfcfd 0%,
            #ffffff 65%,
            #f5f8fa 100%
        );
    border-color: #d7e2e8;
}

.about-page .vision-section > .container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #c9a227;
}

.about-page .vision-section strong {
    color: #0b3558;
    font-weight: 700;
}

/* ---------------------------------------------------------
   CTA SEPARATION
   --------------------------------------------------------- */

.about-page .question-cta {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------------------------------------------------------
   PASHTO / ENGLISH SHELL SAFETY
   Long-form institutional content remains canonical Urdu.
   --------------------------------------------------------- */

.about-page.lang-ps .about-language-note {
    font-family: "Scheherazade New", "Noto Naskh Arabic", "Traditional Arabic", serif;
    font-synthesis: none;
}

.about-page.lang-en .about-language-note {
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.7;
}

.about-page .about-content[lang="ur"] {
    font-family:
        "Jameel Noori Nastaleeq",
        "Noto Nastaliq Urdu",
        "Noto Sans Arabic",
        Tahoma,
        Arial,
        sans-serif;
    font-size: 18px;
    line-height: 2.35;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 900px) {
    .about-page .about-section > .container {
        width: min(860px, 92%);
        padding: 30px 32px 32px;
    }

    .about-page .teacher-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .about-page .about-hero {
        padding: 52px 0 58px;
    }

    .about-page .about-hero .section-heading h2 {
        font-size: 34px;
    }

    .about-page .about-language-note {
        font-size: 15px;
    }

    .about-page .about-content {
        padding: 38px 0 48px;
    }

    .about-page .about-section {
        margin-bottom: 18px;
    }

    .about-page .about-section > .container {
        width: 92%;
        padding: 25px 22px 27px;
        border-radius: 10px;
    }

    .about-page .about-section h2 {
        margin-bottom: 15px;
        font-size: 27px;
        line-height: 1.8;
    }

    .about-page .about-section h3 {
        font-size: 21px;
    }

    .about-page .about-section p {
        font-size: 17px;
        line-height: 2.2;
    }

    .about-page .founder-profile {
        padding: 20px 21px;
    }

    .about-page .teacher-list li,
    .about-page .about-objectives li {
        padding: 13px 38px 13px 14px;
        font-size: 16px;
    }

    .about-page .teacher-list li::before,
    .about-page .about-objectives li::before {
        top: 23px;
        right: 16px;
    }
}

/* ETR-4 ABOUT ENGLISH TYPOGRAPHY REFINEMENT */
/*
   English-only About typography.
   Urdu and Pashto About typography remains untouched.
*/

.about-page.lang-en .about-hero .section-heading h2 {
    line-height: 1.25;
}

.about-page.lang-en .about-section h2 {
    line-height: 1.3;
}

.about-page.lang-en .about-section h3 {
    line-height: 1.3;
}

.about-page.lang-en .about-language-note {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
}
