/* Header Styles - Matching NextJS Design */

.custom-header-wrapper {
    position: relative;
    z-index: 1000;
}

.border-b {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-\[\#0051A1\] {
    background-color: #0051A1;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.max-w-\[1200px\] {
    max-width: 1200px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-start {
    justify-content: flex-start;
}

.gap-8 {
    gap: 2rem;
}

.gap-1 {
    gap: 0.25rem;
}

/* Logo */
.custom-header-wrapper a span {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

/* Desktop Navigation */
.custom-header-wrapper nav {
    display: none;
}

.custom-header-wrapper nav a {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.custom-header-wrapper nav a:hover {
    background-color: #003d7a;
    color: #e5e7eb;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    margin-left: auto;
    padding: 0.375rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 300px;
    background-color: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #374151;
}

.mobile-menu-close svg {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-menu-content nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem;
}

.mobile-menu-content nav a {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-menu-content nav a:hover {
    color: #3258b3;
}

/* Desktop: Show nav, hide mobile button */
@media (min-width: 768px) {
    .py-3 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .custom-header-wrapper nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

.md\:flex {
    display: none;
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
    
    .md\:hidden {
        display: none;
    }
}

.ml-auto {
    margin-left: auto;
}

.p-1\.5 {
    padding: 0.375rem;
}

.text-white {
    color: white;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-bold {
    font-weight: 700;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.font-semibold {
    font-weight: 600;
}

.rounded-md {
    border-radius: 0.375rem;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Ẩn header của theme WordPress */
body > header,
.site-header,
#masthead,
#site-header,
.header,
#header {
    display: none !important;
}

/* Đảm bảo custom header luôn hiển thị */
.custom-header-wrapper {
    display: block !important;
    position: relative;
    z-index: 1000;
}