/* CSS KHUSUS HALAMAN KESISWAAN */

/* Hero Section Kesiswaan (Nuansa Hijau/Tosca) */

/* Global Section */

.kesiswaan-section {

    padding: 80px 0;

    background-color: #FAFAFA;

}

.kesiswaan-section.bg-white {

    background-color: var(--white);

}

.section-heading {

    text-align: center;

    margin-bottom: 48px;

}

.section-title {

    font-size: 32px;

    font-weight: 800;

    color: var(--charcoal);

    margin-bottom: 16px;

    position: relative;

    display: inline-block;

}

.section-title::after {

    content: '';

    position: absolute;

    bottom: -8px;

    left: 50%;

    transform: translateX(-50%);

    width: 60px;

    height: 4px;

    background: var(--primary-green);

    border-radius: 4px;

}

.section-desc {

    color: var(--slate);

    font-size: 16px;

    max-width: 600px;

    margin: 0 auto;

    line-height: 1.7;

}

/* Program Pembinaan Layout */

.pembinaan-grid {

    display: grid;

    grid-template-columns: 1fr;

    gap: 32px;

    max-width: 900px;

    margin: 0 auto;

}

@media (min-width: 768px) {

    .pembinaan-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}

.pembinaan-card {

    background: var(--white);

    border-radius: 20px;

    padding: 32px;

    display: flex;

    gap: 20px;

    box-shadow: 0 4px 20px rgba(0,0,0,0.04);

    border: 1px solid rgba(0,0,0,0.03);

    transition: transform 0.3s;

}

.pembinaan-card:hover {

    transform: translateY(-5px);

}

.pembinaan-icon {

    width: 56px;

    height: 56px;

    background: #ecfdf5; /* emerald-50 */

    color: #10b981; /* emerald-500 */

    border-radius: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}

.pembinaan-content h3 {

    font-size: 18px;

    font-weight: 700;

    color: var(--charcoal);

    margin-bottom: 10px;

}

.pembinaan-content p {

    font-size: 14px;

    color: var(--slate);

    line-height: 1.6;

}

/* Ekstrakurikuler Cards (Detailed) */

.ekskul-showcase {

    display: grid;

    grid-template-columns: 1fr;

    gap: 24px;

}

@media (min-width: 768px) {

    .ekskul-showcase {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media (min-width: 1024px) {

    .ekskul-showcase {

        grid-template-columns: repeat(3, 1fr);

    }

}

.ekskul-item {

    background: var(--white);

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0,0,0,0.04);

    border: 1px solid rgba(0,0,0,0.03);

    transition: all 0.3s ease;

}

.ekskul-item:hover {

    box-shadow: 0 15px 30px rgba(0,0,0,0.08);

    transform: translateY(-8px);

}

.ekskul-img-box {

    width: 100%;

    height: 180px;

    background: #e2e8f0;

    position: relative;

}

.ekskul-img-box img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

.ekskul-badge {

    position: absolute;

    top: 16px;

    right: 16px;

    background: rgba(255,255,255,0.9);

    backdrop-filter: blur(4px);

    padding: 24px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 700;

    color: var(--primary-green);

    box-shadow: 0 2px 10px rgba(0,0,0,0.1);

}

.ekskul-body {

    padding: 24px;

}

.ekskul-title {

    font-size: 18px;

    font-weight: 800;

    color: var(--charcoal);

    margin-bottom: 12px;

}

.ekskul-desc {

    font-size: 14px;

    color: var(--slate);

    line-height: 1.6;

}

/* Struktur OSIM (Hierarchical Tree) */

.osim-tree {

    display: flex;

    flex-direction: column;

    align-items: center;

    padding: 20px 0;

}

.osim-level {

    display: flex;

    justify-content: center;

    gap: 32px;

    position: relative;

    padding-top: 30px;

    flex-wrap: wrap;

}

/* Garis penghubung atas */

.osim-level::before {

    content: '';

    position: absolute;

    top: 0; left: 50%;

    transform: translateX(-50%);

    width: 2px;

    height: 30px;

    background: #cbd5e1;

}

/* Garis horizontal jika lebih dari 1 item di level */

.osim-level.multi-item::after {

    content: '';

    position: absolute;

    top: 0;

    left: calc(25% + 16px);

    right: calc(25% + 16px);

    height: 2px;

    background: #cbd5e1;

}

.osim-node {

    background: var(--white);

    border-radius: 16px;

    padding: 20px;

    text-align: center;

    min-width: 200px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.05);

    border: 2px solid #e2e8f0;

    position: relative;

    z-index: 2;

    transition: all 0.3s;

}

.osim-node:hover {

    border-color: #0f766e;

    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.15);

}

.osim-node.inti {

    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);

    color: white;

    border: none;

}

.osim-node.inti .osim-name { color: white; }

.osim-node.inti .osim-pos { color: #ccfbf1; }

.osim-avatar {

    width: 64px;

    height: 64px;

    border-radius: 50%;

    background: #e2e8f0;

    margin: 0 auto 12px;

    overflow: hidden;

    border: 3px solid white;

    box-shadow: 0 2px 8px rgba(0,0,0,0.1);

}

.osim-avatar img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

.osim-name {

    font-weight: 700;

    font-size: 15px;

    color: var(--charcoal);

    margin-bottom: 4px;

}

.osim-pos {

    font-size: 12px;

    color: var(--slate-light);

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}

/* Prestasi Siswa Gallery (Horizontal Scroll) */

.prestasi-wrapper {

    width: 100%;

    overflow-x: auto;

    padding: 20px 0 40px;

    /* Menyembunyikan scrollbar tapi tetap bisa di-scroll */

    scrollbar-width: none; 

    -ms-overflow-style: none;

}

.prestasi-wrapper::-webkit-scrollbar {

    display: none;

}

.prestasi-track {

    display: flex;

    gap: 24px;

    padding: 0 20px;

    width: max-content; /* Biar flex item tidak mengecil */

    margin: 0 auto;

}

.prestasi-card {

    width: 300px;

    background: var(--white);

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 4px 20px rgba(0,0,0,0.04);

    border: 1px solid rgba(0,0,0,0.03);

    flex-shrink: 0;

    transition: transform 0.3s;

}

.prestasi-card:hover {

    transform: translateY(-8px);

}

.prestasi-img {

    height: 200px;

    background: #e2e8f0;

    position: relative;

}

.prestasi-img img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

.prestasi-medal {

    position: absolute;

    bottom: -20px;

    right: 20px;

    width: 48px;

    height: 48px;

    background: #fbbf24; /* amber-400 */

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.4);

    border: 3px solid white;

}

.prestasi-info {

    padding: 32px 24px 24px;

}

.prestasi-year {

    font-size: 12px;

    font-weight: 700;

    color: var(--primary-green);

    margin-bottom: 8px;

    display: inline-block;

    background: #ecfdf5;

    padding: 8px 16px;

    border-radius: 12px;

}

.prestasi-title {

    font-size: 16px;

    font-weight: 800;

    color: var(--charcoal);

    line-height: 1.4;

    margin-bottom: 8px;

}

.prestasi-student {

    font-size: 14px;

    color: var(--slate);

    display: flex;

    align-items: center;

    gap: 6px;

}