/* Mobile CSS (0px - 767px) */
@media (min-width:0px) and (max-width:767px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .home-banner {
        margin-bottom: 0;
    }

    .payment-box {
        height: auto;
        margin-bottom: 20px;
    }

    .value-section .img1 img {
        height: auto;
    }

    .cta-content-bg .vl-section-title {
        font-size: 24px;
        line-height: 28px;
    }

    .progress-wrap {
        bottom: 90px;
    }

    .service2 .service1-boxarea .content-area .title {
        height: auto;
    }

    .heading2 .vll-section-title {
        font-size: 30px;
        line-height: 40px;
    }

    .solar-package-section {
        padding: 30px 0;
    }

    .homepage2-body .vl-transparent-header {
        padding: 12px 0;
        position: fixed !important;
        width: 100%;
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .homepage2-body .vl-transparent-header .row-bg1 {
        padding: 8px 15px;
    }

    .vl-logo img {
        max-width: 140px;
        height: auto;
    }

    .vl-header-action-item {
        padding: 8px 12px !important;
    }

    .vl-header-action-item button {
        font-size: 20px !important;
    }

    .homepage2-body .vl-transparent-header::after {
        display: none;
    }

    body {
        padding-top: 70px;
    }

    .vl-offcanvas {
        width: 280px;
        padding: 30px 20px;
    }

    .vl-offcanvas-menu ul li a {
        font-size: 16px;
        padding: 10px 0;
    }

    .hero-btn1 {
        display: none;
    }

    /* Fix all images - remove fixed heights */
    img {
        max-width: 100% !important;
        height: auto !important;
        width: auto;
    }

    /* Container and Content Fixes for Mobile */
    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Fix text alignment on mobile */
    .heading1,
    .heading2 {
        text-align: center;
    }

    .heading1 p,
    .heading2 p {
        text-align: left;
    }

    .heading1 .arrow-ul,
    .heading2 .arrow-ul {
        text-align: left;
    }

    /* Section title fix */
    .vl-section-title {
        font-size: 24px !important;
        line-height: 32px !important;
        text-align: center;
    }

    /* Fix column widths on mobile */
    .col-lg-5,
    .col-lg-6,
    .col-lg-7,
    .col-lg-8,
    .col-lg-12 {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Row fix */
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }

    /* Section padding */
    .sp1,
    .sp10 {
        padding: 40px 0;
    }

    /* Button fix */
    .vl-btn2 {
        display: inline-block;
        width: auto;
        padding: 12px 25px;
        font-size: 14px;
    }

    /* Inner header fix */
    .inner-header-section {
        padding: 100px 0 50px;
    }

    .inner-header-section .hero-heading-area p {
        font-size: 28px;
    }

    /* About image fix */
    .about-img {
        margin-bottom: 20px;
    }

    .about-img img {
        width: 100% !important;
        height: auto !important;
    }

    /* CTA fix */
    .cta-content-bg {
        padding: 30px 20px;
    }

    /* Image anime fix */
    .image-anime img {
        height: auto !important;
    }
}

/* Tablet CSS (768px - 991px) */
@media (min-width:768px) and (max-width:991px) {
    .payment-box {
        height: auto;
        margin-bottom: 30px;
    }

    .service2 .service1-boxarea .content-area .title {
        height: 50px;
    }

    .homepage2-body .vl-transparent-header {
        padding: 14px 0;
        position: fixed !important;
        width: 100%;
        background: #fff !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .vl-logo img {
        max-width: 150px;
        height: auto;
    }

    .vl-header-action-item {
        padding: 8px 14px !important;
    }

    body {
        padding-top: 80px;
    }

    .vl-offcanvas {
        width: 350px;
        padding: 40px 30px;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* Container fix for tablet */
    .container {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
    }

    /* Column width fix for tablet */
    .col-lg-6,
    .col-lg-7,
    .col-lg-8 {
        width: 100%;
    }

    /* Section title fix */
    .vl-section-title {
        font-size: 28px;
        line-height: 36px;
        text-align: center;
    }

    .heading1,
    .heading2 {
        text-align: center;
    }

    .heading1 p,
    .heading2 p,
    .heading1 .arrow-ul,
    .heading2 .arrow-ul {
        text-align: left;
    }

    /* About image fix */
    .about-img {
        margin-bottom: 25px;
    }

    .about-img img {
        width: 100%;
        height: auto;
    }

    /* Section padding */
    .sp1,
    .sp10 {
        padding: 50px 0;
    }
}

/* Small Laptop CSS (992px - 1199px) */
@media (min-width:992px) and (max-width:1199px) {
    .homepage2-body .vl-main-menu ul>li>a {
        padding: 3px;
        font-size: 14px;
    }

    #vl-header-sticky .vl-btn2 {
        font-size: 16px;
    }

    .payment-box {
        height: 610px;
    }

    .call-us {
        font-size: 14px;
        padding: 6px 8px;
    }

    .call-us span {
        display: none;
    }

    .call-us svg {
        margin: 0;
    }

    .quote-img {
        display: none;
    }

    .service2 .service1-boxarea .content-area .title {
        height: auto;
    }

    .hero-btn1 {
        justify-content: end;
    }

    .tj-price-item .save {
        font-size: 14px;
        padding: 6px 8px;
        position: absolute;
        top: 15px;
        right: 16px;
    }

    .tj-price-item .price-percent .price-number {
        font-size: 35px;
    }

    .tj-price-item {
        padding: 25px;
    }

    .tj-price-item .price-list ul .style-1 i {
        width: 25px;
        height: 25px;
        line-height: 30px;
        text-align: center;
        align-items: center;
        justify-content: center;
        display: inline-flex;
        border-radius: 50%;
        position: absolute;
        left: 0;
        top: 0;
        z-index: 2;
    }

    .tj-price-item .price-list ul .style-1 {
        padding-left: 30px;
    }

    .tj-price-item .price-button {
        margin-bottom: 0px;
    }
}

/* Laptop CSS (1200px - 1439px) */
@media (min-width:1200px) and (max-width:1439px) {
    .custom-container {
        max-width: 1640px;
    }

    .homepage2-body .vl-main-menu ul>li>a {
        padding: 0 5px;
        font-size: 14px;
    }

    .call-us {
        font-size: 16px;
        padding: 6px 10px;
    }

    .hero-btn1 {
        gap: 6px !important;
    }

    .hero-btn1 .vl-btn2 {
        padding: 10px 20px;
        font-size: 15px;
    }

    #vl-header-sticky.vl-sticky {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: #fff !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        animation: slideDown 0.3s ease;
        z-index: 999;
    }

    #vl-header-sticky.vl-sticky .row-bg1 {
        background: transparent;
        border: none;
    }

    @keyframes slideDown {
        from {
            transform: translateY(-100%);
        }
        to {
            transform: translateY(0);
        }
    }
}

/* Large Screen CSS (1440px+) */
@media (min-width:1440px) {
    .custom-container {
        max-width: 1640px;
    }
}

/* Mini Screen CSS (max 344px) */
@media (max-width:344px) {
    .mobile-footer-navigation span {
        font-size: 16px;
    }

    .mobile-footer-navigation {
        width: 90%;
        left: 15px;
    }

    .vl-logo img {
        max-width: 120px !important;
    }

    .homepage2-body .vl-transparent-header .row-bg1 {
        padding: 8px 10px;
    }
}

/* Sticky Header for Desktop */
@media (min-width: 1200px) {
    #vl-header-sticky.vl-sticky {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: #fff !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        animation: slideDown 0.3s ease;
        z-index: 999;
        padding: 8px 0;
    }

    #vl-header-sticky.vl-sticky .row-bg1 {
        background: transparent;
        border: none;
    }
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
    .vl-offcanvas-header {
        margin-bottom: 30px !important;
    }

    .vl-offcanvas-logo img {
        height: 45px !important;
        width: auto !important;
    }

    .vl-offcanvas-close-toggle {
        font-size: 24px !important;
        cursor: pointer;
    }
}
