/* Comprehensive Responsive Styles for the Entire Website */

/* Base responsive adjustments */
html {
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container adjustments */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    html {
        font-size: 15px;
    }
    
    h1, .h1 {
        font-size: 2.5rem;
    }
    
    h2, .h2 {
        font-size: 2rem;
    }
    
    h3, .h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    html {
        font-size: 14px;
    }
    
    h1, .h1 {
        font-size: 2.2rem;
    }
    
    h2, .h2 {
        font-size: 1.8rem;
    }
    
    h3, .h3 {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem !important;
    }
    
    .section-title p.lead {
        font-size: 1rem !important;
    }
}

@media (max-width: 575px) {
    .container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    html {
        font-size: 13px;
    }
    
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.6rem;
    }
    
    h3, .h3 {
        font-size: 1.4rem;
    }
    
    p {
        font-size: 0.95rem;
    }
}

/* Navigation Responsive */
@media (max-width: 991px) {
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand img {
        max-height: 40px;
    }
    
    .navbar-collapse {
        background-color: white;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
    }
    
    .navbar-nav {
        padding: 10px 0;
    }
    
    .nav-item {
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 10px;
    }
    
    .nav-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .nav-link {
        padding: 8px 15px;
    }
    
    .nav-item:last-child {
        margin-top: 15px;
    }
    
    .btn-join {
        display: block;
        text-align: center;
    }
}

/* Courses Showcase Section Responsive */
@media (max-width: 991px) {
    .showcase-container {
        flex-direction: column;
    }
    
    .courses-grid,
    .mini-slider {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .courses-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .courses-cards {
        grid-template-columns: 1fr;
    }
    
    .showcase-heading h2 {
        font-size: 1.6rem;
    }
    
    .courses-grid-header h3,
    .mini-slider-header h3 {
        font-size: 1.3rem;
    }
}

/* Features Section Responsive */
@media (max-width: 991px) {
    .features-section {
        padding: 60px 0;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 575px) {
    .features-section {
        padding: 40px 0;
    }
    
    .feature-box {
        padding: 20px;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .feature-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
}

/* Courses Section Responsive */
@media (max-width: 991px) {
    .courses-section {
        padding: 60px 0;
    }
    
    .course-image {
        height: 180px;
    }
    
    .course-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .course-image {
        height: 200px;
    }
}

@media (max-width: 575px) {
    .courses-section {
        padding: 40px 0;
    }
    
    .course-body {
        padding: 20px;
    }
    
    .course-category {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    
    .course-title {
        font-size: 1.1rem;
    }
    
    .btn-view-all {
        padding: 8px 25px;
    }
}

/* About Section Responsive */
@media (max-width: 991px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-content {
        padding: 30px 0;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 575px) {
    .about-section {
        padding: 40px 0;
    }
    
    .about-title {
        font-size: 1.6rem;
    }
    
    .about-subtitle {
        font-size: 1rem;
    }
    
    .about-points li {
        padding-left: 25px;
    }
    
    .btn-about {
        padding: 10px 30px;
    }
}

/* Blog Section Responsive */
@media (max-width: 991px) {
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .blog-image {
        height: 200px;
    }
}

@media (max-width: 575px) {
    .blog-section {
        padding: 40px 0;
    }
    
    .blog-body {
        padding: 20px;
    }
    
    .blog-date {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    
    .blog-category {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
}

/* Contact Section Responsive */
@media (max-width: 991px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-info,
    .contact-form {
        padding: 30px;
    }
    
    .contact-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 575px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-info,
    .contact-form {
        padding: 25px;
    }
    
    .contact-title {
        font-size: 1.5rem;
    }
    
    .contact-item {
        margin-bottom: 20px;
    }
    
    .form-control {
        height: 45px;
        margin-bottom: 15px;
    }
    
    textarea.form-control {
        height: 120px;
    }
    
    .btn-submit {
        padding: 10px 30px;
    }
}

/* Footer Responsive */
@media (max-width: 991px) {
    .footer {
        padding-top: 60px;
    }
    
    .footer-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .footer-bottom {
        margin-top: 40px;
        padding: 15px 0;
    }
}

@media (max-width: 767px) {
    .footer {
        padding-top: 50px;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a {
        padding-left: 0;
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
        display: flex;
    }
}

@media (max-width: 575px) {
    .footer {
        padding-top: 40px;
    }
    
    .footer-bottom {
        margin-top: 30px;
        padding: 10px 0;
    }
}

/* Fix for oversized images in cards */
@media (max-width: 575px) {
    .course-card-small img,
    .mini-carousel-item img {
        width: 100%;
        object-fit: cover;
    }
}

/* Fix for modals on small screens */
@media (max-width: 575px) {
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 15px;
    }
}

/* Fix for section spacing */
@media (max-width: 575px) {
    section {
        padding: 40px 0 !important;
    }
    
    .section-title {
        margin-bottom: 30px !important;
    }
}

/* Fix for buttons on small screens */
@media (max-width: 575px) {
    .btn, 
    .btn-primary, 
    .btn-secondary,
    .btn-hero,
    .btn-get-started,
    .btn-view-all,
    .btn-about,
    .btn-submit {
        padding: 8px 20px !important;
        font-size: 0.9rem !important;
    }
}
