/* Course Page Specific Styles */

:root {
  --course-card-bg: #ffffff;
  --course-card-border: #e2e8f0;
  --course-card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --primary-color: #0284c7;
  /* Sky 600 */
  --text-main: #0f172a;
  --text-muted: #64748b;
}

/* Hero Section */
.course-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 4rem 1rem 6rem;
  /* Extra padding bottom for overlap if needed */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.course-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.course-hero p {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.course-hero .btn-primary {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.4);
  margin-top: 1rem;
}

.course-hero .btn-primary:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(2, 132, 199, 0.6);
}

/* Page Layout - Full width light background */
.page-container {
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 3rem 1rem 0;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  min-height: 100vh;
}

.course-content-card {
  display: block !important;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

/* Filters */
.filter-section {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.3);
}

/* Course Grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

/* Elite Course Card */
.course-card {
  background: var(--course-card-bg);
  border: 1px solid var(--course-card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--course-card-hover-shadow);
  border-color: var(--primary-color);
}

.card-image-wrapper {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .card-image-wrapper img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  /* Moved to left to avoid badge overlap */
  background: rgba(15, 23, 42, 0.9);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  line-height: 1.4;
}

.card-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
  margin-top: auto;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.card-cta {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s ease;
}

.course-card:hover .card-cta {
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .course-hero h1 {
    font-size: 2rem;
  }

  .page-container {
    margin-top: -2rem;
  }
}

/* --- Detail Page Sections --- */

.course-detail section {
  margin-bottom: 5rem;
}

.course-detail h2 {
  font-size: 1.75rem;
  color: var(--text-main);
  margin-bottom: 2rem;
  font-weight: 700;
  text-align: center;
}

/* Benefits Grid */
.benefits {
  max-width: 700px;
  margin: 0 auto;
}

.benefits ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}

.benefits li {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.benefits strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

/* Curriculum List */
.curriculum {
  max-width: 700px;
  margin: 0 auto;
}

.curriculum ol {
  counter-reset: module-counter;
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
}

.curriculum li {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 5rem;
  margin-bottom: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  text-align: left;
  transition: all 0.3s ease;
}

.curriculum li:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.curriculum li::before {
  counter-increment: module-counter;
  content: counter(module-counter);
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Instructor Tweaks */
.instructors {
  max-width: 700px;
  margin: 0 auto;
}

.instructor-profiles figure {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  text-align: center;
}

.instructor-profiles img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 4px solid white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.instructor-profiles figcaption {
  flex: 1;
  min-width: 250px;
}

.instructor-profiles h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: var(--secondary-color);
}

/* FAQ Section */
.faq {
  max-width: 700px;
  margin: 0 auto;
}

/* Enrollment Section */
.enroll {
  max-width: 100%;
  margin: 3rem 0 0;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  border-radius: 0;
}

.enroll h2 {
  color: var(--text-main);
  margin-bottom: 1rem;
}

.enroll>p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.enroll .pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.enroll .price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 1rem 0;
}

.enroll .price+p {
  color: #10b981;
  font-weight: 600;
  margin-bottom: 2rem;
}

.enroll .btn-primary,
.enroll .cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.4);
  margin-bottom: 1rem;
}

.enroll .btn-primary:hover,
.enroll .cta-button:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(2, 132, 199, 0.6);
}

.enroll p:last-child {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}