/*==================================================
 AL FAJR FOUNDATION
 RECONSTRUCTED ABOUT CSS (STRICT IMPLEMENTATION)
==================================================*/

/*==============================
 SECTION BASE
==============================*/
.about-section {
    position: relative;
    overflow: hidden;
    padding: 8px 0 40px;
    /* Richer warm parchment gradient — gives the section a premium warm feel */
    background: linear-gradient(160deg, #fffefb 0%, #fdf9f0 45%, #f5f0e2 100%);
    scroll-margin-top: 100px;
}

.about-bg-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.02; /* Strictly less than 3% opacity */
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%23C9A227' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.about-glow-core {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    /* Slightly stronger warm gold glow for parchment background */
    background: radial-gradient(circle, rgba(201, 162, 39, 0.055) 0%, transparent 70%);
    filter: blur(50px);
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.about-section .container {
    position: relative;
    z-index: 2;
    width: min(94%, var(--container-width, 1400px));
    margin: auto;
}

/*==============================
 INTRO GRID (2-COLUMN LAYOUT)
==============================*/
/*==============================
 MAIN GRID (2-COLUMN LAYOUT)
==============================*/
.about-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 24px;
}

@media (min-width: 993px) {
    .about-main-grid {
        grid-template-columns: 1.15fr 0.85fr; /* Spacious left side for text/cards */
        gap: 50px;
    }
}

/* LEFT COLUMN */
.about-content-col {
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.about-badge {
    display: inline-block;
    letter-spacing: .35em;
    text-transform: uppercase;
    font-size: .9rem;
    font-weight: 700;
    color: var(--gold);
}

.about-gold-divider {
    width: 80px;
    height: 3px;
    margin: 18px 0;
    border-radius: 999px;
    /* Richer two-tone gold gradient for depth */
    background: linear-gradient(90deg, #C9A227 0%, #E5C768 60%, #C9A227 100%);
}

.about-heading {
    margin: 0 0 16px;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    color: var(--navy);
    line-height: 1.25;
    font-weight: 700;
}

.about-heading span {
    color: var(--gold);
}

.about-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px; /* Space between paragraphs and cards */
}

.about-intro, 
.about-intro-last {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    /* Warm muted tone instead of cool-grey — harmonises with parchment background */
    color: #6B6254;
}

/* RIGHT COLUMN */
.about-visual-col {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* top align */
    width: 100%;
}

@media (min-width: 993px) {
    .about-visual-col {
        justify-content: flex-end;
    }
}

.about-image-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg, 28px);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(7, 26, 54, 0.12); /* Soft premium shadow */
    border: 1px solid rgba(201, 162, 39, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

@media (min-width: 993px) {
    .about-image-container {
        height: 530px; /* Prominent desktop height */
    }
}

.about-image-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 60px rgba(7, 26, 54, 0.18);
}

.about-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    background: #FAF5EB;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FEATURE CARDS — HORIZONTAL LAYOUT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.about-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
}

/* The card itself: horizontal strip */
.about-card-premium {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* Warm ivory — slightly creamier than pure white for depth against parchment bg */
    background: #FFFEF7;
    border: 1px solid rgba(201, 162, 39, 0.18);
    /* Subtle gold left-edge accent — adds visual hierarchy */
    border-left: 3px solid rgba(201, 162, 39, 0.45);
    border-radius: 20px;
    padding: 16px 22px;
    gap: 18px;
    box-shadow: 0 6px 28px rgba(15, 35, 60, 0.07), 0 1px 4px rgba(201, 162, 39, 0.06);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
}

.about-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 42px rgba(15, 35, 60, 0.10), 0 2px 8px rgba(201, 162, 39, 0.08);
    border-left-color: rgba(201, 162, 39, 0.70);
}

/* Icon circle — left side */
.card-icon-wrapper {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Richer gold tint on icon background */
    background: rgba(201, 162, 39, 0.11);
    color: #B8911F; /* Slightly deeper gold for icon — better on warm ivory */
    font-size: 1.4rem;
    border: 1px solid rgba(201, 162, 39, 0.15);
}

/* Text block — right side */
.about-card-premium .card-body {
    flex: 1;
    min-width: 0; /* prevent overflow */
}

.about-card-premium h3 {
    margin: 0 0 6px;
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.about-card-premium p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    /* Warm muted text on cards — matches body text treatment */
    color: #6B6254;
}

/*==============================
 STATISTICS STRIP
==============================*/
.about-stats-container {
    background: var(--navy); /* Navy background */
    border-radius: var(--radius-lg, 28px); /* Rounded corners */
    padding: 50px 40px;
    box-shadow: var(--shadow-md, 0 18px 50px rgba(0,0,0,.12));
    border: 1px solid rgba(201, 162, 39, 0.15);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px); /* Soft hover lift */
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold); /* Gold icons */
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.stat-card strong {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.2rem, 3.5vw, 2.8rem); /* Large numbers */
    color: var(--gold);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.stat-card span {
    font-size: 0.85rem; /* Small labels */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.75);
}

/*==============================
 ABOUT HERO INTRO TRANSITION
==============================*/
.about-hero-intro {
    position: relative;
    overflow: hidden;
    padding: 40px 0 20px; /* Reduced top padding by 30px to sit closer to navbar */
    background: linear-gradient(180deg, #f6efe2 0%, #ffffff 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.about-hero-intro .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

/*==============================
 RESPONSIVE BREAKPOINTS
==============================*/
@media (max-width: 1200px) {
    .about-cards-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 on tablet */
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .about-main-grid {
        grid-template-columns: 1fr; /* Image below text on tablet */
        gap: 40px;
    }
    .about-content-col {
        max-width: 100%;
        text-align: center;
    }
    .about-gold-divider {
        margin: 18px auto;
    }
    .about-visual-col {
        justify-content: center;
        order: 1; /* Image below text */
    }
    .about-stats {
        grid-template-columns: repeat(2, 1fr); /* 2x2 on tablet */
        gap: 30px;
    }
    .about-stats-container {
        padding: 40px 30px;
    }
    .about-hero-intro {
        padding: 70px 0 35px;
    }
    .about-hero-intro .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .about-hero-intro .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 60px 0;
    }
    .about-cards-grid {
        grid-template-columns: 1fr; /* 1x4 on mobile */
        gap: 20px;
    }
    .about-card-premium {
        padding: 30px 24px;
    }
    .about-stats {
        grid-template-columns: 1fr; /* 1x4 on mobile */
        gap: 30px;
    }
}