/* =========================================
   COURSES OVERVIEW PAGE
   ========================================= */

/* === COHORT HIGHLIGHT BANNER === */
.cohort-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 1.5rem 0;
  position: relative;
  overflow: hidden;
}
.cohort-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 50%, rgba(200,169,81,0.15) 0%, transparent 50%),
              radial-gradient(circle at 90% 50%, rgba(200,169,81,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.cohort-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}
.cohort-banner-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #c8a951;
  color: #0f2548;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cohort-pulse 2.5s ease-in-out infinite;
}
.cohort-banner-icon svg {
  stroke: #0f2548;
}
@keyframes cohort-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,169,81,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(200,169,81,0); }
}
.cohort-banner-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}
.cohort-banner-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
  line-height: 1.5;
}
.cohort-banner-text strong {
  color: var(--gold);
  font-weight: 700;
}
.cohort-banner .btn {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .cohort-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .cohort-banner-content {
    flex-direction: column;
    gap: 1rem;
  }
  .cohort-banner-text {
    font-size: 0.95rem;
  }
}

/* === HERO === */
.courses-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  padding: 5rem 0 4rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.courses-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(200,169,81,0.08) 0%, transparent 60%);
}
.courses-hero .container { position: relative; z-index: 1; }
.courses-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26,60,110,0.2);
  border: 1px solid rgba(26,60,110,0.4);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.courses-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.courses-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.hero-badges { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
}

/* === LMS BANNER === */
.lms-banner {
  background: var(--gold-pale);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid rgba(26,60,110,0.2);
  padding: 2.5rem 0;
  text-align: center;
}
.lms-banner-text {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}
.lms-features {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.lms-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.lms-feature-icon {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

/* === COURSE CARDS === */
.courses-section {
  padding: 5rem 0;
  background: var(--white);
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.course-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
}
.course-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.course-card-muted { opacity: 0.88; }

.course-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  z-index: 2;
}
.badge-available { background: #d4edda; color: #1a6632; border: 1px solid #a3d9b1; }
.badge-soon { background: #fff3cd; color: #856404; border: 1px solid #ffe083; }

.course-card-header {
  background: var(--navy);
  padding: 1.5rem;
  color: var(--white);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.course-card-header.muted { background: var(--navy-mid); opacity: 0.85; }
.course-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}
.course-card-header p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
}

.course-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.course-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--gray-500);
}
.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}
.course-meta span:not(:last-child)::after {
  content: '·';
  margin-left: 0.5rem;
  color: var(--gray-300);
}
.course-topics { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.course-topics li {
  font-size: 0.8rem;
  color: var(--gray-700);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}
.course-topics li::before {
  content: '\2713';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.progress-wrap { margin-top: 0.25rem; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 0.4rem;
}
.progress-bar {
  background: var(--gray-200);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--gold);
  transition: width 0.4s;
}

.course-card-footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.course-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}
.course-prereq {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
}
.btn-disabled {
  background: var(--gray-200);
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
  cursor: not-allowed;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  width: 100%;
  text-align: center;
}

/* === FAQ === */
section.faq-section {
  padding: 5rem 0;
  background: var(--gray-50);
}
.faq-section .faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-section .faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-section .faq-item:hover {
  border-color: var(--gray-300);
}
.faq-section .faq-item.open {
  border-color: var(--navy);
  box-shadow: 0 4px 16px rgba(26,60,110,0.1);
}
.faq-section .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  gap: 1rem;
  transition: background 0.2s;
  -webkit-user-select: none;
  user-select: none;
}
.faq-section .faq-question:hover {
  background: var(--gray-50);
}
.faq-section .faq-item.open .faq-question {
  background: rgba(26,60,110,0.03);
}
.faq-section .faq-toggle {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  border-radius: 50%;
  background: var(--navy);
  position: relative;
  flex-shrink: 0;
  display: block;
  transition: background 0.25s, transform 0.25s;
}
.faq-section .faq-toggle::before,
.faq-section .faq-toggle::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 1px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}
.faq-section .faq-toggle::before {
  width: 12px;
  height: 2px;
}
.faq-section .faq-toggle::after {
  width: 2px;
  height: 12px;
}
.faq-section .faq-item.open .faq-toggle {
  background: var(--gold);
  transform: rotate(45deg);
}
.faq-section .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.75;
}
.faq-section .faq-answer > * {
  overflow: hidden;
}
.faq-section .faq-item.open .faq-answer {
  grid-template-rows: 1fr;
  padding: 0 1.5rem 1.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .course-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .course-grid { grid-template-columns: 1fr; }
  .course-card-header { min-height: auto; }
  .lms-features { gap: 1.5rem; }
  .courses-hero { padding: 3rem 0 2.5rem; }
}
