/* 🎯 KAS HEADER STYLES - Custom class untuk avoid konflik */
.kas-header-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    transition: all 0.3s ease;
    transform: translateY(0) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 📞 TOP BAR STYLES */
.kas-top-bar {
    background-color: #331F15;
    color: white;
    font-size: 13px;
    padding: 8px 0;
    transition: all 0.3s ease;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
}

.kas-top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kas-top-bar-left {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.kas-contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    white-space: nowrap;
}

.kas-contact-info i {
    font-size: 12px;
    flex-shrink: 0;
}

.kas-contact-info a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 12px;
}

.kas-contact-info a:hover {
    color: #F8F6EE;
    text-decoration: underline;
}

.kas-top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.kas-social-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.kas-social-links a {
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

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

/* 🏠 MAIN HEADER STYLES */
.kas-header {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10000 !important;
    transform: translateY(0) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Brand Logo Styles */
.kas-header .brand {
    display: flex;
    align-items: center;
    margin-right: 20px;
    text-decoration: none;
}

.kas-header .brand img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.kas-header .brand:hover img {
    transform: scale(1.05);
}

/* Container Flex Fix */
.kas-header .container.d-flex {
    align-items: center;
    justify-content: space-between;
}

/* 📌 STICKY HEADER - HEADER SELALU TERLIHAT, HANYA TOP BAR YANG HILANG */
.kas-header-wrapper.kas-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    transform: translateY(0) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.kas-header-wrapper.kas-sticky .kas-top-bar {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    transition: all 0.3s ease;
}

.padding-main-header{
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.kas-header-wrapper.kas-sticky .kas-header {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 4px 0;
    transform: translateY(0) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.kas-header-wrapper.kas-sticky .kas-header .brand img {
    height: 40px;
}

/* 🎨 NAVIGATION STYLES */
.kas-header .header_nav {
    transition: all 0.3s ease;
}

.kas-header .header_nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kas-header .header_nav-list_item {
    margin: 0;
    position: relative;
}

.kas-header .nav-item {
    color: #333 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 12px !important;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 6px;
}

.kas-header .nav-item:hover {
    color: #B48F3E !important;
    background: rgba(180, 143, 62, 0.1);
    text-decoration: none;
}

.kas-header .nav-item:focus {
    color: #B48F3E !important;
    text-decoration: none;
    outline: none;
}

.kas-header .nav-item.nav-item-active {
    color: #B48F3E !important;
}

.kas-header .nav-item.nav-item-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #B48F3E;
    border-radius: 1px;
}

/* Navigation Text Styles */
.nav-item_text {
    font-size: 10px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    color:  #593C2A;
}

/* Dropdown Arrow Styles */
.kas-header .dropdown-toggle .icon-chevron_right {
    font-size: 8px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.kas-header .dropdown-toggle[aria-expanded="true"] .icon-chevron_right {
    transform: rotate(90deg);
}

/* 🔥 GET A QUOTE BUTTON */
.kas-quote-btn {
    background: linear-gradient(135deg, #B48F3E, #D4A853) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 12px rgba(180, 143, 62, 0.3) !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 10px !important;
}

.kas-quote-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px rgba(180, 143, 62, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.kas-quote-btn .nav-item_text {
    color: white !important;
}

/* 📱 MOBILE HAMBURGER */
.kas-header .header_trigger {
    padding: 8px;
    border: none;
    background: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.kas-header .header_trigger:hover {
    background: rgba(180, 143, 62, 0.1);
}

.kas-header .header_trigger:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(180, 143, 62, 0.3);
}

/* Default Line Styles */
.kas-header .header_trigger .line {
    background: #333;
    height: 3px;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    display: block;
}

/* Line Widths for 4-line hamburger */
.kas-header .header_trigger .line:nth-child(1),
.kas-header .header_trigger .line.line--short:first-child {
    width: 20px;
}

.kas-header .header_trigger .line:nth-child(2) {
    width: 26px;
}

.kas-header .header_trigger .line:nth-child(3),
.kas-header .header_trigger .line.line--short:nth-child(3) {
    width: 18px;
}

.kas-header .header_trigger .line:nth-child(4) {
    width: 14px;
}

/* ACTIVE STATE - Transform to X */
.kas-header .header_trigger.active .line:nth-child(1),
.kas-header .header_trigger:not(.collapsed) .line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    width: 24px;
}

.kas-header .header_trigger.active .line:nth-child(2),
.kas-header .header_trigger:not(.collapsed) .line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.kas-header .header_trigger.active .line:nth-child(3),
.kas-header .header_trigger:not(.collapsed) .line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    width: 24px;
}

.kas-header .header_trigger.active .line:nth-child(4),
.kas-header .header_trigger:not(.collapsed) .line:nth-child(4) {
    opacity: 0;
    transform: translateX(-20px);
}

/* 🎭 DROPDOWN STYLES - 3 LEVEL MENU */

/* Level 1 - Main Dropdown */
.kas-header .dropdown-menu {
    background: #F8F6EE !important;
    border: 1px solid rgba(180, 143, 62, 0.2) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    padding: 8px 0 !important;
    margin-top: 5px !important;
    min-width: 280px !important;
}

.kas-header .dropdown-list {
    background: #F8F6EE !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.kas-header .dropdown-list .list-item {
    background: #F8F6EE !important;
    margin: 0 !important;
}

.kas-header .dropdown-item {
    color: #333 !important;
    background: #F8F6EE !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
    font-size: 12px !important;
    text-decoration: none !important;
    display: block !important;
    border: none !important;
}

.kas-header .dropdown-item:hover,
.kas-header .dropdown-item:focus {
    background: rgba(180, 143, 62, 0.1) !important;
    color: #B48F3E !important;
    text-decoration: none !important;
}

.kas-header .dropdown-item:active {
    background: rgba(180, 143, 62, 0.15) !important;
    color: #B48F3E !important;
}

/* Level 2 - Submenu */
.kas-header .dropdown-submenu {
    position: relative;
}

.kas-header .dropdown-submenu-menu {
    background: #F8F6EE !important;
    border: 1px solid rgba(180, 143, 62, 0.3) !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
    margin-left: 15px !important;
    margin-top: 5px !important;
    padding: 8px 0 !important;
    min-width: 250px !important;
}

.kas-header .dropdown-submenu-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.kas-header .submenu-item {
    margin: 0 !important;
}

.kas-header .dropdown-submenu-item {
    color: #333 !important;
    background: transparent !important;
    padding: 8px 20px !important;
    font-size: 11px !important;
    text-decoration: none !important;
    display: block !important;
    transition: all 0.3s ease !important;
    border-left: 3px solid transparent !important;
}

.kas-header .dropdown-submenu-item:hover {
    background: rgba(180, 143, 62, 0.1) !important;
    color: #B48F3E !important;
    border-left: 3px solid #B48F3E !important;
    padding-left: 22px !important;
    text-decoration: none !important;
}

/* Level 3 - Third Level */
.kas-header .dropdown-third-level {
    position: relative;
}

.kas-header .dropdown-third-menu {
    background: rgba(248, 246, 238, 0.95) !important;
    border: 1px solid rgba(180, 143, 62, 0.4) !important;
    border-radius: 6px !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1) !important;
    margin-left: 20px !important;
    margin-top: 5px !important;
    padding: 6px 0 !important;
    min-width: 220px !important;
}

.kas-header .dropdown-third-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.kas-header .third-item {
    margin: 0 !important;
}

.kas-header .dropdown-third-item {
    color: #333 !important;
    background: transparent !important;
    padding: 6px 18px !important;
    font-size: 10px !important;
    text-decoration: none !important;
    display: block !important;
    transition: all 0.3s ease !important;
    border-left: 2px solid transparent !important;
    position: relative !important;
}

.kas-header .dropdown-third-item:hover {
    background: rgba(180, 143, 62, 0.15) !important;
    color: #B48F3E !important;
    border-left: 2px solid #B48F3E !important;
    padding-left: 22px !important;
    text-decoration: none !important;
}

.kas-header .dropdown-third-item::before {
    content: '→';
    position: absolute;
    left: 8px;
    color: #B48F3E;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kas-header .dropdown-third-item:hover::before {
    opacity: 1;
}

/* Dropdown Arrows */
.kas-header .submenu-arrow,
.kas-header .third-level-arrow {
    float: right;
    font-size: 8px;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.kas-header .dropdown-toggle-sub[aria-expanded="true"] .submenu-arrow {
    transform: rotate(90deg);
}

.kas-header .dropdown-toggle-third[aria-expanded="true"] .third-level-arrow {
    transform: rotate(90deg);
}

/* Hover Effects for Multi-level Items */
.kas-header .dropdown-item.dropdown-toggle-sub {
    position: relative;
    justify-content: space-between;
    display: flex !important;
    align-items: center;
}

.kas-header .dropdown-item.dropdown-toggle-sub:hover {
    background: rgba(180, 143, 62, 0.1) !important;
    color: #B48F3E !important;
}

.kas-header .dropdown-submenu-item.dropdown-toggle-third {
    justify-content: space-between;
    display: flex !important;
    align-items: center;
}

.kas-header .dropdown-submenu-item.dropdown-toggle-third:hover {
    background: rgba(180, 143, 62, 0.15) !important;
}

/* Desktop - Position absolute untuk hover */
@media (min-width: 992px) {
    .kas-header .dropdown-submenu-menu {
        position: absolute !important;
        top: 0 !important;
        left: 100% !important;
        margin-left: 10px !important;
        margin-top: -8px !important;
        display: none !important;
    }
    
    .kas-header .dropdown-submenu:hover .dropdown-submenu-menu {
        display: block !important;
    }
    
    .kas-header .dropdown-third-menu {
        position: absolute !important;
        top: 0 !important;
        left: 100% !important;
        margin-left: 10px !important;
        margin-top: -6px !important;
        display: none !important;
    }
    
    .kas-header .dropdown-third-level:hover .dropdown-third-menu {
        display: block !important;
    }
    
    /* Remove collapse behavior on desktop */
    .kas-header .dropdown-submenu-menu.collapse {
        display: none !important;
    }
    
    .kas-header .dropdown-third-menu.collapse {
        display: none !important;
    }
    
    .kas-header .dropdown-submenu:hover .dropdown-submenu-menu.collapse {
        display: block !important;
    }
    
    .kas-header .dropdown-third-level:hover .dropdown-third-menu.collapse {
        display: block !important;
    }
    
    /* Hide hamburger on desktop */
    .kas-header .header_trigger {
        display: none !important;
    }
    
    .kas-header .header_nav {
        display: block !important;
    }
}

/* Mobile - Stack vertically */
@media (max-width: 991px) {
    /* Show hamburger */
    .kas-header .header_trigger {
        display: flex !important;
        width: 36px;
        height: 36px;
        gap: 3px;
    }
    
    .kas-header .header_trigger .line {
        height: 2px;
    }
    
    .kas-header .header_trigger .line:nth-child(1) {
        width: 18px;
    }
    
    .kas-header .header_trigger .line:nth-child(2) {
        width: 22px;
    }
    
    .kas-header .header_trigger .line:nth-child(3) {
        width: 16px;
    }
    
    .kas-header .header_trigger .line:nth-child(4) {
        width: 12px;
    }
    
    /* Mobile active state */
    .kas-header .header_trigger.active .line:nth-child(1),
    .kas-header .header_trigger:not(.collapsed) .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        width: 20px;
    }
    
    .kas-header .header_trigger.active .line:nth-child(3),
    .kas-header .header_trigger:not(.collapsed) .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        width: 20px;
    }
    
    /* Top bar adjustments */
    .kas-top-bar {
        padding: 6px 0;
    }
    
    .kas-top-bar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .kas-top-bar-left {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .kas-contact-info {
        font-size: 11px;
    }
    
    .kas-contact-info a {
        font-size: 11px;
    }
    
    .kas-header {
        padding: 0px;
    }
    
    /* Hide desktop navigation by default */
    .kas-header .header_nav {
        display: none;
    }
    
    .kas-header .header_nav.show {
        display: block;
    }
    
    /* Mobile Navigation Styles */
    .kas-header .header_nav {
        background: #F8F6EE;
        border-radius: 12px;
        margin-top: 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(180, 143, 62, 0.2);
        overflow: hidden;
    }
    
    .kas-header .header_nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0;
    }
    
    .kas-header .header_nav-list_item {
        border-bottom: 1px solid rgba(180, 143, 62, 0.1);
    }
    
    .kas-header .header_nav-list_item:last-child {
        border-bottom: none;
    }
    
    .kas-header .nav-item {
        padding: 15px 20px !important;
        justify-content: space-between;
        border-radius: 0;
    }
    
    .nav-item_text {
        font-weight: 600;
    }
    
    .kas-quote-btn {
        margin: 15px 20px 5px 20px !important;
        align-self: flex-start !important;
        padding: 12px 20px !important;
    }
    
    /* Mobile dropdown positioning */
    .kas-header .dropdown-submenu-menu {
        position: static !important;
        margin-left: 0 !important;
        margin-top: 5px !important;
        border-radius: 0 !important;
        background: rgba(180, 143, 62, 0.05) !important;
        border: none !important;
        border-top: 1px solid rgba(180, 143, 62, 0.2) !important;
    }
    
    .kas-header .dropdown-third-menu {
        position: static !important;
        margin-left: 0 !important;
        margin-top: 5px !important;
        border-radius: 0 !important;
        background: rgba(180, 143, 62, 0.08) !important;
        border: none !important;
        border-top: 1px solid rgba(180, 143, 62, 0.3) !important;
    }
    
    .kas-header .dropdown-submenu-item {
        padding: 10px 25px !important;
        font-size: 11px !important;
    }
    
    .kas-header .dropdown-third-item {
        padding: 8px 30px !important;
        font-size: 10px !important;
    }
    
    /* Mobile Dropdown */
    .kas-header .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(180, 143, 62, 0.05);
        margin: 0;
        padding: 0;
    }
    
    .kas-header .dropdown-item {
        padding: 12px 40px;
        font-size: 12px;
        border-bottom: 1px solid rgba(180, 143, 62, 0.1);
    }
    
    .kas-header .dropdown-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .kas-top-bar {
        font-size: 11px;
        padding: 5px 0;
    }
    
    .kas-top-bar-left {
        gap: 10px;
    }
    
    .kas-contact-info {
        font-size: 10px;
        gap: 4px;
    }
    
    .kas-contact-info a {
        font-size: 10px;
    }
    
    .kas-social-links a {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
    
    .kas-header .brand img {
        height: 40px;
    }
    
    .kas-header .header_trigger {
        width: 32px;
        height: 32px;
        gap: 2px;
    }
    
    .kas-header .header_trigger .line {
        width: 20px;
        height: 2px;
    }
}

@media (max-width: 576px) {
    .kas-top-bar-left {
        gap: 8px;
        justify-content: center;
    }
    
    .kas-contact-info {
        font-size: 9px;
    }
    
    .kas-contact-info a {
        font-size: 9px;
    }
    
    .kas-top-bar-right {
        gap: 10px;
    }
    
    .kas-top-bar-right .kas-contact-info {
        display: none;
    }
    
    .kas-social-links a {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
    
    .kas-header .brand img {
        height: 35px;
    }
    
    .kas-header .nav-item {
        padding: 12px 15px !important;
    }
    
    .kas-quote-btn {
        margin: 10px 15px 5px 15px !important;
        padding: 10px 16px !important;
    }
}

/* Large Desktop */
@media (min-width: 2000px) {
    .kas-header .nav-item {
        padding: 10px 15px !important;
    }
    
    .nav-item_text {
        font-size: 14px !important;
    }
    
    .kas-header .header_nav-list {
        gap: 0px;
    }
}

/* Tablet */
@media (max-width: 1199px) and (min-width: 992px) {
    .kas-header .nav-item {
        padding: 6px 8px !important;
    }
    
    .kas-header .header_nav-list {
        gap: 4px;
    }
    
    .kas-quote-btn {
        padding: 6px 12px !important;
        margin-left: 8px !important;
    }
}

/* 🎯 BODY PADDING UNTUK STICKY HEADER - FIXED */
body {
    padding-top: 110px !important;
}

.kas-header-offset {
    display: none;
}

/* Saat sticky mode aktif */
body.kas-header-sticky-active {
    padding-top: 65px !important;
}

@media (max-width: 991px) {
    body {
        padding-top: 95px !important;
    }
    
    body.kas-header-sticky-active {
        padding-top: 60px !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 85px !important;
    }
    
    body.kas-header-sticky-active {
        padding-top: 55px !important;
    }
}

/* 🚨 NUCLEAR OPTION - FORCE HEADER ALWAYS VISIBLE */
.kas-header-wrapper[style*="display: none"] {
    display: block !important;
}

.kas-header-wrapper[style*="visibility: hidden"] {
    visibility: visible !important;
}

.kas-header-wrapper[style*="opacity: 0"] {
    opacity: 1 !important;
}

.kas-header-wrapper[style*="translateY(-"] {
    transform: translateY(0) !important;
}

.kas-header[style*="display: none"] {
    display: block !important;
}

.kas-header[style*="visibility: hidden"] {
    visibility: visible !important;
}

.kas-header[style*="opacity: 0"] {
    opacity: 1 !important;
}

/* 🎭 SMOOTH TRANSITIONS */
* {
    -webkit-tap-highlight-color: transparent;
}

.kas-header * {
    box-sizing: border-box;
}

/* Focus States for Accessibility */
.kas-header .nav-item:focus-visible,
.kas-header .header_trigger:focus-visible {
    outline: 2px solid #B48F3E;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .kas-header-wrapper {
        display: none !important;
    }
}