/* ======================= Page Header Banner ======================= */
.page-header {
    /* Using your brand's reddish gradient overlay */
    background-image: linear-gradient(rgb(182 3 36 / 66%), rgb(182 3 3 / 64%)), url('https://images.pexels.com/photos/3184398/pexels-photo-3184398.jpeg');
    background-size: cover;
    background-position: center 30%;
    padding: 140px 0 80px 0;
    text-align: center;
    color: var(--white);
}
.page-header h1 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
.page-header p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; opacity: 0.9; }

/* ======================= Company Details Section ======================= */
.about-us-section { padding: 80px 0; background-color: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.about-image img { width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.about-text h2 { font-size: 2.2rem; margin-bottom: 1.5rem; color: var(--dark-text); }
.about-text ul { list-style: none; padding: 0; }
.about-text ul li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.about-text ul li i { color: var(--primary-blue); margin-top: 5px; }

/* ======================= Leadership Section (Desktop Optimized) ======================= */
.leadership-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1150px;
    margin: 0 auto;
    justify-items: center; /* Centers cards in their grid area */
}
.leader-card {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Your preferred desktop sizes */
    width: 530px;
    height: 400px; 
}
.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.leader-photo {
    flex: 0 0 250px; /* Fixed width for photo on desktop */
    height: 100%;
    background-color: #f1f5f9;
}
.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* CRITICAL: Prevents cutting off heads */
}
.leader-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.leader-info h3 { font-size: 1.5rem; color: var(--dark-text); margin-bottom: 0.25rem; font-weight: 700; }
.leader-info .title { color: var(--primary-blue); font-weight: 600; margin-bottom: 1rem; font-size: 1rem; }
.leader-info .bio { font-size: 0.95rem; color: var(--body-text); line-height: 1.6; margin-bottom: 1.5rem; }
.social-links { display: flex; gap: 0.8rem; }
.social-links a { 
    color: var(--light-text); 
    border: 1px solid var(--border-color); 
    width: 36px; height: 36px; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; transition: 0.3s; 
}
.social-links a:hover { background-color: var(--primary-blue); color: #fff; border-color: var(--primary-blue); }

/* ======================= Employee Team Section ======================= */
.team-section { padding: 80px 0; background-color: var(--white); }
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}
.team-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid #f1f5f9;
}
.team-card:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.team-photo { aspect-ratio: 1 / 1.2; width: 100%; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-info { padding: 1.5rem 1rem; }
.team-info h3 { font-size: 1.25rem; color: var(--dark-text); margin-bottom: 0.2rem; }
.team-info .title { color: var(--primary-blue); font-size: 0.9rem; font-weight: 500; }

/* ======================= Responsive Design Adjustments ======================= */

/* Tablet View */
@media (max-width: 1150px) {
    .leadership-grid {
        grid-template-columns: 1fr; /* Switch to 1 column */
    }
}

/* General Mobile View */
@media (max-width: 768px) {
    .page-header h1 { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; }
}

/* Small Phone View (The Fix for 530px overflow) */
@media (max-width: 600px) {
    .leader-card {
        flex-direction: column; /* Stack photo above text */
        width: 100% !important; /* Force to screen width */
        height: auto !important; /* Allow card to grow with bio text */
        max-width: 100%;
    }
    .leader-photo {
        flex: none;
        width: 100%;
        height: 320px; /* Give photo a fixed height on top */
    }
    .leader-info {
        padding: 25px;
        text-align: center;
    }
    .leader-info .social-links {
        justify-content: center;
    }
}