/* --- About Us Page Specific Styles (Mobile First) --- */

/* Hero Section for About Us Page */
.about-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/assets/aboutUs/aboutUsPageHeroPhoto.jpeg') no-repeat center center/cover;
    color: var(--light-text-color);
    text-align: center;
    padding: 60px 15px; /* Mobile padding */
}

.about-hero h1 {
    color: var(--light-text-color);
    font-size: 2.2em; /* Mobile H1 size */
    margin-bottom: 15px;
    font-weight: 700;
}

.about-hero h1 .calm {
    color: #6fa8dc;
}

.about-hero p {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto;
}

/* Mission & Vision Section */
.mission-vision-section {
    padding: 40px 0;
    text-align: center;
    display: flex;
    flex-direction: column; 
    gap: 30px;
}

.mission-card,
.vision-card {
    background-color: var(--fadeAccent-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.mission-card .icon-large,
.vision-card .icon-large {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.mission-card h2,
.vision-card h2 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
}

/* Our Story Section */
.story-section {
    padding: 40px 0;
    text-align: center;
    font-weight: 600;
}

.story-section h2 {
    margin-bottom: 30px;
    font-weight: 600;
}

.story-content {
    display: flex;
    flex-direction: column; 
    gap: 25px;
    align-items: center; 
    width: 95%;
    margin: 0 auto;
}

.story-image {
    width: 100%;
    max-width: 450px; 
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.story-content p {
    text-align: justify; 
    margin-bottom: 15px;
}
.story-content p:last-child {
    margin-bottom: 0;
}


/* Core Values Section */
.values-section {
    padding: 40px 0;
    text-align: center;
    background-color: var(--background-light);
}

.values-section h2 {
    margin-bottom: 30px;
    font-weight: 600;
}

.values-grid {
    display: flex;
    flex-direction: column; /* Stack values on mobile */
    gap: 25px;
    margin-top: 30px;
}

.value-item {
    background-color: var(--fadeSecondaryColor);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}

.value-item .icon-small {
    font-size: 2.5em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.value-item h3 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
}

.value-item p {
    font-size: 0.95em;
    font-weight: 600;
}


/* Team Section */
.team-section {
    padding: 40px 0;
    text-align: center;
}

.team-section h2 {
    margin-bottom: 30px;
}

.team-grid {
    display: flex;
    flex-direction: column; /* Stack team members on mobile */
    gap: 25px;
    margin-top: 30px;
}

.team-member-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.team-member-card h3 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.team-member-card .team-title {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
}

.team-member-card .team-bio {
    font-size: 0.9em;
    color: #555;
    flex-grow: 1; /* Allows bio to take up space */
}


/* --- About Us Page Specific Media Queries for Larger Screens (Mobile-First) --- */

/* Small Tablets and Larger Phones (e.g., min-width 576px) */
@media (min-width: 576px) {
    .about-hero h1 {
        font-size: 2.5em;
    }

    /* Mission & Vision: Side-by-side */
    .mission-vision-section {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .mission-card,
    .vision-card {
        flex: 1 1 calc(50% - 30px); /* Two cards per row */
        max-width: calc(50% - 30px);
    }

    /* Story Section: Image and text side-by-side */
    .story-content {
        flex-direction: row;
        align-items: flex-start; /* Align content to the top */
        text-align: left;
    }
    .story-image {
        flex: 0 0 40%; /* Image takes 40% of space */
        max-width: 40%;
        margin-right: 25px; /* Space between image and text */
    }
    .story-content div {
        flex: 1; /* Text takes remaining space */
    }

    /* Values Grid: 2 columns */
    .values-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .value-item {
        flex: 1 1 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }

    /* Team Grid: 2 columns */
    .team-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .team-member-card {
        flex: 1 1 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}


/* Medium Devices / Tablets (e.g., min-width 768px) */
@media (min-width: 768px) {
    .about-hero {
        padding: 80px 20px;
    }
    .about-hero h1 {
        font-size: 3em;
    }

    .mission-vision-section h2,
    .story-section h2,
    .values-section h2,
    .team-section h2 {
        font-size: 2.2em;
    }

    /* Story content: Adjust image/text ratio if needed */
    .story-image {
        max-width: 350px; /* Specific width */
        height: 250px; /* Specific height */
        flex: none; /* Don't let it grow/shrink */
    }

    /* Values Grid: 3 columns */
    .values-grid {
        gap: 30px;
    }
    .value-item {
        flex: 1 1 calc(33.333% - 30px);
        max-width: calc(33.333% - 30px);
    }

    /* Team Grid: 3 columns */
    .team-grid {
        gap: 30px;
    }
    .team-member-card {
        flex: 1 1 calc(33.333% - 30px);
        max-width: calc(33.333% - 30px);
    }
}


/* Large Devices / Desktops (e.g., min-width 992px) */
@media (min-width: 992px) {
    .about-hero {
        padding: 100px 20px;
    }
    .about-hero h1 {
        font-size: 3.5em;
    }

    .mission-vision-section h2,
    .story-section h2,
    .values-section h2,
    .team-section h2 {
        font-size: 2.5em;
    }

    /* Values Grid: 4 columns */
    .values-grid {
        gap: 30px;
    }
    .value-item {
        flex: 1 1 calc(25% - 30px);
        max-width: calc(25% - 30px);
    }

    /* Team Grid: 4 columns or as desired */
    .team-grid {
        gap: 30px;
    }
    .team-member-card {
        flex: 1 1 calc(25% - 30px); /* Example for 4 columns */
        max-width: calc(25% - 30px);
    }
}

/* Extra Large Devices (e.g., min-width 1200px) */
@media (min-width: 1200px) {
    /* Adjust if necessary for even larger screens */
}