/* ==========================================================================
   THE MEWA - SOCIAL RESPONSIBILITY PAGE STYLES
   Combined CSS for: Hero, Mission, Impact Categories, NGOs, & Infographics
   ========================================================================== */

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --border-color: rgba(255, 255, 255, 0.08);

    /* Brand Gradients */
    --gradient-1: #f59e0b;
    --gradient-2: #ec4899;
    --gradient-3: #8b5cf6;
    --gradient-4: #3b82f6;

    /* Accent Colors */
    --accent-buy: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* =========================================
   2. HERO SECTION
   ========================================= */
.sr-hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 140px 0 50px;
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}

.sr-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    border: 2px solid transparent;
    background:
        linear-gradient(#1a1a1a, #1a1a1a) padding-box,
        linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3)) border-box;
    color: white;
    backdrop-filter: blur(10px);
}

.sr-hero-badge {
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-buy);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-buy);
}

/* Hero Typography */
.sr-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--text-primary);
    animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
    background: linear-gradient(100deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 5s ease infinite;
}

.sr-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Hero Buttons */
.sr-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 1rem;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
    border: none;
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-outline-custom:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* =========================================
   3. SHARED SECTION UTILITIES
   ========================================= */
.sr-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.sr-section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   4. MISSION SECTION
   ========================================= */
.sr-mission-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.sr-mission-highlight {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.12));
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.sr-mission-highlight::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    animation: orbFloat 8s ease-in-out infinite;
}

.sr-mission-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
    color: white;
    position: relative;
    z-index: 1;
}

.sr-mission-highlight h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}

.sr-mission-highlight p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.sr-mission-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
}

.sr-mission-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.sr-mission-content p:last-child {
    margin-bottom: 0;
}

.sr-mission-content strong {
    color: var(--text-primary);
}

/* =========================================
   5. IMPACT CATEGORIES SECTION
   ========================================= */
.sr-categories-section {
    padding: 100px 0;
}

.sr-category-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.sr-category-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sr-category-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.15);
}

.sr-category-card:hover::before {
    opacity: 1;
}

.sr-category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.sr-category-card:hover .sr-category-icon {
    transform: scale(1.1);
}

/* Category Specific Colors */
.sr-category-icon.education {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
    color: #3b82f6;
}

.sr-category-icon.healthcare {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.05));
    color: #ef4444;
}

.sr-category-icon.environment {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
    color: #10b981;
}

.sr-category-icon.children {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
    color: #f59e0b;
}

.sr-category-icon.animals {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.05));
    color: #ec4899;
}

.sr-category-icon.community {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05));
    color: #8b5cf6;
}

.sr-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.sr-category-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   6. NGO PARTNERS SECTION
   ========================================= */
.sr-ngo-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.sr-ngo-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.sr-ngo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
    border-radius: 20px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sr-ngo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.15);
}

.sr-ngo-card:hover::before {
    opacity: 1;
}

.sr-ngo-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.1));
    color: var(--gradient-3);
    transition: transform 0.3s ease;
}

.sr-ngo-card:hover .sr-ngo-icon {
    transform: scale(1.1);
}

.sr-ngo-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.sr-ngo-focus {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* =========================================
   7. INFOGRAPHIC IMAGE SECTION
   ========================================= */
.sr-image-section {
    padding: 60px 0;
    background: #f3f3f5;
}

.sr-image-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 1.5rem;
    overflow: hidden;
}

.sr-image-wrapper img {
    border-radius: 16px;
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   8. ANIMATIONS
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* =========================================
   9. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .sr-hero-section {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .sr-hero-title {
        font-size: 2.5rem;
    }

    .sr-hero-subtitle {
        font-size: 1.1rem;
    }

    .sr-hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .sr-hero-buttons .btn-gradient,
    .sr-hero-buttons .btn-outline-custom {
        width: 100%;
        justify-content: center;
    }

    .sr-mission-section,
    .sr-categories-section,
    .sr-ngo-section {
        padding: 60px 0;
    }

    .sr-section-title {
        font-size: 2rem;
    }

    .sr-mission-highlight {
        padding: 2rem;
    }

    .sr-mission-highlight h2 {
        font-size: 1.5rem;
    }

    .sr-category-card,
    .sr-ngo-card {
        padding: 1.5rem;
    }
}


/* =========================================
   MERGED LIGHT SECTION CUSTOMIZATION
   ========================================= */

/* 1. Make the section background LIGHT (#f3f3f5) */
.sr-categories-section {
    background-color: #f3f3f5;
    padding: 100px 0;
}

/* 2. Make TEXT outside cards DARK so it's visible on light bg */
.sr-categories-section .sr-section-title {
    color: #28282B;
    /* Dark Black-Grey */
}

.sr-categories-section .sr-section-subtitle {
    color: #5a5a6e;
    /* Muted Dark Grey */
}

/* 3. Make CARDS have a solid DARK background */
/* We use var(--bg-secondary) i.e., #12121a so they look like dark boxes */

.sr-categories-section .sr-mission-highlight {
    background: var(--bg-secondary);
    /* Solid Dark BG */
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Subtle border for contrast */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    /* Shadow for depth */
}

.sr-categories-section .sr-category-card {
    background: var(--bg-secondary);
    /* Solid Dark BG */
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 4. Ensure TEXT INSIDE cards remains WHITE/LIGHT */
.sr-categories-section .sr-mission-highlight h2,
.sr-categories-section .sr-mission-highlight p,
.sr-categories-section .sr-category-title,
.sr-categories-section .sr-category-desc {
    color: var(--text-primary);
    /* Keeps them white */
}

.sr-categories-section .sr-category-desc {
    color: var(--text-secondary);
    /* Keeps description light grey */
}