/* Shared styles for all pages */
.nav-tab.active { 
    background-color: #1f2937; 
    color: white; 
}

/* Enhanced Image Modal / Lightbox */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.image-modal.show {
    display: flex;
    opacity: 1;
}

.image-modal .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-modal img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transition: opacity 0.2s ease-in-out;
}

.image-modal .close-button {
    position: absolute;
    top: -50px;
    right: -10px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.image-modal .close-button:hover {
    background: rgba(255,255,255,0.2);
}

.image-modal .modal-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    max-width: 600px;
    padding: 0 20px;
}

/* Clickable image styling */
.clickable-image {
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.clickable-image:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    max-height: 500px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        max-height: 400px;
    }
    
    .hero-text-overlay {
        width: 95%;
        padding: 0 10px;
    }
    
    .image-modal .close-button {
        top: -40px;
        right: 0px;
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .image-modal img {
        max-height: 75vh;
    }
    
    .image-modal .modal-caption {
        font-size: 14px;
        margin-top: 10px;
    }
}
