/* General Layout Fixes */
.about-page {
    padding-top: 80px; 
    overflow-x: hidden;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Story Section */
.about-story-section {
    padding: 80px 0; /* Balanced spacing */
    background-color: #ffffff;
}

.about-flex-row {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap; 
}

.about-text-content {
    flex: 1;
    /* FIX: Changed min-width to 100% for mobile safety */
    min-width: 300px; 
}

.about-title {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.2;
}

.navy-highlight {
    color: #0B2F56; 
}

.about-text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.about-image-content {
    flex: 1;
    min-width: 300px;
}

.about-image-content img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

/* Stats Row - Fixing Mobile Overlap */
.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
    flex-wrap: wrap; /* Allows stats to wrap on small phones */
}

.stat {
    flex: 1;
    min-width: 100px;
}

.stat .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #0B2F56;
}

.stat .label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pillars Section */
.about-pillars {
    padding: 100px 0; /* Premium vertical spacing */
    background-color: #f8faff;
}

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

.pillar-item {
    background: white;
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: 0.3s ease;
}

.pillar-icon i {
    font-size: 2.5rem;
    color: #0B2F56;
    margin-bottom: 20px;
}

/* --- THE CRITICAL MOBILE FIXES --- */
@media (max-width: 768px) {
    .about-story-section {
        padding: 50px 0;
    }

    .about-title { 
        font-size: 2.2rem; 
        text-align: center;
    }

    .about-text-content {
        min-width: 100%; /* Force full width */
        text-align: center;
    }

    .about-flex-row { 
        flex-direction: column-reverse; /* Image stays on top, text below */
        gap: 30px;
    }

    .about-stats {
        justify-content: center;
        gap: 20px;
        text-align: center;
    }

    .pillars-grid { 
        grid-template-columns: 1fr; /* Stack pillars vertically */
        gap: 20px;
    }

    .about-image-content {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .stat {
        min-width: 100%; /* Stats stack on very small phones */
        margin-bottom: 15px;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
}