/*
 * MeriScholarship - Responsive Styles
 * This file contains all the responsive styling for the MeriScholarship e-learning platform
 */

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1170px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-section {
        padding: 120px 0;
    }
}

/* Large Devices (desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-section {
        padding: 100px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .course-card .card-img-top {
        height: 180px;
    }
    
    .pricing-price {
        font-size: 2.25rem;
    }
}

/* Medium Devices (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-image {
        margin-top: 3rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .course-card .card-img-top {
        height: 160px;
    }
    
    .course-title {
        font-size: 1.15rem;
    }
    
    .pricing-card.popular {
        transform: scale(1.03);
    }
    
    .pricing-price {
        font-size: 2rem;
    }
    
    .testimonial-card {
        padding: 1.75rem;
    }
    
    .footer-widget {
        margin-bottom: 2rem;
    }
    
    /* Navigation */
    .navbar-collapse {
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .auth-buttons {
        margin-top: 1rem;
        justify-content: center;
    }
}

/* Small Devices (landscape phones, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    .hero-title {
        font-size: 2.25rem;
    }
    
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    h3, .h3 {
        font-size: 1.5rem;
    }
    
    /* Layout & Sections */
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 2.5rem;
        text-align: center;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Components */
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-header {
        padding: 1.75rem;
    }
    
    .pricing-features {
        padding: 1.25rem 1.5rem;
    }
    
    .pricing-footer {
        padding: 1.25rem 1.5rem 1.75rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
    
    /* Navigation */
    .navbar-collapse {
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .auth-buttons {
        margin-top: 1rem;
        justify-content: center;
    }
    
    /* Footer */
    .footer-widget {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-copyright {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-links-bottom {
        text-align: center;
    }
    
    .footer-links-bottom a {
        margin: 0 0.75rem;
    }
    
    /* Course Cards */
    .course-card .card-img-top {
        height: 180px;
    }
}

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .hero-title {
        font-size: 1.85rem;
    }
    
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.35rem;
    }
    
    h4, .h4 {
        font-size: 1.2rem;
    }
    
    /* Layout & Sections */
    .hero-section {
        padding: 50px 0;
        text-align: center;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-image {
        margin-top: 2.5rem;
        text-align: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Components */
    .course-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-item {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .pricing-title {
        font-size: 1.25rem;
    }
    
    .pricing-price {
        font-size: 1.75rem;
    }
    
    .pricing-header {
        padding: 1.5rem;
    }
    
    .pricing-features {
        padding: 1rem 1.25rem;
    }
    
    .pricing-feature {
        font-size: 0.9rem;
    }
    
    .pricing-footer {
        padding: 1rem 1.25rem 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonial-content {
        font-size: 0.95rem;
    }
    
    .testimonial-avatar {
        width: 45px;
        height: 45px;
    }
    
    .testimonial-name {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand img {
        max-height: 30px;
    }
    
    .navbar-collapse {
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .auth-buttons {
        margin-top: 1rem;
        justify-content: center;
    }
    
    /* Footer */
    .site-footer {
        padding-top: 60px;
    }
    
    .footer-widget {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .widget-title {
        font-size: 1.15rem;
    }
    
    .widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .form-control {
        margin-bottom: 1rem;
        border-radius: var(--border-radius) !important;
    }
    
    .newsletter-form .btn {
        width: 100%;
        border-radius: var(--border-radius) !important;
    }
    
    .footer-copyright {
        text-align: center;
        margin-bottom: 1rem;
        font-size: 0.85rem;
    }
    
    .footer-links-bottom {
        text-align: center;
    }
    
    .footer-links-bottom a {
        margin: 0 0.5rem;
        font-size: 0.85rem;
    }
    
    /* Course Cards */
    .course-card .card-img-top {
        height: 160px;
    }
    
    .course-title {
        font-size: 1.1rem;
    }
    
    .course-info-item {
        font-size: 0.8rem;
    }
    
    .course-price {
        font-size: 1.25rem;
    }
    
    /* Back to Top Button */
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    
    /* Category Grid */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Special Case for iPhone SE and other very small screens */
@media (max-width: 374.98px) {
    .hero-title {
        font-size: 1.65rem;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .pricing-price {
        font-size: 1.5rem;
    }
    
    .testimonial-content {
        padding-left: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix for Navbar on Mobile Devices */
@media (max-width: 991.98px) {
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 2rem;
    }
    
    .megamenu {
        width: 100%;
        left: 0;
        right: 0;
        padding: 1rem 0;
        box-shadow: none;
        background-color: transparent;
    }
    
    .col-megamenu {
        padding-bottom: 0;
    }
    
    .megamenu-title {
        margin-top: 1rem;
    }
}

/* Fix for Auth Buttons on Mobile */
@media (max-width: 991.98px) {
    .auth-buttons {
        flex-direction: row;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .auth-buttons .btn {
        margin: 0 0.5rem;
    }
}