/* BuildConnect Pakistan — typography, contrast and responsive stability patch
   Applied last so public, dashboard and admin pages remain readable on every viewport. */

:root{
  --bc-readable-ink:#102238;
  --bc-readable-body:#56677c;
  --bc-readable-muted:#6b7b8f;
  --bc-readable-line:#dfe6ef;
  --bc-readable-light:#f7fafc;
  --bc-readable-light-muted:#d4deea;
  --bc-focus-ring:rgba(217,154,22,.32);
}

html{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

body.public-site,
body.admin-body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
  color:var(--bc-readable-ink);
  font-family:var(--bc-body-font,Inter,"Segoe UI",Roboto,Helvetica,Arial,sans-serif);
  font-size:16px;
  line-height:1.6;
}

body.public-site main,
body.public-site main > section,
body.public-site header,
body.public-site footer,
body.admin-body .admin-shell,
body.admin-body .admin-main{
  min-width:0;
  max-width:100%;
}

body.public-site :where(h1,h2,h3,h4,h5,h6),
body.admin-body :where(h1,h2,h3,h4,h5,h6){
  color:var(--bc-readable-ink);
  font-family:var(--bc-heading-font,Inter,"Segoe UI",Roboto,Helvetica,Arial,sans-serif);
  line-height:1.18;
  overflow-wrap:anywhere;
  text-wrap:balance;
}

body.public-site :where(p,li,dd,td,small),
body.admin-body :where(p,li,dd,td,small){
  overflow-wrap:anywhere;
}

body.public-site p{
  color:var(--bc-readable-body);
}

body.public-site .text-muted,
body.admin-body .text-muted{
  color:var(--bc-readable-muted)!important;
}

/* Explicit contrast for every dark surface. */
body.public-site :where(.bc-hero-v3,.testimonial-section,.final-cta-card,.page-hero,.cta,.premium-footer) :where(h1,h2,h3,h4,h5,h6){
  color:#fff!important;
}

body.public-site .bc-hero-v3 .hero-v3-content > h1{
  color:#fff!important;
  text-shadow:0 2px 18px rgba(0,0,0,.18);
}

body.public-site :where(.bc-hero-v3,.testimonial-section,.final-cta-card,.page-hero,.cta,.premium-footer) :where(p,.lead,small){
  color:var(--bc-readable-light-muted)!important;
}

body.public-site .bc-hero-v3 :where(.hero-label,.hero-role-links a,.btn-ghost),
body.public-site .testimonial-section .testimonial-points span,
body.public-site .premium-footer :where(a,.footer-contact){
  color:rgba(255,255,255,.82)!important;
}

body.public-site .bc-hero-v3 :where(.hero-label,.hero-role-links a,.btn-ghost):hover,
body.public-site .premium-footer a:hover{
  color:#fff!important;
}

body.public-site .hero-visual-tag :where(strong,h1,h2,h3,h4,h5,h6){color:#fff!important}
body.public-site .hero-visual-tag small{color:rgba(255,255,255,.72)!important}
body.public-site .hero-rating-card :where(h1,h2,h3,h4,h5,h6,strong){color:var(--bc-readable-ink)!important}
body.public-site .hero-rating-card p,
body.public-site .hero-rating-card small{color:var(--bc-readable-body)!important}
body.public-site .testimonial-card p{color:rgba(255,255,255,.84)!important}
body.public-site .quote-author strong{color:#fff!important}
body.public-site .quote-author small{color:rgba(255,255,255,.65)!important}
body.public-site .final-cta-card p{color:rgba(255,255,255,.72)!important}
body.public-site .page-hero p{color:rgba(255,255,255,.76)!important}

/* Light surfaces always retain dark readable content. */
body.public-site :where(.content-card,.project-card,.pro-card,.service-card,.category-card,.feature-card,.stat-card,.auth-card,.chat-box,.list-group-item,.card,.hero-rating-card){
  color:var(--bc-readable-ink);
}

body.public-site :where(.content-card,.project-card,.pro-card,.service-card,.category-card,.feature-card,.stat-card,.auth-card,.chat-box,.list-group-item,.card,.hero-rating-card) :where(h1,h2,h3,h4,h5,h6,strong,b){
  color:var(--bc-readable-ink);
}

body.public-site :where(.content-card,.project-card,.pro-card,.service-card,.category-card,.feature-card,.stat-card,.auth-card,.chat-box,.list-group-item,.card,.hero-rating-card) p{
  color:var(--bc-readable-body);
}

body.public-site .marketplace-grid > a :where(strong,h1,h2,h3,h4,h5,h6){color:#fff!important}
body.public-site .marketplace-grid > a small{color:rgba(255,255,255,.72)!important}

/* Forms and controls. */
body.public-site :where(label,.form-label),
body.admin-body :where(label,.form-label){
  color:#34465d;
  font-weight:700;
}

body.public-site :where(.form-control,.form-select),
body.admin-body :where(.form-control,.form-select){
  width:100%;
  max-width:100%;
  min-width:0;
  color:#172a42;
  background-color:#fff;
  border-color:#d7e0ea;
}

body.public-site :where(.form-control,.form-select)::placeholder,
body.admin-body :where(.form-control,.form-select)::placeholder{
  color:#7b899a;
  opacity:1;
}

body.public-site :where(.form-control,.form-select):focus,
body.admin-body :where(.form-control,.form-select):focus{
  border-color:var(--bc-primary,#d99a16);
  box-shadow:0 0 0 .22rem var(--bc-focus-ring);
}

body.public-site input[type="file"].form-control,
body.admin-body input[type="file"].form-control{
  height:auto;
  min-height:48px;
}

body.public-site .btn,
body.admin-body .btn{
  max-width:100%;
  min-width:0;
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.25;
}

body.public-site :where(.btn-primary,.btn-gold),
body.admin-body .btn-primary{
  color:var(--bc-button-text,#171717)!important;
}

body.public-site :where(.btn-navy,.btn-outline-navy:hover,.btn-outline-primary:hover),
body.admin-body .btn-outline-dark:hover{
  color:#fff!important;
}

body.public-site .btn-outline-light{
  color:#fff!important;
  border-color:rgba(255,255,255,.7)!important;
  background:transparent!important;
}
body.public-site .btn-outline-light:hover,
body.public-site .btn-outline-light:focus{
  color:var(--bc-readable-ink)!important;
  background:#fff!important;
  border-color:#fff!important;
}

/* Links, cards and content that may contain long user-generated text. */
body.public-site a,
body.admin-body a{
  overflow-wrap:anywhere;
}

body.public-site :where(.content-card,.cms-content,.project-card,.pro-card,.auth-card,.chat-box) :where(img,video,iframe,embed,object){
  max-width:100%;
  height:auto;
}
body.public-site :where(.content-card,.cms-content) iframe{width:100%;aspect-ratio:16/9}
body.public-site :where(.content-card,.cms-content) pre{
  max-width:100%;
  overflow:auto;
  white-space:pre-wrap;
  word-break:break-word;
}
body.public-site :where(.content-card,.cms-content) table{
  width:100%;
  max-width:100%;
}

/* Grid/flex children must be allowed to shrink instead of widening the page. */
body.public-site :where(.row,.d-flex,.hero-v3-grid,.project-search-box,.category-grid,.steps-grid,.marketplace-grid,.testimonial-wrap,.search-bar,.chat-form) > *,
body.admin-body :where(.row,.d-flex,.premium-grid,.premium-purchase,.admin-top) > *{
  min-width:0;
}

body.public-site .container,
body.admin-body .container{
  width:100%;
}

body.public-site .table-responsive,
body.admin-body .table-responsive{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
}
body.public-site .table-responsive > table,
body.admin-body .table-responsive > table{
  margin-bottom:0;
}
body.public-site .table :where(th,td),
body.admin-body .table :where(th,td){
  vertical-align:middle;
}

/* Header and navigation reliability. */
body.public-site .site-header,
body.public-site .premium-navbar{
  width:100%;
  max-width:100%;
}
body.public-site .navbar-brand{min-width:0;max-width:calc(100% - 64px)}
body.public-site .site-logo{width:auto;max-width:min(225px,54vw)}
body.public-site .navbar-collapse{min-width:0}
body.public-site .premium-dropdown .dropdown-item{white-space:normal}

/* Home sections. */
body.public-site .hero-v3-content,
body.public-site .hero-v3-visual{min-width:0}
body.public-site .project-search-box{width:100%}
body.public-site .hero-search-field{min-width:0;margin:0}
body.public-site .hero-search-field input{min-width:0}
body.public-site .hero-v3-actions,
body.public-site .hero-role-links{max-width:100%}
body.public-site .service-card,
body.public-site .category-card,
body.public-site .project-card,
body.public-site .pro-card{width:100%;max-width:100%}
body.public-site .service-content p{min-height:0}
body.public-site .category-card > div{min-width:0}
body.public-site .project-card-top,
body.public-site .project-meta-row,
body.public-site .pro-top,
body.public-site .pro-meta,
body.public-site .meta{flex-wrap:wrap}
body.public-site .file-pill{max-width:100%;white-space:normal}

/* Dashboard/admin shell. */
body.admin-body .admin-shell{width:100%}
body.admin-body .admin-sidebar{max-width:88vw}
body.admin-body .admin-main{width:calc(100% - 280px);min-width:0}
body.admin-body .admin-card,
body.admin-body .admin-stat,
body.admin-body .content-card,
body.admin-body .card{max-width:100%;color:var(--bc-readable-ink)}
body.admin-body :where(.admin-card,.admin-stat,.content-card,.card) :where(h1,h2,h3,h4,h5,h6,strong,b){color:var(--bc-readable-ink)}
body.admin-body .admin-top > div{min-width:0}
body.admin-body .admin-top .small{overflow-wrap:anywhere}
body.admin-body .setting-asset-preview > div{min-width:0}
body.admin-body .theme-color-control{flex-wrap:wrap}
body.admin-body .admin-sidebar .text-muted{color:rgba(255,255,255,.58)!important}

@media (max-width:1199.98px){
  body.public-site .premium-navbar{padding:9px 0;min-height:70px}
  body.public-site .premium-navbar .container{display:flex;flex-wrap:wrap;gap:8px 12px}
  body.public-site .navbar-toggler{margin-left:auto;flex:0 0 auto}
  body.public-site .navbar-collapse{
    flex-basis:100%;
    width:100%;
    margin-top:8px;
    padding:12px;
    max-height:calc(100dvh - 92px);
    overflow-y:auto;
    background:#fff;
    border:1px solid var(--bc-readable-line);
    border-radius:16px;
    box-shadow:0 18px 45px rgba(11,49,92,.14);
  }
  body.public-site .main-nav-links{width:100%;align-items:stretch!important}
  body.public-site .main-nav-links .nav-item{width:100%}
  body.public-site .main-nav-links .nav-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    min-height:44px;
    padding:11px 12px!important;
  }
  body.public-site .premium-dropdown{
    position:static!important;
    width:100%;
    transform:none!important;
    margin:3px 0 7px!important;
    box-shadow:none!important;
  }
  body.public-site .nav-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
    gap:9px!important;
    margin-top:7px;
  }
  body.public-site .nav-actions > .dropdown{grid-column:1/-1}
  body.public-site .nav-actions .btn{width:100%;min-height:44px}
  body.public-site.nav-open{overflow:hidden}
}

@media (max-width:991.98px){
  body.public-site .hero-v3-grid{grid-template-columns:minmax(0,1fr)!important;gap:42px}
  body.public-site .hero-v3-content{text-align:center}
  body.public-site .hero-v3-content h1,
  body.public-site .hero-v3-lead,
  body.public-site .project-search-box{margin-left:auto;margin-right:auto}
  body.public-site .hero-v3-actions,
  body.public-site .hero-role-links{justify-content:center}
  body.public-site .hero-v3-visual{width:100%;max-width:680px;margin-inline:auto}
  body.public-site .search-bar,
  body.public-site .chat-form,
  body.public-site .premium-purchase{grid-template-columns:minmax(0,1fr)!important}
  body.public-site .sticky-card{position:static!important}
  body.public-site .bid-row{grid-template-columns:minmax(0,1fr)!important}

  body.admin-body .admin-sidebar{
    width:min(320px,88vw);
    transform:translateX(-105%);
    transition:transform .25s ease;
    z-index:1050;
  }
  body.admin-body .admin-sidebar.open{transform:translateX(0)}
  body.admin-body .admin-backdrop{z-index:1040}
  body.admin-body .admin-main{width:100%;margin-left:0!important;padding:14px!important}
  body.admin-body .admin-top{position:static!important;flex-wrap:wrap;gap:12px}
  body.admin-body .admin-top > div:nth-child(2){flex:1 1 230px}
  body.admin-body .admin-top > div:last-child{width:100%}
  body.admin-body .admin-top > div:last-child .btn{flex:1 1 145px}
  body.admin-body .premium-grid{grid-template-columns:minmax(0,1fr)!important}
}

@media (max-width:767.98px){
  body.public-site,
  body.admin-body{font-size:15px}

  body.public-site .container,
  body.admin-body .container{--bs-gutter-x:28px}

  body.public-site .bc-utility-inner{padding-block:5px}
  body.public-site .bc-utility-trust{justify-content:center;gap:9px;text-align:center}

  body.public-site .bc-hero-v3{padding:48px 0 66px;min-height:0}
  body.public-site .hero-v3-content h1{font-size:clamp(2.25rem,11vw,3.35rem);line-height:1.02}
  body.public-site .hero-v3-lead{font-size:1rem!important;line-height:1.65!important}
  body.public-site .project-search-box{grid-template-columns:minmax(0,1fr)!important;padding:9px}
  body.public-site .project-search-box .btn{width:100%;min-height:48px}
  body.public-site .hero-v3-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%}
  body.public-site .hero-v3-actions .btn{width:100%;min-height:48px}
  body.public-site .hero-role-links{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;text-align:left}
  body.public-site .hero-role-links a{justify-content:flex-start}
  body.public-site .hero-v3-visual{min-height:410px}

  body.public-site .premium-section,
  body.public-site main > section.py-5{padding:56px 0!important}
  body.public-site .page-hero{padding:50px 0!important}
  body.public-site .page-hero h1{font-size:clamp(2rem,9vw,2.8rem)!important}
  body.public-site .section-heading-row{align-items:flex-start;flex-direction:column;gap:12px}
  body.public-site .center-heading h2,
  body.public-site .section-heading-row h2{font-size:clamp(1.85rem,8.5vw,2.45rem)}
  body.public-site .category-grid,
  body.public-site .marketplace-grid,
  body.public-site .steps-grid{grid-template-columns:minmax(0,1fr)!important}
  body.public-site .step-connector{transform:rotate(90deg)}
  body.public-site .marketplace-grid > a{min-height:145px}
  body.public-site .testimonial-wrap{grid-template-columns:minmax(0,1fr)!important;gap:30px}
  body.public-site .final-cta-card{padding:30px 22px!important;border-radius:22px}
  body.public-site .final-cta-actions{display:grid!important;grid-template-columns:minmax(0,1fr);width:100%}
  body.public-site .final-cta-actions .btn{width:100%}

  body.public-site :where(.content-card,.project-card,.pro-card,.auth-card,.chat-box){padding:20px}
  body.public-site .service-content{padding:24px 20px}
  body.public-site .service-image{height:230px}
  body.public-site .msg{max-width:92%!important}
  body.public-site .bid-row > .text-end{text-align:left!important;margin-top:12px}
  body.public-site .bid-row form{justify-content:flex-start!important}
  body.public-site .footer-main{padding:48px 0 30px!important}
  body.public-site .premium-footer .col-6{width:100%}
  body.public-site .footer-bottom{align-items:flex-start!important}
  body.public-site .footer-bottom > div{display:flex;flex-direction:column;gap:9px}
  body.public-site .footer-bottom a{margin:0!important}

  body.admin-body .admin-main{padding:10px!important}
  body.admin-body .admin-top{padding:14px;margin-bottom:14px;border-radius:15px}
  body.admin-body .admin-top > div:last-child{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  body.admin-body .admin-top > div:last-child .btn{width:100%}
  body.admin-body :where(.admin-card,.admin-stat,.content-card,.card){padding:18px}
}

@media (max-width:575.98px){
  body.public-site .navbar-brand{max-width:calc(100% - 56px);margin-right:0}
  body.public-site .site-logo{max-height:39px;max-width:56vw}
  body.public-site .brand-mark{width:39px;height:39px;flex:0 0 39px}
  body.public-site .brand-copy strong{font-size:1.1rem}
  body.public-site .navbar-collapse{padding:9px;border-radius:14px}
  body.public-site .nav-actions{grid-template-columns:minmax(0,1fr)}

  body.public-site .hero-label{font-size:.67rem;line-height:1.35;white-space:normal;text-align:left}
  body.public-site .hero-v3-content h1{font-size:clamp(2.05rem,11.5vw,2.8rem)}
  body.public-site .hero-v3-visual{min-height:350px}
  body.public-site .hero-photo-frame{inset:10px 0 18px 16px;border-radius:24px}
  body.public-site .hero-visual-tag{left:0;top:34px;width:min(170px,49%);padding:13px}
  body.public-site .hero-visual-tag .tag-icon{width:36px;height:36px;margin-bottom:8px}
  body.public-site .hero-visual-tag strong{font-size:.78rem}
  body.public-site .hero-rating-card{right:0;bottom:0;width:min(195px,56%);padding:13px}
  body.public-site .hero-rating-card .rating-score{font-size:1.4rem}
  body.public-site .hero-mini-avatars small{display:none}

  body.public-site :where(.content-card,.project-card,.pro-card,.auth-card,.chat-box){padding:17px;border-radius:16px!important}
  body.public-site .service-image{height:205px}
  body.public-site .category-card{padding:17px}
  body.public-site .form-control,
  body.public-site .form-select,
  body.admin-body .form-control,
  body.admin-body .form-select{min-height:46px;font-size:16px}
  body.public-site textarea.form-control,
  body.admin-body textarea.form-control{min-height:110px}
  body.public-site .btn:not(.btn-sm),
  body.admin-body .btn:not(.btn-sm){min-height:44px}
  body.public-site .table-responsive > table,
  body.admin-body .table-responsive > table{min-width:580px}

  body.admin-body .admin-top > div:last-child{grid-template-columns:minmax(0,1fr)}
  body.admin-body .setting-asset-preview{align-items:flex-start;flex-direction:column}
}

@media (max-width:400px){
  body.public-site .container,
  body.admin-body .container{--bs-gutter-x:22px}
  body.public-site .hero-v3-visual{min-height:320px}
  body.public-site .hero-visual-tag{width:48%;padding:11px}
  body.public-site .hero-visual-tag small{display:none}
  body.public-site .hero-rating-card{width:55%}
  body.public-site .hero-rating-card p{display:none}
  body.public-site .hero-mini-avatars{margin-top:8px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}

/* ========================================================================
   BuildConnect Home Alignment Premium Update — 2026-07-12
   Keeps hero controls, marketplace cards and final CTA precisely aligned
   across desktop, tablet and mobile screens.
   ======================================================================== */

/* Hero controls: one measured content rail with clean, non-overlapping rows. */
body.public-site.page-home .hero-v3-content{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
}
body.public-site.page-home .hero-v3-lead,
body.public-site.page-home .project-search-box,
body.public-site.page-home .hero-role-links{
  width:100%;
  max-width:710px;
}
body.public-site.page-home .project-search-box{
  grid-template-columns:minmax(0,1.32fr) minmax(138px,.82fr) minmax(164px,auto)!important;
  align-items:stretch;
  gap:9px;
  margin:0;
}
body.public-site.page-home .project-search-box > *{
  min-width:0;
  height:100%;
}
body.public-site.page-home .project-search-box .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:100%;
  min-width:164px;
  white-space:nowrap;
}
body.public-site.page-home .hero-v3-actions{
  display:grid;
  grid-template-columns:minmax(168px,.72fr) minmax(240px,1.08fr);
  align-items:stretch;
  gap:12px;
  width:min(100%,452px);
  max-width:452px;
  margin:12px 0 0;
}
body.public-site.page-home .hero-v3-actions .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  min-height:54px;
  margin:0;
  white-space:nowrap;
}
body.public-site.page-home .hero-role-links{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,max-content));
  align-items:center;
  justify-content:start;
  column-gap:22px;
  row-gap:10px;
  margin-top:22px;
}
body.public-site.page-home .hero-role-links a{
  min-width:0;
  justify-content:flex-start;
  white-space:nowrap;
}

/* Marketplace: equal cards with incomplete final rows centered automatically. */
body.public-site.page-home .marketplace-grid{
  display:flex!important;
  flex-wrap:wrap;
  align-items:stretch;
  justify-content:center;
  gap:18px;
  width:100%;
  margin-inline:auto;
}
body.public-site.page-home .marketplace-grid > a{
  flex:1 1 calc((100% - 72px)/5);
  max-width:calc((100% - 72px)/5);
  min-width:0;
  min-height:190px;
  padding:25px 20px;
  align-items:center!important;
  justify-content:center!important;
  gap:27px;
  text-align:center;
}
body.public-site.page-home .marketplace-grid > a > i{
  flex:0 0 47px;
  margin:0;
}
body.public-site.page-home .marketplace-grid > a > span{
  display:block;
  min-width:0;
  width:100%;
}
body.public-site.page-home .marketplace-grid strong,
body.public-site.page-home .marketplace-grid small{
  overflow-wrap:anywhere;
}

/* CTA: premium overlap removes the empty band and locks content/actions to a grid. */
body.public-site.page-home .testimonial-section{
  padding-bottom:82px;
}
body.public-site.page-home .final-cta{
  position:relative;
  padding:0 0 88px;
  overflow:visible;
}
body.public-site.page-home .final-cta > .container{
  position:relative;
  z-index:4;
  margin-top:-44px;
}
body.public-site.page-home .final-cta-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(390px,auto);
  align-items:center;
  justify-content:stretch;
  column-gap:46px;
  row-gap:28px;
  width:100%;
  min-height:300px;
  padding:50px 48px!important;
}
body.public-site.page-home .final-cta-card > div:first-child{
  min-width:0;
  max-width:610px;
}
body.public-site.page-home .final-cta-card h2{
  max-width:580px;
  margin:10px 0 12px;
  line-height:1.08;
}
body.public-site.page-home .final-cta-card p{
  max-width:560px;
  line-height:1.7!important;
}
body.public-site.page-home .final-cta-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(180px,1fr));
  align-items:stretch;
  justify-content:end;
  gap:12px;
  width:100%;
  min-width:0!important;
  margin:0;
}
body.public-site.page-home .final-cta-actions .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  min-height:54px;
  margin:0;
  padding-inline:20px;
  white-space:nowrap;
}

@media (max-width:1199.98px){
  body.public-site.page-home .project-search-box{
    grid-template-columns:minmax(0,1.18fr) minmax(126px,.78fr) minmax(154px,auto)!important;
  }
  body.public-site.page-home .project-search-box .btn{min-width:154px}

  body.public-site.page-home .marketplace-grid > a{
    flex-basis:calc((100% - 36px)/3);
    max-width:calc((100% - 36px)/3);
  }

  body.public-site.page-home .final-cta-card{
    grid-template-columns:minmax(0,1fr) minmax(330px,.82fr);
    column-gap:34px;
    padding:46px 40px!important;
  }
  body.public-site.page-home .final-cta-actions{
    grid-template-columns:minmax(0,1fr);
  }
}

@media (max-width:991.98px){
  body.public-site.page-home .hero-v3-content{
    align-items:center;
  }
  body.public-site.page-home .hero-v3-lead,
  body.public-site.page-home .project-search-box,
  body.public-site.page-home .hero-role-links{
    max-width:720px;
  }
  body.public-site.page-home .hero-v3-actions{
    margin-inline:auto;
  }
  body.public-site.page-home .hero-role-links{
    justify-content:center;
  }

  body.public-site.page-home .marketplace-grid > a{
    flex-basis:calc((100% - 18px)/2);
    max-width:calc((100% - 18px)/2);
  }

  body.public-site.page-home .testimonial-section{
    padding-bottom:76px;
  }
  body.public-site.page-home .final-cta > .container{
    margin-top:-38px;
  }
  body.public-site.page-home .final-cta-card{
    grid-template-columns:minmax(0,1fr)!important;
    min-height:0;
    padding:42px 36px!important;
  }
  body.public-site.page-home .final-cta-card > div:first-child{
    max-width:680px;
  }
  body.public-site.page-home .final-cta-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
    max-width:520px;
  }
}

@media (max-width:767.98px){
  body.public-site.page-home .hero-v3-content{
    align-items:stretch;
    text-align:left;
  }
  body.public-site.page-home .hero-label{
    align-self:flex-start;
  }
  body.public-site.page-home .hero-v3-content h1,
  body.public-site.page-home .hero-v3-lead{
    width:100%;
    max-width:none;
    margin-left:0;
    margin-right:0;
    text-align:left;
  }
  body.public-site.page-home .project-search-box{
    grid-template-columns:minmax(0,1fr)!important;
    width:100%;
    max-width:none;
  }
  body.public-site.page-home .project-search-box .btn{
    min-width:0;
  }
  body.public-site.page-home .hero-v3-actions{
    grid-template-columns:minmax(0,1fr)!important;
    width:100%;
    max-width:none;
    margin:12px 0 0;
  }
  body.public-site.page-home .hero-role-links{
    grid-template-columns:minmax(0,1fr)!important;
    width:100%;
    max-width:none;
    justify-content:stretch;
    margin-top:18px;
  }
  body.public-site.page-home .hero-role-links a{
    justify-content:flex-start;
    white-space:normal;
  }

  body.public-site.page-home .marketplace-grid{
    gap:14px;
  }
  body.public-site.page-home .marketplace-grid > a{
    flex:0 0 100%;
    max-width:560px;
    min-height:154px!important;
    padding:22px 18px;
    gap:18px;
  }

  body.public-site.page-home .testimonial-section{
    padding-bottom:66px;
  }
  body.public-site.page-home .final-cta{
    padding-bottom:64px;
  }
  body.public-site.page-home .final-cta > .container{
    margin-top:-30px;
  }
  body.public-site.page-home .final-cta-card{
    row-gap:24px;
    padding:34px 24px!important;
    border-radius:22px!important;
  }
  body.public-site.page-home .final-cta-card h2{
    font-size:clamp(2rem,10vw,2.75rem)!important;
  }
  body.public-site.page-home .final-cta-actions{
    grid-template-columns:minmax(0,1fr)!important;
    max-width:none;
  }
}

@media (max-width:400px){
  body.public-site.page-home .final-cta-card{
    padding:30px 20px!important;
  }
  body.public-site.page-home .marketplace-grid > a{
    max-width:100%;
  }
}
