/* ==========================================================================
   ABOUT PAGE STYLESHEET
   Mufti Abdul Rehman Munir — Luxury Editorial Theme
   ========================================================================== */

/* --- Base & Utilities --- */
.about-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.diamond-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.diamond-divider .line {
    width: 40px;
    height: 1px;
    background: var(--color-border-gold);
}

.diamond-divider .diamond {
    font-size: 0.55rem;
    color: var(--color-gold-accent);
    line-height: 1;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.about-hero-section {
    position: relative;
    padding-top: 150px;
    padding-bottom: clamp(4rem, 8vw, 6rem);
    background-color: #F8F5EE;
    background-image: url('../images/muftiabdulrehman-about-hero-background-1.webp');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
}

.about-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Softened opacity to let background image show through clearly */
    background: linear-gradient(90deg, rgba(248, 245, 238, 0.95) 0%, rgba(248, 245, 238, 0.5) 50%, rgba(248, 245, 238, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.about-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

@media (max-width: 900px) {
    .about-hero-inner {
        flex-direction: column;
    }
}

.about-hero-content {
    max-width: 650px;
    /* Ensured wide enough so name doesn't wrap unnecessarily */
}

.about-breadcrumb {
    font-size: 0.65rem;
    color: #8C8477;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.about-breadcrumb a {
    color: #1C201C;
    text-decoration: none;
    font-weight: 500;
}

.about-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: #1C201C;
    margin: 0;
}

.about-hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 400;
    color: #555046;
    font-style: italic;
    margin: 0 0 1.25rem;
    white-space: nowrap;
    /* Forces name to stay on one line */
}

@media (max-width: 600px) {
    .about-hero-subtitle {
        white-space: normal;
        /* Allow wrap on very small mobile screens */
    }
}

.about-hero-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6B6559;
    margin: 0;
    max-width: 480px;
}

.about-hero-quote {
    max-width: 220px;
    padding-top: 2rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555046;
    border-left: 1px solid var(--color-border-gold);
    padding-left: 1.5rem;
}

@media (max-width: 900px) {
    .about-hero-quote {
        padding-top: 1.5rem;
        border-left: none;
        border-top: 1px solid var(--color-border-gold);
        padding-left: 0;
    }
}

/* ==========================================================================
   2. INTRO JOURNEY SECTION
   ========================================================================== */
.about-intro-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: #FFFFFF;
}

.intro-split-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: center;
}

@media (max-width: 900px) {
    .intro-split-grid {
        grid-template-columns: 1fr;
    }
}

.intro-image-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.intro-image-wrap {
    position: relative;
    width: 85%;
    margin: 0 auto 2rem;
}

.intro-image-wrap::before {
    content: '';
    position: absolute;
    top: 15px;
    bottom: -15px;
    left: -15px;
    right: 15px;
    border: 1px solid rgba(197, 160, 89, 0.5);
    /* Delicate gold border */
    border-radius: 200px 200px 8px 8px;
    /* Arch shape */
    z-index: 0;
}

.intro-image-wrap img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/4;
    /* Better for portraits */
    object-fit: cover;
    object-position: top center;
    border-radius: 200px 200px 8px 8px;
    /* Arch shape */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.intro-image-caption {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--color-olive-accent);
    margin: 0;
    position: relative;
    display: inline-block;
    font-weight: 500;
}

.intro-image-caption::before,
.intro-image-caption::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 24px;
    height: 1px;
    background: var(--color-gold-accent);
    opacity: 0.6;
}

.intro-image-caption::before {
    right: 100%;
    margin-right: 15px;
}

.intro-image-caption::after {
    left: 100%;
    margin-left: 15px;
}

.intro-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold-accent);
    margin-bottom: 0.75rem;
    display: block;
}

.intro-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 400;
    color: #1C201C;
    margin: 0 0 1.25rem;
    line-height: 1.2;
    max-width: 480px;
}

.intro-desc {
    font-size: 0.95rem;
    color: #6B6559;
    line-height: 1.7;
    margin: 0 0 1.25rem;
    max-width: 540px;
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #1C201C;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.9rem 1.75rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.btn-dark:hover {
    background: var(--color-gold-accent);
}

/* ==========================================================================
   3. QURANIC QUOTE BANNER
   ========================================================================== */
.quote-banner-section {
    padding: clamp(4rem, 8vw, 5rem) 0;
    background-color: #F8F5EE;
    background-image: url('../images/muftiabdulrehman-website-background-3.webp');
    background-size: cover;
    background-position: center;
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 350px;
}

.quote-banner-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(248, 245, 238, 0.45);
    z-index: 1;
}

.quote-banner-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.arabic-quote {
    font-family: 'Amiri', serif;
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    color: #1C201C;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.translation-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: #555046;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.source-quote {
    font-size: 0.75rem;
    color: #8C8477;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0;
}

/* ==========================================================================
   4. CORE VALUES
   ========================================================================== */
.values-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: #FFFFFF;
    text-align: center;
}

.values-header {
    margin-bottom: 3.5rem;
}

.values-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold-accent);
    margin-bottom: 0.75rem;
    display: block;
}

.values-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.25rem);
    font-weight: 400;
    color: #1C201C;
    margin: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.value-card {
    position: relative;
    padding: 1.5rem 1rem;
    transition: transform 0.4s var(--ease-out-quart);
    border-radius: 8px;
}

.value-card:hover {
    transform: translateY(-8px);
}

.value-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 1.75rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.04);
    transition: all 0.4s var(--ease-out-quart);
}

.value-icon::after {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px dashed rgba(197, 160, 89, 0.4);
    border-radius: 50%;
    transition: all 0.4s var(--ease-out-quart);
}

.value-card:hover .value-icon {
    background: rgba(197, 160, 89, 0.08);
    border-color: rgba(197, 160, 89, 0.5);
    transform: scale(1.05);
}

.value-card:hover .value-icon::after {
    transform: rotate(15deg);
    border-color: rgba(197, 160, 89, 0.6);
}

.value-icon .icon-svg {
    width: 28px;
    height: 28px;
    color: var(--color-gold-accent);
    z-index: 2;
    transition: transform 0.4s var(--ease-out-quart);
}

.value-card:hover .icon-svg {
    transform: scale(1.1);
}

.value-card h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 400;
    color: #1C201C;
    margin: 0 0 1rem;
    transition: color 0.3s ease;
}

.value-card:hover h3 {
    color: var(--color-olive-accent);
}

.value-card p {
    font-size: 0.95rem;
    color: #5C5548;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   5. TIMELINE SECTION
   ========================================================================== */
.timeline-section {
    position: relative;
    padding: clamp(4rem, 8vw, 6rem) 0;
    background-color: #F8F5EE;
    background-image: url('../images/muftiabdulrehman-website-background-5.webp');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-top: 1px solid var(--color-border);
}

.timeline-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(250, 248, 243, 0.7) 0%, rgba(248, 245, 238, 0.2) 100%);
    z-index: 1;
}

.timeline-split-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 900px) {
    .timeline-split-grid {
        grid-template-columns: 1fr;
    }
}

.timeline-content-left {
    align-self: flex-start;
}

@media (min-width: 901px) {
    .timeline-content-left {
        position: sticky;
        top: 120px;
    }
}

.timeline-list {
    position: relative;
    padding-left: 2rem;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 6px;
    /* Centered with 14px dots */
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--color-gold-accent, #C5A059) 0%, rgba(197, 160, 89, 0.45) 50%, rgba(197, 160, 89, 0.2) 100%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--color-gold-accent);
    background: #F8F5EE;
    z-index: 2;
    box-shadow: 0 0 0 4px #F8F5EE;
    /* Clear line behind */
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: calc(-2rem + 4px);
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold-accent);
    z-index: 3;
    opacity: 0.8;
}

.timeline-item h4 {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    color: #1C201C;
    margin: 0 0 0.25rem;
}

.timeline-item p {
    font-size: 0.9rem;
    color: #6B6559;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   6. HADITH QUOTE BANNER
   ========================================================================== */
.hadith-banner-section {
    position: relative;
    padding: clamp(4rem, 8vw, 6rem) 0;
    background-color: #FAF8F3;
    background-image: url('../images/muftiabdulrehman-website-background-1.webp');
    background-size: 100% 100%;
    background-position: center center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.hadith-banner-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(250, 248, 243, 0.3) 0%, rgba(250, 248, 243, 0.9) 45%, rgba(250, 248, 243, 0.98) 100%);
    pointer-events: none;
}

@media (max-width: 900px) {
    .hadith-banner-section {
        background-position: center;
    }

    .hadith-banner-section::before {
        background: rgba(250, 248, 243, 0.9);
    }
}

.hadith-banner-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.hadith-content {
    max-width: 500px;
    text-align: center;
}

.hadith-content .arabic-quote {
    font-size: clamp(1.8rem, 3vw, 2.25rem);
}

/* ==========================================================================
   7. BOTTOM CTA
   ========================================================================== */
.about-bottom-cta {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background-color: #EFECE5;
    background-image: url('../images/muftiabdulrehman-website-background-2.webp');
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
}

.about-bottom-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(248, 245, 238, 0.88);
    z-index: 1;
}

.about-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.about-cta-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold-accent);
    margin-bottom: 0.75rem;
    display: block;
}

.about-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 400;
    color: #1C201C;
    margin: 0 0 1rem;
}

.about-cta-desc {
    font-size: 0.95rem;
    color: #6B6559;
    margin: 0 0 2rem;
    line-height: 1.7;
}

.about-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-light-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: #1C201C;
    border: 1px solid #1C201C;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.9rem 1.75rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-light-outline:hover {
    background: #1C201C;
    color: #FFFFFF;
}

/* ==========================================================================
   8. MOBILE RESPONSIVENESS TWEAKS
   ========================================================================== */
@media (max-width: 600px) {
    .about-hero-section {
        padding-top: 110px;
    }
}

/* ==========================================================================
   9. ENHANCED ABOUT PAGE COMPONENTS: BADGES, PILLARS, URDU SECTION, TIMELINE
   ========================================================================== */

/* Hero Role Tag & Credential Chips */
.about-hero-role-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #8C7449;
    background: rgba(140, 116, 73, 0.08);
    border: 1px solid rgba(140, 116, 73, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    margin: 0.5rem 0 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-credential-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1C201C;
    background: #FFFFFF;
    border: 1px solid #EBE5DA;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.hero-chip .icon-svg {
    width: 14px;
    height: 14px;
    color: #8C7449;
}

/* Intro Micro-Cards Grid */
.intro-micro-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

@media (max-width: 640px) {
    .intro-micro-cards-grid {
        grid-template-columns: 1fr;
    }
}

.micro-card {
    background: #FDFCF9;
    border: 1px solid #EBE5DA;
    border-radius: 6px;
    padding: 1rem 1.15rem;
    transition: all 0.2s ease;
}

.micro-card:hover {
    border-color: #8C7449;
    background: #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.micro-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.micro-card-header .icon-svg {
    width: 16px;
    height: 16px;
    color: #8C7449;
    flex-shrink: 0;
}

.micro-card-header h4 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    color: #1C201C;
    margin: 0;
}

.micro-card p {
    font-size: 0.8rem;
    color: #6B6559;
    line-height: 1.55;
    margin: 0;
}

/* Service Pillars Section */
.pillars-section {
    padding: clamp(4rem, 6vw, 6rem) 0;
    background: #FFFFFF;
    border-bottom: 1px solid #EBE5DA;
}

.pillars-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

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

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

.pillar-card {
    background: #FAF8F3;
    border: 1px solid #EBE5DA;
    border-radius: 8px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pillar-card:hover {
    transform: translateY(-4px);
    border-color: #8C7449;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    background: #FFFFFF;
}

.pillar-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.pillar-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #F4EFE6;
    border: 1px solid #EBE5DA;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8C7449;
}

.pillar-icon-wrap .icon-svg {
    width: 22px;
    height: 22px;
}

.pillar-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8C7449;
    background: #FFFFFF;
    border: 1px solid #EBE5DA;
    padding: 0.25rem 0.65rem;
    border-radius: 3px;
}

.pillar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #1C201C;
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

.pillar-subtitle {
    font-size: 0.78rem;
    font-weight: 600;
    color: #8C7449;
    margin-bottom: 0.85rem;
    display: block;
}

.pillar-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pillar-bullet-list li {
    font-size: 0.8125rem;
    color: #5C5549;
    line-height: 1.5;
    position: relative;
    padding-left: 1.1rem;
}

.pillar-bullet-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.5rem;
    color: #8C7449;
}

/* Timeline Year Badges */
.timeline-year-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #8C7449;
    background: #F4EFE6;
    border: 1px solid #EBE5DA;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    margin-bottom: 0.4rem;
}
