﻿/* Reset and Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    background-color: #f4f4f4;
}

/* Hero Section */
.hero-container {
    position: relative;
    height: 600px;
    background-image: url('../../../../../../../../../images/fabric-bg.jpg"); /* Use an actual image file */
    background-size: cover;
    background-position: center;
}


.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Quote Section */
.quote-container {
    margin-top: 30px;
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    color: #333;
}

/* Categories Section */
.categories-section {
    padding: 20px 20px;
    text-align: center;
}

.categories-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 10px;
}

.category {
    background: #fbe9d0;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.category img {
    width: 100%;
    max-width: 250px; /* Enforce a maximum width */
    height: 200px; /* Enforce a consistent height */
    object-fit: cover; /* Ensures the image is cropped proportionally */
    border-radius: 5px;
    margin-bottom: 10px;
}


.category p {
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
}

/* Responsive Design */

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .text-overlay {
        font-size: 1.8rem;
    }

    .categories-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        height: 300px;
    }

    .text-overlay {
        font-size: 1.5rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}