/* ============================================================ */
/* ========== GLOBAL STYLES ========== */
/* ============================================================ */

:root {
    --primary: #0a4a7a;
    --primary-dark: #06355a;
    --primary-light: #1a6a9a;
    --gold: #c9a84c;
    --gold-light: #f0d060;
    --gold-glow: rgba(201, 168, 76, 0.4);
    --white: #ffffff;
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* ============================================================ */
/* TOP BAR */
/* ============================================================ */
.top-bar {
    background: linear-gradient(135deg, #06355a, #0a4a7a);
    padding: 6px 0;
    border-bottom: 2px solid var(--gold);
    position: relative;
    z-index: 1051;
}

.top-bar::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.social-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}

.top-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-info a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 11px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.top-info a:hover {
    color: var(--gold);
}

.top-info .contact-btn {
    background: var(--gold);
    color: var(--primary-dark);
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 10px;
}

.top-info .contact-btn:hover {
    background: var(--gold-light);
    color: var(--primary-dark);
}

/* ============================================================ */
/* HEADER - Fixed z-index */
/* ============================================================ */
#main-header {
    position: relative;
    z-index: 99999 !important;
}

/* ============================================================ */
/* MAIN HEADER - Logo Left | Text Center | Gabriel Right */
/* ============================================================ */
.main-header {
    background: var(--white);
    padding: 12px 0;
    border-bottom: 3px solid var(--gold);
    position: relative;
    z-index: 9999;
    box-shadow: var(--shadow);
}

.main-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    background-size: 200% 100%;
    animation: shimmer2 4s infinite;
}

@keyframes shimmer2 {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* ====== LOGO - LEFT ====== */
.logo-left {
    flex: 0 0 auto;
}

.logo-link {
    display: block;
    position: relative;
}

.logo-icon {
    position: relative;
    display: inline-block;
}

.main-logo {
    height: 80px;
    width: auto;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.logo-link:hover .main-logo {
    transform: scale(1.05);
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(212, 168, 47, 0.8), transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulseGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}

/* ====== CENTER TEXT ====== */
.header-center {
    flex: 1;
    text-align: center;
    padding: 0 15px;
}

.header-center h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.9px;
    background: linear-gradient(135deg, #0a4a7a, #1a7a9a, #2a9aba);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.9;
}

.header-center .province-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-top: 2px;
}

/* ====== GABRIEL AVATAR - RIGHT ====== */
.gabriel-right {
    flex: 0 0 auto;
}

.avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent,
        var(--gold),
        var(--gold-light),
        var(--gold),
        transparent
    );
    animation: rotateRing 4s linear infinite;
    padding: 3px;
}

.avatar-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-dark);
}

@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.st-gabriel {
    position: relative;
    z-index: 2;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.st-gabriel:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 40px rgba(201, 168, 76, 0.3);
}

.avatar-glow {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.2), transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    z-index: 0;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

.avatar-pulse {
    position: absolute;
    inset: -22px;
    border-radius: 50%;
    border: 2px solid rgba(201, 168, 76, 0.25);
    animation: pulseRing 2.5s ease-out infinite;
    z-index: 0;
}

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.gabriel-label {
    display: block;
    text-align: center;
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====== MOBILE MENU TOGGLE ====== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    z-index: 99999;
    order: 4;
}

.menu-toggle .bar {
    width: 26px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================ */
/* NAVIGATION */
/* ============================================================ */

#main-nav {
    background: linear-gradient(135deg, #06355a, #0a4a7a, #1a6a9a);
    position: relative;
    z-index: 9998;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#main-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmerNav 4s infinite;
}

@keyframes shimmerNav {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-item > a:hover::after,
.nav-item.active > a::after {
    width: 70%;
}

.nav-item > a:hover,
.nav-item.active > a {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

.nav-icon {
    font-size: 0.85rem;
}

.dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    margin-left: 3px;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* ====== DROPDOWN ====== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: var(--white);
    border: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 9999;
    list-style: none;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu li a i {
    width: 20px;
    color: var(--gold);
    font-size: 0.8rem;
}

.dropdown-menu li a:hover {
    background: rgba(10, 74, 122, 0.04);
    border-left-color: var(--gold);
    padding-left: 25px;
}

.dropdown-menu li a.view-all {
    color: var(--gold);
    font-weight: 600;
}

.dropdown-divider {
    margin: 4px 15px;
    border-color: rgba(0, 0, 0, 0.05);
}

/* ====== SEARCH ====== */
.nav-search {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.search-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    color: var(--gold);
}

.search-box {
    display: none;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 3px 3px 3px 15px;
    transition: all 0.3s ease;
}

.search-box.active {
    display: flex;
}

.search-box input {
    background: none;
    border: none;
    color: var(--white);
    padding: 8px 0;
    outline: none;
    font-size: 0.85rem;
    width: 150px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box button {
    background: var(--gold);
    border: none;
    border-radius: 30px;
    color: var(--primary-dark);
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.search-box button:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}

/* ============================================================ */
/* FOOTER SECTION */
/* ============================================================ */
.footer {
    background: #0a1a2a;
    border-top: 3px solid var(--gold);
    position: relative;
}

.footer .social-icon-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-right: 6px;
}

.footer .social-icon-footer:hover {
    background: var(--gold);
    color: #0a1a2a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(4px);
}

.footer-links a i {
    color: var(--gold);
    font-size: 0.5rem;
    transition: all 0.3s ease;
}

.footer-links a:hover i {
    transform: translateX(2px);
}

.footer-contact i {
    font-size: 0.9rem;
}

.footer-contact a:hover {
    color: var(--gold) !important;
}

/* ============================================================ */
/* RESPONSIVE - GLOBAL */
/* ============================================================ */

/* ====== TABLET ====== */
@media (max-width: 991px) {
    .main-logo {
        height: 60px;
    }
    
    .logo-glow {
        width: 80px;
        height: 80px;
    }
    
    .header-center h1 {
        font-size: 1.9rem;
    }
    
    .header-center .province-name {
        font-size: 0.9rem;
        letter-spacing: 4px;
    }
    
    .avatar-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .st-gabriel {
        width: 52px;
        height: 52px;
    }
    
    .avatar-glow {
        inset: -8px;
    }
    
    .avatar-pulse {
        inset: -15px;
    }
    
    .gabriel-label {
        font-size: 0.5rem;
    }
    
    .nav-item > a {
        padding: 12px 15px;
        font-size: 0.8rem;
    }
    
    .footer .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* ====== MOBILE ====== */
@media (max-width: 768px) {
    .top-bar {
        padding: 4px 0;
    }
    
    .top-bar .social-links {
        justify-content: center;
    }
    
    .social-icon {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .top-info {
        justify-content: center;
        gap: 8px;
    }
    
    .top-info a {
        font-size: 9px;
    }
    
    .top-info .contact-btn {
        font-size: 9px;
        padding: 1px 10px;
    }
    
    .main-header {
        padding: 8px 0;
    }
    
    .header-wrapper {
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
    
    /* ====== LOGO - MOBILE ====== */
    .logo-left {
        flex: 0 0 auto;
    }
    
    .main-logo {
        height: 45px;
    }
    
    .logo-glow {
        width: 60px;
        height: 60px;
    }
    
    /* ====== CENTER TEXT - MOBILE ====== */
    .header-center {
        flex: 1;
        padding: 0 4px;
        min-width: 0;
    }
    
    .header-center h1 {
        font-size: 0.95rem;
        letter-spacing: 0.3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .header-center .province-name {
        font-size: 0.8rem;
        letter-spacing: 1px;
        margin-top: 1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* ====== GABRIEL AVATAR - MOBILE ====== */
    .gabriel-right {
        flex: 0 0 auto;
        order: 3;
    }
    
    .avatar-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .avatar-ring {
        inset: -3px;
        padding: 2px;
    }
    
    .st-gabriel {
        width: 38px;
        height: 38px;
        border-width: 2px;
    }
    
    .avatar-glow {
        inset: -5px;
    }
    
    .avatar-pulse {
        inset: -10px;
    }
    
    .gabriel-label {
        display: none;
    }
    
    /* ====== MENU TOGGLE - MOBILE ====== */
    .menu-toggle {
        display: flex !important;
        padding: 4px;
        order: 4;
    }
    
    .menu-toggle .bar {
        width: 22px;
        height: 2.5px;
    }
    
    /* ====== NAVIGATION - MOBILE ====== */
    #main-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        z-index: 99999 !important;
        overflow-y: auto !important;
        transform: translateX(100%) !important;
        transition: transform 0.4s ease !important;
        border-top: none !important;
        padding-top: 80px !important;
    }
    
    #main-nav.open {
        transform: translateX(0) !important;
        max-height: 100% !important;
    }
    
    /* Close button in menu */
    #main-nav .nav-close {
        display: block !important;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 30px;
        color: var(--primary);
        background: none;
        border: none;
        cursor: pointer;
        z-index: 999999;
    }
    
    #main-nav .nav-wrapper {
        flex-direction: column;
        padding: 10px 0;
        width: 100%;
    }
    
    #main-nav .nav-menu {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    #main-nav .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
    }
    
    #main-nav .nav-item > a {
        color: var(--primary-dark);
        padding: 14px 20px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: flex-start;
    }
    
    #main-nav .nav-item > a::after {
        display: none;
    }
    
    #main-nav .nav-item > a:hover,
    #main-nav .nav-item.active > a {
        color: var(--gold);
        background: rgba(201, 168, 76, 0.08);
        border-radius: 8px;
    }
    
    #main-nav .nav-item > a .nav-icon {
        color: var(--gold);
        width: 28px;
        font-size: 1rem;
    }
    
    #main-nav .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: rgba(0, 0, 0, 0.02);
        width: 100%;
    }
    
    #main-nav .dropdown-menu.open {
        max-height: 400px;
        overflow-y: auto;
    }
    
    #main-nav .dropdown-menu li a {
        padding: 10px 20px 10px 50px;
        font-size: 0.85rem;
    }
    
    #main-nav .dropdown-menu li a i {
        font-size: 0.8rem;
    }
    
    #main-nav .dropdown-menu li a:hover {
        background: rgba(201, 168, 76, 0.08);
        padding-left: 55px;
        border-radius: 8px;
    }
    
    #main-nav .nav-search {
        width: 100%;
        padding: 15px 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        margin-left: 0;
    }
    
    #main-nav .search-box {
        width: 100%;
        background: #f0f0f0;
    }
    
    #main-nav .search-box input {
        width: 100%;
        color: var(--primary-dark);
    }
    
    #main-nav .search-box input::placeholder {
        color: #999;
    }
    
    #main-nav .search-toggle {
        color: var(--primary-dark);
        padding: 8px 12px;
    }
    
    #main-nav .search-toggle:hover {
        color: var(--gold);
    }
    
    /* Hide desktop nav on mobile */
    #main-nav:not(.open) {
        transform: translateX(100%) !important;
    }
    
    /* ====== FOOTER - MOBILE ====== */
    .footer {
        padding: 2rem 0 !important;
    }
    
    .footer .social-icon-footer {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    .footer-contact {
        font-size: 0.85rem;
    }
}

/* Show close button only on mobile */
.nav-close {
    display: none;
}

/* ====== SMALL PHONE ====== */
@media (max-width: 480px) {
    .main-logo {
        height: 38px;
    }
    
    .logo-glow {
        width: 50px;
        height: 50px;
    }
    
    .header-center h1 {
        font-size: 0.9rem;
    }
    
    .header-center .province-name {
        font-size: 0.75rem;
        letter-spacing: 1.1px;
    }
    
    .avatar-wrapper {
        width: 38px;
        height: 38px;
    }
    
    .st-gabriel {
        width: 32px;
        height: 32px;
    }
    
    .avatar-ring {
        inset: -2px;
        padding: 1.5px;
    }
    
    .avatar-glow {
        inset: -4px;
    }
    
    .avatar-pulse {
        inset: -8px;
    }
    
    .menu-toggle .bar {
        width: 18px;
        height: 2px;
    }
    
    #main-nav {
        padding-top: 70px !important;
    }
    
    .footer .col-6 {
        margin-bottom: 1rem;
    }
    
    .footer h6 {
        font-size: 0.9rem;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
    
    .footer-contact {
        font-size: 0.8rem;
    }
}

/* ====== VERY SMALL PHONE ====== */
@media (max-width: 375px) {
    .main-logo {
        height: 32px;
    }
    
    .logo-glow {
        width: 42px;
        height: 42px;
    }
    
    .header-center h1 {
        font-size: 0.55rem;
    }
    
    .header-center .province-name {
        font-size: 0.3rem;
        letter-spacing: 0.3px;
    }
    
    .avatar-wrapper {
        width: 32px;
        height: 32px;
    }
    
    .st-gabriel {
        width: 26px;
        height: 26px;
    }
    
    .menu-toggle .bar {
        width: 16px;
        height: 2px;
        gap: 3px;
    }
}

/**************************************************************************************************/
/* ============================================================ */
/* NAVIGATION - CENTERED MENU */
/* ============================================================ */

/* Center the nav wrapper */
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; /* Center everything */
    position: relative;
}

/* Center the menu */
.nav-menu-center {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    justify-content: center; /* Center menu items */
}

/* Menu items */
.nav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-item > a:hover::after,
.nav-item.active > a::after {
    width: 70%;
}

.nav-item > a:hover,
.nav-item.active > a {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

/* Search - positioned to the right */
.nav-search {
    display: flex;
    align-items: center;
    margin-left: 15px;
    position: absolute;
    right: 0;
}

/* ============================================================ */
/* RESPONSIVE - MOBILE */
/* ============================================================ */
@media (max-width: 768px) {
    /* Navigation wrapper - mobile */
    .nav-wrapper {
        flex-direction: column;
        padding: 10px 0;
        justify-content: flex-start;
    }
    
    /* Menu items - mobile */
    .nav-menu-center {
        flex-direction: column;
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
    }
    
    .nav-item > a {
        color: var(--primary-dark);
        padding: 12px 20px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav-item > a::after {
        display: none;
    }
    
    .nav-item > a:hover,
    .nav-item.active > a {
        color: var(--gold);
        background: rgba(201, 168, 76, 0.05);
    }
    
    .nav-item > a .nav-icon {
        color: var(--gold);
        width: 24px;
    }
    
    /* Search - mobile */
    .nav-search {
        width: 100%;
        padding: 10px 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        margin-left: 0;
        position: static;
    }
    
    .search-box {
        width: 100%;
        background: #f0f0f0;
    }
    
    .search-box input {
        width: 100%;
        color: var(--primary-dark);
    }
    
    .search-toggle {
        color: var(--primary-dark);
    }
    
    .search-toggle:hover {
        color: var(--gold);
    }
}
