/* Optional: tighter spacing when there are many comments */
@media (min-width: 1200px) {
  .comment {
    padding: 22px;
  }
}




/* service */
/* ============ */

@media only screen and (min-width:992px) and (max-width:1200px) {
  .des-img-wrapper::after {
    left: 5% !important;
  }
}

@media only screen and (min-width:768px) and (max-height:1200px) {
  .service-card-outer{
    height: 450px!important;
  }
}

@media only screen and (max-width: 1340px) {
  .hilite-title {
    display: none;
  }
}



@media (min-width: 992px) {
  .partners-section .row {
    justify-content: space-between;
  }
}




@media (max-width: 992px) {

  .des-img-wrapper::after {
    display: none !important;
  }

  .learn-more-btn {
    text-align: center !important;
  }

  .des-img-wrapper .right {
    width: 100%;
    top: 5%;
    right: 30px;
    transform: translateY(0);
    height: 100%;
  }

  .custom-border {
    display: none;
  }

  .des-img-wrapper .right::before {
    top: -80px;
    left: -50px;
    width: 113%;
    height: 80%;
  }

  .des-img-wrapper .right img {
    top: 8%;
    left: 8%;
  }

  /* .company-description {
    margin-top: 0;
    margin-left: 90px;
    margin-right: 90px;
    text-align: left;
  } */

  .company-description h1 {
    font-size: 24px!important;
    margin-bottom: 30px;
  }

  .company-description h5 {
    font-size: 18px;
  }

  .custom-border {
    display: none;
  }

  .banner-content h1 {
    font-size: 24px;
  }

  .slogan {
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px 40px;
  }

  .de-slider-content h2 {
    font-size: 32px;
  }

  .menus a.nav-link {
    padding: 10px 15px !important;
    margin: 5px 0px;
  }

  .nav-section {
    position: relative;
    background-color: rgba(0, 0, 0, 0.9);
    pointer-events: auto;
  }

  .de-slider-content h2 {
    font-size: 28px;
  }


  .de-banner {
    min-height: 300px;
  }

  .banner-title {
    font-size: 28px;
  }

  .banner-content p {
    font-size: 14px;
  }

  .dp-footer ul {
    font-size: 16px;
    line-height: 36px;
    list-style-type: none;
    margin: 0;
    padding: 0;
  }

  .dp-footer {
    margin-top: 10px;
   
  }


  .dp-contact-form {
    padding: 25px !important;
  }

  .experience-content {

    margin: 60px 0px 60px 0px;

  }

  .service-content {
    right: 10px;
    left: 10px;
   

  }

  .service-icon {
    right: 18px;
    bottom: 12%
  }
 
  .service-content h1 {
    font-size: 14px;
  }

  .service-content h2 {
    font-size: 18px;
    margin: 0px 0px 20px 0px;
    max-width: 140px;
  }

  .project-head h2 {
    max-width: 500px;
  }

  .type-content p {
    max-width: none;
  }

  /* .project-image img{
  width: 315px;
} */
  .client-content h2 {
    min-width: 148px;
    margin: 0;
  }

  .profile-image img {
    left: 37%;
  }

  .reviewer-name h1 {
    margin: 0;
  }

  .reviewer-name h2 {
    margin: 0px 0px 20px 0px;
  }
  .service-content {
    padding: 8px;
  }
  .service-content h2{
    margin: 5px 0px 0px 0px;
  }
  .menus a.nav-readmore{
    width: 100%;
  }
  .navbar-nav li a{
    margin-right: 0px;
  }
  .navbar-nav li a {
    margin: 0;
  }
}



/* ===============================
   TABLET & MOBILE VIEW (MAX-WIDTH: 767PX)
================================ */
@media (max-width: 767px) {
  .blog-page{
    display: flex;
    justify-content: center;
  }
  
  .card-wrapper{
    max-width: none!important;
  }
  .com-des-ico-area {
    border-right: none !important;
  }

  body {
    overflow-x: hidden;
  }

  .gallery-drop h2 {
    margin: 0px 0px 10px 0px;
  }

  .gallery-drop {
    display: block;
    text-align: center !important;
  }

  /* --- Global text resizing --- */
  .general-heading {
    font-size: 26px;
  }

  .general-sub-heading {
    font-size: 20px;
  }

  .general-text {
    font-size: 14px;
  }

  /* --- Section spacing --- */
  /* section {
    margin-bottom: 30px;
  } */

  /* --- Description Section --- */
  .description-area {
    padding: 0;
  }



  .des-img-wrapper .right {
    width: 100%;
    top: 50px;
    right: 15px;
    transform: translateY(0);
  }


  .des-img-wrapper .right::before {
    top: -60px;
    left: -10px;
    width: 100%;
    height: 92%;
  }

  .des-img-wrapper .right img {
    width: 80%;
    height: 400px;
    top: 20%;
    left: 20%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  .company-description {
    padding: 30px 20px;
  }

  .company-description h1 {
    font-size: 24px!important;
    margin: 0;
    margin-bottom: 10px;

    text-align: left;
    line-height: 1.3;
  }

  .company-description h5 {
    margin: 0;
    margin-bottom: 10px;

    font-size: 16px;
    text-align: left;
    line-height: 1.5;
  }

  .company-description p {
    margin: 0;
    text-align: justify;
    font-size: 14px;
    line-height: 1.7;
  }

  /* --- Banner Section --- */
  .banner-section {
    position: relative;
  }

  .banner-img img {
    height: 400px;
    object-fit: cover;
  }

  .banner-content {
    position: absolute;
    top: 25%;
    transform: none;
    width: 90%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }

  .banner-content h1 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .banner-content p {
    font-size: 14px;
    line-height: 1.5;
  }

  .btn-about {
    font-size: 14px;
    padding: 8px 16px;
  }

  /* --- Partners Section --- */
  .partners-section {
    padding: 40px 0;
  }

  .partners-section .row {
    justify-content: center;
    gap: 15px 0;
  }

  .partners-section .image-div {
    padding: 10px;
  }

  .partners-section .image-div img {
    max-width: 90px;
    opacity: 0.9;
  }

  /* --- Achievement Section --- */
  .achievement-item {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
  }

  .achievement-item h1 {
    font-size: 22px;
    font-weight: 700;
  }

  .achivement-content h1 {
    font-size: 18px;
    font-weight: 600;
  }

  .achivement-content p {
    font-size: 14px;
    line-height: 1.6;
  }

  .achievement-img img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .custom-border {
    display: none;
  }

  .dp-contact-info {
    margin-bottom: 20px !important;
  }

  .comment {
    padding: 14px;
    gap: 12px;
  }

  .avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }

  .comments-list>.comment:nth-child(2),
  .comments-list>.comment:nth-child(3) {
    margin-left: 0;
    margin-right: 0;
  }

  /* .pagination {
    margin-left: 50px;
  } */

  /* --- Achievement Section --- */
  /* --------year of experince--------- */

  /* --------year of experince--------- */
  .service-icon img{
   
    width: 20px;
  }

  .service-content h2 {
    max-width: 200px;
    margin: 20px 0px 0px 0px;
  }

  .service-icon {
    bottom: 47px;
    right: 20px;
  }

  .project-image img {
    width: 215px;
  }

  .learn-more a {
    float: none;

  }

  .learn-more {
    margin: 0px 0px 25px 0px;
  }

  .project-head h2 {
    min-width: 200px;
    margin: 0px;
  }

  .experience-section {
    padding: 0px 0px 10px 0px;

  }

  .client-content h2 {
    min-width: 163px;
  }

  .project-head {
    border-right: none;
  }

  .project-head h2 {
    margin: 0px 0px 10px 0px;
  }

  .project-content {
    display: flex;
    flex-wrap: wrap;

  }

  .project-right p {
    margin: 0px;
  }

  .best-services {
    margin: 0px 0px 30px 0px;
  }

  .service-lists {
    margin: 0px 0px 30px 0px;
  }
  .works-carousel .service-icon img {
  width: 15px;
}
.navbar-nav li a{
  margin: none;
}
}

@media (max-width: 575px) {
  .gallery-drop h2 {
    font-size: 18px !important;
  }

  .dropdown-dplan button {
    font-size: 13px !important;
  }
}

/* ===============================
   MOBILE VIEW (MAX-WIDTH: 320PX)
================================ */

/* ===============================
   SMALL DEVICE OPTIMIZATION (MAX-WIDTH: 565PX)
================================ */
@media (max-width: 650px) {

  .de-banner {
    min-height: 160px;
    /* adjust banner height for mobile */
  }

  .banner-content {
    top: 10%;
  }

  .company-description {
    padding: 0px;
    margin: 30px 0px;
  }

  .pad-section40 {
    padding: 10px;
  }
}


@media (max-width: 565px) {
  body {
    overflow-x: hidden;
  }

  .general-heading {
    font-size: 24px;
  }

  .general-sub-heading {
    font-size: 18px;
  }

  .general-text {
    font-size: 14px;
  }

  .description-area {
    padding: 0;
    overflow: visible;
  }

  .des-img-wrapper {

    overflow: visible;
  }

  .des-img-wrapper .right {
    width: 85%;
    top: 35px;
    transform: translateY(0);
  }

  /* FIXED: Background layer with intentional overflow */
  .des-img-wrapper .right::before {
    top: -50px;
    left: -15px;
    width: 110%;
    height: 93%;
  }

  /* FIXED: Foreground image better positioned */
  .des-img-wrapper .right img {
    width: 75%;
    height: 350px;
    top: 18%;
    left: 105px;
    border-radius: 10px;
  }

  .company-description {
    padding: 25px 0px;
    text-align: left;
    margin: 0 auto;
  }

  .company-description h1 {
    font-size: 18px!important;
    margin-bottom: 12px;
  }

  .company-description h5 {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .company-description p {
    font-size: 14px;
    line-height: 1.6;
  }

  .de-slider-content h2 {
    font-size: 22px;
  }


  /* --- Banner Section --- */



  .banner-content {
    width: 90%;
    top: 50%;
    height: auto;
    transform: translate(0%, -50%);
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }

  .banner-content h1 {
    font-size: 18px !important;
    line-height: 1.3;
  }

  .banner-content p {
    font-size: 14px !important;
    line-height: 1.5;
  }

  .btn-about {
    padding: 6px 12px;
    font-size: 14px;
  }

  /* --- Partners Section --- */
  .partners-section {
    display: none;
  }

  .partners-section .image-div img {
    max-width: 80px;
    opacity: 0.9;
  }

  /* --- Achievements Section --- */
  .achievement-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .achievement-item h1 {
    font-size: 20px;
  }

  .achivement-content h1 {
    font-size: 16px;
  }

  .achivement-content p {
    font-size: 14px;
  }

  .achievement-img img {
    width: 100%;
    height: auto;
  }

  /* --- Hide overly decorative elements --- */
  .custom-border {
    display: none;
  }

  .card-wrapper {
    max-width: 100%!important;
  }

  .main-pic img {
    height: 200px;
  }

  .project-image img {
    width: 600px !important;
  }

  .slide_item {
    padding: 0;
  }

  .slide-content h1 {
    font-size: 20px;
    text-align: center;
  }

  .slide-content h2 {

    font-size: 32px;
    text-align: center;
  }

  .slide-content p {

    text-align: center;
  }

  .slider-button {
    font-size: 14px;
    text-align: center;
    margin: 0px 0px 25px 0px;
  }

  .client-content {
    border: none;
  }

  .client-head {
    margin: 0px 0px 10px 0px;
  }

  .client-right {
    margin: 0px 0px 25px 0px;
  }

  .banner-wrapper img {
    height: 300px;
  }

  .banner-content {
    right: 30%;
    top: 20%;
    left: 5%;
  }

  .client-says {
    padding: 60px 0px 0px 0px;
  }

  .service-section {
    padding: 0px;
  }

  .dp-footer-section {
    padding-top: 0px;
  }

  .project-section {
    padding-bottom: 60px;
  }
  .client-content{
    border-right: none;
  }
}

@media (max-width: 499px) {
  .experience-content::before {
    display: none
  }

  .experience-content::after {
    display: none;
  }

  .logo-construction {
    padding: 0px;
  }

  .dp-contact-heading h2 {
    margin: 20px 0px 20px 0px;

  }

  .experience-content h2 {
    font-size: 24px;
  }

  .banner-head h1 {
    font-size: 26px;
  }

  .client-content h2 {
    font-size: 26px;
  }
  .slide-content h2{
    font-size: 20px;
  }
  .

}

@media (max-width: 320px) {
  .experience-content p {
    max-width: none !important;
  }

  .experience-content {
    max-width: none !important;
    min-width: none;
  }

  body {
    overflow-x: hidden;
  }

  /* Text Adjustments */
  .general-heading {
    font-size: 20px !important;
  }

  .general-sub-heading {
    font-size: 16px;
  }

  .general-text {
    font-size: 14px;
  }


  .description-area {
    overflow: visible;
    padding: 30px 0;
  }


  .des-img-wrapper {
    overflow: visible;

    height: auto;
    margin-bottom: 20px;
  }

  .des-img-wrapper .right {
    width: 75%;
    top: 30px;
    right: 0;
    transform: translateY(0);
  }

  .des-img-wrapper .right::before {
    top: -40px;
    left: -5px;
    width: 100%;
    height: 90%;
    border-radius: 8px;
  }

  .des-img-wrapper .right img {
    width: 65%;
    height: 260px;
    top: 25%;
    left: 42%;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }


  .company-description {
    margin: 0;
    padding: 0;
    padding: 20px 15px;
    text-align: left;
  }

  .company-description h1 {
    font-size: 18px !important;
    margin-bottom: 10px;
    line-height: 1.2;
  }

  .company-description h5 {
    font-size: 14px !important;
    margin-bottom: 10px !important;
    line-height: 1.4;
  }

  .company-description p {
    font-size: 14px !important;
    line-height: 1.5;
  }

  /* --- Banner Section --- */
  .banner-wrapper {
    position: relative;
  }

  .banner-img img {
    height: 300px;
    object-fit: cover;
  }

  .banner-content {
    position: absolute;
    top: auto;
    bottom: 1%;
    left: 2%;
    transform: none;
    padding: 0;
    padding: 6px;
    background: rgba(255, 255, 255, 0.9);
    max-width: 280px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  }

  .banner-content h1 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
  }

  .banner-content p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .btn-about {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
  }

  /* --- Partners Section --- */
  .partners-section {
    padding: 30px 0;
  }

  .image-div {
    width: 90px;
    margin: 0 auto;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.15);
  }

  .partner-logo {
    max-width: 90px;
  }

  /* --- Achievements Section --- */
  .achievement-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .achievement-item h1 {
    font-size: 18px;
    font-weight: 600;
  }

  .achivement-content h1 {
    font-size: 16px;
    font-weight: 500;
  }

  .achivement-content p {
    font-size: 14px;
    line-height: 1.6;
  }

  .achievement-img img {
    height: 250px;
    object-fit: cover;
  }

  .experience-content h2 {
    font-size: 20px;
  }

  .project-type {
    --bs-gutter-x: 0 !important;

  }

  .experience-content h2 {
    font-size: 24px;
  }

  .banner-head h1 {
    font-size: 28px;
    margin: 0px 0px 15px 0px;
  }

  .bottom-paragraph p {
    font-size: 16px;
  }

  .project-image img {
    width: 500px;
  }

  .project-head {
    border: none;


  }

  .project-content {
    display: flex;
    flex-wrap: wrap;
  }

  .project-right p {
    margin: 0px 0px 20px 0px;
  }

  .project-head h2 {
    margin: 0px 0px 10px 0px;
  }

  .profile-image img {
    left: 38%;
  }

  .slide-content p {
    font-size: 14px;
    font-weight: 400;
    max-width: 300px;
  }

  .slide-content h2 {
    font-size: 25px;
  }

  .banner-wrapper img {
    height: 300px;

  }

  .banner-content {
    top: 8%;
    bottom: 8%;
  }
  .exp-num{
    left: 40%;
  }

}