/* Custom animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float-slow {
    animation: float 6s ease-in-out infinite;
}

.animate-float-medium {
    animation: float 4s ease-in-out infinite;
}

.animate-float-fast {
    animation: float 3s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-twinkle {
    animation: twinkle 2s infinite;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 10s linear infinite;
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.5s ease-out;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-800 {
    animation-delay: 0.8s;
}

.delay-1000 {
    animation-delay: 1s;
}

/* Carousel specific styles */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
    transform: translateX(100%);
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    transition: width 4s linear;
}

.progress-bar.active {
    width: 100%;
    background: linear-gradient(to right, #facc15, #f97316);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.8), rgba(168, 85, 247, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #f59e0b;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
}

.lightbox-nav:hover {
    color: #f59e0b;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.gallery-item.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item.show {
    animation: fadeIn 0.5s ease-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.resources-section {
    position: relative;
    padding-top: 50px;
    padding-bottom: 30px;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.resource-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease-out forwards;
}

.resource-card:nth-child(1) {
    animation-delay: 0.1s;
}

.resource-card:nth-child(2) {
    animation-delay: 0.2s;
}

.resource-card:nth-child(3) {
    animation-delay: 0.3s;
}

.resource-card:nth-child(4) {
    animation-delay: 0.4s;
}

.resource-card:nth-child(5) {
    animation-delay: 0.5s;
}

.resource-card:nth-child(6) {
    animation-delay: 0.6s;
}

.resource-card:nth-child(7) {
    animation-delay: 0.7s;
}

.resource-card:nth-child(8) {
    animation-delay: 0.8s;
}

.resource-card:nth-child(9) {
    animation-delay: 0.9s;
}

.resource-card:nth-child(10) {
    animation-delay: 1.0s;
}

.resource-card:nth-child(11) {
    animation-delay: 1.1s;
}

.resource-card:nth-child(12) {
    animation-delay: 1.2s;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 24px;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.resource-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.icon-container {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
}

.icon-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: transform 0.6s;
    transform: rotate(45deg) translate(-100%, -100%);
}

.resource-card:hover .icon-container::before {
    transform: rotate(45deg) translate(100%, 100%);
}

.icon-container:nth-child(1) {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.resource-card:nth-child(2) .icon-container {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.resource-card:nth-child(3) .icon-container {
    background: linear-gradient(135deg, #45b7d1 0%, #96c93d 100%);
}

.resource-card:nth-child(4) .icon-container {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.resource-card:nth-child(5) .icon-container {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.resource-card:nth-child(6) .icon-container {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.resource-card:nth-child(7) .icon-container {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.resource-card:nth-child(8) .icon-container {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.resource-card:nth-child(9) .icon-container {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.resource-card:nth-child(10) .icon-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.resource-card:nth-child(11) .icon-container {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.resource-card:nth-child(12) .icon-container {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.card-icon {
    width: 28px;
    height: 28px;
    color: white;
    z-index: 2;
    position: relative;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.download-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
    color: white;
}

.download-link:hover::before {
    left: 100%;
}

.download-icon {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.download-link:hover .download-icon {
    transform: translateX(3px);
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .resource-card {
        padding: 24px;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Curriculum section */

        .curriculum-page {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            overflow-x: hidden;
        }

        .curriculum-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .curriculum_header {
            text-align: center;
            margin-bottom: 3rem;
            animation: fadeInDown 1s ease-out;
        }

        .section_name {
            font-size: 3.5rem;
            font-weight: 700;
            color: white;
            text-shadow: 0 4px 8px rgba(0,0,0,0.3);
            margin-bottom: 0.5rem;
        }

        .curriculum-card {
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(20px);
            border-radius: 24px;
            padding: 3rem;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            animation: fadeInUp 1s ease-out 0.3s both;
        }

        .program-header {
            text-align: center;
            margin-bottom: 2.5rem;
        }

        .program-title {
            font-size: 2.5rem;
            color: #2d3748;
            margin-bottom: 1rem;
            position: relative;
        }

        .program-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            border-radius: 2px;
        }

        .program-description {
            font-size: 1.1rem;
            color: #4a5568;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.8;
        }

        .board-info {
            background: linear-gradient(135deg, #4299e1, #3182ce);
            color: white;
            padding: 1.5rem;
            border-radius: 16px;
            margin: 2rem 0;
            text-align: center;
            transform: translateY(20px);
            opacity: 0;
            animation: slideInUp 1s ease-out 0.6s both;
        }

        .subjects-container {
            margin-top: 3rem;
        }

        .subjects-title {
            font-size: 2rem;
            color: #2d3748;
            text-align: center;
            margin-bottom: 2rem;
            transform: translateY(30px);
            opacity: 0;
            animation: fadeInUp 1s ease-out 0.9s both;
        }

        .subjects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .subject-card {
            background: linear-gradient(135deg, #f7fafc, #edf2f7);
            border-radius: 16px;
            padding: 1.5rem;
            border-left: 5px solid;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            transform: translateY(40px);
            opacity: 0;
            position: relative;
            overflow: hidden;
        }

        .subject-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .subject-card:hover::before {
            opacity: 1;
        }

        .subject-card:nth-child(1) { border-left-color: #e53e3e; animation: slideInLeft 0.8s ease-out 1.2s both; }
        .subject-card:nth-child(2) { border-left-color: #dd6b20; animation: slideInLeft 0.8s ease-out 1.3s both; }
        .subject-card:nth-child(3) { border-left-color: #d69e2e; animation: slideInLeft 0.8s ease-out 1.4s both; }
        .subject-card:nth-child(4) { border-left-color: #38a169; animation: slideInLeft 0.8s ease-out 1.5s both; }
        .subject-card:nth-child(5) { border-left-color: #3182ce; animation: slideInLeft 0.8s ease-out 1.6s both; }
        .subject-card:nth-child(6) { border-left-color: #805ad5; animation: slideInLeft 0.8s ease-out 1.7s both; }
        .subject-card:nth-child(7) { border-left-color: #d53f8c; animation: slideInLeft 0.8s ease-out 1.8s both; }
        .subject-card:nth-child(8) { border-left-color: #319795; animation: slideInLeft 0.8s ease-out 1.9s both; }
        .subject-card:nth-child(9) { border-left-color: #e53e3e; animation: slideInLeft 0.8s ease-out 2.0s both; }
        .subject-card:nth-child(10) { border-left-color: #dd6b20; animation: slideInLeft 0.8s ease-out 2.1s both; }
        .subject-card:nth-child(11) { border-left-color: #d69e2e; animation: slideInLeft 0.8s ease-out 2.2s both; }
        .subject-card:nth-child(12) { border-left-color: #38a169; animation: slideInLeft 0.8s ease-out 2.3s both; }
        .subject-card:nth-child(13) { border-left-color: #3182ce; animation: slideInLeft 0.8s ease-out 2.4s both; }
        .subject-card:nth-child(14) { border-left-color: #805ad5; animation: slideInLeft 0.8s ease-out 2.5s both; }

        .subject-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }

        .subject-name {
            font-size: 1.25rem;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 0.5rem;
            position: relative;
            z-index: 1;
        }

        .subject-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea, #764ba2);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            color: white;
            font-weight: bold;
            font-size: 1.2rem;
        }

        .language-note {
            background: linear-gradient(135deg, #ffd89b, #19547b);
            color: white;
            padding: 1.5rem;
            border-radius: 16px;
            margin-top: 2rem;
            text-align: center;
            font-size: 1.1rem;
            transform: translateY(30px);
            opacity: 0;
            animation: fadeInUp 1s ease-out 2.8s both;
        }

        .floating-elements {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .floating-circle {
            position: absolute;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
            animation: float 6s ease-in-out infinite;
        }

        .floating-circle:nth-child(1) {
            width: 80px;
            height: 80px;
            top: 20%;
            left: 10%;
            animation-delay: 0s;
        }

        .floating-circle:nth-child(2) {
            width: 120px;
            height: 120px;
            top: 60%;
            right: 10%;
            animation-delay: 2s;
        }

        .floating-circle:nth-child(3) {
            width: 60px;
            height: 60px;
            bottom: 20%;
            left: 20%;
            animation-delay: 4s;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-40px) translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateX(0) translateY(0);
            }
        }

        @keyframes float {
            0%, 100% {
                transform: translateY(0px) rotate(0deg);
            }
            50% {
                transform: translateY(-20px) rotate(180deg);
            }
        }

        @media (max-width: 768px) {
            .school-name {
                font-size: 2.5rem;
            }
            
            .curriculum-card {
                padding: 2rem;
                margin: 1rem;
            }
            
            .subjects-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .program-title {
                font-size: 2rem;
            }
        }