/* --- JMA Rectangular Leadership Styles (Passport Photo Fix) --- */

.page-banner {
    padding: 60px 20px;
    background-color: #eef4fa;
    color: var(--primary-blue);
    text-align: center;
    border-bottom: 1px solid #dce8f5;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 10fr 1fr;
    gap: 20px;
    padding: 60px 0;
    background-color: #fff;
}

.main-content {
    grid-column: 2;
}

.tier-heading {
    text-align: center;
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin: 40px 0 30px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 10px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3-Column Grid for Top Leadership */
.top-three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* 4-Column Grid for Secretaries */
.four-col-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

/* Sharp Rectangular Card Styling */
.profile-card {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.1);
    border-color: var(--accent-color);
}

/* THE PASSPORT PHOTO FIX */
.profile-photo {
    width: 100%;
    height: 280px;
    /* Gives enough room for portrait images */
    object-fit: contain;
    /* MAGIC RULE: Stops zooming/cropping */
    object-position: bottom;
    /* Anchors the shoulders to the bottom line */
    background-color: #ffffff;
    /* White background blends with passport photos */
    border-bottom: 4px solid var(--accent-color);
    padding: 15px 15px 0 15px;
    /* Gives breathing room around the head */
}

.profile-info {
    padding: 20px 15px;
    background-color: #f8fafd;
    /* Slight contrast for the text area */
}

.profile-name {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-role {
    color: #444;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Grid Adjustments for Mobile and Tablets */
@media (max-width: 1024px) {
    .four-col-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .top-three-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .four-col-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .editorial-grid {
        grid-template-columns: 15px 1fr 15px;
    }

    .top-three-grid,
    .four-col-grid {
        grid-template-columns: 1fr;
    }

    .profile-photo {
        height: 320px;
    }

    /* Slightly taller on mobile */
}