/* Add these styles to style.css */

/* Page Header */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: white;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* History Section */
.history-section {
    padding: 6rem 0;
    background: white;
}

.history-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.history-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.history-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.history-image:hover img {
    transform: scale(1.05);
}

.history-text h2 {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.history-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--saffron);
    border-radius: 2px;
}

/* Mission Section */
.mission-section {
    padding: 6rem 0;
    background: var(--light-gray);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mission-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.mission-icon {
    font-size: 3rem;
    color: var(--saffron);
    margin-bottom: 1.5rem;
}

/* Team Section */
.team-section {
    padding: 6rem 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    background: white;
    padding: 10rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.member-image {
    width: 243px;
    height: 350px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--saffron);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-role {
    color: var(--saffron);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Responsive Design for About Page */
@media (max-width: 992px) {
    .history-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .history-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
        margin-top: 60px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .mission-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        padding: 1.5rem;
    }
}




 



/* Team Section Styles - Image Overflow Fixed */
.team-section {
    padding: 80px 0;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 50px;
    font-family: 'Playfair Display', serif;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #e67e22;
    margin: 15px auto 0;
    border-radius: 2px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 20px;
}

.team-member {
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* FIXED: Image Container - Prevents ANY Overflow */
.member-image {
    width: 220px;
    height: 260px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e67e22;
    background: #f8f9fa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* Centering the image inside */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CRITICAL: Image will NEVER overflow outside */
.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Hover effect - zooms inside without overflow */
.team-member:hover .member-image img {
    transform: scale(1.08);
}

.team-member h3 {
    font-size: 1.35rem;
    color: #2c3e50;
    margin: 15px 0 5px;
    font-family: 'Playfair Display', serif;
}

.member-role {
    color: #e67e22;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.team-member p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Animation for scroll effect */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .team-grid {
        gap: 25px;
    }
    
    /* Smaller images on tablet */
    .member-image {
        width: 180px;
        height: 215px;
    }
    
    .team-member {
        padding: 25px 15px;
    }
    
    .team-member h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .team-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .team-grid {
        gap: 20px;
    }
    
    /* Even smaller on mobile */
    .member-image {
        width: 150px;
        height: 180px;
    }
    
    .team-member {
        padding: 20px 15px;
    }
    
    .team-member h3 {
        font-size: 1.1rem;
    }
    
    .member-role {
        font-size: 0.85rem;
    }
    
    .team-member p {
        font-size: 0.85rem;
    }
}






