/* ── IJF People Carousel – Public Styles ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;700&display=swap');

.ijf-carousel-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 32px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Track ── */
.ijf-carousel-track-container {
    overflow: hidden;
    cursor: grab;
    user-select: none;
}
.ijf-carousel-track-container.is-dragging {
    cursor: grabbing;
}
.ijf-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ── Card ── */
.ijf-card {
    flex: 0 0 calc((100% - 80px) / 5);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ijf-card-clickable {
    cursor: pointer;
}
.ijf-card-clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

/* ── Photo ── */
.ijf-card-photo-wrap {
    width: 100%;
    aspect-ratio: 4/4.2;
    overflow: hidden;
}
.ijf-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ijf-card-photo-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
}

/* ── Card body ── */
.ijf-card-body {
    padding: 14px 16px 18px;
}
.ijf-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 5px;
}
.ijf-card-desig {
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
}

/* ── Dots ── */
.ijf-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.ijf-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(160, 51, 90, 0.3);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    padding: 0;
}
.ijf-dot.active {
    background: #A0335A;
    transform: scale(1.15);
}

/* ── Modal overlay ── */
.ijf-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ijf-modal-overlay.open {
    display: flex;
}

/* ── Modal box ── */
.ijf-modal {
    background: #ffffff;
    border-radius: 20px;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
    animation: ijfModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

@keyframes ijfModalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.ijf-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.2s;
    z-index: 1;
}
.ijf-modal-close:hover {
    background: #e0e0e0;
}

/* ── Modal inner layout ── */
.ijf-modal-inner {
    display: flex;
    gap: 32px;
    padding: 40px 36px;
}

/* ── Photo column ── */
.ijf-modal-photo-col {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.ijf-modal-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    margin-bottom: 16px;
    border: 3px solid #18377E;
}
.ijf-modal-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #18377E;
    line-height: 1.3;
    margin-bottom: 6px;
}
.ijf-modal-desig {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

/* ── Bio column ── */
.ijf-modal-bio-col {
    flex: 1;
    display: flex;
    align-items: flex-start;
}
.ijf-modal-bio {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.75;
    white-space: pre-line;
    padding-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .ijf-card {
        flex: 0 0 calc((100% - 60px) / 4);
    }
}
@media (max-width: 768px) {
    .ijf-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
    .ijf-modal-inner {
        flex-direction: column;
        align-items: center;
        padding: 30px 24px;
    }
    .ijf-modal-photo-col {
        flex: none;
    }
    .ijf-modal-bio-col {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .ijf-card {
        flex: 0 0 calc(100% - 40px);
    }
}
