/* Header Style seperti Kutus Kutus */
.header-main {
    background: transparent;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1050;
    transition: all 0.3s ease;
    overflow-x: hidden;
}

.header-main.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    
}

.header-content {
    height: 60px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Logo Styling */
.logo-link {
    text-decoration: none;
    display: block;
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    display: block;
}

.brand-tagline {
    font-size: 14px;
    color: #666;
    display: block;
}

.logo-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    font-size: 20px;
    overflow: hidden;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    padding: 2px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.brand-tagline {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #130046;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #4a7c59;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a7c59;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-contact,
.btn-admin {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.btn-contact {
    background: #130046;
    color: white;
    border: 2px solid #130046;
}

.btn-contact:hover {
    background: transparent;
    color: #130046;
}

.btn-admin {
    background: transparent;
    color: #6c757d;
    border: 2px solid #e8e8e8;
}

.btn-admin:hover {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #2c3e50;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover .hamburger-line {
    background: #4a7c59;
}

/* Mobile Menu */
.mobile-menu {
    background: #f9f9f9;
    border-left: 1px solid #e8e8e8;
    max-width: 320px;
    width: 300px;
    z-index: 9999 !important;
}

/* Offcanvas backdrop */
.offcanvas-backdrop {
    z-index: 9998 !important;
}

/* Ensure offcanvas is above header */
.offcanvas.show {
    z-index: 9999 !important;
}

.mobile-menu .offcanvas-header {
    background: white;
    border-bottom: 1px solid #e8e8e8;
    padding: 20px;
    position: relative;
    z-index: 10000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mobile-menu .offcanvas-body {
    padding: 20px;
    position: relative;
    z-index: 10000;
    background: #f9f9f9;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-logo .logo-icon {
    width: 70px;
    height: 70px;
    font-size: 16px;
}

.mobile-logo .brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
    max-width: 200px;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #e8e8e8;
}

.mobile-nav-link {
    display: block;
    padding: 16px 0;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: #4a7c59;
    padding-left: 10px;
}

.mobile-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-contact-mobile,
.btn-admin-mobile {
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-contact-mobile {
    background: #130046;
    color: white;
    border: 2px solid #130046;
}

.btn-admin-mobile {
    background: transparent;
    color: #6c757d;
    border: 2px solid #e8e8e8;
}

/* Body padding for fixed header */
body {
    padding-top: 84px;
}

/* Remove padding for hero slider section */
.hero-slider-section {
    margin-top: -84px;
    padding-top: 84px;
}

/* Responsive */
@media (max-width: 991px) {
    .header-main {
        padding: 10px 0;
    }

    .header-content {
        height: 56px;
        padding: 0 15px;
    }

    body {
        padding-top: 76px;
    }

    .logo-container {
        gap: 10px;
    }

    .logo-icon {
        width: 70px;
        height: 70px;
        font-size: 16px;
    }

    .brand-name {
        font-size: 16px;
        max-width: 200px;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.2;
    }

    .brand-tagline {
        font-size: 10px;
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .header-main {
        padding: 8px 0;
        position: fixed;
        width: 100%;
        left: 0;
        right: 0;
    }

    .header-content {
        height: 52px;
        padding: 0 15px;
        justify-content: space-between;
        align-items: center;
    }

    body {
        padding-top: 68px;
    }

    .logo-container {
        gap: 8px;
        flex-shrink: 0;
        min-width: 0;
    }

    .logo-icon {
        width: 64px;
        height: 64px;
        font-size: 14px;
        flex-shrink: 0;
    }

    .logo-text {
        min-width: 0;
        flex-shrink: 1;
    }

    .brand-name {
        font-size: 14px;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.2;
        max-width: 170px;
    }

    .brand-tagline {
        font-size: 9px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }

    .mobile-menu-toggle {
        flex-shrink: 0;
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    .header-main {
        padding: 6px 0;
    }

    .header-content {
        height: 48px;
        padding: 0 12px;
    }

    body {
        padding-top: 60px;
    }

    .logo-container {
        gap: 6px;
        max-width: calc(100% - 60px);
    }

    .logo-icon {
        width: 56px;
        height: 56px;
        font-size: 12px;
    }

    .brand-name {
        font-size: 13px;
        max-width: 170px;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.2;
    }

    .brand-tagline {
        font-size: 8px;
        max-width: 140px;
    }

    .mobile-menu-toggle {
        padding: 6px;
    }

    .hamburger-line {
        width: 20px;
        height: 2px;
    }
}

@media (max-width: 375px) {
    .header-content {
        padding: 0 10px;
    }

    .logo-container {
        max-width: calc(100% - 50px);
    }

    .brand-name {
        font-size: 12px;
        max-width: 150px;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.2;
    }

    .brand-tagline {
        font-size: 7px;
        max-width: 120px;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 11px;
    }

    .mobile-menu {
        width: 260px;
        max-width: 90vw;
    }
}

/* Additional mobile fixes */
@media (max-width: 480px) {
    .header-main {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
        z-index: 1050;
    }

    .container {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-content {
        max-width: 100%;
        overflow: hidden;
    }

    .logo-text {
        overflow: hidden;
    }

    .brand-name,
    .brand-tagline {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Mobile menu specific adjustments */
    .mobile-menu {
        width: 90vw;
        max-width: 320px;
        z-index: 9999 !important;
    }

    .mobile-menu .offcanvas-header {
        padding: 15px;
        min-height: 70px;
    }

    .mobile-logo .logo-icon {
        width: 50px;
        height: 50px;
    }

    .mobile-logo .brand-name {
        font-size: 14px;
        max-width: 180px;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.2;
    }
}
