:root {--color-primary: #ffe2bcc3;
    --color-primary-light: hsl(242, 91%, 69%, 18%);
    --color-primary-variant: #FFDEAD;
    --color-red: #da0f3f;
    --color-red-light: hsl(346, 87%, 46%, 15%);
    --color-green: #4bc9ff;
    --color-green-light: hsl(156, 100%, 38%, 15%);
    --color-gray-900: transparent;
    --color-gray-700: #4bc9ff;
    --color-gray-300: rgba(242, 242, 254, 0.3);
    --color-gray-200: rgba(242, 242, 254, 0.7);
    --color-white: #000000;
    --color-bg: #4bc9ff
    ;

    --transition: all 300ms ease;

    --container-width-lg: 74%;
    --container-width-md: 88%;
    --form-width: 40%;

    --card-border-radius-1: 0.3rem;
    --card-border-radius-2: 0.5rem;
    --card-border-radius-3: 0.8rem;
    --card-border-radius-4: 2rem;
    --card-border-radius-5: 5rem;
}

*{
    margin: 0;
    padding: 0;
    outline: 0;
    border: 0;
    appearance: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}


body{
    margin: 0;
    padding: 0;
    height: 100%;
    background-size: cover;
    background-blend-mode: darken;
}

/* Styling for the slider */
.slider {
    display: flex;
    justify-content: center; /* Center the slider */
    padding: 20px;
  }
  
  .myslider {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .slider-content {
    display: flex;
    align-items: center; /* Vertically center the content */
    width: 100%;
  }
  
  .slider-image {
    text-align: center;
  }
  
  .slider-image img {
    width: 100%; /* Ensure the image is responsive */
    height: auto; /* Maintain image aspect ratio */
    border-radius: 8px; /* Optional: Adds rounded corners */
  }
.prev, .next{
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    font-size: 50px;
    padding: 15px;
    cursor: pointer;
    color: #fff;
    transition: 0.1s;
    user-select: none;
}

.prev:hover, .next:hover{
    color: #3498db;
}
.next{
    right: 0;
}
.dot{
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 3px solid #fff;
    border-radius: 50%;
    margin: 0 10px;
    cursor: pointer;

}

.active, .dot:hover{
    border-color: #3498db;
}


.txt h1{
    color: #3498db;
    font-weight: bold;
    margin-bottom: 20px;
}

.txt p{
    font-weight: bold;
    font-size: 20px;
}


span{
    color: var(--color-white);
}

.mt-3 {
    margin-top: 1rem;
  }
.pt-5 {
    padding-top: 3rem;
  }

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    background-size: cover;
}

.container {
    width: var(--container-width-lg);
    max-width: 1800px;
    margin-inline: auto;
}
section{
    margin-top: 3rem;
    width: 100vw;
}

h1, h2, h3, h4, h5 {
    color: var(--color-white);
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    margin: 1rem 0;
}

h2 {
    font-size: 1.7rem;
    margin: 1rem 0;
}

h3 {
    font-size: 1.1rem;
    margin: 0.8rem 0 0.5rem;
}

h4 {
    font-size: 1rem;
}

a {
    color: var(--color-white);
    transition: var(--transition);
}

p{
    color: aliceblue;
}

img{
    display: block;
    width: 100%;
    object-fit: cover;
}

.small-img-group-f {
    display: flex;
}

.small-img-group {
    display: flex;
    transform: translateY(50px);
    opacity: 0;
    transition: 0.3s all;
}

.post:hover .small-img-group{
    transform: translateY(0);
    opacity: 1;
}

.small-img-col {
    flex: 1; /* Ensures all columns take up equal space */
    max-width: 20%; /* Ensures images don't grow too large, adjust as needed */
    padding: 2px; /* Adds padding around the images */
}

.small-img {
    width: 70%;
    height: auto;
    object-fit: cover; /* Ensures images cover the area without distortion */
    border-radius: 4px; /* Adds rounded corners to images */
}


nav {
    background-color: #fff;
    width: 100vw;
    height: 6rem;
    position: fixed;
    top: 0;
    z-index: 10;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.2);

}

nav button {
    display: none;
}

.nav_container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 0.3rem solid var(--color-bg);
    box-shadow: 0 0 0.5rem var(--color-secondary);
}


.nav_logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-accent);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.nav_items {
    display: flex;
    align-items: center;
    gap: 3rem;
    color: var(--color-bg);
}

.nav_items a {
    text-decoration: none;
    color: var(--color-bg);
    font-weight: 500;
    transition: color 0.3s;
}

.nav_items a:hover {
    color: #ccc;
    background: #04003aa9;
    border-radius: 4px;
}

.nav_profile {
    position: relative;
    cursor: pointer;
}

.nav_profile ul {
    position: absolute;
    top: 140%;
    right: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3rem 3rem #FFF8DC;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
    background: var(--color-gray-700);
    border-radius: 0.5rem;
}

.nav_profile:hover > ul {
    visibility: visible;
    opacity: 1;
}


.nav_profile ul li a {
    padding: 1rem;
    background: var(--color-gray-900);
    color: black;
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--color-bg);
    transition: background 0.3s;
}

.nav_profile ul li a:hover {
    background: #000000;
}

.nav_profile ul li:last-child a {
    background: var(--color-red);
    color: var(--color-bg);
    border-bottom: none;
    transition: background 0.3s;
}

.nav_profile ul li:last-child a:hover {
    background: darkred;
}

.cart-link {
    position: relative;
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s ease;
}

.cart-link:hover {
    color: #ff6347; /* Change to your desired hover color */
}

.cart-link i.uil-shopping-cart {
    font-size: 24px;
    vertical-align: middle;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #ff6347; /* Badge background color */
    color: white; /* Badge text color */
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}


/* ==========================CATEGORY_BUTTON========================*/

.category_button{
    background-color: rgba(139, 90, 43, 0.9);
    color: var(--color-primary);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--card-border-radius-2);
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
}

.category_button:hover{
    color: var(--color-white);

}
/* ==========================hover for category========================*/
.wrapper{
    padding: 10px 10%;
}
#card-area{
    padding: 50px 0;
}
.box-area{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.box{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}

.box img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}
.overlay{
    height: 0;
    width: 100%;
    background: linear-gradient(transparent, #1c1c1c 58%);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}
.overlay h3{
    font-family: 500;
    margin-bottom: 5px;
    margin-top: 80%;
    font-family: bebas neue;
    font-size: 30px;
    letter-spacing: 2px;
}
.overlay a{
    margin-top: 10px;
    color: #262626;
    text-decoration: none;
    font-size: 14px;
    background: #fff;
    border-radius: 50px;
    text-align: center;
    padding: 5px 15px;
}
.box:hover img{
    transform: scale(1.2);
}
.box:hover .overlay{
    height: 100%;
}
/* ==========================GENERAL POST========================*/

.post_thumbnail{
    border-radius: var(--card-border-radius-5) 0;
    border: 1rem solid var(--color-gray-900);
    overflow: hidden;
    margin-bottom: 1.6rem;
}



.post_author{
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
}

.post_author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--card-border-radius-3);
    overflow: hidden;
}

/* ==========================FEATUIRED========================*/


.featured {
    margin-top: 8rem;
}

.featured_container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.featured .post_thumbnail {
    height: fit-content;
}
/* ==========================POST========================*/


.post_container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
    margin-bottom: 5rem;
}

/* ==========================CATEGOPRY BOTTONS========================*/

.category_buttons{
    padding: 4rem 0;
    border-top: 2px solid var(--color-gray-900);
    border-bottom: 2px solid var(--color-gray-900);
}

.category_buttons-conatiner{
    width: fit-content;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* ==========================CATEGOPRY BOTTONS========================*/


footer{
    background: rgba(88, 87, 87, 0.696);
    padding: 5rem 0 0;
    box-shadow: inset 0 1.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.footer_socials{
    margin-inline: auto;
    width: fit-content;
    margin-bottom: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.footer_socials a {
    background: var(--color-bg);
    border-radius: 50%;
    width: 2.3rem;
    height: 2.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer_socials a:hover{
    background: var(--color-white);
    color: var(--color-bg);
}

.footer_container{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

footer h4{
    color: var(--color-white);
    margin-bottom: 0.6rem;
}

footer ul a{
    opacity: 0.75;
}

footer ul li{
    padding: 0.4rem 0;
}

footer ul a:hover{
    letter-spacing: 0.2rem;
    opacity: 1;
}

.footer_copyright{
    text-align: center;
    padding: 1.5rem 0;
    border-top: 2px solid var(--color-bg);
    margin-top: 4rem;
}

/* ==========================MEDIA search ========================*/

.search_bar{
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.search_bar-container{
    position: relative;
    width: 20rem;
    background: rgba(195, 242, 246, 0.9);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    margin: 0.6rem 1rem;
    border-radius: var(--card-border-radius-2);
    color: #2600ff;
    font-size: 16;
}

.search_bar-container > div {
    width: 100%;
    display: flex;
    align-items: center;
}

.search_bar input {
    background: transparent;
    margin-left: 0.7rem;
    padding: 0.5rem 0;
    width: 100%;
}

.search_bar input::placeholder{
    color: #ac9efa;
}

.search_bar-container > div {
    position: relative; /* Ajoute ceci */
    width: 100%;
    display: flex;
    align-items: center;
}

#search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
    display: none; /* activé dynamiquement en JS */
    border-radius: 4px;
    font-size: 14px;
}

#search-suggestions li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

#search-suggestions li:hover {
    background-color: #f0f0f0;
}



/* ========================== BUTTON ========================*/
.btn{
    display: inline-block;
    width: fit-content;
    padding: 0.6rem 1.2rem;
    background: var(--color-primary);
    border-radius: var(--card-border-radius-2);
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-white);
}

.btn.sm{
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
}

.btn.danger{
    background: var(--color-red);
}

.btn:hover{
    background: var(--color-white);
    color: var(--color-bg);
}
/* ========================== SINGLE POST ========================*/
.singlepost{
    margin: 6rem 0 2rem;
}
.singlepost_container{
    width: var(--form-width);
    background: var(--color-gray-900);
    padding: 1rem 2rem 3rem;
}

.singlepost_thumbnail{
    margin: 1.5rem 0 1rem;
}

.singlepost_container p {
    margin-top: 1rem;
    list-style: 1.7rem;
}

/* ========================== CATEGORY POST ========================*/
.category_title{
    height: 15rem;
    margin-top: 4.5rem;
    background: var(--color-gray-900);
    display: grid;
    place-items: center;
}

/* ========================== EMPTY PAGES ========================*/
.empty_page{
    height: 70vh;
    display: grid;
    place-items: center;
}

/* ========================== GENERAL FORM ========================*/
.form_section{
    display: grid;
    place-items: center;
    height: 100vh;
}

.form_section-container{
    width: var(--form-width);
}

.alert_message{
    padding: 0.8rem 1.4rem ;
    margin-bottom: 1rem;
    border-radius: var(--card-border-radius-2);
}
.alert_message.error{
    background: var(--color-red-light);
    color: var(--color-red);
}
.alert_message.success{
    background: var(--color-green-light);
    color: var(--color-green);
}
form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form_control{
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form_control.inline{
    flex-direction: row;
    align-items: center;
}

input, textarea, select{
    padding: 0.8rem 1.4rem;
    background: #FFF8DC;
    border-radius: var(--card-border-radius-2);
    resize: none;
    color: #20B2AA;
}
.form_section small{
    margin-top: 1rem;
    display: block;
}

.form_section small a{
    color: var(--color-primary);
}

/* ==========================DASHBOARD========================*/
.dashboard{
    margin-top: 6rem;
}

.sidebar_toggle {
    display: none;
}

.dashboard_container {
    display: grid;
    grid-template-columns: 14rem auto;
    gap: 1rem;
    background: var(--color-gray-900);
    padding: 2rem;
    margin-bottom: 5rem;
}

.dashboard aside a {
    background: var(--color-primary);
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.6rem;
}

.dashboard aside ul li:not(:last-child) a{
    border-bottom: 1px solid var(--color-gray-900);
}

.dashboard aside a:hover{
    background: var(--color-gray-700);
}

.dashboard aside a.active{
    background: var(--color-gray-900);
}

.dashboard main{
    margin-left: 1.5rem;
}

.dashboard main h2{
    margin: 0 0 2rem 0;
    line-height: 1;
}

.dashboard main table{
    width: 100%;
    text-align: left;
}

.dashboard main table th{
 background: #c5e3ec;
 padding: 0.4rem;
 color: var(--color-white);
}

.dashboard main table td{
    padding: 0.4rem;
    border-bottom: 1px solid black;
}

.dashboard main table tr:hover td{
    background-color: #c5e3ec;
    color: var(--color-white);
    cursor: default;
    transition: var(--transition);
}

/* ==========================DASHBOARD========================*/

/* ==========================add to cart========================*/

.cart {
    background: #d38b4d;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.cart .p-price {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.cart .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f4f4f4;
    color: #d38b4d;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
    font-size: 1em;
}

.cart .btn:hover {
    background: #d38b4d;
    color: #fff;
}
/* ==========================cart========================*/

h2.font-weight-bold{
    font-size: 1.7rem;
    margin: 1rem 0;
    margin-top: 50px;
    padding: 2rem;
}


.cart1 table {
    width: 100%;
    border-collapse: collapse;
}

.cart1 .product-info{
    display: flex;
    flex-wrap: wrap;
}

.cart1 th{
    text-align: left;
    padding: 5px 10px;
    color: #FFF8DC;
    background-color: var(--color-bg);
}

.cart1 td{
    padding: 10px 20px;
}

.cart1 td img{
    width: 80px;
    height: 80px;
    margin-right: 10px;
}

.cart1 td input{
    width: 40px;
    height: 30px;
    padding: 5px;
}

.cart1 td a{
    color: var(--color-red);
}

.cart1 span{
    color: var(--color-white);
}

.cart1 small{
    color: var(--color-white);
}

.cart1 .remove-btn{
    text-decoration: none;
    font-size: 14px;
    background-color: none;
    border: none;
    width: 100%;
}

.cart1 .edit-btn{
    text-decoration: none;
    font-size: 14px;
    background-color: none;
    border: none;
    width: 100%;
}




.cart1-total{
    display: flex;
    justify-content: flex-end;
    color: var(--color-white);
}

.cart1-total table {
    width: 100%;
    max-width: 500px;
    border-top: 3px solid var(--color-bg);
}
 
td:last-child{
    text-align: right;
    color: var(--color-white);
}

th:last-child{
    text-align: right;
    color: var(--color-white);
}


.checkout-container{
    padding: 0.8rem 1.4rem;
    display: flex;
    justify-content: flex-end;
}

/* Style the form containing the quantity input */


/* Style the quantity input */

.quantity-controls {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    align-items: center; /* Center items horizontally */
}

/* Style the quantity input */
.quantity-input {
    width: 60px;
    height: 30px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
    padding: 0 5px;
    box-sizing: border-box;
}

/* Style the buttons */
.quantity-btn {
    width: 20px;
    height: 20px;
    background-color: #757575a9;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
}

/* ==========================ACCOUNT========================*/
#account-form{
    width: 50%;
    margin: 35px auto;
    text-align: center;
    padding: 20px;
}

.account-info p, .form-group label {
    font-size: 16px;
    color: #fffcfc;
}

.form-control {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px; /* Rounded corners */
}

hr.mx-auto {
    width: 40px;
    border: 2px solid var(--color-bg);
    margin-bottom: 60px;
}

.form-group input {
    width: 10rem;
}

.account .grid {
    display: flex;
    justify-content: center;
    text-align: center;
  }
  
  .account .g-col-6 {
    flex: 0 0 50%;
    box-sizing: border-box;
  }
  
  .account .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .account .text-center {
    text-align: center;
  }
  
  .account .mt-3 {
    margin-top: 1rem;
  }
  
  .account .pt-5 {
    padding-top: 3rem;
  }
  
  .account .form-group {
    margin-bottom: 1rem;
  }
  
  .account .btn {
    background-color: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
  }
  
  .account .btn:hover {
    background-color: #0056b3;
  }

/* ==========================Orders========================*/
.orders table{
    width: 100%;
    border-collapse: collapse;
}

.orders .product-info{
    display: flex;
    flex-wrap: wrap;
}

.orders th {
    padding: 5px 10px;
    color: black;
    background-color: var(--color-bg);
    /*text-align: left;*/
}

/*.orders th:nth-child(2){
    /*text-align: right;*/


.orders td{
    padding: 10px 20px;
}

.orders td img{
    width: 80px;
    height: 80PX;
    margin-right: 10px;
}

.orders .order-details-btn{
    color: black;
    display: flex;
    justify-content: flex-end;

}

/* ==========================cart not========================*/
/* Shopping cart styles */
/* Shopping cart styles */



/* ==========================number input========================*/


/* ==========================MEDIA QUERIES========================*/


@media screen and (max-width: 1340px) {
    /* ==========================general========================*/

    .container {
        width: var(--container-width-md);
    }

    h2{
        font-size: 1.6rem;
    }
    h3{
        font-size: 1.2rem;
    }
    h5{
        font-size: 0.8rem;
    }
/* ==========================NAV========================*/

.small-img-group {
    display: flex;
}

.small-img-col {
    flex: 1; /* Ensures all columns take up equal space */
    max-width: 20%; /* Ensures images don't grow too large, adjust as needed */
    padding: 2px; /* Adds padding around the images */
}

.small-img {
    width: 70%;
    height: auto;
    object-fit: cover; /* Ensures images cover the area without distortion */
    border-radius: 4px; /* Adds rounded corners to images */
}
    nav button {
        display: inline-block;
        font-size: 1.5rem;
        background: transparent;
        color: var(--color-white);
        cursor: pointer;
    }

    nav button#close_nav-btn{
        display: none;
    }

    .nav_container{
        position: relative;
    }

    .nav_items{
        position: absolute;
        flex-direction: column;
        top: 100%;
        right: 0;
        width: 12rem;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        display: none;
    }

    .nav_items li {
        width: 100%;
        height: 4.5rem;
        display: flex;
        align-items: center;
        box-shadow: -2rem 3rem 7rem rgba(0, 0, 0, 0.7);
        background: var(--color-gray-900);
        border-top: 1px solid var(--color-bg);
        animation: aniateDropdown 1s 0s ease forwards;
        opacity: 0;
        transform-origin: top;
    }

    .nav_items li:nth-child(2) {
        animation-delay: 200ms;
    }
    .nav_items li:nth-child(3) {
        animation-delay: 400ms;
    }
    .nav_items li:nth-child(4) {
        animation-delay: 600ms;
    }
    .nav_items li:nth-child(5) {
        animation-delay: 800ms;
    }

    @keyframes aniateDropdown {
        0% {
            transform: rotateX(90deg);
        }

        100% {
            transform: rotateX(0deg);
            opacity: 1;
        }
    }

    .nav_items li a {
        color: #000000;
        border-radius: 0;
        width: 100%;
        height: 100%;
        background: #8adcfc;
        padding: 0 2rem;
        display: flex;
        align-items: center;
    }
    .nav_profile{
        background: var(--color-gray-900);
    }
    .nav_profile ul{
        top: 100%;
        width: 100%;
    }

    .nav_profile .avatar{
        margin-left: 2rem;
        border: 0;
    }

    .featured_container {
        gap: 3rem;
    }

    .post_container{
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer_container{
        grid-template-columns: 1fr 1fr;
    }

    /*============*/
    .slider-content {
        display: flex;
        align-items: center; /* Vertically center the content */
        width: 100%;
        flex-direction: row-reverse; /* This moves the image to the right */
      }
      
      .slider-image {
        flex: 0 0 40%; /* This ensures the image takes 40% of the width */
        text-align: center;
      }
      
      .slider-image img {
        width: 100%; /* Ensure the image is responsive */
        height: auto; /* Maintain image aspect ratio */
        border-radius: 8px; /* Optional: Adds rounded corners */
        object-fit: cover; /* Ensures image fits well in its container */
      }
    /* =========== BLOG =============*/
 .search_bar-container {
    width: 60%;
 }
    /* =========== GENERAL FORM =============*/
.form_section-container{
    padding: 3rem;
}

/* ==========================DASHBOARD========================*/
.dashboard_container {
    grid-template-columns: 4.3rem auto;
    background: transparent;
    padding: 0;
}

.dashboard aside h5{
    display: none;
}

.dashboard main table th{
display: none;
}

.dashboard main table tr{
    display: flex;
    flex-direction: column;
}

.dashboard main table tr:nth-child(even){
    background: var(--color-gray-900);
}

.dashboard main table tr:hover td{
    background-color: transparent;
}

.myslider{
    height: 500px;
    }
    
    .txt{
    line-height: 25px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-animation-name: posi2;
    -webkit-animation-duration: 2s;
    animation-name: posi2;
    animation-duration: 2s;
    }
    
    @-webkit-keyframes posi2 {
    from {top: 35%;}
    to {top: 50%;}
    }
    
    @keyframes posi2 {
    from {top: 35%;}
    to {top: 50%;}
    }
    
    .txt h1{
    font-size: 40px;
    }
    
    .txt p{
    font-size: 13px;
    }
}

/* ==========================MEDIA QUERIES========================*/

@media screen and (max-width: 600px) {
    section{
        margin-top: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    .featured{
        margin-top: 6rem
    }

    .featured_container{
        grid-template-columns: 1fr;
        gap: 0;
    }

    .post_container{
        grid-template-columns: 1fr;
    }

    .category_buttons-conatiner{
        grid-template-columns: 1fr 1fr;
    }

    .footer_container{
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
        /*=================*/

        .nav_items li a {
            color: #000000;
            border-radius: 0;
            width: 100%;
            height: 100%;
            background: #8adcfc;
            padding: 0 2rem;
            display: flex;
            align-items: center;
        }

        .slider-content {
            display: flex;
            align-items: center; /* Vertically center the content */
            width: 100%;
            flex-direction: row-reverse; /* This moves the image to the right */
          }
          
          .slider-image {
            flex: 0 0 40%; /* This ensures the image takes 40% of the width */
            text-align: center;
          }
          
          .slider-image img {
            width: 100%; /* Ensure the image is responsive */
            height: auto; /* Maintain image aspect ratio */
            border-radius: 8px; /* Optional: Adds rounded corners */
            object-fit: cover; /* Ensures image fits well in its container */
          }
        /* =========== BLOG =============*/
 .search_bar-container {
    width: var(--container-width-lg);
 }

     /* =========== SINGLE POST =============*/
.singlepost {
    background: transparent;
    padding: 0;
}

    /* =========== GENERAL FORM =============*/
    .form_section-container{
        padding: 0;
    }

    /* =========== DASHBOARD =============*/
    .dashboard{
        margin-top: 5rem;
    }
    .dashboard_container{
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dashboard main {
        margin: 0;
    }

    .dashboard main h2{
        margin-top: 1rem;
    }

    .dashboard aside {
        position: fixed;
        box-shadow: 2rem 0 4rem rgba(0, 0, 0, 0.4);
        left: -100%;
        height: 100vh;
        transition: var(--transition);
        background: var(--color-primary);
    }

    .dashboard .sidebar_toggle{
        display: inline-block;
        background: var(--color-primary-variant);
        color: var(--color-white);
        position: fixed;
        right: 0;
        bottom: 4rem;
        z-index: 1;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 50% 0 0 50%;
        font-size: 1.3rem;
        cursor: pointer;
        box-shadow: -1rem 0 2rem rgba(0, 0, 0, 0.2);
    }

    .dashboard aside a h5 {
        display: inline-block;
    }


    #hide_sidebar-btn {
        display: none;
    }

    .txt h1{
        font-size: 30px;
        }
        
        .sign{
        margin-right: 20px;
        }
        
        .sign a{
        font-size: 12px;
        }


        .quantity-form {
            flex-direction: column;
            align-items: flex-start;
        }
    
        .quantity-input {
            width: 100%;
            margin-bottom: 10px;
        }

    .small-img-group {
            display: flex;
        }
        
    .small-img-col {
            flex: 1; /* Ensures all columns take up equal space */
            max-width: 20%; /* Ensures images don't grow too large, adjust as needed */
            padding: 2px; /* Adds padding around the images */
        }
        
    .small-img {
            width: 70%;
            height: auto;
            object-fit: cover; /* Ensures images cover the area without distortion */
            border-radius: 4px; /* Adds rounded corners to images */
        }
}
