/* =========================================
   ABOUT PAGE SPECIFIC STYLES
   ========================================= */

/* --- 0. Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #fff;
    border-bottom-color: var(--secondary-color);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- 1. Modern Hero --- */
.about-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)),
        url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax feel */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.about-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.about-hero-content p {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
}

/* --- 2. Story Section --- */
.story-section {
    padding: 100px 0;
    background: #fff;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-img-wrapper {
    position: relative;
}

.story-img-wrapper img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.story-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--secondary-color);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

/* --- 3. Converted "How Can I Help" Grid (React Port) --- */
.help-section {
    padding: 100px 0;
    background: #f8fafc;
    /* gray-50 equivalent */
}

.help-header {
    text-align: center;
    margin-bottom: 60px;
}

.help-header h2 {
    font-size: 3rem;
    /* text-5xl/6xl */
    font-weight: 700;
    color: #0f172a;
    /* gray-900 */
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    /* tracking-tight */
}

.help-header p {
    font-size: 1.25rem;
    /* text-xl */
    color: #64748b;
    /* gray-500 */
    font-weight: 300;
}

.help-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    /* gap-6 */
}

@media (min-width: 640px) {
    .help-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        /* lg:gap-8 */
    }
}

.help-card {
    background: #fff;
    /* bg-white (or gray-50) */
    border-radius: 1.5rem;
    /* rounded-3xl */
    padding: 1.5rem;
    /* p-6 */
    display: flex;
    flex-direction: column;
    height: 320px;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    position: relative;
    /* For group hover context */
    cursor: pointer;
}

.help-card:hover {
    background: #f1f5f9;
    /* hover:bg-gray-100 */
    transform: translateY(-5px);
    /* Added slight lift */
}

.card-img-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1rem;
}

.card-img {
    position: absolute;
    width: 11rem;
    /* w-44 */
    height: auto;
    border-radius: 0.5rem;
    /* rounded-lg */
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease-in-out;
}

/* Back Image */
.card-img.back {
    transform: rotate(-6deg);
    z-index: 1;
}

/* Front Image */
.card-img.front {
    transform: rotate(3deg);
    z-index: 2;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Hover Effects (Group Hover logic) */
.help-card:hover .card-img.back {
    transform: rotate(-10deg) scale(1.05);
    /* group-hover:rotate-[-10deg] scale-105 */
}

.help-card:hover .card-img.front {
    transform: rotate(5deg) scale(1.05);
    /* group-hover:rotate-[5deg] scale-105 */
}

.help-card h3 {
    margin-top: auto;
    font-size: 1.125rem;
    /* text-lg */
    font-weight: 500;
    color: #1f2937;
    /* gray-800 */
    text-align: left;
}

/* --- 4. Stats Section --- */
.stats-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: white;
}

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

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 5. CTA Section Specific --- */
.about-cta {
    padding: 80px 0;
    text-align: center;
    background: white;
}

/* Responsive */
@media (max-width: 768px) {
    .about-hero-content h1 {
        font-size: 2.5rem;
    }

    .story-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .story-img-wrapper {
        order: -1;
        /* Image first on mobile */
        margin-bottom: 40px;
    }
}