/* =========================================================
   KPC – Responsive styles
   Breakpoints: 1199px (mobile menu) · 991px · 767px · 575px · 375px
   ========================================================= */

/* ---------------------------------------------------------
   Navbar – mobile & tablet (moved here from style.css)
   --------------------------------------------------------- */
@media only screen and (max-width: 1199px) {
  .header-area .top-header-area {
    background: rgba(26, 26, 26, 0.69);
    padding: 20px 0;
  }
  .header-area .top-header-area .navbar-brand {
    display: none;
  }
  .header-area .top-header-area .contact-info .contact-info-content {
    margin-left: 10px;
  }
  .header-area .top-header-area .contact-info i {
    position: unset;
    width: unset;
    height: unset;
    vertical-align: 3px;
  }
  .header-area.header-two,
  .header-area.header-three {
    position: unset;
  }
  .header-area.header-two .top-header-area .contact-info,
  .header-area.header-three .top-header-area .contact-info {
    text-align: center;
  }
  .header-area.header-two .top-header-area .contact-info .contact-info-content,
  .header-area.header-three .top-header-area .contact-info .contact-info-content {
    margin-left: unset;
  }
  .header-area.header-two .top-header-area .contact-info .contact-info-content p,
  .header-area.header-three .top-header-area .contact-info .contact-info-content p {
    margin-right: unset;
  }
  .header-area.header-two .top-header-area .contact-info .contact-info-content p, .header-area.header-two .top-header-area .contact-info .contact-info-content a,
  .header-area.header-three .top-header-area .contact-info .contact-info-content p,
  .header-area.header-three .top-header-area .contact-info .contact-info-content a {
    display: block;
  }
  .main-navbar-area {
    position: relative;
  }
  .kpc-responsive-menu .logo .logo2 {
    display: none;
  }
  .kpc-responsive-nav {
    display: block;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 30, 76, 0.08);
    box-shadow: 0 2px 12px rgba(0, 30, 76, 0.06);
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .kpc-responsive-nav .kpc-responsive-menu {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .kpc-responsive-nav .logo {
    position: relative;
    width: 60%;
    z-index: 999;
  }
  .kpc-nav {
    display: none;
  }
}

/* ---------------------------------------------------------
   Member details (moved here from style.css)
   --------------------------------------------------------- */
@media screen and (min-width: 767px) {
  .member-details-section .image img {
    opacity: 0;
  }
}

@media screen and (max-width: 767px) {
  .member-details-section .image {
    background: unset;
  }
}

@media only screen and (max-width: 767px) {
    .logo img{
        max-height:50px;
    }
  body {
    font-size: 14px;
  }
  h1 {
    font-size: 26px;
  }
  h2 {
    font-size: 20px;
  }
  h3 {
    font-size: 17px;
  }
  h4 {
    font-size: 15px;
  }
  .ptb-50 {
    padding-top: 25px;
    padding-bottom: 25px;
  }
  .ptb-100 {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .pt-100 {
    padding-top: 50px;
  }
  .pb-100 {
    padding-bottom: 50px;
  }
  .ptb-70 {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .pt-70 {
    padding-top: 20px;
  }
  .pb-70 {
    padding-bottom: 20px;
  }
  .no-wrap {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
  p {
    font-size: 14px;
  }
  .primary-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  /*section-title*/
  .section-title {
    max-width: 100%;
    text-align: center;
    margin-bottom: 40px;
  }
  .section-title::before {
    content: unset;
  }
  .section-title h2 {
    font-size: 21px;
    padding: unset;
    margin-top: -7px;
  }
  .section-title p {
    font-size: 14px;
  }
  .section-title.style-two h2 {
    margin-top: -5px !important;
  }
  .header-area,
  .header-area.header-two,
  .header-area.header-three {
    position: unset;
  }
  .header-area {
    position: unset;
  }
  .header-area .top-header-area {
    display: none;
  }
  .header-area .kpc-responsive-nav .logo {
    position: relative;
    width: 50%;
    z-index: 999;
  }
  /* Banner CSS*/
  .home-banner-area {
    padding-top: 0;
  }
  .banner-content {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 30px;
  }
  .banner-content h1 {
    font-size: 30px;
    margin-top: -7px;
    margin-bottom: 15px;
  }
  .banner-content p {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .banner-content .cta-btn {
    margin-bottom: 20px;
  }
  .banner-two .banner-content {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .banner-img img {
    max-width: 80%;
    margin: auto;
    display: block;
  }
  .banner-three .banner-content {
    padding-top: 60px;
    padding-bottom: 120px;
  }
  .banner-three .owl-carousel .owl-dots .owl-dot {
    height: 16px;
  }
  .banner-three .owl-carousel .owl-dots .owl-dot.active {
    height: 30px;
  }
  /* About CSS*/
  .about-section .about-content {
    margin-bottom: 30px;
  }
  .about-section .about-content h2 {
    margin-bottom: 20px;
    margin-top: -7px;
  }
  .about-section .about-content .about-item-list {
    margin-bottom: 20px;
  }
  .about-section .about-image img {
    width: 100%;
  }
  .about-section .left::before {
    right: 0;
    bottom: 0;
  }
  .about-section .right {
    margin-top: unset;
  }
  .about-section .right::before {
    left: 0;
    bottom: 0;
  }
  .about-section .about-fact {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    text-align: center;
    padding: 25px 20px;
  }
  .about-section .about-fact i {
    margin-bottom: 20px;
  }
  .about-section .about-fact .content {
    padding: 0;
  }
  .about-section .about-fact .content h4 {
    margin-bottom: 5px;
  }
  .about-section.about-style-two .about-img-content .overlay-img {
    position: unset;
  }
  .about-section.about-style-two .about-img-content .overlay-img img {
    width: 100%;
  }
  .about-section.about-style-two .about-img-content .about-fact {
    max-width: 100%;
    margin-bottom: 15px;
  }
  .about-section.about-style-three .about-img-content [class*='col-']:first-child {
    padding-right: 5px;
  }
  .about-section.about-style-three .about-img-content [class*='col-']:last-child {
    padding-left: 5px;
  }
  /* Strong Service CSS*/
  .strong-service-section .slider-item {
    max-width: 100%;
    margin-bottom: 30px;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }
  .strong-service-section .slider-item > i {
    margin-left: auto;
    margin-right: auto;
  }
  .strong-service-section .pr-0 {
    padding-right: 15px !important;
  }
  .strong-service-section .service-content {
    padding: 0;
    text-align: center;
    margin-bottom: 40px;
  }
  .strong-service-section .service-content::after {
    content: unset;
  }
  .strong-service-section .service-content h2 {
    margin-top: -7px;
  }
  .strong-service-section .service-content p, .strong-service-section .service-content .cta-btn {
    margin-bottom: 20px;
  }
  .strong-service-section .service-content .custom-owl-nav {
    position: unset;
  }
  .best-service-section .service-item-single {
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }
  .best-service-section .service-item-single > i {
    margin-left: auto;
    margin-right: auto;
  }
  /* Works CSS*/
  .our-works-section::after {
    content: unset;
  }
  .our-works-section .works-content {
    margin-bottom: 30px;
    text-align: center;
  }
  .our-works-section .works-content h2 {
    margin-top: -7px;
    margin-bottom: 15px;
  }
  .our-works-section .works-content p {
    margin-bottom: 40px;
  }
  .our-works-section .works-content .works-item .works-item-single {
    max-width: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    text-align: center;
    padding: 25px 20px;
  }
  .our-works-section .works-content .works-item .works-item-single::before {
    bottom: -25px;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #bdbfc1;
  }
  .our-works-section .works-content .works-item .works-item-single i {
    margin-bottom: 20px;
  }
  .our-works-section .works-content .works-item .works-item-single .content {
    padding: 0;
  }
  .our-works-section .works-content .works-item .works-item-single .content h4 {
    margin-bottom: -2px;
  }
  .our-works-section .works-content .works-item .works-item-single .content h4 br {
    display: none;
  }
  .our-works-section .works-image {
    height: 100%;
    overflow: hidden;
  }
  .our-works-section .works-image::before {
    border-bottom: 140px solid rgba(189, 191, 193, 0.8);
    border-right: 140px solid transparent;
  }
  /* Finished Project CSS */
  .finished-projects-section .owl-carousel .owl-nav {
    margin-top: 30px;
  }
  .finished-projects-section .finished-projects-slider {
    margin-bottom: 30px;
  }
  .finished-projects-section.style-two {
    padding-bottom: 0;
  }
  /* Team Section */
  .team-section .slider-item {
    max-width: 100%;
    margin-bottom: 30px;
  }
  .team-section .pr-0 {
    padding-right: 15px !important;
  }
  .team-section .team-content {
    padding: 0;
    text-align: center;
    margin-bottom: 30px;
  }
  .team-section .team-content::after {
    content: unset;
  }
  .team-section .team-content h2 {
    margin-top: -7px;
  }
  .team-section .team-content p, .team-section .team-content .cta-btn {
    margin-bottom: 20px;
  }
  .team-section .team-content .custom-owl-nav {
    position: unset;
  }
  /* Projects Section */
  .amazing-projects-section {
    background: #e6edf5 !important;
  }
  .amazing-projects-section .slider-item {
    max-width: 100%;
  }
  .amazing-projects-section .pr-0 {
    padding-right: 15px !important;
  }
  .amazing-projects-section .projects-content {
    padding: 0;
    text-align: center;
    margin-bottom: 40px;
  }
  .amazing-projects-section .projects-content::after {
    content: unset;
  }
  .amazing-projects-section .projects-content h2 {
    margin-top: -7px;
  }
  .amazing-projects-section .projects-content p, .amazing-projects-section .projects-content .cta-btn {
    margin-bottom: 20px;
  }
  .amazing-projects-section .projects-content .custom-owl-nav {
    position: unset;
  }
  /* Testimonial CSS*/
  .testimonial-section .testimonial-image {
    display: none;
  }
  .testimonial-section .team-content {
    margin-bottom: 30px;
    text-align: center;
  }
  .testimonial-section .testimonial-slider {
    background: unset;
    padding: 0;
  }
  .testimonial-section .testimonial-slider .slider-item {
    background: #e6edf5;
    padding: 25px 15px;
  }
  .testimonial-section .testimonial-slider .slider-item .client-img {
    margin-bottom: 15px;
  }
  .testimonial-section .testimonial-slider .slider-item p {
    font-size: 18px !important;
  }
  .testimonial-section .owl-carousel .owl-nav {
    margin-top: 30px;
  }
  .testimonial-section.testimonial-three .owl-carousel .owl-nav button,
  .testimonial-section.testimonial-two .owl-carousel .owl-nav button {
    -webkit-transform: unset;
            transform: unset;
    position: unset;
  }
  .testimonial-section.testimonial-three .testimonial-slider::before,
  .testimonial-section.testimonial-two .testimonial-slider::before {
    bottom: 80px;
    border-bottom: 60px solid #bdbfc1;
    border-left: 60px solid transparent;
  }
  .testimonial-section.testimonial-three .testimonial-slider::after,
  .testimonial-section.testimonial-two .testimonial-slider::after {
    border-top: 60px solid #bdbfc1;
    border-right: 60px solid transparent;
  }
  /* Blog CSS*/
  .blog-section .owl-carousel .owl-nav {
    top: unset;
    margin-top: 0;
    margin-bottom: 30px;
  }
  .blog-item-single .blog-item-img img {
    width: 100%;
  }
  /* Newsletter CSS*/
  .newsletter-section .newsletter-content, .newsletter-three .newsletter-content {
    text-align: center;
    padding-left: 0;
  }
  .newsletter-section::before {
    width: 100%;
    background: rgba(26, 26, 26, 0.5);
  }
  .owl-carousel .owl-nav {
    text-align: center;
    position: unset !important;
  }
  .video-btn {
    width: 70px !important;
    height: 70px !important;
    line-height: 70px !important;
  }
  /* footer section */
  .footer-area .footer-news .content {
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
  .instrument-section .container-fluid {
    max-width: 540px;
  }
  .instrument-section .video-content {
    min-height: unset;
  }
  .instrument-section .video-content .video-image {
    position: relative;
    width: 100%;
  }
  .instrument-section .video-content .video-image img {
    max-width: 100%;
  }
  .instrument-section .video-content .video-btn {
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    line-height: 70px;
  }
  .instrument-section .instrument-content {
    max-width: 100%;
    text-align: center;
    padding-right: 0;
  }
  .instrument-section .instrument-content h2 {
    margin-bottom: 15px;
    margin-top: -7px;
  }
  .comingsoon-section .comingsoon-box .newsletter-form .input-group {
    width: 100%;
  }
  .map-section .map-content .map-pin {
    width: 25px;
  }
  .map-section .map-content .map-pin .pin-content {
    right: -100px;
    padding: 8px 5px;
    font-size: 12px;
  }
  .map-section .map-content .active .pin-content {
    opacity: 0;
    visibility: hidden;
  }
  .map-section .map-content .map-pin:hover {
    width: 30px;
  }
  .map-section .map-content .pin-6 .pin-content {
    left: -100px;
    right: unset;
  }
  .map-section .map-content .pin-2 .pin-content {
    top: unset;
    bottom: -50px;
    left: -100px;
    right: unset;
  }
  .map-section .map-content .pin-1 .pin-content {
    top: unset;
    bottom: -50px;
  }
  .newsletter-section.newsletter-two .newsletter-content h2 {
    margin-top: -7px;
  }
  .newsletter-section.newsletter-two .newsletter-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .build-section {
    padding-top: 0;
  }
  .build-section .content h2 {
    margin-top: -7px;
  }
  .renovate-section .content {
    margin-bottom: 25px;
  }
  .renovate-section.renovate-two {
    padding-top: 0;
  }
  .amazing-projects-section.projects-two {
    padding-top: 50px;
  }
  .renovate-section::after, .build-section::after {
    content: unset;
  }
  .quote-section .contact-form {
    padding: 40px 20px;
  }
  .quote-section .contact-form::after {
    border-top: 50px solid #bdbfc1;
    border-right: 50px solid transparent;
  }
  .faq-section .panel-group .panel-title a {
    padding-right: 45px;
  }
  .best-service-section .section-title h2 {
    margin-top: -7px;
  }
  .page-title-area .page-title-content {
    text-align: center;
  }
  .page-title-area .page-title-content h1 {
    font-size: 30px;
    margin-bottom: 10px;
    margin-top: -7px;
  }
  .page-title-area .shape span {
    display: none;
  }
  .authentication-section .authentication-form {
    padding: 40px 16px;
  }
  .authentication-section .authentication-form .checkbox label,
  .authentication-section .authentication-form .link a {
    font-size: 12px;
  }
  .authentication-section .authentication-form .content h3 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 5px;
  }
  .cost-section .content-inner {
    padding-left: 15px;
    padding-right: 15px;
  }
  .cost-section .content-inner .section-title h2 {
    margin-top: -7px;
  }
  .team-members-section .team-item .image img {
    width: 100%;
  }
  .comingsoon-section .comingsoon-box {
    padding: 45px 10px 35px;
  }
  .comingsoon-section .comingsoon-box .cta-btn .primary-btn {
    padding: 15px 15px;
  }
  .error-area .error-box::after {
    border-top: 50px solid #bdbfc1;
    border-right: 50px solid transparent;
  }
  .member-details-section .content {
    padding: 40px 15px;
  }
  .member-details-section .image {
    margin-bottom: 30px;
  }
  .member-details-section .image img {
    width: 100%;
  }
  .newsletter-section .newsletter-content h2 {
    margin-top: -7px;
  }
  .testimonial-section .team-content h2 {
    margin-top: -7px;
  }
  .bio-area {
    text-align: center;
  }
  .bio-area .section-title h2 {
    padding: 0;
    margin-bottom: 15px;
  }
  .cost-section .cost-form .form-group .input-btn {
    margin-bottom: 5px;
  }
  .service-details-area .project-info {
    margin-bottom: 30px !important;
  }
  .service-details-area .widget-area .contact-form,
  .terms-area .widget-area .contact-form,
  .privacy-area .widget-area .contact-form {
    padding: 25px 15px !important;
  }
  .service-details-area .service-details-desc,
  .terms-area .service-details-desc,
  .privacy-area .service-details-desc {
    padding-left: unset;
  }
  .terms-area .details-desc,
  .privacy-area .details-desc {
    padding-left: unset;
  }
  .terms-area .details-desc .content h2, .privacy-area .details-desc .content h2 {
    font-size: 25px;
  }
  .service-details-area .image, .terms-area .image, .privacy-area .image {
    margin-bottom: 30px;
  }
  .team-members-section .team-item .content::after {
    border-top: 100px solid #bdbfc1;
    border-right: 60px solid transparent;
  }
  .team-members-section .team-item .content::before {
    border-bottom: 100px solid #bdbfc1;
    border-left: 60px solid transparent;
  }
  .blog-details-area .widget-area .widget-article .article-item {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .blog-details-area .gallery-item {
    padding-right: 15px;
  }
  .blog-details-area .gallery-item img {
    margin-bottom: 20px;
    width: 100%;
  }
  .blog-details-area .gallery-item .pt-3 {
    padding-top: 0 !important;
  }
  .blog-details-area .blog-details-desc {
    padding-left: unset;
  }
  .blog-details-area .blog-details-desc .post-meta li:first-child {
    margin-bottom: 8px;
  }
  .blog-details-area .blog-details-desc .post-meta li {
    font-size: 12px;
  }
  .blog-details-area .content h2 {
    font-size: 30px !important;
  }
  .blog-details-area .widget-area .widget-article .article-item .title {
    font-size: 16px;
  }
  .blog-details-area .widget-area .contact-form {
    padding: 25px 15px;
  }
  .blog-details-area .blog-details-desc .blog-details-slider .owl-nav {
    margin-top: 30px;
  }
  .blog-details-area .article-share {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
  .blog-details-area .article-share .tags {
    margin-bottom: 0;
  }
  .blog-details-area .article-share .tags a {
    margin-bottom: 10px;
  }
  .blog-details-area .article-share .social-link {
    margin-top: 20px;
  }
  .blog-details-area .blog-item-img img {
    width: 100%;
  }
  .blog-details-area .widget-area .widget-categories .category-list li i {
    vertical-align: -1px;
  }
  .blog-details-area .tags a {
    font-size: 12px;
  }
  .quote-section .image img {
    margin: auto;
    display: block;
  }
  .service-details-area .widget-area .download-item .download-item-single,
  .terms-area .widget-area .download-item .download-item-single,
  .privacy-area .widget-area .download-item .download-item-single {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 25px 40px;
  }
  .service-details-area .widget-area .download-item .download-item-single br,
  .terms-area .widget-area .download-item .download-item-single br,
  .privacy-area .widget-area .download-item .download-item-single br {
    display: none;
  }
  .service-details-area .widget-area .download-item .download-item-single i,
  .terms-area .widget-area .download-item .download-item-single i,
  .privacy-area .widget-area .download-item .download-item-single i {
    margin-bottom: 15px;
  }
  .service-details-area .widget-area .download-item .download-item-single .item-content,
  .terms-area .widget-area .download-item .download-item-single .item-content,
  .privacy-area .widget-area .download-item .download-item-single .item-content {
    padding-left: 0;
  }
  .blog-details-area .widget-area .widget-article .article-item img {
    max-width: 100px;
  }
  .team-slider .slider-item .content::before {
    border-left: 50px solid transparent;
  }
  .team-slider .slider-item .content::after {
    border-right: 50px solid transparent;
  }
  .pagination {
    margin-top: 20px;
  }
  .contact-area .contact-form {
    padding: 40px 15px;
  }
  .pricing-section .mt-30 {
    margin-top: 0 !important;
  }
  .pricing-section .m-0 {
    margin-bottom: 30px !important;
  }
  .cost-section .cost-form .form-group .slider-value {
    top: -15px;
    font-size: 12px;
  }
  .cost-section .cost-form .form-group .input-btn {
    margin-bottom: 8px;
  }
  .cost-section .cost-form .form-group .input-btn {
    font-size: 12px;
  }
  .service-details-area .service-details-desc .content h2 {
    font-size: 25px;
    margin-top: -5px;
    margin-bottom: 15px;
  }
  .service-details-area .content h2.title,
  .terms-area .content h2.title,
  .privacy-area .content h2.title {
    font-size: 25px;
    margin-top: -5px;
    margin-bottom: 15px;
  }
  .service-details-area .content {
    margin-bottom: 30px !important;
  }
  .service-details-area .projects-area .content h2 {
    margin-top: -5px;
    font-size: 25px;
    margin-bottom: 15px;
  }
  .finished-projects-section {
    background: unset;
  }
  .finished-projects-section::after {
    min-height: unset;
    height: 100%;
  }
  .footer-area {
    border-top: 1px solid #e4e4e4;
  }
}

@media only screen and (max-width: 575px) {
  /* footer section */
  .footer-area h5 {
    margin-top: 0;
  }
  .member-details-section .content .member-list .list-content .info {
    margin-left: 22px;
  }
}

@media only screen and (max-width: 375px) {
  .header-area .kpc-responsive-nav .logo {
    width: 40%;
  }
}

@media only screen and (max-width: 767px) and (min-width: 576px) {
  /* Blog CSS*/
  .blog-section .blog-item-single .blog-item-img img {
    width: 100%;
  }
  .blog-details-area .gallery-item .pt-3 {
    padding-top: 0 !important;
  }
  .blog-details-area .gallery-item .pr-0 {
    padding-right: 15px !important;
  }
  /* footer section */
  .footer-area .footer-news .content {
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
  .blog-details-area .widget-area .widget-article .article-item img {
    max-width: 100px;
  }
  .blog-details-area .gallery-item .pr-0 {
    padding-right: 0 !important;
  }
  .finished-projects-section::after {
    min-height: 546px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  body {
    font-size: 15px;
  }
  h2 {
    font-size: 22px;
  }
  .ptb-50 {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .ptb-100 {
    padding-top: 90px;
    padding-bottom: 90px;
  }
  .pt-100 {
    padding-top: 90px;
  }
  .pb-100 {
    padding-bottom: 90px;
  }
  .ptb-70 {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .pt-70 {
    padding-top: 60px;
  }
  .pb-70 {
    padding-bottom: 60px;
  }
  .no-wrap {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
  p {
    font-size: 15px;
  }
  .primary-btn {
    font-size: 16px;
  }
  .cta-btn {
    line-height: unset;
  }
  /*section-title*/
  .section-title {
    text-align: center;
    max-width: 610px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
  }
  .section-title::before {
    content: unset;
  }
  .section-title h2 {
    font-size: 24px;
    padding: unset;
    margin-top: -8px;
  }
  .section-title p {
    max-width: 545px;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
  }
  .section-title.style-two h2 {
    margin-top: -8px !important;
  }
  /* Banner CSS*/
  .banner-content {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding-top: 110px;
    padding-bottom: 50px;
  }
  .banner-content h1 {
    font-size: 45px;
    margin-top: -8px;
    margin-bottom: 15px;
  }
  .banner-content p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    margin-bottom: 20px;
  }
  .banner-content .cta-btn {
    margin-bottom: 20px;
  }
  .banner-img img {
    max-width: 80%;
    margin: auto;
    display: block;
  }
  .banner-two {
    padding: 0;
  }
  .banner-two .banner-content {
    padding-top: 100px;
    padding-bottom: 100px;
  }
  .banner-three .banner-content {
    padding-top: 90px;
    padding-bottom: 160px;
  }
  .banner-three .owl-carousel .owl-dots .owl-dot {
    height: 16px;
  }
  .banner-three .owl-carousel .owl-dots .owl-dot.active {
    height: 30px;
  }
  /* About CSS*/
  .about-section .about-content h2 {
    margin-bottom: 20px;
    margin-top: -8px;
  }
  .about-section.about-style-two .about-img-content .about-fact {
    max-width: calc(100% - 30px);
  }
  .about-section.about-style-three .about-img-content {
    margin-bottom: 15px;
  }
  .about-section.about-style-three .about-img-content .about-image {
    margin-bottom: 15px;
  }
  /* Service CSS */
  .strong-service-section .slider-item {
    max-width: 100%;
    margin-bottom: 30px;
  }
  .strong-service-section .pr-0 {
    padding-right: 15px !important;
  }
  .strong-service-section .service-content {
    max-width: 610px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    text-align: center;
    margin-bottom: 40px;
  }
  .strong-service-section .service-content::after {
    content: unset;
  }
  .strong-service-section .service-content h2 {
    margin-top: -8px;
  }
  .strong-service-section .service-content p {
    margin-left: auto;
    margin-right: auto;
    max-width: 545px;
  }
  .strong-service-section .service-content p, .strong-service-section .service-content .cta-btn {
    margin-bottom: 20px;
  }
  .strong-service-section .service-content .custom-owl-nav {
    position: unset;
  }
  .team-slider .slider-item .content::after {
    border-right: 60px solid transparent;
  }
  .team-slider .slider-item .content::before {
    border-left: 60px solid transparent;
  }
  .team-members-section .team-item .content::before {
    border-left: 55px solid transparent;
  }
  .team-members-section .team-item .content::after {
    border-right: 55px solid transparent;
  }
  .bio-area .section-title h2 {
    padding-left: 0;
    margin-bottom: 30px;
  }
  /* Works CSS*/
  .our-works-section::after {
    content: unset;
  }
  .our-works-section .works-content {
    margin-bottom: 30px;
    text-align: center;
  }
  .our-works-section .works-content h2 {
    max-width: 610px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
    margin-top: -8px;
  }
  .our-works-section .works-content p {
    max-width: 545px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
  }
  .our-works-section .works-content .works-item .works-item-single {
    max-width: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    text-align: center;
    padding: 25px 20px;
  }
  .our-works-section .works-content .works-item .works-item-single::before {
    bottom: -25px;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #bdbfc1;
  }
  .our-works-section .works-content .works-item .works-item-single i {
    margin-bottom: 20px;
  }
  .our-works-section .works-content .works-item .works-item-single .content {
    padding: 0;
  }
  .our-works-section .works-content .works-item .works-item-single .content h4 {
    margin-bottom: -2px;
  }
  .our-works-section .works-content .works-item .works-item-single .content h4 br {
    display: none;
  }
  .our-works-section .works-image {
    height: 100%;
    overflow: hidden;
  }
  .our-works-section .works-image::before {
    border-bottom: 140px solid rgba(189, 191, 193, 0.8);
    border-right: 140px solid transparent;
  }
  /* Finished Project CSS */
  .finished-projects-section .owl-carousel .owl-nav {
    margin-top: 40px;
    text-align: center;
    position: unset !important;
  }
  .amazing-projects-section.projects-two {
    background: #f1f5fa;
  }
  .amazing-projects-slider {
    margin-bottom: 0;
  }
  /* Team Section */
  .team-section .slider-item {
    max-width: 100%;
    margin-bottom: 30px;
  }
  .team-section .pr-0 {
    padding-right: 15px !important;
  }
  .team-section .team-content {
    max-width: 610px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    text-align: center;
    margin-bottom: 40px;
  }
  .team-section .team-content::after {
    content: unset;
  }
  .team-section .team-content h2 {
    margin-top: -8px;
  }
  .team-section .team-content p {
    max-width: 545px;
    margin-left: auto;
    margin-right: auto;
  }
  .team-section .team-content p, .team-section .team-content .cta-btn {
    margin-bottom: 30px;
  }
  .team-section .team-content .custom-owl-nav {
    position: unset;
  }
  /* Testimonial CSS*/
  .testimonial-section .testimonial-image {
    display: none;
  }
  .testimonial-section .team-content {
    max-width: 610px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 40px;
  }
  .testimonial-section .team-content h2 {
    margin-top: -8px;
  }
  .testimonial-section .testimonial-slider {
    background: unset;
    padding: 0;
  }
  .testimonial-section .testimonial-slider .slider-item {
    background: #e6edf5;
    padding: 25px 15px;
  }
  .testimonial-section .testimonial-slider .slider-item .client-img {
    margin-bottom: 15px;
  }
  .testimonial-section .testimonial-slider .slider-item p {
    font-size: 18px !important;
  }
  .testimonial-section .owl-carousel .owl-nav {
    margin-top: 30px;
  }
  /* Blog CSS*/
  .blog-section .owl-carousel .owl-nav {
    top: unset;
    margin-top: 0;
    margin-bottom: 30px;
  }
  /* Projects Section */
  .amazing-projects-section .slider-item {
    max-width: 100%;
    margin-bottom: 30px;
  }
  .amazing-projects-section .pr-0 {
    padding-right: 15px !important;
  }
  .amazing-projects-section .projects-content {
    max-width: 610px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    text-align: center;
    margin-bottom: 40px;
  }
  .amazing-projects-section .projects-content::after {
    content: unset;
  }
  .amazing-projects-section .projects-content h2 {
    margin-top: -8px;
  }
  .amazing-projects-section .projects-content p {
    max-width: 545px;
    margin-left: auto;
    margin-right: auto;
  }
  .amazing-projects-section .projects-content p, .amazing-projects-section .projects-content .cta-btn {
    margin-bottom: 20px;
  }
  .amazing-projects-section .projects-content .custom-owl-nav {
    position: unset;
  }
  .blog-details-area .gallery-item img {
    width: 100%;
  }
  /* Newsletter CSS*/
  .newsletter-section .newsletter-content, .newsletter-three .newsletter-content {
    max-width: 610px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding-left: 0;
  }
  .newsletter-section .newsletter-content h2, .newsletter-three .newsletter-content h2 {
    margin-top: -8px;
  }
  .newsletter-section .newsletter-content p, .newsletter-three .newsletter-content p {
    max-width: 545px;
    margin-left: auto;
    margin-right: auto;
  }
  .newsletter-section::before {
    width: 100%;
    background: rgba(26, 26, 26, 0.5);
  }
  .owl-carousel .owl-nav {
    text-align: center;
    position: unset !important;
  }
  .video-btn {
    width: 80px !important;
    height: 80px !important;
  }
  .finished-projects-section.style-two {
    padding-bottom: 0;
  }
  .instrument-section .container-fluid {
    max-width: 720px;
  }
  .instrument-section .video-content {
    min-height: unset;
  }
  .instrument-section .video-content .video-image {
    position: relative;
    width: 100%;
  }
  .instrument-section .video-content .video-image img {
    max-width: 100%;
  }
  .instrument-section .video-content .video-btn {
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    line-height: 70px;
  }
  .instrument-section .instrument-content {
    max-width: 100%;
    text-align: center;
    padding-right: 0;
  }
  .instrument-section .instrument-content h2 {
    margin-bottom: 15px;
    margin-top: -7px;
  }
  .map-section .map-content .map-pin {
    width: 40px;
  }
  .map-section .map-content .map-pin .pin-content {
    right: -100px;
    top: -100px;
  }
  .map-section .map-content .active .pin-content {
    opacity: 0;
    visibility: hidden;
  }
  .map-section .map-content .map-pin:hover {
    width: 45px;
  }
  .map-section .map-content .pin-6 .pin-content {
    left: -100px;
    right: unset;
  }
  .map-section .map-content .pin-2 .pin-content {
    top: unset;
    bottom: -50px;
    left: -100px;
    right: unset;
  }
  .map-section .map-content .pin-1 .pin-content {
    top: unset;
    bottom: -50px;
  }
  .renovate-section::after, .build-section::after {
    content: unset;
  }
  .build-section {
    background: #f1f5fa !important;
  }
  .quote-section .image img {
    margin: auto;
    display: block;
  }
  .testimonial-section.testimonial-three .owl-carousel .owl-nav button,
  .testimonial-section.testimonial-two .owl-carousel .owl-nav button {
    -webkit-transform: unset;
            transform: unset;
    position: unset;
  }
  .testimonial-section.testimonial-three .testimonial-slider::before,
  .testimonial-section.testimonial-two .testimonial-slider::before {
    bottom: 80px;
    border-bottom: 60px solid #bdbfc1;
    border-left: 60px solid transparent;
  }
  .testimonial-section.testimonial-three .testimonial-slider::after,
  .testimonial-section.testimonial-two .testimonial-slider::after {
    border-top: 60px solid #bdbfc1;
    border-right: 60px solid transparent;
  }
  .comingsoon-section .comingsoon-box {
    padding: 45px 10px 35px;
  }
  .renovate-section {
    padding-top: 0;
  }
  .comingsoon-section .comingsoon-box .cta-btn .primary-btn {
    padding: 15px 15px;
  }
  .blog-details-area .widget-area .widget-article .article-item img {
    max-width: 100px;
  }
  .member-details-section .content {
    margin-top: 30px;
  }
  .service-details-area .service-details-desc,
  .terms-area .service-details-desc,
  .privacy-area .service-details-desc {
    padding-left: 0;
  }
  .service-details-area .image img,
  .terms-area .image img,
  .privacy-area .image img {
    width: 100%;
    max-width: unset;
  }
  .service-details-area .content h2.title,
  .terms-area .content h2.title,
  .privacy-area .content h2.title {
    font-size: 35px;
  }
  .finished-projects-section::after {
    min-height: 427px;
  }
}

@media only screen and (max-width: 991px) {
  .header-area.header-two .top-header-area .social-link,
  .header-area.header-three .top-header-area .social-link {
    text-align: center;
    margin-bottom: 10px;
  }
  .page-title-area .page-title-content {
    text-align: center;
  }
  .page-title-area .shape span {
    display: none;
  }
  .terms-area .details-desc, .privacy-area .details-desc {
    padding-left: unset;
  }
  .terms-area .details-desc .service-details-slider .owl-nav,
  .service-details-area .service-details-desc .service-details-slider .owl-nav,
  .privacy-area .details-desc .service-details-slider .owl-nav {
    margin-top: 30px;
  }
  .projects-section .projects-item img {
    width: 100%;
  }
  .pagination .next {
    margin-top: 5px;
  }
  .team-two.team-section .overlay-content {
    top: 20px;
  }
  .service-details-area .pl-0 {
    padding-left: 15px !important;
  }
  .blog-details-area .blog-details-desc {
    padding-left: unset;
  }
  .blog-details-area .blog-details-desc .blog-details-slider .owl-nav {
    margin-top: 30px;
  }
  .contact-area .contact-form {
    margin-top: 25px;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  h2 {
    font-size: 22px !important;
  }
  .banner-content h1 {
    font-size: 50px;
  }
  .banner-two {
    padding: 0;
  }
  .banner-two .banner-content {
    padding-top: 120px;
    padding-bottom: 120px;
  }
  .header-area.header-two .contact-info .contact-info-content {
    text-align: center;
  }
  .header-area.header-two .contact-info p, .header-area.header-two .contact-info a {
    display: block;
  }
  .instrument-section .video-content {
    overflow: hidden;
  }
  .instrument-section .instrument-slider {
    margin-top: 30px;
  }
  .about-section .about-fact {
    padding: 35px 20px;
  }
  .about-section.about-style-two .about-img-content .about-fact::before {
    border-left: 40px solid transparent;
  }
  .about-section.about-style-two .about-img-content .about-fact::after {
    border-right: 40px solid transparent;
  }
  .strong-service-section .service-content {
    padding: 35px 0;
  }
  .team-section .team-content {
    padding: 90px 0;
  }
  .testimonial-section .testimonial-slider .owl-nav {
    right: -17%;
  }
  /* footer section */
  .footer-area .footer-news .content {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .best-service-section .service-item-single {
    padding: 50px 16px;
  }
  .team-members-section .team-item .content::before {
    border-bottom: 100px solid #bdbfc1;
    border-left: 55px solid transparent;
  }
  .team-members-section .team-item .content::after {
    border-top: 100px solid #bdbfc1;
    border-right: 55px solid transparent;
  }
  .renovate-section .image {
    overflow: hidden;
  }
  .renovate-section .image img {
    max-width: unset;
  }
  .build-section .image {
    overflow: hidden;
  }
  .build-section .image img {
    max-width: unset;
  }
  .blog-details-area .blog-details-desc {
    padding-left: 10px;
  }
  .blog-details-area .tags a {
    font-size: 12px;
  }
  .service-details-area .project-info, .terms-area .project-info, .privacy-area .project-info {
    padding: 30px 16px;
  }
  .finished-projects-section::after {
    min-height: 418px;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1366px) {
  .home-banner-area .align-self-end {
    -ms-flex-item-align: unset !important;
        -ms-grid-row-align: unset !important;
        align-self: unset !important;
  }
  .banner-img img {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 510px;
  }
  .projects .col-lg-8 img {
    height: 100%;
  }
  .terms-area .details-desc, .privacy-area .details-desc {
    padding-left: 20px;
  }
}

/* =========================================================
   KPC fixes – mobile menu
   ========================================================= */
@media only screen and (max-width: 1199px) {
  .kpc-responsive-nav {
    position: relative;
    z-index: 1000;
  }
  /* sticky header on mobile */
  .main-navbar-area.stickyadd .kpc-responsive-nav {
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.08);
  }
}

/* =========================================================
   KPC fixes – general responsive
   ========================================================= */
img,
video,
iframe {
  max-width: 100%;
}

/* Iran map (shortcode with a fixed 600px width) */
.map-section svg,
.map-section object,
.map-section img,
[id^="suncode_map"] svg {
  max-width: 100%;
  height: auto;
}

/* hero text on top of the desktop slider */
@media only screen and (max-width: 991px) {
  .fixed-text {
    white-space: normal;
    width: 90%;
  }
  .fixed-text .hero-title {
    font-size: 24px;
  }
  .fixed-text .hero-subtitle {
    font-size: 14px;
  }
}

/* single project gallery (moved here from single-projects.php) */
@media only screen and (max-width: 992px) {
  .project-gallery-item {
    width: 50%;
  }
}
@media only screen and (max-width: 576px) {
  .project-gallery-item {
    width: 100%;
  }
}

/* project details list: stack label/value on small phones */
@media only screen and (max-width: 375px) {
  .service-details-area .project-info .info-list li {
    flex-wrap: wrap;
  }
  .service-details-area .project-info .info-list li .info-label,
  .service-details-area .project-info .info-list li span {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* theme switch / back-to-top buttons on phones */
@media only screen and (max-width: 767px) {
  .switch-box {
    bottom: 12px;
  }
  .switch-box .switch {
    width: 44px;
    height: 26px;
  }
  .switch-box .slider::before {
    height: 22px;
    width: 22px;
  }
  .switch-box input:checked + .slider::before {
    transform: translateX(18px);
  }
  .go-top {
    padding: 8px 14px;
    font-size: 16px;
  }
}

/* ---------------------------------------------------------
   Mobile header: logo size, hamburger animation, scroll lock
   --------------------------------------------------------- */
@media only screen and (max-width: 1199px) {
  /* the logo must always fit inside the header bar, whatever the uploaded image size */
  .kpc-responsive-nav .logo,
  .header-area .kpc-responsive-nav .logo {
    width: auto;
    max-width: 60%;
    line-height: 0;
  }
  .kpc-responsive-nav .logo a {
    display: inline-block;
  }
  .kpc-responsive-nav .logo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    vertical-align: middle;
  }
}
@media only screen and (max-width: 767px) {
  .kpc-responsive-nav .logo img {
    max-height: 50px;
  }
}
/* desktop logo also limited to the navbar height */
.kpc-nav .navbar-brand img {
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

/* file upload field on small phones */
@media only screen and (max-width: 375px) {
  html body .kpc-file .kpc-file__btn {
    padding: 9px 12px;
    font-size: 13px;
  }
  html body .kpc-file .kpc-file__name {
    font-size: 13px;
  }
}

/* ---------------------------------------------------------
   Mobile menu (drawer): only below the desktop breakpoint
   --------------------------------------------------------- */
@media only screen and (min-width: 1200px) {
  .kpc-drawer,
  .kpc-mobile-actions {
    display: none !important;
  }
}
@media only screen and (max-width: 1199px) {
  .kpc-responsive-nav .logo,
  .header-area .kpc-responsive-nav .logo {
    max-width: calc(100% - 110px);
  }
}

/* =========================================================
   Home page – consistent spacing on phones & tablets
   One spacing scale for every section:
     section padding  48px (phone) / 64px (tablet)
     title → content  24px
     card gap         16px
     content → button 24px
   ========================================================= */

/* uniform image ratio in every card carousel / grid (no jumping heights or empty gaps) */
.instrument-slider .slider-item .image img,
.finished-projects-slider .slider-item .image img,
.blog-section .blog-item-single .blog-item-img img,
.blog-grid .blog-item-single .blog-item-img img,
.blog-area .blog-item-single .blog-item-img img,
.projects-section .projects-item .image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media only screen and (max-width: 991px) {
  /* ---- section rhythm ---- */
  .about-section.about-style-two,
  .best-service-section,
  .instrument-section,
  .finished-projects-section.style-two,
  .map-section,
  .blog-section {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }
  .section-title,
  .section-title.style-two {
    margin-bottom: 24px;
  }
  .section-title h2,
  .instrument-section .instrument-content h2,
  .about-section .about-content h2 {
    line-height: 1.6;
  }
  .cta-btn.text-center,
  .instrument-section .cta-btn,
  .finished-projects-section .cta-btn,
  .blog-section .cta-btn {
    margin-top: 24px;
  }
  .container.pt-40 {
    padding-top: 0 !important;
  }

  /* ---- about ---- */
  .about-section.about-style-two .about-img-content {
    margin-bottom: 24px;
  }
  .about-section.about-style-two .about-img-content > .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
  }
  .about-section.about-style-two .about-img-content .about-image {
    margin-bottom: 16px;
  }
  .about-section.about-style-two .about-img-content .about-image img {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
  }
  .about-section.about-style-two .about-img-content .about-fact,
  .about-section.about-style-two .about-img-content .about-fact.ml-auto {
    max-width: 100%;
    width: 100%;
    margin: 0 0 16px !important;
    padding: 22px 16px;
  }
  /* the decorative second image only makes sense next to the desktop layout */
  .about-section.about-style-two .about-img-content .overlay-img {
    display: none;
  }
  .about-section .about-content .about-item-list ul li {
    margin-bottom: 10px;
  }

  /* ---- subsidiary companies cards ---- */
  .best-service-section .row > [class*="col-"] {
    margin-bottom: 16px;
  }
  .best-service-section .service-item-single {
    height: 100%;
    margin-bottom: 0;
    padding: 20px;
  }
  .best-service-section .service-item-single p,
  .best-service-section .service-item-single p.text-justify {
    margin-bottom: 0;
    text-align: right !important; /* justify leaves big gaps on narrow screens */
    line-height: 1.9;
  }

  /* ---- machinery ---- */
  .instrument-section .container-fluid {
    max-width: 720px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .instrument-section .instrument-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: right;
  }
  .instrument-section .instrument-content h2 {
    margin: 0 0 12px;
  }
  .instrument-section .video-content {
    display: none; /* decorative picture behind the cards on desktop only */
  }
  .instrument-section .video-content > a {
    display: none; /* empty play button (no video link) */
  }
  .instrument-section .video-content .video-image {
    position: relative;
  }
  .instrument-section .video-content .video-image img {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
  }
  .instrument-section .instrument-slider {
    margin-top: 24px !important;
    margin-bottom: 0 !important;
  }

  /* ---- carousels: arrows close to the cards ---- */
  .instrument-slider .owl-nav,
  .blog-slider .owl-nav {
    position: static !important;
    margin-top: 16px !important;
    text-align: center;
  }

  /* ---- blog ---- */
  .blog-section .row > [class*="col-"] {
    margin-bottom: 16px;
  }
  .blog-section .blog-item-single {
    margin-bottom: 0;
  }

  /* ---- map ---- */
  .map-section .container .col-12 {
    display: flex;
    justify-content: center;
  }
}

@media only screen and (max-width: 767px) {
  .about-section.about-style-two,
  .best-service-section,
  .instrument-section,
  .finished-projects-section.style-two,
  .map-section,
  .blog-section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  .container,
  .instrument-section .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media only screen and (max-width: 991px) {
  /* about: picture on top, the two figures side by side underneath */
  .about-section.about-style-two .about-img-content > .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0;
  }
  .about-section.about-style-two .about-img-content > .row > [class*="col-"] {
    display: contents;
  }
  .about-section.about-style-two .about-img-content .about-image {
    grid-column: 1 / -1;
    margin: 0;
  }
  .about-section.about-style-two .about-img-content .about-fact,
  .about-section.about-style-two .about-img-content .about-fact.ml-auto {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    margin: 0 !important;
  }
  .about-section.about-style-two .about-img-content .about-fact .content {
    padding: 0;
  }

  /* projects: dark background behind the whole section, readable title */
  .finished-projects-section .finished-projects-slider {
    margin-bottom: 0;
  }
}

@media only screen and (max-width: 420px) {
  .about-section.about-style-two .about-img-content > .row {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   Typography rhythm – phones & tablets
   --------------------------------------------------------- */
@media only screen and (max-width: 991px) {
  html body .section-title {
    margin-bottom: 24px;
  }
  html body .content > * + h2,
  html body .about-content > * + h2,
  html body .blog-details-desc * + h2,
  html body .entry-content > * + h2,
  html body .col-12 > p + h2 {
    margin-top: 24px;
  }
  html body .content > * + h3,
  html body .content > * + h4,
  html body .about-content > * + h3,
  html body .entry-content > * + h3,
  html body .entry-content > * + h4,
  html body .col-12 > p + h3,
  html body .col-12 > p + h4 {
    margin-top: 20px;
  }
}
@media only screen and (max-width: 767px) {
  html body .page-title-area .page-title-content h1 {
    font-size: 26px;
  }
  html body .section-title h2,
  html body .about-section .about-content h2,
  html body .instrument-section .instrument-content h2,
  html body .amazing-projects-section .projects-content h2,
  html body .content h2,
  html body .content h2.title,
  html body .service-details-area .content h2.title,
  html body .blog-details-area .blog-details-desc .content h2,
  html body .service-details-area .service-details-desc .content h2 {
    font-size: 21px;
  }
  html body .content h3,
  html body .contact-area .contact-form .content h3 {
    font-size: 19px;
  }
  html body .content h4 {
    font-size: 16px;
  }
  html body h1 { margin-bottom: 12px; }
  html body h2 { margin-bottom: 12px; }
  html body .section-title h2 { margin-bottom: 0; }
}

/* ---------------------------------------------------------
   Single project – tablets & phones
   --------------------------------------------------------- */
@media only screen and (max-width: 991px) {
  .kpc-project-hero {
    min-height: 200px;
  }
  .kpc-project-hero__image {
    width: 100%;
  }
  .kpc-project-hero::after {
    background: linear-gradient(90deg, rgba(3, 29, 65, 0.55) 0%, rgba(3, 29, 65, 0.92) 70%);
  }
  .kpc-project {
    padding: 40px 0 56px;
  }
  .kpc-project__grid,
  .kpc-project__grid--single {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* small screens: درباره پروژه → اطلاعات پروژه → گالری */
  .kpc-project__col--info {
    order: -1;
  }
  .kpc-project__box {
    height: auto;
  }
  .kpc-project__gallery {
    max-height: 420px;
    padding: 16px;
  }
  .kpc-project__row {
    min-height: 56px;
  }
}
@media only screen and (max-width: 575px) {
  .kpc-project-hero {
    min-height: 160px;
  }
  html body .kpc-project-hero__title {
    font-size: 24px;
  }
  html body .kpc-project__heading {
    font-size: 20px;
  }
  .kpc-project__text,
  .kpc-project__text p {
    font-size: 15px;
    text-align: right;
  }
  .kpc-project__info {
    background: linear-gradient(90deg, #ffffff 0, #ffffff 60%, #042654 60%);
  }
  .kpc-project__row {
    grid-template-columns: 40% 1fr;
  }
  .kpc-project__row dt {
    padding: 0 14px;
    font-size: 15px;
  }
  .kpc-project__row dd {
    padding: 8px 14px;
    font-size: 14px;
  }
  .kpc-project__gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 80px;
  }
}

/* ---------------------------------------------------------
   Employers table – tablets & phones
   --------------------------------------------------------- */
@media only screen and (max-width: 991px) {
  .kpc-employers {
    --kpc-emp-cols: 34px 200px minmax(0, 1fr) minmax(0, 1fr);
  }
  .kpc-employers__cell {
    padding: 6px 14px;
  }
  .kpc-employers__cell--logo img {
    width: 170px;
    height: 85px;
  }
  .kpc-employers__head {
    font-size: 16px;
  }
}
@media only screen and (max-width: 767px) {
  .kpc-employers-section {
    padding: 48px 0 56px;
  }
  html body .kpc-employers-section__title {
    margin-bottom: 24px;
    font-size: 21px;
  }
  .kpc-employers__head {
    display: none;
  }
  .kpc-employers__body {
    padding: 0;
  }
  .kpc-employers__row {
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-areas:
      "num logo"
      "num name"
      "num regions";
    align-items: start;
    min-height: 0;
    padding-bottom: 6px;
  }
  .kpc-employers__num {
    grid-area: num;
  }
  .kpc-employers__row .kpc-employers__cell--logo {
    grid-area: logo;
    justify-content: flex-start;
    padding-top: 14px;
  }
  .kpc-employers__row .kpc-employers__cell--name {
    grid-area: name;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .kpc-employers__row .kpc-employers__cell--regions {
    grid-area: regions;
    padding-top: 0;
  }
  .kpc-employers__row .kpc-employers__cell--regions:empty {
    display: none;
  }
  .kpc-employers__cell--logo img {
    width: 150px;
    height: 75px;
  }
  .kpc-employers__label {
    display: inline;
  }
}
@media only screen and (max-width: 767px) {
  .kpc-employers__label {
    margin-inline-end: 4px;
    color: #031d41;
  }
}

/* ---------- Awards grid & factories tree ---------- */
@media only screen and (max-width: 1199px) {
  .kpc-awards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media only screen and (max-width: 767px) {
  .kpc-list-section {
    padding: 48px 0 56px;
  }
  html body .kpc-list-section__title {
    margin-bottom: 28px;
    font-size: 20px;
  }
  .kpc-awards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .kpc-award__media {
    --kpc-award-pad: 10px;
  }
  .kpc-award__title {
    min-height: 60px;
    padding: 10px;
    font-size: 13px;
    line-height: 1.7;
  }
  .kpc-sites {
    --kpc-trunk: 18px;
    --kpc-branch: 16px;
    --kpc-stem: 22px;
    --kpc-bar: 8px;
    --kpc-box-mid: 41px;
    gap: 36px;
  }
  html body .kpc-site__title {
    font-size: 17px;
  }
  .kpc-region {
    padding-top: 20px;
  }
  html body .kpc-region__name {
    padding: 6px 12px;
    font-size: 14px;
    line-height: 24px;
  }
  .kpc-region__body::before {
    height: 28px;
  }
  .kpc-region__items {
    padding-right: 10px;
    border-right-width: 4px;
  }
  .kpc-region__items li {
    padding-right: 12px;
    font-size: 13.5px;
    line-height: 1.85;
  }
}
@media only screen and (max-width: 359px) {
  .kpc-awards {
    gap: 12px;
  }
  .kpc-award__title {
    font-size: 12px;
  }
}

/* ---------- Contact info cards ---------- */
@media only screen and (max-width: 991px) {
  .contact-area .contact-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-area .contact-info .info-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
@media only screen and (max-width: 575px) {
  .contact-area .contact-info {
    display: flex;
    gap: 12px;
  }
  .contact-area .contact-info .info-item {
    padding: 16px;
  }
  .contact-area .contact-info .info-icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    font-size: 19px;
  }
  .contact-area .contact-info .info-content a {
    font-size: 16px;
  }
}

/* ---------- Subsidiary companies: card header (logo + title) ----------
   The header is a Bootstrap .row; below desktop its gutters and the 9/3
   column split pushed the title around, so it becomes a plain flex bar. */
@media only screen and (max-width: 1199px) {
  .best-service-section .service-item-single {
    padding: 20px;
    text-align: right;
  }
  .best-service-section .service-item-single .bg-head-service {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    margin: 0 0 16px;
    padding: 8px 12px;
  }
  .best-service-section .service-item-single .bg-head-service > [class*="col-"] {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: right !important;
  }
  .best-service-section .service-item-single .bg-head-service > [class*="col-"]:last-child {
    flex: 0 0 auto;
  }
  .best-service-section .service-item-single .bg-head-service h3 {
    font-size: 17px;
    line-height: 1.6;
  }
  .best-service-section .service-item-single .bg-head-service i {
    display: block;
    line-height: 0;
  }
  .best-service-section .service-item-single .bg-head-service i img {
    width: 52px;
    height: auto;
  }
  .best-service-section .service-item-single p,
  .best-service-section .service-item-single p.text-justify {
    margin-top: 0;
    padding: 0 12px;
  }
}
@media only screen and (max-width: 575px) {
  .best-service-section .service-item-single {
    padding: 16px;
  }
  .best-service-section .service-item-single .bg-head-service {
    min-height: 56px;
  }
  .best-service-section .service-item-single .bg-head-service i img {
    width: 44px;
  }
}


/* =========================================================
   Home carousels on phones & tablets – same look as desktop
   ========================================================= */
@media only screen and (max-width: 991px) {
  /* projects: white title box (right) + arrows (left) on one row,
     navy band behind the title and the top half of the cards */
  .finished-projects-section .section-title.bg-section-white {
    max-width: none;
    margin: 0 0 24px;
    text-align: right;
  }
  .finished-projects-section .section-title.bg-section-white::before {
    display: none;
  }
  html body .finished-projects-section .section-title.bg-section-white h2 {
    display: inline-block;
    padding: 8px 16px;
    background: #ffffff;
    color: #001e4c;
    font-size: 22px;
    line-height: 38px;
  }
  .finished-projects-section .finished-projects-slider .owl-nav {
    position: absolute !important;
    top: -71px;
    right: auto;
    left: 0;
    margin: 0 !important;
  }
  .finished-projects-section .bg-image img,
  .finished-projects-section .bg-image::after {
    height: 270px; /* 64 padding + 78 title + half a card (720px container, 2 cards) */
  }
}
@media only screen and (max-width: 767px) {
  .finished-projects-section .bg-image img,
  .finished-projects-section .bg-image::after {
    height: 218px; /* 48 + 78 + half a card (540px container, 2 cards) */
  }
}
@media only screen and (max-width: 575px) {
  .finished-projects-section .bg-image img,
  .finished-projects-section .bg-image::after {
    height: calc(114px + 37.5vw); /* 48 + 78 + half of one full-width card */
  }
}

/* Home hero text on phones (mobile slider) */
@media only screen and (max-width: 767px) {
  .kpc-hero .fixed-text {
    width: calc(100% - 32px);
  }
  html body .kpc-hero .fixed-text .hero-title {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.6;
  }
  html body .kpc-hero .fixed-text .hero-subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
  }
}
@media only screen and (max-width: 991px) {
  html body .kpc-news-card__title {
    font-size: 15px;
  }
  .kpc-news-card__body {
    padding: 14px 16px 16px;
  }
  .blog-section.kpc-news .section-title {
    margin-bottom: 24px;
  }
  .blog-section.kpc-news .cta-btn {
    margin-top: 24px;
  }
}

/* Single post / news / machinery pages: article first, sidebar after it */
@media only screen and (max-width: 991px) {
  .blog-details-area .row > .col-lg-8 {
    order: -1;
  }
  .blog-details-area .widget-area {
    margin-top: 32px;
  }
}

/* ---------- Ongoing projects / knowledge-based / single entry ---------- */
@media only screen and (max-width: 1199px) {
  .kpc-ongoing {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kpc-entry__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
  }
}
@media only screen and (max-width: 991px) {
  .kpc-ongoing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .kpc-kb {
    padding: 48px 0 56px;
  }
  .kpc-kb__feature {
    padding: 40px 0;
  }
  .kpc-kb__row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .kpc-kb__row--reverse .kpc-kb__body {
    order: 0;
  }
  .kpc-kb__media {
    order: -1; /* picture first on small screens */
  }
  html body .kpc-kb__box {
    min-height: 0;
    padding: 18px 20px;
    font-size: 20px;
  }
  html body .kpc-kb__box--quote {
    font-size: 18px;
  }
  .kpc-entry {
    padding: 40px 0 56px;
  }
  .kpc-entry__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .kpc-entry__side {
    padding-top: 0;
  }
  html body .kpc-entry__title {
    font-size: 26px;
  }
}
@media only screen and (max-width: 575px) {
  .kpc-ongoing {
    grid-template-columns: minmax(0, 1fr);
  }
  html body .kpc-kb__box {
    font-size: 18px;
    padding: 16px;
  }
  html body .kpc-kb__box--quote {
    font-size: 16px;
  }
  .kpc-kb__intro .kpc-kb__text p,
  .kpc-kb__feature .kpc-kb__text p {
    text-align: right;
  }
  html body .kpc-entry__title {
    font-size: 22px;
  }
  .kpc-entry__content {
    font-size: 16px;
    text-align: right;
  }
  .kpc-entry__download-btn {
    min-width: 0;
    width: calc(100% - 20px);
    font-size: 18px;
  }
  .kpc-latest {
    padding: 4px 18px;
  }
  html body .kpc-award-group__title {
    font-size: 18px;
  }
}

/* ---------- Home: logo bands & fields of activity ---------- */
@media only screen and (min-width: 768px) {
  .kpc-logo-band__list {
    --kpc-logos: var(--kpc-logos-t, 3);
  }
}
@media only screen and (min-width: 992px) {
  .kpc-logo-band__list {
    --kpc-logos: var(--kpc-logos-d, 5);
  }
}
@media only screen and (max-width: 991px) {
  .kpc-logo-band {
    padding: 48px 0;
  }
  html body .kpc-logo-band__title {
    margin-bottom: 24px;
    font-size: 20px;
  }
  .kpc-activities {
    padding: 56px 0;
  }
  .kpc-activities__intro {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }
  html body .kpc-activities__title {
    font-size: 20px;
  }
  .kpc-activities__grid {
    gap: 16px;
  }
  .kpc-activity__title {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 14px;
  }
}
/* phones: two equal columns, an odd last card spans the full width */
@media only screen and (max-width: 575px) {
  .kpc-activities__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .kpc-activity--span-2,
  .kpc-activity--span-3,
  .kpc-activity--span-6 {
    grid-column: auto;
    aspect-ratio: 4 / 5;
  }
  .kpc-activity:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
  }
  .kpc-activity__title {
    bottom: 0;
    min-height: 0;
    padding: 10px 8px;
    font-size: 13px;
    line-height: 1.6;
  }
  .kpc-activities__text p {
    text-align: right;
  }
}
@media only screen and (max-width: 575px) {
  .kpc-logo-band__item {
    padding: 4px;
  }
  .kpc-logo-band__item img {
    width: 88% !important;
  }
}
@media only screen and (max-width: 991px) {
  .kpc-media {
    padding: 48px 0 56px;
  }
  .kpc-media__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
@media only screen and (max-width: 575px) {
  .kpc-media__grid {
    grid-template-columns: 1fr;
  }
  .kpc-media-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .kpc-media-tabs .kpc-project-tabs__tab {
    flex: 0 0 auto;
  }
}
@media only screen and (max-width: 991px) {
  .kpc-branches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
@media only screen and (max-width: 767px) {
  .kpc-branches {
    grid-template-columns: 1fr;
  }
  .kpc-branch--head .kpc-branch__list {
    grid-template-columns: 1fr;
  }
  .kpc-branch {
    padding: 18px;
  }
}
@media only screen and (max-width: 991px) {
  .kpc-awards--intl_partners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media only screen and (max-width: 575px) {
  .kpc-awards--intl_partners {
    grid-template-columns: 1fr;
  }
}
