/* ===================================
   DYNAMIC SIDEBAR CATEGORIES
   Responsive Category Navigation
   =================================== */

.hero-slider-section {
    background: #ffffff;
    padding: 20px 0;
    margin-bottom: 40px;
}

.hero-slider-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: flex-start;
    overflow: visible;
}

/* Sidebar Categories */
.sidebar-categories {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: visible;
    height: fit-content;
    position: sticky;
    top: 20px;
    z-index: 50;
}

.categories-header {
    background: linear-gradient(135deg, var(--hero-primary) 0%, var(--hero-primary-light) 100%);
    color: white;
    padding: 16px 20px;
    border-bottom: 3px solid var(--hero-accent);
    border-radius: 12px 12px 0 0;
}

.categories-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.categories-title i {
    font-size: 1.2rem;
}

.categories-nav {
    padding: 0;
    border-radius: 0 0 12px 12px;
}

.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item-sidebar {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
    position: relative;
}

.category-item-sidebar:last-child {
    border-bottom: none;
}

.category-item-sidebar:hover {
    background-color: #f9fafb;
}

.category-link-sidebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--hero-text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.category-link-sidebar:hover {
    color: var(--hero-primary);
    background-color: #f9fafb;
    padding-left: 18px;
}

.category-item-sidebar:hover > .category-link-sidebar {
    background-color: #f9fafb;
}

.category-icon-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #d1fae5 0%, #fef3c7 100%);
    border-radius: 8px;
    color: var(--hero-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.category-item-sidebar:hover .category-icon-sidebar {
    background: linear-gradient(135deg, var(--hero-accent) 0%, var(--hero-primary-light) 100%);
    color: white;
    transform: scale(1.1);
}

.category-text {
    flex: 1;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-toggle {
    color: var(--hero-primary);
    font-size: 0.8rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.category-item-sidebar:hover .category-toggle {
    opacity: 1;
    transform: translateX(4px);
}

/* Subcategories - Dropdown Overlay Style */
.subcategories-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(26, 107, 107, 0.15);
    position: absolute;
    left: 100%;
    top: 0;
    width: 280px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.category-item-sidebar:hover .subcategories-list {
    max-height: 600px;
    opacity: 1;
    transform: translateX(10px);
    pointer-events: auto;
}

.category-item-sidebar {
    position: relative;
}

.subcategory-item {
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.subcategory-item:last-child {
    border-bottom: none;
}

.subcategory-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: var(--hero-text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.subcategory-link:hover {
    color: var(--hero-primary);
    background: #f9fafb;
    padding-left: 18px;
}

.subcategory-link i {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--hero-primary);
    opacity: 0.5;
}

.subcategory-item:hover .subcategory-link i {
    opacity: 1;
    transform: translateX(2px);
}

/* Childcategories - Nested Dropdown */
.childcategories-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(26, 107, 107, 0.12);
    position: absolute;
    left: 100%;
    top: 0;
    width: 260px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 101;
    pointer-events: none;
}

.subcategory-item:hover .childcategories-list {
    max-height: 600px;
    opacity: 1;
    transform: translateX(10px);
    pointer-events: auto;
}

.childcategory-item {
    border-bottom: 1px solid #f0f0f0;
}

.childcategory-item:last-child {
    border-bottom: none;
}

.childcategory-link {
    display: block;
    padding: 10px 16px;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.childcategory-link:hover {
    color: var(--hero-primary);
    background: #f9fafb;
    padding-left: 18px;
}

.categories-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 0.95rem;
}

/* ===================================
   DYNAMIC HERO SLIDER
   Owl Carousel Styling
   =================================== */

.hero-slider-content {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(26, 107, 107, 0.12);
    background: white;
}

.hero-slider {
    position: relative;
}

.hero-slider .owl-item {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Owl Carousel Dots */
.hero-slider .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.hero-slider .owl-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-slider .owl-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero-slider .owl-dot.active {
    background: var(--hero-accent);
    width: 32px;
    border-radius: 6px;
    border-color: white;
}

/* Owl Carousel Navigation */
.hero-slider .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 10;
    pointer-events: none;
}

.hero-slider .owl-nav button {
    pointer-events: all;
    width: 50px;
    height: 50px;
    background: rgba(26, 107, 107, 0.85);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.hero-slider:hover .owl-nav button {
    opacity: 1;
}

.hero-slider .owl-nav button:hover {
    background: var(--hero-accent);
    color: var(--hero-primary);
    transform: scale(1.15);
    border-color: var(--hero-accent);
}

.hero-slider .owl-nav button:before {
    content: '';
    font-size: 20px;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.hero-slider .owl-prev:before {
    content: '‹';
    font-size: 36px;
}

.hero-slider .owl-next:before {
    content: '›';
    font-size: 36px;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .hero-slider-wrapper {
        grid-template-columns: 250px 1fr;
        gap: 15px;
    }

    .sidebar-categories {
        top: 10px;
    }

    .hero-slider .owl-item {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-slider-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar-categories {
        position: static;
        margin-bottom: 20px;
    }

    .category-link-sidebar {
        padding: 12px 14px;
    }

    .subcategory-link {
        padding: 10px 14px 10px 50px;
    }

    .childcategory-link {
        padding: 8px 14px 8px 70px;
    }

    .hero-slider .owl-item {
        min-height: 159px;
        height: 159px;
    }

    .hero-slider .owl-nav button {
        width: 40px;
        height: 40px;
        opacity: 0.7 !important;
    }

    .hero-slider .owl-dots {
        bottom: 15px;
    }
}

@media (max-width: 576px) {
    .sidebar-categories {
        display: none;
    }

    .hero-slider-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-slider .owl-item {
        min-height: 159px;
        height: 159px;
    }

    .hero-slider .owl-nav button {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .hero-slider .owl-dots {
        gap: 6px;
        bottom: 12px;
    }

    .hero-slider .owl-dot {
        width: 10px;
        height: 10px;
    }

    .hero-slider .owl-dot.active {
        width: 28px;
    }
}

/* Smooth Transitions */
.hero-slider-wrapper,
.sidebar-categories,
.hero-slider-content {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .sidebar-categories,
    .hero-slider .owl-nav,
    .hero-slider .owl-dots {
        display: none;
    }
}
