/* --- Our Team & Culture Gallery Styles --- */

:root {
    --primary: #08718b;
    --primary-rgb: 8, 113, 139;
    --primary-light: #0d9488;
    --secondary: #39b54a;
    --text-dark: #1a202c;
    --text-main: #4a5568;
    --text-muted: #718096;
    --white: #ffffff;
    --gray-light: #f7fafc;
    --gray-border: #e2e8f0;
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 16px -6px rgba(0,0,0,0.03);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Page Container styling */
.about-us-page {
    background: #ffffff;
    padding: 4.5rem 0;
    font-family: var(--font-body);
}

/* Header styling */
.oltc-head {
    text-align: center;
    margin-bottom: 4rem;
}

.oltc-head h2 {
    font-family: var(--font-heading);
    font-size: 2.85rem;
    font-weight: 800;
    color: #065a6f;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.oltc-head .section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.oltc-head .decor-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    margin: 0 auto;
    border-radius: 2px;
}

/* Hide legacy elements */
.oltc-head hr {
    display: none;
}

/* Gallery Grid */
.team-gallery-container {
    padding: 0 7.5%;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    width: 100%;
}

/* Card design */
.team-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(8, 113, 139, 0.15);
}

/* Image wrapper */
.team-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 3.5;
    overflow: hidden;
}

.team-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
}

.team-card:hover .team-img {
    transform: scale(1.08);
}

/* Hover overlay */
.team-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 113, 139, 0.85) 0%, rgba(57, 181, 74, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.team-card:hover .team-hover-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: var(--white);
    transform: translateY(15px);
    transition: var(--transition);
}

.team-card:hover .overlay-content {
    transform: translateY(0);
}

.zoom-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.team-card:hover .zoom-icon {
    background: var(--white);
    color: var(--primary);
    transform: scale(1.1);
}

.overlay-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lightbox customization overrides */
.lb-outerContainer {
    border-radius: 12px !important;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5) !important;
}

.lb-dataContainer {
    padding-top: 10px !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 991px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .oltc-head h2 {
        font-size: 2.25rem;
    }
    
    .team-img-wrapper {
        aspect-ratio: unset !important;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Prevent scrolling when lightbox popup is open */
html.lb-disable-scrolling,
body.lb-disable-scrolling {
    overflow: hidden !important;
}

