
    .subcategories-container {
        padding: 20px 0 60px;
    }
    .page-header {
        background: linear-gradient(135deg, #2c3e50, #3498db);
        color: white;
        padding: 80px 0;
        text-align: center;
        position: relative;
        overflow: hidden;
        margin-bottom: 40px; /* Added spacing below hero section */
    }
    .page-header::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-bg.jpg') center/cover no-repeat;
        opacity: 0.5;
    }
    .page-header h1 {
        font-size: 42px;
        font-weight: 700;
        margin-bottom: 15px;
        position: relative;
    }
    .page-header p {
        font-size: 18px;
        max-width: 700px;
        margin: 0 auto;
        opacity: 0.9;
        position: relative;
    }
    .section-title {
        text-align: center;
        margin-bottom: 50px;
    }

    .section-title h2 {
        font-size: 2.5rem;
        font-weight: 600;
        position: relative;
        display: inline-block;
        margin-bottom: 15px;
    }

    .section-title h2:after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background-color: #0d6efd;
    }

    .section-title p {
        color: #6c757d;
        max-width: 600px;
        margin: 0 auto;
    }

    .subcategory-card {
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        height: 100%;
        background-color: #fff;
        cursor: pointer;
        text-decoration: none;
        color: inherit;
        display: flex;
        flex-direction: column;
    }

    .subcategory-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        text-decoration: none;
        color: inherit;
    }

    .subcategory-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .subcategory-card:hover img {
        transform: scale(1.05);
    }

    .subcategory-card-content {
        padding: 25px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .subcategory-card h3 {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 15px;
        color: #333;
    }

    .subcategory-card p {
        color: #6c757d;
        margin-bottom: 20px;
        flex-grow: 1;
    }

    .subcategory-card .btn {
        align-self: flex-start;
        padding: 8px 20px;
        font-weight: 500;
        border-radius: 5px;
    }

    .back-to-category {
        margin-bottom: 30px;
    }

    .back-to-category a {
        display: inline-flex;
        align-items: center;
        color: #0d6efd;
        font-weight: 500;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .back-to-category a:hover {
        color: #0a58ca;
        text-decoration: none;
    }

    .back-to-category i {
        margin-right: 8px;
    }

    @media (max-width: 768px) {
        .hero-section h1 {
            font-size: 2rem;
        }

        .section-title h2 {
            font-size: 2rem;
        }

        .subcategory-card img {
            height: 180px;
        }
    }

