/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;600;700;900&display=swap');

/* Main Container */
.directors-showcase-container {
    font-family: 'Poppins', sans-serif;
    background-color: #0397bb;
    padding: 60px 20px 80px 20px;
    box-sizing: border-box;
    width: 100%;
}

.directors-showcase-container *,
.directors-showcase-container *::before,
.directors-showcase-container *::after {
    box-sizing: border-box;
}

/* --- Grid System --- */
.ds-card-grid {
    display: grid;
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto;
    grid-template-columns: 1fr;
    /* Mobile: 1 column */
}

/* Shared Section Header */
.ds-section-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -2rem;
    margin-top: 2rem;
    z-index: 20;
    position: relative;
}

/* --- Operational Row Wrapper (Reconstructed for tight centering) --- */
.ds-ops-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    /* Centers the group horizontally */
    flex-wrap: wrap;
    gap: 2rem;
    /* The fixed distance between Anna and Monique */
    width: 100%;
}

.ds-assoc-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
}

/* --- Breakpoints --- */

/* Tablet (2 Columns) */
@media (min-width: 768px) {
    .ds-card-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 5rem;
    }

    .ds-card-grid> :nth-child(1) {
        grid-column: 1 / -1;
    }

    /* Olga Center */
    .ds-section-header {
        grid-column: 1 / -1;
    }
}

/* Desktop/Laptop (6 Columns for Centering) */
@media (min-width: 1024px) {
    .ds-card-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    /* Olga (1st) spans full width */
    .ds-card-grid> :nth-child(1) {
        grid-column: 1 / -1;
    }

    /* Headers span full width */
    .ds-section-header {
        grid-column: 1 / -1;
    }

    /* Strategic Row Wrapper spans full width */
    .ds-strat-row {
        grid-column: 1 / -1;
    }

    /* Ops Row Wrapper spans full width */
    .ds-ops-row,
    .ds-assoc-row {
        grid-column: 1 / -1;
    }
}

/* Mobile specific adjustments */
@media (max-width: 639px) {
    .ds-card-olga {
        margin-bottom: calc(10% + 20px);
    }

    .ds-section-header {
        margin-bottom: 0;
        margin-top: 1rem;
    }

    /* Stack ops row on mobile with margin */
    .ds-ops-row {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        /* Larger gap on mobile vertical stack */
    }

    .ds-assoc-row {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    /* Stack strat row on mobile */
    .ds-strat-row {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

/* --- Strategic Row Wrapper (Flex for centering) --- */
.ds-strat-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    /* Same as grid gap */
    width: 100%;
}

/* Column Logic for Strategic Row */
.ds-strat-cols-3>.ds-director-card {
    /* 3 Columns: (100% - 2 * gap) / 3 */
    width: calc((100% - 6rem) / 3);
    max-width: 350px;
    /* Don't exceed card max-width */
    flex-grow: 0;
    flex-shrink: 0;
}

.ds-strat-cols-2>.ds-director-card {
    /* 2 Columns: (100% - 1 * gap) / 2 */
    width: calc((100% - 3rem) / 2);
    max-width: 350px;
    flex-grow: 0;
    flex-shrink: 0;
}

/* Tablet Override: Default to 2 cols behavior or allow flex to wrap naturally? 
   At 768px we have 2 cols grid. Better to let flex wrap.
*/
@media (min-width: 768px) and (max-width: 1023px) {
    .ds-strat-cols-3>.ds-director-card {
        width: calc((100% - 3rem) / 2);
        /* Force 2 cols on tablet */
    }
}

/* Mobile Override: Stack */
@media (max-width: 767px) {

    .ds-strat-cols-3>.ds-director-card,
    .ds-strat-cols-2>.ds-director-card {
        width: 100%;
        max-width: 350px;
    }
}

/* --- Card Design --- */
.ds-director-card {
    background-color: var(--card-bg, #082f49);
    width: 100%;
    max-width: 350px;
    height: 450px;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 80px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    margin: 0 auto;
    /* Standard centering for Grid items */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    z-index: 10;
}

/* Override margins specifically for Ops and Strat Rows to prevent spreading/unwanted margins */
.ds-ops-row .ds-director-card,
.ds-assoc-row .ds-director-card,
.ds-strat-row .ds-director-card {
    margin: 0;
}

/* Category Colors */
.ds-cat-exec {
    --card-bg: #082f49;
}

.ds-cat-strat {
    --card-bg: #164e63;
}

.ds-cat-ops {
    --card-bg: #0e7490;
}

/* Badge/Title Styling */
.ds-advisor-badge-shared {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.ds-advisor-label {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ds-info-circle {
    width: 24px;
    height: 24px;
    background-color: transparent;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    padding: 0;
}

.ds-info-circle:hover {
    background-color: #ffffff;
    color: #0397bb;
    transform: scale(1.1);
}

/* Vertical Hollow Text */
.ds-hollow-text {
    font-size: 1.1rem;
    font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.5);
    /* 50% default opacity */
    -webkit-text-stroke: 0;
    text-stroke: 0;
    white-space: nowrap;
    position: absolute;
    top: 0;
    right: 5px;
    height: 100%;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 5px;
    pointer-events: none;
    z-index: 1;
    transition: color 0.4s ease;
}

/* Image */
.ds-director-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 10;
    object-fit: cover !important;
    object-position: top center;
    transition: transform 0.5s ease;
    display: block;
}

/* Gradient Overlay */
.ds-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12rem;
    background: linear-gradient(to top, var(--card-bg, #082f49) 15%, transparent);
    z-index: 20;
    pointer-events: none;
}

/* Text Content */
.ds-card-content {
    position: absolute;
    bottom: 1.2rem;
    left: 1.2rem;
    right: 1.2rem;
    z-index: 30;
    color: white;
    text-align: left;
}

.ds-name {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    margin: 0;
}

.ds-role {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
    margin-bottom: 0;
    line-height: 1.25;
}

.ds-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

/* View More Button */
.ds-view-more-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: white;
    padding: 6px 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.ds-view-more-btn:hover {
    background: white;
    color: #082f49;
    border-color: white;
}

.ds-linkedin-icon {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.ds-linkedin-icon:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.ds-director-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.4);
}

.ds-director-card:hover .ds-director-img {
    transform: scale(1.05);
}

.ds-director-card:hover .ds-hollow-text {
    color: rgba(255, 255, 255, 0.75);
    /* 75% Hover Visibility */
}

/* --- Modal --- */
.ds-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ds-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.ds-modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: left;
}

.ds-modal-overlay.active .ds-modal-content {
    transform: scale(1);
}

.ds-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    z-index: 50;
    line-height: 1;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-close-btn:hover {
    color: #ffffff;
    background-color: #0397bb;
}

.ds-modal-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #082f49;
    line-height: 1.2;
    margin: 0 0 5px 0;
}

.ds-modal-role {
    font-size: 1rem;
    color: #0397bb;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.ds-modal-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #000000;
    font-weight: 300;
}

.ds-modal-bio strong {
    font-weight: 600;
    color: #082f49;
}

.ds-modal-bio ul {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding-left: 20px;
    list-style-type: disc;
}

.ds-modal-bio li {
    margin-bottom: 0.25rem;
}

.ds-modal-bio a {
    color: #0397bb;
    text-decoration: underline;
}

.ds-modal-bio a:hover {
    color: #082f49;
}