/* ═══════════════════════════════════════════════
   Prozo Supply Chain Academy — academy.css
   All classes prefixed with ac-
   ═══════════════════════════════════════════════ */

:root {
  --ac-dark: #1a1a2e;
  --ac-orange: #f26522;
  --ac-white: #ffffff;
  --ac-gray-600: #6b7280;
  --ac-gray-200: #e5e7eb;
  --ac-gray-50: #f8f9fc;
}

/* ── Reset & base ── */

.ac-page {
  font-family: "Poppins", sans-serif;
  color: #333;
  overflow-x: hidden;
}

/* ════════════════════════════════════════
   S1 — HERO
   ════════════════════════════════════════ */

.ac-hero {
  background: var(--ac-dark);
  color: var(--ac-white);
  text-align: center;
  padding: 100px 24px 72px;
}

.ac-hero__inner {
  max-width: 820px;
  margin: 0 auto;
}

.ac-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ac-orange);
  margin-bottom: 16px;
}

.ac-hero__title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 20px;
}

.ac-hero__subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: #b0b3c5;
  max-width: 640px;
  margin: 0 auto 40px;
}

.ac-hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 40px;
}

.ac-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ac-hero__stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--ac-orange);
}

.ac-hero__stat-label {
  font-size: 13px;
  color: #9ca0b3;
  margin-top: 4px;
}

.ac-hero__cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--ac-orange);
  color: var(--ac-white);
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
}

.ac-hero__cta:hover {
  background: #d9551a;
  transform: translateY(-2px);
  color: var(--ac-white);
  text-decoration: none;
}

/* ════════════════════════════════════════
   S2 — FEATURED VIDEO
   ════════════════════════════════════════ */

.ac-featured {
  background: var(--ac-white);
  padding: 72px 24px;
}

.ac-featured__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.ac-featured__video {
  flex: 0 0 60%;
  min-width: 0;
}

.ac-aspect-16-9 {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.ac-aspect-16-9 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ac-featured__info {
  flex: 1;
  min-width: 0;
}

.ac-featured__badge {
  display: inline-block;
  background: var(--ac-orange);
  color: var(--ac-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.ac-featured__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 14px;
  color: var(--ac-dark);
}

.ac-featured__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ac-gray-600);
  margin: 0 0 16px;
}

.ac-featured__duration {
  display: block;
  font-size: 13px;
  color: var(--ac-gray-600);
  margin-bottom: 20px;
}

.ac-featured__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--ac-orange);
  text-decoration: none;
  transition: color 0.2s;
}

.ac-featured__link:hover {
  color: #d9551a;
  text-decoration: underline;
}

/* ════════════════════════════════════════
   S3 — CATEGORY FILTER BAR (sticky)
   ════════════════════════════════════════ */

.ac-filter-bar {
  background: var(--ac-gray-50);
  position: sticky;
  top: 60px;
  z-index: 100;
  padding: 16px 24px;
  border-bottom: 1px solid var(--ac-gray-200);
}

.ac-filter-bar__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ac-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--ac-gray-200);
  border-radius: 999px;
  background: var(--ac-white);
  color: var(--ac-gray-600);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.ac-filter-pill:hover {
  border-color: var(--ac-orange);
  color: var(--ac-orange);
}

.ac-filter-pill--active {
  background: var(--ac-orange);
  color: var(--ac-white);
  border-color: var(--ac-orange);
}

.ac-filter-pill--active:hover {
  background: #d9551a;
  color: var(--ac-white);
  border-color: #d9551a;
}

.ac-filter-pill__count {
  font-size: 12px;
  opacity: 0.8;
}

/* ════════════════════════════════════════
   S4 — VIDEO GRID
   ════════════════════════════════════════ */

.ac-grid-section {
  background: var(--ac-white);
  padding: 56px 24px;
}

.ac-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Card ── */

.ac-card {
  background: var(--ac-white);
  border: 1px solid var(--ac-gray-200);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.ac-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.ac-card:focus-visible {
  outline: 2px solid var(--ac-orange);
  outline-offset: 2px;
}

/* Thumbnail wrapper */
.ac-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ac-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Play overlay */
.ac-card__play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.ac-card:hover .ac-card__play-overlay,
.ac-amazon__card:hover .ac-card__play-overlay {
  opacity: 1;
}

.ac-card__play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 18px 0 18px 30px;
  border-color: transparent transparent transparent var(--ac-white);
}

/* Duration badge */
.ac-card__duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: var(--ac-white);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.4;
  z-index: 2;
}

/* Category badge */
.ac-card__category-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--ac-orange);
  color: var(--ac-white);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

/* Card body */
.ac-card__body {
  padding: 16px;
}

.ac-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 8px;
  color: var(--ac-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ac-card__views {
  font-size: 12px;
  color: var(--ac-gray-600);
  display: block;
}

.ac-card__speaker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ac-orange);
  margin-top: 6px;
}

/* ════════════════════════════════════════
   S5 — VIDEO MODAL
   ════════════════════════════════════════ */

.ac-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ac-modal__content {
  position: relative;
  background: var(--ac-white);
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  overflow: hidden;
  animation: ac-fadeIn 0.25s ease;
}

@keyframes ac-fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ac-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--ac-white);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}

.ac-modal__close:hover {
  color: var(--ac-orange);
}

.ac-modal__video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}

.ac-modal__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ac-modal__title {
  font-size: 17px;
  font-weight: 600;
  padding: 20px 24px 8px;
  margin: 0;
  color: var(--ac-dark);
}

.ac-modal__link {
  display: block;
  padding: 0 24px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ac-orange);
  text-decoration: none;
}

.ac-modal__link:hover {
  text-decoration: underline;
}

/* ════════════════════════════════════════
   S6 — THOUGHT LEADERSHIP SPOTLIGHT
   ════════════════════════════════════════ */

.ac-spotlight {
  background: var(--ac-gray-50);
  padding: 72px 24px;
}

.ac-spotlight__inner {
  max-width: 1140px;
  margin: 0 auto;
}

.ac-spotlight__heading {
  font-size: 30px;
  font-weight: 700;
  color: var(--ac-dark);
  margin: 0 0 36px;
  text-align: center;
}

.ac-spotlight__layout {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.ac-spotlight__bio {
  flex: 0 0 30%;
  min-width: 0;
}

.ac-spotlight__bio-card {
  background: var(--ac-white);
  border: 1px solid var(--ac-gray-200);
  border-radius: 10px;
  padding: 28px 24px;
}

.ac-spotlight__bio-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ac-dark);
  margin: 0 0 4px;
}

.ac-spotlight__bio-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ac-orange);
  margin-bottom: 16px;
}

.ac-spotlight__bio-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ac-gray-600);
  margin: 0 0 20px;
}

.ac-spotlight__bio-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ac-orange);
  text-decoration: none;
}

.ac-spotlight__bio-link:hover {
  text-decoration: underline;
}

/* Horizontal scroll */
.ac-spotlight__scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.ac-spotlight__scroll-track {
  display: flex;
  gap: 20px;
  padding-bottom: 8px;
}

.ac-spotlight__card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: var(--ac-white);
  border: 1px solid var(--ac-gray-200);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.ac-spotlight__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ac-spotlight__card:focus-visible {
  outline: 2px solid var(--ac-orange);
  outline-offset: 2px;
}

.ac-spotlight__card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ac-spotlight__card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ac-spotlight__card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  padding: 12px;
  margin: 0;
  color: var(--ac-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ════════════════════════════════════════
   S7 — AMAZON SERIES
   ════════════════════════════════════════ */

.ac-amazon {
  background: var(--ac-white);
  padding: 72px 24px;
}

.ac-amazon__inner {
  max-width: 1140px;
  margin: 0 auto;
}

.ac-amazon__heading {
  font-size: 30px;
  font-weight: 700;
  color: var(--ac-dark);
  margin: 0 0 36px;
  text-align: center;
}

.ac-amazon__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ac-amazon__card {
  background: var(--ac-white);
  border: 1px solid var(--ac-gray-200);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.ac-amazon__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.ac-amazon__card:focus-visible {
  outline: 2px solid var(--ac-orange);
  outline-offset: 2px;
}

.ac-amazon__card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ac-amazon__card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ac-amazon__part-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--ac-orange);
  color: var(--ac-white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 4px;
  z-index: 2;
}

.ac-amazon__card-body {
  padding: 16px;
}

.ac-amazon__card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--ac-dark);
}

.ac-amazon__card-duration {
  font-size: 13px;
  color: var(--ac-gray-600);
}

/* ════════════════════════════════════════
   S8 — SUBSCRIBE CTA
   ════════════════════════════════════════ */

.ac-subscribe {
  background: var(--ac-dark);
  color: var(--ac-white);
  text-align: center;
  padding: 72px 24px;
}

.ac-subscribe__inner {
  max-width: 640px;
  margin: 0 auto;
}

.ac-subscribe__title {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 28px;
}

.ac-subscribe__btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--ac-orange);
  color: var(--ac-white);
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
  margin-bottom: 20px;
}

.ac-subscribe__btn:hover {
  background: #d9551a;
  transform: translateY(-2px);
  color: var(--ac-white);
  text-decoration: none;
}

.ac-subscribe__note {
  font-size: 14px;
  color: #9ca0b3;
  margin: 0;
}

/* ════════════════════════════════════════
   RESPONSIVE — 1024px
   ════════════════════════════════════════ */

@media (max-width: 1024px) {
  .ac-hero__title {
    font-size: 36px;
  }

  .ac-featured__inner {
    flex-direction: column;
  }

  .ac-featured__video {
    flex: none;
    width: 100%;
  }

  .ac-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ac-spotlight__layout {
    flex-direction: column;
  }

  .ac-spotlight__bio {
    flex: none;
    width: 100%;
  }

  .ac-amazon__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ════════════════════════════════════════
   RESPONSIVE — 768px
   ════════════════════════════════════════ */

@media (max-width: 768px) {
  .ac-hero {
    padding: 80px 20px 56px;
  }

  .ac-hero__title {
    font-size: 28px;
  }

  .ac-hero__subtitle {
    font-size: 15px;
  }

  .ac-hero__stats {
    gap: 28px;
  }

  .ac-hero__stat-number {
    font-size: 26px;
  }

  .ac-featured {
    padding: 48px 20px;
  }

  .ac-featured__title {
    font-size: 18px;
  }

  .ac-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .ac-filter-bar__inner {
    gap: 8px;
  }

  .ac-filter-pill {
    padding: 6px 14px;
    font-size: 13px;
  }

  .ac-spotlight__heading,
  .ac-amazon__heading,
  .ac-subscribe__title {
    font-size: 24px;
  }

  .ac-spotlight__card {
    flex: 0 0 200px;
  }

  .ac-amazon__grid {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════
   RESPONSIVE — 480px
   ════════════════════════════════════════ */

@media (max-width: 480px) {
  .ac-hero {
    padding: 72px 16px 48px;
  }

  .ac-hero__title {
    font-size: 24px;
  }

  .ac-hero__stats {
    gap: 20px;
  }

  .ac-hero__stat-number {
    font-size: 22px;
  }

  .ac-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ac-filter-bar {
    top: 56px;
    padding: 12px 16px;
  }

  .ac-filter-bar__inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .ac-filter-pill {
    flex-shrink: 0;
  }

  .ac-featured {
    padding: 36px 16px;
  }

  .ac-featured__inner {
    gap: 24px;
  }

  .ac-spotlight {
    padding: 48px 16px;
  }

  .ac-spotlight__card {
    flex: 0 0 180px;
  }

  .ac-amazon {
    padding: 48px 16px;
  }

  .ac-subscribe {
    padding: 48px 16px;
  }

  .ac-subscribe__title {
    font-size: 20px;
  }

  .ac-modal__content {
    border-radius: 8px;
  }

  .ac-modal__title {
    font-size: 15px;
    padding: 16px 16px 6px;
  }

  .ac-modal__link {
    padding: 0 16px 16px;
  }
}
