.master-classes-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.hero-section {
    position: relative;
    padding: 80px 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 50%, #1e293b 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-2%, -2%) scale(1.05);
    }
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 0 40px rgba(96, 165, 250, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #94a3b8;
    margin-bottom: 40px;
    font-weight: 400;
}

.live-preview {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.live-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #f472b6);
    animation: gradientMove 3s linear infinite;
}

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

.live-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.live-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
    line-height: 1.3;
}

.live-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    text-align: left;
}

.live-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.live-label {
    font-size: 1rem;
    font-weight: 600;
    color: #94a3b8;
    min-width: 100px;
}

.live-value {
    font-size: 1rem;
    color: #e2e8f0;
    flex: 1;
    line-height: 1.4;
}

.live-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

.live-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

@media (max-width: 768px) {
    .live-preview {
        padding: 20px;
    }
    
    .live-title {
        font-size: 1.4rem;
    }
    
    .live-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .live-label {
        min-width: auto;
    }
    
    .live-btn {
        width: 100%;
        text-align: center;
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 10px 40px rgba(96, 165, 250, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 500;
}

.filter-section {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.filter-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.3);
    color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(96, 165, 250, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 20px rgba(96, 165, 250, 0.4);
}

.courses-section {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.pagination-section {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.3);
    color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(96, 165, 250, 0.2);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 20px rgba(96, 165, 250, 0.4);
}

.pagination-btn.prev:disabled,
.pagination-btn.next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-btn.prev:disabled:hover,
.pagination-btn.next:disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    box-shadow: none;
}

.pagination-ellipsis {
    color: #94a3b8;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .pagination-container {
        gap: 8px;
    }
    
    .pagination-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .pagination-btn.prev,
    .pagination-btn.next {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
    
    .pagination-ellipsis {
        font-size: 1rem;
        padding: 0 8px;
    }
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.course-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 20px 60px rgba(96, 165, 250, 0.2),
                0 0 40px rgba(147, 51, 234, 0.1);
}

.course-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    fill: white;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.course-card:hover .play-icon {
    transform: scale(1.2);
}

.course-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.course-info {
    padding: 24px;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.course-card:hover .course-title {
    color: #60a5fa;
}

.course-description {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-details {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 60px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.course-card:hover .course-details {
    max-height: 400px;
    overflow: visible;
}

.detail-item {
    display: flex;
    margin-bottom: 10px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.course-details .detail-item:first-child {
    opacity: 1;
    transform: translateY(0);
}

.course-card:hover .detail-item {
    opacity: 1;
    transform: translateY(0);
}

.course-card:hover .detail-item:nth-child(2) {
    transition-delay: 0.1s;
}

.course-card:hover .detail-item:nth-child(3) {
    transition-delay: 0.2s;
}

.course-card:hover .detail-item:nth-child(4) {
    transition-delay: 0.3s;
}

.course-card:hover .detail-item:nth-child(5) {
    transition-delay: 0.4s;
}

.course-card:hover .detail-item:nth-child(6) {
    transition-delay: 0.5s;
}

.course-card:hover .detail-item:nth-child(7) {
    transition-delay: 0.6s;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #60a5fa;
    min-width: 100px;
    flex-shrink: 0;
}

.detail-value {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.4;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .detail-item {
        flex-direction: column;
    }
    
    .detail-label {
        min-width: auto;
        margin-bottom: 4px;
    }
    
    .course-details {
        max-height: 80px;
    }
}

.course-meta {
    display: flex;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    color: #60a5fa;
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    position: relative;
    max-width: 1000px;
    width: 100%;
    background: #1e293b;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: rotate(90deg);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #0f172a;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-info {
    padding: 30px;
    background: #1e293b;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 12px;
}

.modal-description {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-item {
        padding: 15px 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .filter-container {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

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

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

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 15px;
    }

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

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .filter-container {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }

    .filter-btn {
        white-space: nowrap;
    }
}