/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #4361ee;
    --secondary: #f8961e;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --success: #4cc9f0;
    --warning: #f8961e;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    background-color: #f5f7fb;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
/* Mobile: < 768px (default) */
/* Tablet: ≥ 768px */
/* Desktop: ≥ 1024px */
/* Large Desktop: ≥ 1200px */

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 70px; /* Fixed height */
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
    z-index: 1001;
}

.yellow-color {
    color: var(--secondary);
    margin-left: 0.3rem;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: color 0.3s;
}

.nav-toggle:hover {
    color: var(--primary);
}

/* Navigation Menu */
.main-nav {
    height: 100%;
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    height: 100%;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    height: 100%;
    display: flex;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
}

.main-nav a:hover {
    color: var(--primary);
    background-color: rgba(67, 97, 238, 0.05);
}

.main-nav a.active {
    color: var(--secondary);
    font-weight: 600;
    position: relative;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 12px;
    right: 12px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .site-header {
        height: 60px;
        position: fixed;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--white);
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
        height: auto;
        align-items: flex-start !important;
        margin-top: -200px !important;
        padding-top: 20px !important;
        padding-top: 0 !important;
        justify-content: flex-start !important;
    }
    
    .main-nav li {
        height: auto;
        margin: 0;
    }
    
    .main-nav a {
        padding: 15px 20px;
        border-radius: 8px;
        margin-bottom: 5px;
        display: block;
        height: auto;
    }
    
    .main-nav a.active::after {
        display: none;
    }
    
    .main-nav a.active {
        background-color: rgba(248, 150, 30, 0.1);
        color: var(--secondary);
    }
    
    /* Add body padding to account for fixed header */
    body {
        padding-top: 60px;
    }
    
    .hero {
        margin-top: 0;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1023px) {
    .site-header {
        height: 65px;
    }
    
    .main-nav ul {
        gap: 15px;
    }
    
    .main-nav a {
        font-size: 0.95rem;
        padding: 6px 10px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .site-header {
        height: 70px;
    }
    
    .main-nav ul {
        gap: 30px;
    }
    
    .main-nav a {
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    body {
        padding-top: 70px;
    }
    
}

/* ===== IMPROVED BUTTONS ===== */
.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1.1rem;
    text-align: center;
    min-height: 50px; /* Bigger touch target */
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.3px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Primary Button - Vibrant Blue */
.btn-primary {
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    color: white;
    border: 2px solid #3a56d4;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a56d4 0%, #3047b3 100%);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

.btn-primary:active {
    background: #3047b3;
}

/* Outline Button - Orange Accent */
.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    font-weight: 700;
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, #e68900 100%);
    color: white;
    border-color: var(--secondary);
    box-shadow: 0 6px 20px rgba(248, 150, 30, 0.3);
}

/* Light Button - White with Blue Text */
.btn-light {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--primary);
    border: 2px solid white;
    font-weight: 700;
}

.btn-light:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #3047b3;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Add a subtle animation to buttons */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Hero Section Buttons - Special Styling */
.hero-buttons .btn {
    min-width: 180px;
    padding: 16px 32px;
    font-size: 1.2rem;
    border-radius: 10px;
}

.hero .btn-outline {
    border: 2px solid white;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero .btn-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

.hero .btn-light {
    background: white;
    color: var(--primary);
    border: 2px solid white;
}

.hero .btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #3047b3;
}

/* Course Card Buttons */
.course-footer .btn {
    min-width: 100%;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    margin-top: 10px;
}

.course-footer .btn:hover {
    background: linear-gradient(135deg, #3a56d4 0%, #3047b3 100%);
    transform: translateY(-2px);
}

/* See More Button Enhancement */
.see-more-btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(90deg, #4361ee, #f8961e);
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    width: 100%;
    max-width: 350px;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

.see-more-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(248, 150, 30, 0.4);
    background: linear-gradient(90deg, #f8961e, #4361ee);
}

.see-more-btn:active {
    transform: translateY(-1px);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    padding: 60px 20px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: url('image/IMG-20251025-WA0091.jpg') center/cover no-repeat;
    margin-top: 0; /* Account for fixed header */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.hero-buttons .btn {
    width: 100%;
    max-width: 250px;
}

/* ===== FEATURES SECTION ===== */
.section-title {
    text-align: center;
    margin: 40px 0 30px;
    font-size: 1.8rem;
    color: var(--primary);
}

.features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--secondary);
    font-size: 1.3rem;
}

/* ===== COURSES SECTION ===== */
.courses-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 25px !important;
    margin: 40px 0 !important;
}

.course-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    max-width: 100%;
    display: flex !important; /* Changed from display: block !important to display: block */
    flex-direction: column;
}

.course-card.search-hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    pointer-events: none !important;
}

.course-card:not(.search-hidden) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.course-img {
    height: 180px;
    background-color: var(--light-gray);
    overflow: hidden;
    
}

.Course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.course-card:hover .Course-image {
    transform: scale(1.05);
}

.course-content {
    padding: 20px;
}

.course-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.course-instructor {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.instructor-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.course-meta {
    margin-bottom: 15px;
}

.pricing-model {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.stars {
    color: var(--secondary);
}

.course-footer {
    text-align: center;
}

.course-footer .btn {
    width: 100%;
}

/* See More Button */
.see-more {
    display: flex;
    justify-content: center;
    margin: 30px 0 60px;
}

.see-more-btn {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(90deg, #4361ee, #f8961e);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.see-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(247, 37, 133, 0.3);
}

/* ===== TESTIMONIALS ===== */
.about-testimonials {
    margin: 60px auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-video-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.video-thumb-wrap {
    position: relative;
    margin-bottom: 15px;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    border-radius: 10px;
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-role {
    color: var(--gray);
    font-size: 0.9rem;
}

blockquote.testimonial-text {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
}

blockquote.testimonial-text::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3rem;
    color: rgba(67, 97, 238, 0.2);
    font-family: Georgia, serif;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    margin: 80px auto;
    padding: 0 15px;
    max-width: 900px; /* Add max-width to center content */
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto; /* Ensure the list is centered */
}

.faq-section .section-title {
    margin: 0 auto 50px; /* Center horizontally */
    font-size: 2.2rem;
    background: #4361ee;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: block; /* Change from inline-block to block */
    text-align: center; /* Center the text */
    width: 100%; /* Take full width */
    padding: 0 15px; /* Add some padding */
}

.faq-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ Item with Gradient Colors */
.faq-item {
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: visible;
}

/* Color Strip on Left */
.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: linear-gradient(to bottom, #4361ee, #f8961e);
    border-radius: 3px 0 0 3px;
}

/* Different colors for alternating FAQ items */
.faq-item:nth-child(odd)::before {
    background: linear-gradient(to bottom, #4361ee, #4cc9f0);
}

.faq-item:nth-child(even)::before {
    background: linear-gradient(to bottom, #f8961e, #f72585);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* FAQ Question - Colorful Header */
.faq-question {
    width: 100%;
    padding: 22px 25px;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: #2d3748;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    color: var(--primary);
    padding-left: 30px;
}

/* Question Number */
.faq-question::before {
    content: 'Q' counter(faq-counter);
    counter-increment: faq-counter;
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(67, 97, 238, 0.3);
}

.faq-item:nth-child(odd) .faq-question::before {
    background: var(--primary);
}

.faq-item:nth-child(even) .faq-question::before {
    background: var(--secondary);
}

/* Arrow Icon */
.faq-arrow {
    transition: transform 0.4s ease;
    color: var(--primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.faq-item:nth-child(even) .faq-arrow {
    color: var(--secondary);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

/* FAQ Answer - Colorful Content Area */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 0 0 15px 15px;
    position: relative;
}

.faq-answer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, rgba(67, 97, 238, 0.1), rgba(248, 150, 30, 0.1));
}

.faq-item.active .faq-answer {
    max-height: 800px;
}

.faq-answer p {
    padding: 25px;
    margin: 0;
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.05rem;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

/* Links inside FAQ answers */
.faq-answer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

.faq-answer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.faq-answer a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.faq-answer a:hover {
    color: #3047b3;
}

/* FAQ Counter */
.faq-list {
    counter-reset: faq-counter;
}

/* Active FAQ Item Highlight */
.faq-item.active .faq-question {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(248, 150, 30, 0.05) 100%);
    color: var(--primary);
    font-weight: 700;
}

.faq-item.active::before {
    width: 8px;
    background: linear-gradient(to bottom, #4361ee, #f8961e);
    box-shadow: 0 0 15px rgba(67, 97, 238, 0.3);
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-section {
        margin: 60px auto;
        padding: 0 10px;
    }
    
    .faq-section .section-title {
        font-size: 1.8rem;
    }
    
    .faq-question {
        padding: 18px 20px;
        font-size: 1rem;
    }
    
    .faq-question::before {
        position: static;
        transform: none;
        margin-right: 15px;
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }
    
    .faq-answer p {
        padding: 20px;
        font-size: 1rem;
    }
    
    .faq-question:hover {
        padding-left: 20px;
    }
}

/* Animation for answer content */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item.active .faq-answer p {
    animation: slideIn 0.3s ease;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Staggered animation for FAQ items */
.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }

/* Button hover animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(67, 97, 238, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
    }
}

.btn-primary:hover {
    animation: pulse 1.5s infinite;
}

/* ===== PREVIEW SECTION ===== */
.preview-section {
    padding: 60px 0;
    background: #fff;
}

.section-desc {
    text-align: center;
    max-width: 600px;
    margin: 10px auto 40px;
    color: #555;
    padding: 0 15px;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.video-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.3s;
    background: #fafafa;
}

.video-card:hover {
    transform: translateY(-5px);
}

.thumb-video {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.video-card h3 {
    margin: 15px 0 5px;
    font-size: 1.1rem;
}

.video-card p {
    font-size: 0.9rem;
    color: #666;
}

/* ===== MODALS ===== */
.modal, .testimonial-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content, .testimonial-fullscreen {
    position: relative;
    width: 95%;
    max-width: 800px;
    background: transparent;
    text-align: center;
}

.modal-content video, #testimonialPlayer {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.close, .close-fullscreen {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
}

.modal-note {
    color: #ccc;
    margin-top: 15px;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(180deg, #0b1226 0%, #0e1630 100%);
    color: rgba(255,255,255,0.95);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.footer-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-desc {
    color: rgba(255,255,255,0.75);
    margin-bottom: 15px;
}

.footer-column {
    text-align: center;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: white;
}

.footer-links, .footer-column ul {
    list-style: none;
}

.footer-links li, .footer-column ul li {
    margin-bottom: 8px;
}

.footer-links a, .footer-column a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover, .footer-column a:hover {
    color: var(--secondary);
}

.contact {
    color: rgba(255,255,255,0.75);
    margin: 10px 0;
}

.contact a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-bottom .legal,
.footer-bottom .copyright {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== TABLET STYLES (≥768px) ===== */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }
    
    /* Header */
    .nav-toggle {
        display: none;
    }
    
    .main-nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        overflow: visible;
    }
    
    .main-nav ul {
        display: flex;
        padding: 0;
        gap: 20px;
    }
    
    .main-nav li {
        margin: 0;
    }
    
    .main-nav a {
        padding: 8px 15px;
        font-size: 1rem;
    }
    
    .main-nav::before {
        display: none;
    }
    
    /* Hero */
    .hero {
        padding: 80px 20px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    
    .hero-buttons .btn {
        width: auto;
    }
    
    /* Features */
    .features {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .feature-card {
        flex: 1;
        min-width: calc(50% - 25px);
    }
    
    /* Courses */
    .courses-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Video Grid */
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
    
    .footer-brand {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
    
    .footer-column {
        text-align: left;
    }
    
    .social-icons {
        justify-content: flex-start;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ===== DESKTOP STYLES (≥1024px) ===== */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    /* Hero */
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    /* Features */
    .features {
        flex-wrap: nowrap;
    }
    
    .feature-card {
        min-width: auto;
    }
    
    /* Courses */
    .courses-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Video Grid */
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
    
    .see-more-btn {
        max-width: 400px;
    }
}

/* ===== LARGE DESKTOP (≥1200px) ===== */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.img-responsive {
    max-width: 100%;
    height: auto;
}

.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 10px; }
.mb-1 { margin-bottom: 10px; }
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }
.mt-3 { margin-top: 30px; }
.mb-3 { margin-bottom: 30px; }

/* ===== ACCESSIBILITY ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .hero-buttons,
    .see-more,
    .site-footer,
    .modal {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
}
/* ===== ENHANCED SEARCH RESULTS DESIGN ===== */
.search-results-container {
    width: 100%;
    margin-top: 20px;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.search-results-title {
    font-size: 1.3rem;
    color: var(--dark);
    font-weight: 700;
}

.search-results-title .highlight {
    color: var(--primary);
    font-weight: 800;
    text-decoration: underline;
}

.results-clear {
    background: none;
    border: 2px solid #e9ecef;
    color: #666;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.results-clear:hover {
    background: #f8f9fa;
    border-color: var(--primary);
    color: var(--primary);
}

/* Search categories */
.search-results-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(67, 97, 238, 0.05);
    border-radius: 12px;
}

.search-category-tab {
    padding: 8px 18px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.search-category-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-category-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.search-category-tab .badge {
    background: rgba(255,255,255,0.3);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 5px;
}

/* Results grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Priority results (exact matches) */
.priority-results {
    position: relative;
    padding: 25px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.08), rgba(248, 150, 30, 0.08));
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary);
}

.priority-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
}

.priority-title {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.priority-title i {
    color: var(--primary);
}

/* Related results */
.related-results {
    margin-top: 30px;
}

.related-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.related-title {
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-title i {
    color: var(--secondary);
}

.related-count {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Course card enhancements for search */
.search-result-card {
    position: relative;
    animation: slideInUp 0.5s ease forwards;
    opacity: 0;
}

.search-result-card.priority-match {
    border: 2px solid var(--primary);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.2);
}

.search-result-card.related-match {
    border: 1px solid #e9ecef;
}

.match-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}

.highlight-text {
    background: linear-gradient(120deg, rgba(255, 255, 0, 0.3), rgba(255, 255, 0, 0.3));
    padding: 0 3px;
    border-radius: 3px;
}

/* Search suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border-top: 1px solid #f0f0f0;
}

.search-box:focus-within .search-suggestions {
    display: block;
}

.suggestion-group {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-group-title {
    padding: 10px 20px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    background: #f8f9fa;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item:hover .suggestion-icon {
    transform: scale(1.1);
}

.suggestion-icon {
    width: 32px;
    height: 32px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.suggestion-text {
    flex: 1;
}

.suggestion-title {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.suggestion-meta {
    color: #666;
    font-size: 0.8rem;
}

.suggestion-grade {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Search state animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.search-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No results styling */
.no-results-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    margin: 20px 0;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(248, 150, 30, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--primary);
}

.no-results-suggestions {
    max-width: 500px;
    margin: 30px auto 0;
    text-align: left;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.no-results-suggestions h4 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1rem;
}

.no-results-suggestions ul {
    list-style: none;
    padding: 0;
}

.no-results-suggestions li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.no-results-suggestions li:hover {
    color: var(--primary);
}

/* Mobile responsiveness for search */
@media (max-width: 768px) {
    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .search-results-categories {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .search-category-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .priority-results {
        padding: 20px;
    }
}

/* ===== COURSE LIMITING STYLES ===== */
.courses-grid.show-limited .course-card:nth-child(n+7) {
    display: none !important;
}

.courses-grid:not(.show-limited) .course-card {
    display: flex !important;
}

/* No results styling */
.no-results {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

.no-results-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #666;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.no-results p {
    color: #999;
    margin-bottom: 20px;
}

/* Results count styling */
.results-count {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.show-all-btn {
    background: none;
    border: none;
    color: var(--secondary);
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    margin-left: 5px;
}

.show-all-btn:hover {
    color: var(--primary);
}

/* Course card animation */
.course-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, display 0.3s ease;
}

.course-card:not(.search-hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* Search active state */
.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Clear filters button */
.clear-filters-btn {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 15px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.clear-filters-btn:hover {
    background: rgba(67, 97, 238, 0.2);
}

/* ===== SEARCH FUNCTIONALITY FIXES ===== */
.course-card.hidden-by-search {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

.course-card:not(.hidden-by-search) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
/* ===== FIX COURSE GRID LAYOUT ===== */
.courses-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    margin: 40px 0 !important;
    position: relative;
}

/* Ensure hidden cards don't break the grid */
.course-card.search-hidden {
    display: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Show visible cards properly */
.course-card:not(.search-hidden) {
    display: block !important;
    animation: fadeIn 0.3s ease forwards;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FIX "VIEW ALL COURSES" BUTTON POSITION ===== */
.see-more {
    display: flex;
    justify-content: center;
    margin: 30px 0 60px;
    grid-column: 1 / -1; /* Span all grid columns */
    width: 100%;
}

.see-more-btn {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(90deg, #4361ee, #f8961e);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.see-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(247, 37, 133, 0.3);
}

/* For search results - keep button at bottom */
.courses-grid:has(.no-results) .see-more {
    display: none; /* Hide button when no results */
}

/* Keep layout stable during filtering */
.courses-grid::after {
    content: '';
    grid-column: 1 / -1;
    height: 0;
}