/* Global Styles */
:root {
    --primary: #4a00e0;
    --primary-light: rgba(74, 0, 224, 0.1);
    --secondary: #8e2de2;
    --warning: #ffc107;
    --dark: #212529;
    --light: #f8f9fa;
    --gray: #6c757d;
    --transition: all 0.3s ease;
}

/* Clickable Course Card Styles */
/* Section Headers */
.section-header h2 {
    position: relative;
    display: inline-block;
    margin: 0 auto 1rem;
    padding-bottom: 0.5rem;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

/* Course Cards */
.course-card {
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: transparent;
}

.course-card-wrapper {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none !important;
}

.course-card:hover .card-img-top {
    transform: scale(1.05);
}

.course-card .card-body {
    padding: 1.25rem;
}

.course-card .card-title {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.course-card:hover .card-title {
    color: var(--primary);
}

.course-card .card-img-top {
    object-fit: cover;
    width: 100%;
    height: 180px;
    transition: transform 0.3s ease;
}

.course-card .btn-outline-primary {
    transition: all 0.2s ease;
    border-color: var(--primary);
    color: var(--primary);
}

.course-card:hover .btn-outline-primary {
    background-color: var(--primary);
    color: white !important;
}

/* Ensure proper cursor for clickable elements */
.course-card,
.course-card-wrapper,
.course-card a:not(.btn) {
    cursor: pointer;
}

/* Hero Section - All styles moved to hero-slider.css */
.hero-section {
    /* Keep only essential structural styles */
    position: relative;
    overflow: hidden;
}

/* Hero Image Wrapper - Moved to hero-slider.css */

/* Floating Elements - Moved to hero-slider.css */

.floating-element.element-1 {
    top: 10%;
    right: 5%;
    animation-delay: 0.5s;
}

.floating-element.element-2 {
    bottom: 15%;
    left: 5%;
    animation-delay: 1s;
}

/* Play Button */
.btn-play-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-play-video:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: white;
    color: var(--secondary);
}

.btn-play-icon {
    position: relative;
    z-index: 2;
}

.btn-play-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 2s infinite;
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.scroll-down-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.bounce-animation {
    animation: bounce 2s infinite;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

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

/* Pulse Animation for Badge */
.pulse-animation {
    animation: pulse 2s infinite;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
        padding: 3rem 1.5rem 5rem;
        margin: 0.75rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        margin-left: auto;
        margin-right: auto;
        max-width: 80%;
    }
    
    .hero-image-wrapper {
        margin-top: 3rem;
    }
    
    .floating-element {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 1rem 4rem;
        margin: 0.5rem;
        border-radius: 15px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .btn-play-video {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}

/* Text Utilities */
.text-white-75 {
    color: rgba(255, 255, 255, 0.85) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
}

/* Hover Effects */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Compact Features Section */
.feature-card-sm {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px !important;
    height: 100%;
}

.feature-card-sm:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

.feature-card-sm .icon-wrapper {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-card-sm:hover .icon-wrapper {
    transform: scale(1.1);
}

.feature-card-sm h4 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card-sm p {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Categories Section */
#categories {
    position: relative;
    z-index: 1;
}

.category-card {
    display: block;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card .card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card:hover .card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.category-card-bg {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.category-card-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-card h5 {
    color: #2d3436;
    font-weight: 600;
    transition: color 0.2s ease;
}

.category-card:hover h5 {
    color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .category-card-bg {
        height: 100px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .category-card-bg {
        height: 90px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Popular Courses Section */
#popular-courses {
    position: relative;
    z-index: 1;
    background: #fff;
}

/* Category Tabs */
.category-tabs {
    position: relative;
    z-index: 2;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    border: 1px solid #e9ecef;
    background: #fff;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0.25rem;
    white-space: nowrap;
}

.category-tab i {
    font-size: 0.9em;
    color: #6c757d;
    transition: color 0.3s ease;
}

.category-tab:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #2d3436;
}

.category-tab:hover i {
    color: var(--primary);
}

.category-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
}

.category-tab.active i {
    color: white;
}

@media (max-width: 767.98px) {
    .category-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

#popular-courses .badge {
    letter-spacing: 0.5px;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Horizontal Scroll Container */
.courses-scroll-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 5px 30px;
    margin: 0 -5px;
}

.courses-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.courses-scroll-wrapper {
    display: inline-flex;
    gap: 25px;
    padding: 10px 15px 25px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card-wrapper {
    min-width: 300px;
    max-width: 300px;
    flex: 1;
    transition: all 0.3s ease;
}

.course-card {
    height: 100%;
    border-radius: 12px !important;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: #fff;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(var(--primary-rgb), 0.1);
}

.course-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.course-card .card-img-top {
    height: 170px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card:hover .card-img-top {
    transform: scale(1.08);
}

.course-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.course-hover-overlay .btn {
    transform: translateY(10px);
    transition: all 0.3s ease 0.1s;
}

.course-card:hover .course-hover-overlay .btn {
    transform: translateY(0);
}

.course-card .card-body {
    padding: 1.5rem;
}

.course-card .card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.course-card .card-title a {
    transition: color 0.2s ease;
}

.course-card .card-title a:hover {
    color: var(--primary) !important;
}

.course-card .badge {
    font-weight: 500;
    padding: 0.35em 0.75em;
}

.course-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) scale(0.9);
    cursor: pointer;
}

#popular-courses:hover .course-scroll-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.course-scroll-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
    transform: translateY(-50%) scale(1.1) !important;
}

.course-scroll-btn i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.course-scroll-btn:hover i {
    transform: scale(1.2);
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* Price Styles */
.course-price {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.course-price .text-decoration-line-through {
    font-size: 0.8rem;
    color: #6c757d;
}

.course-price .h5 {
    font-weight: 700;
    color: #2d3436;
}

/* Category Badge */
.course-card .badge {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0.4em 0.9em;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.course-card:hover .badge {
    background: var(--primary);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .course-card-wrapper {
        min-width: 260px;
        max-width: 260px;
    }
    
    .course-card .card-img-top {
        height: 140px;
    }
    
    .course-scroll-btn {
        display: none !important;
    }
}

/* Counter Animation */
.counter {
    display: inline-block;
    transition: all 0.5s ease;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .feature-card {
        padding: 2rem !important;
    }
}

@media (max-width: 767.98px) {
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    .counter-item {
        margin-bottom: 1.5rem;
    }
}

/* Animation for counter */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.counter.animated {
    animation: countUp 0.8s ease-out forwards;
}

/* Floating Animation */
.floating {
    animation: float 6s ease-in-out infinite;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    transition: var(--transition);
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Hover Effects */
.hover-lift {
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.hover-scale {
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-warning {
    color: var(--dark);
    font-weight: 700;
}

.btn-outline-light:hover {
    color: var(--primary);
    background: white;
}

/* Badges */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.7rem;
}

/* Testimonials */
.testimonial-card {
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-illustration {
        margin-top: 3rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out forwards;
}

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

/* Section Spacing */
section {
    padding: 5rem 0;
    position: relative;
}

/* Background Colors */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Utility Classes */
.rounded-xl {
    border-radius: 1rem !important;
}

.shadow-soft {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05) !important;
}

/* Course Card Styles */
.course-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.course-card .card-img-top {
    height: 160px;
    object-fit: cover;
}

.course-card .card-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.course-card .instructor {
    font-size: 0.8rem;
    color: var(--gray);
}

.course-card .price {
    font-weight: 700;
    color: var(--dark);
}

.course-card .rating {
    color: var(--warning);
    font-size: 0.85rem;
}

/* Category Card */
.category-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 10px;
    background: white;
}

.category-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--primary-light);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    color: var(--primary);
    transition: all 0.3s ease;
}

.category-card:hover i {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

.category-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-card small {
    color: var(--gray);
    font-size: 0.8rem;
}

/* Testimonial Styles */
.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Newsletter Form */
.newsletter-form .form-control {
    height: 55px;
    border-radius: 50px;
    border: none;
    padding-left: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-form .btn {
    height: 55px;
    padding: 0 2rem;
}
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }
    
    .search-form .btn {
        width: 100%;
        margin-top: 1rem;
    }
}
