/* ==========================================================================
   ALFATH MEDIA - ABOUT PAGE STYLES
   Color Palette: Black (#000000), Blue (#1A5DAC), White (#FFFFFF), 
                  Grey (#A09FA3), Cream (#F9EFE8)
   Typography: Headings -> 'Bebas Neue', Body -> 'Aptos', sans-serif
   ========================================================================== */

/* Typography Imports & CSS Variables */
@font-face {
    font-family: 'Aptos';
    src: local('Aptos'), local('Segoe UI'), local('Calibri');
    font-weight: 400;
    font-style: normal;
}

:root {
    --color-black: #000000;
    --color-blue: #1A5DAC;
    --color-white: #FFFFFF;
    --color-grey: #A09FA3;
    --color-cream: #F9EFE8;
    --color-dark-grey: #444444;
    
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Aptos', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Global Reset for About Page */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-black);
    color: var(--color-black);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   SECTION 1: ABOUT HERO
   ========================================================================== */
.about-hero {
    position: relative;
    width: 100%;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5vw 80px 5vw;
    background: var(--color-black) url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(7, 19, 31, 0.90) 60%, rgba(0, 0, 0, 0.98) 100%),
                radial-gradient(circle at 50% 30%, rgba(26, 93, 172, 0.25), transparent 70%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    /* .about-hero is display:flex, which makes this its flex item. Flex
       items default to min-width:auto, meaning the browser won't shrink
       this below its own heading/subtitle text's natural width — on very
       small phones that text is wider than the screen, so without this
       the whole hero (and the page) overflows horizontally instead of the
       text just wrapping onto more lines. */
    min-width: 0;
    margin: 0 auto;
    text-align: center;
    color: var(--color-white);
}

.about-breadcrumb {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-grey);
    margin-bottom: 24px;
}

.about-breadcrumb a {
    color: var(--color-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-breadcrumb a:hover {
    color: var(--color-white);
}

.about-breadcrumb .separator {
    margin: 0 8px;
    color: var(--color-blue);
}

.about-breadcrumb .current {
    color: var(--color-white);
    font-weight: 600;
}

.hero-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-blue);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
    font-weight: 300;
    color: var(--color-grey);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   SECTION 2: OUR STORY
   ========================================================================== */
.our-story {
    position: relative;
    background-color: var(--color-cream);
    padding: 140px 5vw 160px 5vw;
    color: var(--color-black);
    z-index: 2;
}

.story-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Grid items default to min-width:auto, so without this the browser won't
   shrink either column below its own content's natural width — on very
   small phones the text column in particular is wider than the screen. */
.story-container > .story-content,
.story-container > .story-image-wrapper {
    min-width: 0;
}

.section-label-blue {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-blue);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.story-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 4.2rem);
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.story-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-dark-grey);
    margin-bottom: 36px;
    max-width: 580px;
}

.btn-story-action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-blue);
    color: var(--color-white);
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.btn-story-action:hover {
    background-color: #144988;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 93, 172, 0.25);
}

.btn-story-action .btn-arrow {
    transition: transform 0.3s ease;
}

.btn-story-action:hover .btn-arrow {
    transform: translateX(4px);
}

.story-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    margin-bottom: -100px; /* Editorial overlap into next dark section */
    z-index: 3;
}

.story-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.story-image-wrapper:hover .story-image {
    transform: scale(1.03);
}

/* ==========================================================================
   SECTION 3: OUR PHILOSOPHY
   ========================================================================== */
.our-philosophy {
    position: relative;
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 180px 5vw 140px 5vw;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

.philosophy-ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 93, 172, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: glowFloat 12s ease-in-out infinite alternate;
}

@keyframes glowFloat {
    0% { transform: translate(-50%, -50%) scale(0.9); }
    100% { transform: translate(-50%, -50%) scale(1.15); }
}

.philosophy-container {
    position: relative;
    z-index: 2;
    max-width: 950px;
    margin: 0 auto;
}

.philosophy-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-blue);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 30px;
    display: inline-block;
}

.quote-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 8rem;
    line-height: 0;
    color: var(--color-blue);
    opacity: 0.3;
    position: absolute;
    user-select: none;
}

.mark-left {
    top: 20px;
    left: -40px;
}

.mark-right {
    bottom: -20px;
    right: -40px;
}

.philosophy-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.2vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-white);
    padding: 0 20px;
}

.philosophy-supporting {
    font-size: 1.15rem;
    color: var(--color-grey);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

/* ==========================================================================
   SECTION 4: WHAT MAKES US DIFFERENT (TIMELINE)
   ========================================================================== */
.what-makes-us-different {
    position: relative;
    background-color: var(--color-blue);
    color: var(--color-white);
    padding: 140px 5vw;
}

.diff-container {
    max-width: 1100px;
    margin: 0 auto;
}

.diff-header {
    text-align: center;
    margin-bottom: 80px;
}

.diff-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}

.diff-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 4.5vw, 4.5rem);
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--color-white);
}

/* Vertical Timeline Structure */
.timeline-wrapper {
    position: relative;
    padding: 20px 0;
}

.timeline-center-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 50px;
    clear: both;
}

.timeline-left {
    float: left;
    padding-right: 40px;
}

.timeline-right {
    float: right;
    padding-left: 40px;
    margin-top: 40px; /* Offset for staggered zig-zag effect */
}

/* White Floating Cards */
.timeline-card {
    background: var(--color-white);
    color: var(--color-black);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.card-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(26, 93, 172, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--color-black);
}

.card-desc {
    font-size: 1rem;
    color: var(--color-dark-grey);
    line-height: 1.5;
}

/* Clearfix for Float Layout */
.timeline-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   SECTION 5: LEADERSHIP (PREMIUM CIRCULAR PORTRAITS)
   ========================================================================== */
.leadership-section {
    background-color: var(--color-cream); /* #F9EFE8 */
    padding: 140px 5vw;
    color: var(--color-black);
}

.leadership-container {
    max-width: 1100px;
    margin: 0 auto;
}

.leadership-header {
    text-align: center;
    margin-bottom: 70px;
}

.leadership-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 4.2rem);
    text-transform: uppercase;
    line-height: 1.05;
}

/* Equal Height Grid Setup */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: stretch; /* Forces equal height for both cards */
}

/* Premium Card Container */
.leadership-card {
    background-color: var(--color-white);
    border-radius: 24px;
    padding: 48px 32px 40px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease;
    will-change: transform, box-shadow;
}

/* Centered Circular Portrait Wrapper */
.card-portrait-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 28px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Outer Blue Ring & Ambient Glow Layer */
.portrait-ring {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 3px; /* Creates space for the outer blue ring */
    background: linear-gradient(135deg, rgba(26, 93, 172, 0.8), rgba(26, 93, 172, 0.3));
    box-shadow: 0 10px 25px rgba(26, 93, 172, 0.22); /* Soft blue glow */
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

/* Circular Portrait Image */
.leader-portrait {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 5px solid var(--color-white); /* 5px solid white border */
    background-color: #E2E0E5;
    display: block;
    box-sizing: border-box;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Card Content Body */
.leadership-card .card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1; /* Ensures text fills space uniformly */
}

.leader-role {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-blue);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.leader-name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 14px;
    color: var(--color-black);
}

.leader-bio {
    font-size: 1.025rem;
    color: var(--color-dark-grey);
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto;
}

/* Desktop Hover Interactions for Leadership */
@media (min-width: 993px) {
    .leadership-card:hover {
        transform: translateY(-8px); /* Lifts card slightly */
        box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    }

    .leadership-card:hover .portrait-ring {
        box-shadow: 0 14px 32px rgba(26, 93, 172, 0.38); /* Strengthens blue glow */
    }

    .leadership-card:hover .leader-portrait {
        transform: scale(1.03); /* Very subtle scaling of portrait */
    }
}

/* ==========================================================================
   SECTION 6: OUR REACH & LEGACY
   ========================================================================== */
.our-reach {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 140px 5vw;
}

.reach-container {
    max-width: 1200px;
    margin: 0 auto;
}

.reach-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px auto;
}

.reach-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-blue);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
}

.reach-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 4.5vw, 4.5rem);
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 16px;
}

.reach-supporting {
    font-size: 1.1rem;
    color: var(--color-grey);
    font-weight: 300;
}

/* Animated Stats Counter Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 16px;
    border-radius: 18px;
    backdrop-filter: blur(10px);
}

.stat-number-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 3.5vw, 3.8rem);
    color: var(--color-white);
    line-height: 1;
}

.stat-plus {
    color: var(--color-blue);
}

.stat-text-val {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 2.5vw, 2.8rem);
    color: var(--color-white);
    line-height: 1;
}

.stat-title {
    display: block;
    font-size: 0.85rem;
    color: var(--color-grey);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 8px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Laptop & Tablet (1024px and below) */
@media (max-width: 1024px) {
    .story-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-image-wrapper {
        margin-bottom: 0;
    }

    .our-story {
        padding-bottom: 120px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet & Mobile Grid Adjustments (900px and below) */
@media (max-width: 900px) {
    .leadership-grid {
        grid-template-columns: 1fr; /* Single column stack */
        gap: 32px;
    }

    .leadership-card {
        padding: 40px 24px 36px 24px;
    }
}

/* Mobile Devices (768px and below) */
@media (max-width: 768px) {
    /* Timeline Mobile Collapse */
    .timeline-center-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        float: none;
        padding-left: 50px !important;
        padding-right: 0 !important;
        margin-top: 0 !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quote-mark {
        display: none;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .about-hero {
        min-height: 65vh;
        padding-top: 100px;
    }

    .timeline-card {
        padding: 24px;
    }

    .card-portrait-wrapper {
        width: 140px;
        height: 140px;
    }

    .leader-name {
        font-size: 1.9rem;
    }
}

/* ========================================== */
/* ULTRA-WIDE / LARGE MONITORS (1600px+)      */
/* Matches the live production site's widths through normal laptop/desktop
   sizes; on wide/ultra-wide monitors (1920px+) these sections stretch
   further so they don't leave large empty margins either side. Hero text
   blocks are left at their reading width on purpose. */
@media screen and (min-width: 1600px) {
    .story-container { max-width: 1480px; }
    .philosophy-container { max-width: 1100px; }
    .diff-container { max-width: 1280px; }
    .leadership-container { max-width: 1280px; }
    .reach-container { max-width: 1380px; }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .philosophy-ambient-glow {
        animation: none !important;
    }
}