/* ========== DEMO CLASS PAGE STYLES - NAVY BLUE THEME #000080 ========== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Demo Hero Section */
.demo-hero {
    background: linear-gradient(135deg, #000080, #0000b3);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    margin-bottom: 30px;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 15px 40px rgba(0,0,128,0.15);
}

.demo-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    background: #ffd700;
    color: #000080;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.demo-hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.demo-hero h1 span {
    color: #ffd700;
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Hero Stats Grid */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hero-stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.stat-icon {
    width: 55px;
    height: 55px;
    background: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000080;
    font-size: 1.6rem;
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Recorded Demos Section */
.recorded-demos {
    padding: 80px 0;
    text-align: center;
    background: #f8f9ff;
    border-radius: 40px;
    margin: 20px 0 60px;
}

.recorded-demos h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 12px;
}

.recorded-demos h2 span {
    color: #000080;
    position: relative;
}

.section-subtitle {
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.recorded-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.recorded-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,128,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.recorded-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0,0,128,0.2);
}

.video-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recorded-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 3.5rem;
    color: rgba(255,215,0,0.9);
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.recorded-info {
    padding: 18px;
    text-align: left;
}

.recorded-info h3 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.recorded-info p {
    color: #666;
    font-size: 0.85rem;
}

.recorded-info i {
    color: #ffd700;
}

.view-all-demos {
    margin-top: 20px;
}

.view-all-btn {
    display: inline-block;
    padding: 14px 35px;
    background: transparent;
    color: #000080;
    text-decoration: none;
    border: 2px solid #000080;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.view-all-btn:hover {
    background: #000080;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,128,0.2);
}

/* Course Categories */
.course-categories {
    padding: 70px 0;
    background: white;
}

.course-categories h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 50px;
}

.course-categories h2 span {
    color: #000080;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    background: white;
    padding: 25px 15px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,128,0.08);
    border: 1px solid rgba(0,0,128,0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,128,0.15);
    border-color: #000080;
}

.category-card.active {
    background: #f0f0ff;
    border-color: #000080;
}

.category-card i {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 12px;
}

.category-card span {
    display: block;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Why Watch Section */
.why-watch {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
}

.why-watch h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 50px;
}

.why-watch h2 span {
    color: #000080;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    background: white;
    padding: 35px 25px;
    border-radius: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,128,0.08);
    border: 1px solid rgba(0,0,128,0.05);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,128,0.15);
}

.why-card i {
    font-size: 2.8rem;
    color: #ffd700;
    margin-bottom: 20px;
}

.why-card h3 {
    color: #000080;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 700;
}

.why-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* CTA Section */
.demo-cta {
    text-align: center;
    background: linear-gradient(135deg, #000080, #0000b3);
    color: white;
    padding: 80px 20px;
    border-radius: 40px;
    margin: 40px auto;
    max-width: 1100px;
}

.demo-cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.demo-cta p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 40px;
    background: #ffd700;
    color: #000080;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    background: white;
    color: #000080;
}

.cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 40px;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.cta-btn-outline:hover {
    background: white;
    color: #000080;
    transform: translateY(-3px);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.video-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.video-modal .modal-content {
    width: 90%;
    max-width: 900px;
    background: black;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

.video-modal .close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
}

.video-modal .close-modal:hover {
    color: #ffd700;
    transform: scale(1.1);
    background: rgba(0,0,0,0.8);
}

.video-modal .video-container {
    aspect-ratio: 16/9;
    background: black;
}

.video-modal video {
    width: 100%;
    height: 100%;
    outline: none;
}

.video-modal .modal-footer {
    padding: 18px 25px;
    background: #f5f5f5;
    color: #666;
    text-align: center;
    font-size: 0.9rem;
}

.video-modal .modal-footer a {
    color: #000080;
    text-decoration: none;
    font-weight: 700;
}

.video-modal .modal-footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 25px;
    margin: 20px;
}

.no-results i {
    font-size: 3.5rem;
    color: #000080;
    opacity: 0.5;
    margin-bottom: 20px;
}

.no-results p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.no-results button {
    background: #000080;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-results button:hover {
    background: #ffd700;
    color: #000080;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 24px;
    border-radius: 50px;
    z-index: 10001;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success { background: #27ae60; color: white; }
.notification.error { background: #ff6b6b; color: white; }
.notification.info { background: #3498db; color: white; }

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1100px) {
    .recorded-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .demo-hero {
        padding: 50px 20px 40px;
    }
    
    .demo-hero h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .recorded-demos h2 {
        font-size: 1.8rem;
    }
    
    .recorded-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto 30px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-btn, .cta-btn-outline {
        width: 80%;
        justify-content: center;
    }
    
    .demo-cta h2 {
        font-size: 1.6rem;
    }
    
    .video-modal .modal-content {
        width: 95%;
    }
    
    .video-modal .close-modal {
        right: 10px;
        top: 10px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .demo-hero h1 {
        font-size: 1.6rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 5px 15px;
    }
    
    .hero-stat-card {
        padding: 15px 12px;
        gap: 12px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .recorded-demos {
        padding: 50px 0;
    }
    
    .why-card {
        padding: 25px 20px;
    }
    
    .cta-btn, .cta-btn-outline {
        width: 100%;
        padding: 12px 25px;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        bottom: 20px;
        text-align: center;
        justify-content: center;
    }
}