/* Hero Slideshow with Text Overlay */
.hero-slideshow {
    position: relative;
    height: 50vh;
    min-height: 400px;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide.fade {
    animation: fade 1s ease-in-out;
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slideshow Text Overlay */
.slideshow-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
    color: white;
    padding: 2rem;
    z-index: 2;
}

.slideshow-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.slideshow-text p {
    font-size: 1.3rem;
    max-width: 800px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

/* Text Section */
.text-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    background: white;
}

.text-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 1rem;
    display: inline-block;
}

.text-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.text-section p:last-child {
    margin-bottom: 0;
}

/* Image Section */
.image-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.image-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.image-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Small Slideshow Container */
.slideshow-container-small {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.slide-small {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.slide-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-small.fade {
    animation: fade 1s ease-in-out;
}

.image-item h3 {
    padding: 1.5rem;
    font-size: 1.3rem;
    color: #333;
    text-align: center;
}

/* Content Section */
.content-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    background: white;
}

.content-section h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #ecf0f1;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner {
        height: 12vh;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .nav-btn {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .hero-slideshow {
        height: 40vh;
        min-height: 300px;
    }

    .slideshow-text h1 {
        font-size: 2.2rem;
    }

    .slideshow-text p {
        font-size: 1.05rem;
    }

    .text-section {
        padding: 3rem 1.5rem;
    }

    .text-section h2 {
        font-size: 2rem;
    }

    .text-section p {
        font-size: 1rem;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .image-item img {
        height: 200px;
    }

    .content-section {
        padding: 3rem 1.5rem;
    }

    .content-section h3 {
        font-size: 1.7rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 14vh;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    .nav-buttons {
        flex-wrap: wrap;
    }

    .nav-btn {
        flex: 1 1 50%;
        font-size: 0.8rem;
        padding: 0.7rem;
    }

    .hero-slideshow {
        height: 35vh;
        min-height: 250px;
    }

    .slideshow-text h1 {
        font-size: 1.8rem;
    }

    .slideshow-text p {
        font-size: 0.95rem;
    }

    .text-section {
        padding: 2rem 1rem;
    }

    .text-section h2 {
        font-size: 1.5rem;
    }

    .text-section p {
        font-size: 0.95rem;
        text-align: left;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .image-item img {
        height: 200px;
    }

    .content-section {
        padding: 2rem 1rem;
    }

    .content-section h3 {
        font-size: 1.5rem;
    }

    .content-section p {
        font-size: 0.95rem;
    }
}