/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --bg-color: #3f555e;
    --text-color: #222222;
    --link-color: #444444;
    --link-hover: #666666;
    --header-bg: #ffffff;
    --font-primary: 'Work Sans', Arial, Helvetica, sans-serif;
    --font-heading: 'Impact', sans-serif;
    --container-width: 1215px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 1px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

a:hover {
    color: var(--link-hover);
}

img {
    max-width: 100%;
    height: auto;
    border: none;
}

p {
    line-height: 160%;
    margin: 10px 0;
}

.clear {
    clear: both;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
    background-color: #ffffff; /* FIXED: Container uses white background */
}

/* ==========================================================================
   Header
   ========================================================================== */
#header {
    background: var(--header-bg);
    padding: 10px 0 0;
    width: 100%;
    z-index: 9999;
}

#header .container {
    background-color: transparent; /* Header container blends with full-width white header */
}

.header_top {
    padding-bottom: 10px;
}

.header_social {
    float: left;
    padding-top: 10px;
}

.header_social img {
    display: inline-block;
    margin: 0 2px;
}

.header_search {
    float: right;
    width: 190px;
    position: relative;
    margin-left: 15px;
    margin-top: 3px;
}

.header_search input[type="text"] {
    height: 30px;
    width: 100%;
    border: 2px solid #F5F5F5;
    border-radius: 8px;
    padding-left: 10px;
    font-family: var(--font-primary);
}

.header_search_icon {
    position: absolute;
    top: 8px;
    right: 8px;
}

.header_bottom {
    padding: 15px 0 28px;
}

.full_logo_cont {
    text-align: center;
    margin-bottom: 30px;
}
.full_logo_cont img {
    width: 70px; /* Ganti angkanya untuk mengatur kecilnya logo */
    height: auto; /* Wajib ada supaya logonya tidak gepeng */
}
.header_menu {
    text-align: center;
    border-bottom: 1px solid #eee;
    position: relative;
}

.header_menu ul.menu {
    list-style: none;
    background-color: var(--header-bg);
}

.header_menu > ul.menu > li {
    display: inline-block;
    margin-right: 5px;
    font-size: 15px;
    position: relative;
    letter-spacing: 1.5px;
}

.header_menu > ul.menu > li:last-child {
    margin-right: 0;
}

.header_menu > ul.menu > li > a {
    color: #000;
    display: block;
    padding: 15px;
    text-transform: uppercase;
}

.header_menu ul li.current-menu-item > a {
    font-weight: bold;
}

/* Dropdown */
.header_menu ul li ul.sub-menu {
    position: absolute;
    top: 49px;
    left: 0;
    z-index: 100;
    display: none;
    background-color: #fff;
    border-top: 1px solid #f3f3f3;
    text-align: left;
    min-width: 180px;
}

.header_menu ul li.menu-item-has-children:hover > ul.sub-menu {
    display: block;
}

.header_menu ul li ul.sub-menu li {
    display: block;
    width: 100%;
    border-top: 1px solid #f3f3f3;
}

.header_menu ul li ul.sub-menu li a {
    padding: 8px 10px;
    display: block;
    color: #000;
    text-transform: capitalize;
}

.header_menu ul li ul.sub-menu li a:hover {
    text-decoration: underline;
}

/* Mobile Menu (Slicknav) Hidden by default on desktop */
.slicknav_menu {
    display: none;
    background: #4c4c4c;
    padding: 5px;
}

.slicknav_btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: block;
    float: right;
    margin-top: 5px;
    margin-bottom: 5px;
}

.slicknav_icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin-bottom: 4px;
}

.slicknav_nav {
    list-style: none;
    clear: both;
    background: #4c4c4c;
}

.slicknav_nav li a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    border-bottom: 1px solid #666;
}

.slicknav_nav li ul.sub-menu {
    padding-left: 20px;
    background: #555;
}

/* ==========================================================================
   Content & Layout
   ========================================================================== */
#content {
    padding-top: 25px;
    padding-bottom: 40px;
    /* FIXED: Removed background: #fff; to allow body color to show */
}

#content .container {
    padding: 30px; /* FIXED: Added padding inside the white container */
}

.single_inside_content {
    color: var(--text-color);
}

.alignnone {
    margin: 5px 20px 20px 0;
    display: inline-block;
}

/* ==========================================================================
   Interactive Draggable Spinner (Replaces MasterSlider)
   ========================================================================== */
.slider-container {
    background: transparent;
    position: relative;
    width: 100%;
    height: 150px; /* Adjusted height for just the spinner */
    overflow: hidden;
}

.drag-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    cursor: grab;
    z-index: 20;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.drag-wrapper:active {
    cursor: grabbing;
}

.spinning-icon {
    width: 100%;
    height: 100%;
    border: 3px dashed rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    animation: continuous-spin 2s linear infinite;
    pointer-events: none; /* Let the wrapper handle drag events */
}

@keyframes continuous-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer_copyright_cont {
    padding-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.footer_copyright {
    text-align: center;
    color: #fff;
    font-size: 14px;
    padding-top: 15px;
}

.footer_copyright .container {
    background-color: transparent; /* FIXED: Footer container has no white bg */
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media screen and (max-width: 768px) {
    .container {
        width: 100%;
    }
    
    ul#main_header_menu {
        display: none;
    }
    
    .slicknav_menu {
        display: block;
    }

    .header_search {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
    }

    .header_social {
        float: none;
        text-align: center;
    }

    .max_cont {
        grid-template-columns: 1fr; /* Stack images on mobile */
    }
}

/* ==========================================================================
   Portfolio Masonry Grid & Pages
   ========================================================================== */
.archive_title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: var(--text-color);
}

.max_cont {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 46px; /* Matches the 414px vs 368px math from original layout */
    align-items: start;
    margin-bottom: 50px;
}

.home_post_thumb {
    width: 100%;
    /* Reset any inline styles from legacy JS */
    position: relative !important;
    left: auto !important;
    top: auto !important;
}

.home_post_thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Contact Form Styling
   ========================================================================== */
.wpcf7 {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.wpcf7 p {
    margin-bottom: 15px;
    font-size: 14px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    font-family: var(--font-primary);
    box-sizing: border-box;
    margin-top: 5px;
}

.wpcf7 textarea {
    height: 120px;
    resize: vertical;
}

.wpcf7 input[type="submit"] {
    background: transparent;
    border: 1px solid #888;
    padding: 3px 15px;
    cursor: pointer;
    font-family: var(--font-primary);
    margin-top: 10px;
    transition: all 0.3s;
}

.wpcf7 input[type="submit"]:hover {
    background: #888;
    color: #fff;
}

/* ==========================================================================
   Detail / Single Page Styling
   ========================================================================== */
.single_title {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.wp-caption {
    margin: 0 auto;
    text-align: center;
}

.wp-caption img {
    max-width: 100%;
    height: auto;
}

.wp-caption-text {
    margin-top: 20px;
    font-size: 12px;
    color: #555;
    line-height: 1.6;
}

.wp-caption-text strong {
    color: #222;
}

.next_prev_cont {
    margin-top: 60px;
    padding-bottom: 40px;
}

.next_prev_cont .left {
    float: left;
    text-align: left;
}

.next_prev_cont .right {
    float: right;
    text-align: right;
}

.next_prev_cont a {
    color: #555;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    display: inline-block;
}

.next_prev_cont a:hover {
    color: #000;
}

.next_prev_cont a i {
    font-style: italic;
    color: #999;
}

.next_prev_cont .left a::before {
    content: "⟨";
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #ccc;
}

.next_prev_cont .right a::after {
    content: "⟩";
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #ccc;
}
