/* Hero Section for Demo */
.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

/* Navigation Bar */
.navbar {
    background-color: transparent; /* Initial transparent */
    color: #fff;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed; /* Fixed position */
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
}

/* Scrolled State */
.navbar.scrolled {
    background-color: #fff;
    color: #231916;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled .nav-item {
    color: #231916;
}

.navbar.scrolled .nav-item:hover, .navbar.scrolled .nav-item.active {
    color: #e60013;
    background-color: transparent; /* Remove black bg on hover in light mode */
}

.navbar.scrolled .logo {
        color: #231916 !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

.nav-container {
    width: 98%;
    max-width: 1850px;
    padding: 0 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
@media (max-width:1500px){
    .nav-container {
        width: 100%;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    height: 100%;
    margin-bottom: 0px;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 25px;
    cursor: pointer;
    font-family: 'Roboto-Medium';
    font-size: 16px;
    font-weight: 400;
    color: #fff; /* Initial white text */
    transition: color 0.3s;
    position: relative;
}
.nav-item a{
    color: #fff;
}
.navbar.scrolled .nav-item a{
    color: #231916;
}
@media (max-width:1450px){
    .nav-item {
       padding: 0 15px; 
    }
}

.nav-item:hover, .nav-item.active {
    color: #e60013; /* Orange highlight */
    /* background-color: #000; Remove bg change for transparent header style */
}
.nav-item:hover a, .nav-item.active a{
    color: #e60013;
}

.nav-item i {
    margin-left: 5px;
    font-size: 10px;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    display: none; /* Hidden by default */
    z-index: 999;
    border-top: 1px solid #ddd;
}

/* Mobile Styles */
@media (max-width: 1268px) {
    .navbar {
        background-color: #1a1a1a;
    }
    
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 60px);
        background-color: #fff;
        flex-direction: column;
        transition: 0.3s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        height: auto;
        padding: 15px 20px;
        color: #333 !important; /* Force dark text in drawer */
        border-bottom: 1px solid #eee;
        justify-content: space-between;
    }
    
    .nav-item a {
        color: #333 !important; /* Force dark text for links */
    }

    .mega-menu {
        position: static; /* Stack in flow */
        width: 100%;
        box-shadow: none;
        display: none;
        border-top: none;
        top: 0 !important; /* Reset top */
    }
    
    .mega-menu.mobile-active {
        display: block;
    }

    .mega-menu-container {
        flex-direction: column;
        width: 100% !important;
        padding: 0;
        background-color: #fff;
    }

    .menu-columns {
        flex-direction: column;
        border-right: none;
        padding-right: 0;
    }

    .menu-column {
        width: 100% !important;
        padding: 10px 20px !important;
        margin-bottom: 0;
    }
    
    .preview-panel {
        display: none; /* Hide preview on mobile */
    }
    
    .column-header {
        font-size: 16px;
    }
}

.mega-menu-container {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    padding: 30px;
    min-height: 400px;
    background-color: #fff;
    
}
.navbar.scrolled .mega-menu-container{
    box-shadow: 0px 0px 5px #eee;
}

/* Menu Columns */
.menu-columns {
    flex: 4;
    display: flex;
    flex-wrap: wrap;
    border-right: 1px solid #eee;
    padding-right: 20px;
}

.menu-column {
    width: 25%;
    padding: 0 30px 20px 0;
    /*margin-bottom: 20px;*/
}

.column-header {
    display: flex;
    align-items: center;
    font-family: 'Roboto-Medium';
    font-weight: 400;
    color: #231916;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}
.column-header a{
    color: #231916;
}
.column-header a:hover{
    color: #e60013;
}

.column-header img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    object-fit: contain;
}

.column-header:hover {
    color: #e60013;
}

.submenu-list {
    list-style: none;
    padding-left: 0px; /* Align with text of header */
    margin-bottom: 25px;
}

.submenu-item {
    padding-bottom: 4px;
    margin-bottom: 4px;
    border-bottom: 1px dotted #e3e3e3;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: color 0.2s;
    text-transform: capitalize;
}
.submenu-item a{
    color: #231916;
}
.submenu-item a:hover{
    color: #e60013;
}

.submenu-item:hover {
    color: #e60013;
    border-bottom: 1px dotted #ccc;
}

/* Preview Panel */
.preview-panel {
    flex: 1;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #fafafa;
    margin-left: 10px;
    border-radius: 4px;
}

.preview-desc{
    font-size: .9em;
    color: #777;
}
.preview-title{
    color: #231916;
}

.preview-image {
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    /*border: 1px solid #eee;
    background-color: #fff;*/
}

/* Simple Mega Menu Styles (Horizontal Layout) */
.mega-menu-simple .mega-menu-container {
    min-height: auto;
    display: block;
    padding: 20px 30px;
}

.mega-menu-simple .submenu-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px; /* Space between items */
    margin-bottom: 0;
    padding-left: 0;
}

.mega-menu-simple .submenu-item {
    border-bottom: none;
    width: auto;
    padding-bottom: 0;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 500;
}

.mega-menu-simple .submenu-item a {
    color: #333;
    font-family: 'Roboto-Medium';
    transition: color 0.2s;
}

.mega-menu-simple .submenu-item:hover,
.mega-menu-simple .submenu-item:hover a {
    color: #e60013;
    border-bottom: none;
}

/* Adjust for mobile if needed */
@media (max-width: 1268px) {
    .mega-menu-simple .mega-menu-container {
        padding: 0; /* Reset padding for mobile container */
        display: block;
    }
    
    .mega-menu-simple .submenu-list {
        flex-direction: column;
        justify-content: flex-start; /* Reset centering */
        align-items: stretch; /* Full width items */
        gap: 0; /* Use border/padding for separation instead of gap */
        width: 100%;
    }

    .mega-menu-simple .submenu-item {
        width: 100%;
        padding: 10px 25px; /* Match standard mobile menu padding */
        border-bottom: 1px solid #eee; /* Add separator */
        text-align: left;
    }

    .mega-menu-simple .submenu-item:last-child {
        border-bottom: none;
    }

    .mega-menu-simple .submenu-item a {
        display: block; /* Make link fill the item */
        width: 100%;
        font-size: 14px;
        color: #333;
    }
    
    .mega-menu-simple .submenu-item:hover {
        background-color: #f9f9f9; /* Slight hover effect on mobile */
    }
}


.logo img {
    max-height: 50px;
}