/* Reset and General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
}

.main-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 15px;
    display: flex;
    gap: 20px;
    position: relative; /* Added for absolute positioning context */
}

/* Category Menu Styles */
.category-menu {
    width: 250px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: column;
    height: 400px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-menu::-webkit-scrollbar {
    display: none;
}

.menu-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
}

.menu-item:hover {
    background-color: #f0f0f0;
}

.menu-item.active {
    background-color: #e0e0e0;
}

.menu-item i, .menu-item img {
    width: 20px;
    margin-right: 12px;
    font-size: 18px;
    color: #333;
}

.menu-item span {
    font-size: 15px;
    color: #333;
}

/* Menu Hover Area (Submenu) - FIXED */
.menu-hover-area {
    position: absolute;
    left: 250px; /* Positioned right after the menu width */
    top: 0;
    width: 700px;
    height: 400px;
    background-color: #f0f8ff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    padding: 20px;
    border-radius: 0 10px 10px 0;
    z-index: 99;
    display: none; /* Hidden by default */
}

/* Show the menu when active */
.menu-hover-area.active {
    display: flex;
}

.submenu-column {
    flex: 1;
    padding: 0 15px;
}

.submenu-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.submenu-items {
    list-style: none;
}

.submenu-items li {
    margin-bottom: 10px;
}

.submenu-items a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.submenu-items a:hover {
    color: #0066cc;
}

/* Hero Slider Styles */
.hero-slider {
    flex: 1;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-size: cover; /* Ensure the background image covers the full area */
    background-position: center;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 50%;
}

.slide-title {
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.slide-subtitle {
    font-size: 24px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    max-width: 400px;
    font-weight: 300;
}

.slide-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #ff0000;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 16px;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.slide-btn:hover {
    background-color: #cc0000;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.slider-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: white;
}

@media (max-width: 1000px) {
    .main-container {
        flex-direction: column;
    }

    .category-menu {
        width: 100%;
        height: auto;
    }

    .menu-hover-area {
        left: 0;
        top: 100%;
        width: 100%;
        height: auto;
        border-radius: 0 0 10px 10px;
        flex-wrap: wrap;
        position: absolute;
    }

    .submenu-column {
        flex: 0 0 50%;
        margin-bottom: 20px;
    }

    .slide-content {
        max-width: 80%;
    }

    .slide-title {
        font-size: 36px;
    }

    .slide-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .submenu-column {
        flex: 0 0 100%;
    }

    .slide-content {
        max-width: 100%;
    }

    .slide-title {
        font-size: 28px;
    }

    .slide-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 1000px) {
    .hero-slider {
        height: 50vw;
    }
}

@media (max-width: 600px) {
    .hero-slider {
        height: 60vw;
    }
}


