/* Improved Homepage Gallery Styles */
.homepage-gallery-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    position: relative;
}

.gallery-header-homepage {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-header-homepage .section-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--semola-navy), var(--semola-blue));
    color: white;
    padding: 8px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-header-homepage .section-title {
    font-size: 2.5rem;
    color: var(--semola-navy);
    margin-bottom: 15px;
    font-weight: 700;
}

.gallery-header-homepage .section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.homepage-gallery-slider {
    position: relative;
    margin-top: 50px;
}

.gallery-slider-wrapper {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(46, 92, 138, 0.15);
}

.gallery-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    flex: 0 0 33.333%;
    padding: 0 10px;
}

.homepage-gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 280px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.homepage-gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(46, 92, 138, 0.2);
}

.homepage-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.homepage-gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay-homepage {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(46, 92, 138, 0.9) 0%, rgba(74, 144, 194, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.homepage-gallery-item:hover .gallery-overlay-homepage {
    opacity: 1;
}

.gallery-overlay-homepage .overlay-content {
    text-align: center;
    color: white;
}

.gallery-overlay-homepage .overlay-content i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.gallery-overlay-homepage .overlay-content span {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(46, 92, 138, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background: var(--semola-navy);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: -25px;
}

.gallery-nav.next {
    right: -25px;
}

.gallery-nav i {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .homepage-gallery-section {
        padding: 50px 0;
    }
    
    .gallery-header-homepage .section-title {
        font-size: 2rem;
    }
    
    .gallery-slide {
        flex: 0 0 100%;
    }
    
    .homepage-gallery-item {
        height: 250px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-nav.prev {
        left: 10px;
    }
    
    .gallery-nav.next {
        right: 10px;
    }
}