/* Team Member Modal Styles */
.founder-profile-modal .modal-content {
    position: relative;
    border: 0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(31, 42, 68, 0.28);
}

.founder-profile-modal {
    z-index: 1055;
}

/* Modal dialog base styles */
.founder-profile-modal .modal-dialog {
    max-width: 1000px !important;
    width: 90% !important;
    margin: 0 auto !important;
}

/* Modal body base styles - no scrollbar, content grows naturally */
.founder-profile-modal .modal-body {
    padding: 28px;
}

/* Close button base styles */
.founder-profile-modal .founder-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.88);
    opacity: 1;
}

/* Image base styles */
.founder-profile-modal .founder-modal-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Role badge */
.founder-profile-modal .founder-modal-role {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(176, 126, 80, 0.12);
    color: #b07e50;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}

/* Name heading */
.founder-profile-modal h3 {
    margin-bottom: 14px;
    color: #1f2a44;
    font-size: clamp(26px, 2.5vw, 38px);
    line-height: 1.1;
}

/* Description text - same font for both description and additional info */
.founder-profile-modal .modal-description,
.founder-profile-modal .modal-additional-info {
    color: #5b6473;
    line-height: 1.75;
}

.founder-profile-modal .modal-description p,
.founder-profile-modal .modal-additional-info p {
    margin-bottom: 15px;
}

.founder-profile-modal .modal-description p:last-child,
.founder-profile-modal .modal-additional-info p:last-child {
    margin-bottom: 0;
}

/* Additional info separator - subtle top border */
.founder-profile-modal .modal-additional-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(91, 100, 115, 0.12);
}

/* =========================================== */
/* RESPONSIVE STYLES                           */
/* =========================================== */

/* Tablet: 768px - 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .founder-profile-modal .modal-dialog {
        max-width: 90% !important;
        width: 90% !important;
    }
    
    .founder-profile-modal .modal-body {
        padding: 22px;
    }
    
    /* Stack vertically on tablet */
    .founder-profile-modal .modal-body .row {
        display: flex;
        flex-direction: column;
    }
    
    .founder-profile-modal .modal-body .col-lg-5,
    .founder-profile-modal .modal-body .col-lg-7 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    /* Image on top */
    .founder-profile-modal .modal-body .col-lg-5 {
        order: -1;
        margin-bottom: 24px;
    }
    
    /* Prevent image cropping */
    .founder-profile-modal .founder-modal-image {
        object-fit: contain;
        max-height: 35vh;
    }
    
    .founder-profile-modal .founder-modal-close {
        top: 14px;
        right: 14px;
        width: 36px;
        height: 36px;
    }
}

/* Mobile: 320px - 767px */
@media (max-width: 767px) {
    .founder-profile-modal .modal-dialog {
        max-height: 90vh !important;
        width: 95% !important;
        display: flex !important;
        align-items: flex-start !important;
        margin-top: 0 !important;
    }
    
    .founder-profile-modal .modal-body {
        overflow-y: auto !important;
        padding: 16px;
        padding-top: 50px !important;
    }
    
    .founder-profile-modal .modal-body .row {
        display: flex;
        flex-direction: column;
    }
    
    .founder-profile-modal .modal-body .col-lg-5,
    .founder-profile-modal .modal-body .col-lg-7 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .founder-profile-modal .modal-body .col-lg-5 {
        order: -1;
        margin-bottom: 20px;
    }
    
    .founder-profile-modal .founder-modal-image {
        object-fit: contain;
        max-height: 40vh;
        border-radius: 12px;
    }
    
    .founder-profile-modal .founder-modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }

    .founder-profile-modal .modal-additional-info {
        margin-top: 12px;
        padding-top: 12px;
    }
}

/* Small mobile: 320px - 480px */
@media (max-width: 480px) {
    .founder-profile-modal .modal-dialog {
        max-height: 92vh !important;
        width: 96% !important;
    }
    
    .founder-profile-modal .modal-body {
        padding: 14px;
        padding-top: 48px !important;
    }
    
    .founder-profile-modal .founder-modal-image {
        max-height: 35vh;
        border-radius: 10px;
    }
    
    .founder-profile-modal .founder-modal-close {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
    }
    
    .founder-profile-modal h3 {
        font-size: 22px;
    }
    
    .founder-profile-modal .founder-modal-role {
        font-size: 11px;
        padding: 6px 12px;
    }

    .founder-profile-modal .modal-additional-info {
        margin-top: 10px;
        padding-top: 10px;
    }
}

/* Extra small mobile: 320px and below */
@media (max-width: 320px) {
    .founder-profile-modal .modal-dialog {
        max-height: 93vh !important;
        width: 98% !important;
    }
    
    .founder-profile-modal .modal-body {
        padding: 10px;
        padding-top: 45px !important;
    }
    
    .founder-profile-modal .founder-modal-image {
        max-height: 28vh;
        border-radius: 8px;
    }
    
    .founder-profile-modal h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .founder-profile-modal .founder-modal-role {
        font-size: 10px;
        padding: 5px 10px;
        margin-bottom: 8px;
    }
    
    .founder-profile-modal .modal-description,
    .founder-profile-modal .modal-additional-info {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .founder-profile-modal .modal-description p,
    .founder-profile-modal .modal-additional-info p {
        margin-bottom: 10px;
    }
    
    .founder-profile-modal .founder-modal-close {
        top: 5px;
        right: 5px;
        width: 26px;
        height: 26px;
    }
}

/* Large desktop: 1400px - 1919px */
@media (min-width: 1400px) and (max-width: 1919px) {
    .founder-profile-modal .modal-dialog {
        max-width: 1300px !important;
        width: 85% !important;
    }
    
    .founder-profile-modal .modal-body {
        padding: 36px;
    }
    
    .founder-profile-modal h3 {
        font-size: clamp(32px, 2.8vw, 42px);
    }
}

/* Extra large desktop: 1920px - 2559px */
@media (min-width: 1920px) and (max-width: 2559px) {
    .founder-profile-modal .modal-dialog {
        max-width: 1600px !important;
        width: 80% !important;
    }
    
    .founder-profile-modal .modal-body {
        padding: 42px;
    }
    
    .founder-profile-modal h3 {
        font-size: clamp(36px, 3vw, 48px);
    }
    
    .founder-profile-modal .modal-description,
    .founder-profile-modal .modal-additional-info {
        font-size: 18px;
        line-height: 1.85;
    }
}

/* Ultra wide screens: 2560px+ */
@media (min-width: 2560px) {
    .founder-profile-modal .modal-dialog {
        max-width: 2000px !important;
        width: 75% !important;
    }
    
    .founder-profile-modal .modal-body {
        padding: 50px;
    }
    
    .founder-profile-modal h3 {
        font-size: clamp(40px, 3.2vw, 52px);
    }
    
    .founder-profile-modal .modal-description,
    .founder-profile-modal .modal-additional-info {
        font-size: 20px;
        line-height: 1.9;
    }
    
    .founder-profile-modal .founder-modal-role {
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* =========================================== */
/* CORE TEAM CARD STYLES                       */
/* (grid/flex layout handled in responsive.css)*/
/* =========================================== */

.core-team-img-wrapper {
    height: 280px;
    overflow: hidden;
    cursor: pointer;
}

.core-team-img-wrapper img {
    transition: transform 0.3s ease;
}

.core-team-img-wrapper:hover img {
    transform: scale(1.05);
}

@media (max-width: 1199px) {
    .core-team-img-wrapper {
        height: 260px;
    }
}

@media (max-width: 767px) {
    .core-team-img-wrapper {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .core-team-img-wrapper {
        height: 200px;
    }
}