*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #992109;
    --secondary-color: #ff9900;
    --accent-color: #ff7700;
    --text-light: #fff;
    --text-dark: #000;
    --max-width: 1199px; 
    --header-height: 50px;
}

.bayang{
 box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.bayang2{
    box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
}

body {
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding-bottom: 100px;
    font-family: Arial, sans-serif,'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
	background-image:url("https://web.pn-situbondo.go.id/wp-content/uploads/img/back.jpg");
   
}

.wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1px; /* jika ingin ada padding dalam */
    box-sizing: border-box;
}


html {
    height: 100%;
}

.page-header .entry-title,
.page .entry-header .entry-title {
    text-align: center;
}

.page-title,
.entry-title {
    text-align: center;
    color: var(--primary-color);
    font-family: serif;
    padding: 20px;
}

/* ====================== */
/* HEADER STYLING        */
/* ====================== */
.custom-header-title {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1px;
}

.logo-img {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.logo-img img {
    width: 135px;
    height: 135px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-img div {
    flex: 1;
}

.logo-img h1, 
.logo-img h2, 
.logo-img h3 {
    margin: 0;
    padding: 0;
    line-height: 1.4;
    color: var(--primary-color);
}

.logo-img h1 {
    font-size: 2rem;
    font-weight: bold;
}

.logo-img h2 {
    font-size: 1.4rem;
    font-weight: bold;
}

.logo-img h3 {
    font-size: 1rem;
}

/* Navigation Menu */
.custom-header-menu {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box; 
    padding: 0; 
}
.custom-header-menu .slider-box-container {
    margin-top: 0;
    padding: 0;
    border: none;
    background-color: transparent;
}
.custom-header-menu nav {
    position: relative;
    z-index: 1000;
}
.custom-header-menu nav .menu {
    width: 100%;
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    background: linear-gradient(to right, #ff9800, #ff6b35, #d32f2f);
    justify-content: space-between;
    text-transform: capitalize;
    z-index: 1000;
}
.custom-header-menu nav .menu > li {
    position: relative;
    flex: 1;
    text-align: center;
}
.custom-header-menu nav .menu > li > a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.custom-header-menu nav .menu > li:last-child > a {
    border-right: none;
}
.custom-header-menu nav .menu > li > a:hover {
    background-color: #d32f2f;
    color: white;
}
/* Dropdown Menu */
.custom-header-menu nav .menu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(to right, #ff9800, #ff6b35, #d32f2f);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 1000;
    min-width: 200px;
    text-transform: capitalize;
}
.custom-header-menu nav .menu li:hover > ul {
    display: block;
}
.custom-header-menu nav .menu ul li {
    position: relative;
    margin: 0;
    padding: 0;
}
.custom-header-menu nav .menu ul li a {
    display: block;
    padding: 8px 15px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.custom-header-menu nav .menu ul li:last-child a {
    border-bottom: none;
}
.custom-header-menu nav .menu ul li a:hover {
    background-color: #b71c1c;
    color: white;
}
.custom-header-menu nav .menu ul ul {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin: 0;
}

/* Alternatif: Jika ingin background kuning solid */
.custom-header-menu nav .menu.yellow-bg {
    background-color: #ffeb3b;
}
.custom-header-menu nav .menu.yellow-bg > li > a {
    color: #333;
}
.custom-header-menu nav .menu.yellow-bg > li > a:hover {
    background-color: #f44336;
    color: white;
}

/* ====================== */
/* CAROUSEL/SLIDER       */
/* ====================== */
.carousel-item img, 
.carousel-inner img {
    height: 400px;
    object-fit: cover;
    width: 100%;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    max-width: 90%;
    bottom: 20px;
    position: absolute;
}

.carousel-caption h5 {
    color: var(--text-light);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.carousel-caption p {
    color: #ddd;
    font-size: 14px;
    margin-bottom: 5px;
}

.carousel-caption .btn {
    background-color: #f8b400;
    color: var(--text-light);
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: background-color 0.3s;
}

.carousel-caption .btn:hover {
    background-color: #d69900;
}

/* Custom Slider */
.custom-header {
    position: relative;
}

.header-slider {
    margin-top: 20px;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slider-slide {
    flex: 0 0 100%;
    position: relative;
    width: 100%;
    height: auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.slider-slide .image-right {
    position: absolute;
    width: 50%;
    right: 20px;
    top: 20px;
    max-width: 100%;
    height: 93%;
	box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.slider-slide .image-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}


.post-text {
    position: relative;
    width: 40%;
    height: auto;
    padding-bottom: 80px;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: whitesmoke;
    max-width: 100%;
    word-wrap: break-word;
    line-height: 1.4;
}

.post-excerpt {
    font-size: 1rem;
    margin-bottom: 15px;
    color: whitesmoke;
}

.slider-selengkapnya {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    position: content-container;
    bottom: 10px;
}

.slider-selengkapnya:hover {
    background-color: #0056b3;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 15;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.slider-dots .dot.active {
    background: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: scale(1.2);
}

/* ====================== */
/* CONTENT SECTION       */
/* ====================== */
.content-container {
    background-color: var(--text-light);
    margin: 10px auto;
    padding: 0;
    max-width: var(--max-width); /* Changed from 920px to var(--max-width) */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.custom-top {
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    max-width: 100%;
    height: 400px;
}    
.custom-slider {
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    max-width: 100%;
    height: 500px;
}

.custom-slider::after {
    content: '';
    background: linear-gradient(to right, #ff9800, #ff6b35, #d32f2f);
    height: 60px;
    width: 100%;
    position: absolute;
    bottom: 0;
    z-index: 1;
}

.custom-bot {
    background: linear-gradient(to right, #ff9800, #ff6b35, #d32f2f);
    position: relative;
    overflow: hidden;
    max-width: var(--max-width); 
    height: 50px;
    margin: 0 auto; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-box, 
.box-layanan, 
.box-transparansi, 
.box-sidang {
    padding: 20px;
    margin: 0 auto;
    max-width: var(--max-width);
    text-align: center;
}

.top-box {
    background: linear-gradient(to right, #ff9800, #ff6b35, #d32f2f);
}

.box-layanan {
    background-color: var(--primary-color);
}

.box-transparansi {
    background-color: var(--secondary-color);
}

.box-sidang {
    background-color: #008000;
}

.layanan-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.layanan-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    text-align: center;
}

.gambar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.gambar:hover {
    transform: scale(1.1);
}

.layanan-nama {
    color: white;
    font-size: 14px;
    margin-top: 5px;
    font-weight: bold;
}

.content-sidebar-wrapper {
    display: flex;
    gap: 5px;
    padding: 2px;
}

#primary {
    flex: 1;
}
/* ====================== */
/* ----------------- SIDE BAR ------------------- */

#right-sidebar {
    width: 450px;
}

/* ====================== */
/* TYPOGRAPHY            */
/* ====================== */
.top-box h3 {
    font-size: 1.4em;
    color: white;
    text-align: left;
}

.box-layanan h4,
.box-transparansi h4,
.box-sidang h4 {
    display: block;
    font-size: 1.8em;
    text-align: center;
    margin: 0 auto; 
    margin-left: 150px;
    font-weight: bold;
    width: 50ch;
    animation: typing 2s steps(22), blink .5s step-end infinite alternate;
    white-space: nowrap;
    overflow: hidden;
    font-family: monospace;
}

.box-layanan h4 {
    color: whitesmoke;
    text-shadow: 2px 2px black;
}

.box-transparansi h4,
.box-sidang h4 {
    color: black;
    text-shadow: 2px 2px white;
}

@keyframes typing {
    from {
        width: 0
    }
}

@keyframes blink {
    50% {
        border-color: transparent
    }
}

/* ====================== */
/* FOOTER                */
/* ====================== */


.footer {
    background-color: var(--primary-color);
    padding: 40px 0 20px 0;
    width: var(--max-width);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    position: absolute; /* Changed from absolute to relative */
    bottom: auto; /* Remove bottom positioning */
    left: auto; /* Remove left positioning */
    transform: none; /* Remove transform */
    margin-top: 50px; /* Add margin to separate from content */
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column {
    color: white;
}

.footer-column h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

/* Maps Column */
.footer-maps iframe {
    width: 100%;
    height: 150px;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
}

.footer-maps p {
    margin: 10px 0 0 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Links Column */
.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Social Media Column */
.footer-social {
    display: flex;
    flex-direction: column;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}


/* Copyright Section */
.site-info {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
    background-color: var(--primary-color);
}

.copyright {
    margin-bottom: 15px;
    font-family: Arial, sans-serif;
    color: white;
    font-size: 14px;
}

.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-nav li {
    margin: 0 15px 5px 15px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
}

.footer-nav a:hover {
    color: white;
    text-decoration: underline;
}

@media screen and (max-width: 480px) {
    .footer {
        width: 100%;
        padding: 25px 10px 10px 10px;
        margin-top: 20px;
    }

    .footer-content {
        padding: 0 5px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer-column h3 {
        font-size: 15px;
    }

    .footer-links a,
    .footer-maps p,
    .copyright,
    .footer-nav a {
        font-size: 12px;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 8px;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 14px;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
    }

    .footer-nav li {
        margin: 4px 0;
    }

    .footer-maps iframe {
        height: 120px;
    }
}


/* Responsive Design */
@media screen and (max-width: 768px) {
    .footer {
        width: 100%;
        padding: 30px 15px 15px 15px;
        margin-top: 30px;
    }

    .footer-content {
        padding: 0 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Satu kolom untuk layar kecil */
        gap: 20px;
    }

    .footer-column h3 {
        font-size: 16px;
    }

    .footer-links a,
    .footer-maps p,
    .copyright,
    .footer-nav a {
        font-size: 13px;
    }

    .social-links {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 16px;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
    }

    .footer-nav li {
        margin: 5px 0;
    }
}


/* ====================== */
/* RESPONSIVE DESIGN     */
/* ====================== */
/* Tablet (768px and below) */
@media screen and (max-width: 768px) {
    /* Responsive Typography */
    .logo-img h1 {
        font-size: 1.6rem;
    }
    
    .logo-img h2 {
        font-size: 1.2rem;
    }
    
    .logo-img h3 {
        font-size: 0.9rem;
    }

    .custom-header-menu {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1002;
        max-height: 100vh;
        overflow-y: auto;
    }

    .custom-header-menu nav .menu {
        flex-direction: column;
        width: 100%;
        top: var(--header-height);
    }

    .custom-header-menu nav .menu > li {
        width: 100%;
        position: relative;
    }

    .custom-header-menu nav .menu > li > a {
        padding: 12px 15px;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .custom-header-menu nav .menu > li.has-dropdown > a::after {
        content: '▼';
        margin-left: 5px;
        font-size: 12px;
    }

    .custom-header-menu nav .menu ul {
        position: relative;
        width: 100%;
        top: 0;
        left: 0;
        box-shadow: none;
        background-color: var(--primary-color);
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .custom-header-menu nav .menu li:hover > ul {
        opacity: 1;
    }

    .custom-header-menu nav .menu ul ul {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        background-color: #7a1907;
    }

    .custom-header-menu nav .menu ul li a {
        padding-left: 30px;
    }

    .custom-header-menu nav .menu ul ul li a {
        padding-left: 45px;
    }

    .header-slider {
        margin-top: 60px;
    }

    .content-sidebar-wrapper {
        flex-direction: column;
    }

    #right-sidebar {
        width: 100%;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
    }

    .footer-nav li {
        margin: 5px 0;
    }

    .custom-slider {
        height: auto;
    }

    .slider-slide {
        flex-direction: column;
    }

    .slider-slide .image-right {
        position: relative;
        width: 100%;
        right: auto;
        top: auto;
        margin-top: 20px;
    }

    .post-text {
        width: 100%;
    }

    .box-layanan h4,
    .box-transparansi h4,
    .box-sidang h4 {
        font-size: 1.3rem;
        width: 70vw;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    /* Improved Typography for Mobile */
    .logo-img h1 {
        font-size: 0.8rem;
        color: var(--primary-color);
        text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    }
    
    .logo-img h2 {
        font-size: 0.8rem;
        color: var(--primary-color);
    }
    
    .logo-img h3 {
        font-size: 0.8rem;
        color: var(--primary-color);
    }

    /* Menu & Navigation - Updated with Better Colors */
    .custom-header-menu {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 480px; 
        height: auto;
        background: #ff7700; /* Updated color */
        margin: 0 auto;
        z-index: 1000;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
        overflow: hidden;
    }

    /* Improved Toggle Button */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        background: linear-gradient(135deg, #ff9900, #ff6600); /* Gradient background */
        padding: 12px 15px;
        color: white;
        font-size: 18px;
        font-weight: bold;
        border: none;
        width: 100%;
        height: 60px; /* Reduced from 100px */
        text-align: center;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    /* Icon before text */
    .menu-toggle::before {
        margin-right: 8px;
        font-size: 22px;
    }

    /* Toggle hover state */
    .menu-toggle:hover {
        background: linear-gradient(135deg, #ff8800, #ff5500);
    }

    /* Color when toggle is in close state */
    .menu-toggle.close {
        background: linear-gradient(135deg, #d32f2f, #b71c1c); /* Darker red gradient */
    }

    /* Close icon */
    .menu-toggle.close::before {
    }

    /* Menu and submenu with improved colors */
    .custom-header-menu nav .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #8B0000; /* Dark red */
        padding: 5px;
        list-style: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
        opacity: 0;
        border-radius: 0 0 5px 5px;
    }

    /* Active menu state */
    .custom-header-menu nav .menu.active {
        display: flex;
        max-height: 500px;
        opacity: 1;
        overflow-y: auto;
        padding: 10px;
    }

    /* Menu items with better styling */
    .custom-header-menu nav .menu > li > a {
        color: white;
        font-weight: 500;
        padding: 12px 15px;
        display: block;
        border-radius: 4px;
        margin-bottom: 2px;
        background-color: rgba(255, 255, 255, 0.1);
        transition: all 0.2s ease;
    }

    .custom-header-menu nav .menu > li > a:hover {
        background-color: var(--accent-color);
        color: white;
        transform: translateX(3px);
    }

    /* Submenu styling */
    .custom-header-menu nav .menu ul {
        list-style: none;
        padding: 0;
        margin: 0 0 0 10px;
        background-color: rgba(0, 0, 0, 0.2);
        border-left: 2px solid var(--accent-color);
    }

    .custom-header-menu nav .menu ul li {
        padding: 0;
        background: transparent;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .custom-header-menu nav .menu ul li:last-child {
        border-bottom: none;
    }

    .custom-header-menu nav .menu ul li a {
        padding: 10px 15px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 13px;
    }

    /* Close button always on top */
    .menu-toggle.close {
        position: relative;
        z-index: 1001;
    }

    /* Slider/Content */
    @media (max-width: 480px) {
    .content-container {
        background-color: var(--text-light);
        margin: 10px auto;
        padding: 0;
        max-width: 100%;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    }

    .custom-top {
        background-color: var(--primary-color);
        position: relative;
        overflow: hidden;
        max-width: 100%;
        height: 250px;
    }    

    .custom-slider {
        background-color: var(--primary-color);
        position: relative;
        overflow: hidden;
        max-width: 100%;
        height: 450px;
    }

    .custom-slider::after {
        content: '';
        background: linear-gradient(to right, #ff9800, #ff6b35, #d32f2f);
        height: 40px;
        width: 100%;
        position: absolute;
        bottom: 0;
        z-index: 1;
    }

    /* Slider Mobile Layout */
    .slider-slide {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
        align-items: center;
        justify-content: flex-start;
    }
    
    .slider-slide .image-right {
        flex: none;
        width: 70%;
        height: 160px;
        order: -1;
        margin: 0 auto 15px auto;
        align-self: center;
    }
    
    .post-text {
        flex: none;
        width: 100%;
        padding-right: 0;
        text-align: center;
        padding-bottom: 10px;
    }
    
    .post-title {
        font-size: 1.2rem;
        margin-bottom: 5px;
        line-height: 1.3;
    }
    
    .post-excerpt {
        font-size: 0.9rem;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .slider-selengkapnya {
        padding: 8px 8px;
        font-size: 0.8rem;
        margin-top: 5px;
    }
    
    .slider-dots {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        z-index: 15;
    }
    
    .slider-dots .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.7);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .slider-dots .dot.active {
        background: #ffffff;
        transform: scale(1.2);
    }
}

    .top-box h3 {
        font-size: 1rem;
        text-align: left;
    }
    /* Heading style adjustments for mobile */
    .box-layanan h4,
    .box-transparansi h4,
    .box-sidang h4 {
        font-size: 1.2rem;
        width: 95%;
        max-width: 280px;
        margin: 0 auto;
        padding: 5px;
    }

    /* Submenu animation */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .custom-header-menu nav .menu li.show > ul {
        display: block;
        animation: fadeIn 0.3s ease-in-out;
    }
}
.slogan-box {
    padding: 20px 30px;
    background-color: transparent;
}

.page-slogan {
    display: flex;
    font-size: 24px;
    font-weight: bold;
    color: #872021;
    position: relative;
    align-items: center; /* agar teks sejajar dengan garis vertikal */
}

.page-slogan::before {
    content: "";
    width: 5px;
    height: 50px; /* sesuaikan tinggi garis */
    background-color: #A72A2A;
    border-radius: 2px;
    margin-right: 15px; /* jarak dari teks */
}

.page-slogan p {
    margin: 0;
    line-height: 1.2;
    position: relative;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.underline {
    position: relative;
    display: inline-block;
}

.underline::after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #555, transparent);
    position: absolute;
    bottom: -5px;
    left: 0;
    border-radius: 10px;
    transform: rotate(-5deg);
}
.custom-kategori-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}


.kategori-blok {
    flex: 0 0 48%;
    background: #fff;
    padding: 15px;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

.kategori-judul {
    font-size: 12px;
    border-bottom: 1px dotted #ccc;
    margin-bottom: 10px;
    color: #872021;
}

.kategori-judul a {
    text-decoration: none;
    color: #872021;
}

.kategori-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kategori-list li {
    margin-bottom: 5px;
}

.kategori-list a {
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.kategori-list small {
    color: #777;
    font-size: 11px;
}
ul.rss-mari,
ul.rss-badilum {
    list-style: none;
    padding: 0;
}

ul.rss-mari li,
ul.rss-badilum li {
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px dotted #ccc;
}

/* ==== Sibolu News Widget Styling ==== */
.sibolu-widget-list {
    color: var(--primary-color);
    list-style: none;
    padding: 0;
    margin: 0;
}

.sibolu-widget-item {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.sibolu-widget-content {
    display: flex;
    flex-direction: column;
}

.sibolu-widget-link {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 5px;
}

.sibolu-widget-link-more {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 5px;
}

.sibolu-widget-link:hover {
    color: #0073aa;
}

.sibolu-readmore {
    font-size: 14px;
    color: #0073aa;
    text-decoration: none;
    margin-top: 3px;
}

.sibolu-readmore:hover {
    text-decoration: none;
}

.sibolu-widget-date {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

@media (max-width: 600px) {
    .sibolu-widget-link {
        font-size: 15px;
    }

    .sibolu-readmore {
        font-size: 13px;
    }
}
/* ====================== */
/* CATEGORY PAGE STYLING  */
/* ====================== */

.kategori-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0; /* Hapus padding */
    box-sizing: border-box;
}

.kategori-container {
    max-width: var(--max-width);
    margin: 20px auto;
    padding: 0; /* Hapus padding dari container */
    box-sizing: border-box;
    border: 1px solid #eee;
    box-shadow: 5px 5px #88888820;
    border-radius: 8px; /* Tambahkan border radius jika diperlukan */
    overflow: hidden; /* Pastikan judul tidak keluar dari container */
}

.kategori-title {
    font-size: 2rem;
    background: linear-gradient(to right, #ff9800, #ff6b35, #d32f2f);
    text-align: center;
    text-transform: capitalize;
    color: white;
    padding: 15px 0;
    margin: 0; /* Hapus semua margin */
    border-bottom: 1px solid #ddd; /* Tambahkan garis pemisah */
}

.kategori-content {
    padding: 10px; /* Pindahkan padding ke content area */
    flex: 1;
}

.kategori-content {
    flex: 3;
}

.kategori-post {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.kategori-thumb img {
    width: 180px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.kategori-isi {
    flex: 1;
}

.kategori-judul {
    font-size: 22px;
    margin: 0 0 10px;
}

.kategori-judul a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.kategori-judul a:hover {
    color: var(--accent-color);
}

.kategori-excerpt {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.readmore-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.readmore-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ====================== */
/* SIDEBAR                */
/* ====================== */

.kategori-sidebar .widget {
    margin-bottom: 10px;
    background: white;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.kategori-sidebar .widget-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.kategori-sidebar .widget ul {
    list-style: none;
    padding: 0;
}

.kategori-sidebar .widget ul li {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dotted #ccc;
}

.kategori-sidebar .widget ul li:last-child {
    border-bottom: none;
}

.kategori-sidebar .widget ul li a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kategori-sidebar .widget ul li a:hover {
    color: var(--primary-color);
}

/* Search Form */
.widget_search input[type="search"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1px;
}

.widget_search input[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.widget_search input[type="submit"]:hover {
    background-color: var(--accent-color);
}

/* ====================== */
/* PAGINATION             */
/* ====================== */

.kategori-pagination {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.kategori-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.kategori-pagination .nav-links a,
.kategori-pagination .nav-links span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.kategori-pagination .nav-links a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.kategori-pagination .nav-links .current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ====================== */
/* RESPONSIVE DESIGN      */
/* ====================== */

@media screen and (max-width: 768px) {
    .kategori-title {
        font-size: 1.6rem;
        padding: 10px 0;
    }

    .kategori-container {
        flex-direction: column;
        padding: 20px 10px;
    }

    .kategori-post {
        flex-direction: column;
        text-align: center;
    }

    .kategori-thumb {
        align-self: center;
    }

    .kategori-thumb img {
        width: 100%;
        max-width: 300px;
    }

    .readmore-btn {
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .kategori-title {
        font-size: 1.3rem;
        padding: 8px 0;
    }

    .readmore-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .kategori-pagination .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    }

}
/* Metode 1: Menggunakan Flexbox (Recommended) */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Pastikan wrapper utama mengambil ruang yang tersisa */
.site-wrapper {
    flex: 1;
}

/* Footer akan otomatis berada di bawah */
.site-footer {
    margin-top: auto;
}

.site-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px; /* Sesuaikan dengan tinggi footer yang diinginkan */
}
*/

/* Styling khusus untuk konten kategori */
.kategori-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kategori-content {
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-wrapper {
        flex: 1;
    }
    
    .kategori-container {
        min-height: auto;
    }
}


.single-header {
    padding: 2rem;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.single-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.single-meta {
    display: flex;
    justify-content: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
}

.single-date {
    font-weight: 500;
}

.single-featured-image {
    margin-bottom: 0;
    max-height: 400px;
    overflow: hidden;
}

.single-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-content {
    padding: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.single-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.single-content p:first-child {
    font-size: 1.15rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 2rem;
}

.single-content h2,
.single-content h3,
.single-content h4,
.single-content h5,
.single-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #B22222;
    font-weight: 600;
}

.single-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #B22222;
    padding-bottom: 0.5rem;
}

.single-content h3 {
    font-size: 1.5rem;
}

.single-content h4 {
    font-size: 1.3rem;
}

.single-content ul,
.single-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.single-content li {
    margin-bottom: 0.5rem;
}

.single-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 4px solid #B22222;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.single-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.single-footer {
    padding: 1.5rem 2rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.tags-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-label {
    font-weight: 600;
    color: #B22222;
    margin-right: 0.5rem;
}

.tag-link {
    background: #B22222;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tag-link:hover {
    background: #8B0000;
    transform: translateY(-1px);
}

/* Post Navigation */
.post-navigation {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
    max-width: 45%;
}

.nav-next {
    text-align: right;
}

.nav-links .readmore-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #B22222;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    word-break: break-word;
}

.nav-links .readmore-btn:hover {
    background: #8B0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(178, 34, 34, 0.3);
}

/* Page Links */
.page-links {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.page-links a {
    display: inline-block;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem;
    background: #B22222;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background: #8B0000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .single-title {
        font-size: 1.8rem;
    }
    
    .single-header,
    .single-content,
    .single-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .single-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .nav-previous,
    .nav-next {
        max-width: 100%;
    }
    
    .single-content {
        font-size: 1rem;
    }
    
    .related-posts {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .single-title {
        font-size: 1.5rem;
    }
    
    .single-content h2 {
        font-size: 1.5rem;
    }
    
    .single-content h3 {
        font-size: 1.3rem;
    }
    
    .single-header {
        padding: 1.5rem 1rem;
    }
}

