
.home-section {
    padding: 30px 0;
}

.home-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.home-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.home-title {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.home-title h1 {
    font-size: 1.5rem;
    line-height: 1.4;
    color: #333;
    font-weight: 400;
    margin: 0;
 
}

.home-images {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
}

.image-item {
    flex: 1;
    max-width: 300px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}


.image-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.image-link:hover .image-overlay {
    opacity: 1;
}

/* Responsive Design */

/* Mobile Phones (up to 768px) */
@media screen and (max-width: 768px) {
    .home-section {
        padding: 14px 0 8px;
    }

    .home-title h1 {
        font-size: clamp(1.05rem, 4.6vw, 1.2rem);
        line-height: 1.55;
        padding: 0 2px;
    }

    .home-images {
        flex-direction: column;
        gap: 16px;
        padding: 0;
    }

    .image-item {
        max-width: 100%;
        border-radius: 12px;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    }

    .image-item img {
        height: clamp(170px, 46vw, 220px);
    }

    .image-overlay {
        opacity: 1;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 20%, rgba(0, 0, 0, 0.62) 100%);
        justify-content: center;
        align-items: center;
        padding-bottom: 0;
    }

    .image-title {
        font-size: 0.98rem;
        letter-spacing: 0.3px;
    }
}

/* Tablets (769px to 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .home-title h1 {
        font-size: 1.3rem;
    }

    .home-images {
        gap: 12px;
    }

    .image-item {
        max-width: 280px;
    }
}

/* Large Screens (1400px and up) */
@media screen and (min-width: 1400px) {
    .home-section {
        padding: 50px 0;
    }

    .home-title h1 {
        font-size: 2rem;
        line-height: 1.6;
    }

    .home-images {
        gap: 25px;
    }

    .image-item {
        max-width: 400px;
    }

    .image-item img {
        height: 280px;
    }

    .image-title {
        font-size: 1.5rem;
    }
}

/* Extra Large Screens (1920px and up) */
@media screen and (min-width: 1920px) {
    .home-section {
        padding: 60px 0;
    }

    .home-title h1 {
        font-size: 2.2rem;
    }

    .image-item {
        max-width: 450px;
    }

    .image-item img {
        height: 320px;
    }
}
