.ds{ overflow-x: clip; }
.ds section[id]{ scroll-margin-top: 96px; }
.ds p{ line-height: 1.65; text-wrap: pretty; overflow-wrap: break-word; }
.ds h1, .ds h2{ text-wrap: balance; }
.ds h1, .ds h2, .ds h3, .ds h4{ overflow-wrap: break-word; }

.ds > section:not(.hero):not(.ds-ai-section):not(.cta-banner){
  padding-top: 40px;
  padding-bottom: 40px;
  margin-bottom: 0;
}
.ds > section.hero{ padding-bottom: 48px; margin-bottom: 0; }
.ds > .ds-ai-section{ margin: 24px 0; }

.ds .btn{ white-space: normal; text-align: center; justify-content: center; }

.ds .section__head{ max-width: 820px; margin-bottom: 28px; }
.ds .section__title{
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
  margin-bottom: 10px;
}
.ds .section__sub{ font-size: 16px; line-height: 1.65; max-width: 70ch; }

/* ---------- Hero ---------- */
.ds .ds-hero__inner{
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px;
  align-items: start;
}
.ds .ds-hero__col{ min-width: 0; }
.ds .ds-hero__col--form{ width: 100%; }
.ds .ds-hero__title{
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  margin-bottom: 16px;
}
.ds .hero__sub{ font-size: 16.5px; line-height: 1.7; max-width: 62ch; }
.ds .hero__actions{ margin: 24px 0; }
.ds .hero__tags{ gap: 8px; }

/* Rating / trust line under the hero paragraph */
.ds .aws-rating{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dim);
}
.ds .aws-rating__star{
  flex-shrink: 0;
  margin-right: 8px;
  color: var(--accent);
}
.ds .aws-rating__item:not(:last-child)::after{
  content: "|";
  margin: 0 10px;
  color: var(--text-faint);
  font-weight: 400;
}

/* ---------- Why Technogeeks X AI ---------- */
.ds .aws-why__lead{
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.3;
  margin: 0 0 10px;
}
.ds .aws-why__intro{
  max-width: 78ch;
  margin: 0 0 28px;
  font-size: 16px;
  color: var(--text-dim);
}
.ds .ds-why{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ds .ds-why__item{
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ds .ds-why__icon{
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-2-soft));
}
.ds .ds-why__item h4{
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 8px;
}
.ds .ds-why__item p{ font-size: 14.5px; line-height: 1.65; }
.ds .ds-why__item:hover{ border-color: var(--text-faint); }

/* ---------- Dual-cohort tracks + delivery modes (shared card) ---------- */
.ds .aws-duo{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.ds .aws-card{
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 26px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
/* permanent colour rail on top of each card */
.ds .aws-card::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}
.ds .aws-card--b::before{ background: var(--accent-2); }
.ds .aws-card--brand::before{ background: var(--gradient-brand); }

.ds .aws-card__icon{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px; height: 46px;
  margin-bottom: 16px;
  font-size: 21px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-2-soft));
}
.ds .aws-card h3{
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.3;
  margin: 0 0 14px;
}
.ds .aws-card > p{
  margin: 0;
  font-size: 15px;
  color: var(--text-dim);
}

.ds .aws-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ds .aws-list li{
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}
.ds .aws-list li::before{
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  background: var(--success-soft);
}

@media (hover: hover){
  .ds .aws-card:hover{
    transform: translateY(-4px);
    border-color: var(--text-faint);
    box-shadow: var(--shadow-card);
  }
}

/* ---------- Curriculum (7 modules) ---------- */
.ds .ds-flow{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ds .ds-flow__step{
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.ds .ds-flow__step--final{
  grid-column: 1 / -1;
  background: linear-gradient(180deg, var(--accent-soft), var(--bg-card) 65%);
  border-color: rgba(249,115,22,.3);
}
.ds .ds-flow__num{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.ds .ds-flow__step h3{ font-size: 16.5px; line-height: 1.3; margin-bottom: 8px; }
.ds .ds-flow__tools{
  margin: 0;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
/* kill the shared arrow connectors — cards stand alone here */
.ds .ds-flow__step:not(:last-child)::after,
.ds .ds-flow__step:last-child::after{ content: none !important; display: none !important; }
@media (hover: hover){
  .ds .ds-flow__step:hover{ border-color: var(--text-faint); box-shadow: var(--shadow-card); }
}

/* ---------- Capstone (dark band) ---------- */
.ds .ds-ai__inner{ padding: 56px 24px; }
.ds .aws-capstone__text{
  max-width: 62ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--dark-text-dim);
}
.ds .aws-capstone__chips{ margin-top: 26px; gap: 10px; }
.ds .aws-capstone .section__head{ margin-bottom: 0; }

/* ---------- Placement ---------- */
.ds .aws-wide{
  flex-direction: row;
  align-items: flex-start;
  gap: 22px;
  padding: 30px 28px;
}
.ds .aws-wide .aws-card__icon{ margin-bottom: 0; width: 52px; height: 52px; font-size: 24px; }
.ds .aws-wide__body{ min-width: 0; }
.ds .aws-wide__body h3{ margin-bottom: 10px; }
.ds .aws-wide__body p{ margin: 0; max-width: 72ch; font-size: 15.5px; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.ds .accordion{
  border-top: 0;
  max-width: none;
  display: grid;
  gap: 10px;
  align-items: start;
}
.ds .accordion__item{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-width: 0;
}
.ds .accordion__item:hover{ background: var(--bg-soft); }
.ds .accordion__item.is-open{ background: var(--accent-soft); border-color: rgba(249,115,22,.3); }
/* the question is an <h3> wrapping the button: neutralise heading chrome */
.ds .aws-faq__q{ margin: 0; font-size: inherit; line-height: inherit; font-weight: inherit; }
.ds .accordion__trigger{
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.4;
  gap: 12px;
  cursor: pointer;
}
.ds .accordion__trigger:focus-visible{ outline-offset: -3px; }
.ds .accordion__trigger > span:not(.accordion__icon){ flex: 1; min-width: 0; }
.ds .accordion__panel p{ padding: 0 18px 18px; line-height: 1.65; }
.ds .ds-faq{ max-width: 860px; }

/* ---------- Closing CTA ---------- */
.ds > section.cta-banner{
  width: calc(100% - 48px);
  max-width: calc(var(--container) - 48px);
  margin: 16px auto 40px;
  padding: 56px 32px;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
}
.ds .cta-banner__cmd{ margin-bottom: 24px; font-size: clamp(18px, 2.6vw, 24px); line-height: 1.3; }

/* ---------- Sticky mobile CTA (shown ≤720px by course.css) ---------- */
.ds-sticky-cta .btn{ width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .ds .ds-hero__inner{ grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ds .ds-why{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds .ds-flow{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px){
  .ds > section:not(.hero):not(.ds-ai-section):not(.cta-banner){ padding-top: 28px; padding-bottom: 28px; }
  .ds > section.hero{ padding-bottom: 32px; }
  .ds > .ds-ai-section{ margin: 12px 0; }
  .ds .ds-ai__inner{ padding: 40px 20px; }

  .ds .section__head{ margin-bottom: 22px; }
  .ds .section__sub{ font-size: 15px; }
  .ds .hero__sub{ font-size: 15.5px; }
  .ds .aws-rating{ font-size: 12.5px; }
  .ds .aws-capstone__text{ font-size: 15.5px; }

  .ds .ds-why{ grid-template-columns: minmax(0, 1fr); }
  .ds .ds-why__item{
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    padding: 18px;
  }
  .ds .ds-why__icon{ grid-row: 1 / span 2; margin-bottom: 0; }
  .ds .ds-why__item h4{ margin-bottom: 4px; }

  .ds .aws-duo{ grid-template-columns: minmax(0, 1fr); }
  .ds .aws-card{ padding: 24px 20px 22px; }
  .ds .aws-wide{ flex-direction: column; gap: 16px; padding: 24px 20px; }
  .ds .aws-wide .aws-card__icon{ margin-bottom: 0; }

  .ds .ds-flow{ grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ds .ds-flow__step{
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 14px;
    padding: 16px;
  }
  .ds .ds-flow__num{ grid-row: 1 / span 2; margin-bottom: 0; }
  .ds .ds-flow__step h3{ margin-bottom: 4px; }

  .ds .accordion__trigger{ font-size: 15.5px; padding: 14px 16px; }
  .ds .accordion__panel p{ padding: 0 16px 16px; }

  .ds > section.cta-banner{ padding: 40px 20px; margin-bottom: 28px; }
}

@media (max-width: 480px){
  .ds > section:not(.ds-ai-section){ padding-left: 18px; padding-right: 18px; }
  .ds .ds-ai__inner{ padding-left: 18px; padding-right: 18px; }
  .ds > section.cta-banner{ width: calc(100% - 36px); padding-left: 18px; padding-right: 18px; }
  .ds .hero__tags .tag{ font-size: 12px; padding: 5px 11px; }
}