/*
Theme Name: Anas learning Center - Responsive
Theme URI: http://example.com
Author: Your name
Author URI: http://pinegrow.com/
Description: This theme was created with Pinegrow Theme Converter for WordPress - Now Mobile Responsive
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alchouston
*/

/* =================================================================
   RESPONSIVE MOBILE STYLES FOR ANA'S LEARNING CENTER
   ================================================================= */

/* Base Responsive Styles */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* Container Responsive Fixes */
.container {
    height: auto !important;
    min-height: 100vh;
    padding-left: 15px;
    padding-right: 15px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    
    /* Header Logo Responsive */
    .col.d-lg-flex.justify-content-lg-start {
        text-align: center;
        padding-left: 15px !important;
        margin-bottom: 20px;
    }
    
    .col.d-lg-flex.justify-content-lg-start img {
        max-width: 200px;
        width: 100%;
        height: auto;
    }
    
    /* Mobile Navigation Menu */
    .col-auto.my-auto {
        width: 100%;
        margin: 0 !important;
        padding: 0 15px !important;
        height: auto !important;
        transform: none !important;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 5px;
        border-radius: 5px !important;
        font-size: 14px;
        padding: 10px 15px;
    }
    
    /* Carousel Responsive */
    .carousel-inner {
        height: 300px !important;
    }
    
    .carousel-item img {
        height: 300px !important;
        object-fit: cover;
        width: 100% !important;
    }
    
    /* Cards Responsive */
    .row.d-xxl-flex.align-items-baseline {
        flex-direction: column;
    }
    
    .row.d-xxl-flex.align-items-baseline .col {
        margin: 0.5rem 0 !important;
        width: 100%;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .card-title {
        font-size: 24px !important;
    }
    
    .card-text {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* Programs Grid Responsive */
    .row-cols-3 {
        --bs-columns: 1;
    }
    
    .row-cols-3 > .col {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Contact Form Responsive */
    .col-12.col-md-6 {
        width: 100% !important;
        margin-bottom: 30px;
    }
    
    .form-group.mb-3 {
        margin-bottom: 20px;
    }
    
    .input-group {
        flex-wrap: nowrap;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Map Responsive */
    iframe {
        width: 100% !important;
        height: 250px !important;
    }
    
    /* Footer Responsive */
    .footer-clean .container .row {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-clean .item {
        margin-bottom: 20px;
    }
    
    .footer-clean .item ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 0;
        list-style: none;
    }
    
    .footer-clean .item.social {
        order: -1;
    }
    
    .footer-clean .item.social a {
        margin: 0 10px;
        font-size: 24px;
    }
    
    /* About Page Responsive */
    .accordion-button {
        font-size: 16px !important;
        padding: 15px;
    }
    
    .accordion-body {
        padding: 15px;
        font-size: 14px;
    }
    
    /* Typography Responsive */
    h1 {
        font-size: 28px !important;
        text-align: center;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 24px !important;
    }
    
    h3 {
        font-size: 20px !important;
    }
    
    h4 {
        font-size: 18px !important;
    }
    
    p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    /* Splash Page Mobile */
    .testimonials-clean .row.people {
        flex-direction: column;
    }
    
    .testimonials-clean .item {
        margin-bottom: 30px;
        width: 100%;
    }
    
    .testimonials-clean .box {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .testimonials-clean .author img {
        width: 60px;
        height: 60px;
    }
    
    /* Button Improvements */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 5px;
    }
    
    .btn-group .btn:not(:last-child) {
        margin-right: 0;
        border-radius: 5px !important;
    }
    
    /* Utility Classes for Mobile */
    .mobile-center {
        text-align: center;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
    
    .mobile-margin-bottom {
        margin-bottom: 20px;
    }
    
    /* Hide elements on mobile if needed */
    .mobile-hide {
        display: none;
    }
}

/* Tablet Responsive (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .carousel-inner {
        height: 500px !important;
    }
    
    .carousel-item img {
        height: 500px !important;
    }
    
    .row-cols-3 {
        --bs-columns: 2;
    }
    
    .row-cols-3 > .col {
        flex: 0 0 auto;
        width: 50%;
    }
    
    .card-title {
        font-size: 32px !important;
    }
    
    .btn-group .btn {
        font-size: 15px;
        padding: 10px 15px;
    }
}

/* Large Mobile (576px - 768px) */
@media (min-width: 576px) and (max-width: 768px) {
    
    .carousel-inner {
        height: 400px !important;
    }
    
    .carousel-item img {
        height: 400px !important;
    }
    
    .btn-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .btn-group .btn {
        flex: 1;
        min-width: calc(50% - 5px);
    }
    
    h1 {
        font-size: 32px !important;
    }
}

/* Small Mobile (up to 575px) */
@media (max-width: 575px) {
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .carousel-inner {
        height: 250px !important;
    }
    
    .carousel-item img {
        height: 250px !important;
    }
    
    .card {
        margin: 0.25rem 0;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .card-title {
        font-size: 20px !important;
        margin-bottom: 10px;
    }
    
    .form-control {
        padding: 12px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    /* Stack form elements on very small screens */
    .row .col {
        margin-bottom: 15px;
    }
    
    /* Adjust text shadows for readability on small screens */
    p[style*="text-shadow"] {
        text-shadow: 1px 1px 3px rgba(0,0,0,0.8) !important;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    
    .carousel-inner {
        height: 200px !important;
    }
    
    .carousel-item img {
        height: 200px !important;
    }
    
    .btn-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .btn-group .btn {
        flex: 1;
        margin: 2px;
        min-width: auto;
    }
}

/* Accessibility Improvements */
@media (max-width: 768px) {
    
    /* Larger touch targets */
    .btn, .form-control, select {
        min-height: 44px;
    }
    
    /* Better contrast for small screens */
    .card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* Focus states */
    .btn:focus,
    .form-control:focus {
        outline: 2px solid #f6cb16;
        outline-offset: 2px;
    }
    
    /* Readable font sizes */
    body {
        font-size: 16px;
        line-height: 1.5;
    }
}

/* Print Styles */
@media print {
    
    .btn-group,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators {
        display: none !important;
    }
    
    .container {
        height: auto !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        background: white !important;
        color: black !important;
    }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
    }
}

/* Animation Optimizations for Mobile */
@media (max-width: 768px) {
    
    /* Reduce animations on mobile for better performance */
    .carousel-item {
        transition: transform 0.3s ease-in-out;
    }
    
    .btn {
        transition: background-color 0.2s ease;
    }
    
    /* Disable hover effects on touch devices */
    @media (hover: none) {
        .btn:hover {
            background-color: inherit;
        }
    }
}

/* Fix for Bootstrap conflicts */
@media (max-width: 768px) {
    
    .d-flex {
        flex-wrap: wrap !important;
    }
    
    .justify-content-center {
        justify-content: center !important;
    }
    
    .align-items-center {
        align-items: center !important;
    }
    
    /* Override inline styles that break mobile */
    [style*="height: 100vh"] {
        height: auto !important;
        min-height: 100vh !important;
    }
    
    [style*="width: 1000px"] {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Loading Optimization */
@media (max-width: 768px) {
    
    /* Lazy loading hint for images */
    img {
        loading: lazy;
    }
    
    /* Optimize font loading */
    @font-face {
        font-display: swap;
    }
}

/* Fix menu text changes - Add to responsive.css */

/* Ensure menu text displays correctly */
.main-menu .btn .btn-text,
.main-menu .btn,
.btn-group .btn {
    /* Reset any content changes */
    content: none !important;
}

.main-menu .btn:before,
.main-menu .btn:after,
.btn-group .btn:before,
.btn-group .btn:after {
    content: "" !important;
    display: none !important;
}

/* Force original text to show */
.main-menu .btn span,
.btn-group .btn span,
.main-menu .btn .btn-text {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Reset font family to prevent icon font interference */
.main-menu .btn,
.btn-group .btn {
    font-family: 'Allerta', sans-serif !important;
    font-style: normal !important;
    font-weight: normal !important;
}

/* Specific fixes for each menu item */
.main-menu .home-btn .btn-text:before,
.main-menu .home-btn .btn-text:after {
    content: "" !important;
}

.main-menu .about-btn .btn-text:before,
.main-menu .about-btn .btn-text:after {
    content: "" !important;
}

.main-menu .programs-btn .btn-text:before,
.main-menu .programs-btn .btn-text:after {
    content: "" !important;
}

.main-menu .contact-btn .btn-text:before,
.main-menu .contact-btn .btn-text:after {
    content: "" !important;
}

/* Ensure icons stay separate from text */
.main-menu .btn .fa {
    margin-right: 8px;
    font-family: 'FontAwesome' !important;
}

/* Mobile-specific text fixes */
@media (max-width: 768px) {
    .main-menu .btn {
        font-size: 16px !important;
        text-transform: none !important;
        letter-spacing: normal !important;
    }
    
    .main-menu .btn .btn-text {
        display: inline !important;
    }
}

/* Debug: Show what's happening */
.debug-menu .main-menu .btn:before {
    content: "Before: " attr(data-original-text) !important;
    color: red !important;
    font-size: 10px !important;
}

.debug-menu .main-menu .btn:after {
    content: "After: " attr(data-current-text) !important;
    color: blue !important;
    font-size: 10px !important;
}