/* ==========================================================================
   About Page Specific Styles
   ========================================================================== */

.about-wrapper {
    max-width: 1000px; /* Keeps the entire page layout clean and contained */
    margin: 0 auto;
    padding: 3rem 1.5rem;
    font-family: inherit; /* Inherits your global font */
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Hero Section (Stylish Font)
   ========================================================================== */
.about-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

/* Update the Hero Heading */
.stylish-heading {
    font-size: clamp(1.2rem, 5vw, 2.5rem); 
    font-weight: 600; /* Dropped from 800 to a softer, elegant 600 */
    letter-spacing: -0.01em; /* Loosened up the spacing so it breathes */
    color: var(--text-main, #111827);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted, #4b5563);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   Sections Formatting
   ========================================================================== */
.about-section {
    margin-bottom: 5rem;
}

.section-content, .mission-content {
    max-width: 750px;
    margin: 0 auto;
}

/* Update the Section Titles ("Nigeria Is Building...") */
.about-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 600; /* Dropped from 700 to 600 */
    color: var(--text-main, #111827);
    margin-bottom: 1.5rem;
    letter-spacing: normal;
}

.about-section p {
    font-size: 1.1rem;
    color: var(--text-muted, #4b5563);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.highlight {
    font-weight: 700;
    color: var(--color-blue, #2563eb);
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

/* ===========================================================================
   Modern Features Grid
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem 2rem; 
    max-width: 1000px;
    margin: 0 auto;
}

.modern-feature {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    text-align: left;
}

.feature-icon-wrapper {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0; /* Prevents the icon box from squishing */
    background: rgba(37, 99, 235, 0.08); /* Soft blue tint */
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.feature-text h3 {
    font-size: 1.15rem;
    color: var(--text-main, #111827);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-muted, #4b5563);
    margin: 0;
    line-height: 1.5;
}

/* ===========================================================================
   Dark Mode Overrides
   ========================================================================== */
.dark-mode .feature-icon-wrapper {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   Mission Section
   ========================================================================== */
.mission-section {
    background: var(--bg-card, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    padding: 4rem 2rem;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.about-cta {
    margin: 4rem 0 2rem;
}

/* Update the Final CTA Title ("Built something in Nigeria?") */
.about-cta h2 {
    font-size: 2rem;
    font-weight: 600; /* Dropped from 800 to 600 */
    color: var(--text-main, #111827);
    margin-bottom: 0.5rem;
}

.about-cta p {
    color: var(--text-muted, #4b5563);
    margin-bottom: 2rem;
}

.cta-button-container {
    display: flex;
    justify-content: center;
}

.about-cta .btn-primary {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
}

/* ==========================================================================
   Dark Mode Overrides (Assumes you toggle a .dark-mode class on body)
   ========================================================================== */
.dark-mode .mission-section {
    background-color: var(--bg-card, #1f2937);
    border-color: var(--border-color, #374151);
}

/* ==========================================================================
   Mobile Responsiveness (iPhones, Androids)
   ========================================================================== */
@media (max-width: 768px) {
    .about-wrapper {
        padding: 2rem 1rem;
    }
    
    .about-hero {
        margin-bottom: 3rem;
        padding: 1rem 0;
    }
    
    .mission-section {
        padding: 2.5rem 1.5rem;
    }
}


/* ==========================================================================
   ADDED RESPONSIVE BREAKPOINTS (Appended Here)
   ========================================================================== */

/* 1. Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .about-wrapper, 
    .features-grid {
        max-width: 1200px; /* Opens up the layout gracefully on ultra-wide screens */
    }
    .features-grid {
        gap: 3rem 2.5rem;
    }
}

/* 2. Laptop (max-width: 1024px) */
@media (max-width: 1024px) {
    .about-wrapper {
        padding: 3rem 2rem;
    }
    .features-grid {
        gap: 2rem 1.5rem; /* Tightens the grid slightly before dropping to tablet */
    }
    .mission-section {
        padding: 3.5rem 2rem;
    }
}

/* 3. Tablet / iPad (max-width: 768px) - Enhancing existing rules */
@media (max-width: 768px) {
    /* (Your original padding code runs above, this just adds layout fixes) */
    .features-grid {
        /* Forces a single column on tablets so features don't get squished */
        grid-template-columns: 1fr;
        max-width: 550px;
        margin: 0 auto;
    }
    .about-section {
        margin-bottom: 4rem;
    }
    .about-cta {
        margin: 3rem 0 1.5rem;
    }
}

/* 4. Android / Standard Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .about-wrapper {
        padding: 1.5rem 1rem;
    }
    .about-hero {
        margin-bottom: 2.5rem;
    }
    .about-section p, 
    .hero-subtitle {
        font-size: 1rem;
    }
    .mission-section {
        padding: 2rem 1.25rem;
    }
    .modern-feature {
        gap: 1rem;
    }
    .feature-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1.2rem; /* Scales icon down slightly */
    }
    .about-cta h2 {
        font-size: 1.75rem;
    }
}

/* 5. Smallest iPhone / Narrow Mobile (max-width: 320px) */
@media (max-width: 320px) {
    .about-wrapper {
        padding: 1rem 0.75rem;
    }
    .about-section {
        margin-bottom: 3rem;
    }
    .stylish-heading {
        font-size: 1.5rem;
    }
    .about-section h2 {
        font-size: 1.35rem;
    }
    .modern-feature {
        /* Important: Stacks icon on top of text on extreme small screens */
        flex-direction: column; 
        align-items: center;
        text-align: center;
    }
    .feature-icon-wrapper {
        margin-bottom: 0.5rem;
    }
    .feature-text h3 {
        font-size: 1.05rem;
    }
    .feature-text p {
        font-size: 0.9rem;
    }
    .mission-section {
        padding: 1.5rem 1rem;
    }
    .about-cta .btn-primary {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
        width: 100%; /* Makes button stretch fully for easy tapping */
        box-sizing: border-box;
    }
}