/* ============================================================
   aws.css — AWS Course Page Styles
   Applies to: pages/aws.html
   ============================================================ */


/* ── 1. AWS HERO SECTION ──────────────────────────────────── */
.aws-hero {
  padding: 72px 0 60px;
  background: radial-gradient(ellipse at top left, #1a3a6e 0%, #111827 50%, #0a0e1a 100%);
  color: #e5e7eb;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}

/* Decorative glow blobs behind content */
.aws-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 20%,  rgba(96, 165, 250, 0.25) 0, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(129, 140, 248, 0.18) 0, transparent 50%);
  pointer-events: none;
}

/* Keep all child content above pseudo-element */
.aws-hero .container { position: relative; z-index: 1; }


/* ── 2. HERO — PILL BADGE ─────────────────────────────────── */
.aws-hero-pill {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 50px;
  background: rgba(10, 14, 26, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.30);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bfdbfe;
  margin-bottom: 18px;
}


/* ── 3. HERO — TITLE & TEXT ───────────────────────────────── */
.aws-hero-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  color: #f9fafb;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.aws-hero-subtitle {
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 20px;
}

/* Course detail list (Level, Format, etc.) */
.aws-hero-highlights {
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
}

.aws-hero-highlights li {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Bold label (Level:, Format:, etc.) */
.aws-hero-highlights li span {
  font-weight: 700;
  color: #93c5fd;
  min-width: 80px;
}


/* ── 4. HERO — CTA BUTTON ─────────────────────────────────── */
.aws-hero-cta {
  display: inline-block;
  background: #3b82f6;
  color: #fff !important;
  border-radius: 50px;
  padding: 13px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.aws-hero-cta:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}


/* ── 5. HERO — RIGHT SIDE CARD ────────────────────────────── */
.aws-hero-card {
  background: rgba(10, 14, 26, 0.80);
  border-radius: 16px;
  padding: 26px 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(59, 130, 246, 0.20);
  color: #e5e7eb;
  backdrop-filter: blur(8px);
}

.aws-hero-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 8px;
}

.aws-hero-card p {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 16px;
  line-height: 1.65;
}

.aws-hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aws-hero-card li {
  font-size: 0.875rem;
  color: #d1d5db;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

/* Blue bullet dot */
.aws-hero-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #60a5fa;
  font-weight: 700;
  font-size: 0.8rem;
}


/* ── 6. COURSE CONTENT SECTION ────────────────────────────── */
#aws-course-content {
  scroll-margin-top: var(--nav-height, 72px);
  background: var(--clr-bg, #0a0e1a);
  padding: 32px 0 64px;
}


/* ── 7. VIDEO PLAYER CARD ─────────────────────────────────── */
.aws-video-card {
  background: var(--clr-surface, #111827);
  border-radius: 16px;
  padding: 20px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(79, 142, 247, 0.12);
}

/* Header row above the video */
.aws-video-header {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 16px;
}

.aws-video-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text, #f0f4ff);
  margin-bottom: 3px;
}

.aws-video-subtitle {
  font-size: 0.82rem;
  color: var(--clr-text-muted, #8a94b0);
}

/* AWS Series badge */
.aws-video-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 5px 14px;
  border-radius: 50px;
  background: #1d4ed8;
  color: #eff6ff;
  white-space: nowrap;
  flex-shrink: 0;
}

/* YouTube iframe container */
.aws-video-body {
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.aws-video-body iframe {
  border: none;
  display: block;
}


/* ── 8. STICKY VIDEO WRAPPER ──────────────────────────────── */
.course-video-wrapper {
  position: sticky;
  top: calc(var(--nav-height, 72px) + 16px);
}


/* ── 9. COURSE CONTENT SIDEBAR ────────────────────────────── */
.course-sections {
  /* Scrollable sidebar on desktop */
  max-height: calc(100vh - 120px);
  overflow-y: auto;

  /* Thin custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--clr-accent, #4f8ef7) var(--clr-surface, #111827);
}

.course-sections::-webkit-scrollbar { width: 4px; }
.course-sections::-webkit-scrollbar-thumb {
  background: var(--clr-accent, #4f8ef7);
  border-radius: 2px;
}

/* Sidebar heading */
.course-sections h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text, #f0f4ff);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}


/* ── 10. ACCORDION — SECTION HEADERS ─────────────────────── */
.course-sections .accordion-item {
  background: var(--clr-surface, #111827);
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 8px !important;
  overflow: hidden;
  margin-bottom: 6px;
}

.course-sections .accordion-button {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-text, #f0f4ff);
  background: var(--clr-surface, #111827);
  padding: 14px 16px;
  box-shadow: none !important;
}

/* Expanded state */
.course-sections .accordion-button:not(.collapsed) {
  background: rgba(79, 142, 247, 0.12);
  color: #93c5fd;
}

/* Arrow icon color */
.course-sections .accordion-button::after {
  filter: invert(1) brightness(0.7);
}

.course-sections .accordion-button:not(.collapsed)::after {
  filter: none;
}

/* Accordion body bg */
.course-sections .accordion-body {
  background: var(--clr-surface2, #1a2235);
  padding: 0 !important;
}


/* ── 11. LESSON LIST ITEMS ────────────────────────────────── */
.course-video-list .list-group-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--clr-text-muted, #8a94b0);
  padding: 11px 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-left 0.2s ease;
}

/* Hover state */
.course-video-list .list-group-item:hover {
  background: rgba(79, 142, 247, 0.08);
  color: var(--clr-text, #f0f4ff);
}

/* Currently playing lesson */
.course-video-list .list-group-item.active {
  background: rgba(79, 142, 247, 0.15) !important;
  color: #93c5fd !important;
  font-weight: 600;
  border-left: 3px solid #4f8ef7;
}

/* Last item — no bottom border */
.course-video-list .list-group-item:last-child {
  border-bottom: none;
}


/* ── 12. BREADCRUMB BAR ───────────────────────────────────── */
.aws-breadcrumb {
  background: var(--clr-surface, #111827);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 10px 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.breadcrumb-list li a {
  font-size: 0.82rem;
  color: var(--clr-text-muted, #8a94b0);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-list li a:hover { color: var(--clr-accent, #4f8ef7); }

.breadcrumb-list .separator {
  color: var(--clr-text-dim, #4a5568);
  font-size: 0.82rem;
}

.breadcrumb-list .current {
  font-size: 0.82rem;
  color: var(--clr-accent, #4f8ef7);
  font-weight: 500;
}


/* ── 13. COURSE STATS BAR ─────────────────────────────────── */
.aws-stats-bar {
  background: var(--clr-surface, #111827);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 14px 0;
}

.aws-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.aws-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 24px;
}

.aws-stat-icon { font-size: 1rem; }

.aws-stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-text, #f0f4ff);
}

.aws-stat-label {
  font-size: 0.75rem;
  color: var(--clr-text-muted, #8a94b0);
}

.aws-stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}


/* ── 14. NEXT LESSON BAR (below video) ────────────────────── */
.aws-next-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px 4px;
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
  gap: 12px;
  flex-wrap: wrap;
}

.aws-next-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.aws-next-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--clr-text-dim, #4a5568);
}

.aws-next-title {
  font-size: 0.88rem;
  color: var(--clr-text-muted, #8a94b0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aws-next-btn {
  background: var(--clr-accent, #4f8ef7);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 9px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.aws-next-btn:hover {
  background: var(--clr-accent-light, #6ba3ff);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79,142,247,0.35);
}

.aws-next-btn:disabled {
  background: var(--clr-surface2, #1a2235);
  color: var(--clr-text-dim, #4a5568);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* ── 15. PROGRESS INDICATOR ───────────────────────────────── */
.aws-progress-box {
  background: var(--clr-surface2, #1a2235);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.aws-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.aws-progress-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-text, #f0f4ff);
}

.aws-progress-count {
  font-size: 0.78rem;
  color: var(--clr-accent, #4f8ef7);
  font-weight: 600;
}

/* Progress bar track */
.aws-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 8px;
}

/* Animated fill bar */
.aws-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f8ef7, #a78bfa);
  border-radius: 50px;
  transition: width 0.5s ease;
}

.aws-progress-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--clr-text-muted, #8a94b0);
}


/* ── 16. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 991px) {
  /* On mobile, video is not sticky */
  .course-video-wrapper {
    position: static;
  }

  /* Sidebar takes full height on mobile */
  .course-sections {
    max-height: none;
    overflow-y: visible;
    margin-top: 24px;
  }

  .aws-hero {
    padding: 60px 0 40px;
    min-height: auto;
  }

  .aws-hero-card {
    margin-top: 28px;
  }
}

@media (max-width: 768px) {
  .aws-hero-title { font-size: 1.9rem; }
  .aws-video-badge { display: none; }
  .aws-video-card { padding: 14px 14px 16px; }

  /* Stack stat items on small screens */
  .aws-stat-divider { display: none; }
  .aws-stat-item { padding: 6px 14px; }

  /* Breadcrumb smaller */
  .breadcrumb-list li a,
  .breadcrumb-list .separator,
  .breadcrumb-list .current { font-size: 0.75rem; }

  /* Next bar stacks vertically */
  .aws-next-bar { flex-direction: column; align-items: flex-start; }
  .aws-next-btn { width: 100%; text-align: center; }
}