/* ============================================================
   PA Jeneponto Slider - Frontend Styles (Tema Hijau Tua)
   ============================================================ */

/* -- Wrapper ------------------------------------------------- */
.pajs-slider-wrapper {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #1a3a2a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
}

/* -- Main Slide Area ----------------------------------------- */
.pajs-main-area {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    overflow: hidden;
    background: #0f2a1a;
}

.pajs-slides-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.pajs-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.pajs-slide.active {
    opacity: 1;
    pointer-events: auto;
}

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

.pajs-slide-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(15, 42, 26, 0.9));
    color: #e8f5e9;
    padding: 20px 16px 10px;
    font-size: 14px;
    font-weight: 600;
}

/* Placeholder */
.pajs-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #81c784;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* Arrow controls */
.pajs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.05);
    color: #e8f5e9;
    font-size: 32px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    backdrop-filter: blur(4px);
}
.pajs-arrow:hover { 
    background: rgba(76, 175, 80, 0.3);
    border-color: #66bb6a;
}
.pajs-prev { left: 10px; }
.pajs-next { right: 10px; }

/* Dots */
.pajs-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.pajs-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.pajs-dot.active {
    background: #66bb6a;
    transform: scale(1.3);
}
.pajs-dot:hover {
    background: #81c784;
}

/* -- Right Panel --------------------------------------------- */
.pajs-right-panel {
    flex: 0 0 200px;
    width: 200px;
    display: flex;
    flex-direction: column;
    background: #1a3a2a;
    border-left: 2px solid #2e7d32;
    min-height: 100%;
}

/* Leadership Section - atas (50%) */
.pajs-leadership-section {
    flex: 0 0 50%;
    overflow: hidden;
    position: relative;
    background: #0f2a1a;
    border-bottom: 2px solid #2e7d32;
    min-height: 120px;
}

/* Staff Section - bawah (50%) */
.pajs-staff-section {
    flex: 1 1 50%;
    overflow: hidden;
    position: relative;
    background: #0f2a1a;
    min-height: 120px;
}

/* Ticker wrapper untuk vertical scroll */
.pajs-leadership-ticker-wrap,
.pajs-staff-ticker-wrap {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
}

.pajs-leadership-ticker,
.pajs-staff-ticker {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

/* Leadership Card */
.pajs-leader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px;
    flex-shrink: 0;
    background: #1a3a2a;
    height: 100%;
    justify-content: center;
    min-height: 130px;
    border-bottom: 1px solid rgba(46, 125, 50, 0.3);
}

.pajs-leader-card:last-child {
    border-bottom: none;
}

.pajs-leader-photo {
    width: 110px;
    height: 130px;
    border-radius: 6px;
    overflow: hidden;
    background: #0f2a1a;
    border: 2px solid #2e7d32;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pajs-leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.pajs-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: #0f2a1a;
    color: #4caf50;
}

.pajs-leader-label {
    text-align: center;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 0 4px;
}

.pajs-leader-name {
    color: #e8f5e9;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    display: block;
    word-wrap: break-word;
    max-width: 100%;
}

.pajs-leader-title {
    color: #a5d6a7;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

/* Staff Card */
.pajs-staff-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 4px;
    flex-shrink: 0;
    background: #1a3a2a;
    min-height: 110px;
    justify-content: center;
    border-bottom: 1px solid rgba(46, 125, 50, 0.2);
}

.pajs-staff-card:last-child {
    border-bottom: none;
}

.pajs-staff-photo {
    width: 75px;
    height: 85px;
    border-radius: 4px;
    overflow: hidden;
    background: #0f2a1a;
    border: 2px solid #1b5e20;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.pajs-staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.pajs-photo-placeholder-sm {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: #0f2a1a;
    color: #4caf50;
}

.pajs-staff-label {
    text-align: center;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    width: 100%;
    padding: 0 2px;
}

.pajs-staff-name {
    color: #e8f5e9;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    display: block;
    word-wrap: break-word;
    max-width: 100%;
}

.pajs-staff-title {
    color: #a5d6a7;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    display: block;
    word-wrap: break-word;
    max-width: 100%;
}

.pajs-staff-empty,
.pajs-leader-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #66bb6a;
    font-size: 11px;
    padding: 10px;
    text-align: center;
}

/* Scrollbar styling */
.pajs-leadership-section::-webkit-scrollbar,
.pajs-staff-section::-webkit-scrollbar {
    width: 4px;
}
.pajs-leadership-section::-webkit-scrollbar-track,
.pajs-staff-section::-webkit-scrollbar-track {
    background: #0f2a1a;
}
.pajs-leadership-section::-webkit-scrollbar-thumb,
.pajs-staff-section::-webkit-scrollbar-thumb {
    background: #2e7d32;
    border-radius: 2px;
}

/* -- Responsive ---------------------------------------------- */
@media (max-width: 768px) {
    .pajs-slider-wrapper {
        flex-direction: column;
        height: auto !important;
    }
    .pajs-main-area {
        height: 240px;
        flex: none;
    }
    .pajs-right-panel {
        width: 100%;
        flex: none;
        flex-direction: row;
        height: 260px;
        border-left: none;
        border-top: 2px solid #2e7d32;
    }
    .pajs-leadership-section {
        flex: 0 0 50%;
        border-bottom: none;
        border-right: 2px solid #2e7d32;
        min-height: 100px;
    }
    .pajs-staff-section {
        flex: 1 1 50%;
        min-height: 100px;
    }
    
    .pajs-leader-photo {
        width: 70px;
        height: 85px;
    }
    .pajs-staff-photo {
        width: 55px;
        height: 65px;
    }
    .pajs-leader-name {
        font-size: 9px;
    }
    .pajs-leader-title {
        font-size: 8px;
    }
    .pajs-staff-name {
        font-size: 8px;
    }
    .pajs-staff-title {
        font-size: 7px;
    }
    .pajs-leader-card {
        min-height: 100px;
    }
    .pajs-staff-card {
        min-height: 90px;
    }
}

@media (max-width: 480px) {
    .pajs-right-panel {
        flex-direction: column;
        height: 340px;
    }
    .pajs-leadership-section {
        flex: 0 0 50%;
        border-right: none;
        border-bottom: 2px solid #2e7d32;
    }
    .pajs-staff-section {
        flex: 1 1 50%;
    }
    .pajs-leader-photo {
        width: 90px;
        height: 105px;
    }
    .pajs-staff-photo {
        width: 65px;
        height: 75px;
    }
    .pajs-leader-card {
        min-height: 120px;
    }
    .pajs-staff-card {
        min-height: 100px;
    }
}