/**
 * DreamGrow — permanent homepage hero + header stability
 * DG_STABLE_CSS: 2026-09-24-v41
 * Portfolio 4-card lock: slide widths forced in CSS so old/missing script.js cannot make skinny cards.
 * Loaded AFTER theme CSS. Do not reintroduce height:100vh + overflow:hidden on the hero.
 */
:root {
  --dg-cream: #f7f2e8;
  --dg-header-offset: 28px;
  --dg-hero-pad-top: 140px;
  --dg-hero-pad-bottom: 80px;
}

/* Prevent horizontal scroll WITHOUT creating a clip box that chops the absolute header */
html {
  overflow-x: clip;
}
body {
  overflow-x: clip;
}
.page-wrapper {
  overflow: visible !important;
  max-width: 100%;
}

/* ---------- Header: always fully visible ---------- */
.header-style-one {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: var(--dg-header-offset) !important;
  width: 100% !important;
  z-index: 9999 !important;
  overflow: visible !important;
  pointer-events: none; /* let clicks pass except on the pill */
}
.header-style-one .outer-container,
.header-style-one .main-box,
.header-style-one .nav-outer,
.header-style-one .main-menu,
.header-style-one .action-box,
.header-style-one .mobile-nav-toggler {
  pointer-events: auto;
}
.header-style-one .outer-container {
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid rgba(34, 36, 41, 0.08) !important;
  box-shadow: 0 10px 28px rgba(34, 36, 41, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
}

/* ---------- Hero: fill viewport but NEVER clip content ---------- */
.banner-section-h1 {
  position: relative !important;
  isolation: isolate;
  z-index: 0 !important;
  background: var(--dg-cream) !important;
  /* Critical: min-height only — no fixed height / max-height lock */
  height: auto !important;
  max-height: none !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Kill theme overlays / mirrored side image */
.banner-section-h1 .anim-icon,
.banner-section-h1 .hero-image,
.banner-section-h1 .inner-box .hero-image,
.banner-section-h1 .tm-text-editor,
.banner-section-h1 .outer-box:before,
.banner-section-h1 .bg-image:before,
.banner-section-h1 > .bg-image::after {
  display: none !important;
  content: none !important;
  visibility: hidden !important;
  background: none !important;
  transform: none !important;
}

.banner-section-h1 > .bg-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  transform: none !important;
}
.banner-section-h1 > .bg-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: left center !important;
  transform: none !important;
  -webkit-transform: none !important;
}

.banner-section-h1 > .outer-box {
  position: relative !important;
  z-index: 1 !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  /* Room for absolute header ABOVE + CTA BELOW — never clip */
  padding: var(--dg-hero-pad-top) 0 var(--dg-hero-pad-bottom) !important;
  margin: 0 !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
}

.banner-section-h1 .inner-box {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  gap: 0 !important;
  align-items: center !important;
  justify-content: flex-end !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.banner-section-h1 .inner-box .banner-content {
  flex: 0 1 44% !important;
  max-width: 540px !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  margin-left: auto !important;
  margin-right: clamp(32px, 5vw, 96px) !important;
  position: relative !important;
  z-index: 2 !important;
  padding-left: clamp(12px, 2vw, 28px) !important;
  overflow: visible !important;
}

.banner-section-h1 .inner-box .banner-content .inner-content {
  margin: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.banner-section-h1 .inner-box .banner-content .inner-content .banner-title,
.banner-section-h1 .inner-box .banner-content .inner-content .banner-title span {
  font-size: clamp(34px, 3.6vw, 58px) !important;
  line-height: 1.18 !important;
  margin-bottom: 14px !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.banner-section-h1 .inner-box .banner-content .inner-content .text {
  line-height: 1.55 !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  max-height: none !important;
}

.banner-section-h1 .inner-box .banner-content .inner-content .banner-info {
  margin-top: 22px !important;
  overflow: visible !important;
}

.banner-section-h1 .inner-box .banner-content .inner-content .banner-info .theme-btn {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  white-space: nowrap !important;
}

/* Tablet / mobile */
@media (max-width: 1199.98px) {
  :root {
    --dg-header-offset: 12px;
    --dg-hero-pad-top: 118px;
    --dg-hero-pad-bottom: 56px;
  }
  .banner-section-h1 > .outer-box {
    padding: var(--dg-hero-pad-top) 16px var(--dg-hero-pad-bottom) !important;
    align-items: flex-start !important;
    min-height: auto !important;
  }
  .banner-section-h1 {
    min-height: auto !important;
  }
  .banner-section-h1 .inner-box {
    flex-direction: column !important;
    justify-content: flex-start !important;
  }
  .banner-section-h1 .inner-box .banner-content {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  .banner-section-h1 .inner-box .banner-content .inner-content {
    margin: 0 auto !important;
    text-align: center;
    max-width: 100%;
    padding: 18px 16px !important;
    border-radius: 18px;
    background: rgba(255, 252, 245, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 12px 36px rgba(34, 36, 41, 0.08);
  }
  .banner-section-h1 .inner-box .banner-content .inner-content .banner-info {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  :root {
    --dg-hero-pad-top: 104px;
    --dg-hero-pad-bottom: 48px;
  }
  .banner-section-h1 .inner-box .banner-content .inner-content .banner-title,
  .banner-section-h1 .inner-box .banner-content .inner-content .banner-title span {
    font-size: clamp(26px, 7.2vw, 36px) !important;
  }
  .banner-section-h1 .inner-box .banner-content .inner-content .banner-info .theme-btn {
    width: 100%;
    justify-content: center;
    white-space: normal !important;
  }
}

/* Short laptop screens: keep CTA visible by shrinking type, still no clipping */
@media (min-width: 1200px) and (max-height: 820px) {
  :root {
    --dg-hero-pad-top: 118px;
    --dg-hero-pad-bottom: 48px;
  }
  .banner-section-h1 .inner-box .banner-content .inner-content .banner-title,
  .banner-section-h1 .inner-box .banner-content .inner-content .banner-title span {
    font-size: clamp(30px, 3.2vw, 46px) !important;
    margin-bottom: 10px !important;
  }
  .banner-section-h1 .inner-box .banner-content .inner-content .text {
    font-size: 15px !important;
  }
}

/* ---------- NEVER leave homepage sections blank ----------
   SplitText / AOS / WOW can leave opacity:0 if ScrollTrigger fails on live. */
.ks-service-area,
.ks-service-area .title,
.ks-service-area .sub-title,
.ks-service-area .home-services-slider,
.ks-service-area .swiper-wrapper,
.ks-service-area .swiper-slide,
.ks-service-area .ks-service-item,
.cta-section-h1 .title,
.about-section-h1 .title,
.portfolio-section,
.portfolio-section .title,
.portfolio-section .sub-title,
.portfolio-section .anim-text-flip-move,
.portfolio-section .anim-text-flip-move *,
.portfolio-section .ss-card,
.portfolio-section .ss-card *,
.portfolio-section .swiper-slide,
.portfolio-section .success-stories-slider,
.portfolio-section .success-stories-swiper,
.testimonial-section-h1,
.testimonial-section-h1 .title,
.testimonial-section-h1 .sub-title,
.testimonial-section-h1 .testi-reel-card,
.testimonial-section-h1 .testi-reel-card *,
.testimonial-section-h1 .swiper-slide,
.testimonial-section-h1 .testi-reels-slider,
.faq-section .title,
.contact-section-h1 .title,
.blog-section-h1 .title,
.dg-home-blog,
.dg-home-blog .dg-blog-card,
.split-text,
.split-text .split-line,
.split-text div,
[data-aos] {
  opacity: 1 !important;
  visibility: visible !important;
}
.split-text .split-line,
.split-text div,
.anim-text-flip-move div,
.anim-text-flip-move .split-line {
  transform: none !important;
}
[data-aos] {
  transform: none !important;
}

/* Portfolio: ALWAYS 4 equal cards on desktop (CSS beats Swiper inline width).
   Root cause of “narrow again”: live script.js/CSS out of sync after partial FTP.
   This lock keeps 4-up layout even if JS is old, missing, or slidesPerView is wrong. */
.portfolio-section .success-stories-slider,
.portfolio-section .success-stories-swiper {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}
.portfolio-section .auto-container {
  width: 100% !important;
  max-width: 1320px !important;
}
.portfolio-section .success-stories-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  transform: none !important;
  width: 100% !important;
}
.portfolio-section .success-stories-swiper:not(.swiper-initialized) .swiper-slide {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  flex: none !important;
}
.portfolio-section .success-stories-swiper.swiper-initialized .swiper-wrapper {
  display: flex !important;
}
.portfolio-section .success-stories-swiper .swiper-slide {
  height: auto !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.portfolio-section .ss-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}
.portfolio-section .ss-nav,
.portfolio-section .ss-pagination {
  display: flex !important;
}

/* Desktop: force exactly 4 cards wide (3 × 20px gaps) */
@media (min-width: 1200px) {
  .portfolio-section .success-stories-swiper.swiper-initialized .swiper-slide {
    width: calc((100% - 60px) / 4) !important;
    max-width: calc((100% - 60px) / 4) !important;
    flex: 0 0 calc((100% - 60px) / 4) !important;
    margin-right: 20px !important;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .portfolio-section .success-stories-swiper.swiper-initialized .swiper-slide {
    width: calc((100% - 36px) / 3) !important;
    max-width: calc((100% - 36px) / 3) !important;
    flex: 0 0 calc((100% - 36px) / 3) !important;
    margin-right: 18px !important;
  }
  .portfolio-section .success-stories-swiper:not(.swiper-initialized) .swiper-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .portfolio-section .success-stories-swiper.swiper-initialized .swiper-slide {
    width: calc((100% - 18px) / 2) !important;
    max-width: calc((100% - 18px) / 2) !important;
    flex: 0 0 calc((100% - 18px) / 2) !important;
    margin-right: 18px !important;
  }
  .portfolio-section .success-stories-swiper:not(.swiper-initialized) .swiper-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 575.98px) {
  .portfolio-section .success-stories-swiper.swiper-initialized .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-right: 0 !important;
  }
  .portfolio-section .success-stories-swiper:not(.swiper-initialized) .swiper-wrapper {
    grid-template-columns: 1fr !important;
  }
}

/* Testimonials layout */
.testimonial-section-h1 .testi-reels-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: grid !important;
  gap: 20px !important;
  transform: none !important;
  width: 100% !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.testimonial-section-h1 .testi-reels-swiper:not(.swiper-initialized) .swiper-slide {
  width: 100% !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.testimonial-section-h1 .testi-reels-swiper.swiper-initialized .swiper-wrapper {
  display: flex !important;
}
@media (max-width: 991.98px) {
  .testimonial-section-h1 .testi-reels-swiper:not(.swiper-initialized) .swiper-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 575.98px) {
  .testimonial-section-h1 .testi-reels-swiper:not(.swiper-initialized) .swiper-wrapper {
    grid-template-columns: 1fr !important;
  }
}
/* Services slider: 3-across via JS; CSS fallback if Swiper missing */
.ks-service-area .service-active-h3 {
  min-height: 280px;
  width: 100%;
  overflow: hidden;
}
.ks-service-area .ks-service-item {
  min-height: 240px;
}
.ks-service-area .service-active-h3 .swiper-slide {
  height: auto;
  box-sizing: border-box;
  flex-shrink: 0;
}
.ks-service-area .service-active-h3:not(.swiper-initialized) .swiper-wrapper {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(280px, 1fr)) !important;
  gap: 24px !important;
  transform: none !important;
  width: 100% !important;
}
.ks-service-area .service-active-h3:not(.swiper-initialized) .swiper-slide {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
.ks-service-area .service-active-h3.swiper-initialized .swiper-wrapper {
  display: flex !important;
}
.ks-service-area .ks-service-item .ks-service-link {
  display: block !important;
}
@media (max-width: 991.98px) {
  .ks-service-area .service-active-h3:not(.swiper-initialized) .swiper-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 575.98px) {
  .ks-service-area .service-active-h3:not(.swiper-initialized) .swiper-wrapper {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- About page layout stability ---------- */
.about-hero-section,
.about-hero-section .about-hero-title,
.about-hero-section .about-hero-description,
.about-hero-section .about-hero-image,
.about-section-h2,
.about-section-h2 .title,
.about-section-h2 .sub-title,
.about-section-h2 .text {
  opacity: 1 !important;
  visibility: visible !important;
}
.about-hero-section {
  overflow: hidden !important;
  max-width: 100% !important;
}
.about-hero-image {
  max-width: 100% !important;
  height: auto !important;
}
.about-section-h2 {
  overflow: hidden !important;
}
.about-section-h2 .image-column .inner-column .icon {
  left: 0 !important;
  bottom: -40px !important;
  max-width: 140px !important;
}

/* ---------- Blog cards (home + about) — avoid theme news-block-h2 dual-img bug ----------
   Theme hides img:first-child (opacity:0 absolute) expecting a 2nd img for height.
   Single-image cards collapse → date badges float over the section title. */
.dg-home-blog {
  padding: 90px 0 100px !important;
  background: linear-gradient(180deg, #fbfaf7 0%, #ffffff 45%, #fffdf8 100%);
  overflow: hidden !important;
}
.dg-home-blog .sec-title-h1 {
  margin-bottom: 42px;
  position: relative;
  z-index: 2;
}
.dg-home-blog .sec-title-h1 .sub-title {
  color: #b37b20;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.dg-home-blog .sec-title-h1 .title {
  color: #1b152c;
  font-weight: 700;
  opacity: 1 !important;
  visibility: visible !important;
}
.dg-home-blog .dg-blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(34, 36, 41, 0.08);
  box-shadow: 0 12px 36px rgba(34, 36, 41, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 1 !important;
  visibility: visible !important;
}
.dg-home-blog .dg-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(34, 36, 41, 0.12);
}
.dg-home-blog .dg-blog-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f0ea;
  min-height: 180px;
}
.dg-home-blog .dg-blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  position: relative !important;
  transition: transform 0.45s ease;
}
.dg-home-blog .dg-blog-card:hover .dg-blog-card-media img {
  transform: scale(1.05) !important;
}
.dg-home-blog .dg-blog-card-date {
  position: absolute;
  left: 16px;
  bottom: 16px;
  min-width: 58px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #F6B40E;
  color: #1b152c;
  text-align: center;
  line-height: 1.1;
  z-index: 2;
}
.dg-home-blog .dg-blog-card-date .day {
  display: block;
  font-size: 20px;
  font-weight: 800;
}
.dg-home-blog .dg-blog-card-date .month {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dg-home-blog .dg-blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}
.dg-home-blog .dg-blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 12px;
  color: #7a746b;
  font-size: 13px;
  font-weight: 600;
}
.dg-home-blog .dg-blog-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dg-home-blog .dg-blog-card-meta i {
  color: #F6B40E;
}
.dg-home-blog .dg-blog-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}
.dg-home-blog .dg-blog-card h3 a {
  color: #1b152c;
  text-decoration: none;
}
.dg-home-blog .dg-blog-card h3 a:hover {
  color: #b37b20;
}
.dg-home-blog .dg-blog-card-excerpt {
  margin: 0 0 18px;
  color: #5d574f;
  font-size: 15px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dg-home-blog .dg-blog-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1b152c;
  text-decoration: none;
}
.dg-home-blog .dg-blog-card-cta:hover {
  color: #b37b20;
}
@media (max-width: 767.98px) {
  .dg-home-blog {
    padding: 60px 0 70px !important;
  }
}

/* Kill leftover theme news-block-h2 collapse if anything still uses it */
.news-section-h2 .news-block-h2 .images-box .inner-box .image {
  min-height: 220px !important;
  background: #f3f0ea;
}
.news-section-h2 .news-block-h2 .images-box .inner-box .image img,
.news-section-h2 .news-block-h2 .images-box .inner-box .image img:first-child {
  position: relative !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
}
.news-section-h2 .news-block-h2 .images-box .inner-box {
  position: relative !important;
}
.news-section-h2 .news-block-h2 .date-box {
  position: absolute !important;
  left: 20px !important;
  bottom: 0 !important;
  z-index: 3 !important;
}


/* ---------- About-hero on service pages (live was unstyled) ---------- */
.about-hero-section {
  position: relative !important;
  overflow: hidden !important;
  min-height: 520px;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.about-hero-container {
  position: relative !important;
  z-index: 2 !important;
  max-width: 1250px !important;
  margin: 0 auto !important;
  padding: 140px 30px 55px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) !important;
  gap: 24px !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.about-hero-title {
  font-size: clamp(36px, 4.2vw, 64px) !important;
  line-height: 1.08 !important;
  color: #2d1b0e !important;
  max-width: 590px !important;
  margin: 0 0 24px !important;
  font-weight: 500 !important;
}
.about-hero-image {
  width: 100% !important;
  max-width: 560px !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}
.about-hero-btn.primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 48px !important;
  padding: 0 19px !important;
  border-radius: 5px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #c8871d, #e5ae45) !important;
  text-decoration: none !important;
}
@media (max-width: 991px) {
  .about-hero-container {
    display: block !important;
    padding: 115px 25px 55px !important;
  }
  .about-hero-visual {
    display: none !important;
  }
}
