/* =================== LAYOUT =================== */
.layout {
    display: flex;
    gap: 30px;
    max-width: 1450px;
    margin: 20px auto;
    padding: 0 20px;
    align-items: stretch; /* sidebar matches slider height */
}
 .content {
                  flex: 3;
              }
/* =================== LEFT SIDEBAR =================== */
.left-sidebar {
    position: sticky;
    top: 100px;
    width: 300px;       /* slim */
    /* background: #0c0c33ff; */
    background: rgb(41, 66, 114);
    color: #fff;
    padding: 15px;
    flex-shrink: 0;
    border-radius: 12px;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.sidebar-menu li {
    margin-bottom: 12px;
}

.sidebar-menu a {
    display: block;
    width: 100%;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: background 0.25s;
}

.sidebar-menu a:hover {
     background: rgb(243, 189, 71);
}

/* =================== SLIDER =================== */
.fresh-slider-container {
    position: relative;
    width: 100%;
    height: 100%;          /* match the parent height */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.fresh-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.fresh-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    z-index: 0;
}

.fresh-slide.active {
    opacity: 1;
    z-index: 1;
}

.fresh-content {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
   color: #fd1717;
    z-index: 2;
}

.fresh-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.7);
}

.fresh-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.fresh-button {
    display: inline-block;
    padding: 12px 30px;
    background: #e30613;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.fresh-button:hover {
    background: #c1121f;
    transform: translateY(-3px);
}

/* Arrows */
.fresh-prev, .fresh-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.fresh-prev { left: 15px; }
.fresh-next { right: 15px; }

.fresh-prev:hover, .fresh-next:hover {
    background: #e30613;
    transform: translateY(-50%) scale(1.2);
}

/* Dots */
.fresh-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.fresh-dots span {
    width: 14px;
    height: 14px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.fresh-dots span.active {
    background: #e30613;
    transform: scale(1.5);
    box-shadow: 0 0 15px rgba(227,6,19,0.7);
}

/* Mobile: hide sidebar */
@media (max-width: 991px) {

    .left-sidebar {
        position: fixed;
        top: 0;
        left: -260px;       /* hidden off-screen */
        width: 260px;
        height: 100vh;
        display: block;    /* IMPORTANT */
        z-index: 1000;
        transition: left 0.3s ease;
        border-radius: 0;
    }

    .left-sidebar.open {
        left: 0;           /* visible */
    }
}




/* Mobile open button */
.mobile-menu-btn {
    display: none;
    margin: 15px;
    padding: 10px 18px;
    background: #1e1e2f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

/* Close button */
.close-sidebar {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    margin-bottom: 15px;
    cursor: pointer;
}

/* Mobile behavior */
@media (max-width: 991px) {

    .mobile-menu-btn {
        display: inline-block;
    }

    .left-sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        width: 260px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        border-radius: 0;
    }

    .left-sidebar.open {
        left: 0;
    }

    .close-sidebar {
        display: block;
    }
}



.submenu {
    display: none;
    padding-left: 18px;
}

.sidebar-item.open .submenu {
    display: block;
}

.cat-header {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.toggle-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.sidebar-item.open .toggle-icon {
    transform: rotate(90deg);
}
@media (max-width: 991px) {
    .fresh-slider-container {
        height: 260px;
    }
}

/* mobile text h2*/
@media (max-width: 991px) {

    .fresh-content h2 {
        font-size: 1.5rem; /* ~24px */
        margin-bottom: 6px;
    }

    .fresh-content p {
        font-size: 0.9rem; /* ~14px */
        margin-bottom: 12px;
    }

    .fresh-button {
        padding: 8px 20px;
        font-size: 13px;
    }

    /* Optional: move content up slightly */
    .fresh-content {
        bottom: 20px;
    }
}
