/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

/* Horizontal Menu Container - no top gap */
.horizontal-nav {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    background: rgba(20, 20, 30, 0.95);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 3px 15px rgba(0, 255, 100, 0.2);
    overflow: visible;
}

.horizontal-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.h-menu-item {
    position: relative;
    border-right: 1px solid rgba(0, 255, 170, 0.15);
}

.h-menu-item:last-child {
    border-right: none;
}

.h-menu-item.has-submenu:hover > .h-submenu {
    display: block;
}

.h-menu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 12px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 90px;
    text-align: center;
    cursor: pointer;
}

.h-menu-link:hover {
    background: rgba(0, 255, 170, 0.1);
}

.h-menu-link.active {
    background: linear-gradient(180deg, rgba(0, 255, 170, 0.2) 0%, transparent 100%);
    border-top: 2px solid #00ffaa;
    padding-top: 8px;
}

.h-menu-icon {
    font-size: 17px;
    margin-bottom: 4px;
    color: #00ffaa;
    min-height: 20px;
}

/* ===== MAIN MENU TEXT SIZE: INCREASED BY 56.25% TOTAL ===== */
/* Original: 10px → First +25% = 12.5px → Another +25% (of 12.5) = 15.625px */
.h-menu-text {
    font-size: 15.625px;    /* 56.25% increase from original 10px */
    font-weight: 600;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}
/* ======================================================== */

.h-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    background: rgba(10, 30, 40, 0.98);
    border: 1px solid #00a86b;
    border-radius: 0 0 4px 4px;
    min-width: 220px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.h-submenu.active {
    display: block;
}

.h-submenu-item {
    border-bottom: 1px solid rgba(0, 255, 170, 0.1);
    position: relative;
}

.h-submenu-item:last-child {
    border-bottom: none;
}

.h-submenu-item.has-submenu:hover > .h-submenu {
    display: block;
}

.h-submenu-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #aaffdd;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.h-submenu-link:hover {
    background: rgba(0, 255, 170, 0.15);
    color: white;
    padding-left: 15px;
}

.h-submenu-icon {
    margin-right: 8px;
    font-size: 13px;
    color: #00ffaa;
    min-width: 18px;
    text-align: center;
}

.h-submenu .h-submenu {
    top: 0;
    left: 100%;
    margin-left: 1px;
    display: none;
}

.h-submenu-item.has-submenu:hover > .h-submenu {
    display: block;
}

.h-submenu-link .fa-chevron-right {
    margin-left: auto;
    font-size: 11px;
    color: #00ffaa;
    transition: transform 0.2s ease;
}

.h-submenu-item.has-submenu:hover .fa-chevron-right {
    transform: rotate(90deg);
}

.h-category-header {
    background: rgba(0, 168, 107, 0.25);
    padding: 6px 12px;
    color: #00ffaa;
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0, 255, 170, 0.15);
    cursor: default;
}

/* Header Banner - minimal gap between title and divider */
.header-banner {
    text-align: center;
    padding: 15px 20px 0 20px;
    margin: 0 auto;
    max-width: 800px;
}

.banner-title {
    font-size: 4.2rem;
    font-family: 'Arial Narrow', 'Franklin Gothic Medium', 'Arial', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 0, 255, 0.3);
    opacity: 0;
    animation: fadeInOut 6s ease-in-out infinite;
    line-height: 1.1;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(10px); }
    25% { opacity: 1; transform: translateY(0); }
    75% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

.banner-title .blue-text {
    color: #0000FF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 0, 255, 0.4);
}

.banner-title .red-text {
    color: #DD0000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 15px rgba(221, 0, 0, 0.4);
}

.banner-title .white-text {
    color: #ffffff;
}

.banner-divider {
    width: 100%;
    max-width: 680px;
    height: 4px;
    background: linear-gradient(to right, #0000FF, #DD0000);
    margin: 0 auto;
    border-radius: 2px;
    opacity: 0.8;
    animation: dividerPulse 6s ease-in-out infinite;
}

@keyframes dividerPulse {
    0%, 100% { opacity: 0.5; transform: scaleX(0.95); }
    50% { opacity: 1; transform: scaleX(1); }
}

/* fadeIn animation for nav */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.horizontal-nav {
    animation: fadeIn 0.4s ease-out;
}

.h-menu-link:focus,
.h-submenu-link:focus {
    outline: 2px solid #00ffaa;
    outline-offset: 2px;
}

.submenu-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ff6666;
    background: rgba(255, 50, 50, 0.1);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
    font-size: 14px;
}

/* Responsive adjustments - maintain increased size with slight scaling for smaller screens */
@media (max-width: 1024px) {
    .horizontal-menu {
        justify-content: flex-start;
        overflow-x: auto;
    }
    .h-menu-link {
        min-width: 95px;
        padding: 8px 10px;
    }
    .banner-title {
        font-size: 3rem;
        margin-bottom: 2px;
    }
    .header-banner {
        padding: 10px 15px 0 15px;
    }
    .h-menu-text {
        font-size: 15px; /* Slightly reduced for tablet but still prominent */
    }
    .submenu-close {
        display: block;
    }
    /* mobile submenu fix */
    .h-submenu {
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%);
        max-width: 90%;
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 8px;
    }
    .h-submenu .h-submenu {
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 768px) {
    .h-menu-link {
        min-width: 85px;
        padding: 6px 8px;
    }
    .banner-title {
        font-size: 2.5rem;
        margin-bottom: 2px;
    }
    .header-banner {
        padding: 8px 15px 0 15px;
    }
    .h-menu-text {
        font-size: 14px;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 2rem;
        margin-bottom: 2px;
    }
    .header-banner {
        padding: 5px 10px 0 10px;
    }
    .h-menu-text {
        font-size: 13px; /* Still ~30% larger than original 10px on smallest screens */
        letter-spacing: 0.2px;
    }
    .h-menu-icon {
        font-size: 15px;
    }
}