/* Shared sticky nav + flush page hero (same pattern as FAQ) */

.header.site-fixed-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100%;
  max-height: none !important;
  height: auto !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  z-index: 100;
}

.header.site-fixed-nav .primary-header,
.header.site-fixed-nav .primary-header.fixed {
  position: relative !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  animation: none !important;
}

.site-nav-spacer {
  height: 80px;
}

/* Mobile / sidebar menu logos match navbar Aussiefixtech mark */
.mobile-side-menu .side-menu-head a img,
.side-menu-logo img {
  max-height: 64px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain !important;
}

/* Footer address flags — keep natural flag size on all screens */
.footer-widget .address-list li {
  align-items: flex-start !important;
}

.footer-widget .address-list li img {
  flex-shrink: 0 !important;
  width: 24px !important;
  height: 16px !important;
  max-width: 24px !important;
  max-height: 16px !important;
  object-fit: cover !important;
  display: block !important;
  margin-top: 5px !important;
  align-self: flex-start !important;
}

.footer-widget .address-list li > span {
  flex: 1 1 auto;
  min-width: 0;
}

/* Tighter gap between UAE and Australia addresses */
.footer-widget .address-list li:nth-child(1) {
  margin-bottom: 12px !important;
}

/* Space after addresses before emails/phone (all screen sizes) */
.footer-widget .address-list li:nth-child(3) {
  margin-top: 18px !important;
}

.footer-widget .address-list li:nth-child(4) {
  margin-top: 12px !important;
}

.footer-widget .address-list li:nth-child(5) {
  margin-top: 14px !important;
}

.footer-widget .address-list li:nth-child(6) {
  margin-top: 12px !important;
}


/* Hero: image as cover, text stacks like mobile on all screens */
.page-header.site-page-header {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

.page-header.site-page-header .site-hero-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-header.site-page-header .overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.78;
  z-index: 1;
  pointer-events: none;
}

.page-header.site-page-header > .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  width: 100%;
}

.page-header.site-page-header .page-header-content {
  padding: 100px 20px 70px !important;
  width: 100%;
}

.page-header.site-page-header .page-header-content .hero-tagline {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.4;
  text-align: center;
  margin: 0 auto 20px;
  max-width: 900px;
}

@media (max-width: 991px) {
  .page-header.site-page-header,
  .page-header.site-page-header > .container {
    min-height: 0;
  }

  .page-header.site-page-header > .container {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .page-header.site-page-header .page-header-content {
    padding: 88px 16px 48px !important;
  }

  .page-header.site-page-header .page-header-content .hero-tagline {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .page-header.site-page-header .page-header-content .desc {
    max-width: 100%;
  }
}

/* =========================================================
   Site-wide tablet + mobile compatibility
   Loaded after main.css on all pages with site-header.css
   ========================================================= */

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
}

/* Office maps need a real height — the rule above collapses iframes to 150px */
.map-wrapper iframe {
  width: 100%;
  height: 350px;
  display: block;
}

@media (max-width: 767px) {
  .map-wrapper iframe {
    height: 260px;
  }
}

/* White fixed header: dark hamburger (template default is white-on-white) */
.header.site-fixed-nav .mobile-side-menu-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 4px;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
  align-self: center;
}

.header.site-fixed-nav .mobile-side-menu-toggle span {
  background-color: #000000 !important;
}

/* Larger touch target for mobile submenu expand (+) */
.mean-bar .mean-nav > ul li a.mean-expand {
  width: 44px !important;
  height: 44px !important;
  top: 0 !important;
  right: 0 !important;
}

/* ---------- Tablet (≤992px) ---------- */
@media (max-width: 992px) {
  /* Compact, aligned header — logo must stay fully visible and prominent */
  .header.site-fixed-nav {
    overflow: visible !important;
  }

  .header.site-fixed-nav .primary-header,
  .header.site-fixed-nav .header-container {
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .header.site-fixed-nav .primary-header-inner {
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 16px !important;
    min-height: 0 !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .header.site-fixed-nav .header-logo {
    padding: 0 !important;
    overflow: visible !important;
    flex: 0 0 auto;
  }

  /* Full circular ATS logo — large enough to read every line of the mark */
  .header.site-fixed-nav .header-logo a {
    display: block;
    line-height: 0;
  }

  .header.site-fixed-nav .header-logo img {
    width: auto !important;
    max-width: 96px !important;
    max-height: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
    object-position: left center !important;
    display: block !important;
  }

  .header.site-fixed-nav .header-menu-wrap,
  .header.site-fixed-nav .header-right-wrap,
  .header.site-fixed-nav .header-right {
    align-items: center !important;
    display: flex !important;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .header.site-fixed-nav .header-right-item {
    display: flex !important;
    align-items: center !important;
  }

  .header.site-fixed-nav .mobile-side-menu-toggle {
    margin: 0 !important;
  }

  .site-nav-spacer {
    height: 92px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Home hero */
  .slider-section {
    max-height: none !important;
    overflow: visible !important;
  }

  .buildfix-slider .slider-item {
    min-height: 70vh;
    position: relative;
    isolation: isolate;
  }

  /* Keep photo behind copy — never raise above text */
  .buildfix-slider .slider-item .bg-img {
    z-index: -1 !important;
  }

  .slider-content-wrap {
    position: relative;
    z-index: 2;
    padding: 120px 0 40px 0 !important;
  }

  .slider-content-wrap .buildfix-caption .slider-title {
    font-size: 42px !important;
    line-height: 1.12 !important;
    min-height: 0 !important;
    margin-bottom: 20px !important;
  }

  /* Show hero side portraits on mobile (template hides them by default) */
  .slider-content-wrap .slider-image {
    display: block !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: -40px !important;
    position: relative;
    z-index: 1;
    /* Kill slide fade transform so we can position portraits */
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .slider-content-wrap .slider-image .image {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 300px !important;
    height: 360px !important;
    margin: 0 auto !important;
    /* Push portrait down so flat crop sits under beige bar */
    margin-top: 8px !important;
    position: relative;
    top: 48px;
    overflow: visible;
  }

  .slider-content-wrap .slider-image .image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center bottom !important;
  }

  .buildfix-slider {
    overflow: hidden !important;
  }

  .slider-content-wrap .row {
    flex-direction: column !important;
    align-items: center !important;
  }

  .slider-content-wrap .col-xl-7,
  .slider-content-wrap .col-xl-5,
  .slider-content-wrap .col-lg-7,
  .slider-content-wrap .col-lg-5 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .buildfix-pagination-count {
    left: 16px !important;
    right: auto !important;
    bottom: 100px !important;
    width: 56px !important;
    height: 56px !important;
    transform: none !important;
  }

  /* Mobile/tablet: compact 01/02/03 text bar - desktop (>992) untouched */
  .buildfix-swiper-pagination {
    display: flex !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px 8px !important;
    gap: 0 !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box;
    background-color: #F1EEE9 !important;
    z-index: 3;
  }

  .buildfix-text-bullet {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 6px !important;
    padding-right: 6px !important;
    border-right: 1px solid rgba(0, 0, 0, 0.15) !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    text-align: center !important;
    opacity: 0.45 !important;
  }

  .buildfix-text-bullet:last-child {
    border-right: none !important;
    padding-right: 6px !important;
  }

  .buildfix-text-bullet.swiper-pagination-bullet-active {
    opacity: 1 !important;
  }

  .buildfix-text-bullet span {
    display: block !important;
    margin-top: 4px !important;
    line-height: 1.3 !important;
    font-size: 10px !important;
  }


  /* Inner page heroes */
  .page-header .page-header-content {
    padding: 100px 16px 60px !important;
  }

  .page-header .page-header-content .section-title,
  .page-header.site-page-header .page-header-content .section-title {
    font-size: 40px !important;
    line-height: 1.15 !important;
  }

  .page-header .page-header-content .desc {
    font-size: 16px !important;
    line-height: 1.5 !important;
    padding: 0 4px;
  }

  .section-heading .section-title {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }

  .pt-140 {
    padding-top: 70px !important;
  }

  .pb-140 {
    padding-bottom: 70px !important;
  }

  .pt-120 {
    padding-top: 60px !important;
  }

  .pb-120 {
    padding-bottom: 60px !important;
  }

  /* About stacked images — kill absolute desktop collage on small screens */
  .about-img-wrap {
    position: relative !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 24px !important;
  }

  .about-img-wrap .about-img-1,
  .about-img-wrap .about-img-2 {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 0 16px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .about-img-wrap .about-img-1 img,
  .about-img-wrap .about-img-2 img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block;
  }

  .about-img-wrap .about-img-1,
  .about-img-wrap .about-img-2,
  .feature-img,
  .project-section-1,
  .team-carousel {
    overflow: hidden !important;
  }

  .feature-img,
  .feature-img img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Service cards */
  .service-item {
    padding: 24px 20px !important;
    overflow: visible !important;
  }

  .service-item .icon {
    margin-bottom: 24px !important;
    height: 48px !important;
    width: 48px !important;
  }

  .service-item .icon img {
    max-height: 48px;
    width: auto;
  }

  .service-item .service-content .title {
    font-size: 20px !important;
  }

  .service-item .service-content p {
    font-size: 15px !important;
    margin-bottom: 14px !important;
  }

  /* Team counter */
  .team-section .team-container {
    margin-right: auto !important;
    margin-left: auto !important;
    max-width: 100% !important;
    padding-left: 16px;
    padding-right: 16px;
  }

  .team-section .team-member {
    margin-top: 24px !important;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .team-section .team-member .num {
    font-size: 72px !important;
    line-height: 1 !important;
  }

  .team-section .team-member .num span {
    font-size: 28px !important;
    left: 100% !important;
  }

  .team-section .team-member p {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    font-size: 16px !important;
    margin: 0 !important;
  }

  /* Blog cards */
  .post-card {
    overflow: hidden;
    max-width: 100%;
  }

  .post-card .post-content {
    padding: 18px 16px 22px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .post-card .post-content .title {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin-bottom: 16px !important;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }

  .post-card .post-content .title a {
    display: inline;
    white-space: normal !important;
  }

  /* Achievements / counters */
  .service-section-4 .service-count-wrap {
    flex-wrap: wrap !important;
  }

  .service-section-4 .service-count-wrap .service-item-4 .title {
    font-size: 40px !important;
  }

  .service-section-4 .sevice-content .image,
  .service-section-4 .sevice-content .image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Project cards full bleed inside container */
  .project-section-1 .swiper-slide .project-card,
  .project-section-1 .swiper-slide .project-card img {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Feature items */
  .feature-right-content .feature-item-wrap .feature-item .content p,
  .feature-item-3 .content p {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  .about-content p,
  .about-section p {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  /* Footer CTA */
  .footer-cta .cta-content {
    padding: 48px 0 !important;
  }

  .footer-cta .cta-content .title {
    font-size: 28px !important;
    line-height: 1.25 !important;
    text-transform: none !important;
    word-wrap: break-word;
  }

  .footer-wrap {
    padding: 60px 0 80px !important;
  }

  .footer-widget .address-list li {
    display: flex !important;
    align-items: flex-start !important;
    column-gap: 8px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    margin-top: 0 !important;
  }

  .footer-widget .address-list li:nth-child(1) {
    margin-bottom: 16px !important;
  }

  .footer-widget .address-list li img {
    flex-shrink: 0;
    display: block;
    margin-top: 3px;
    margin-right: 0;
  }

  .footer-widget .address-list li > span {
    flex: 1 1 auto;
    min-width: 0;
  }

  .copyright-area {
    padding-bottom: 24px;
  }

  .copyright-content p,
  .copyright-content .copyright-list a {
    font-size: 13px !important;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }

  .copyright-content {
    padding-right: 72px; /* room for scroll % button */
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    row-gap: 10px !important;
  }

  .copyright-content > [class*='col-'] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .copyright-content p {
    text-align: center !important;
    width: 100%;
  }

  .copyright-content .copyright-list {
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Space: address -> emails -> phone */
  .footer-widget .address-list li:nth-child(3),
  .footer-widget .address-list li:nth-child(4) {
    margin-top: 12px !important;
  }

  .footer-widget .address-list li:nth-child(5) {
    margin-top: 14px !important;
    padding-top: 4px !important;
  }

  .footer-widget .address-list li:nth-child(6) {
    margin-top: 12px !important;
    padding-top: 0 !important;
  }

  #scroll-percentage {
    width: 48px !important;
    height: 48px !important;
    right: 12px !important;
    bottom: 16px !important;
  }

  #scroll-percentage.active {
    bottom: 16px !important;
  }

  .about-img-wrap,
  .about-img-1,
  .about-img-2,
  .project-card,
  .blog-item,
  .service-item,
  .team-item,
  .portfolio-item,
  .post-card {
    max-width: 100%;
  }

  .running-text,
  .carouselTicker,
  .carouselTicker__list {
    max-width: 100vw;
  }

  /* ------ GSAP animation overrides: force content visible on tablet ------
     GSAP sets inline opacity:0 / visibility:hidden before ScrollTrigger
     fires. CSS !important beats inline styles so content always shows.    */
  .fade-top {
    opacity: 1 !important;
    transform: translateY(0px) !important;
  }

  .img-reveal {
    visibility: visible !important;
  }

  .img-reveal .img-overlay {
    display: none !important;
    width: 0 !important;
  }

  [data-text-animation] .line,
  [data-text-animation] .word,
  [data-text-animation] .char {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}

/* ---------- Phone (≤767px) ---------- */
@media (max-width: 767px) {
  .site-nav-spacer {
    height: 84px;
  }

  .header.site-fixed-nav .primary-header-inner {
    min-height: 0 !important;
    padding: 4px 14px !important;
  }

  .header.site-fixed-nav .header-logo img {
    max-width: 90px !important;
    max-height: 74px !important;
    height: 74px !important;
  }

  .slider-content-wrap {
    padding: 110px 12px 40px !important;
  }

  .slider-content-wrap .buildfix-caption .slider-title {
    font-size: 30px !important;
    line-height: 1.15 !important;
  }

  .slider-content-wrap .slider-image .image {
    max-width: 260px !important;
    height: 320px !important;
    margin-top: 4px !important;
    top: 56px;
  }

  .slider-content-wrap .slider-image {
    margin-bottom: -30px !important;
  }

  .page-header .page-header-content {
    padding: 90px 12px 50px !important;
  }

  .page-header .page-header-content .section-title,
  .page-header.site-page-header .page-header-content .section-title {
    font-size: 32px !important;
  }

  .page-header .page-header-content .desc {
    font-size: 15px !important;
  }

  .section-heading .section-title {
    font-size: 26px !important;
  }

  .section-heading .sub-heading {
    font-size: 13px !important;
  }

  .cp-primary-btn {
    display: inline-flex;
    max-width: 100%;
  }

  .footer-widget,
  .contact-form,
  .form-item {
    max-width: 100%;
  }

  input,
  textarea,
  select,
  .form-control {
    max-width: 100%;
    font-size: 16px !important;
  }

  .testi-item .testi-content p {
    margin-bottom: 28px !important;
  }

  .faq-content .faq-accordion .accordion-item .accordion-button {
    font-size: 16px !important;
    padding-right: 40px;
  }

  .mobile-side-menu {
    max-width: 100%;
  }

  /* ------ GSAP animation overrides: force content visible on phone ------ */
  .fade-top {
    opacity: 1 !important;
    transform: translateY(0px) !important;
  }

  .img-reveal {
    visibility: visible !important;
  }

  .img-reveal .img-overlay {
    display: none !important;
    width: 0 !important;
  }

  [data-text-animation] .line,
  [data-text-animation] .word,
  [data-text-animation] .char {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .team-section .team-member .num {
    font-size: 56px !important;
  }

  .post-card .post-content .title {
    font-size: 18px !important;
    line-height: 1.35 !important;
  }

  .footer-cta .cta-content .title {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  .footer-cta .cta-btn {
    margin-top: 8px;
  }

  .footer-cta .cta-btn .cp-primary-btn {
    width: 100%;
    justify-content: center;
  }

  .copyright-content {
    padding-right: 64px;
    padding-left: 16px;
    row-gap: 12px !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .copyright-content > [class*='col-'] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .copyright-content p {
    text-align: center !important;
    width: 100%;
    margin-bottom: 0 !important;
  }

  .copyright-content .copyright-list {
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .service-section-4 .service-count-wrap .service-item-4 {
    width: 50% !important;
    padding: 16px 8px !important;
  }

  .service-section-4 .service-count-wrap .service-item-4 .title {
    font-size: 32px !important;
  }

  .about-experience .num,
  .about-experience .num .odometer {
    font-size: 48px !important;
  }

  .testi-right-content .testi-counter .title {
    font-size: 48px !important;
  }
}

/* ---------- Small phone (≤567px) ---------- */
@media (max-width: 567px) {
  .slider-content-wrap .buildfix-caption .slider-title {
    font-size: 28px !important;
  }

  .page-header .page-header-content .section-title,
  .page-header.site-page-header .page-header-content .section-title {
    font-size: 28px !important;
  }

  .section-heading .section-title {
    font-size: 24px !important;
  }

  .pt-140,
  .pt-120 {
    padding-top: 52px !important;
  }

  .pb-140,
  .pb-120 {
    padding-bottom: 52px !important;
  }

  .footer-cta .cta-content .title {
    font-size: 20px !important;
  }

  .team-section .team-member .num {
    font-size: 48px !important;
  }

  .service-item {
    padding: 20px 16px !important;
  }
}

/* =========================================================
   MOBILE & TABLET COMPREHENSIVE FIXES
   ========================================================= */

/* ---------- Tablet (≤992px) ---------- */
@media (max-width: 992px) {

  /* ------ About section 5 ("Who We Are" / homepage dark section) ------
     The flex row with fixed heights must stack vertically on tablet.       */
  .about-content-5 .about-img-wrap-5 {
    flex-direction: column !important;
    row-gap: 24px !important;
    column-gap: 0 !important;
    align-items: stretch !important;
  }

  .about-content-5 .about-img-wrap-5 .img-content {
    height: auto !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    gap: 16px !important;
  }

  .about-content-5 .about-img-wrap-5 .img-content p {
    max-width: 100% !important;
    font-size: 17px !important;
    margin-bottom: 20px !important;
  }

  .about-content-5 .about-img-wrap-5 .about-img-1 {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .about-content-5 .about-img-wrap-5 .about-img-1 img {
    height: auto !important;
    width: 100% !important;
    object-fit: contain !important;
    object-position: top !important;
  }

  /* ------ About image 6 (tall side image in homepage dark section) ------ */
  .about-img-6 {
    height: auto !important;
    margin-top: 24px !important;
  }

  .about-img-6 img {
    height: auto !important;
    width: 100% !important;
    object-fit: contain !important;
    object-position: top !important;
  }

  /* ------ Core item grid (service page): 2-column → 1-column at tablet ------ */
  .core-item-wrap,
  .core-item-wrap.inner-core-item-wrap {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* ------ Testimonials: show portrait under the quote on mobile/tablet ------ */
  .testi-item {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .testi-item .testi-img {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  .testi-item .testi-img img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: 8px;
    display: block;
  }

  /* ------ Feature image: no fixed height — show full image without side-cropping ------ */
  .feature-right-content .feature-img {
    height: auto !important;
    margin-bottom: 24px !important;
  }

  .feature-right-content .feature-img img {
    height: auto !important;
    width: 100% !important;
    object-fit: contain !important;
  }

  /* ------ About content max-width constraint removed on tablet ------ */
  .about-section .about-content {
    max-width: 100% !important;
  }

  /* ------ Fixed left/right padding utilities too large on tablet ------ */
  .pl-80 { padding-left: 24px !important; }
  .pl-60 { padding-left: 16px !important; }
  .pl-100 { padding-left: 32px !important; }
  .pl-120 { padding-left: 32px !important; }
  .pr-80 { padding-right: 24px !important; }
  .pr-60 { padding-right: 16px !important; }

  /* ------ Running text ticker: reduce font size at tablet ------ */
  .running-text ul li {
    font-size: 24px !important;
  }

  /* ------ Padding utilities not covered by existing rules ------ */
  .pt-100 { padding-top: 56px !important; }
  .pb-100 { padding-bottom: 56px !important; }
  .pt-80  { padding-top: 48px !important; }
  .pb-80  { padding-bottom: 48px !important; }
  .pt-60  { padding-top: 40px !important; }
  .pb-60  { padding-bottom: 40px !important; }

  /* ------ Brand / sponsor row stacking ------ */
  .brand-wrap {
    flex-direction: column !important;
    gap: 24px !important;
  }

  .brand-area .brand-text {
    text-align: center !important;
  }

  .brand-area .brand-text .brand-title {
    font-size: 18px !important;
  }

  /* ------ Core section inner page padding ------ */
  .core-section .core-content {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  /* ------ Service details / blog details sidebar stacks below content ------ */
  .sticky-widget {
    position: static !important;
    top: auto !important;
    margin-top: 48px !important;
  }

  /* ------ Pricing / FAQ accordion headings ------ */
  .pricing-item {
    padding: 28px 20px !important;
  }

  /* ------ Portfolio grid items ------ */
  .portfolio-item .portfolio-img {
    height: 260px !important;
  }

  /* ------ Team people photos: show full image (no height crop) ------ */
  .team-item .image {
    height: auto !important;
    overflow: hidden !important;
  }

  .team-item .image img,
  .team-item .image a img {
    max-height: none !important;
    height: auto !important;
    width: 100% !important;
    object-fit: contain !important;
    display: block;
  }

  /* ------ Blog standard / grid layout ------ */
  .blog-item .blog-img {
    height: 240px !important;
  }

  .blog-item .blog-img img {
    height: 240px !important;
    object-fit: cover !important;
  }

}

/* ---------- Phone (≤767px) ---------- */
@media (max-width: 767px) {

  /* ------ Running text: smaller on phone ------ */
  .running-text ul li {
    font-size: 20px !important;
  }

  /* ------ About section 5 image: show full on phone ------ */
  .about-content-5 .about-img-wrap-5 .about-img-1,
  .about-content-5 .about-img-wrap-5 .about-img-1 img {
    height: auto !important;
    object-fit: contain !important;
  }

  /* ------ About image 6: show full on phone ------ */
  .about-img-6 {
    height: auto !important;
    margin-top: 16px !important;
  }

  .about-img-6 img {
    height: auto !important;
    object-fit: contain !important;
  }

  /* ------ Fixed padding utilities: reset on phone ------ */
  .pl-80,
  .pl-60,
  .pl-100,
  .pl-120 {
    padding-left: 0 !important;
  }

  .pr-80,
  .pr-60 {
    padding-right: 0 !important;
  }

  /* ------ Padding utilities smaller on phone ------ */
  .pt-100,
  .pt-80  { padding-top: 44px !important; }
  .pb-100,
  .pb-80  { padding-bottom: 44px !important; }
  .pt-60  { padding-top: 36px !important; }
  .pb-60  { padding-bottom: 36px !important; }

  /* ------ Core item spacing ------ */
  .core-item-wrap,
  .core-item-wrap.inner-core-item-wrap {
    gap: 32px !important;
  }

  /* ------ Section heading margin bottom tighter on phone ------ */
  .section-heading {
    margin-bottom: 28px !important;
  }

  /* ------ Feature section: left content full padding ------ */
  .feature-content-left {
    margin-bottom: 32px !important;
  }

  .feature-right-content .feature-img {
    height: auto !important;
  }

  .feature-right-content .feature-img img {
    height: auto !important;
    width: 100% !important;
    object-fit: contain !important;
  }

  /* ------ Footer widget paragraph spacing ------ */
  .footer-widget p.mb-40 {
    margin-bottom: 20px !important;
  }

  /* ------ Project swiper pagination spacing ------ */
  .project-swiper-pagination {
    margin-top: 16px !important;
  }

  /* ------ Team nav wrap ------ */
  .team-nav-wrap {
    margin-top: 24px !important;
    padding-left: 16px !important;
  }

  /* ------ About experience: 18+ on one line, label under ------ */
  .about-content .about-experience,
  .about-experience {
    margin-top: 24px !important;
    display: grid !important;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    justify-content: center;
    align-items: center;
    column-gap: 2px;
    row-gap: 6px;
    width: 100% !important;
    padding: 20px 24px !important;
    box-sizing: border-box;
    flex-direction: unset !important;
  }

  .about-content .about-experience .num,
  .about-experience .num {
    grid-column: 1;
    grid-row: 1;
    margin: 0 !important;
    line-height: 1 !important;
    text-align: right !important;
  }

  .about-content .about-experience .txt-wrap,
  .about-experience .txt-wrap {
    display: contents !important;
  }

  .about-content .about-experience .txt-wrap i,
  .about-experience .txt-wrap i {
    grid-column: 2;
    grid-row: 1;
    font-size: 22px !important;
    line-height: 1 !important;
    align-self: center;
    margin-top: 0;
    margin-left: 0;
  }

  .about-content .about-experience .txt-wrap span,
  .about-experience .txt-wrap span {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: center !important;
  }

  .about-content .about-experience .txt-wrap span br,
  .about-experience .txt-wrap span br {
    display: none !important;
  }

  /* ------ Contact form: two col-md-6 inputs stack cleanly ------ */
  .request-form .form-group .col-md-6 + .col-md-6 {
    margin-top: 16px !important;
  }

  /* ------ Blog standard page: full-width cards ------ */
  .blog-item {
    max-width: 100% !important;
  }

  /* ------ Portfolio cards ------ */
  .portfolio-item .portfolio-img {
    height: 220px !important;
  }

  /* ------ Service details content ------ */
  .service-details-content {
    padding: 0 !important;
  }

  /* ------ Blog details ------ */
  .blog-details-img {
    height: 240px !important;
  }

  .blog-details-img img {
    height: 240px !important;
    object-fit: cover !important;
  }

  /* ------ Testimonial text content padding ------ */
  .testi-item .testi-content {
    padding: 28px 20px !important;
  }

  .testi-item .testi-content p {
    font-size: 18px !important;
    line-height: 1.55 !important;
  }

}

/* ---------- Small phone (≤567px) ---------- */
@media (max-width: 567px) {

  /* ------ Running text: smallest on very small phones ------ */
  .running-text ul li {
    font-size: 18px !important;
  }

  /* ------ About experience counter ------ */
  .about-experience .num,
  .about-experience .num .odometer {
    font-size: 40px !important;
  }

  /* ------ Core items minimal gap ------ */
  .core-item-wrap {
    gap: 28px !important;
  }

  /* ------ Footer logo size ------ */
  .footer-logo img {
    max-width: 100px !important;
  }

  /* ------ Footer CTA button: full width on tiny screens ------ */
  .footer-cta .cta-btn,
  .footer-cta .cta-btn .cp-primary-btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* ------ Contact form: reduce padding for very small phones ------ */
  .request-form .form-group {
    margin-bottom: 0 !important;
  }

  .request-form .form-item {
    margin-bottom: 16px !important;
  }

  /* ------ Slider title on very small phones ------ */
  .slider-content-wrap .buildfix-caption .slider-title {
    font-size: 26px !important;
    line-height: 1.2 !important;
  }

  /* ------ Page header title on very small phones ------ */
  .page-header .page-header-content .section-title,
  .page-header.site-page-header .page-header-content .section-title {
    font-size: 26px !important;
  }

}

/* Contact form — multi-service checkboxes */
.contact-form .service-check-hint {
  margin: -4px 0 12px;
  font-size: 14px;
  color: #6b6b6b;
}

.contact-form .service-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-form .service-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #2f2f2f;
  user-select: none;
}

.contact-form .service-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #D09018;
  flex-shrink: 0;
}

.contact-form .service-check:has(input:checked) {
  outline: 2px solid #D09018;
  outline-offset: -2px;
}

@media (min-width: 768px) {
  .contact-form .service-check-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

