/* CourseAI - Responsive Styles */

/* Mobile First Approach - Base styles for mobile devices */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    
    /* SAL styles disabled */
    /*[data-sal] {
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
        transition: none !important;
    }*/
    
    /* Typography adjustments */
    .display-4 {
        font-size: 1.76rem !important;
    }
    
    h1, .h1 {
        font-size: 1.65rem;
    }
    
    h2, .h2 {
        font-size: 1.40rem;
    }
    
    h3, .h3 {
        font-size: 1.31rem;
    }
    
    .lead {
        font-size: 1.01rem;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.20rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 1.05rem;
    }
    
    /* Hero section adjustments */
    #hero {
        padding-top: 70px;
        min-height: auto;
    }
    
    #hero .container {
        padding: 2rem 1rem;
    }
    
    /* Button adjustments */
    .btn {
        font-size: 0.99rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Card adjustments */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Section spacing */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Icon sizes */
    .fa-3x {
        font-size: 2rem;
    }
    
    .fa-2x {
        font-size: 1.62rem;
    }
    
    /* Team member images */
    .card-img-top.rounded-circle {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Form adjustments */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Footer adjustments */
    #footer {
        text-align: center;
    }
    
    #footer .row > div {
        margin-bottom: 1.72rem;
    }
    
    /* Gallery adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* SAL animations disabled on mobile landscape */
    /*[data-sal] {
        animation: none !important;
        transition: none !important;
    }*/
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .navbar-brand {
        font-size: 1.40rem;
    }
    
    #hero {
        padding-top: 75px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .fa-3x {
        font-size: 2.26rem;
    }
    
    .card-img-top.rounded-circle {
        width: 130px !important;
        height: 130px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.39rem !important;
    }
    
    .navbar-brand {
        font-size: 1.49rem;
    }
    
    #hero {
        padding-top: 80px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    section {
        padding: 2.75rem 0;
    }
    
    .fa-3x {
        font-size: 2.42rem;
    }
    
    .card-img-top.rounded-circle {
        width: 140px !important;
        height: 140px !important;
    }
    
    /* Process section adjustments */
    #process .col-lg-2 {
        margin-bottom: 1.58rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .display-4 {
        font-size: 2.40rem !important;
    }
    
    .card-img-top.rounded-circle {
        width: 145px !important;
        height: 145px !important;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .display-4 {
        font-size: 2.63rem !important;
    }
    
    .container {
        max-width: 1140px;
    }
    
    .card-img-top.rounded-circle {
        width: 150px !important;
        height: 150px !important;
    }
}

/* Specific component responsive adjustments */

/* Navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 9px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
}

/* Hero section responsive */
@media (max-width: 991.98px) {
    #hero .row {
        text-align: center;
    }
    
    #hero .col-lg-6:last-child {
        margin-top: 2rem;
    }
}

/* Services grid responsive */
@media (max-width: 767.98px) {
    #services .col-lg-4 {
        margin-bottom: 1.68rem;
    }
}

/* Team section responsive */
@media (max-width: 991.98px) {
    #team .col-lg-4:nth-child(4),
    #team .col-lg-4:nth-child(5) {
        margin-top: 0;
    }
    
    #team .col-lg-4.offset-lg-2 {
        margin-left: 0 !important;
    }
}

/* Pricing plans responsive */
@media (max-width: 991.98px) {
    #priceplan .col-lg-4 {
        margin-bottom: 1.71rem;
    }
}

/* Process section responsive */
@media (max-width: 991.98px) {
    #process .col-lg-2 {
        margin-bottom: 2rem;
    }
}

/* Reviews section responsive */
@media (max-width: 991.98px) {
    #reviews .col-lg-4:nth-child(4),
    #reviews .col-lg-4:nth-child(5) {
        margin-top: 0;
    }
    
    #reviews .col-lg-4.offset-lg-2 {
        margin-left: 0 !important;
    }
}

/* Contact form responsive */
@media (max-width: 767.98px) {
    #contacts .col-md-6 {
        margin-bottom: 1rem;
    }
    
    #contacts .col-md-4 {
        margin-bottom: 1.62rem;
    }
}

/* Footer responsive */
@media (max-width: 767.98px) {
    #footer .row > div {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    #footer .row:last-child > div {
        margin-bottom: 0;
    }
}

/* Gallery responsive */
@media (max-width: 767.98px) {
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    #gallery .col-md-4:last-child {
        margin-bottom: 0;
    }
}

/* FAQ responsive */
@media (max-width: 991.98px) {
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
}

/* Blog grid responsive */
@media (max-width: 991.98px) {
    #blog .col-lg-4 {
        margin-bottom: 1.68rem;
    }
}

/* Additional pages responsive adjustments */
@media (max-width: 767.98px) {
    /* Additional page sections */
    .col-md-6.col-lg-4,
    .col-md-6.col-lg-3,
    .col-lg-4 {
        margin-bottom: 1.59rem;
    }
    
    /* Breadcrumb responsive */
    nav.bg-light {
        padding: 0.75rem 0;
    }
    
    nav.bg-light img {
        height: 16px;
    }
}

/* Accessibility improvements */
@media (max-width: 767.98px) {
    /* Ensure touch targets are at least 44px */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Form controls */
    .form-control,
    .form-check-input {
        min-height: 44px;
    }
    
    .form-check-label {
        padding-left: 0.5rem;
        line-height: 1.8;
    }
}

/* Print styles */
@media print {
    /* Hide unnecessary elements when printing */
    .navbar,
    .btn,
    #footer,
    nav.bg-light {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #e3e0e0;
    }
    
    /* Ensure images fit on page */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
} 