/* Large Desktop */
@media (min-width: 1600px) {
  .container {
    max-width: 1480px;
  }
}

/* Full HD */
@media (min-width: 1920px) {
  .container {
    max-width: 1680px;
  }

  section {
    padding: 120px 0;
  }
}

/* 2K / 2560px */
@media (min-width: 2560px) {
  .container {
    max-width: 1920px;
  }
}

/* Tablets */
@media (max-width: 992px) {
  .small {
    display: block;
    transition: all 0.3s ease-in-out;
  }

  #main_header {
    display: none;
  }

  .sticky-top-1.sticky .rounded-nav-mb {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 200px;
    padding-inline: 15px;
    top: 12px;
    position: relative;
    margin-inline: 10px;
  }


  .small nav {
    padding: 15px 0;
  }

  .small img {
    width: 110px;
  }

  .small nav .container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  .small nav .menu {
    width: 40px;
    height: 40px;
    background: var(--theme-color-second);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--theme-color-black);
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid var(--theme-color-black);
  }

  .small nav .menu-2 {
    width: 40px;
    height: 40px;
    background: var(--theme-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--theme-color-black);
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid var(--theme-color-black);
  }

  .small nav .sidebar {
    position: fixed;
    top: 0;
    /* left: -100%; */
    left: 0;
    width: 100%;
    height: 0vh;
    opacity: 0;
    visibility: hidden;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .small.show .sidebar {
    height: 100vh;
    opacity: 1;
    visibility: visible;
  }

  .small nav .sidebar>ul {
    margin-top: 50px !important;
  }

  .small nav .sidebar>ul>li {
    padding: 10px;
    border-bottom: 1px solid #ccc;
  }

  .small nav .sidebar ul>li:last-child {
    border-bottom: none;
  }

  .small nav .sidebar ul>li>a {
    color: #000;
    padding: 4px;
    font-size: 17px;
    text-transform: capitalize;
  }

  .small nav .sidebar ul li.link-sm .dropdown-label {
    font-size: 15px !important;
  }

  .small nav .sidebar ul li.link-sm a {
    padding-left: 0px;
  }

  /* Removed the > so it applies to all deeply nested link-sm items */
  .small nav .sidebar ul li.link-sm {
    position: relative;
  }

  .small nav .sidebar ul li.link-sm i {
    position: absolute;
    top: 5px;
    right: 8px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    color: #000;
    font-weight: 700;
    border-radius: 5px;
    z-index: 10;
    /* Ensures the icon stays clickable */
  }

  .small nav .sidebar ul.sub-menu-sm {
    max-height: 0px;
    /* Explicitly use 0px instead of 0 for better JS support */
    overflow: hidden;
    transition: max-height .3s ease-in-out;
    /* Animate max-height specifically */
    margin-top: 0 !important;
  }

  .small nav .sidebar ul.sub-menu-sm li {
    padding: 6px 16px;
  }

  .small .times {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background: #0e0e0e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
  }

  .small .times i {
    transition: .7s ease;
  }

  .small .times:hover i {
    transform: rotate(180deg);
  }

  .small .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
  }

  .small.show .overlay {
    opacity: 1;
    pointer-events: all;
  }

  ul.list-unstyled.p-0.m-0.sub-menu-sm li a {

    font-size: 14px;
  }

  .small nav .sidebar.show {
    left: 0;
  }


  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 32px;
  }



  p br {
    display: none;
  }


  section {
    padding: 60px 0;
  }


  .banner_sec {
    padding: 112px 0 370px;
    background: url(../image/mobile_banner_img.jpg) !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-position: bottom !important;
    background-size: cover !important;
    text-align: center;
  }

  .banner_sec h1 br {
    display: none;
  }

  .banner_sec .heading h1 span {
    display: block;
    font-size: 40px;
    line-height: 1.5;
  }

  .home_sec1 {
    padding: 60px 0 370px;
    background: url(../image/home_sec1_bg_mb.jpg) !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-position: bottom !important;
    background-size: cover !important;
  }

  .home_sec1 .feature-card {
    box-shadow: var(--shadow-base);
  }


  .home_sec2 .service_card {
    flex-direction: column-reverse;
  }

  .home_sec2 .service_card h3 {
    margin-bottom: 14px;
    font-size: 24px;
  }

  .home_sec2 .service_card.service-2 {
    flex-direction: column;
  }

  .home_sec2 .service_card .service-img img {
    width: 100%;
  }

  .home_sec3 h2 {
    font-size: 36px;
  }

  .home_sec3 h2 br {
    display: none;
  }

  .home_sec3 img {
    width: 500px;
    margin: auto;
  }


  .home_sec4 {
    padding: 60px 0 270px;
    background: url(../image/home_sec4_bg_mb.jpg) !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-position: bottom !important;
    background-size: cover !important;
  }

  .home_sec4 .why_choose_box h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .home_sec4 .why_choose_box p {
    font-size: 16px;
  }

  .home_sec4 .why_choose_box {
    padding: 30px 10px 30px;
  }

  .home_sec4 .why_choose_box .icon {
    width: 56px;
    height: 56px;
  }

  .home_sec7 h2 br {
    display: none;
  }

  .footer_sec .footer_description {
    font-size: 16px;
    line-height: 27px;
  }

  .footer_sec .footer_links a {
    font-size: 16px;
  }

  .footer_sec .footer_contact a {
    font-size: 16px;
  }

  .footer_sec .footer_logo {
    width: 178px;
  }

  .footer_sec {
    padding-top: 60px;
  }

  .footer_sec .copyright_text {
    margin: 22px 0px;
  }

  .inner_banner_sec {
    padding-top: 170px;
    padding-bottom: 21px;
  }

  .contact_sec .contact-form {
    padding: 34px 26px 34px;
  }

  .contact_sec2 .newsletter_box {
    padding: 32px 25px;
  }

  .inner-blog-left-top h1 {
    font-size: 34px;
  }

  .inner-blog-left-sec h2 {
    font-size: 25px;
  }

  .inner-blog-left-sec .inner-blog-sec1 h3 {
    font-size: 23px;
  }

  .inner-blog-left-top .blog-head {
    flex-wrap: wrap;
    gap: 10px;
  }

  .residential_solar_sec2 {
    padding: 60px 0px !important;
    background: #E5FAE5 !important;
  }

  .datasheets_sec1 .area-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .project_sec1 .project_card_image {
    height: auto;
  }

  .project_sec1 .project_card_content {
    padding: 18px;
  }

  .project_sec1 .project_card_content h3 {
    margin: 0 0 18px;
  }

  .project_sec1 .project_specs {
    grid-template-columns: repeat(1, 1fr);
    padding: 15px;
  }

  .project_sec1 .project_callout {
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    padding: 18px 18px;
    flex-direction: column;
  }

  .project_sec1 .project_section_title {
    gap: 10px;
  }

  .fox_mspd_sec1 .fox_mspd_product {
    padding: 22px;
  }

  .solar_calculator_sec .solar_calc_head {
    gap: 14px;
    margin-bottom: 38px;
  }

  .solar_calculator_sec .solar_calc_logo {
    width: 60px;
    height: 60px;
  }

  .solar_calculator_sec .solar_calc_logo span {
    font-size: 30px;
  }

  .solar_calculator_sec .solar_calc_card {
    padding: 22px;
  }

  .solar_calculator_sec .solar_calc_top h3 {
    font-size: 25px;
  }

  .solar_calculator_sec .solar_calc_top {
    align-items: flex-end;
    gap: 20px;
  }

  .solar_calculator_sec .solar_calc_icon {
    width: 52px;
    height: 52px;
  }

  .solar_calculator_sec .solar_calc_btn {
    padding: 10px;
    text-align: start;
    margin-top: 14px;
  }

  .solar_calculator_sec .solar_calc_btn span {
    font-size: 14px;
  }

  .carbon_credits_sec .title_box{
    flex-wrap: wrap;
  }
  
  .wheeled_energy_sec .title_box{
    flex-wrap: wrap;
  }
}


/* Small tablets */
@media (max-width: 768px) {

  .banner_sec {
    padding: 112px 0 306px;
  }

  h1 {
    font-size: 42px;
  }

  .banner_sec .heading h1 span {
    font-size: 30px;
  }

  .home_sec1 {
    padding: 60px 0 270px;
  }

  .home_sec1 .feature-card {
    flex-direction: column;
    align-items: start;
  }

  .home_sec1 .feature-card img {
    width: 60px;
    height: auto;
    object-fit: contain;
  }

  .home_sec2 .service_card {
    text-align: center;
  }

  .home_sec4 {
    padding: 60px 0 187px;
  }

  .home_sec5 .swiper_review .swiper_button {
    bottom: 0;
    top: initial;
  }

  .home_sec5 .swiper_review .swiper-button-next {
    right: 130px;
  }

  .home_sec5 .swiper_review .swiper-button-prev {
    left: 130px;
  }

}

/* Mobile */
@media (max-width: 576px) {
  .banner_sec {
    padding: 112px 0 200px;
  }

  .home_sec4 {
    padding: 60px 0 234px;
  }
}

/* Small mobile */
@media (max-width: 480px) {}

/* Very small */
@media (max-width: 360px) {}