/* Artificial Intelligence course page — global theme tokens from style.css */
.ac{ display: block; width: 100%; overflow-x: clip; }
.ac > section,
.ac > section.hero{ width: 100%; max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.ac section[id]{ scroll-margin-top: 96px; }
.ac p{ line-height: 1.65; text-wrap: pretty; overflow-wrap: break-word; }
.ac h1, .ac h2{ text-wrap: balance; }
.ac h1, .ac h2, .ac h3{ overflow-wrap: break-word; }
.ac > section:not(.hero){ padding-top: 40px; padding-bottom: 40px; }
.ac > section.hero{ padding-bottom: 48px; }
.ac .btn{ white-space: normal; text-align: center; justify-content: center; }
.ac .section__head{ max-width: 860px; margin-bottom: 28px; }
.ac .section__title{ font-size: clamp(24px, 3.2vw, 34px); line-height: 1.2; margin-bottom: 10px; }
.ac .section__sub{ max-width: 70ch; }

/* Hero */
.ac .ac-hero__inner{ grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 48px; align-items: start; }
.ac .ac-col{ min-width: 0; }
.ac .ac-hero__title{ font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; margin-bottom: 16px; }
.ac .hero__sub{ font-size: 16.5px; line-height: 1.7; max-width: 62ch; }
.ac .hero__actions{ margin: 24px 0; }
.ac .hero__tags{ gap: 8px; }

/* Grids & cards */
.ac-grid{ display: grid; gap: 16px; }
.ac-grid--2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.ac-card, .ac-path, .ac-case{
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 24px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.ac-card::before, .ac-path::before, .ac-case::before{
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 12px 12px 0 0;
  background: var(--gradient-brand); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.ac-card:hover, .ac-path:hover, .ac-case:hover{ transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--text-faint); }
.ac-card:hover::before, .ac-path:hover::before, .ac-case:hover::before{ transform: scaleX(1); }
.ac-card h3, .ac-path h3, .ac-case h3{ font-size: 18px; line-height: 1.3; margin-bottom: 10px; }

/* Pathways */
.ac-path .ac-path__sub{ font-size: 15.5px; font-weight: 500; color: var(--accent-2); }
.ac-path__who{ font-size: 14.5px; padding: 12px 14px; background: var(--bg-soft); border-radius: var(--radius-sm); margin-bottom: 14px; }
.ac-path__label{ font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; color: var(--accent-2); margin-bottom: 6px; }
.ac-path .btn{ margin-top: auto; }

/* Lists */
.ac-list{ display: grid; gap: 4px; margin-bottom: 20px; }
.ac-card .ac-list{ margin-bottom: 0; }
.ac-list li{ position: relative; padding: 6px 0 6px 20px; font-size: 14.5px; line-height: 1.6; color: var(--text-dim); }
.ac-list li::before{ content: "→"; position: absolute; left: 0; color: var(--accent-2); }
.ac-list strong{ color: var(--text); }
.ac-list--nested{ margin: 6px 0 0; }

/* Projects */
.ac-row{ margin: 0; padding: 10px 0; border-top: 1px solid var(--border-soft); font-size: 14px; line-height: 1.6; }
.ac-row strong{ display: block; margin-bottom: 2px; font-family: var(--font-mono); font-size: 12px; color: var(--accent-2); }
.ac-row--last{ margin-top: auto; padding: 12px 14px; border: 0; border-radius: var(--radius-sm); background: var(--success-soft); }
.ac-row--last strong{ color: var(--success); }

/* Accordions */
.ac .accordion{ border-top: 0; max-width: none; display: grid; gap: 10px; align-items: start; }
.ac .accordion__item{ background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; min-width: 0; }
.ac .accordion__item:hover{ background: var(--bg-soft); }
.ac .accordion__item.is-open{ background: var(--accent-soft); border-color: rgba(249,115,22,.3); }
.ac .accordion__trigger{ padding: 16px 18px; font-size: 16px; line-height: 1.4; gap: 12px; }
.ac .accordion__trigger > span:not(.accordion__icon){ flex: 1; min-width: 0; }
.ac .accordion__trigger:focus-visible{ outline-offset: -3px; }
.ac .accordion__panel p{ padding: 0 18px 14px; }
.ac .accordion__panel ul{ padding: 0 18px 14px; }
.ac .accordion__item.is-open .accordion__panel{ max-height: 1200px; }
.ac-faq{ max-width: 900px; }

/* Sticky CTA */
.ac-sticky{
  position: fixed; left: 50%; bottom: 16px; z-index: 39; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 20px; max-width: calc(100% - 100px);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-card);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.ac-sticky span{ font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--text); }
.ac-sticky.is-hidden{ opacity: 0; visibility: hidden; transform: translate(-50%, 16px); }

@media (max-width: 980px){
  .ac .ac-hero__inner{ grid-template-columns: minmax(0,1fr); gap: 32px; }
  .ac-grid--2{ grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 720px){
  .ac > section:not(.hero){ padding-top: 28px; padding-bottom: 28px; }
  .ac .section__head{ margin-bottom: 22px; }
  .ac .accordion__trigger{ font-size: 15.5px; padding: 14px 16px; }
  .ac .accordion__panel p, .ac .accordion__panel ul{ padding-left: 16px; padding-right: 16px; }
  .ac-sticky{ left: 12px; right: 76px; bottom: 12px; transform: none; max-width: none; padding: 6px; }
  .ac-sticky span{ display: none; }
  .ac-sticky .btn{ width: 100%; }
  .ac-sticky.is-hidden{ transform: translateY(16px); }
}
@media (max-width: 480px){
  .ac > section{ padding-left: 18px; padding-right: 18px; }
  .ac .hero__tags .tag{ font-size: 12px; padding: 5px 11px; }
}
@media (hover: none){ .ac-card:hover, .ac-path:hover, .ac-case:hover{ transform: none; } }

/* Breadcrumb */
.ac-breadcrumb{ margin-bottom: 18px; }
.ac-breadcrumb .breadcrumb__list{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.ac-breadcrumb .breadcrumb__item{ display: flex; align-items: center; gap: 6px; color: var(--text-dim); }
.ac-breadcrumb .breadcrumb__item + .breadcrumb__item::before{ content: "/"; color: var(--text-faint); }
.ac-breadcrumb .breadcrumb__item a{ color: var(--accent-2); font-weight: 600; }
.ac-breadcrumb .breadcrumb__item a:hover{ color: var(--accent); }
.ac-breadcrumb .breadcrumb__item[aria-current="page"]{ color: var(--text); font-weight: 600; }