/*
=====================================================
KAGEM 2.0 — Restrukturisasi Total & Mobile Fix
===================================================== */
:root {
    --color-kopi-tua: #3B2A22;     /* Ditegaskan biar makin jelas dibaca */
    --color-tembaga: #CA7842;
    --color-hijau-pucat: #A5C28F;
    --color-bg-utama: #E4E2A5;    /* WARNA BG BARU: Krem Warm (Gak Silau!) */
    --color-hijau-gelap: #202D06;
    --shadow-light: 0 8px 24px rgba(59, 42, 34, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background-color: var(--color-bg-utama);
    color: var(--color-kopi-tua);
    padding: 30px 20px;
    margin: 0 auto;
    max-width: 1150px; /* Menjaga batas lebar di layar Desktop besar */
}

/* --- HEADER LOGO & JUDUL --- */
.page-header {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 30px auto;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(75, 53, 42, 0.15);
}

.logo-container { 
    margin-bottom: 15px; 
} 

.logo-container img { 
    width: 180px; 
    height: auto; 
}

.page-header h1 {
    font-size: 2.8em;
    margin: 0;
    color: var(--color-tembaga);
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.page-header p {
    font-size: 1.2em;
    margin-top: 5px;
    color: var(--color-kopi-tua);
}

.page-header .tagline {
    font-size: 1.1em;
    margin-top: 10px;
    font-style: italic;
    color: var(--color-hijau-gelap);
    font-weight: bold;
}

/* --- NAVIGASI --- */
.site-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.site-nav a {
    color: var(--color-kopi-tua);
    text-decoration: none;
    font-weight: bold;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--color-tembaga);
    border-bottom-color: var(--color-tembaga);
}

/* --- TATA LETAK UTAMA GRID (DESKTOP) --- */ 
.conversion-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 2 Kartu Sejajar 50:50 */
    gap: 30px !important;
    max-width: 1100px !important;
    margin: 0 auto 40px auto !important;
    align-items: stretch !important;
}

.aboge-display-card,
.calendar-conversion-area {
    background-color: #ffffff !important;
    border-radius: 15px !important;
    box-shadow: var(--shadow-light) !important;
    padding: 35px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.header-tanggal {
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-hijau-pucat);
    padding-bottom: 10px;
}

.header-tanggal h1 {
    font-size: 1.8em;
    color: var(--color-kopi-tua);
    margin: 5px 0 0 0;
}

.tanggal-judul {
    font-size: 0.85em;
    color: var(--color-tembaga);
    font-weight: bold;
    letter-spacing: 1px;
}

/* FIX SIMETRIS: WETON BOX & TOMBOL CARI */
.weton-box {
    background: var(--color-hijau-gelap) !important;
    color: #fff !important;
    padding: 16px 20px !important;
    border-radius: 12px !important;
    margin: 15px 0 20px 0 !important;
    text-align: center !important;
    width: 100% !important;
    box-shadow: 0 4px 14px rgba(32, 45, 6, 0.18) !important;
    border-left: none !important;
}

.weton-label-weton {
    display: block !important;
    color: var(--color-hijau-pucat) !important;
    font-size: 0.8em !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    margin-bottom: 4px !important;
}

.weton-nama {
    color: #fff !important;
    font-size: 1.8em !important;
    font-weight: bold !important;
    margin: 0 !important;
}

.search-box-group {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
    align-items: center !important;
}

.search-box-group input[type="date"] {
    flex: 1 !important;
    padding: 10px 14px !important;
    border: 2px solid var(--color-hijau-pucat) !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-size: 0.95em !important;
    color: var(--color-kopi-tua) !important;
    outline: none !important;
    margin: 0 !important;
}

.search-box-group input[type="date"]:focus {
    border-color: var(--color-tembaga) !important;
}

.btn-cari {
    background-color: var(--color-tembaga) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 11px 22px !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-weight: bold !important;
    font-size: 0.9em !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    box-shadow: 0 3px 8px rgba(202, 120, 66, 0.25) !important;
}

.btn-cari:hover {
    background-color: var(--color-kopi-tua) !important;
    transform: translateY(-1px);
}

.detail-container { 
    margin-top: 15px; 
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--color-hijau-pucat);
}

.detail-item:last-child { 
    border-bottom: none; 
}

.detail-item .label { 
    font-weight: normal; 
    color: #666; 
}

.detail-item .value { 
    font-weight: bold; 
    color: var(--color-hijau-gelap); 
}

/* --- FORM PENCARIAN & TOMBOL CEPAT --- */
.calendar-conversion-area label {
    font-weight: bold;
    color: var(--color-kopi-tua);
    display: block;
    margin-bottom: 10px; 
}

.quick-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-quick {
    background-color: #fff;
    border: 1px solid var(--color-tembaga);
    color: var(--color-tembaga);
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.2s ease;
}

.btn-quick:hover {
    background-color: var(--color-tembaga);
    color: #fff;
}

/* --- KOTAK INFO FULL WIDTH --- */
.info-box-full-width {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    padding: 30px;
    text-align: left; 
    font-size: 0.95em;
    max-width: 1100px;
    margin: 0 auto 30px auto;
}

.info-box-full-width h2 {
    font-size: 1.3em;
    color: var(--color-tembaga);
    border-bottom: 2px solid var(--color-hijau-pucat);
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 20px;
}

/* --- KALENDER GRID BULANAN (DESKTOP) --- */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.calendar-nav-title {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--color-kopi-tua);
}

.btn-nav {
    color: var(--color-tembaga);
    text-decoration: none;
    font-weight: bold; 
    padding: 8px 16px;
    border: 1px solid var(--color-tembaga);
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-nav:hover {
    background-color: var(--color-tembaga);
    color: #fff;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.weekday-header {
    text-align: center;
    font-weight: bold;
    color: var(--color-tembaga);
    padding: 8px 0;
    font-size: 0.9em;
}

.day-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    border: 1px solid var(--color-hijau-pucat);
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-kopi-tua);
    transition: all 0.2s;
}

.day-cell:hover {
    background-color: var(--color-krem);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.day-cell-empty {
    border: none;
    background: transparent;
}

.day-cell-today {
    background-color: var(--color-hijau-gelap);
    border-color: var(--color-hijau-gelap); 
}

.day-cell-today .day-num,
.day-cell-today .day-pasaran {
    color: #fff;
}

.day-num {
    font-size: 1.15em;
    font-weight: bold;
}

.day-pasaran {
    font-size: 0.7em;
    color: var(--color-tembaga);
    margin-top: 2px;
}

.day-cell-today .day-pasaran {
    color: var(--color-krem);
}

/* --- TABEL NEPTU --- */
.neptu-table {
    width: 100%;
    max-width: 650px;
    margin: 20px auto;
    border-collapse: collapse;
    font-size: 0.95em;
}

.neptu-table th, .neptu-table td {
    border: 1px solid var(--color-hijau-pucat);
    padding: 10px;
    text-align: center;
}

.neptu-table th {
    background-color: var(--color-hijau-pucat);
    color: var(--color-kopi-tua);
    font-weight: bold;
}

.neptu-example {
    text-align: center;
    font-style: italic;
    font-size: 0.9em;
    color: var(--color-tembaga);
    margin-top: 10px;
}

/* --- FOOTER --- */ 
.site-footer {
    text-align: center;
    padding: 25px 0;
    color: var(--color-kopi-tua);
    font-size: 0.85em;
}

/* =====================================================
   RESPONSIVE UNTUK SMARTPHONE (LAYAR KECIL)
   ===================================================== */
@media (max-width: 768px) {
    body { 
        padding: 15px; 
    }
    
    .conversion-row { 
        grid-template-columns: 1fr !important; /* Menjadi 1 kolom tumpuk di HP */
        gap: 20px !important;
    }
    
    .aboge-display-card,
    .calendar-conversion-area {
        padding: 25px 20px !important;
    }

    .month-grid {
        gap: 4px;
    }

    .day-cell { 
        min-height: 55px;
        border-radius: 6px; 
    }
    
    .day-num { 
        font-size: 0.95em; 
    }
    
    .day-pasaran { 
        font-size: 0.6em; 
    }
    
    .site-nav { 
        gap: 15px; 
        font-size: 0.9em;
    }
}
/* ========================================== */
/* STYLES LMS & MEDIUM SECTION KAGEM 2.0      */
/* ========================================== */

/* Grid Layout */
.lms-grid, .medium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

/* Card Style LMS */
.lms-card {
    background: #ffffff;
    border: 1px solid #e0d8c3;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.lms-badge {
    background: #7c8e63;
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}
.badge-kuis { background: #c47643; }

.lms-formula {
    background: #f5f2eb;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Kuis Options */
.kuis-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.kuis-options button {
    background: #faf8f5;
    border: 1px solid #7c8e63;
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.kuis-options button:hover { background: #eef2e6; }
.kuis-options button.selected-right { background: #d4edda; border-color: #28a745; color: #155724; font-weight: bold; }
.kuis-options button.selected-wrong { background: #f8d7da; border-color: #dc3545; color: #721c24; }

.kuis-feedback {
    margin-top: 10px;
    font-size: 0.88rem;
}

/* Medium Style Card */
.medium-card {
    background: #ffffff;
    border-left: 4px solid #c47643;
    padding: 18px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.medium-meta {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 6px;
}

.medium-card h3 {
    font-size: 1.1rem;
    margin: 4px 0 8px 0;
    color: #2c3e50;
}

.medium-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.read-more {
    display: inline-block;
    margin-top: 8px;
    color: #c47643;
    font-weight: bold;
    font-size: 0.85rem;
    text-decoration: none;
}
.read-more:hover { text-decoration: underline; }