/**
 * Mobile-Specific Styles for Front Page Sections
 *
 * This file contains additional styles for specific sections
 * to ensure proper display on mobile devices.
 */

/* Why Choose Us Section - Mobile Adjustments */
@media (max-width: 767px) {
    /* Section title */
    .features-section .section-title {
        margin-bottom: 20px;
        text-align: center;
    }
    
    /* Feature cards */
    .features-grid {
        gap: 20px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-icon {
        margin-bottom: 10px;
    }
    
    .feature-card h3 {
        margin-bottom: 8px;
    }
    
    .feature-card p {
        margin-bottom: 5px;
    }
}

/* Popular Courses Section - Mobile Adjustments */
@media (max-width: 767px) {
    .courses-section .section-title {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .courses-grid {
        gap: 25px;
    }
    
    .course-content {
        padding: 15px;
    }
    
    .course-title {
        margin-bottom: 8px;
    }
    
    .course-excerpt {
        margin-bottom: 10px;
    }
    
    .course-meta {
        margin-bottom: 12px;
    }
}

/* Testimonials Section - Mobile Adjustments */
@media (max-width: 767px) {
    .testimonials-section .section-title {
        margin-bottom: 20px;
    }
    
    .testimonial-card {
        padding: 15px;
    }
    
    .testimonial-text {
        font-size: var(--paragraph-font-size);
        margin-bottom: 12px;
    }
    
    .testimonial-author-info h4 {
        font-size: var(--h2-font-size);
    }
}

/* Call-to-Action Section - Mobile Adjustments */
@media (max-width: 767px) {
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-content h2 {
        font-size: var(--h1-font-size);
        margin-bottom: 15px;
    }
    
    .cta-content p {
        font-size: var(--paragraph-font-size);
        margin-bottom: 20px;
    }
    
    .cta-content .btn {
        padding: 10px 20px;
    }
}

/* Footer Section - Mobile Adjustments */
@media (max-width: 767px) {
    .footer-widget-title {
        margin-bottom: 15px;
    }
    
    .footer-menu li, 
    .footer-contact-item {
        margin-bottom: 8px;
    }
    
    .newsletter-form-group {
        margin-bottom: 15px;
    }
    
    .social-link {
        margin-right: 8px;
        margin-bottom: 8px;
    }
    
    .footer-bottom {
        padding: 15px 0;
    }
    
    .site-info {
        font-size: var(--footer-font-size);
    }
    
    /* Fix for footer content getting cut off on left side */
    .footer-widget {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .footer-description {
        padding-right: 5px;
    }
    
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Fix for text overflow on mobile screens */
@media (max-width: 767px) {
    /* General paragraph text fixes */
    p, li, td, th {
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        -ms-hyphens: auto !important;
        -moz-hyphens: auto !important;
        -webkit-hyphens: auto !important;
        hyphens: auto !important;
        max-width: 100% !important;
    }
    
    /* Content container fixes */
    .container, .content-area, .entry-content, article, section {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Headings fix */
    h1, h2, h3, h4, h5, h6 {
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
        max-width: 100% !important;
    }
}

/* Additional fixes for smallest screens */
@media (max-width: 480px) {
    p, li {
        font-size: 14px !important;
        line-height: 1.5 !important;
        text-align: left !important;
        padding-right: 5px !important;
    }
} 