/* ==========================================================
FOUNDATION SECTION (ABOUT PAGE)
========================================================== */

.foundation-section {
    padding: 60px 0;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f8fbff 100%
    );
}

.foundation-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

/* LEFT */
.foundation-tag {
    font-size: 13px;
    letter-spacing: 1.5px;
    color: #1091ae;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.foundation-title {
    font-size: 30px;
    font-weight: 700;
    color: #0b2a4a;
    margin-bottom: 18px;
}

.foundation-desc p {
    font-size: 15.5px;
    color: #4a5a6a;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

/* RIGHT */
.foundation-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.foundation-card {
    background: #ffffff;
    padding: 22px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.foundation-card:hover {
    transform: translateY(-6px);
    background: linear-gradient(135deg, #08446e, #1091ae);
    color: #ffffff;
}

.foundation-card h4 {
    font-size: 13px;
    margin-bottom: 6px;
    color: #1091ae;
}

.foundation-card span {
    font-size: 16px;
    font-weight: 600;
}

.foundation-card:hover h4 {
    color: #ffffff;
}

/* ==========================================================
RESPONSIVE
========================================================== */

@media (max-width: 992px) {
    .foundation-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


.foundation-text {
    text-align: justify;     /* 👈 IMPORTANT */
    text-justify: inter-word;
}

/* ==========================================
   FOUNDER CARD
========================================== */

.founder-card {
    cursor: pointer;
    position: relative;
}

.founder-click-text {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #1091ae;
}

/* ==========================================
   MODAL
========================================== */

.founder-modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

/* LEFT */
.founder-left {
    background: linear-gradient(135deg, #08446e, #1091ae);
    color: #fff;
    text-align: center;
    padding: 50px 25px;
}

.founder-avatar {
    width: 220px;
    height: 220px;
    margin: auto;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.35);
}

.founder-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founder-left h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.founder-role {
    font-size: 14px;
    opacity: 0.9;
}

/* RIGHT */
.founder-right {
    padding: 45px;
}

.founder-right h4 {
    color: #0b2a4a;
    margin-bottom: 18px;
}

.founder-right p {
    color: #5b6b7a;
    line-height: 1.8;
}

/* STATS */
.founder-stats {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.founder-stat {
    background: #f4f8fc;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    flex: 1;
}

.founder-stat strong {
    display: block;
    font-size: 22px;
    color: #1091ae;
}

.founder-stat span {
    font-size: 13px;
    color: #5b6b7a;
}

/* CLOSE */
.founder-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .founder-avatar {
        width: 180px;
        height: 180px;
    }

    .founder-right {
        padding: 25px;
    }

    .founder-stats {
        flex-direction: column;
    }
}

/* BADGE */
.founder-badge {
    display: inline-block;
    background: rgba(16,145,174,0.1);
    color: #1091ae;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

/* NAME */
.founder-right h4 {
    font-size: 30px;
    font-weight: 700;
    color: #0b2a4a;
    margin-bottom: 20px;
}

/* DESCRIPTION */
.founder-description {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 10px;
}

.founder-description p {
    color: #5b6b7a;
    line-height: 1.9;
    margin-bottom: 18px;
    text-align: justify;
}

/* PREMIUM SCROLLBAR */
.founder-description::-webkit-scrollbar {
    width: 6px;
}

.founder-description::-webkit-scrollbar-thumb {
    background: #1091ae;
    border-radius: 10px;
}

/* LARGE MODAL */
.founder-modal-xl {
    max-width: 1400px;
    width: 95%;
}

/* MODAL CONTENT */
.founder-modal-content {
    min-height: 80vh;
    border-radius: 24px;
    overflow: hidden;
}

/* RIGHT CONTENT */
.founder-right {
    padding: 50px;
}

/* DESCRIPTION AREA */
.founder-description {
    max-height: 58vh;
    overflow-y: auto;
    padding-right: 12px;
}


/* FOUNDER IMAGE */
.founder-avatar {
    width: 260px;
    height: 300px;
    margin: 0 auto 25px;
    border-radius: 15%;
    overflow: hidden;
    border: 5px solid rgba(255,255,255,0.25);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.08);
    transition: all 0.4s ease;
}

/* IMAGE */
.founder-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* HOVER EFFECT */
.founder-avatar:hover {
    transform: scale(1.04);
}

@media (max-width: 768px) {
    .founder-avatar {
        width: 200px;
        height: 250px;
    }
}

/* =========================
   COMPACT FOUNDER MODAL
   Keep the complete desktop profile visible in one viewport.
========================= */
@media (min-width: 992px) {
    .founder-modal .modal-dialog {
        max-height: calc(100vh - 24px);
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .founder-modal-content {
        height: calc(100vh - 24px);
        min-height: 0;
    }

    .founder-modal-content > .row {
        height: 100%;
    }

    .founder-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 28px 24px;
    }

    .founder-avatar {
        width: 285px;
        height: 320px;
        margin-bottom: 18px;
    }

    .founder-left h3 {
        font-size: 20px;
        margin-bottom: 7px;
    }

    .founder-right {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 0;
        padding: 32px 42px;
    }

    .founder-right h4 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .founder-description {
        max-height: none;
        padding-right: 0;
        overflow: visible;
        column-count: 2;
        column-gap: 28px;
    }

    .founder-description p {
        font-size: 12px;
        line-height: 1.45;
        margin-bottom: 10px;
        text-align: left;
        break-inside: avoid;
    }

    .founder-stats {
        gap: 12px;
        margin-top: 16px;
    }

    .founder-stat {
        padding: 10px 12px;
    }

    .founder-stat strong {
        font-size: 18px;
    }

    .founder-stat span {
        font-size: 11px;
    }
}

@media (max-width: 991px) {
    .founder-modal-content {
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }
}
