/* =========================================
   TEMA 2 (JADWAL DI KIRI) - Al Hilal Labs
   ========================================= */

body.theme-2 .content {
    display: grid !important;
    grid-template-columns: 30vw 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 2vw;
    row-gap: 3vh !important; /* Diperbesar dari 2vh agar jarak ke header lebih presisi */
    padding: 2vh 2vw 11vh 2vw !important; /* Diubah dari 9.5vh menjadi 11vh agar aman dari Running Text */
    height: 100vh;
    box-sizing: border-box;
    overflow: hidden !important; /* Mencegah konten meluap secara keseluruhan */
}

body.theme-2 .top-bar-modern {
    grid-column: 1 / 3;
    grid-row: 1;
    margin: 0 !important;
    width: 100% !important;
}

body.theme-2 .prayer-grid {
    grid-column: 1;
    grid-row: 2;
    flex-direction: column !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important; /* Memastikan tidak melebihi grid */
    justify-content: space-between !important;
    border-radius: 15px !important;
    overflow: hidden !important; /* Menahan agar tidak menabrak ke bawah */
}

body.theme-2 #slideshow-container {
    grid-column: 2;
    grid-row: 2;
    height: 100% !important;
    max-height: 100% !important; /* Memastikan tidak melebihi grid */
    min-height: 0 !important;
    width: 100% !important;
    overflow: hidden !important; /* Menahan agar tidak menabrak ke bawah */
    margin: 0 !important; /* DITAMBAHKAN: Mereset margin bawaan agar sejajar presisi dengan jadwal shalat */
}

body.theme-2 .tv-slide {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    box-sizing: border-box !important;
}

/* TAMBAHAN: body.theme-2 #slide-4 > div disisipkan di sini agar slide Petugas Jumat seragam */
body.theme-2 #slide-2 > div,
body.theme-2 #slide-3 > div,
body.theme-2 #slide-4 > div {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important; /* Mencegah kotak info membesar keluar batas */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Menjaga teks di dalam tidak tumpah */
}

body.theme-2 .clock-container {
    height: 100% !important;
}

body.theme-2 .prayer-card {
    border-right: none !important;
    border-bottom: 2px solid #d97706;
    padding: 0 1.5vw !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

body.theme-2 .prayer-card:last-child {
    border-bottom: none !important;
}

body.theme-2 .active-prayer {
    border-right: none !important;
    border-bottom: 2px solid #ea580c !important;
    background: #ea580c !important;
}

body.theme-2 .prayer-card:last-child.active-prayer {
    border-bottom: none !important;
}

body.theme-2 .prayer-card h4 {
    font-size: clamp(1rem, 1.5vw, 1.8rem) !important;
    margin: 0 !important;
    text-align: left;
    flex: 1;
}

body.theme-2 .prayer-card p {
    font-size: clamp(1.5rem, 2.5vw, 2.8rem) !important;
    margin: 0 !important;
}

body.theme-2 .countdown {
    font-size: clamp(1rem, 1.2vw, 1.5rem) !important;
    margin: 0 0 0 1vw !important;
}

body.theme-2 #digital-clock {
    font-size: clamp(6rem, 14vw, 16rem) !important;
}