/* Hero Section - Same as before */
.hero-section {
    background: none;
    padding: 0;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(145, 250, 200, 0.3) 100%);
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 70vh;
    }
}

/* Hero Animation keyframes */
@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section h1 {
    animation: floatUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-section .lead {
    animation: floatUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-section .d-flex {
    animation: floatUp 0.8s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

/* Statistics Section - NEW */
.stats-card {
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stats-card h3 {
    font-size: 2.5rem;
    color: #212529;
}

/* Schools Showcase Section - NEW */
.school-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.school-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for school cards */
.school-card:nth-child(1) {
    transition-delay: 0.1s;
}

.school-card:nth-child(2) {
    transition-delay: 0.2s;
}

.school-card:nth-child(3) {
    transition-delay: 0.3s;
}

.school-card:nth-child(4) {
    transition-delay: 0.4s;
}

.school-card .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.school-card .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}

.school-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.school-card-header {
    border-radius: 0.375rem 0.375rem 0 0;
}

/* Featured News Animation */
.card.accent-border {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.card.accent-border.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Latest News Cards Animation */
.latest-news-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.latest-news-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger the animation for each news card */
.latest-news-card:nth-child(1) {
    transition-delay: 0.1s;
}

.latest-news-card:nth-child(2) {
    transition-delay: 0.2s;
}

.latest-news-card:nth-child(3) {
    transition-delay: 0.3s;
}

.card-footer {
    text-align: right;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Gallery Cards Animation */
.gallery-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.gallery-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for gallery cards */
.gallery-card:nth-child(1) {
    transition-delay: 0.1s;
}

.gallery-card:nth-child(2) {
    transition-delay: 0.2s;
}

.gallery-card:nth-child(3) {
    transition-delay: 0.3s;
}

.gallery-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* Call to Action Section - NEW */
.cta-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.cta-section h2,
.cta-section .lead {
    color: #212529;
}

/* Badge hover effects */
.badge {
    transition: transform 0.2s ease;
}

.badge:hover {
    transform: scale(1.05);
}

/* Dropdown menu improvements */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.dropdown-item {
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    padding-left: 1.5rem;
}

.dropdown-header {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer link hover */
.hover-light:hover {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

@media (max-width: 576px) {
    .gallery-card {
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
    }
    
    .gallery-card .card {
        min-width: max-content;
        margin: 0 auto;
    }
}