/* ==========================================================================
   Mobile Responsive Overrides
   ICEF India - Mobile First Enhancements
   ========================================================================== */

/* Spacing & Layout Overrides for Mobile */
@media (max-width: 767px) {
    [class*="pd_top_"], [class*="pd_bottom_"] {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }
    [class*="mr_top_"], [class*="mr_bottom_"] {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
    }
    .pd_top_180, .pd_top_200, .pd_bottom_200 {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    .pd_top_100, .pd_bottom_100, .pd_top_90, .pd_bottom_90, .pd_top_80, .pd_bottom_80, .pd_top_75, .pd_top_70 {
        padding-top: 35px !important;
        padding-bottom: 35px !important;
    }
    
    /* Hero Slider Fixes - Centering everything */
    .slider_content {
        text-align: center !important;
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    .slider_content h1 {
        font-size: 24px !important;
        line-height: 1.2 !important;
        min-height: auto !important;
        margin: 0 auto 15px auto !important;
        text-align: center !important;
    }
    .slider_content p.description {
        font-size: 13px !important;
        margin: 0 auto 20px auto !important;
        text-align: center !important;
        color: #ffffff !important;
    }
    .slider_content .button_all {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px;
        width: 100% !important;
        margin: 0 auto !important;
    }
    .slider_content .button_all a {
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 280px !important;
        display: block !important;
    }
    
    /* Image layer height fix for mobile */
    .image-layer {
        min-height: 400px !important;
    }

    /* Container Spacing */
    .auto-container, .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        text-align: center !important;
    }

    /* Global Headings & Typography */
    h1 { font-size: 26px !important; text-align: center !important; }
    h2 { font-size: 22px !important; text-align: center !important; }
    h3 { font-size: 20px !important; text-align: center !important; }
    h4 { font-size: 18px !important; text-align: center !important; }
    p { text-align: center !important; }
    
    .title_all_box, .title_sections, .title_sections.left {
        text-align: center !important;
        margin: 0 auto !important;
    }
    .title_all_box h2, .title_sections h2, .title_all_box h2 span {
        font-size: 20px !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }
    
    /* Card/Grid Layouts - Center align card content */
    .about_us_section .row [class*="col-"],
    .about-section .row [class*="col-"],
    .contact-section .row [class*="col-"],
    .sec_comments .row [class*="col-"],
    .col {
        margin-bottom: 25px !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        text-align: center !important;
    }
    
    .card-body, .card, .card a {
        text-align: center !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    .card img, .card-body img, .card a img {
        margin: 0 auto 15px auto !important;
        display: block !important;
    }
    
    .card-title, .card-text {
        width: 100% !important;
        text-align: center !important;
    }
    
    /* Buttons stacking & width */
    .theme-btn {
        width: 100% !important;
        max-width: 280px !important; /* Premium button width */
        margin: 0 auto 15px auto !important;
        text-align: center !important;
        padding: 0 20px !important;
        line-height: 46px !important;
        min-height: 46px !important;
        display: block !important;
        border-radius: 8px !important;
        font-size: 14px !important;
    }
    
    /* Fix for large top padding on button containers */
    .theme_btn.pt-5, .theme_btn_all.pt-5, .pt-5 {
        padding-top: 15px !important;
    }
    
    /* Testimonials - Centering */
    .testimonial_box {
        padding: 15px !important;
        text-align: center !important;
    }
    .testimonial_box .description {
        font-size: 14px !important;
        text-align: center !important;
    }
    .client_bx {
        justify-content: center !important;
        text-align: center !important;
    }
    
    /* Slider Controls */
    .arrows {
        display: none !important;
    }

    /* Form Fixes - Compacting for mobile visibility */
    .contact_form_box_all {
        padding: 15px !important;
        text-align: left !important;
    }
    .contact_form_box_all .row [class*="col-"] {
        margin-bottom: 15px !important;
    }
    .contact_form_box_all br {
        display: none !important;
    }
    .contact_form_box_all label {
        display: block !important;
        margin-bottom: 5px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
    }
    .contact_form_box_all input, 
    .contact_form_box_all select, 
    .contact_form_box_all textarea {
        margin-bottom: 5px !important;
        padding: 8px 12px !important;
        height: auto !important;
    }
    .contact_form_box_all i {
        display: none !important; /* Hide extra icons on mobile if they take too much space */
    }
    .contact_form_box_all input[type="submit"] {
        margin-top: 10px !important;
        width: 100% !important;
    }
    
    /* Solutions Grid & Other Grid Layouts */
    #solutions .row-cols-md-4,
    #solutions .row-cols-1,
    .row.mt-4,
    .row.row-cols-1.row-cols-md-4.g-3 {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        align-items: center !important;
    }
    
    /* Footer responsiveness */
    .footer_area .row [class*="col-"] {
        margin-bottom: 30px;
        text-align: center !important;
    }
    .footer_logo_box {
        margin-bottom: 20px;
    }
    .footer_widgets .fo_wid_title:before {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    .footer_widgets .fo_wid_title h2 {
        text-align: center !important;
    }
    /* Careers specific list alignment */
    .why-work-with-us .description_box ul {
        display: inline-block !important;
        text-align: left !important;
        margin: 0 auto !important;
    }
    .why-work-with-us .description_box ul li {
        text-align: left !important;
        margin-bottom: 5px;
    }
    
    /* Job Details specific alignment */
    .job-details-section .container {
        text-align: left !important;
    }
    .job-details-section h1, 
    .job-details-section h2, 
    .job-details-section p, 
    .job-details-section ul li,
    .job-details-section .col-md-12 {
        text-align: left !important;
    }
    .job-details-section .theme-btn {
        margin-left: 0 !important; /* Align button to left on job details page if desired? Actually user might want button centered. User said 'content'. I'll keep button centered unless asked. */
    }
    .get_intouch_inrfo, .foo_cont_inner {
        text-align: center !important;
    }
    .con_content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Tables on mobile */
    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
        text-align: center !important;
    }
    table tr {
        margin-bottom: 15px;
        border-bottom: 1px solid #eee;
    }
}

/* Tablet & Intermediate Screen Overrides */
@media (min-width: 768px) and (max-width: 991px) {
    .pd_top_180, .pd_top_200 {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }
    .slider_content h1 {
        font-size: 32px !important;
    }
    .auto-container, .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Header & Navigation Fixes */
@media (max-width: 991px) {
    .header_right_content {
        display: none !important;
    }
    .navbar_togglers {
        display: block !important;
    }
    /* Ensure images stack and center properly */
    .about-section img, .about_image img, .slider_content img {
        margin-top: 20px !important;
        width: 100% !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }
    .title_all_box.text-left, .title_sections.left {
        text-align: center !important;
    }
}
