/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   For Dr. Aswin OncoNest Website
   ======================================== */

/* Default logo sizing */
.cs_site_branding img {
    width: 300px;
    height: auto;
}

/* Tablet and below adjustments */
@media (max-width: 991px) {

    .cs_top_header_left,
    .cs_top_header_right {
        display: none !important;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Mobile devices (767px and below) */
@media (max-width: 767px) {

    /* Logo adjustments for all pages */
    .cs_site_branding img {
        height: 120px !important;
        width: 200px !important;
        max-width: 300px !important;
    }

    /* Header adjustments */
    .cs_main_header {
        padding: 10px 0 !important;
    }

    /* Hero Banner (index page) */
    .cs_hero_bg_1 {
        background-image: url('../dr.aswin/mobile-banner/Android Compact - 3 (1).avif') !important;
        min-height: 400px !important;
        background-size: cover;
        background-position: center;
    }

    /* Hero text */
    .cs_hero_title {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .cs_hero_subtitle {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }

    /* Page titles */
    .cs_page_title {
        font-size: 1.8rem !important;
    }

    /* Button adjustments */
    .cs_btn {
        padding: 12px 24px !important;
        font-size: 0.95rem !important;
    }

    /* Section titles */
    .cs_section_title {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }

    .cs_section_subtitle {
        font-size: 0.9rem !important;
    }

    /* Service cards - Fix overlap and spacing */
    .cs_iconbox.cs_style_2 {
        margin-bottom: 20px !important;
    }

    .cs_iconbox_title {
        font-size: 1.1rem !important;
    }

    .cs_iconbox_subtitle {
        font-size: 0.9rem !important;
    }

    /* Counter/Trust section cards */
    .cs_counter_1_wrap {
        padding: 20px 12px !important;
        gap: 16px !important;
    }

    .cs_counter.cs_style_1 {
        min-width: 280px !important;
        flex: 0 0 280px !important;
        margin-bottom: 0 !important;
    }

    .cs_counter_nmber {
        font-size: 16px !important;
    }

    .cs_counter_subtext {
        font-size: 14px !important;
    }

    /* About section image */
    .cs_doctor_details_thumbnail img {
        height: auto !important;
        max-height: 500px !important;
        width: 100%;
        object-fit: cover;
    }

    /* Tab navigation */
    .cs_tab_links.cs_style_1 {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .cs_tab_links.cs_style_1 li {
        flex: 1 1 calc(50% - 5px) !important;
        min-width: calc(50% - 5px) !important;
    }

    .cs_tab_links.cs_style_1 li a {
        padding: 12px 8px !important;
        font-size: 0.85rem !important;
    }

    .cs_tab_link_icon {
        width: 30px !important;
        height: 30px !important;
    }

    /* Footer layout */
    .cs_footer_row {
        flex-direction: column !important;
    }

    .cs_footer_col {
        width: 100% !important;
        margin-bottom: 30px !important;
    }

    .cs_footer_highlight_col {
        text-align: center !important;
    }

    .cs_footer_logo img {
        max-width: 200px !important;
    }

    .cs_footer_widget_title {
        font-size: 1.2rem !important;
    }

    .cs_footer_bottom_in {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }

    .cs_footer_menu {
        flex-direction: column !important;
        gap: 8px !important;
    }

    /* WhatsApp floating button */
    .whatsapp-float {
        bottom: 80px !important;
        right: 15px !important;
    }

    .whatsapp-float>div:first-child {
        font-size: 14px !important;
        padding: 10px 16px 10px 14px !important;
    }

    .whatsapp-float>div:last-child {
        font-size: 11px !important;
        padding: 5px 10px !important;
        margin-right: 25px !important;
    }

    /* Spacing adjustments */
    .cs_height_110,
    .cs_height_120 {
        height: 60px !important;
    }

    .cs_height_50 {
        height: 30px !important;
    }

    /* Container padding */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Row gap fixes */
    .row.cs_gap_y_30>div,
    .row.cs_gap_y_40>div {
        margin-bottom: 20px !important;
    }

    /* CTA Section */
    .cs_cta_subtitle {
        font-size: 0.95rem !important;
    }

    /* FAQ Section */
    .custom-accordion-button {
        font-size: 0.85rem !important;
        padding: 10px 10px !important;
        line-height: 1.4 !important;
    }

    .custom-accordion-body {
        font-size: 0.8rem !important;
        padding: 10px 10px !important;
        line-height: 1.5 !important;
    }

    /* FAQ accordion items spacing */
    .accordion-item {
        margin-bottom: 8px !important;
    }

    /* FAQ section title */
    .cs_faq .cs_section_title {
        font-size: 1.4rem !important;
    }

    .cs_faq .cs_section_subtitle {
        font-size: 0.85rem !important;
    }

    /* Doctor info boxes */
    .cs_doctor_info_row {
        flex-direction: column !important;
    }

    .cs_doctor_info_col {
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    /* Marquee text */
    marquee {
        font-size: 1rem !important;
        padding: 0.6rem 0 !important;
    }

    /* Hide elements on mobile if needed */
    .cs_section_img {
        display: none;
    }

    /* Service section heading */
    .cs_section_heading.cs_type_1 {
        flex-direction: column !important;
    }

    .cs_section_heading_left,
    .cs_section_heading_right {
        flex: 1 1 100% !important;
        text-align: left !important;
        margin-bottom: 15px !important;
    }

    /* Iconbox style 3 (Why choose us) */
    .cs_iconbox.cs_style_3 {
        flex-direction: column !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 30px !important;
    }

    .cs_iconbox.cs_style_3 .cs_iconbox_icon {
        margin-bottom: 15px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Service list wrapper for Why Choose section */
    .cs_service_list {
        width: 100% !important;
    }

    .cs_service_wrapper {
        width: 100% !important;
        padding: 0 !important;
    }

    /* Card style 2 - Image and text layout */
    .cs_card.cs_style_2 .row {
        flex-direction: column-reverse !important;
    }

    .cs_card.cs_style_2 .col-lg-6 {
        width: 100% !important;
    }

    .cs_card_thumb {
        margin-top: 20px !important;
    }

    /* Social buttons */
    .cs_social_btns {
        justify-content: center !important;
    }

    /* Footer social icons - mobile specific */
    .cs_footer .cs_social_btns.cs_style_1 {
        margin-top: 25px !important;
        justify-content: center !important;
        gap: 12px !important;
    }

    .cs_footer .cs_social_btns.cs_style_1 a {
        height: 44px !important;
        width: 44px !important;
        font-size: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    /* Footer contact list icons */
    .cs_footer_contact li i {
        font-size: 16px !important;
        margin-right: 8px !important;
        left: 0 !important;
        top: 3px !important;
    }

    .cs_footer_contact li {
        text-align: center !important;
        margin-bottom: 15px !important;
        padding-left: 20px !important;
    }

    /* Video player button */
    .cs_video_open {
        transform: scale(0.8) !important;
    }

    /* Improve text readability */
    body {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    p {
        margin-bottom: 12px !important;
    }

    /* Doctor details quote */
    .cs_doctor_details_thumbnail img+div {
        margin-top: 12px !important;
    }

    .cs_doctor_details_thumbnail span {
        font-size: 15px !important;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.9rem !important;
    }

    /* Page heading section */
    .cs_page_heading {
        padding: 60px 0 40px !important;
    }

    /* Blog cards */
    .cs_post {
        margin-bottom: 25px !important;
    }

    /* Form elements */
    .cs_form_field {
        margin-bottom: 18px !important;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        padding: 12px 15px !important;
        font-size: 15px !important;
    }
}

/* Extra small mobile devices (480px and below) */
@media (max-width: 480px) {

    /* .cs_site_branding img {
        height: 90px !important;
        max-width: 250px !important;
    } */

    .cs_hero_title,
    .cs_page_title {
        font-size: 1.5rem !important;
    }

    .cs_section_title {
        font-size: 1.4rem !important;
    }

    /* Smaller counter cards */
    .cs_counter.cs_style_1 {
        min-width: 260px !important;
        flex: 0 0 260px !important;
    }

    /* Tab links full width on very small screens */
    .cs_tab_links.cs_style_1 li {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }

    /* Footer text smaller */
    .cs_footer_copyright {
        font-size: 0.85rem !important;
    }

    /* Button text size */
    .cs_btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* Landscape orientation fixes */
@media (max-width: 767px) and (orientation: landscape) {
    .cs_hero_bg_1 {
        min-height: 350px !important;
    }

    .cs_hero_title {
        font-size: 1.6rem !important;
    }
}