/* Udyojak v1.4.1 — Global full-width page and overflow repair */
.u-v141-visual-page .u-main,
.u-main-full-width,
.u-v141-builder-page {
  width: 100%;
  max-width: none;
  overflow: clip;
}

/* Remove the legacy decorative watermark that collided with right-side panels. */
.u-v141-visual-page .u-page-hero::after,
.u-spm-directory-hero::after,
.u-spm-service-hero::after,
.u-spm-package-detail-hero::after {
  content: none !important;
  display: none !important;
}

/* A visual page owns its own sections; do not box it inside an article shell. */
.u-v141-visual-page .u-main > .u-page-hero,
.u-v141-visual-page .u-main > .u-section,
.u-v141-visual-page .u-main > div > .u-page-hero,
.u-v141-visual-page .u-main > div > .u-section {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.u-v141-visual-page .u-container,
.u-main-full-width .u-container {
  width: min(1240px, calc(100% - 40px));
}

/* Grid children must be allowed to shrink; otherwise the visual panel overflows. */
.u-v141-visual-page .u-two-col,
.u-v141-visual-page .u-hero-grid,
.u-main-full-width .u-two-col,
.u-main-full-width .u-hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(28px, 4vw, 64px);
}
.u-v141-visual-page .u-two-col > *,
.u-v141-visual-page .u-hero-grid > *,
.u-v141-visual-page [class*="-grid"] > *,
.u-main-full-width .u-two-col > *,
.u-main-full-width [class*="-grid"] > * {
  min-width: 0;
}

/* Consistent hero proportions for all generated pages. */
.u-v141-visual-page .u-page-hero,
.u-main-full-width .u-page-hero {
  padding: clamp(64px, 7vw, 94px) 0;
  margin: 0;
}
.u-v141-visual-page .u-page-hero h1,
.u-main-full-width .u-page-hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.04;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.u-v141-visual-page .u-page-hero p,
.u-main-full-width .u-page-hero p {
  max-width: 720px;
  font-size: clamp(17px, 1.6vw, 20px);
}

/* Services & Packages hub: full-width hero with a contained dashboard panel. */
.u-spm-directory-hero {
  background:
    radial-gradient(circle at 84% 16%, rgba(255,122,0,.18), transparent 30%),
    linear-gradient(135deg, #071642, #12376d);
}
.u-spm-directory-hero .u-spm-hero-panel,
.u-spm-service-hero .u-spm-hero-panel {
  width: 100%;
  max-width: 560px;
  min-width: 0;
  justify-self: end;
  overflow: hidden;
}
.u-spm-directory-hero .u-spm-hero-panel strong,
.u-spm-service-hero .u-spm-hero-panel strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Keep content sections visually aligned across every package/service page. */
.u-v141-visual-page .u-section,
.u-main-full-width .u-section {
  padding-top: clamp(56px, 6vw, 84px);
  padding-bottom: clamp(56px, 6vw, 84px);
}
.u-v141-visual-page .u-section-head,
.u-main-full-width .u-section-head {
  max-width: 820px;
}

/* Avoid horizontal scrolling from tables and cards. */
.u-v141-visual-page img,
.u-v141-visual-page iframe,
.u-v141-visual-page video,
.u-main-full-width img,
.u-main-full-width iframe,
.u-main-full-width video {
  max-width: 100%;
  height: auto;
}
.u-v141-visual-page .u-spm-table-scroll,
.u-v141-visual-page .u-dm-table-scroll,
.u-main-full-width .u-spm-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Standard page content stays readable when it is not a visual/builder page. */
.u-standard-page-content {
  max-width: 980px;
}

@media (max-width: 1080px) {
  .u-v141-visual-page .u-two-col,
  .u-v141-visual-page .u-hero-grid,
  .u-main-full-width .u-two-col,
  .u-main-full-width .u-hero-grid {
    grid-template-columns: 1fr;
  }
  .u-spm-directory-hero .u-spm-hero-panel,
  .u-spm-service-hero .u-spm-hero-panel {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 680px) {
  .u-v141-visual-page .u-container,
  .u-main-full-width .u-container {
    width: min(100% - 28px, 1240px);
  }
  .u-v141-visual-page .u-page-hero,
  .u-main-full-width .u-page-hero {
    padding: 54px 0;
  }
  .u-v141-visual-page .u-page-hero h1,
  .u-main-full-width .u-page-hero h1 {
    font-size: clamp(36px, 12vw, 48px);
  }
  .u-spm-directory-hero .u-actions,
  .u-spm-service-hero .u-actions {
    display: grid;
  }
  .u-spm-directory-hero .u-actions .u-btn,
  .u-spm-service-hero .u-actions .u-btn {
    width: 100%;
  }
  .u-spm-directory-hero .u-spm-hero-panel,
  .u-spm-service-hero .u-spm-hero-panel {
    padding: 20px;
    border-radius: 22px;
  }
}
