/*  Theme Responsive Css */


@media only screen and (max-width: 1449px) {

  .feature-section .feature-block-one .inner-box {
    padding-right: 30px;
    padding-left: 30px;
  }

  .feature-section .feature-block-one .inner-box .inner {
    padding-left: 0px;
  }

  .feature-section .feature-block-one .inner-box .icon-box {
    position: relative;
    left: 0px;
    margin-bottom: 20px;
  }

  .rtl .feature-section .feature-block-one .inner-box .icon-box {
    right: 0px;
  }

  .rtl .feature-section .feature-block-one .inner-box .inner {
    padding-right: 0px;
  }

}



@media only screen and (max-width: 1200px) {

  .main-menu {
    display: none !important;
  }

  .sticky-header {
    display: none !important;
  }

  .gallery-section {
    padding-left: 30px;
    padding-right: 30px;
  }

  .cta-section .inner-box .text {
    float: none;
    display: block;
    margin-bottom: 10px;
  }

  .cta-section .inner-box .btn-box {
    float: none;
  }

  .footer-top .appointment-widget {
    padding-left: 30px;
    padding-right: 30px;
  }

  .main-header.style-two .menu-area .mobile-nav-toggler {
    margin-top: 40px;
  }

  #content_block_7 .content-box {
    margin-left: 0px !important;
  }

  .feature-block-two .inner-box .content-inner {
    padding: 0px;
  }

  .faq-section .image-layer {
    display: none;
  }

  .banner-carousel .owl-nav {
    display: none;
  }

  .rtl .cta-section .inner-box .btn-box {
    float: right;
  }

  .about-style-three #content_block_8 .content-box,
  .team-details-content {
    margin-left: 0px !important;
    margin-top: 0px;
  }

  .team-details-content .upper-box .social-links {
    position: relative;
    top: 0px;
    margin-top: 15px;
  }

  /* =================================================
     Header fixes for 992px–1200px (e.g. iPad landscape)
     Main menu is hidden in this range – show hamburger
  ================================================= */
  .main-header .header-lower {
    display: none !important;
  }

  /* Show hamburger in upper header */
  .main-header .header-upper .mobile-nav-toggler {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    cursor: pointer !important;
    padding: 10px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .main-header .header-upper .mobile-nav-toggler .icon-bar {
    display: block !important;
    width: 26px !important;
    height: 2px !important;
    background-color: #22272b !important;
    border-radius: 2px !important;
    margin-bottom: 0 !important;
    transition: all 300ms ease !important;
  }

  /* Force upper-inner flex so logo and hamburger share the same row */
  .main-header .header-upper .auto-container .upper-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .main-header .header-upper .logo-box {
    float: none !important;
    display: block !important;
    flex: 1 !important;
    padding: 0 !important;
  }

  .main-header .header-upper .logo-box .logo {
    margin: 0 !important;
    padding: 12px 0 !important;
    display: block !important;
  }

  .main-header .header-upper .logo-box .logo img {
    max-height: 62px !important;
    width: auto !important;
    display: block !important;
  }

  /* Hide contact info at this range — show only at ≥ 1200px */
  .main-header .header-upper .upper-info {
    display: none !important;
  }

}



@media only screen and (min-width: 768px) {

  .main-menu .navigation>li>ul,
  .main-menu .navigation>li>ul>li>ul,
  .main-menu .navigation>li>.megamenu {
    display: block !important;
    visibility: hidden;
    opacity: 0;
  }
}



@media only screen and (max-width: 991px) {

  /* =====================================================
     Header Top Bar – Horizontal flex layout
  ===================================================== */
  .header-top .top-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-top .text,
  .header-top .info {
    float: none !important;
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    text-align: left;
  }

  .header-top .info li {
    display: flex;
    align-items: center;
    margin-right: 0;
    margin-bottom: 0;
  }

  /* =====================================================
     Header Upper – Logo LEFT, Hamburger RIGHT same row
  ===================================================== */
  .main-header .upper-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* Override Bootstrap pull-left float */
  .main-header .logo-box {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    flex: 1;
  }

  .main-header .logo-box .logo {
    margin: 0 !important;
    padding: 12px 0 !important;
  }

  .main-header .logo-box .logo img {
    max-height: 60px;
    width: auto;
  }

  /* Hide contact info & book btn – too crowded on tablet */
  .main-header .upper-info {
    display: none !important;
  }

  /* Show hamburger toggler as a flex item on the right */
  .main-header .mobile-nav-toggler {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
  }

  .main-header .mobile-nav-toggler .icon-bar {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #22272b;
    border-radius: 2px;
    transition: all 300ms ease;
  }

  /* =====================================================
     Header Lower – Hidden on tablet/mobile
  ===================================================== */
  .header-lower {
    display: none !important;
  }

  #content_block_4 .form-inner {
    margin-left: 0px !important;
    margin-top: 30px;
  }

  #content_block_3 .content-box {
    margin-right: 0px !important;
  }

  .news-block-one .inner-box {
    margin-bottom: 30px;
  }

  .news-section {
    padding-bottom: 90px;
  }

  .gallery-block-one .inner-box {
    margin-bottom: 30px;
  }

  .gallery-section {
    padding-bottom: 90px;
  }

  .blog-details-content .author-box {
    padding: 30px 20px !important;
  }

  .blog-details-content .author-box .inner {
    padding-left: 0px !important;
    text-align: center !important;
  }

  .blog-details-content .author-box .inner .author-thumb {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 auto 20px auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 170px;
    height: auto !important;
  }

  .footer-top .footer-widget {
    margin: 0px 0px 20px 0px !important;
    text-align: center !important;
  }

  .footer-top .links-widget {
    margin-left: 0px !important;
  }

  .footer-top .appointment-widget {
    margin-left: 0px !important;
    margin-top: 0px !important;
  }

  .footer-top {
    padding-bottom: 70px;
  }

  .main-header.style-two .logo-box .logo {
    margin: 0 auto;
    padding-bottom: 30px;
  }

  .main-header .search-box-outer {
    margin-right: 20px;
  }

  .main-header.style-two .header-top .info li {
    margin: 0px 15px;
  }

  .main-header.style-two .header-top .info li:before {
    display: none;
  }

  .header-top .social-links {
    float: none;
    display: block;
    text-align: center;
  }

  #content_block_5 .content-box {
    margin-right: 0px !important;
  }

  #image_block_1 .image-box {
    max-width: 540px;
    margin: 0 auto !important;
    padding-bottom: 30px;
  }

  #image_block_1 .image-box .image-2 {
    position: relative;
    left: 0px;
    margin-top: 30px;
  }

  #image_block_1 .image-box .icon-box {
    display: none;
  }

  .weare-section .single-item .inner-box {
    margin-bottom: 30px;
  }

  .weare-section {
    padding-bottom: 90px;
  }

  .team-inner .team-block-one {
    width: 50%;
  }

  .cta-style-two .inner-container .text {
    margin-bottom: 15px;
  }

  .rtl .header-top .text {
    float: none;
  }

  .rtl .main-header .logo-box {
    float: none;
  }

  .rtl .main-header .header-upper .upper-info {
    float: none;
  }

  .about-style-three .image-box {
    margin-bottom: 30px;
  }

  .team-details .image-box {
    max-width: 600px;
    margin: 0 auto;
  }

  .team-details-content {
    margin-top: 30px;
  }

  .certificates-section .text {
    margin-right: 0px;
    margin-bottom: 30px;
  }

  .certificates-section .certificates-inner {
    margin: 0px auto !important;
    max-width: 500px;
  }

  .certificates-section .certificates-inner .image-box {
    margin-bottom: 30px;
  }

  .certificates-section {
    padding-bottom: 84px;
  }

  .service-sidebar {
    margin-bottom: 30px;
  }

  .sidebar {
    margin-top: 40px;
  }

  .rtl .header-top .info {
    float: none;
  }


}


@media only screen and (max-width: 767px) {

  .sec-pad {
    padding: 65px 0px 70px 0px !important;
  }

  .banner-carousel .content-box h1 {
    font-size: 50px;
    line-height: 60px;
  }

  .banner-carousel .slide-item {
    padding: 200px 0px 100px 0px;
  }

  .feature-section .feature-block-one {
    width: 100%;
  }

  .sec-title h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  #content_block_1 .content-box .inner-box .author .author-thumb {
    margin-bottom: 10px;
  }

  #content_block_1 .content-box .inner-box {
    display: block;
  }

  #content_block_1 .content-box .inner-box .inner {
    margin-right: 0px;
    margin-bottom: 15px;
  }

  .service-section .owl-nav,
  .testimonial-section .owl-nav {
    display: none;
  }

  .clients-section {
    padding: 70px 0px;
  }

  .proudly-section .pattern-layer {
    display: none;
  }

  #content_block_2 .content-box .counter-inner .counter-block {
    width: 100%;
    float: none;
    margin-bottom: 30px;
  }

  #content_block_2 .content-box .counter-inner {
    max-width: 200px;
    margin: 0 auto !important;
  }

  #content_block_2 .content-box .counter-inner .counter-block:last-child {
    margin-bottom: 0px;
  }

  .proudly-section {
    padding: 65px 0px;
  }

  .proudly-section .image-column {
    margin-bottom: 40px;
  }

  .proudly-section .image-layer {
    max-width: 100%;
    margin: 0 auto;
  }

  .feature-style-two .feature-block-two {
    width: 100%;
  }

  .feature-style-two {
    padding-top: 70px;
  }

  .testimonial-section .inner-container {
    margin: 0px;
    padding: 0px;
  }

  .startup-section {
    padding-top: 65px;
  }

  .news-section {
    padding-bottom: 40px !important;
  }

  .news-block-one {
    max-width: 370px;
    margin: 0 auto;
  }

  .gallery-block-one {
    max-width: 400px;
    margin: 0 auto;
  }

  .gallery-section {
    padding-bottom: 40px;
  }

  .cta-section .inner-box .text h2 {
    line-height: 44px;
  }

  .cta-section {
    padding: 65px 0px 70px 0px;
  }

  .footer-top {
    padding: 70px 0px 10px 0px;
  }

  .banner-section.style-two .slide-item {
    padding: 100px 0px;
  }

  .welcome-section {
    padding: 65px 0px 85px 0px;
  }

  #content_block_5 .content-box {
    padding-right: 30px;
    padding-left: 30px;
  }

  #content_block_5 .content-box .image-box {
    position: relative;
    top: 0px;
    right: 0px;
    max-width: 230px;
    margin-bottom: 20px;
  }

  .about-style-two {
    padding: 70px 0px;
  }

  .service-style-two .owl-nav {
    display: none;
  }

  .weare-section {
    padding-bottom: 40px;
  }

  .testimonial-style-two .testimonial-content .inner-box {
    padding-left: 0px;
  }

  .testimonial-style-two .testimonial-content .inner-box .image-box {
    position: relative;
    margin-bottom: 20px;
  }

  .testimonial-style-two {
    padding: 70px 0px 60px 0px;
  }

  .team-section .title-inner .sec-title,
  .team-section .title-inner .text {
    width: 100%;
  }

  .team-section .title-inner .text {
    padding-left: 0px;
    margin-bottom: 30px;
  }

  .team-section .title-inner .sec-title {
    margin-bottom: 20px;
  }

  .team-section {
    padding-top: 65px;
  }

  .clients-section.alternat-2 {
    padding-top: 160px;
  }

  .cta-style-two .inner-container .subscribe-form .form-group .theme-btn-one {
    position: relative;
    margin-top: 15px;
  }

  .cta-style-two .inner-container {
    padding: 70px 30px;
  }

  .page-title .content-box .title h1 {
    font-size: 40px;
    line-height: 50px;
  }

  .page-title {
    padding: 160px 0px 70px 0px;
  }

  .about-style-three .image-box {
    max-width: 270px;
    margin: 0px auto;
  }

  .about-style-three .image-box:before {
    display: none;
  }

  .about-style-three .image-box .image {
    margin-bottom: 30px;
  }

  .about-style-three {
    padding: 70px 0px;
  }

  #content_block_3 .single-box .inner {
    margin-right: 0px !important;
  }

  .startup-section.alternat-2 {
    padding: 80px 0px 30px 0px;
  }

  .team-block-one {
    max-width: 300px;
    margin: 0 auto;
    width: 100% !important;
    float: none !important;
  }

  .team-page-section,
  .certificates-section,
  .service-page-section {
    padding: 70px 0px 40px 0px;
  }

  .team-details {
    padding: 70px 0px;
  }

  .certificates-section .certificates-inner {
    max-width: 220px;
  }

  .service-page-section .service-block-one {
    max-width: 370px;
    margin: 0 auto;
  }

  .service-details {
    padding: 70px 0px 62px 0px;
  }

  .service-details-content .two-column .image-box {
    margin-top: 0px;
    margin-bottom: 30px;
  }

  .sec-pad-2 {
    padding: 70px 0px;
  }

  .sidebar-page-container .news-block-one {
    max-width: 100%;
  }

  .blog-details-content .post-share-option .tags {
    float: none;
    display: block;
    margin-bottom: 15px;
  }

  .blog-details-content .post-share-option .social-links {
    float: none;
    display: block;
  }

  .blog-details-content .comments-area .comment .comment-inner a {
    position: relative;
    top: 0px;
    margin-top: 10px;
  }

  .contact-section .title-inner .sec-title,
  .contact-section .title-inner .text {
    width: 100%;
  }

  .contact-section .title-inner .text {
    padding-left: 0px;
  }

  .contact-section .title-inner .sec-title {
    margin-bottom: 15px;
  }

  .contact-section .info-inner {
    margin-bottom: 30px;
  }

  .banner-section.style-two .banner-carousel .content-box h1 span {
    line-height: 60px;
  }

  .rtl #content_block_3 .content-box {
    margin-left: 0px;
  }

}

@media only screen and (max-width: 599px) {

  #content_block_4 .form-inner {
    padding-left: 30px;
    padding-right: 30px;
  }

  .testimonial-style-two .testimonial-content .inner-box .text h2,
  .news-block-one .inner-box .lower-content h2 {
    font-size: 24px;
    line-height: 32px;
  }



  .footer-botton .copyright {
    float: none;
    display: block;
    text-align: center;
  }

  .main-footer .footer-top .row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .main-footer .footer-column {
    margin-bottom: 15px !important;
  }

  .footer-botton .copyright p {
    line-height: normal !important;
    padding: 15px 0 !important;
  }

  /* Ensure Links and Services share row on small mobile */
  @media only screen and (max-width: 480px) {
    .main-footer .col-6 {
      flex: 0 0 50% !important;
      max-width: 50% !important;
      padding: 0 10px !important;
    }

    .footer-top .links-widget .links-list li {
      font-size: 14px !important;
    }
  }

}


@media only screen and (max-width: 499px) {

  .main-header.style-one .header-lower .outer-box .menu-area {
    padding: 0px 15px;
    display: none;
  }

  .main-header .logo-box .logo img {
    max-width: 180px;
  }

  .news-block-one .inner-box .lower-content {
    padding-left: 30px;
  }

  #content_block_8 .content-box .inner-box .single-item {
    width: 100%;
    margin-bottom: 15px;
  }

  #content_block_8 .content-box .inner-box .single-item:last-child {
    margin-bottom: 0px;
  }

  .error-section .inner-box h1 {
    font-size: 130px;
    line-height: 130px;
  }

  .service-details-content .content-two .inner-box .list-item li {
    width: 100%;
  }

  .sidebar-page-container .news-block-one .inner-box .lower-content {
    padding-right: 30px;
  }

  .pagination li {
    margin: 5px 3px;
  }

  .sidebar .sidebar-widget {
    padding-left: 30px;
    padding-right: 30px;
  }

  .blog-details-content .news-block-one .inner-box .lower-content {
    padding-right: 0px;
  }

  .contact-section .info-inner {
    padding-left: 30px;
    padding-right: 30px;
  }

}


@media only screen and (max-width: 399px) {

  #content_block_3 .content-box .inner-box .icon-box {
    position: relative;
    left: 0px;
    margin-bottom: 15px;
    top: 0px;
  }

  #content_block_3 .content-box .inner-box {
    padding-left: 30px;
    padding-right: 30px;
  }

  .main-header.style-two .btn-box {
    display: none;
  }

  .main-header.style-two .menu-area {
    float: none;
  }

  .main-header.style-two .menu-area .mobile-nav-toggler {
    text-align: right;
  }

  #content_block_5 .content-box .inner-box .inner {
    padding-left: 0px;
  }

  #content_block_5 .content-box .inner-box .inner .video-inner {
    position: relative;
    margin-bottom: 15px;
  }

  .cta-style-two .inner-container {
    padding: 70px 15px;
  }

  .rtl #content_block_3 .content-box .inner-box {
    padding-right: 30px;
    padding-left: 30px;
  }

  .rtl #content_block_3 .content-box .inner-box .icon-box {
    right: 0px;
  }

  .service-sidebar .sidebar-support,
  .service-details-content .content-two .inner-box {
    padding-left: 30px;
    padding-right: 30px;
  }

  .blog-details-content .comments-area .comment .comment-inner {
    padding-left: 0px;
  }

  .blog-details-content .comments-area .comment .thumb-box {
    position: relative;
    top: 0px;
    margin-bottom: 15px;
  }

}


/* ========================
   DPC Custom Design Fixes
   ======================== */

/* About section - dark overlay for text readability */
.about-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-section::before {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(34, 39, 43, 0.92) 0%, rgba(42, 164, 165, 0.85) 100%);
  z-index: 0;
}

.about-section .auto-container {
  position: relative;
  z-index: 1;
}

/* About section text - make readable over overlay */
.about-section #content_block_1 .content-box .sec-title p {
  color: #8dc63f !important;
}

.about-section #content_block_1 .content-box .sec-title h2 {
  color: #fff;
}

.about-section #content_block_1 .content-box h3 {
  color: rgba(255, 255, 255, 0.85);
}

.about-section #content_block_1 .content-box .list-item li {
  color: rgba(255, 255, 255, 0.8);
}

.about-section #content_block_1 .content-box .list-item li:before {
  color: #8dc63f;
}

/* About section right image - desktop only */
.about-image-col {
  padding-left: 50px;
  /* space between text and image */
}

.about-right-image {
  margin: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-right-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Feature section - pull up over banner for overlap effect */
.feature-section {
  position: relative;
  z-index: 2;
  margin-top: -60px;
}

/* Banner - improved gradient overlay */
.banner-carousel .slide-item:before {
  background: linear-gradient(180deg, rgba(34, 39, 43, 0.55) 0%, rgba(34, 39, 43, 0.7) 100%) !important;
  opacity: 1 !important;
}

/* Banner h6 tag - better pill styling */
.banner-carousel .content-box h6 {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

/* Banner h1 - max width for readability */
.banner-carousel .content-box h1 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Service cards - consistent heights with shadow */
.service-block-one .inner-box {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.service-block-one .inner-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Gallery section - zero gap grid */
.gallery-section {
  padding: 0px !important;
}

.gallery-section .row {
  margin: 0;
}

.gallery-section .gallery-block {
  padding: 0;
}

/* CTA section - proper flex alignment */
.cta-section .inner-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Testimonial section - subtle background */
.testimonial-section {
  background: #f8f7f3;
}

/* Testimonial Equal Height Fix */
.testimonial-section .owl-stage {
  display: flex;
}

.testimonial-section .owl-item {
  display: flex;
  height: auto;
}

/* Testimonial cards - improved styling & flex layout */
.testimonial-block-one {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.testimonial-block-one .inner-box {
  border-radius: 12px;
  transition: all 400ms ease;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 40px 30px 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.testimonial-block-one .inner-box:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

/* Quote Icon */
.testimonial-block-one .inner-box .quote-box {
  position: relative;
  left: 0;
  bottom: 0;
  transform: none;
  margin-bottom: 20px;
  text-align: left;
}

.testimonial-block-one .inner-box .quote-box img {
  width: 45px;
  opacity: 0.15;
}

/* Testimonial Text */
.testimonial-block-one .inner-box p {
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  font-style: italic;
  margin: 0 0 30px 0;
  flex-grow: 1;
  /* Pushes author info to the bottom */
  max-width: none;
}

/* Author Info Group */
.testimonial-block-one .inner-box .author-info {
  display: flex;
  align-items: center;
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
  margin-top: auto;
}

.testimonial-block-one .inner-box .image-box {
  position: relative;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 0;
}

.testimonial-block-one .inner-box .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Author Name */
.testimonial-block-one .inner-box h4 {
  margin: 0;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  color: #22272b;
  position: relative;
  z-index: 1;
}

/* Remove default template colored bars */
.testimonial-block-one .inner-box h4:before,
.testimonial-block-one .inner-box h4:after {
  display: none !important;
}

/* News cards - consistent rounded corners */
.news-block-one .inner-box {
  border-radius: 8px;
  overflow: hidden;
}

.news-block-one .inner-box .image-box {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

/* Clients section - subtle separator */
.clients-section {
  border-top: 1px solid #ecebe3;
  border-bottom: 1px solid #ecebe3;
}

/* Proudly section - better image layer overlay */
.proudly-section .image-layer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(42, 164, 165, 0.15) 0%, transparent 100%);
}

/* Feature style two - improved card overlay */
.feature-block-two .inner-box {
  border-radius: 8px;
  overflow: hidden;
}

/* Startup section - form card polish */
#content_block_4 .form-inner {
  border-radius: 8px;
  overflow: hidden;
}

/* Footer top - subtle gradient overlay enhancement */
.footer-top::before {
  background: linear-gradient(180deg, rgba(34, 39, 43, 0.96) 0%, rgba(34, 39, 43, 0.92) 100%) !important;
}

/* Footer full-width - remove any constraining margins/padding */
.dpc-footer-fullwidth {
  width: 100%;
  margin: 0;
  padding: 0;
}

.dpc-footer-fullwidth .footer-top {
  width: 100%;
}

.dpc-footer-fullwidth .footer-botton {
  width: 100%;
}


/* ========================
   DPC Service Details Page
   ======================== */

/* -- Page Hero (enhanced page-title) -- */
.dpc-page-hero {
  padding: 200px 0px 120px 0px;
}

.dpc-page-hero::before {
  background: linear-gradient(180deg, rgba(34, 39, 43, 0.5) 0%, rgba(34, 39, 43, 0.8) 100%) !important;
  opacity: 1 !important;
}

.dpc-page-hero .content-box {
  position: relative;
  z-index: 1;
}

.dpc-page-hero .title h1 {
  margin-bottom: 16px;
}

.dpc-hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 30px auto;
}

.dpc-hero-btn {
  margin-top: 10px;
}

.dpc-hero-btn .theme-btn-one {
  background: #8dc63f !important;
  color: #22272b !important;
}

.dpc-hero-btn .theme-btn-one:hover {
  background: #2aa4a5 !important;
  color: #fff !important;
}

/* -- Service details modern layout -- */
.dpc-service-details {
  padding: 80px 0px 60px 0px;
}

/* Hero image in content */
.dpc-hero-image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px !important;
}

.dpc-hero-image img {
  border-radius: 12px;
}

/* Content overview */
.dpc-content-overview {
  margin-bottom: 60px !important;
}

.dpc-content-overview .text h2 {
  margin-bottom: 24px !important;
}

.dpc-content-overview .text p {
  color: #555;
  margin-bottom: 20px !important;
}

/* -- Expect Section (card grid) -- */
.dpc-expect-section {
  margin-bottom: 60px;
}

.dpc-expect-section>h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #22272b;
}

.dpc-expect-intro {
  color: #717577;
  margin-bottom: 30px;
}

.dpc-expect-grid {
  margin: 0 -10px;
}

.dpc-expect-grid>div {
  padding: 0 10px;
  margin-bottom: 20px;
}

.dpc-expect-card {
  background: #f8f7f3;
  border-radius: 12px;
  padding: 30px 24px;
  height: 100%;
  transition: transform 300ms ease, box-shadow 300ms ease;
  border: 1px solid transparent;
}

.dpc-expect-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #2aa4a5;
}

.dpc-expect-icon {
  width: 56px;
  height: 56px;
  line-height: 56px;
  border-radius: 12px;
  background: #2aa4a5;
  color: #fff;
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.dpc-expect-card h5 {
  font-size: 18px;
  font-weight: 600;
  color: #22272b;
  margin-bottom: 10px;
}

.dpc-expect-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #717577;
  margin: 0;
}

/* -- Two column (image + text) -- */
.dpc-two-column {
  margin-bottom: 60px !important;
}

.dpc-two-column .image-box {
  border-radius: 12px;
  overflow: hidden;
}

.dpc-two-column .image-box img {
  border-radius: 12px;
}

.dpc-two-column .text h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #22272b;
}

.dpc-two-column .text>p {
  color: #717577;
  margin-bottom: 20px;
}

.dpc-two-column .list-item li {
  font-size: 15px;
  color: #555;
}

/* -- Benefits Section -- */
.dpc-benefits-section {
  margin-bottom: 60px;
  background: linear-gradient(135deg, #22272b 0%, #2d3640 100%);
  border-radius: 16px;
  padding: 48px 40px;
}

.dpc-benefits-section>h3 {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 32px;
}

.dpc-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dpc-benefit-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 28px 24px;
  transition: background 300ms ease;
}

.dpc-benefit-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dpc-benefit-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #8dc63f;
  background: rgba(141, 198, 63, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.dpc-benefit-item h5 {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.dpc-benefit-item p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* -- FAQ Section -- */
.dpc-faq-section {
  margin-bottom: 0 !important;
}

.dpc-faq-section>h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #22272b;
}

.dpc-faq-section .accordion-box .block {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ecebe3;
  box-shadow: none;
}

.dpc-faq-section .accordion-box .block .acc-btn {
  padding: 20px 60px 20px 28px;
}

.dpc-faq-section .accordion-box .block .acc-btn .icon-outer {
  right: 24px;
  top: 20px;
}

.dpc-faq-section .accordion-box .block .acc-content {
  padding: 20px 28px 24px 28px;
}

/* -- Sidebar (right) -- */
.dpc-sidebar-sticky {
  position: sticky;
  top: 100px;
}

/* Sidebar categories - modern styling */
.dpc-service-details .categories-widget {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px !important;
}

.dpc-service-details .categories-widget h4 {
  padding-left: 28px !important;
  font-size: 18px !important;
}

.dpc-service-details .categories-widget .list li a {
  padding: 12px 28px !important;
  font-size: 15px;
  transition: all 200ms ease;
}

.dpc-service-details .categories-widget .list li a:before {
  right: 28px !important;
}

.dpc-service-details .categories-widget .list li a.active {
  color: #2aa4a5;
  font-weight: 600;
}

.dpc-service-details .categories-widget h4:before {
  background: #2aa4a5;
}

/* Sidebar CTA card */
.dpc-sidebar-cta {
  background: linear-gradient(135deg, #2aa4a5 0%, #22272b 100%);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  margin-bottom: 24px;
}

.dpc-sidebar-icon {
  width: 64px;
  height: 64px;
  line-height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  margin: 0 auto 20px auto;
  text-align: center;
}

.dpc-sidebar-cta h4 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.dpc-sidebar-cta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.dpc-sidebar-cta h3 {
  margin-bottom: 20px;
}

.dpc-sidebar-cta h3 a {
  color: #8dc63f;
  font-size: 22px;
  font-weight: 700;
}

.dpc-sidebar-cta h3 a:hover {
  color: #fff;
}

.dpc-sidebar-cta .theme-btn-one {
  background: #8dc63f !important;
  color: #22272b !important;
  width: 100%;
  text-align: center;
}

/* Sidebar FAQ widget Refinement */
.dpc-faq-sidebar {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-top: 35px;
  /* Added spacing from previous section */
  margin-bottom: 24px;
  background: #fff;
}

.dpc-faq-sidebar h4 {
  padding: 22px 28px !important;
  font-size: 18px !important;
  margin: 0 !important;
  border-bottom: 1px solid #f0efeb;
}

.dpc-faq-sidebar h4 i {
  margin-right: 10px;
  color: #2aa4a5;
  font-size: 18px;
}

.dpc-faq-section-sidebar .accordion-box .block {
  margin-bottom: 12px;
  /* Spacing between cards */
  border: 1px solid #f0efeb;
  border-radius: 8px !important;
  transition: all 300ms ease;
}

.dpc-faq-section-sidebar .accordion-box .block:last-child {
  margin-bottom: 0;
}

.dpc-faq-section-sidebar .accordion-box .block .acc-btn {
  padding: 18px 50px 18px 24px;
  background: #fff;
  cursor: pointer;
  transition: all 300ms ease;
}

.dpc-faq-section-sidebar .accordion-box .block .acc-btn.active {
  background: #f8f7f3;
}

.dpc-faq-section-sidebar .accordion-box .block .acc-btn h5 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #22272b;
  margin: 0;
}

.dpc-faq-section-sidebar .accordion-box .block .acc-btn .icon-outer {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #2aa4a5;
  transition: all 300ms ease;
}

.dpc-faq-section-sidebar .accordion-box .block .acc-btn.active .icon-outer {
  transform: translateY(-50%) rotate(180deg);
}

.dpc-faq-section-sidebar .accordion-box .block .acc-content {
  padding: 0 24px 22px 24px;
  background: #f8f7f3;
}

.dpc-faq-section-sidebar .accordion-box .block .acc-content p {
  font-size: 14px;
  line-height: 1.7;
  color: #717577;
  margin: 0;
}

/* Tablet Layout Optimization (768px - 991px) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .dpc-sidebar-tablet-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
  }

  .dpc-sidebar-tablet-row .sidebar-widget {
    flex: 1;
    margin-bottom: 0 !important;
  }
}

/* About Style Three Refinements */
.dpc-about-grid-img {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.dpc-about-grid-img img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  transition: all 500ms ease;
}

.about-style-three .image-box .image:hover img {
  transform: scale(1.05);
}

#content_block_8 .content-box .inner-box .single-item {
  float: none;
  width: 100%;
  margin-bottom: 30px;
}

#content_block_8 .content-box .inner-box .single-item:last-child {
  margin-bottom: 0;
}

@media only screen and (max-width: 991px) {
  .about-style-three .image-column {
    margin-bottom: 50px;
  }

  .dpc-about-grid-img img {
    height: 220px;
  }
}

@media only screen and (max-width: 767px) {
  .about-style-three .image-box .column:first-child {
    margin-bottom: 0px;
  }

  .dpc-about-grid-img img {
    height: 250px;
  }

  .about-style-three .image-box .column .image:last-child {
    margin-bottom: 30px;
  }
}

@media only screen and (max-width: 480px) {
  .dpc-about-grid-img img {
    height: 140px;
  }

  .about-style-three .image-column {
    margin-bottom: 30px;
  }

  .about-style-three .image-box .row {
    margin-right: -10px;
    margin-left: -10px;
  }

  .about-style-three .image-box .column {
    padding-left: 10px;
    padding-right: 10px;
  }

  .about-style-three .image-box .image.mb-30 {
    margin-bottom: 20px !important;
  }

  .about-style-three .image-box .column .image:last-child {
    margin-bottom: 20px;
  }
}

/* Founder Section Redesign */
.dpc-founder-section {
  padding: 60px 0px 60px 0px;
  background-color: #ffffff;
}

.founder-info-box .sec-title h2 {
  font-size: 32px;
  color: #22272b;
}

.founder-info-box .designation {
  font-size: 16px;
  color: #2aa4a5;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dpc-founder-img-wrapper {
  position: relative;
  display: inline-block;
}

.dpc-founder-img {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid #fff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.dpc-founder-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-links-founder {
  position: absolute;
  right: 15px;
  bottom: 25px;
}

.social-links-founder li a {
  width: 45px;
  height: 45px;
  line-height: 45px;
  background: #2aa4a5;
  color: #fff;
  display: block;
  border-radius: 50%;
  text-align: center;
  font-size: 18px;
  box-shadow: 0 5px 15px rgba(42, 164, 165, 0.3);
  transition: all 300ms ease;
}

.social-links-founder li a:hover {
  background: #22272b;
  transform: translateY(-3px);
}

.dpc-founder-section .content-box .text p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
}

@media only screen and (max-width: 991px) {
  .dpc-founder-section .image-column {
    margin-bottom: 40px;
    text-align: center;
  }

  .dpc-founder-section .content-box {
    margin-left: 0 !important;
    text-align: center;
  }

  .dpc-founder-section .sec-title p {
    margin: 0 auto 10px;
  }
}

@media only screen and (max-width: 480px) {
  .dpc-founder-img {
    width: 260px;
    height: 260px;
  }

  .founder-info-box .sec-title h2 {
    font-size: 26px;
  }
}

.dpc-sidebar-cta .theme-btn-one:hover {
  background: #fff !important;
  color: #fff !important;
}

/* Sidebar hours card */
.dpc-sidebar-hours {
  background: #f8f7f3;
  border-radius: 12px;
  padding: 28px 24px;
}

.dpc-sidebar-hours h4 {
  font-size: 18px;
  font-weight: 600;
  color: #22272b;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dpc-sidebar-hours h4 i {
  color: #2aa4a5;
  font-size: 20px;
}

.dpc-sidebar-hours ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dpc-sidebar-hours ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #ecebe3;
  font-size: 14px;
}

.dpc-sidebar-hours ul li:last-child {
  border-bottom: none;
}

.dpc-sidebar-hours ul li span {
  color: #717577;
}

.dpc-sidebar-hours ul li strong {
  color: #22272b;
  font-weight: 600;
  font-size: 13px;
}

/* -- CTA section enhancements -- */
.dpc-service-cta {
  padding: 70px 0;
}

.dpc-service-cta .inner-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dpc-service-cta .inner-box .text {
  float: none;
}

.dpc-service-cta .inner-box .text h2 {
  color: #fff;
  margin-bottom: 8px;
}

.dpc-service-cta .inner-box .text p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 16px;
}

.dpc-service-cta .inner-box .btn-box {
  float: none;
  flex-shrink: 0;
}

.dpc-service-cta .theme-btn-one {
  background: #8dc63f !important;
  color: #22272b !important;
}

.dpc-service-cta .theme-btn-one:hover {
  background: #fff !important;
}

/* ========================
   DPC Custom Responsive Fixes
   ======================== */

/* Reset margin utilities on tablet */
@media only screen and (max-width: 991px) {

  .mr-50,
  .mr-40,
  .mr-30 {
    margin-right: 0px !important;
  }

  .ml-70,
  .ml-40 {
    margin-left: 0px !important;
  }
}

/* Footer timing text - prevent overflow on small screens */
@media only screen and (max-width: 499px) {
  .appointment-widget .shediul-list li h6 {
    font-size: 13px;
    line-height: 20px;
  }

  .appointment-widget .shediul-list li span {
    font-size: 13px;
  }
}

/* Team page - center single card on all screen sizes */
.team-page-section .row.justify-content-center .team-block {
  float: none;
}

/* Service dropdown - limit height on desktop for 8 items */
@media only screen and (min-width: 1200px) {
  .main-menu .navigation>li>ul {
    max-height: 400px;
    overflow-y: auto;
  }
}

/* Ensure long service names don't overflow sidebar on mobile */
@media only screen and (max-width: 399px) {
  .service-sidebar .category-widget .category-list li a {
    font-size: 14px;
    padding: 12px 15px;
  }
}

/* ---- Mobile Header Fixes ---- */

/* At tablet/mobile breakpoint: fix header-lower layout */
@media only screen and (max-width: 1200px) {

  /* Remove absolute positioning so header-lower has actual height */
  .main-header.style-one .header-lower .outer-box .menu-area {
    position: relative;
    padding: 10px 15px;
    border-bottom: none !important;
  }

  /* Hide social links in header-lower (they're in the mobile menu) */
  .main-header.style-one .header-lower .social-links {
    display: none;
  }

  /* Show the hamburger toggle */
  .menu-area .mobile-nav-toggler {
    display: block !important;
    float: right;
    margin: 0;
    padding: 10px;
    cursor: pointer;
  }

  /* Make icon bars clearly visible */
  .menu-area .mobile-nav-toggler .icon-bar {
    display: block;
    width: 28px;
    height: 3px;
    margin-bottom: 5px;
    background-color: #22272b;
    border-radius: 2px;
  }

  .menu-area .mobile-nav-toggler .icon-bar:last-child {
    margin-bottom: 0;
  }
}

/* At 991px: compact header-upper for tablets */
@media only screen and (max-width: 991px) {

  /* Hide the phone/email info row - shown in mobile menu contact info */
  .main-header .header-upper .upper-info {
    display: none !important;
  }

  /* Compact logo */
  .main-header .logo-box .logo {
    padding: 15px 0;
    max-width: 120px;
  }

  /* Right-align the hamburger in the menu bar */
  .main-header.style-one .header-lower .outer-box .menu-area {
    text-align: right;
  }
}

/* At 767px: single-row mobile header (logo + hamburger) */
@media only screen and (max-width: 767px) {

  /* Hide header-top bar on small mobile to save space */
  .header-top {
    display: none;
  }

  /* Compact logo */
  .main-header .logo-box .logo {
    padding: 12px 0;
    max-width: 100px;
    margin: 0 !important;
  }

  .main-header .logo-box {
    float: none !important;
  }

  /* Overlay header-lower on header-upper so hamburger sits next to logo */
  .main-header .header-lower {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    height: 100%;
    background: transparent;
    z-index: 10;
    display: flex;
    align-items: center;
  }

  .main-header.style-one .header-lower .outer-box .menu-area {
    padding: 0 15px;
    border-top: none;
    border-bottom: none !important;
    background: transparent;
    position: static;
  }
}

/* ---- Service Details Page Responsive ---- */

/* == 991px: Tablet == */
@media only screen and (max-width: 991px) {
  .dpc-page-hero {
    padding: 160px 0px 80px 0px;
  }

  .dpc-hero-subtitle {
    font-size: 16px;
  }

  .dpc-service-details {
    padding: 60px 0px 40px 0px;
  }

  /* Sidebar goes below content on tablet */
  .dpc-sidebar-sticky {
    position: relative;
    top: 0;
    margin-top: 40px;
  }

  /* CTA stack */
  .dpc-service-cta .inner-box {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .dpc-service-cta .inner-box .text {
    float: none;
  }

  .dpc-service-cta .inner-box .btn-box {
    float: none;
  }
}

/* == 767px: Mobile == */
@media only screen and (max-width: 767px) {
  .dpc-page-hero {
    padding: 130px 0px 60px 0px;
  }

  .dpc-page-hero .title h1 {
    font-size: 32px !important;
    line-height: 1.15 !important;
  }

  .dpc-hero-subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .dpc-service-details {
    padding: 40px 0px 30px 0px;
  }

  .dpc-content-overview {
    margin-bottom: 40px !important;
  }

  .dpc-expect-section {
    margin-bottom: 40px;
  }

  .dpc-expect-section>h3 {
    font-size: 22px;
  }

  .dpc-two-column {
    margin-bottom: 40px !important;
  }

  .dpc-two-column .image-column {
    margin-bottom: 24px;
  }

  /* Benefits - single column */
  .dpc-benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dpc-benefits-section {
    padding: 32px 24px;
    margin-bottom: 40px;
  }

  .dpc-benefits-section>h3 {
    font-size: 20px;
  }

  .dpc-faq-section>h3 {
    font-size: 20px;
  }

  .dpc-service-cta {
    padding: 50px 0px;
  }

  .dpc-service-cta .inner-box .text h2 {
    font-size: 24px;
    line-height: 1.3;
  }

  /* Footer full-width fix for mobile */
  .dpc-footer-fullwidth .footer-top {
    padding: 60px 0px 20px 0px;
  }
}

/* == 499px: Small phone == */
@media only screen and (max-width: 499px) {
  .dpc-page-hero {
    padding: 110px 0px 50px 0px;
  }

  .dpc-page-hero .title h1 {
    font-size: 26px !important;
  }

  .dpc-hero-subtitle {
    font-size: 14px;
  }

  .dpc-service-details {
    padding: 30px 0px 20px 0px;
  }

  .dpc-expect-card {
    padding: 24px 20px;
  }

  .dpc-expect-icon {
    width: 48px;
    height: 48px;
    line-height: 48px;
    font-size: 20px;
  }

  .dpc-benefits-section {
    padding: 28px 20px;
    border-radius: 12px;
  }

  .dpc-benefit-item {
    padding: 22px 18px;
  }

  .dpc-sidebar-cta {
    padding: 28px 20px;
  }

  .dpc-sidebar-hours {
    padding: 22px 18px;
  }

  .dpc-service-cta .inner-box .text h2 {
    font-size: 20px;
  }
}

/* == 399px: Very small phone == */
@media only screen and (max-width: 399px) {
  .dpc-page-hero .title h1 {
    font-size: 22px !important;
  }

  .dpc-expect-section>h3,
  .dpc-benefits-section>h3,
  .dpc-faq-section>h3,
  .dpc-two-column .text h3 {
    font-size: 18px;
  }

  .dpc-service-cta .inner-box .text h2 {
    font-size: 18px;
  }
}


/* ---- Index Page Section Responsive ---- */

/* == 1200px: Tablet landscape == */
@media only screen and (max-width: 1200px) {

  /* Feature section - remove overlap on tablets */
  .feature-section {
    margin-top: 0;
  }
}

/* == 991px: Tablet portrait == */
@media only screen and (max-width: 991px) {

  /* Banner - reduce padding */
  .banner-carousel .slide-item {
    padding: 180px 0px 120px 0px;
  }

  /* Feature blocks - stack 2 per row */
  .feature-section .feature-block-one {
    width: 100%;
  }

  /* About section - reduce padding, full width content */
  .about-section.sec-pad {
    padding: 80px 0px !important;
  }

  /* CTA - stack vertically */
  .cta-section .inner-box {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .cta-section .inner-box .text {
    float: none;
  }

  .cta-section .inner-box .btn-box {
    float: none;
  }

  /* Feature style two - stack blocks */
  .feature-style-two .feature-block-two {
    width: 100%;
    float: none;
    margin-bottom: 24px;
  }

  .feature-style-two .feature-block-two:last-child {
    margin-bottom: 0;
  }

  .feature-style-two {
    padding-top: 80px;
  }

  /* Proudly section - full width content */
  .proudly-section {
    padding: 70px 0px;
  }

  /* Startup section - reduce top padding */
  .startup-section {
    padding-top: 80px;
  }
}

/* == 767px: Mobile == */
@media only screen and (max-width: 767px) {

  /* Banner - mobile sizing */
  .banner-carousel .slide-item {
    padding: 140px 0px 80px 0px;
  }

  .banner-carousel .content-box h6 {
    font-size: 12px !important;
    padding: 6px 16px !important;
    margin-bottom: 16px !important;
  }

  .banner-carousel .content-box h1 {
    font-size: 32px !important;
    line-height: 1.15 !important;
    margin-bottom: 20px;
  }

  /* Feature blocks - full width stack */
  .feature-section .feature-block-one {
    width: 100%;
  }

  /* About section - mobile padding */
  .about-section.sec-pad {
    padding: 60px 0px !important;
  }

  .about-section #content_block_1 .content-box h3 {
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 30px;
  }

  .about-section #content_block_1 .content-box .list-item li {
    font-size: 15px;
    line-height: 24px;
    padding-left: 30px;
  }

  /* Service section */
  .service-section.sec-pad {
    padding: 60px 0px 70px 0px !important;
  }

  /* Clients section */
  .clients-section {
    padding: 40px 0px;
  }

  /* Proudly section */
  .proudly-section {
    padding: 60px 0px;
  }

  #content_block_2 .content-box .counter-inner .counter-block {
    width: 33.333%;
    text-align: center;
  }

  #content_block_2 .content-box .counter-inner .counter-block .inner-box {
    padding-left: 0;
  }

  #content_block_2 .content-box .counter-inner .counter-block .inner-box .icon-box {
    position: relative;
    left: auto;
    margin-bottom: 10px;
  }

  /* Feature style two - padding */
  .feature-style-two {
    padding-top: 60px;
  }

  .feature-block-two .inner-box {
    min-height: 280px;
    margin-bottom: 30px;
  }

  .feature-style-two .feature-block-two:last-child .inner-box {
    margin-bottom: 0;
  }

  /* Testimonial */
  .testimonial-section.sec-pad {
    padding: 60px 0px !important;
  }

  .testimonial-section .inner-container {
    margin: 0;
    padding: 0;
  }

  /* Startup section */
  .startup-section {
    padding-top: 60px;
  }

  #content_block_4 .form-inner {
    padding: 0px 50px 40px 50px !important;
  }

  /* News section */
  .news-section.sec-pad {
    padding: 60px 0px 30px 0px !important;
  }

  /* Gallery - 2 columns on mobile */
  .gallery-section .gallery-block {
    width: 50%;
    float: left;
  }

  /* CTA */
  .cta-section {
    padding: 50px 0px;
  }

  .cta-section .inner-box .text h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  /* Footer */
  .footer-top {
    padding: 60px 0px 20px 0px;
  }
}

/* == 499px: Small phone == */
@media only screen and (max-width: 499px) {

  /* Header top info */
  .header-top .info li {
    font-size: 12px;
  }

  .header-top .info li i {
    margin-right: 5px;
  }

  /* Banner */
  .banner-carousel .slide-item {
    padding: 120px 0px 70px 0px;
  }

  .banner-carousel .content-box h1 {
    font-size: 28px !important;
    line-height: 1.15 !important;
  }

  /* Counter blocks stack on very small */
  #content_block_2 .content-box .counter-inner .counter-block {
    width: 100%;
    margin-bottom: 20px;
  }

  /* Feature style two - smaller min height */
  .feature-block-two .inner-box {
    min-height: 240px;
  }

  .feature-block-two .inner-box .content-inner h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  /* Gallery - single column */
  .gallery-section .gallery-block {
    width: 100%;
    float: none;
  }

  /* Startup form */
  #content_block_4 .form-inner {
    padding: 0px 20px 30px 20px;
  }

  #content_block_3 .content-box .single-box .inner {
    padding-left: 70px;
  }

  #content_block_3 .content-box .single-box .inner .icon-box {
    width: 48px;
    height: 48px;
    line-height: 48px;
    font-size: 20px;
  }
}

/* == 399px: Very small phone == */
@media only screen and (max-width: 399px) {
  .banner-carousel .content-box h1 {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  .banner-carousel .content-box h6 {
    font-size: 11px !important;
    padding: 5px 12px !important;
  }

  .sec-title h2 {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }

  .cta-section .inner-box .text h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  #content_block_3 .content-box .single-box .inner {
    padding-left: 0;
  }

  #content_block_3 .content-box .single-box .inner .icon-box {
    position: relative;
    left: 0;
    top: 0;
    margin-bottom: 15px;
  }
}

/* ========================
   Index Page Stability Fixes
   ======================== */

/* Prevent horizontal scroll caused by absolute/fixed decorative elements */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Keep media fluid on all breakpoints */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Tablet landscape (1024-1200): use compact header layout */
@media only screen and (max-width: 1200px) {
  .main-header .header-upper .upper-info {
    display: none !important;
  }

  .main-header .header-upper .logo-box {
    float: left;
  }

  .main-header .logo-box .logo {
    padding: 16px 0px;
    max-width: 120px;
  }

  .main-header.style-one .header-lower .outer-box .menu-area {
    min-height: 62px;
  }

  .menu-area .mobile-nav-toggler {
    margin-top: 0 !important;
  }
}

/* Improve readability/spacing in banner and CTA on medium tablets */
@media only screen and (max-width: 1024px) {
  .banner-carousel .slide-item {
    padding: 170px 0px 105px 0px;
  }

  .banner-carousel .content-box h1 {
    max-width: 90%;
  }

  .cta-section .inner-box {
    gap: 16px;
  }
}