/* ============================================================
   PAST PRESIDENTS - DYNAMIC MODAL STYLES
   ============================================================ */
.modal-backdrop {
    --bs-backdrop-opacity: 0.9 !important;
}

/* Modal Base */
.president-modal .modal-dialog {
    max-width: 900px;
}

.president-modal .modal-content {
    background: linear-gradient(180deg, #132240 0%, #0e1a33 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.president-modal .modal-header {
    border-bottom: none;
    padding: 16px 20px 0;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.president-modal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
    width: 32px;
    height: 32px;
    background-size: 16px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.president-modal .btn-close-white:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.president-modal .modal-body {
    padding: 0;
}

/* ============================================
   MODAL ROW - BOOTSTRAP COL-MD-6 GRID
   ============================================ */

.pm-modal-row {
    min-height: 500px;
    max-height: 80vh;
}

.pm-modal-left-col {
    background: linear-gradient(135deg, #1a2d4d 0%, #0f1f3a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 20px 20px;
}

.pm-modal-right-col {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 80vh;
}

/* Custom scrollbar for right column */
.pm-modal-right-col::-webkit-scrollbar {
    width: 6px;
}

.pm-modal-right-col::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.pm-modal-right-col::-webkit-scrollbar-thumb {
    background: rgba(252, 202, 0, 0.3);
    border-radius: 3px;
}

.pm-modal-right-col::-webkit-scrollbar-thumb:hover {
    background: rgba(252, 202, 0, 0.5);
}

/* Image */
.pm-modal-image-wrap {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 12px;
}

.pm-modal-image-wrap img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    object-position: center top;
    display: block;
    border-radius: 8px;
}

/* Year Badge - centered below image, minimal gap */
.pm-modal-year-badge {
    background: linear-gradient(135deg, rgba(0, 51, 153, 0.9), rgba(10, 31, 99, 0.95));
    border: 1px solid rgba(252, 202, 0, 0.3);
    border-radius: 10px;
    padding: 10px 22px;
    text-align: center;
    margin-top: 4px;
}

.pm-modal-year-badge span {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--eu-yellow);
    letter-spacing: 1px;
}

/* Info Side */
.pm-modal-info {
    padding: 40px 36px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.pm-modal-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--eu-yellow);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.pm-modal-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--eu-yellow), var(--eu-blue));
    border-radius: 2px;
    margin-bottom: 24px;
}

.pm-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.pm-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.pm-meta-item i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 51, 153, 0.5), rgba(10, 31, 99, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--eu-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pm-meta-item>div {
    display: flex;
    flex-direction: column;
}

.pm-meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2px;
}

.pm-meta-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* Bio Section */
.pm-modal-bio {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    margin-top: auto;
}

.pm-bio-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--eu-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.pm-bio-content p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 16px 0;
    text-align: justify;
}

.pm-bio-content p:last-child {
    margin-bottom: 0;
}

/* Card cursor pointer */
.gb-dark-card[data-bs-toggle="modal"] {
    cursor: pointer;
}

/* ============================================
   RESPONSIVE - PRESIDENT MODAL
   ============================================ */

@media (max-width: 991px) {
    .president-modal .modal-dialog {
        max-width: 700px;
        margin: 20px;
    }

    .pm-modal-row {
        min-height: 450px;
    }

    .pm-modal-left-col {
        padding: 24px 16px 16px;
    }

    .pm-modal-image-wrap img {
        max-height: 320px;
    }

    .pm-modal-info {
        padding: 30px 24px;
    }

    .pm-modal-name {
        font-size: 1.4rem;
    }
}

@media (max-width: 767px) {
    .president-modal .modal-dialog {
        max-width: 100%;
        margin: 12px;
    }

    .president-modal .modal-content {
        border-radius: 14px;
    }

    .pm-modal-row {
        min-height: auto;
        max-height: 85vh;
    }

    .pm-modal-left-col {
        padding: 20px 16px 16px;
    }

    .pm-modal-image-wrap img {
        max-height: 280px;
    }

    .pm-modal-right-col {
        max-height: 50vh;
    }

    .pm-modal-info {
        padding: 24px 20px;
    }

    .pm-modal-name {
        font-size: 1.25rem;
    }

    .pm-modal-meta {
        gap: 12px;
    }

    .pm-meta-item i {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .pm-meta-value {
        font-size: 0.88rem;
    }

    .pm-bio-content p {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .pm-modal-year-badge {
        padding: 8px 18px;
    }

    .pm-modal-year-badge span {
        font-size: 0.8rem;
    }
}

@media (max-width: 575px) {
    .president-modal .modal-dialog {
        margin: 8px;
    }

    .pm-modal-row {
        max-height: 90vh;
    }

    .pm-modal-image-wrap img {
        max-height: 240px;
    }

    .pm-modal-right-col {
        max-height: 55vh;
    }

    .pm-modal-info {
        padding: 20px 16px;
    }

    .pm-modal-name {
        font-size: 1.15rem;
    }

    .pm-modal-divider {
        width: 40px;
        margin-bottom: 16px;
    }

    .pm-meta-item {
        gap: 10px;
    }

    .pm-meta-item i {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .pm-meta-label {
        font-size: 0.7rem;
    }

    .pm-meta-value {
        font-size: 0.82rem;
    }

    .pm-modal-bio {
        padding-top: 14px;
    }

    .pm-bio-title {
        font-size: 0.78rem;
    }

    .pm-bio-content p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
}