/* School Highlights Section */
.school-highlights {
    padding: 4rem 0;
    background: white;
}

.highlights-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.highlight-card.events {
    border-top-color: #ff6b6b;
}

.highlight-card.achievements {
    border-top-color: #ffd93d;
}

.highlight-card.social {
    border-top-color: #6bcf7f;
}

.highlight-card.talent {
    border-top-color: #4d96ff;
}

.highlight-card.fitness {
    border-top-color: #9c88ff;
}

.highlight-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.events .highlight-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.achievements .highlight-icon {
    background: linear-gradient(135deg, #ffd93d 0%, #f39c12 100%);
}

.social .highlight-icon {
    background: linear-gradient(135deg, #6bcf7f 0%, #27ae60 100%);
}

.talent .highlight-icon {
    background: linear-gradient(135deg, #4d96ff 0%, #3742fa 100%);
}

.fitness .highlight-icon {
    background: linear-gradient(135deg, #9c88ff 0%, #8c7ae6 100%);
}

.highlight-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.highlight-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.highlight-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.highlight-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Photo Gallery */
.photo-gallery {
    background: #f8f9fa;
    padding: 4rem 0;
}

.gallery-slider {
    overflow: hidden;
    border-radius: 15px;
}

.gallery-track {
    display: flex;
    animation: gallerySlide 20s linear infinite;
}

.gallery-slide {
    min-width: 25%;
    height: 200px;
    padding: 0 0.5rem;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.gallery-image.independence {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.gallery-image.sports {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.gallery-image.cultural {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.gallery-image.science {
    background: linear-gradient(135deg, #a8caba 0%, #5d4e75 100%);
}

.gallery-image.talent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@keyframes gallerySlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Gallery Page Styles */
.gallery-header {
    background: linear-gradient(135deg, #78232d 0%, #cfab6d 100%);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}

.gallery-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.gallery-item:hover {
    transform: scale(1.05);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(120, 35, 45, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #cfab6d;
}

.gallery-view-more {
    text-align: center;
    margin-top: 2rem;
}

.view-more-btn {
    background: linear-gradient(135deg, #78232d 0%, #cfab6d 100%);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(120, 35, 45, 0.3);
}

@media (max-width: 768px) {
    .gallery-slide {
        min-width: 50%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .view-more-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    position: relative;
}

.modal-content .close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: #333;
}

.modal-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}