/* ====================== */
/* COURSES LANDING STYLES */
/* ====================== */
:root {
  /* Color Palette */
  --bg-light: #f7fafc;       /* Light gray background */
  --bg-color: #ffffff;       /* White background */
  --card-bg: #ffffff;        /* White card background */
  --heading-color: #2d3748;  /* Dark blue-gray for headings */
  --text-muted: #718096;     /* Gray for secondary text */
  --primary: #4299e1;        /* Brand blue */
  --border: #e2e8f0;         /* Light gray border */

  /* Add any other missing variables your design needs */
}
.courses-landing {
    color: var(--text-primary);
}

/* Hero Section */
.courses-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 4rem 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    order: 2;
}

@media (min-width: 992px) {
    .hero-content {
        order: 1;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    order: 1;
    text-align: center;
}

@media (min-width: 992px) {
    .hero-image {
        order: 2;
    }
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Stats Section */
.courses-stats {
    background-color: var(--bg-light);
    padding: 2rem 0;
    margin: 2rem 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Featured Courses */
.featured-courses {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.courses-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.course-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.course-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

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

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

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

.course-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.course-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.course-meta i {
    margin-right: 0.25rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.course-rating {
    display: flex;
    align-items: center;
}

.stars {
    color: #fbbf24;
    margin-right: 0.5rem;
}

.course-price {
    text-align: right;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.current-price {
    font-weight: 700;
    color: var(--primary);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Learning Path */
.learning-path {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.path-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.path-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.path-item:last-child {
    margin-bottom: 0;
}

.path-item::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border);
    z-index: 0;
}

.path-item:last-child::before {
    display: none;
}

.path-level {
    text-align: center;
    position: relative;
    z-index: 1;
}

.path-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.path-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading-color);
}

.path-content {
    padding: 1rem 0;
}

.path-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.path-courses {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.path-courses li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.path-courses li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Testimonials */
.courses-testimonials {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.testimonial-content {
    flex: 1;
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-light);
    position: absolute;
    top: -1rem;
    left: -1rem;
    line-height: 1;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* CTA Section */
.courses-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .cta-container {
        grid-template-columns: 1fr 1fr;
    }
}

.cta-content {
    order: 2;
}

@media (min-width: 992px) {
    .cta-content {
        order: 1;
    }
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-image {
    order: 1;
    text-align: center;
}

@media (min-width: 992px) {
    .cta-image {
        order: 2;
    }
}

.cta-image img {
    max-width: 100%;
    height: auto;
}

/* Reset all inherited styles */
.courses-page * {
  all: initial;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Rebuild the document flow */
.courses-page {
  display: block;
  line-height: 1.5;
  color: #2d3748; /* Dark gray text */
  background-color: #ffffff; /* White background */
  padding: 20px;
}

/* Restyle headings */
.courses-page h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.courses-page h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.courses-page h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

/* Links styling */
.courses-page a {
  color: #4299e1; /* Blue links */
  text-decoration: none;
  cursor: pointer;
}

.courses-page a:hover {
  text-decoration: underline;
}

/* Grid layout */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Card styling */
.course-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}