/* gallery.css */

.gallery-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Hero Section */
.gallery-hero {
    background: linear-gradient(rgba(0, 66, 37, 0.9), rgba(0, 66, 37, 0.8)), 
                url('../assets/SBP/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0 60px;
    position: relative;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 66, 37, 0.9), rgba(0, 100, 67, 0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.school-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.school-badge i {
    font-size: 1.5rem;
    color: #ffcc00;
}

.school-badge span {
    font-weight: 600;
    font-size: 1.1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stats .stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.hero-stats .stat i {
    color: #ffcc00;
    font-size: 1.5rem;
}

/* Gallery Filters */
.gallery-filters {
    padding: 30px 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filters-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #004225;
    background: transparent;
    color: #004225;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(0, 66, 37, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #004225;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 66, 37, 0.3);
}

/* Photo Gallery */
.photo-gallery {
    padding: 60px 0 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.3s; }
.gallery-item:nth-child(5) { animation-delay: 0.4s; }
.gallery-item:nth-child(6) { animation-delay: 0.5s; }
.gallery-item:nth-child(7) { animation-delay: 0.6s; }
.gallery-item:nth-child(8) { animation-delay: 0.7s; }
.gallery-item:nth-child(9) { animation-delay: 0.8s; }
.gallery-item:nth-child(10) { animation-delay: 0.9s; }
.gallery-item:nth-child(11) { animation-delay: 1.0s; }
.gallery-item:nth-child(12) { animation-delay: 1.1s; }
.gallery-item:nth-child(13) { animation-delay: 1.2s; }
.gallery-item:nth-child(14) { animation-delay: 1.3s; }
.gallery-item:nth-child(15) { animation-delay: 1.4s; }

.photo-frame {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 300px;
}

.photo-frame:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 66, 37, 0.2);
}

.photo-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-frame:hover .photo-container img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 66, 37, 0.9));
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-frame:hover .photo-overlay {
    opacity: 1;
}

.photo-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 50px;
    color: #004225;
    font-weight: 600;
    font-size: 0.9rem;
}

.photo-category i {
    color: #ff6600;
}

/* Back to Education */
.back-to-education {
    padding: 40px 0;
    text-align: center;
    background: linear-gradient(135deg, #f0f7f4 0%, #e0f0e9 100%);
}

.back-to-education .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .photo-frame {
        height: 250px;
    }
    
    .filters-container {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-frame {
        height: 300px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* Footer Customization for Gallery Page */
.gallery-page .footer {
    margin-top: 0;
    border-top: 5px solid #004225;
}