/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Noto+Serif+JP:wght@400;700&family=Open+Sans:wght@400;700&family=Noto+Sans+SC:wght@400;700&display=swap');

/* --- Header Utilities (Search, Contact, Translate) --- */
.ttf-header-utils {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    font-family: 'Open Sans', sans-serif;
    z-index: 9999;
    padding: 0;
}

.ttf-utility-item {
    position: relative;
}

.ttf-header-utils .ttf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #333 !important;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.ttf-header-utils .ttf-icon:hover,
.ttf-header-utils .ttf-icon:hover svg {
    color: #440099 !important;
    stroke: #440099 !important;
}

/* --- Dropdown Styling (Language & Search) --- */
.ttf-dropdown, .ttf-search-dropdown {
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%) translateY(10px);
    background: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.ttf-language-switcher .ttf-dropdown {
    min-width: 140px;
}

.ttf-search-widget .ttf-search-dropdown {
    min-width: 250px;
    padding: 15px;
}

.ttf-search-dropdown form {
    display: flex;
    gap: 10px;
}

.ttf-search-dropdown input[type="search"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

.ttf-search-dropdown button {
    padding: 8px 15px;
    background: #440099;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.ttf-search-dropdown button:hover {
    background: #7340B2;
}

/* Triangle pointer for dropdowns */
.ttf-dropdown::before, .ttf-search-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent #FFFFFF transparent;
}

.ttf-utility-item.active .ttf-dropdown,
.ttf-utility-item.active .ttf-search-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(5px);
}


.ttf-dropdown ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ttf-dropdown li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    color: #444;
    font-size: 14px;
    text-align: center;
    transition: background 0.2s;
}

.ttf-dropdown li:last-child {
    border-bottom: none;
}

.ttf-dropdown li:hover {
    background: #F0EBF7;
    color: #440099;
}

/* Hide Default Google Translate UI */
.skiptranslate,
#goog-gt-tt,
.goog-te-banner-frame {
    display: none !important;
}

/* --- Font Switching Logic --- */
/* Default (Latin/European - Open Sans) */
body, .lang-font-en, .lang-font-id {
    font-family: 'Open Sans', sans-serif;
}

/* Japanese */
.lang-font-ja, 
.lang-font-ja h1, .lang-font-ja h2, .lang-font-ja h3, 
.lang-font-ja h4, .lang-font-ja h5, .lang-font-ja h6, 
.lang-font-ja p, .lang-font-ja span, .lang-font-ja a, .lang-font-ja div {
    font-family: 'Noto Sans JP', sans-serif !important;
}
.lang-font-ja .corporate-message {
    font-family: 'Noto Serif JP', serif !important;
}

/* Chinese */
.lang-font-zh, 
.lang-font-zh h1, .lang-font-zh h2, .lang-font-zh h3, 
.lang-font-zh h4, .lang-font-zh h5, .lang-font-zh h6, 
.lang-font-zh p, .lang-font-zh span, .lang-font-zh a, .lang-font-zh div {
    font-family: 'Noto Sans SC', sans-serif !important;
}

/* --- MENGATUR JARAK IKON KHUSUS MOBILE --- */
@media (max-width: 768px) {
    .ttf-header-utils {
        gap: 5px !important;
    }
    .ttf-header-utils .ttf-icon {
        padding: 2px !important;
    }
}

/* --- Merapatkan ikon dengan hamburger menu di Mobile --- */
@media (max-width: 767px) {
    /* Override Grid menjadi Flex pada kontainer yang menampung ikon */
    .elementor-element-df2b700 > .e-con-inner {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 6px !important;
    }

    /* Widget shortcode & hamburger: hanya selebar isinya */
    .elementor-element-df2b700 .elementor-widget-shortcode,
    .elementor-element-df2b700 .elementor-widget-ekit-nav-menu {
        flex: 0 0 auto !important;
        width: auto !important;
    }
}