/* homePage.css */

/* Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f5f5f5;
}

/* Arrow Button Styles */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 10px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next {
    right: 0;
    border-radius: 0 3px 3px 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}



.content {
    text-align: center;
    padding: 40px 10px;
}

h1 {
    font-size: 2.5rem;
    color: #333;
}

p {
    font-size: 1.2rem;
    color: #555;
    margin: 10px 0;
}

main {
    padding: 20px;
}

/* Categories Section */
.categories {
    text-align: center;
    margin-top: 30px;
}

.categories h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

.category-card {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.category-card:hover {
    transform: scale(1.05);
}

.category-card img {
    max-width: 100%;
    border-radius: 8px;
    height: 190px;
}


.category-card h4 {
    font-size: 28px;
    margin-top: 6px;
    color: rgb(17, 17, 17);
    text-align: center;
    font-weight: bold;
    margin-bottom: 2px;
}



/* Make sure main content is well-spaced and centers */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

/* Slideshow Section */
.slideshow {
    position: relative;
    width: 100%; /* Ensure the slideshow spans the entire width of the screen */
    margin: 0 auto; /* Center it horizontally */
    overflow: hidden; /* Hide overflow content */
}

.slideshow-container {
    position: relative;
    width: 100%; /* Match the full width of the screen */
}

.slide img {
    width: 100%; /* Make images take up the full width of the slideshow */
    height: 350px; /* Maintain the aspect ratio */
    margin-top: 40px; /* Remove any margins */
}

.caption {
    color: white;
    font-size: 40px;
    padding: 10px 20px; /* Add some padding around text */
    position: absolute;
    bottom: 5%; /* Move the caption slightly above the bottom */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    border-radius: 5px;
    text-align: center;
    width: fit-content; /* Ensure caption doesn't stretch too much */
    max-width: 90%; /* Prevent it from being wider than the slideshow */
}

.welomeCaption {
    color: #cce6da;
    /* color: #ffcc00; */
    font-size: 85px;
    padding: 10px 20px;
    position: absolute;
    bottom: 40%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    text-align: center;
    max-width: 90%; /* Prevent it from being wider than the slideshow */
    font-family: "Poppins", "Odoo Unicode Support Noto", sans-serif;
}

.welomeCaption h2{
    font-size: 70px;

}

.dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
    background-color: #717171;
}


/* Introduction Section */
.introduction {
    
    margin: 12px -20px;
    padding: 30px;
    
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 10px;

}

.introduction h2 {
    font-size: 50px;
    margin-bottom: 20px;
    color: #086060;
    margin-top: 0px;
    text-align: center;

}
.introduction h3 {
    font-size: 30px;
    text-align: right;
    color: #8b4e26;
}

.introduction p {
    font-size: 24px;
    color: #555;
    line-height: 1.4;
    text-align: justify;
    font-weight: 500;
    font-family: "Poppins", "Odoo Unicode Support Noto", sans-serif;
}

.yamish-img {
    border-radius: 10px; /* Add rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a shadow effect */
    width: 100%; /* Make it responsive */
    height: 90%; /* Maintain aspect ratio */
    transition: transform 0.3s ease-in-out; /* Add a smooth hover effect */
}







/* Add a hover effect for the image */




/* Responsive Layout */
@media screen and (max-width: 1200px) {
    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .content {
        padding: 30px;
    }
    .slide img {
        width: 100%;
        height: 320px;
        margin-top: 6%;

    }
    .caption {
        font-size: 20px;
    }

    .yamish-img {
        height: 85%;
    }
    
    .welomeCaption{
        font-size: 40px;
        bottom: 19%;
    }
}

@media screen and (max-width: 992px) {
    h1 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
    }

    .content {
        padding: 25px;
    }
    .slide img {
        width: 100%;
        height: 250px;
        margin-top: 9%;


    }
    .caption {
        font-size: 20px;
    }
    .yamish-img {
        height: 85%;
    }
   
    .welomeCaption{
        font-size: 40px;
        bottom: 19%;
    }
}

/* Tablet and Smaller Devices (max-width: 768px) */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 1.6rem;
    }

    p {
        font-size: 1rem;
    }
   

    .content {
        padding: 20px;
    }
    .slide img {
        width: 100%;
        height: 240px;
        margin-top: 11%;

    }
    .caption {
        font-size: 20px;
    }
    .yamish-img {
        height: 85%;
    }
    .welomeCaption{
        font-size: 40px;
        bottom: 19%;
    }
   
}

/* Small Mobile Devices (max-width: 480px) */
@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.4rem;
    }

    p {
        font-size: 0.9rem;
    }

    .content {
        padding: 15px;
    }

    

    

    .slide img {
        width: 100%;
        height: 170px;
        margin: 0%;
        margin-top: 46px;

    }
    .caption {
        font-size: 20px;
    }
    .yamish-img {
        height: 85%;
    }
    .welomeCaption{
        
        bottom: 7%;
        padding: 1px;
    }

    .category-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Always have 2 columns */
        gap: 40px; /* Space between the cards */
        justify-items: center; /* Center cards horizontally */
    }
    
    .welomeCaption h2{
        font-size: 35px;

    }
    
}
