
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-color: #2563eb;
            --secondary-color: #7c3aed;
            --accent-color: #f59e0b;
            --text-dark: #1f2937;
            --text-light: #6b7280;
            --text-muted: rgba(255, 255, 255, 0.8);
            --bg-light: #f8fafc;
            --white: #ffffff;
            --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
            --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
            --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
            --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
            --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            --dark-bg: #0f0f23;
            --card-bg: rgba(255, 255, 255, 0.1); 
            --border-glass: rgba(255, 255, 255, 0.2);
            --shadow-glow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);

        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: var(--text-dark);
            background: var(--white);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Banner Section */
        .banner {
            position: relative;
            height: 600px;
            overflow: hidden;
        }

        .banner-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 1s ease;
        }

        .banner-slide.active {
            opacity: 1;
        }

        .banner-content {
            text-align: center;
            color: white;
            z-index: 2;
            position: relative;
        }

        .banner-title {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            animation: slideInUp 1s ease;
        }

        .banner-subtitle {
            font-size: 1.5rem;
            margin-bottom: 2rem;
            opacity: 0.9;
            animation: slideInUp 1s ease 0.3s both;
        }

        .banner-btn {
            display: inline-block;
            padding: 1rem 2rem;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
            animation: slideInUp 1s ease 0.6s both;
        }

        .banner-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-3px);
        }

        .banner-dots {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 0.5rem;
            z-index: 3;
        }

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .dot.active {
            background: white;
            transform: scale(1.2);
        }

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        /* Animated Background */
        .background-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .floating-element {
            position: absolute;
            opacity: 0.1;
            animation: floatComplex 12s ease-in-out infinite;
        }

        .floating-element:nth-child(1) {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
            top: 10%;
            left: 15%;
            animation-delay: 0s;
        }

        .floating-element:nth-child(2) {
            width: 80px;
            height: 80px;
            background: linear-gradient(45deg, #45B7D1, #96C93D);
            top: 70%;
            right: 20%;
            animation-delay: 3s;
            clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
        }

        .floating-element:nth-child(3) {
            width: 100px;
            height: 100px;
            background: linear-gradient(45deg, #FFA726, #FF7043);
            top: 40%;
            right: 10%;
            animation-delay: 6s;
            border-radius: 20px;
            transform: rotate(45deg);
        }

        .floating-element:nth-child(4) {
            width: 60px;
            height: 60px;
            background: linear-gradient(45deg, #AB47BC, #8E24AA);
            bottom: 30%;
            left: 10%;
            animation-delay: 9s;
            clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
        }

        @keyframes floatComplex {
            0%, 100% { 
                transform: translateY(0px) rotate(0deg) scale(1);
            }
            25% { 
                transform: translateY(-40px) rotate(90deg) scale(1.2);
            }
            50% { 
                transform: translateY(-20px) rotate(180deg) scale(0.8);
            }
            75% { 
                transform: translateY(-60px) rotate(270deg) scale(1.1);
            }
        }

        /* Main Content */
         

        .section {
            margin-bottom: 4rem;
        }

        .section-title {
            font-size: 2.5rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 3rem;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            background-clip: text;
        }

        /* News Section */
        .news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
        }

        .news-card {
            background: var(--white);
            border-radius: 16px;
            box-shadow: var(--shadow-lg);
            overflow: hidden;
            transition: all 0.3s ease;
            border: 1px solid #f3f4f6;
            cursor: pointer;
        }

        .news-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-xl);
        }

        .news-image {
            width: 100%;
            height: 200px;
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 3rem;
        }

        .news-content {
            padding: 1.5rem;
        }

        .news-date {
            color: var(--text-light);
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
        }

        .news-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--text-dark);
        }

        .news-excerpt {
            color: var(--text-light);
            margin-bottom: 1rem;
        }

        .read-more {
            color: var(--primary-color);
            font-weight: 500;
            text-decoration: none;
        }

        .read-more:hover {
            text-decoration: underline;
        }



        section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 30px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    transform: translateY(20px);
    animation: slideUp 0.8s ease-out forwards;
    transition: all 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }

/* ============================================
   TYPOGRAPHY - MATCHES KONTAKT
   ============================================ */

.schedule-header {
    text-align: center;
    margin-bottom: 40px;
    color: var(--white);
    text-transform: uppercase;
}

.section-title {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

section:hover .section-title::after {
    width: 100px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-white);
    font-weight: 500;
    text-align: center;
}

        /* Events Section */
        .events-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 1.5rem;
        }

        .event-card {
            background: var(--white);
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: var(--shadow-md);
            border-left: 4px solid var(--accent-color);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .event-card:hover {
            transform: translateX(5px);
            box-shadow: var(--shadow-lg);
        }

        .event-date {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--accent-color);
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .event-title {
            font-size: 1.125rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .event-description {
            color: var(--text-light);
            font-size: 0.875rem;
        }

        /* Gallery Preview */
        .gallery-preview {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
        }

        .gallery-item {
            aspect-ratio: 1;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2rem;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .gallery-item:hover {
            transform: scale(1.05) rotate(2deg);
            box-shadow: var(--shadow-xl);
        }
        .main-content {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            /*margin: 4rem 0;
            padding: 4rem 0;*/
            border-radius: 0px;
            position: relative;
            overflow: hidden;
        }

        /* Schedule Section Styles */
        .schedule-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            margin: 4rem 0;
            padding: 4rem 0;
            border-radius: 0px;
            position: relative;
            overflow: hidden;
        }

        .schedule-header {
            text-align: center;
            margin-bottom: 50px;
            animation: fadeInDown 1s ease-out;
        }

        .schedule-header h1 {
            color: white;
            font-size: 3rem;
            font-weight: 700;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            margin-bottom: 10px;
            /*background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;*/
            animation: textGlow 3s ease-in-out infinite alternate;
        }

        .schedule-header p {
            color: rgba(255,255,255,0.9);
            font-size: 1.2rem;
            font-weight: 300;
        }

        .schedule-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }

        .schedule-card {
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
            animation: slideUp 0.8s ease-out forwards;
            opacity: 0;
            transform: translateY(50px);
        }

        .schedule-card:nth-child(1) { animation-delay: 0.1s; }
        .schedule-card:nth-child(2) { animation-delay: 0.2s; }
        .schedule-card:nth-child(3) { animation-delay: 0.3s; }
        .schedule-card:nth-child(4) { animation-delay: 0.4s; }

        .schedule-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: left 0.6s;
        }

        .schedule-card:hover::before {
            left: 100%;
        }

        .schedule-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 25px 50px rgba(0,0,0,0.2);
        }

        .schedule-card h2 {
            color: #333;
            margin-bottom: 20px;
            font-size: 1.8rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .schedule-icon {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
        }

        .schedule-icon.schedule-holidays { background: linear-gradient(135deg, #00d2ff, #3a7bd5); }
        .schedule-icon.schedule-periods { background: linear-gradient(135deg, #f093fb, #f5576c); }
        .schedule-icon.schedule-classes { background: linear-gradient(135deg, #4facfe, #00f2fe); }
        .schedule-icon.schedule-lunch { background: linear-gradient(135deg, #43e97b, #38f9d7); }

        .schedule-card-content {
            color: #666;
            line-height: 1.6;
        }

        .schedule-preview-text {
            font-size: 0.95rem;
            opacity: 0.8;
        }
        /* Schedule Section */
        .schedule2-section {
            margin: 4rem 0;
        }

        .schedule2-title {
            text-align: center;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 3rem;
            background: var(--secondary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: pulse 2s infinite;
        }

         

        .schedule2-card {
            background: var(--card-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border-glass);
            border-radius: 25px;
            padding: 2rem;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            animation: zoomIn 0.8s ease-out;
        }

        .schedule2-card:hover {
            transform: scale(1.02);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .schedule2-header {
            text-align: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid var(--border-glass);
        }

        .schedule2-header h3 {
            font-size: 1.5rem;
            font-weight: 600;
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .schedule2-table {
            width: 100%;
            border-collapse: collapse;
            color: white;
            font-weight: 600;
        }

        .schedule2-table th,
        .schedule2-table td {
            padding: 1rem;
            text-align: left;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }

        .schedule2-table th {
            background: rgba(255, 255, 255, 0.1);
            font-weight: 600;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .schedule2-table tr:hover {
            background: rgba(255, 255, 255, 0.05);
            transform: translateX(5px);
        }
        .teacher-name2 {
            color: #4facfe;
            font-weight: 500;
        }
        .teacher-name3 {
            color: #ffffff;
            font-weight: 500;
            font-size: 1.2rem;
        }

        /* ============================================
           MODAL WINDOW STYLES (FIXED HEIGHT WITH SCROLL)
           Matches oppetoo.php modal design
           ============================================ */

        /* Modal overlay - prevents background scrolling */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            inset: 0;
            overflow: auto; /* Allow scrolling if modal is too tall */
            background-color: rgba(0, 0, 0, 0.55);
            backdrop-filter: blur(5px);
            animation: fadeIn 0.3s ease-out;
        }

        /* When modal is shown, use flexbox to center */
        .modal[style*="display: block"],
        .modal[style*="display: flex"] {
            display: flex !important;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        /* Modal content box - fixed height with internal scroll */
        .modal-content {
            background: linear-gradient(135deg, #ffffff, #f8f9fa);
            margin: auto;
            padding: 0; /* Remove padding from container */
            border-radius: 20px;
            width: 90%;
            /* max-width now controlled by CSS variable in modals.css */
            max-height: 85vh; /* Fixed maximum height */
            position: relative;
            box-shadow: 0 25px 50px rgba(0,0,0,0.3);
            animation: modalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            display: flex;
            flex-direction: column;
            overflow: hidden; /* Hide overflow from container */
        }

        /* Modal header - fixed at top */
        .modal-header {
            padding-bottom: 20px;
            margin-top: 30px;
        }

        .modal-header h2 {
            color: var(--text-dark);
            font-size: 1.7rem;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .modal-header p {
            margin: 0.5rem 0 0 0;
            opacity: 0.9;
            font-size: 1rem;
        }

        /* Close button */
.close {
    color: var(--primary-color);
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    line-height: 1;
    z-index: 10;
}

.close:hover {
    color: var(--secondary-color);
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

        /* Modal body - scrollable content */
        .modal-body {
            padding: 20px 30px 30px 30px;
            overflow-y: auto; /* Enable vertical scrolling */
            overflow-x: hidden;
            flex: 1; /* Take remaining space */
            max-height: calc(85vh - 100px); /* Account for header */
            background: white;
            border-radius: 0 0 20px 20px;
        }

        /* Custom scrollbar for modal */
        .modal-body::-webkit-scrollbar {
            width: 10px;
        }

        .modal-body::-webkit-scrollbar-track {
            background: rgba(102, 126, 234, 0.05);
            border-radius: 10px;
            margin: 10px 0;
        }

        .modal-body::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 10px;
            transition: background 0.3s ease;
        }

        .modal-body::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #7c8ef0, #8a5bb2);
        }

        /* Prevent body scroll when modal is open */
        body.modal-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
        }

        /* Accessibility: Focus styles for modal elements */
        .modal-content:focus {
            outline: 3px solid rgba(102, 126, 234, 0.6);
            outline-offset: 4px;
        }

        .modal button:focus,
        .modal a:focus,
        .close:focus {
            outline: 3px solid rgba(102, 126, 234, 0.8);
            outline-offset: 2px;
        }

        /* Accessibility: Reduced motion support */
        @media (prefers-reduced-motion: reduce) {
            .modal,
            .modal-content,
            .modal-body,
            .period-item,
            .break-item,
            .class-time,
            .lunch-group,
            .event-item {
                animation: none !important;
                transition: none !important;
            }

            .close:hover {
                transform: none !important;
            }
        }

        /* Modal content typography */
        .modal h3 {
            color: #667eea;
            font-size: 1.3rem;
            font-weight: 600;
            margin-top: 25px;
            margin-bottom: 15px;
        }

        .modal p {
            color: black;
            line-height: 1.8;
            margin-bottom: 15px;
        }

        .modal ul,
        .modal ol {
            color: #4a5568;
            line-height: 1.8;
            margin-bottom: 15px;
            padding-left: 25px;
        }

        .modal li {
            margin-bottom: 8px;
        }

        /* Modal info sections */
        .info-section {
            margin-bottom: 30px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 12px;
            border-left: 4px solid #667eea;
        }

        .info-section h3 {
            color: #2d3748;
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 15px;
            margin-top: 0;
        }

        .info-section p {
            margin-bottom: 10px;
        }

        .info-section ul {
            list-style-type: disc;
            padding-left: 20px;
        }

        /* Contact info styling */
        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .contact-item {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            padding: 15px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        /* Schedule grid within modal */
        .schedule-grid {
            display: grid;
            gap: 20px;
        }

        .time-slot {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 20px;
            border-left: 4px solid #667eea;
        }

        .time-slot:nth-child(even) {
            border-left-color: #ff6b6b;
        }

        .time-label {
            font-weight: 700;
            color: #2d3748;
            font-size: 1.1rem;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .time-icon {
            font-size: 1.3rem;
        }

        .time-period {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            display: inline-block;
            margin-bottom: 15px;
            font-weight: 600;
        }

        .class-groups h4 {
            color: #667eea;
            font-size: 1rem;
            margin-bottom: 12px;
        }

        .period-item, .break-item, .class-time, .lunch-group {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 15px;
            border-left: 5px solid #667eea;
            transition: all 0.3s ease;
            animation: fadeInUp 0.5s ease-out forwards;
            opacity: 0;
            transform: translateY(20px);
        }

        .period-item:nth-child(odd), .break-item:nth-child(odd),
        .class-time:nth-child(odd), .lunch-group:nth-child(odd) {
            border-left-color: #ff6b6b;
        }

        .period-item:hover, .break-item:hover, .class-time:hover, .lunch-group:hover {
            background: #e3f2fd;
            transform: translateX(10px);
        }

        .item-title {
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
            font-size: 1.1rem;
        }

        .item-details {
            color: #666;
            font-size: 0.95rem;
        }

        .time-badge {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 8px 16px;
            border-radius: 25px;
            font-size: 0.9rem;
            font-weight: 600;
            display: inline-block;
            margin-bottom: 10px;
        }

        .class-list {
            background: rgba(103, 126, 234, 0.1);
            border-radius: 10px;
            padding: 15px;
            margin-top: 10px;
        }

        .class-list h4 {
            color: #667eea;
            margin-bottom: 10px;
            font-size: 1rem;
        }

        .classes {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .class-badge {
            background: white;
            color: #667eea;
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 0.85rem;
            border: 1px solid #667eea;
            font-weight: 500;
        }

        .floating-particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .particle {
            position: absolute;
            width: 6px;
            height: 6px;
            background: rgba(255,255,255,0.6);
            border-radius: 50%;
            animation: float 6s ease-in-out infinite;
        }

        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes slideUp {
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes modalSlideIn {
            from { opacity: 0; transform: scale(0.7) translateY(-50px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        @keyframes fadeInUp {
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes textGlow {
            from { text-shadow: 0 0 20px rgba(255,107,107,0.5); }
            to { text-shadow: 0 0 30px rgba(78,205,196,0.8); }
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(180deg); }
        }

        /* Footer */
        .footer {
            background: linear-gradient(135deg, var(--text-dark), #374151);
            color: white;
            padding: 3rem 0 1rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-section h3 {
            font-size: 1.25rem;
            margin-bottom: 1rem;
        }

        .footer-section p, .footer-section a {
            color: #d1d5db;
            text-decoration: none;
            margin-bottom: 0.5rem;
            display: block;
        }

        .footer-section a:hover {
            color: white;
        }

        .footer-bottom {
            border-top: 1px solid #4b5563;
            padding-top: 1rem;
            text-align: center;
            color: #9ca3af;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header-content a h3 {
                font-size: 10pt;
            }

            .banner-title {
                font-size: 2.5rem;
            }

            .banner-subtitle {
                font-size: 1.25rem;
            }

            .section-title {
                font-size: 2rem;
            }

            .news-grid {
                gap: 20px;
            }

            .events-grid {
                gap: 20px;
            }

            .gallery-preview {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .schedule-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .schedule-header h1 {
                font-size: 2rem;
            }

            .schedule-card {
                padding: 20px;
            }


            .schedule2-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .footer-content {
                gap: 20px;
            }

            .info-grid {
                gap: 20px;
            }

            .stats-grid {
                gap: 20px;
            }

            .values-grid {
                gap: 20px;
            }

            .uniform-gallery {
                gap: 20px;
            }

            .sections-container {
                gap: 3rem;
            }

            /* Modal responsive - tablet */
            .modal-content {
                width: 95%;
                max-width: 95vw;
                margin: 3% auto;
                max-height: 90vh;
            }

            .modal-header {
                padding: 25px 25px 15px 25px;
            }

            .modal-body {
                padding: 15px 25px 25px 25px;
                max-height: calc(90vh - 80px);
            }

            .close {
                font-size: 28px;
                right: 15px;
                top: 15px;
                padding: 6px;
                width: 36px;
                height: 36px;
            }

            .modal h2 {
                font-size: 1.5rem;
            }

            .modal h3 {
                font-size: 1.2rem;
            }
        }

        @media (max-width: 480px) {
            .banner {
                height: 350px;
            }

            .banner-title {
                font-size: 2rem;
            }

            .news-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .events-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .projects-grid {
                gap: 20px;
            }

            .cards-grid {
                gap: 20px;
            }

            /* Modal responsive - small mobile */
            .modal-content {
                width: 100%;
                margin: 1% auto;
                max-height: 95vh;
                border-radius: 12px;
            }

            .modal-header {
                padding: 18px 18px 12px 18px;
            }

            .modal-body {
                padding: 12px 18px 18px 18px;
                max-height: calc(95vh - 60px);
            }

            .close {
                font-size: 24px;
                right: 10px;
                top: 10px;
                padding: 4px;
                width: 32px;
                height: 32px;
            }

            .modal h2 {
                font-size: 1.3rem;
                margin-bottom: 12px;
            }

            .modal h3 {
                font-size: 1.1rem;
                margin-top: 18px;
                margin-bottom: 12px;
            }

            .modal p,
            .modal li {
                font-size: 0.95rem;
                line-height: 1.6;
            }

            .modal-body::-webkit-scrollbar {
                width: 5px;
            }

.schedule2-card {
        padding: 1rem;
        border-radius: 15px;
        font-size: 0.9rem;
        max-width: 100%;          /* ограничиваем по ширине экрана */
        overflow-x: auto;          /* горизонтальный скролл */
        white-space: nowrap;       /* чтобы содержимое не переносилось */
    }

    /* стиль полосы прокрутки для WebKit (Chrome, Safari) */
    .schedule2-card::-webkit-scrollbar {
        height: 6px;               /* горизонтальная полоса */
    }
    .schedule2-card::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.3);
        border-radius: 3px;
    }
    .schedule2-card::-webkit-scrollbar-track {
        background: transparent;
    }

    /* для Firefox */
    .schedule2-card {
        scrollbar-width: thin;
        scrollbar-color: rgba(0,0,0,0.3) transparent;
    }

        }

        /* Extra Small Mobile (iPhone SE, small Android) */
        @media (max-width: 374px) {
            .banner {
                height: 300px;
            }

            .banner-title {
                font-size: 1.75rem;
            }

            .banner-subtitle {
                font-size: 1rem;
            }

            .banner-btn {
                padding: 0.75rem 1.5rem;
                font-size: 0.9rem;
            }

            .section-title {
                font-size: 1.75rem;
            }

            .news-grid,
            .events-grid,
            .schedule-grid,
            .schedule2-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .info-card,
            .schedule-card {
                padding: 1rem;
            }

            .card-icon {
                width: 60px;
                height: 60px;
                font-size: 2rem;
            }

            .card-title {
                font-size: 1.25rem;
            }

            /* Improve touch targets for very small screens */
            .banner-btn,
            .menu-button,
            .close {
                min-height: 44px;
                min-width: 44px;
            }
        }

    /* Info card styles */
        .info-card {
            background: rgb(41 40 49 / 5%);
            backdrop-filter: blur(25px);
            border-radius: 30px;
            padding: 45px;
            border: 1px solid rgba(255,255,255,0.25);
            transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
            animation: slideUp 1.2s ease-out forwards;
            opacity: 0;
            transform: translateY(80px);
        }

        .info-card:nth-child(1) { animation-delay: 0.2s; }
        .info-card:nth-child(2) { animation-delay: 0.4s; }
        .info-card:nth-child(3) { animation-delay: 0.6s; }
        .info-card:nth-child(4) { animation-delay: 0.8s; }

        .info-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 1s;
        }

        .info-card:hover::before {
            left: 100%;
        }

        .info-card:hover {
            transform: translateY(-20px) scale(1.05);
            box-shadow: 0 40px 80px rgba(0,0,0,0.35);
            background: rgba(255,255,255,0.18);
        }

       .info-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
        }

        @media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr; /* 1 колонка на экранах меньше 768px */
        gap: 20px; /* можно немного уменьшить отступ */
    }
}

        .card-icon {
            width: 90px;
            height: 90px;
            border-radius: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: white;
            margin-bottom: 30px;
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            animation: iconPulse 3s ease-in-out infinite;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        .card-icon.schedule {
            background: linear-gradient(135deg, #00d2ff, #3a7bd5);
            animation-delay: 0.5s;
        }
        .card-icon.rules {
            background: linear-gradient(135deg, #f093fb, #f5576c);
            animation-delay: 1s;
        }
        .card-icon.contact {
            background: linear-gradient(135deg, #43e97b, #38f9d7);
            animation-delay: 1.5s;
        }
        .card-icon.menu {
            background: linear-gradient(135deg, #fa709a, #fee140);
            animation-delay: 2s;
        }

        .card-title {
            color: white;
            font-size: 1.85rem;
            font-weight: 800;
            margin-bottom: 18px;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
        }

        .card-subtitle {
            color: rgba(255,255,255,0.85);
            font-size: 1.1rem;
            margin-bottom: 25px;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
        }

        .card-preview {
            color: rgba(255,255,255,0.9);
            font-size: 1rem;
            line-height: 1.6;
        }

        /* .stats-badge {
            background: rgba(255,255,255,0.25);
            color: white;
            padding: 10px 20px;
            border-radius: 22.5px;
            font-size: 0.95rem;
            font-weight: 700;
            display: inline-block;
            margin-top: 10px;
        } */
         .stats-badge {
            display: block;
            background: var(--primary-gradient);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 22.5px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-left: auto;
            margin-right: auto;
            margin-top: 10px; /* Push to bottom using flexbox */
            width: fit-content;
            align-self: center; /* Center horizontally within flex container */
        }

        /* Menu button styling */
        .menu-button {
            background: var(--primary-gradient);
            color: white;
            border: none;
            padding: 14px 32px;
            border-radius: 22.5px;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            display: inline-block;
            position: relative;
            overflow: hidden;
        }

        .menu-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
            background: linear-gradient(135deg, #7c8ef0, #8a5bb2);
        }

        .menu-button:active {
            transform: translateY(-1px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
        }

/* Additional styles from backup file */

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

        .teacher-card {
            background: rgba(255,255,255,0.1);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 20px;
            padding: 2rem;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
            animation: fadeInUp 1s ease-out;
        }

        .teacher-card:nth-child(2) { animation-delay: 0.2s; }
        .teacher-card:nth-child(3) { animation-delay: 0.4s; }

        .teacher-card:hover {
            transform: translateY(-10px);
            background: rgba(255,255,255,0.2);
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        }

        .teacher-name {
            font-size: 1.3rem;
            font-weight: 600;
            color: white;
            margin-bottom: 0.5rem;
        }

        .teacher-group {
            font-size: 1.1rem;
            color: rgba(255,255,255,0.8);
            font-weight: 500;
        }

        .schedule-section {
            margin-bottom: 3rem;
        }

        .schedule-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 1.5rem;
        }

        .month-card {
            background: rgba(255,255,255,0.95);
            border-radius: 16px;
            padding: 1.5rem;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            min-width: 0; /* Prevent grid blowout */
        }

        .month-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2);
        }

        .month-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 16px 48px rgba(0,0,0,0.2);
        }

        .month-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .event-preview {
            font-size: 0.9rem;
            color: #718096;
            line-height: 1.4;
        }

        .fee-link {
            display: inline-block;
            background: linear-gradient(45deg, #ff6b6b, #ee5a24);
            color: white;
            padding: 1rem 2rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            margin-top: 2rem;
            transition: all 0.3s ease;
            box-shadow: 0 8px 24px rgba(238, 90, 36, 0.3);
        }

        .fee-link:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 32px rgba(238, 90, 36, 0.4);
        }

        /* Modal content item styles */
        .event-item {
            background: #f8fafc;
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 1rem;
            border-left: 4px solid #667eea;
            transition: all 0.3s ease;
        }

        .event-item:hover {
            background: #edf2f7;
            transform: translateX(5px);
        }

        .event-date {
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 0.5rem;
        }

        .event-time {
            color: #667eea;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .event-subject {
            color: #4a5568;
            font-size: 1.1rem;
            margin-bottom: 0.3rem;
        }

        .event-teacher {
            color: #718096;
            font-style: italic;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: scale(0.7);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .floating-shapes {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .shape {
            position: absolute;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
            animation: float 15s infinite linear;
        }

        .shape:nth-child(1) {
            width: 80px;
            height: 80px;
            left: 10%;
            animation-delay: 0s;
        }

        .shape:nth-child(2) {
            width: 120px;
            height: 120px;
            left: 80%;
            animation-delay: 2s;
        }

        .shape:nth-child(3) {
            width: 100px;
            height: 100px;
            left: 50%;
            animation-delay: 4s;
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) rotate(0deg);
            }
            100% {
                transform: translateY(-100px) rotate(360deg);
            }
        }

/* Hero and section styles */

        .hero-section {
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, transparent 70%);
        }

        .hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff05" points="0,0 1000,300 1000,1000 0,700"/><polygon fill="%23ffffff03" points="0,200 1000,0 1000,400 0,600"/></svg>') no-repeat center center;
            background-size: cover;
            animation: float 20s ease-in-out infinite;
        }

        .hero-title {
            font-size: clamp(3rem, 8vw, 6rem);
            font-weight: 800;
            text-align: center;
            background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 50%, #4ecdc4 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 2rem;
            animation: slideInUp 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            text-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .hero-subtitle {
            font-size: 1.5rem;
            text-align: center;
            opacity: 0.9;
            margin-bottom: 3rem;
            animation: slideInUp 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s both;
        }

        .scroll-indicator {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            animation: bounce 2s infinite;
            cursor: pointer;
        }

        .scroll-indicator::after {
            content: '↓';
            font-size: 2rem;
            color: #ffd700;
            animation: glow 2s ease-in-out infinite alternate;
        }

        /*.container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 4rem 2rem;
        }*/

        .sections-container {
            display: grid;
            gap: 6rem;
            margin-top: 2rem;
        }

        section {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(20px);
            border-radius: 30px;
            padding: 3rem;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.15);
            transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
            cursor: pointer;
        }

        section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, #ffd700, #ff6b6b, #4ecdc4, #45b7d1);
            background-size: 300% 100%;
            animation: gradientShift 3s ease infinite;
        }

        section::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.6s ease;
            pointer-events: none;
        }

        section:hover::after {
            opacity: 1;
            animation: ripple 1.5s ease-out;
        }

        section:hover {
            transform: translateY(-15px) scale(1.02);
            box-shadow: 0 30px 60px rgba(0,0,0,0.3), 0 0 50px rgba(255,215,0,0.2);
        }

        .section-header {
            display: flex;
            align-items: center;
            margin-bottom: 2rem;
            position: relative;
            z-index: 2;
        }

        .section-icon {
            width: 80px;
            height: 80px;
            border-radius: 20px;
            background: linear-gradient(135deg, #ffd700, #ff6b6b);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 2rem;
            font-size: 2rem;
            box-shadow: 0 10px 30px rgba(255,215,0,0.3);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        /*section:hover .section-icon {
            transform: rotate(12deg) scale(1.15);
            box-shadow: 0 15px 40px rgba(255,215,0,0.5);
        }*/

        .area-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: #ffd700;
            text-shadow: 0 5px 15px rgba(255,215,0,0.3);
        }

        .section-content {
            position: relative;
            z-index: 2;
            line-height: 1.8;
            font-size: 1.1rem;
            opacity: 0.95;
            color: white;
        }

        .interactive-element {
            margin-top: 2rem;
            padding: 1.5rem;
            background: rgba(255,255,255,0.05);
            border-radius: 15px;
            border: 1px solid rgba(255,255,255,0.1);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .interactive-element:hover {
            background: rgba(255,255,255,0.1);
            transform: translateX(10px);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .stat-card {
            text-align: center;
            padding: 1.5rem;
            background: rgba(255,255,255,0.05);
            border-radius: 15px;
            transition: transform 0.3s ease;
        }

        .stat-card:hover {
            transform: scale(1.05);
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            color: #4ecdc4;
            display: block;
            margin-bottom: 0.5rem;
        }

        .timeline {
            position: relative;
            padding-left: 3rem;
            margin-top: 2rem;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 1rem;
            top: 0;
            height: 100%;
            width: 3px;
            background: linear-gradient(to bottom, #ffd700, #4ecdc4);
            border-radius: 2px;
        }

        .timeline-item {
            position: relative;
            margin-bottom: 2rem;
            padding: 1.5rem;
            background: rgba(255,255,255,0.05);
            border-radius: 15px;
            transition: all 0.3s ease;
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -2.3rem;
            top: 1.5rem;
            width: 15px;
            height: 15px;
            background: #ffd700;
            border-radius: 50%;
            box-shadow: 0 0 0 4px rgba(255,215,0,0.3);
        }

        .timeline-item:hover {
            transform: translateX(20px);
            background: rgba(255,255,255,0.1);
        }

        .values-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .value-card {
            padding: 2rem;
            background: rgba(255,255,255,0.05);
            border-radius: 20px;
            text-align: center;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 1px solid rgba(255,255,255,0.1);
        }

        .value-card:hover {
            transform: translateY(-10px) rotate(2deg);
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            background: rgba(255,255,255,0.1);
        }

        .value-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            display: block;
            animation: pulse 2s infinite;
        }

        .floating-elements {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .floating-shape {
            position: absolute;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 50%;
            animation: floatAround 20s infinite linear;
        }

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

        .uniform-item {
            background: rgba(255,255,255,0.05);
            border-radius: 15px;
            padding: 1.5rem;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid rgba(255,255,255,0.1);
        }

        .uniform-item:hover {
            transform: scale(1.05);
            background: rgba(255,255,255,0.1);
        }

        /*.navigation-dots {
            position: fixed;
            right: 2rem;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 1rem;
            z-index: 1000;
        }

        .nav-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255,255,255,0.3);
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .nav-dot.active,
        .nav-dot:hover {
            background: #ffd700;
            transform: scale(1.3);
            box-shadow: 0 0 15px rgba(255,215,0,0.5);
        }*/

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(100px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            25% { transform: translateY(-20px) rotate(1deg); }
            50% { transform: translateY(-10px) rotate(-1deg); }
            75% { transform: translateY(-15px) rotate(0.5deg); }
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
            40% { transform: translateX(-50%) translateY(-10px); }
            60% { transform: translateX(-50%) translateY(-5px); }
        }

        @keyframes glow {
            from { text-shadow: 0 0 5px #ffd700; }
            to { text-shadow: 0 0 25px #ffd700, 0 0 35px #ffd700; }
        }

        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes ripple {
            0% {
                transform: scale(0);
                opacity: 0.3;
            }
            100% {
                transform: scale(2);
                opacity: 0;
            }
        }

        @keyframes floatAround {
            0% { transform: translateY(100vh) rotate(0deg); }
            100% { transform: translateY(-100vh) rotate(360deg); }
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        @media (max-width: 768px) {
            .hero-title {
                font-size: 3rem;
            }
            
            .container {
                padding: 20px;
            }
            
            section {
                padding: 20px;
            }
            
            .section-header {
                flex-direction: column;
                text-align: center;
            }
            
            .section-icon {
                margin-right: 0;
                margin-bottom: 1rem;
            }
            
            .timeline {
                padding-left: 2rem;
            }

            .navigation-dots {
                display: none;
            }
        }

        /* ============================================
           CSS for transferred blocks from oppetoo.php
           (Raamatukogu and Projektid sections)
           ============================================ */

        /* Projects grid */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        /* Project card */
        .project-card {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border-radius: 12px;
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: all 0.6s;
        }

        .project-card:hover::before {
            left: 100%;
        }

        .project-card:hover {
            transform: translateY(-2.5px) scale(1.02);
            border-color: var(--primary-color);
            box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
        }

        .project-image {
            font-size: 4rem;
            text-align: center;
            margin-bottom: 1rem;
            filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
        }

        .project-content {
            text-align: left;
        }

        .project-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 0.75rem;
            text-align: center;
        }

        .project-description {
            color: #4a5568;
            font-size: 0.95rem;
            line-height: 1.6;
            text-align: center;
        }

        .project-status {
            display: inline-block;
            background: var(--primary-gradient);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 1rem;
        }

        .status-active {
            background: rgba(102, 126, 234, 0.2);
            color: var(--primary-color);
            border: 1px solid rgba(102, 126, 234, 0.3);
        }

        .status-planning {
            background: rgba(118, 75, 162, 0.2);
            color: var(--secondary-color);
            border: 1px solid rgba(118, 75, 162, 0.3);
        }

        .status-completed {
            background: rgba(147, 197, 253, 0.2);
            color: #3b82f6;
            border: 1px solid rgba(147, 197, 253, 0.3);
        }

        /* Cards grid for library */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        /* Catalog section */
        .catalog-section {
            margin-top: 30px;
            text-align: center;
        }

        .catalog-description {
            font-size: 1.3rem;
            margin-bottom: 30px;
            color: #4a5568;
        }

        .catalog-link {
            background: var(--primary-gradient);
            color: white;
            border: none;
            padding: 14px 32px;
            border-radius: 22.5px;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            display: inline-block;
            position: relative;
            overflow: hidden;
        }

        .catalog-link::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.6s ease;
        }

        .catalog-link:hover::before {
            width: 300px;
            height: 300px;
        }

        .catalog-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
        }

        .catalog-link:active {
            transform: translateY(0);
        }

        .catalog-link:focus-visible {
            outline: 3px solid rgba(102, 126, 234, 0.8);
            outline-offset: 2px;
        }

        .project-card:focus-visible {
            outline: 3px solid rgba(102, 126, 234, 0.6);
            outline-offset: 2px;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .cards-grid,
            .projects-grid {
                grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
                gap: 20px;
            }
        }

        @media (max-width: 600px) {
            .cards-grid,
            .projects-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }

        @media (max-width: 480px) {
            .cards-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }
