﻿/* Responsive Styles */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .main-header {
        width: calc(100% - 40px);
        top: 50px;
    }

    .header-content {
        padding: 0 20px;
    }

    .nav-menu {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* Header full width + clean mobile look */
    .main-header {
        width: 90% !important; 
        max-width: 500px;
        min-height: 42px !important;
        height: auto !important; 
        padding: 18px 15px !important;
        left: 50% !important;
        transform: translateX(-50%);
        top: 15px !important;
        margin: 0 auto;
        border-radius: 16px; 
        box-shadow: 0 6px 20px rgba(0,0,0,0.1); 
        box-sizing: border-box;
    }

    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0;
        position: relative;
    }

    /* Mobile menu toggle (hamburger) */
    .mobile-toggle {
        display: flex;
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        z-index: 1000;
    }

    /* Logo ko perfectly fixed aur centered in header */
    .header-logo {
        position: absolute;
        left: 50%;
        top: 7%;
        transform: translate(-50%, -50%);
        margin: 0;
        z-index: 1001;
    }

    .logo-header {
        height: 42px;
        width: auto;
        display: block;
    }

    

@media (max-width: 576px) {
    .main-header {
        padding: 10px 12px !important;
    }

    .logo-header {
        height: 38px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .product-card {
        padding: 30px 20px;
    }
}

        /* Hero section */

        /* HERO LOGIN */
        /* Responsive Design */
        @media (max-width: 768px) {
            .hero-login-btn-container {
                top: 20px;
                right: 20px;
            }

            .hero-login-btn {
                padding: 10px 20px;
                font-size: 0.95rem;
            }

            .modal-content {
                padding: 30px 20px;
                width: 95%;
            }
        }

        @media (max-width: 480px) {
            .hero-login-btn-container {
                top: 15px;
                right: 15px;
            }

            .hero-login-btn {
                padding: 8px 16px;
                font-size: 0.9rem;
            }

                .hero-login-btn i {
                    font-size: 1rem;
                }

            .form-options {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
        }

        /* END */


        /* Responsive Design */
        @media (max-width: 992px) {
            .hero-title {
                font-size: 2.8rem;
            }

            .hero-tagline {
                font-size: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .hero-section {
                min-height: 80vh;
            }

            .hero-title {
                font-size: 2.2rem;
            }

            .hero-tagline {
                font-size: 1.2rem;
            }

            .search-bar {
                flex-direction: column;
            }

            .search-input {
                padding: 18px;
            }

            .search-button {
                padding: 18px;
                border-radius: 0;
            }

            .hero-logo {
                max-width: 150px;
                top: 20px;
                left: 20px;
            }
        }

        @media (max-width: 480px) {
            .hero-title {
                font-size: 1.8rem;
            }

            .hero-tagline {
                font-size: 1rem;
                margin-bottom: 30px;
            }

            .hero-cta {
                padding: 12px 30px;
                font-size: 1rem;
            }

            .search-input {
                font-size: 16px;
                padding: 15px;
            }

            .search-button {
                font-size: 16px;
                padding: 15px;
            }
        }
        /* single page banner */

        /* Responsive - sirf banner ke liye */
        @media (max-width: 768px) {
            .single-banner .banner-title {
                font-size: 2.5rem;
            }

            .single-banner .banner-tagline {
                font-size: 1.4rem;
                margin-bottom: 25px;
            }

            .single-banner .search-button {
                padding: 0 25px;
                font-size: 16px;
            }
        }
        /* Responsive Design */
        @media (max-width: 768px) {
            .search-container {
                max-width: 95%;
            }

            .search-bar {
                flex-direction: column;
                border-radius: 8px;
                overflow: hidden;
            }

            .search-input {
                padding: 15px;
                font-size: 16px;
                width: 100%;
            }

            .search-button {
                padding: 15px;
                width: 100%;
                justify-content: center;
            }

            .results-container {
                max-width: 95%;
                padding: 15px;
            }
        }
        /* hero Quote form*/

        /* Breadcrumb Start */
        /* Responsive adjustments for breadcrumb in hero */
        @media (max-width: 768px) {
            .single-banner .breadcrumb {
                padding: 0.5rem 1rem;
                border-radius: 6px;
            }

            .single-banner .breadcrumb-item {
                font-size: 0.9rem;
            }

                .single-banner .breadcrumb-item + .breadcrumb-item::before {
                    padding: 0 0.5rem;
                    font-size: 1rem;
                }

                .single-banner .breadcrumb-item a i {
                    margin-right: 0.25rem;
                    font-size: 0.8rem;
                }
        }

        @media (max-width: 576px) {
            .single-banner .breadcrumb {
                padding: 0.4rem 0.75rem;
                max-width: 90%;
                margin: 0 auto;
            }

            .single-banner .breadcrumb-item {
                font-size: 0.85rem;
            }

                .single-banner .breadcrumb-item a span {
                    max-width: 60px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }
        }
        /* END */

        /* Responsive adjustments */
        @media (min-width: 992px) {
            .hero-content {
                margin-left: 8%; /* Slight left offset on large screens */
            }
        }

        @media (max-width: 768px) {
            .hero-section {
                padding-top: 100px;
                min-height: 80vh;
            }

            .hero-title {
                font-size: 2.5rem; /* Smaller on mobile */
            }

            .hero-tagline {
                font-size: 1.4rem;
            }
        }

        /* Form */

        /* Mobile adjustments */
        @media (max-width: 991px) {
            .left-side,
            .right-side {
                padding: 40px !important;
            }

            .main-title,
            .support-title {
                font-size: 1.8rem;
            }
        }
        /* NEW CARD SECTION */

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .card-hover-regular:hover,
            .card-hover-special:hover {
                transform: translateY(-5px);
            }
        }
        /* END */

        /* TEAM SECTION*/
        @media (max-width: 992px) {
            .card__container, .flip-card__container {
                gap: 30px;
            }

            .card__article, .flip-card {
                width: 320px;
            }
        }

        @media (max-width: 768px) {
            .card__container, .flip-card__container {
                gap: 30px;
            }

            .card__article, .flip-card {
                width: 100%;
                max-width: 400px;
            }

            .team-section-heading {
                font-size: 2rem;
            }
        }

        @media (max-width: 576px) {
            .card__article, .flip-card {
                height: 400px;
            }

            .flip-card__front, .flip-card__back {
                padding: 25px;
            }

            .flip-card__img {
                width: 120px;
                height: 120px;
            }

            .flip-card__name {
                font-size: 1.5rem;
            }

            .team-section-heading {
                font-size: 1.8rem;
            }
        }
        /* END */

        /* FOOTER */
        @media (max-width: 768px) {
            .footer-columns {
                text-align: left !important; /* sab text left ho jaye */
            }

                /* Agar footer-columns row ya flex container hai to ye add karo */
                .footer-columns .row,
                .footer-columns [class*="col-"] {
                    text-align: left !important;
                }

            .newsletter-form {
                max-width: 300px;
                margin: 20px 0; /* auto hataya → left side pe lagega (margin-left: 0 by default) */
            }

            .social-icons {
                justify-content: flex-start; /* center ki bajaye left */
                margin-top: 20px;
            }

                /* Optional: agar social icons links ya icons row mein hain */
                .social-icons a,
                .social-icons i {
                    margin-right: 15px; /* spacing maintain rahe */
                    margin-left: 0;
                }

                /*FAQ*/
            @media (max-width: 992px) {
                .faq-left {
                    text-align: center;
                    margin-bottom: 2rem;
                }

                    .faq-left .btn {
                        margin: 0 auto;
                    }

                /** Contingent Cargo **/
                /* Responsive */
                @media (max-width: 768px) {
                    .pricing-card {
                        width: 320px; /* Reduced from 340px */
                    }

                        .pricing-card .content {
                            padding: 40px 25px; /* Reduced from 50px 35px */
                        }

                        .pricing-card .price {
                            font-size: 56px; /* Reduced from 64px */
                        }

                            .pricing-card .price span {
                                font-size: 22px; /* Reduced from 24px */
                            }

                        .pricing-card .plan-name {
                            font-size: 28px; /* Reduced from 32px */
                        }

                        .pricing-card .features li {
                            font-size: 16px; /* Reduced from 17px */
                        }

                        .pricing-card .btn {
                            padding: 16px 50px; /* Reduced from 18px 60px */
                            font-size: 18px; /* Reduced from 20px */
                        }

                        /*** Popup Form ***/
                    @media (max-width: 768px) {
                        .form-control, .form-select {
                            font-size: 16px !important; /* Prevents zoom on iOS */
                            padding: 0.5rem 0.75rem !important;
                            height: 45px !important;
                        }

                        .form-label {
                            font-size: 0.85rem !important;
                            margin-bottom: 0.25rem !important;
                        }

                        #quoteModal .modal-body {
                            padding-bottom: 20px;
                        }

                        /* Make hold button more touch-friendly on mobile */
                        #holdBtn {
                            min-height: 50px !important;
                            font-size: 1rem !important;
                        }

                        /* Submit button mobile optimization */
                        .submit-quote-btn {
                            padding: 0.75rem !important;
                            font-size: 1rem !important;
                        }
                    }

                    /* Better scrolling for mobile */
                    @media (max-width: 991.98px) {
                        #quoteModal .modal-content {
                            border-radius: 0 !important;
                            max-height: 100vh !important;
                        }

                        #quoteModal .modal-body {
                            overflow-y: auto;
                            -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
                        }
                    }
                    /* Mobile-specific styles */
                    @media (max-width: 576px) {
                        #quoteModal .form-control,
                        #quoteModal .form-select {
                            border-radius: 8px;
                            border: 2px solid #e9ecef;
                        }

                            #quoteModal .form-control:focus,
                            #quoteModal .form-select:focus {
                                border-color: #dc3545;
                                box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
                            }

                        #quoteModal .input-group-text {
                            font-size: 0.9rem;
                            padding: 0.5rem 0.75rem;
                        }
                    }

                    /* Fix for iOS devices */
                    @supports (-webkit-touch-callout: none) {
                        #quoteModal .modal-content {
                            max-height: -webkit-fill-available;
                        }
                    }


                    /* ──────────────────────────────────────────────
   Mobile-specific improvements
──────────────────────────────────────────────── */
                    @media (max-width: 576px) { /* phones & very small tablets */

                        .pagination.pagination-lg {
                            --bs-pagination-font-size: 0.95rem; /* slightly smaller than lg */
                            --bs-pagination-padding-x: 0.5rem; /* less horizontal padding */
                            --bs-pagination-padding-y: 0.4rem; /* touch-friendly height */
                        }

                        .pagination .page-item .page-link {
                            min-width: 36px; /* better tap target */
                            height: 36px;
                            line-height: 1.4;
                            padding: 0.35rem 0.5rem;
                            font-size: 0.9rem;
                            border-radius: 6px;
                        }

                        /* Hide some page numbers on very small screens – show ellipsis instead */
                        .pagination .page-item:nth-child(n+4):nth-child(-n+7) { /* hides 4,5,6,7 except active/current */
                            display: none;
                        }

                        /* Show current page + neighbors + first/last */
                        .pagination .page-item:first-child,
                        .pagination .page-item:nth-child(2),
                        .pagination .page-item:nth-child(3),
                        .pagination .page-item.active,
                        .pagination .page-item:last-child,
                        .pagination .page-item:nth-last-child(2),
                        .pagination .page-item:nth-last-child(3) {
                            display: list-item;
                        }

                        /* Optional: add ellipsis between visible pages (needs extra HTML – see below) */
                    }

                    /* Extra small screens – even tighter */
                    @media (max-width: 360px) {
                        .pagination .page-item .page-link {
                            min-width: 32px;
                            font-size: 0.85rem;
                            padding: 0.3rem 0.45rem;
                        }

                        /* Responsive fixes */
                        @media (max-width: 991.98px) {
                            .auto-liability-section .row {
                                flex-direction: column;
                            }

                            .auto-liability-section .col-lg-5,
                            .auto-liability-section .col-lg-7 {
                                width: 100%;
                            }

                            .auto-liability-section .about-card {
                                margin-bottom: 2rem;
                            }
                        }

                        @media (max-width: 767.98px) {
                            .auto-liability-section .card-body {
                                padding: 1rem !important;
                            }

                            .auto-liability-section .row.g-3 > [class*="col-"] {
                                margin-bottom: 1rem;
                            }
                        }

                        /* Hold button styles */
                        .hold-button {
                            transition: all 0.3s ease;
                            min-height: 45px;
                        }

                            .hold-button:active .progress-fill {
                                transition: width 2s linear;
                            }

                        /* Fix for modal on mobile */
                        @media (max-width: 768px) {
                            #quoteModal .modal-dialog {
                                margin: 0;
                            }

                            #quoteModal .modal-content {
                                border-radius: 0;
                                min-height: 100vh;
                            }

                            /** RESOURCES PAGE **/
                            /* BLOGS*/
                            /* Responsive Adjustments */
                            @media (max-width: 992px) {
                                .blog-small-card img {
                                    height: 200px;
                                }
                            }

                            @media (max-width: 768px) {
                                .blog-featured-card .card-body {
                                    padding: 2rem !important;
                                }

                                .blog-small-card img {
                                    height: 180px;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}