/* ================================================== */
/* ====== 0. VARIABLES & GLOBAL SETTINGS       ====== */
/* ================================================== */
:root {
    --primary-blue: #0093ff;
    --primary-yellow: #fdf502;
    --text-light: #ffffff;
    --text-dark: #000000;
    --text-gray: #373737;
    --bg-light: #ffffff;
    --font-inter: 'Inter', sans-serif;
    --font-montserrat: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- GLOBAL CURSOR & FOCUS FIXES (MENGHILANGKAN GARIS TEKS) --- */

/* 1. Paksa elemen non-interaktif menggunakan kursor panah (default) */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    cursor: default; 
}

/* 2. Elemen Interaktif tetap menggunakan pointer (tangan) */
a, button, .btn-standar, .btn-standar-putih, 
.accordion-header, .csr-card-mini, .timeline-item, 
.process-flipper-card, input[type="submit"], input[type="button"],
.social-icons a, .mobile-menu-toggle {
    cursor: pointer;
}

/* 3. Input Teks tetap menggunakan I-beam agar user tahu bisa mengetik */
input[type="text"], input[type="email"], input[type="password"], textarea {
    cursor: text;
}

/* 4. Hilangkan outline (garis biru/hitam) saat elemen diklik/fokus */
*:focus {
    outline: none; 
}

/* 5. Hilangkan highlight biru saat tap di mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

/* --- END GLOBAL FIXES --- */

body {
    width: 100%;
    background-color: #ffff;
    font-family: var(--font-inter), sans-serif;
    color: var(--text-gray);
    overflow-x: hidden; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main#main-content {
    flex-grow: 1;
}

/* ================================================== */
/* ====== 1. KOLEKSI STYLE BACKGROUND SECTION ====== */
/* ================================================== */

.section-putih { background-color: #ffffff; }
.section-abu { background-color: #f8f9fa; }
.section-biru-langit { background-color: #86d9ff; }
.section-krem { background-color: #fdfcf8; }

.section-biru-baru {
    background-color: #2b64ab; 
    color: var(--text-light); 
}
.section-biru-baru .section-tagline {
    color: var(--primary-yellow);
}

.section-biru-tua h1, .section-biru-tua h2, .section-biru-tua h3,
.section-biru-tua h4, .section-biru-tua h5, .section-biru-tua h6 {
    color: var(--text-gray);
}
.section-biru-tua p, .section-biru-tua li, .section-biru-tua span:not(.highlight) { 
    color: rgba(255, 255, 255, 0.85);
}
.section-abu-gelap {
    background-color: #d3d3d3; 
    color: var(--text-dark); 
}
.section-abu-gelap .section-tagline,
.section-biru-tua .section-tagline {
    color: var(--primary-yellow); 
}

/* ==================== */
/* ====== 2. HEADER ==== */
/* ==================== */
.mobile-menu-toggle {
    display: none;
}
.mobile-menu-panel {
    display: none;
}

.site-header {
    position: absolute; 
    background-color: transparent;
    color: var(--text-light);
    padding: 8px 0;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}

.logo img {
    height: 38px;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
}

.main-nav > ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.main-nav a {
    position: relative;
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 18px;
    padding: 10px 5px;
    display: block;
    color: var(--text-light);
    transition: color 0.3s ease;
    text-decoration: none;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-yellow);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}
.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-yellow);
}

.main-nav li.has-dropdown > a {
    padding-right: 25px;
}
.main-nav li.has-dropdown > a::after {
    display: none;
}
.main-nav li.has-dropdown > a::before {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-light);
    transition: transform 0.3s ease, border-top-color 0.3s ease;
}
.main-nav li.has-dropdown:hover > a::before {
    transform: translateY(-50%) rotate(180deg);
    border-top-color: var(--primary-yellow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
}

.lang-switcher {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 16px;
    display: flex;
    gap: 5px;
}
.lang-switcher a {
    color: var(--text-light);
    padding: 2px 4px;
    border-radius: 3px;
    text-decoration: none;
}
.lang-switcher a.lang-active {
    color: var(--primary-blue);
    background-color: var(--primary-yellow);
}

.header-search-button {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.header-search-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* ==== DROPDOWN MENU ==== */
.main-nav li.has-dropdown {
    position: relative;
}
.dropdown-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: var(--bg-light);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.main-nav li.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-dark);
    padding: 12px 20px;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.dropdown-menu li a:hover,
.dropdown-menu li a.active {
    background-color: var(--primary-blue);
    color: var(--text-light);
}


/* ==================== */
/* ====== 3. FOOTER === */
/* ==================== */
.site-footer {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 60px 20px 0 20px;
}
.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr 1.3fr; 
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-about .footer-logo-main {
    display: block;
    margin-bottom: 20px;
}
.footer-about .footer-logo-main img {
    height: 38px; 
    object-fit: contain;
}
.footer-about p {
    font-family: var(--font-inter);
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.7;
    opacity: 0.9;
}
.social-icons {
    display: flex;
    gap: 12px;
}
.social-icons a { 
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background-color 0.3s, border-color 0.3s;
    background-color: transparent; 
    border: 1px solid rgba(255, 255, 255, 0.5); 
    width: 38px;
    height: 38px;
    border-radius: 50%;
}
.social-icons a svg {
    width: 20px;
    height: 20px;
    fill: var(--text-light); 
    transition: fill 0.3s ease;
}
.social-icons a:hover {
    transform: scale(1.1);
    background-color: var(--text-light); 
    border-color: var(--text-light); 
}
.social-icons a:hover svg {
    fill: var(--primary-blue); 
}

.footer-links h4,
.footer-contact h4,
.footer-map h4 {
    font-family: var(--font-montserrat);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}
.footer-links ul li {
    margin-bottom: 12px;
}
.footer-links ul li a {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-inter);
    color: var(--text-light);
    transition: color 0.3s ease;
}
.footer-links ul li a span {
    color: var(--primary-yellow);
    font-weight: bold;
    transition: transform 0.3s ease;
}
.footer-links ul li a:hover {
    color: var(--primary-yellow);
}
.footer-links ul li a:hover span {
    transform: translateX(3px);
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.5;
    font-family: var(--font-inter);
}
.footer-contact .contact-item img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    margin-top: 5px;
    flex-shrink: 0;
    opacity: 0.8;
}
.footer-contact .contact-item a {
    color: var(--text-light);
    transition: color 0.3s ease;
}
.footer-contact .contact-item a:hover {
    color: var(--primary-yellow);
}

.footer-map iframe {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: 10px;
}

.footer-secondary-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 25px 0 20px 0; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px; 
}

.footer-copyright {
    text-align: left;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    flex-grow: 1; 
}

.footer-logo-selamat {
    flex-shrink: 0; 
}
.footer-logo-selamat img {
    height: 40px;
    object-fit: contain;
}
.search-form-container {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    max-width: 300px;
    padding-left: 20px; 
    overflow: hidden;
    flex-shrink: 0; 
}
.search-form-container input[type="text"] {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 15px;
    outline: none;
    color: #333;
    min-width: 100px;
}
.search-form-container button[type="submit"] {
    background-color: var(--primary-yellow);
    border: none;
    padding: 12px 18px;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.search-form-container button[type="submit"]:hover {
    background-color: #FBC02D; 
}
.search-form-container button svg {
    width: 20px;
    height: 20px;
    stroke: #333; 
}

/* ================================ */
/* ====== 4. EFEK & PRELOADER ====== */
/* ================================ */
.reveal {
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-from-left { transform: translateX(-100px); }
.reveal-from-right { transform: translateX(100px); }
.reveal-from-bottom { transform: translateY(100px); }
.reveal-from-top { transform: translateY(-100px); }
.reveal-zoom-in { transform: scale(0.9); }
.reveal.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; 
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
    transition: opacity 1.2s ease, transform 1.2s ease, filter 1.2s ease;
}
#preloader img {
    width: 250px;
    max-width: 80%;
}
#preloader.hidden {
    opacity: 0;
    transform: scale(2.5); 
    filter: blur(15px); 
    pointer-events: none;
}
.site-header a,
.site-footer a {
    text-decoration: none;
}


/* ============================================== */
/* ====== 5. RESPONSIVE & MOBILE MENU CSS ====== */
/* ============================================== */

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
body.mobile-menu-active .menu-overlay {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    .header-container > .main-nav,
    .header-container > .header-actions {
        display: none;
    }
    
    /* === HAMBURGER MENU === */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        background: transparent;
        border: none;
        z-index: 1100; 
        position: fixed;
        top: 25px;
        right: 25px;
        transition: transform 0.3s ease;
    }

    .mobile-menu-toggle .line {
        width: 100%;
        height: 3px;
        background-color: var(--text-light); 
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Animasi jadi ikon 'X' */
    body.mobile-menu-active .mobile-menu-toggle .line-top {
        transform: rotate(45deg) translateY(8px);
    }
    body.mobile-menu-active .mobile-menu-toggle .line-middle {
        opacity: 0;
    }
    body.mobile-menu-active .mobile-menu-toggle .line-bottom {
        transform: rotate(-45deg) translateY(-8px);
    }
    
    /* === PANEL MENU MOBILE (KANAN) === */
    .mobile-menu-panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; 
        width: 85%;
        max-width: 350px;
        height: 100%;
        background-color: var(--primary-blue); 
        box-shadow: -5px 0 20px rgba(0,0,0,0.25);
        padding: 80px 0 40px 0;
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1001;
        overflow-y: auto;
    }

    .mobile-menu-panel.is-open {
        right: 0;
    }

    .mobile-menu-panel .main-nav {
        display: block;
        width: 100%;
    }

    .mobile-menu-panel .main-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .mobile-menu-panel .main-nav > ul > li > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 30px;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--text-light);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        border-left: 4px solid transparent;
        background-color: transparent;
        transition: all 0.3s ease;
    }

    .mobile-menu-panel .main-nav > ul > li > a:hover {
        background-color: rgba(255, 255, 255, 0.1); 
        color: var(--primary-yellow); 
    }

    .mobile-menu-panel .main-nav > ul > li > a.active {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--primary-yellow); 
        font-weight: 600;
        border-left-color: var(--primary-yellow); 
    }

    .mobile-menu-panel .main-nav a::after {
        display: none;
    }

    /* === TOMBOL CLOSE (X) DI ATAS PANEL === */
    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 25px;
        width: 32px;
        height: 32px;
        z-index: 9999; 
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
    }

    .mobile-menu-close::before,
    .mobile-menu-close::after {
        content: "";
        position: absolute;
        width: 20px;
        height: 2px;
        background-color: var(--text-light); 
        transition: background-color 0.3s ease;
    }

    .mobile-menu-close::before { transform: rotate(45deg); }
    .mobile-menu-close::after { transform: rotate(-45deg); }

    .mobile-menu-close:hover::before,
    .mobile-menu-close:hover::after {
        background-color: var(--primary-yellow); 
    }

    .mobile-menu-panel .main-nav li.has-dropdown > a::before {
        display: none !important;
    }

    .dropdown-toggle .arrow {
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--text-light);
        border-bottom: 2px solid var(--text-light);
        transform: rotate(45deg);
        transition: transform 0.3s ease, margin 0.3s ease;
        display: inline-block;
        margin-left: 6px;
        vertical-align: middle;
    }

    .has-dropdown.is-open > .dropdown-toggle .arrow {
        transform: rotate(225deg);
        margin-top: -4px;
    }

    /* === Dropdown Menu Style === */
    .mobile-menu-panel .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.15);
        border-radius: 0;
        min-width: 100%;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.45s ease-out;
    }

    .has-dropdown.is-open > .dropdown-menu {
        max-height: 500px;
    }

    .mobile-menu-panel .dropdown-menu li a {
        display: block;
        padding: 14px 30px 14px 45px;
        font-size: 1rem;
        font-weight: 400;
        color: var(--text-light);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background-color: transparent;
        border-left: none;
    }

    .mobile-menu-panel .dropdown-menu li a:hover {
        color: var(--primary-yellow); 
        background-color: transparent;
    }

    .mobile-menu-panel .dropdown-menu li a.active {
        color: var(--primary-yellow); 
        font-weight: 600;
        background-color: transparent;
    }

    /* === Aksi di Bagian Bawah Menu === */
    .header-actions-mobile {
        display: block;
        padding: 20px 30px 0 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.1); 
        margin-top: auto;
    }

    .header-actions-mobile .lang-switcher {
        display: flex;
        justify-content: center;
        gap: 8px;
        font-size: 16px;
    }

    .header-actions-mobile .lang-switcher a {
        color: var(--text-light);
        padding: 3px 6px;
        border-radius: 4px;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .header-actions-mobile .lang-switcher a.lang-active {
        color: var(--primary-blue);
        background-color: var(--primary-yellow);
    }

    /* --- PERBAIKAN TAMPILAN FOOTER MOBILE --- */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px; 
    }

    .footer-about {
        text-align: center;
    }
    .social-icons {
        justify-content: center; 
    }

    .footer-secondary-container { 
        flex-direction: column;
        gap: 25px;
        padding-bottom: 25px; 
    }
    .footer-copyright {
        text-align: center; 
        order: 2;
    }
    .footer-logo-selamat {
        order: 1; 
    }
    .search-form-container {
        order: 0; 
        max-width: 100%; 
        width: 100%;
    }
} 

/* ========================================= */
/* STYLING HALAMAN HASIL PENCARIAN           */
/* ========================================= */

.search-results-page {
    padding: 60px 0;
    min-height: 50vh;
    background-color: #f9f9fa;
}
.search-title {
    font-family: var(--font-montserrat);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
    border-bottom: 2px solid var(--primary-yellow);
    padding-bottom: 10px;
}
.search-title span {
    color: var(--primary-blue);
}
.search-results-container {
    max-width: 800px;
}
.search-result-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.search-result-item h3 {
    font-family: var(--font-montserrat);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 10px;
}
.search-result-item h3 a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}
.search-result-item h3 a:hover {
    color: var(--text-dark);
    text-decoration: underline;
}
.search-result-item p {
    font-family: var(--font-inter);
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0;
}

.lang-en,
.lang-id,
.lang-en-block,
.lang-id-block {
    display: none;
}

html[lang="id"] .lang-id {
    display: inline;
}
html[lang="id"] .lang-id-block {
    display: block;
}

html[lang="en"] .lang-en {
    display: inline;
}
html[lang="en"] .lang-en-block {
    display: block;
}