/* about.css */

/* Global styles (like --primary-color, --spacing-md etc.) are assumed to be loaded from style.css */

/* ========== About Page Specific Styles ========== */
.landing.about-page {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
    text-align: center; /* Center main page title */
}

/* Page title section - similar to blog, but can be customized */
.page-title {
    margin-bottom: var(--spacing-xxxl);
    padding: var(--spacing-xxl) var(--spacing-lg);
    background: var(--form-bg);
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow-light);
    animation: fadeUp 0.9s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
    will-change: transform, opacity;
    animation-fill-mode: forwards;
}

.page-title h1 {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.page-title p {
    font-size: 1.15rem;
    color: var(--light-text-color);
    max-width: 700px;
    margin: 0 auto;
}

/* ========== About Content Section ========== */
.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xxxl); /* Space between major about sections */
    text-align: left; /* Align text within about sections to the left */
}

.about-section {
    background: var(--bg-color);
    padding: var(--spacing-xxxl);
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow-medium);
    animation: fadeUp 0.9s ease-out forwards;
    opacity: 0;
    will-change: transform, opacity;
    animation-fill-mode: forwards;
}

/* Stagger animations for each section */
.about-section.mission-vision { animation-delay: 0.4s; }
.about-section.our-story { animation-delay: 0.6s; }
.about-section.our-team { animation-delay: 0.8s; }


.about-section h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: var(--spacing-xl);
    text-align: center; /* Center headings within each about section */
}

.about-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.about-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: var(--spacing-xxl) auto; /* Center image with spacing */
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow-light);
}

/* Team Members Section */
.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid for team cards */
    gap: var(--spacing-xxl);
    margin-top: var(--spacing-xxl);
    justify-content: center; /* Center team member cards if there's extra space */
}

.team-member-card {
    background: var(--form-bg); /* Slightly different background for team cards */
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow-light);
    text-align: center;
}

.team-member-card img {
    width: 120px; /* Fixed size for team member photos */
    height: 120px;
    border-radius: 50%; /* Make images circular */
    object-fit: cover;
    margin-bottom: var(--spacing-md);
    border: 3px solid var(--primary-color); /* Small border for emphasis */
}

.team-member-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
}

.team-member-card p {
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-bottom: 0;
}

/* ========== Responsive Adjustments for About Page ========== */
@media (max-width: 992px) {
    .page-title h1 {
        font-size: 2.5rem;
    }
    .page-title p {
        font-size: 1.05rem;
    }
    .about-section h2 {
        font-size: 1.8rem;
    }
    .about-section p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .landing.about-page {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }

    .page-title {
        padding: var(--spacing-xl) var(--spacing-md);
        margin-bottom: var(--spacing-xxl);
    }

    .page-title h1 {
        font-size: 2.2rem;
    }

    .page-title p {
        font-size: 1rem;
    }

    .about-content {
        gap: var(--spacing-xxl); /* Reduce gap between sections */
    }

    .about-section {
        padding: var(--spacing-xl);
    }

    .team-members {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjust team card size */
        gap: var(--spacing-xl);
    }

    .team-member-card img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .page-title h1 {
        font-size: 1.8rem;
    }
    .page-title p {
        font-size: 0.9rem;
    }
    .about-section h2 {
        font-size: 1.5rem;
    }
    .about-section p {
        font-size: 0.9rem;
    }
    .team-members {
        grid-template-columns: 1fr; /* Stack team cards vertically */
    }
}