/* ===================== 1) CSS VARIABLES ===================== */
:root {
    /* Brand Colors */
    --af-blue: #0d6efd;
    --af-blue-2: #0b5ed7;
    --af-yellow: #f6c10e;

    /* Neutrals */
    --af-dark: #0b1220;
    --af-white: #ffffff;
    --af-muted: rgba(11, 18, 32, 0.7);

    /* Borders & Shadows */
    --af-border: rgba(13, 110, 253, 0.18);
    --af-shadow: 0 18px 45px rgba(11, 18, 32, 0.12);
    --af-shadow-1: 0 16px 40px rgba(11, 18, 32, 0.12);
    --af-shadow-2: 0 28px 70px rgba(11, 18, 32, 0.18);

    /* Glass */
    --af-glass: rgba(255, 255, 255, 0.78);
    --af-glass-2: rgba(255, 255, 255, 0.92);

    /* Radius */
    --af-radius: 18px;
}

/* ===================== 3) GLOBAL ===================== */
html {
    scroll-behavior: smooth;
}

body {
    background: #fff;
}

/* =========================
   ✅ AFLAK HEADER (Blue/Yellow + Glass)
   ========================= */

/* Colors (Header Only) */
:root {
    --gh-blue: #0d6efd;
    --gh-blue-dark: #0b3a86;
    --gh-yellow: #ffc107;

    --gh-text: #eaf2ff;
    --gh-muted: rgba(234, 242, 255, 0.78);

    --gh-stroke: rgba(255, 255, 255, 0.12);
    --gh-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);

    --blue: #0d6efd;
    --blue2: #0a4cc8;
    --yellow: #f6c10e;
    --ink: #071225;
    --muted: #97a8c5;
}

/* =======================================================================
   4) AFLAAK ABOUT PAGE STYLES
   ======================================================================= */

/* Main Section Background */
.about-bg {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    background: radial-gradient(
            900px 420px at 15% 10%,
            rgba(246, 193, 14, 0.22),
            transparent 60%
        ),
        radial-gradient(
            900px 420px at 85% 5%,
            rgba(13, 110, 253, 0.22),
            transparent 60%
        ),
        linear-gradient(
            120deg,
            rgba(13, 110, 253, 0.7),
            rgba(0, 0, 0, 0.28) 46%,
            rgba(246, 193, 14, 0.38)
        ),
        url("/assets/images/bg-1.png") center/cover no-repeat;
        padding-top: 160px;
}

/* Pattern Dots Overlay */
.about-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.22;
    background-image: radial-gradient(
        circle at 1px 1px,
        rgba(255, 255, 255, 0.35) 1px,
        transparent 1px
    );
    background-size: 22px 22px;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Bottom Glow */
.about-bg::after {
    content: "";
    position: absolute;
    left: -120px;
    right: -120px;
    bottom: -180px;
    height: 340px;
    background: radial-gradient(
            closest-side,
            rgba(13, 110, 253, 0.22),
            transparent 65%
        ),
        radial-gradient(closest-side, rgba(246, 193, 14, 0.2), transparent 70%);
    filter: blur(22px);
    z-index: -1;
    pointer-events: none;
}

/* Section Padding */
.aflaak-layer {
    padding: 36px 0 60px;
}

/* Hero Title & Subtitle */
.aflaak-hero-title {
    font-weight: 800;
    letter-spacing: 0.2px;
    font-size: clamp(28px, 3vw, 44px);
    margin-bottom: 10px;
    color: #fff !important;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.aflaak-hero-sub {
    max-width: 820px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88) !important;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* ===================== 5) BUTTONS ===================== */
.aflaak-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;

    background: linear-gradient(90deg, var(--af-blue), var(--af-blue-2));
    color: var(--af-white);

    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

/* Shine Effect */
.aflaak-pill::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -40%;
    width: 60%;
    height: 160%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.55),
        transparent
    );
    transform: rotate(18deg);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.aflaak-pill:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 18px 44px rgba(13, 110, 253, 0.35);
    filter: saturate(1.05);
}

.aflaak-pill:hover::before {
    opacity: 0.9;
    animation: shine 1.1s ease forwards;
}

@keyframes shine {
    from {
        left: -55%;
    }
    to {
        left: 120%;
    }
}

/* Yellow Variant */
.aflaak-pill--alt {
    background: linear-gradient(90deg, var(--aflak-yellow), #ffd24a);
    color: #1a1a1a;
    box-shadow: 0 10px 25px rgba(246, 193, 14, 0.28);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.aflaak-pill--alt:hover {
    box-shadow: 0 18px 44px rgba(246, 193, 14, 0.38);
}

/* ===================== 6) CARDS ===================== */
.aflaak-card {
    background: #071225bb;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--af-radius);
    box-shadow: var(--af-shadow-1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease,
        border-color 0.25s ease;
    transform: translateZ(0);
}

/* Top Gradient Line */
.aflaak-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color));
    opacity: 0.75;
}

/* Glow Overlay */
.aflaak-card::after {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(
            700px 120px at 20% -10%,
            rgba(246, 193, 14, 0.2),
            transparent 55%
        ),
        radial-gradient(
            700px 120px at 80% 0%,
            rgba(13, 110, 253, 0.18),
            transparent 55%
        );
    pointer-events: none;
}

.aflaak-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: var(--af-shadow-2);
}

.aflaak-card:hover::after {
    background: radial-gradient(
            700px 120px at 15% -10%,
            rgba(246, 193, 14, 0.26),
            transparent 55%
        ),
        radial-gradient(
            700px 120px at 85% 0%,
            rgba(13, 110, 253, 0.24),
            transparent 55%
        );
}

/* Card Icon */
.aflaak-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--accent-color);
    border: 1px solid rgba(13, 110, 253, 0.18);
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    position: relative;
    overflow: hidden;
}

.aflaak-icon::after {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(
        closest-side,
        rgba(246, 193, 14, 0.28),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.aflaak-card:hover .aflaak-icon::after {
    opacity: 1;
}

.aflaak-icon svg {
    width: 24px;
    height: 24px;
    /* fill: var(--af-blue); */
    filter: drop-shadow(0 10px 14px rgba(13, 110, 253, 0.18));
}

/* Card Text */
.aflaak-card-title {
    font-weight: 800;
    color: var(--af-dark);
    margin: 0 0 6px;
    font-size: 18px;
}

.aflaak-card-text {
    color: rgba(11, 18, 32, 0.72);
    margin: 0;
    line-height: 1.9;
    font-size: 14.8px;
}

/* ===================== 7) MEDIA CARD ===================== */
.aflaak-media-card {
    height: 100%;
    min-height: 320px;
    border-radius: var(--af-radius);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: var(--af-shadow-1);

    background: radial-gradient(
            600px 220px at 20% 20%,
            rgba(246, 193, 14, 0.18),
            transparent 60%
        ),
        radial-gradient(
            700px 280px at 80% 30%,
            rgba(13, 110, 253, 0.18),
            transparent 60%
        ),
        url("/assets/images/about/about-page-image-2.png") center/cover no-repeat;

    position: relative;
    overflow: hidden;
}

.aflaak-media-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.72)
    );

    opacity: 0;
}

/* ===================== 8) SECTION TITLES ===================== */
.aflaak-sec-title {
    text-align: center;
    font-weight: 900;
    margin-bottom: 16px;
    font-size: clamp(20px, 2.4vw, 30px);
    color: #fff !important;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

/* ===================== 9) STATS ===================== */
.aflaak-stats-wrap {
    position: relative;
    padding: 16px 0 34px;
}

.aflaak-mid-line {
    position: absolute;
    left: 50%;
    top: 10px;
    bottom: 10px;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
        180deg,
        transparent,
        rgba(246, 193, 14, 0.25),
        rgba(13, 110, 253, 0.22),
        transparent
    );
}

.aflaak-stat {
    background: var(--af-glass-2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 14px 35px rgba(11, 18, 32, 0.1);
    transition: transform 0.25s ease, border-color 0.25s ease,
        box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Gradient Border (Masked) */
.aflaak-stat::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(13, 110, 253, 0.55),
        rgba(246, 193, 14, 0.55)
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.55;
}

/* Inner Glow */
.aflaak-stat::after {
    content: "";
    position: absolute;
    top: -60px;
    left: -60px;
    width: 140px;
    height: 140px;
    background: radial-gradient(
        closest-side,
        rgba(246, 193, 14, 0.28),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.aflaak-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 55px rgba(11, 18, 32, 0.16);
    border-color: rgba(246, 193, 14, 0.45);
}

.aflaak-stat:hover::after {
    opacity: 1;
}

.aflaak-num {
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 0.3px;
    background: linear-gradient(90deg, var(--af-blue), var(--af-blue-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 6px 0;
}

.aflaak-lbl {
    margin-top: 6px;
    font-weight: 700;
    font-size: 14px;
    color: rgba(11, 18, 32, 0.74);
}

/* Floating Logo */
.aflaak-float-badge {
    position: absolute;
    right: 0;
    bottom: -6px;
    width: 90px;
    opacity: 0.9;
    filter: drop-shadow(0 12px 18px rgba(11, 18, 32, 0.18));
}

@media (max-width: 991px) {
    .aflaak-float-badge {
        position: static;
        width: 80px;
        margin: 14px auto 0;
    }
}

/* ===================== 10) CTA BOX ===================== */
.aflaak-cta {
    background: radial-gradient(
            900px 260px at 15% 10%,
            rgba(246, 193, 14, 0.22),
            transparent 60%
        ),
        radial-gradient(
            900px 260px at 85% 20%,
            rgba(13, 110, 253, 0.18),
            transparent 60%
        ),
        rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--af-radius);
    box-shadow: var(--af-shadow);
    padding: 26px 22px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.aflaak-cta-title {
    font-weight: 900;
    color: var(--af-dark);
    margin: 0 0 10px;
}

.aflaak-cta-text {
    color: rgba(11, 18, 32, 0.72);
    margin: 0 auto;
    max-width: 820px;
    line-height: 1.9;
}
