/* ==========================================================================
   About Page — Jareeda
   Burgundy + gold palette (theme tokens) on donate-page structural patterns.
   All rules are scoped under .about-page to prevent global collisions.
   ========================================================================== */

.about-page {
    --gold-100: #fdf6e3;
    --gold-200: #f4e3b8;
    --gold-400: #d4a853;
    --gold-500: #c5a059;
    --gold-600: #a8863d;

    --burg-900: #3d0220;
    --burg-800: #520226;
    --burg-700: #6e0532;
    --burg-600: #8a1548;

    --surface: #ffffff;
    --surface-soft: #fafafa;
    --text-primary: #1f1620;
    --text-secondary: #6b5860;
    --border-soft: rgba(110, 5, 50, 0.08);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 2px rgba(110, 5, 50, 0.04);
    --shadow-md: 0 8px 24px rgba(110, 5, 50, 0.06);
    --shadow-lg: 0 16px 48px rgba(110, 5, 50, 0.08);
    --shadow-xl: 0 24px 64px rgba(110, 5, 50, 0.12);

    --t-fast: 150ms cubic-bezier(.4, 0, .2, 1);
    --t-smooth: 300ms cubic-bezier(.4, 0, .2, 1);
    --t-bounce: 500ms cubic-bezier(.34, 1.56, .64, 1);

    position: relative;
    background: linear-gradient(180deg, #fdfbf9 0%, #f6efe9 100%);
    color: var(--text-primary);
    font-family: 'Tajawal', system-ui, sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
    padding-bottom: 4rem;
}

/* ----- Decorative layers ----- */
.about-page .about-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 80% -10%, rgba(197, 160, 89, .18) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 110%, rgba(110, 5, 50, .08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 10% 30%, rgba(197, 160, 89, .08) 0%, transparent 40%);
    animation: aboutMeshMove 22s ease-in-out infinite alternate;
}

@keyframes aboutMeshMove {
    0%   { transform: scale(1)   rotate(0deg); }
    100% { transform: scale(1.1) rotate(-2deg); }
}

.about-page .about-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.about-page .about-shape {
    position: absolute;
    opacity: 0.06;
    animation: aboutFloat 20s ease-in-out infinite;
}

.about-page .about-shape.shape-1 {
    top: 8%; left: 4%;
    width: 280px; height: 280px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.about-page .about-shape.shape-2 {
    top: 55%; right: 6%;
    width: 220px; height: 220px;
    background: linear-gradient(135deg, var(--burg-700), var(--burg-900));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: -5s;
}

.about-page .about-shape.shape-3 {
    top: 35%; right: 45%;
    width: 140px; height: 140px;
    border: 3px solid var(--gold-400);
    border-radius: 50%;
    animation-delay: -10s;
}

.about-page .about-shape.shape-4 {
    bottom: 12%; left: 18%;
    width: 90px; height: 90px;
    background: var(--gold-500);
    transform: rotate(45deg);
    animation-delay: -7s;
}

@keyframes aboutFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%      { transform: translateY(-20px) rotate(5deg); }
    50%      { transform: translateY(-10px) rotate(-3deg); }
    75%      { transform: translateY(-25px) rotate(2deg); }
}

/* ----- Layout containers ----- */
.about-page .about-section,
.about-page .about-hero {
    position: relative;
    z-index: 1;
}

.about-page .about-section { padding: 4rem 0; }
.about-page .about-hero    { padding: 5rem 0 3rem; }

.about-page .container { max-width: 1140px; margin: 0 auto; padding: 0 1rem; }

.about-page .narrow      { max-width: 820px; margin-left: auto; margin-right: auto; }
.about-page .text-center { text-align: center; }

/* ----- Reveal ----- */
.about-page .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
}
.about-page .reveal.active { opacity: 1; transform: translateY(0); }
.about-page .reveal-delay-1 { transition-delay: .10s; }
.about-page .reveal-delay-2 { transition-delay: .20s; }
.about-page .reveal-delay-3 { transition-delay: .30s; }
.about-page .reveal-delay-4 { transition-delay: .40s; }

/* ----- Shared typography ----- */
.about-page .text-gradient {
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 50%, var(--gold-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-page .about-badge,
.about-page .section-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    background: var(--gold-100);
    border: 1px solid var(--gold-200);
    border-radius: 100px;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--gold-600);
    margin-bottom: 1rem;
}

.about-page .about-badge { animation: badgeGlow 3s ease-in-out infinite; }

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(197, 160, 89, 0); }
    50%      { box-shadow: 0 0 24px rgba(197, 160, 89, .35); }
}

.about-page .about-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 1rem 0;
    color: var(--burg-800);
}

.about-page .about-hero-tag {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

.about-page .section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.about-page .section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
    color: var(--burg-800);
}

.about-page .section-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
}

/* ----- Verse Card ----- */
.about-page .verse-card {
    background: linear-gradient(135deg, var(--burg-800) 0%, var(--burg-700) 55%, var(--burg-900) 100%);
    color: #fff;
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-page .verse-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a853' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: .6;
}

.about-page .verse-card > * { position: relative; z-index: 1; }

.about-page .verse-decoration {
    color: var(--gold-400);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-page .quran-verse { margin-bottom: 1.5rem; }

.about-page .verse-text {
    display: block;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--gold-400);
    line-height: 2.2;
    margin-bottom: .5rem;
}

.about-page .verse-reference {
    font-size: .9375rem;
    color: rgba(255, 255, 255, .65);
}

.about-page .hadith {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 168, 83, .25);
}

.about-page .hadith-intro {
    display: block;
    font-size: .9375rem;
    color: rgba(255, 255, 255, .75);
    margin-bottom: .5rem;
}

.about-page .hadith-text {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-200);
}

/* ----- About text + highlight ----- */
.about-page .about-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.95;
    margin-bottom: 1.25rem;
}

.about-page .about-highlight {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--gold-100);
    border-radius: var(--radius-lg);
    border-right: 4px solid var(--gold-500);
    transition: var(--t-smooth);
    margin-top: 1.5rem;
}

.about-page .about-highlight:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
}

.about-page .highlight-icon {
    width: 52px; height: 52px; min-width: 52px;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: #fff;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-size: 1.375rem;
}

.about-page .about-highlight h5 {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--burg-800);
    margin: 0 0 .5rem;
}

.about-page .about-highlight p {
    font-size: .9375rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin: 0;
}

/* ----- VMV grid ----- */
.about-page .vmv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.about-page .vmv-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-soft);
    transition: var(--t-smooth);
    position: relative;
    overflow: hidden;
}

.about-page .vmv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.about-page .vmv-card.vision  { border-top: 3px solid var(--burg-700); }
.about-page .vmv-card.mission { border-top: 3px solid var(--gold-500); }
.about-page .vmv-card.values  { border-top: 3px solid var(--burg-600); }

.about-page .vmv-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: var(--t-bounce);
}

.about-page .vmv-card:hover .vmv-icon { transform: scale(1.15) rotate(-5deg); }

.about-page .vmv-card.vision  .vmv-icon { background: rgba(110, 5, 50, .08);   color: var(--burg-700); }
.about-page .vmv-card.mission .vmv-icon { background: rgba(197, 160, 89, .15); color: var(--gold-600); }
.about-page .vmv-card.values  .vmv-icon { background: rgba(138, 21, 72, .10);  color: var(--burg-600); }

.about-page .vmv-card h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: .75rem;
    color: var(--burg-800);
}

.about-page .vmv-card p {
    font-size: .9375rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin: 0;
}

.about-page .values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-page .values-list li {
    position: relative;
    padding-right: 1.75rem;
    margin-bottom: .75rem;
    font-size: .9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-page .values-list li::before {
    content: '\F26A'; /* bi-check2 */
    font-family: 'bootstrap-icons';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--gold-500);
    font-weight: 700;
}

/* ----- Achievements grid ----- */
.about-page .achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.about-page .achievement-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-soft);
    transition: var(--t-smooth);
    position: relative;
    overflow: hidden;
}

.about-page .achievement-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--gold-100), var(--gold-200));
    border-radius: 50%;
    opacity: .45;
    transition: var(--t-smooth);
}

.about-page .achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.about-page .achievement-card:hover::after {
    transform: scale(1.6);
    opacity: .3;
}

.about-page .achievement-card > * { position: relative; z-index: 1; }

.about-page .achievement-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--burg-700), var(--burg-800));
    color: var(--gold-400);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: var(--t-bounce);
}

.about-page .achievement-card:hover .achievement-icon {
    transform: scale(1.1) rotate(-5deg);
}

.about-page .achievement-card h4 {
    font-size: 1.1875rem;
    font-weight: 800;
    margin-bottom: .75rem;
    color: var(--burg-800);
}

.about-page .achievement-card p {
    font-size: .9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* ----- Branches grid ----- */
.about-page .branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.about-page .branch-card {
    background: var(--surface);
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-soft);
    text-align: center;
    transition: var(--t-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}

.about-page .branch-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-400);
    box-shadow: var(--shadow-md);
}

.about-page .branch-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gold-100);
    color: var(--gold-600);
    display: grid;
    place-items: center;
    font-size: 1.125rem;
    transition: var(--t-bounce);
}

.about-page .branch-card:hover .branch-icon {
    background: var(--gold-500);
    color: #fff;
    transform: scale(1.1);
}

.about-page .branch-card span {
    font-weight: 700;
    font-size: 1rem;
    color: var(--burg-800);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .about-page .about-section { padding: 3rem 0; }
    .about-page .about-hero    { padding: 4rem 0 2rem; }
    .about-page .verse-card    { padding: 2rem 1.25rem; }
    .about-page .about-highlight {
        flex-direction: column;
        text-align: center;
    }
    .about-page .about-highlight .highlight-icon { margin: 0 auto; }
    .about-page .about-shape    { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .about-page .about-mesh,
    .about-page .about-shape,
    .about-page .about-badge { animation: none; }
    .about-page .reveal { opacity: 1; transform: none; transition: none; }
}
