 :root {
        --background-color: #f8f9fa;
        --text-color: #333;
        --card-background: #fff;
        --card-shadow: rgba(0, 0, 0, 0.1);
        --button-background: #007bff;
        --button-text-color: #fff;
        --review-card-bg: #ffffff;
        --review-card-hover-bg: #f1f1f1;
        --star-color: #ffc107;
    }

    a {
        color: #007bff;
        transition: color 0.3s;
    }

    .btn {
        background-color: var(--button-background);
        color: var(--button-text-color);
        transition: background-color 0.3s, color 0.3s;
    }

    .btn:hover {
        background-color: #0056b3;
        color: var(--button-text-color);
    }

    .category-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px; 
    justify-items: stretch;
}

.category-card {
    background-color: var(--card-background);
    border-radius: 5px;
    box-shadow: 0 4px 8px var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: auto;
    box-sizing: border-box;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--card-shadow);
}

.category-card .img-wrapper {
    width: 100%;
    padding-top: 56.25%; 
    position: relative;
    overflow: hidden;
}

.category-card .img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.category-card .category-name {
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    color: var(--text-color);
    padding: 10px 0; 
    margin: 0;
    text-decoration: none;
    border-top: 1px solid #ccc;
    flex-shrink: 0; 
}

.category-card a {
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

    .main-slide .caption {
        position: absolute;
        bottom: 15px;
        left: 15px;
        color: white;
        background: rgba(0, 0, 0, 0.6);
        padding: 8px 16px;
        border-radius: 6px;
        max-width: 80%;
        display: none;
    }

    .main-slide .caption h5 {
        font-size: 1.4rem;
        font-weight: bold;
        margin-bottom: 4px;
    }

    .main-slide .caption p {
        font-size: 0.95rem;
        opacity: 0.9;
        margin: 0;
    }

@media (min-width: 1024px) {
    .category-row {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .category-card {
        max-width: 310px;
    }
}

@media (max-width: 1024px) {
    .category-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px; 
    }

    .category-card {
        width: 100%; 
    }

    .category-card .category-name {
        font-size: 0.9rem; 
        padding: 8px 0;
    }
    .main-slide {
        width: 100%;
        background-color: #000;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px var(--card-shadow);
    }
    
    .main-slide img {
        display: block;
        width: 100%;
        height: auto !important;
        object-fit: contain !important; 
        object-position: center;
        border-radius: 8px;
    }

    .main-slide .caption {
        bottom: 10px;
        left: 10px;
        max-width: 95%;
        display: none;
    }

       #main-slider .carousel-indicators li {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}


@media (max-width: 767px) {
    .category-row {
        grid-template-columns: repeat(2, 1fr); 
        gap: 8px;
    }

    .category-card {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .main-slide .caption {
            bottom: 10px;
            left: 10px;
            max-width: 95%;
                display: none;

        }
    }

    .masked-username .star-icon {
        color: #ffc107;
        margin-left: 2px;
    }