/* =========================
   INTRO
========================= */
.qt-intro-card{
  border-radius: 22px;
  background:#fff;
  border: 1px solid rgba(231,235,241,.95);
  box-shadow: 0 10px 26px rgba(2,8,23,.05);
  padding: 18px;
}

.qt-intro-actions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* anchor chips */
.qt-anchorbar{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.qt-anchorbar a{
  text-decoration:none;
  font-weight: 900;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 999px;
  background:#fff;
  border: 1px solid rgba(231,235,241,.95);
  box-shadow: 0 10px 26px rgba(2,8,23,.05);
  color: rgba(11,18,32,.86);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.qt-anchorbar a:hover{
  transform: translateY(-2px);
  border-color: rgba(20,184,166,.32);
  box-shadow: 0 18px 48px rgba(2,8,23,.10);
  color: rgba(20,184,166,.95);
}

/* =========================
   COMMITMENT CARDS
========================= */
.qt-card-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.qt-card{
  border-radius: 22px;
  background:#fff;
  border: 1px solid rgba(231,235,241,.95);
  box-shadow: 0 10px 26px rgba(2,8,23,.05);
  padding: 18px;
  position:relative;
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.qt-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(circle at 20% 10%, rgb(223 76 82 / 23%), transparent 55%);
  opacity:0;
  transition: opacity .18s ease;
  pointer-events:none;
}

.qt-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(2,8,23,.10);
  border-color: rgb(192 42 48);
}
.qt-card:hover::before{ opacity:1; }

.qt-card-badge{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgb(236 173 176);
  order: 1px solid rgb(192 42 48);
  color: rgb(192 42 48);
  font-weight: 950;
  margin-bottom: 12px;
}

.qt-card-title{
  margin:0 0 8px;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.qt-card-desc{
  margin:0;
  color: rgba(11,18,32,.72);
  line-height: 1.7;
}

/* =========================
   ALT SPLIT (Left/Right)
   Title pane has image behind
========================= */
.qt-alt{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
}

.qt-alt--reverse{
  grid-template-columns: .95fr 1.05fr;
}
.qt-alt--reverse .qt-titlepane{ order: 2; }
.qt-alt--reverse .qt-panel{ order: 1; }

/* Title pane (image behind text) */
.qt-titlepane{
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: clamp(22px, 2.6vw, 34px);
  min-height: 260px;
  display:flex;
  flex-direction: column;
  justify-content: center;

  /* Background image behind */
  background-image:
    linear-gradient(120deg, rgba(255,255,255,.94), rgba(255,255,255,.78)),
    var(--qt-img);
  background-size: cover;
  background-position: center;

  border: 1px solid rgba(231,235,241,.95);
  box-shadow: 0 10px 26px rgba(2,8,23,.05);
}

.qt-titlepane::before{
  content:"";
  position:absolute;
  inset:-2px;
  opacity: .95;
  pointer-events:none;
}

.qt-titlepane::after{
  content:"";
  position:absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  background: url("assets/img/decor/dots-grid.svg") no-repeat center / contain;
  opacity: .26;
  pointer-events:none;
}

.qt-kicker{
  position: relative;
  z-index: 2;
  font-weight: 900;
  letter-spacing: .16em;
  font-size: 12px;
  color: rgba(11,18,32,.55);
  margin: 0 0 10px;
  text-transform: uppercase;
}

.qt-title{
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 950;
  color: rgba(11,18,32,.96);
}

.qt-sub{
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(11,18,32,.68);
  line-height: 1.7;
  max-width: 52ch;
}

/* Right panel */
.qt-panel{
  border-radius: 22px;
  background:#fff;
  border: 1px solid rgba(231,235,241,.95);
  box-shadow: 0 10px 26px rgba(2,8,23,.05);
  padding: 18px;
  height: 100%;
}

.qt-bullets{
  margin: 0;
  padding-left: 18px;
  color: rgba(11,18,32,.78);
  line-height: 1.8;
}
.qt-bullets li{ margin: 4px 0; }

.qt-check-grid{
  display:grid;
  gap: 10px;
}

.qt-check{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  color: rgba(11,18,32,.78);
  line-height: 1.7;
}

.qt-check-ic{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(20,184,166,.10);
  border: 1px solid rgba(20,184,166,.18);
  color: rgba(20,184,166,.95);
  font-weight: 950;
  flex: 0 0 auto;
  margin-top: 2px;
}

.qt-note{
  margin-top: 12px;
}

/* =========================
   BRAND HIGHLIGHT + CTA
========================= */
.qt-highlight{
  border-radius: 22px;
  background:#fff;
  border: 1px solid rgb(225 183 185);
  box-shadow: 0 10px 26px rgba(2,8,23,.05);
  padding: 18px;
  display:flex;
  gap: 12px;
  align-items:flex-start;
}

.qt-highlight-ic{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgb(240 184 187); 
  border: 1px solid rgb(192 42 48);
  color: rgb(192 42 48);
  font-weight: 950;
  flex: 0 0 auto;
}

.qt-highlight-text{
  color: rgba(11,18,32,.78);
  line-height: 1.7;
  font-weight: 800;
}

.qt-cta{
  margin-top: 14px;
  border-radius: 22px;
  background:#fff;
  border: 1px solid rgba(231,235,241,.95);
  box-shadow: 0 10px 26px rgba(2,8,23,.05);
  padding: 18px;
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.qt-cta-title{
  font-weight: 950;
  margin-bottom: 6px;
}

.qt-cta-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================
   SECTION DIVIDER (HR)
========================= */
.section-divider{ padding: 0; }
.section-divider .container{ position: relative; }

.section-divider span{
  display:block;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(231,235,241,.95), transparent);
  position: relative;
}

.section-divider span::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 2px;
  border-radius: 999px;
      background: linear-gradient(90deg, transparent, rgb(192 42 48), transparent);
}

.section-divider span::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background:#fff;
  border: 1px solid rgb(192 42 48);
  box-shadow: 0 10px 26px rgba(2,8,23,.06);
}

/* =========================
   ORNAMENTS (SVG DECOR)
========================= */
.with-ornaments{
  position: relative;
  overflow: hidden;
}

.with-ornaments .container{
  position: relative;
  z-index: 2;
}

.with-ornaments::before,
.with-ornaments::after{
  content:"";
  position:absolute;
  pointer-events:none;
  z-index: 1;
  opacity: .9;
  filter: drop-shadow(0 14px 26px rgba(2,8,23,.06));
  background-repeat:no-repeat;
  background-size:contain;
}

/* Intro */
.qt-intro.with-ornaments::before{
  width: 280px;
  height: 280px;
  top: -120px;
  right: -120px;
  background-image: url("../img/decor/ring.svg");
  opacity: .48;
}
.qt-intro.with-ornaments::after{
  width: 240px;
  height: 240px;
  bottom: -120px;
  left: -120px;
  background-image: url("../img/decor/dots-grid.svg");
  opacity: .40;
}

/* Generic sections */
.qt-section.with-ornaments::before{
  width: 320px;
  height: 220px;
  top: -90px;
  left: -120px;
  background-image: url("../img/decor/wave.svg");
  opacity: .42;
}
.qt-section.with-ornaments::after{
  width: 220px;
  height: 220px;
  bottom: -90px;
  right: -80px;
  background-image: url("../img/decor/dots-grid.svg");
  opacity: .26;
}

/* Final CTA subtle */
.final-cta-bg.with-ornaments::before{
  width: 320px;
  height: 320px;
  top: -140px;
  right: -140px;
  background-image: url("../img/decor/ring.svg");
  opacity: .22;
  z-index: 0;
}
.final-cta-bg.with-ornaments::after{
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: -120px;
  background-image: url("../img/decor/dots-grid.svg");
  opacity: .18;
  z-index: 0;
}

.final-cta-bg .final-cta-overlay{
  position:absolute;
  inset:0;
  z-index:1;
}
.final-cta-bg .final-cta-content{
  position: relative;
  z-index:2;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px){
  .qt-card-grid{ grid-template-columns: 1fr; }
  .qt-alt{ grid-template-columns: 1fr; }
  .qt-alt--reverse .qt-titlepane{ order: 0; }
  .qt-alt--reverse .qt-panel{ order: 0; }
  .qt-titlepane{ min-height: 220px; }
}

@media (max-width: 640px){
  .with-ornaments::before,
  .with-ornaments::after{
    opacity: .30;
    filter: none;
  }
}