/*
Theme Name: GedeBH 3 Column Theme
Theme URI: https://gedebh.com
Author: I Gede Budiharta,M.P.H
Version: 1.00
Text Domain: gedebh.com
*/

/* Reset box-sizing untuk semua elemen */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 0; /* sticky header */
    font-family: Arial, sans-serif;
}

/* Header sticky */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
}


/* Site info (blog name + description) */
.site-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-info h1 {
    margin-left: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.site-info p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

.site-title-link {
    text-decoration: none;  /* hilangkan underline */
    color: inherit;         /* agar warna sama dengan h1 */
}


.post-title a {
    color: #007bff;        /* Biru default */
    text-decoration: none;  /* hilangkan underline, opsional */
    transition: color 0.3s; /* smooth hover */
}

.post-title a:hover {
    color: #ff0000;        /* merah saat hover */
}


.hr-underline {
    border: 0;
    height: 2px;           /* tebal garis */
    background-color: #000000; /* biru */
    width: 100%;            /* panjang garis, bisa sesuaikan */
    margin: 15px 0 15px 0;   /* jarak atas-bawah */
}


/* Layout 3 kolom full width */
.row-full {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
}

.author a {
	background: url(images/author.png) no-repeat top left;
	padding-left: 50px;
	height: 30px;
	margin: 5px 40px 0 0;
	float: left;
	color: #2e98a5;
	font: 400 11px/22px "Georgia", Times New Roman, Times, serif;
}



.comment-number a {
	font: 400 11px/22px "Georgia", Times New Roman, Times, serif;
	background: url(images/comment.png) no-repeat top left;
	height: 30px;
	width: 57px;
	text-align: center;
	/* float: right; */
	margin: 5px 0 0 0;
	color: #2e98a5;
}

/* Kolom kiri */
.nav-left {
    background: #f8f9fa;
    padding: 15px;
    flex: 0 0 15%; /* tetap 15% lebar */
    min-width: 200px;
}

/* Kolom tengah */
.content-middle {
    flex: 1; /* sisa lebar otomatis */
    padding: 15px;
}

/* Kolom kanan */
.sidebar-right {
    flex: 0 0 15%; /* tetap 15% lebar */
    background: #f5f5f5;
    padding: 15px;
    min-width: 200px;
}

/* Reset list menu kiri */
.nav-left ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.nav-left ul li {
    padding: 5px 0;
}

.nav-left ul li ul {
    padding-left: 15px;
}

/* Footer */
.footer {
    background: #f1f1f1;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}


/* Menu navigasi header */
/* Container nav */
.header-nav {
    background-color: #ffffff; /* putih */
}

/* Jarak antar menu utama */
.header-nav .nav-item {
    margin-right: 3px;
}

/* Menu utama */
.header-nav .nav > li > a,
.header-nav .nav-item > a.nav-link {
    color: #000000; /* tulisan hitam */
    padding: 10px 15px;
    display: block;
    text-decoration: none;
}

/* Hover menu utama */
.header-nav .nav-item:hover > a.nav-link {
    background-color: #007bff; /* biru */
    color: #ffffff; /* putih */
}

/* Active / current menu */
.header-nav .nav-item.current-menu-item > a.nav-link {
    background-color: #007bff;
    color: #ffffff;
}

/* Dropdown menu */
.header-nav .dropdown-menu {
    background-color: #ffffff; /* putih */
    border: 1px solid #ddd;
    padding: 0;
    margin-top: 3px; /* jarak dropdown ke menu */
}

/* Jarak antar item dropdown */
.header-nav .dropdown-menu li {
    margin-bottom: 3px;
}

/* Item dropdown */
.header-nav .dropdown-menu li a {
    color: #000000;
    padding: 10px 15px;
    display: block;
}

/* Hover dropdown item */
.header-nav .dropdown-menu li:hover > a {
    background-color: #007bff;
    color: #ffffff;
}


/*end menu nav headre*/







/* Sembunyikan semua sub-menu awalnya */
.sidebar-menu ul {
    display: none;
    list-style: none;
    padding-left: 15px;
}

/* Parent menu pointer */
.sidebar-menu li.menu-item-has-children {
    position: relative; /* supaya ::after absolute mengacu ke li */
}

.sidebar-menu li.menu-item-has-children > a {
    cursor: pointer;
    display: block;
    padding-right: 25px; /* beri ruang untuk icon */
    text-decoration: none;
}

/* Tanda + sebelum dibuka */
.sidebar-menu li.menu-item-has-children > a::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
    font-weight: bold;
}

/* Saat terbuka, ubah tanda menjadi - */
.sidebar-menu li.menu-item-has-children.open > a::after {
    content: "-";
}

/*end nav menu*/

/* Styling CodeMirror Block di frontend */
.cm-block {
    background-color: #2d2d2d; /* latar gelap */
    color: #f8f8f2;           /* teks terang */
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;         /* scroll horizontal jika panjang */
    font-family: monospace;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Tambahkan highlight untuk keyword (opsional, sederhana) */
.cm-block code {
    display: block;
    white-space: pre;
}

/* Responsive */
@media (max-width: 768px) {
    .cm-block {
        font-size: 14px;
    }
}


.date-box {
    width: 60px;
    height: 68px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    font-family: "Georgia", "Times New Roman", serif;
    line-height: 1;
}

/* Bulan */
.date-month {
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 1px; /* jarak ke tanggal */
}

/* Tanggal */
.date-day {
    font-size: 22px;
    font-weight: 900;
    color: #2e98a5;
    line-height: 1.1;
    margin-bottom: 1px; /* jarak ke tahun */
}

/* Tahun */
.date-year {
    font-size: 10px;
    font-weight: 400;
    color: #2e98a5;
}





/* Responsive */
@media (max-width: 992px) {
    .row-full {
        flex-direction: column;
    }
    .nav-left, .content-middle, .sidebar-right {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .header-sticky .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-nav {
        width: 100%;
        margin-top: 0.5rem;
    }
}
