* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .header {
            text-align: center;
            color: white;
            margin-bottom: 40px;
            padding: 40px 0;
        }
        
        .header h1 {
            font-size: 3rem;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            animation: fadeInDown 1s ease-out;
        }
        
        .header p {
            font-size: 1.2rem;
            opacity: 0.9;
            animation: fadeInUp 1s ease-out 0.3s both;
        }
        
        .main-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-bottom: 40px;
        }
        
        .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: transform 0.3s ease, box-shadow 0.3s ease;
            animation: fadeInUp 0.8s ease-out;
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 25px 50px rgba(0,0,0,0.15);
        }
        
        .card h2 {
            color: #5a67d8;
            margin-bottom: 20px;
            font-size: 1.8rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .icon {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin: 20px 0;
        }
        
        .stat-item {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
            padding: 20px;
            border-radius: 15px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .stat-number {
            font-size: 2rem;
            font-weight: bold;
            display: block;
        }
        
        .stat-label {
            font-size: 0.9rem;
            opacity: 0.9;
        }
        
        .full-width {
            grid-column: 1 / -1;
        }
        
        .tabs {
            display: flex;
            background: rgba(255,255,255,0.1);
            border-radius: 15px;
            padding: 5px;
            margin-bottom: 20px;
        }
        
        .tab {
            flex: 1;
            padding: 12px 20px;
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            border-radius: 10px;
            transition: all 0.3s ease;
            font-size: 1rem;
        }
        
        .tab.active {
            background: rgba(255,255,255,0.2);
            backdrop-filter: blur(10px);
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        .schedule-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .schedule-table th,
        .schedule-table td {
            padding: 15px;
            text-align: left;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .schedule-table th {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-weight: 600;
        }
        
        .contact-info {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
            padding: 25px;
            border-radius: 15px;
            margin-top: 20px;
        }
        
        .contact-info h3 {
            margin-bottom: 15px;
            font-size: 1.3rem;
        }
        
        .contact-item {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }
        
        .staff-section {
            margin-top: 40px;
        }
        
        .staff-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-top: 20px;
        }
        
        .staff-card {
            background: white;
            border-radius: 20px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
            border: 2px solid #e2e8f0;
        }
        
        .staff-card:hover {
            transform: translateY(-5px);
        }
        
        .staff-photo {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: white;
            border: 4px solid #f7fafc;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .staff-name {
            font-size: 1.2rem;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 5px;
        }
        
        .staff-email {
            color: #718096;
            font-size: 0.95rem;
            margin-bottom: 15px;
        }
        
        .edit-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }
        
        .edit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }
        
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        
        .service-item {
            background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
            color: white;
            padding: 20px;
            border-radius: 15px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .service-item h4 {
            margin-bottom: 10px;
            font-size: 1.1rem;
        }

        .news-item {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            border-left: 4px solid #667eea;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            margin-bottom: 20px;
            word-wrap: break-word;
            overflow: hidden;
        }

        .news-item iframe,
        .news-item video,
        .news-item img {
            max-width: 100%; /* Обмежує ширину до розмірів батьківського контейнера */
            height: auto; /* Зберігає пропорції */
            display: block; /* Усуває зайві відступи */
            margin: 0 auto 15px; /* Центрує та додає відступ знизу */
            border-radius: 8px; /* Додає закруглені кути */
        }

        .loading-indicator {
            text-align: center;
            padding: 40px;
            color: #718096;
        }

        .loading-indicator .spinner {
            font-size: 2rem;
            margin-bottom: 15px;
            animation: spin 1s linear infinite;
        }

        /* Стилі для повідомлень про помилки */
        .error-message {
            text-align: center;
            padding: 40px;
            color: #718096;
        }

        .error-message .error-icon {
            font-size: 2rem;
            margin-bottom: 15px;
        }

        /* Анімація для індикатора завантаження */
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Контейнер для відео */
        .video-container {
            position: relative;
            padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
            height: 0;
            overflow: hidden;
            margin-bottom: 15px;
        }

        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        .news-item iframe[src*="youtube"],
        .news-item iframe[src*="youtu.be"] {
            aspect-ratio: 16 / 9; /* Зберігає пропорції 16:9 */
            width: 100%;
            max-width: 800px; /* Максимальна ширина для великих екранів */
        }

        /* Стилі для повідомлення "Відео недоступне" */
        .video-unavailable {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            text-align: center;
            margin-bottom: 15px;
            border: 1px dashed #ddd;
        }

        .video-unavailable a {
            color: #4a5568;
            text-decoration: none;
            font-weight: 600;
        }

        .video-unavailable a:hover {
            color: #2b6cb0;
        }
        
        .news-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        }
        
        .news-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .news-date {
            color: #718096;
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .news-category {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 4px 12px;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        
        .news-item h3 {
            color: #2d3748;
            margin-bottom: 12px;
            font-size: 1.3rem;
            line-height: 1.4;
        }
        
        .news-item p {
            color: #4a5568;
            line-height: 1.6;
            margin-bottom: 15px;
        }
        
        .news-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .tag {
            background: #e2e8f0;
            color: #4a5568;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 500;
        }
        
        #refreshNews:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
        }
        
        #refreshNews:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }

        .image-row {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin: 15px 0;
            justify-content: center;
        }

        .repository-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .repository-row {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .repo-card {
            flex: 1;
            min-width: 250px;
            padding: 25px;
            border-radius: 15px;
            text-align: center;
            text-decoration: none;
            transition: all 0.3s ease;
            background: linear-gradient(135deg, var(--card-color-start), var(--card-color-end));
            color: white;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 200px;
        }

        .wide-card {
            flex: 1;
            min-width: calc(50% - 10px);
            flex-direction: row;
            text-align: left;
            justify-content: flex-start;
            gap: 20px;
            align-items: center;
        }

        .wide-card .repo-icon {
            margin-bottom: 0;
            font-size: 2.5rem;
        }

        .wide-card .card-content {
            flex: 1;
        }

        .repo-icon {
            font-size: 3rem;
            margin-bottom: 15px;
        }

        .repo-card h3 {
            margin-bottom: 10px;
            font-size: 1.3rem;
        }

        .repo-card p {
            opacity: 0.9;
            font-size: 0.95rem;
            margin: 0;
        }

        .repo-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.2);
        }

        .image-row img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
            flex: 1 1 200px; /* Мінімальна ширина 200px */
            max-width: 300px; /* Максимальна ширина */
            object-fit: cover;
        }

        .image-row img:hover {
            transform: scale(1.03);
        }
        
        @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);
            }
        }
        
        @media (max-width: 768px) {
            .repository-row {
                flex-direction: column;
            }
            
            .repo-card,
            .wide-card {
                min-width: 100%;
            }
            
            .wide-card {
                flex-direction: column;
                text-align: center;
            }
            .image-row {
                flex-direction: column;
            }
            .image-row img {
                max-width: 100%;
            }
            .main-content {
                grid-template-columns: 1fr;
            }
            
            .header h1 {
                font-size: 2rem;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
            }
            
            .tabs {
                flex-direction: column;
            }
        }
       