/* FORCE HERO SPACING - Add at very top */
.hero-section {
    padding-top: 160px !important; /* Even more space */
}

.hero-content {
    margin-top: 40px !important; /* Additional push down */
}

.hero-text {
    margin-top: 20px !important; /* Extra space for title */
}

/* Responsive overrides */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 140px !important;
    }
    .hero-content {
        margin-top: 20px !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 120px !important;
    }
    .hero-content {
        margin-top: 10px !important;
    }
}
/* Home Page CSS - Clean and isolated */

/* EMERGENCY FIX - Ensure all content is visible */
.hero-section,
.hero-content,
.hero-text,
.hero-title,
.hero-subtitle,
.hero-buttons,
.hero-stats {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* Ensure sections are visible */
main.home-page section {
    display: block !important;
    opacity: 1 !important;
}

/* Fix feature cards */
.feature-card {
    opacity: 1 !important;
    transform: none !important;
}

/* Body and page setup */
body.page-with-header {
    margin: 0;
    padding: 0;
}

/* Ensure main content is visible */
main.home-page {
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Container for home page sections */
main.home-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography for home page */
main.home-page h1, 
main.home-page h2, 
main.home-page h3, 
main.home-page h4, 
main.home-page h5, 
main.home-page h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

main.home-page p {
    margin-bottom: 1rem;
}

/* Buttons for home page */
main.home-page .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

main.home-page .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

main.home-page .btn:hover::before {
    left: 100%;
}

main.home-page .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

main.home-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

main.home-page .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

main.home-page .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

main.home-page .btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

main.home-page .btn-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

main.home-page .btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Hero Section - Fixed spacing like courses page */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    display: block !important;
    overflow: hidden;
    padding: 140px 0 3rem 0; /* Top padding for header space, like courses page */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: -2s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 50%;
    right: 15%;
    animation-delay: -4s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 80%;
    animation-delay: -1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
}

.hero-text {
    text-align: center;
    color: white;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #f093fb, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-text {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    color: white;
    min-width: 150px;
    transition: transform 0.3s ease;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fbbf24;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Section Styles */
main.home-page section {
    padding: 5rem 0;
}

main.home-page .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

main.home-page .section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

main.home-page .section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
main.home-page .features-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

main.home-page .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

main.home-page .feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

main.home-page .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

main.home-page .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

main.home-page .feature-card:hover::before {
    transform: scaleX(1);
}

main.home-page .feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

main.home-page .feature-icon svg {
    width: 28px;
    height: 28px;
}

main.home-page .feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

main.home-page .feature-description {
    color: #64748b;
    line-height: 1.6;
}

/* Courses Section */
main.home-page .courses-section {
    background: white;
}

main.home-page .courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

main.home-page .course-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

main.home-page .course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

main.home-page .course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

main.home-page .course-content {
    padding-top: 0.5rem;
}

main.home-page .course-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

main.home-page .course-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

main.home-page .course-features {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

main.home-page .feature-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

main.home-page .course-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
    text-align: center;
}

main.home-page .course-btn:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
}

main.home-page .courses-cta {
    text-align: center;
}

/* Testimonials Section */
main.home-page .testimonials-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
}

main.home-page .testimonials-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

main.home-page .testimonials-section .section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: white !important;
    margin-bottom: 1rem;
}

main.home-page .testimonials-section .section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 600px;
    margin: 0 auto;
}

main.home-page .testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto 2rem;
}

main.home-page .testimonial-card {
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

main.home-page .testimonial-card.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

main.home-page .testimonial-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

main.home-page .quote-icon {
    width: 40px;
    height: 40px;
    color: #fbbf24;
    margin: 0 auto 1.5rem;
}

main.home-page .testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

main.home-page .testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

main.home-page .author-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

main.home-page .author-role {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

main.home-page .testimonial-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

main.home-page .nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

main.home-page .nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

main.home-page .nav-btn svg {
    width: 20px;
    height: 20px;
}

main.home-page .testimonial-dots {
    display: flex;
    gap: 0.5rem;
}

main.home-page .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

main.home-page .dot.active {
    background: #fbbf24;
    transform: scale(1.2);
}

/* CTA Section */
main.home-page .cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

main.home-page .cta-content {
    max-width: 600px;
    margin: 0 auto;
}

main.home-page .cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

main.home-page .cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

main.home-page .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Bar */
main.home-page .contact-bar {
    background: #1a202c;
    color: white;
    padding: 2rem 0;
}

main.home-page .contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

main.home-page .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

main.home-page .contact-icon {
    width: 24px;
    height: 24px;
    color: #667eea;
    flex-shrink: 0;
}

main.home-page .contact-details {
    display: flex;
    flex-direction: column;
}

main.home-page .contact-label {
    font-size: 0.85rem;
    color: #a0aec0;
    margin-bottom: 0.25rem;
}

main.home-page .contact-value {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

main.home-page .contact-value:hover {
    color: #667eea;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-section {
        padding: 130px 0 2rem 0; /* Adjusted for medium screens */
    }
    
    main.home-page .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    main.home-page .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    main.home-page .contact-info {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 2rem 0; /* Adjusted for tablets */
    }
    
    main.home-page section {
        padding: 3rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    main.home-page .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .stat-card {
        min-width: 120px;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    main.home-page .features-grid {
        grid-template-columns: 1fr;
    }
    
    main.home-page .courses-grid {
        grid-template-columns: 1fr;
    }
    
    main.home-page .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    main.home-page .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    main.home-page .testimonial-navigation {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 110px 0 2rem 0; /* Adjusted for mobile */
    }
    
    main.home-page .container {
        padding: 0 0.8rem;
    }
    
    main.home-page section {
        padding: 2rem 0;
    }
    
    .hero-stats {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .stat-card {
        min-width: 100px;
        padding: 0.8rem;
    }
    
    main.home-page .feature-card,
    main.home-page .course-card {
        margin: 0 0.5rem;
    }
    
    main.home-page .testimonial-content {
        padding: 1.5rem;
    }
    
    main.home-page .nav-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 360px) {
    .hero-section {
        padding: 100px 0 2rem 0; /* Adjusted for small mobile */
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    main.home-page .btn,
    main.home-page .course-btn,
    main.home-page .nav-btn {
        min-height: 48px;
    }
    
    main.home-page .feature-card:hover,
    main.home-page .course-card:hover {
        transform: none;
    }
    
    main.home-page .feature-card:active,
    main.home-page .course-card:active {
        transform: scale(0.98);
    }
}

/* Focus styles for accessibility */
main.home-page .btn:focus,
main.home-page .course-btn:focus,
main.home-page .nav-btn:focus,
main.home-page .contact-value:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}