/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* Section styles */
.categories-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header styles */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    margin-top: 15px;
    font-size: 18px;
}

.divider {
    width: 40px;
    height: 3px;
    background-color: #0bb7de;
    margin: 0 auto;
}

/* Grid layout */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* Category card styles */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
}

/* Info icon styles */
.info-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #dc2626;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    z-index: 2;
}

.info-icon i {
    color: white;
    font-size: 20px;
}

/* Category title styles */
.category-card h3 {
    position: absolute;
    top: 15px;
    left: 60px;
    margin: 0;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-size: 18px;
    z-index: 2;
}

/* Image styles */
.category-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Overlay styles */
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .category-card h3 {
        font-size: 16px;
    }

    .section-header h1 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .categories-section {
        padding: 20px 10px;
    }

    .category-card img {
        height: 200px;
    }
}



/* ... (keep existing CSS) ... */

/* Update the category title styles */
.category-card h3 {
    position: absolute;
    top: 15px;
    left: 65px;
    margin: 0;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-size: 18px;
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Update overlay styles */
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    z-index: 1;
    transition: all 0.3s ease;
}

/* Add hover overlay styles */
.category-card::before {
    content: attr(data-category);
    position: absolute;
    inset: 0;
    background: rgba(28, 37, 89, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

/* Hover effects */
.category-card:hover::before {
    opacity: 1;
}

.category-card:hover h3 {
    opacity: 0;
}

.category-card:hover .overlay {
    opacity: 0;
}