﻿/* ---------- About Us Header Section (fixed overlay) ---------- */
.aboutpg-header-section {
    background-image: url('/images/home/feature-bg-1024x403.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 20px;
    color: #fff;
    text-align: center;
    height: 30vh;
    position: relative; /* ensure overlay sits on top of this */
}

.aboutpg-header-overlay {
    position: absolute; /* cover the section */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 94, 104, 0.35); /* dark teal tint */
    z-index: 1;
}

.aboutpg-header-content {
    position: relative;
    z-index: 2; /* above overlay */
    color: #fff;
    text-align: center;
}

    .aboutpg-header-content h1 {
        font-size: 2.5rem;
        font-weight: bold;
        margin: 0;
    }

    .aboutpg-header-content p {
        margin-top: 10px;
        font-size: 1rem;
    }

.aboutpg-breadcrumb-link {
    color: #fff;
    text-decoration: none;
}

    .aboutpg-breadcrumb-link:hover {
        text-decoration: underline;
    }

.aboutpg-breadcrumb-divider {
    margin: 0 5px;
    font-weight: bold;
}

.aboutpg-breadcrumb-current {
    color: #ddd;
}

/* ---------- Team grid (4 per row, responsive, clean) ---------- */
.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* keep in sync with calc() below */
    padding: 2rem;
}

/* 4 per row on large screens */
.team-member {
    flex: 1 1 calc(25% - 2rem);
    max-width: calc(25% - 2rem);
    text-align: center;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 12px;
    background: #fff;
    padding: 16px;
    transition: transform .2s ease;
}

    /* hover */
    .team-member:hover {
        transform: translateY(-4px);
    }

/* 3 per row (≤ 1100px) */
@media (max-width: 1100px) {
    .team-member {
        flex: 1 1 calc(33.333% - 2rem);
        max-width: calc(33.333% - 2rem);
    }
}

/* 2 per row (≤ 800px) */
@media (max-width: 800px) {
    .team-member {
        flex: 1 1 calc(50% - 2rem);
        max-width: calc(50% - 2rem);
    }
}

/* 1 per row (≤ 520px) */
@media (max-width: 520px) {
    .team-member {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Team photo: neat circle with consistent size */
.team-member img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 12px;
    border: 3px solid #4CAF50; /* was border-bottom; now a ring */
}

/* Info */
.team-info {
    padding: .5rem 0;
}

    .team-info h2 {
        margin: .4rem 0 .2rem;
        color: #333;
        font-size: 1.15rem;
        font-weight: 700;
    }

    .team-info p {
        margin: 0;
        color: #666;
        font-size: .95rem;
    }

/* Optional: placeholder initials circle if no photo (use <div class="team-initials">AB</div>) */
.team-initials {
    width: 140px;
    height: 140px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: .5px;
    color: #fff;
    background: radial-gradient(circle at 30% 30%, #4A88B0, #375D7A);
    border: 3px solid #4CAF50;
}


/* ---------- About Us Header Section (fixed overlay) ---------- */
.aboutpg-header-section {
    background-image: url('/images/home/feature-bg-1024x403.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 20px;
    color: #fff;
    text-align: center;
    height: 30vh;
    position: relative; /* ensure overlay sits on top of this */
}

.aboutpg-header-overlay {
    position: absolute; /* cover the section */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 94, 104, 0.35); /* dark teal tint */
    z-index: 1;
}

.aboutpg-header-content {
    position: relative;
    z-index: 2; /* above overlay */
    color: #fff;
    text-align: center;
}

    .aboutpg-header-content h1 {
        font-size: 2.5rem;
        font-weight: bold;
        margin: 0;
    }

    .aboutpg-header-content p {
        margin-top: 10px;
        font-size: 1rem;
    }

.aboutpg-breadcrumb-link {
    color: #fff;
    text-decoration: none;
}

    .aboutpg-breadcrumb-link:hover {
        text-decoration: underline;
    }

.aboutpg-breadcrumb-divider {
    margin: 0 5px;
    font-weight: bold;
}

.aboutpg-breadcrumb-current {
    color: #ddd;
}

/* ---------- Team grid (4 per row, responsive, clean) ---------- */
.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* keep in sync with calc() below */
    padding: 2rem;
}

/* 4 per row on large screens */
.team-member {
    flex: 1 1 calc(25% - 2rem);
    max-width: calc(25% - 2rem);
    text-align: center;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 12px;
    background: #fff;
    padding: 16px;
    transition: transform .2s ease;
}

    /* hover */
    .team-member:hover {
        transform: translateY(-4px);
    }

/* 3 per row (≤ 1100px) */
@media (max-width: 1100px) {
    .team-member {
        flex: 1 1 calc(33.333% - 2rem);
        max-width: calc(33.333% - 2rem);
    }
}

/* 2 per row (≤ 800px) */
@media (max-width: 800px) {
    .team-member {
        flex: 1 1 calc(50% - 2rem);
        max-width: calc(50% - 2rem);
    }
}

/* 1 per row (≤ 520px) */
@media (max-width: 520px) {
    .team-member {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Team photo: neat circle with consistent size */
.team-member img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 12px;
    border: 3px solid #4CAF50; /* was border-bottom; now a ring */
}

/* Info */
.team-info {
    padding: .5rem 0;
}

    .team-info h2 {
        margin: .4rem 0 .2rem;
        color: #333;
        font-size: 1.15rem;
        font-weight: 700;
    }

    .team-info p {
        margin: 0;
        color: #666;
        font-size: .95rem;
    }

/* Optional: placeholder initials circle if no photo (use <div class="team-initials">AB</div>) */
.team-initials {
    width: 140px;
    height: 140px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: .5px;
    color: #fff;
    background: radial-gradient(circle at 30% 30%, #4A88B0, #375D7A);
    border: 3px solid #4CAF50;
}
