/* ======================= Page Header Banner ======================= */
.page-header {
    background-image: linear-gradient(rgba(3, 109, 182, 0.85), rgba(3, 109, 182, 0.85)), 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; }
.about-text h3 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; 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; }


/* ======================= NEW & IMPROVED Leadership Section ======================= */
.leadership-section {
    padding: 80px 0;
    background-color: var(--bg-light); /* Light grey background */
}
.leadership-grid {
    display: grid;
    /* Create 2 columns on larger screens, 1 on smaller screens */
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1100px; /* Constrain the max width for better appearance */
    margin: 0 auto;
}
.leader-card {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    overflow: hidden;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.leader-photo {
    flex: 0 0 180px; /* Set a fixed base width for the photo container */
    align-self: stretch; /* Make the photo container always match the card height */
}
.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* KEY: This prevents image stretching */
}
.leader-info {
    padding: 1.5rem;
}
.leader-info h3 { font-size: 1.5rem; color: var(--dark-text); margin-bottom: 0.25rem; }
.leader-info .title { color: var(--primary-blue); font-weight: 600; margin-bottom: 1rem; }
.leader-info .bio { font-size: 0.95rem; color: var(--body-text); line-height: 1.7; margin-bottom: 1rem; }
.social-links { display: flex; gap: 0.8rem; }
.social-links a { color: var(--light-text); text-decoration: none; font-size: 1rem; border: 1px solid var(--border-color); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.3s ease; }
.social-links a:hover { background-color: var(--primary-blue); color: var(--white); border-color: var(--primary-blue); }

/* ======================= NEW & IMPROVED Employee Team Section ======================= */
.team-section {
    padding: 80px 0;
    background-color: var(--white);
}
.team-grid {
    display: grid;
    /* Create a flexible grid that automatically wraps */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}
.team-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.team-photo {
    /* KEY CHANGE: Use aspect-ratio instead of fixed height */
    aspect-ratio: 1 / 1.2;
    width: 100%;
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image distortion */
    object-position: top;
}
.team-info {
    padding: 1.5rem 1rem;
}
.team-info h3 { margin-bottom: 0.25rem; font-size: 1.25rem; color: var(--dark-text); }
.team-info .title { color: var(--primary-blue); font-weight: 500; }

/* ======================= Responsive Design Adjustments ======================= */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    /* Make leadership cards stack into a single column */
    .leadership-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .page-header h1 { font-size: 2.5rem; }
}

@media (max-width: 500px) {
    /* Make leadership card layout vertical on very small screens */
    .leader-card {
        flex-direction: column;
        text-align: center;
    }
    .leader-photo {
        width: 100%;
        height: 250px;
    }
    .leader-info {
        padding: 1.5rem;
    }
    .leader-info .social-links {
        justify-content: center;
    }
}