* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    position: relative;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    z-index: 1001;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Mobile Menu Toggle Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: #6366f1;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #6366f1;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.4rem 0;
}

.nav-links a:hover {
    color: #6366f1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(99,102,241,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1f2937, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    color: #6b7280;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: white;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.btn-secondary:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 60px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #1f2937;
}

.section-title p {
    font-size: 1rem;
    color: #6b7280;
    max-width: 550px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.2rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #1f2937;
}

.feature p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Courses Section */
.courses {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.course-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.course-content {
    padding: 1.5rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.course-level {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

.course-duration {
    color: #6b7280;
    font-size: 0.8rem;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #1f2937;
    line-height: 1.3;
}

.course-description {
    color: #6b7280;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    font-size: 0.85rem;
}

.course-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #6366f1;
}

.enroll-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Testimonials Section */
.testimonials {
    padding: 60px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 0.8rem;
    left: 1.5rem;
    font-size: 3rem;
    color: #6366f1;
    line-height: 1;
    font-family: serif;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #4b5563;
    line-height: 1.6;
    margin-top: 0.8rem;
    font-size: 0.9rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.author-info h4 {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.1rem;
    font-size: 0.9rem;
}

.author-info p {
    color: #6b7280;
    font-size: 0.8rem;
}

/* Blog Section - Horizontal Carousel with Mobile Fixes */
.blog-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.blog-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

.blog-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.blog-carousel::-webkit-scrollbar {
    display: none;
}

.blog-post {
    min-width: 320px;
    max-width: 320px;
    flex: 0 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.blog-post img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: opacity 0.3s ease;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.blog-image-fallback {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.blog-content {
    padding: 1.5rem;
    height: auto;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    color: #6b7280;
    font-size: 0.7rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.blog-post h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #1f2937;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-post p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex-grow: 1;
}

.blog-post .read-more {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    margin-top: auto;
}

.blog-post .read-more:hover {
    gap: 0.8rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #6366f1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.left-btn { 
    left: -20px; 
}

.right-btn { 
    right: -20px; 
}

.no-posts-message {
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

/* Enhanced Footer Styles with Mobile Improvements */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 3rem 0 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h3,
.footer-column h4 {
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
}

.footer-column h3 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-column h4 {
    font-size: 1.1rem;
}

.footer-column h5 {
    margin-bottom: 1rem;
    color: #d1d5db;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-column p {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Footer Logo & Contact */
.footer-logo p {
    max-width: 280px;
    font-size: 0.95rem;
}

.footer-contact {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #d1d5db;
    font-size: 0.9rem;
}

.contact-icon {
    font-size: 1rem;
    width: 20px;
    flex-shrink: 0;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #6366f1;
    transform: translateX(4px);
}

/* Newsletter Form */
.newsletter-text {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    margin-bottom: 2rem;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: #9ca3af;
}

.newsletter-input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Social Links */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-legal a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #6366f1;
}

.separator {
    color: #6b7280;
    font-size: 0.8rem;
}

/* IMPROVED MOBILE RESPONSIVE STYLES */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-column:nth-child(1) {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-column:nth-child(4) {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 1.5rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -8px 0 25px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        margin-bottom: 0;
    }
    
    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.8rem 0;
        font-size: 1rem;
        font-weight: 600;
        color: #1f2937;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        color: #6366f1;
        background: rgba(99, 102, 241, 0.05);
        padding-left: 0.8rem;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    /* Enhanced mobile menu animations */
    .nav-links li {
        opacity: 0;
        transform: translateX(40px);
        transition: all 0.3s ease;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid, 
    .courses-grid, 
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 80px 0 50px;
    }

    .features,
    .courses,
    .testimonials,
    .blog-section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    .feature {
        padding: 1.5rem;
    }

    .course-content {
        padding: 1.2rem;
    }

    .testimonial {
        padding: 1.5rem;
    }

    /* Mobile Blog Responsive Updates */
    .blog-carousel {
        gap: 1rem;
        padding: 0.5rem 0;
    }

    .blog-post {
        min-width: 280px;
        max-width: 280px;
    }

    .blog-content {
        padding: 1rem;
    }

    .blog-meta {
        font-size: 0.65rem;
        gap: 0.3rem;
        margin-bottom: 0.6rem;
    }

    .blog-post h3 {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
        -webkit-line-clamp: 2;
    }

    .blog-post p {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .blog-post .read-more {
        font-size: 0.75rem;
    }

    .blog-image-fallback {
        font-size: 2rem;
    }

    .carousel-btn {
        display: none;
    }

    /* Improved Mobile Footer */
    footer {
        padding: 2rem 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    /* Company Info Section - Better Mobile Layout */
    .footer-column:nth-child(1) {
        text-align: center;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-logo h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .footer-logo p {
        max-width: 100%;
        margin: 0 auto;
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .footer-contact {
        margin-top: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .contact-item {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    /* Quick Links & Courses - Better Organization */
    .footer-column:nth-child(2),
    .footer-column:nth-child(3) {
        padding: 1rem 0;
    }
    
    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
        text-align: center;
        color: #ffffff;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links li {
        margin-bottom: 0.6rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
        padding: 0.3rem 0;
        display: inline-block;
    }
    
    .footer-links a:hover {
        transform: none;
        color: #6366f1;
    }
    
    /* Newsletter Section - Better Mobile UX */
    .footer-column:nth-child(4) {
        text-align: center;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-column:nth-child(4) h4 {
        margin-bottom: 1rem;
    }
    
    .newsletter-text {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
        max-width: 300px;
        margin: 0 auto 1.2rem;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        max-width: 300px;
        margin: 0 auto;
        gap: 0.8rem;
    }
    
    .newsletter-input {
        width: 100%;
        padding: 0.9rem;
        font-size: 0.85rem;
        text-align: center;
    }
    
    .newsletter-btn {
        width: 100%;
        padding: 0.9rem;
        font-size: 0.85rem;
    }
    
    /* Social Icons - Better Mobile Layout */
    .social-links {
        margin-top: 1.5rem;
    }
    
    .footer-column h5 {
        text-align: center;
        margin-bottom: 1rem;
        font-size: 0.85rem;
    }
    
    .social-icons {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .social-icons a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    /* Footer Bottom - Mobile Optimized */
    .footer-bottom {
        padding: 1.2rem 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .copyright p {
        font-size: 0.8rem;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .footer-legal a {
        font-size: 0.8rem;
    }
    
    .separator {
        font-size: 0.7rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .logo {
        font-size: 1.4rem;
    }
    
    .nav-links {
        width: 100%;
        right: -100%;
        padding: 70px 1rem 2rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 0.7rem 0;
    }

    .hero {
        padding: 70px 0 40px;
    }

    .features,
    .courses,
    .testimonials,
    .blog-section {
        padding: 40px 0;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .feature {
        padding: 1.2rem;
    }

    .course-content {
        padding: 1rem;
    }

    .testimonial {
        padding: 1.2rem;
    }

    /* Small Mobile Blog Updates */
    .blog-carousel {
        gap: 0.8rem;
    }

    .blog-post {
        min-width: 260px;
        max-width: 260px;
    }

    .blog-content {
        padding: 0.8rem;
    }

    .blog-post img,
    .blog-image-fallback {
        height: 140px;
    }

    .blog-meta {
        font-size: 0.6rem;
        margin-bottom: 0.5rem;
    }

    .blog-post h3 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .blog-post p {
        font-size: 0.7rem;
        margin-bottom: 0.6rem;
        -webkit-line-clamp: 2;
    }

    .blog-post .read-more {
        font-size: 0.7rem;
    }

    .blog-image-fallback {
        font-size: 1.8rem;
    }

    /* Small Mobile Footer */
    footer {
        padding: 1.5rem 0 0;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-logo h3 {
        font-size: 1.4rem;
    }
    
    .footer-logo p {
        font-size: 0.8rem;
    }
    
    .contact-item {
        font-size: 0.8rem;
        gap: 0.6rem;
    }
    
    .contact-icon {
        font-size: 0.9rem;
        width: 18px;
    }
    
    .footer-column h4 {
        font-size: 0.9rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    .newsletter-text {
        font-size: 0.8rem;
        max-width: 280px;
    }
    
    .newsletter-input-group {
        max-width: 280px;
    }
    
    .newsletter-input,
    .newsletter-btn {
        font-size: 0.8rem;
        padding: 0.8rem;
    }
    
    .social-icons a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
    
    .copyright p {
        font-size: 0.75rem;
    }
    
    .footer-legal a {
        font-size: 0.75rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .blog-post {
        min-width: 240px;
        max-width: 240px;
    }

    .blog-content {
        padding: 0.7rem;
    }

    .blog-post img,
    .blog-image-fallback {
        height: 120px;
    }

    .footer-content {
        gap: 1.2rem;
    }
    
    .footer-logo h3 {
        font-size: 1.3rem;
    }
    
    .newsletter-input-group,
    .newsletter-text {
        max-width: 250px;
    }
    
    .contact-item {
        font-size: 0.75rem;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}
