/* Hero Section Scoped CSS */
.courses-hero-section {
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  padding: 80px 20px;
  margin: auto;
  background: linear-gradient(to bottom, #d2f8ed, #a8e2f8);
}

.courses-hero-section .hero-content {
  max-width: 1400px;
  margin: auto;
}

.courses-hero-section h1 {
  font: 1em sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  max-width: 80%;
  margin: auto;
  line-height: 4.5rem;
  margin-bottom: 20px;
}

.courses-hero-section h1 span {
  background: linear-gradient(to right, #10b981, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.courses-hero-section p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: auto;
  font-weight: 400;
  margin-bottom: 40px;
  color: #444;
}

.courses-hero-section .hero-buttons {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.courses-hero-section .btn {
  padding: 0.75rem 4rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.courses-hero-section .btn-primary {
  background: linear-gradient(to right, #10b981, #3b82f6);
  color: #fff;
}

.courses-hero-section .btn-primary:hover {
  background: linear-gradient(to right, #34d399, #2563eb);
}

.courses-hero-section .btn-secondary {
  background: #fff;
  color: #333;
}

.courses-hero-section .btn-secondary:hover {
  background: #f1f1f1;
}

.courses-hero-section .features {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.courses-hero-section .feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  width: 380px;
  height: 200px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.courses-hero-section .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Unique Card Backgrounds */
.courses-hero-section .card-1 {
  background: radial-gradient(circle at top left, #e1f7e6 0%, #f6fdfc 100%);
}

.courses-hero-section .card-2 {
  background: radial-gradient(circle at top left, #dff7ff 0%, #ffffff 100%);
}

.courses-hero-section .card-3 {
  background: radial-gradient(circle at top left, #dfffe9 0%, #f9fff9 100%);
}

.courses-hero-section .feature-icon {
  font-size: 2rem;
  margin-bottom: 1px;
}

.courses-hero-section .feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.courses-hero-section .feature-card p {
  font-size: 0.95rem;
  color: #555;
}

/* 📱 Mobile Responsive Styles */
@media (max-width: 768px) {
  .courses-hero-section {
    padding: 60px 15px;
  }

  .courses-hero-section h1 {
    font-size: 2.5rem;
    line-height: 2.8rem;
    max-width: 100%;
  }

  .courses-hero-section p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .courses-hero-section .hero-buttons {
    flex-direction: column;
    gap: 16px;
  }

  .courses-hero-section .btn {
    width: 70%;
    margin: auto;
    padding: 0.75rem 1rem;
  }

  .courses-hero-section .features {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }

  .courses-hero-section .feature-card {
    width: 90%;
    max-width: 100%;
    height: auto;
    padding: 10px;
  }

  .courses-hero-section .feature-card h3 {
    font-size: 1.1rem;
  }

  .courses-hero-section .feature-card p {
    font-size: 0.9rem;
  }
}



  /* courses-section */

  .courses-section {
    display: flex;
    gap: 15px;
    padding: 20px;
    max-width: 1400px;
    margin: auto;
    align-items: flex-start;
  }
.section-heading{
  font: 1em sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  max-width: 80%;
  margin: auto;
  line-height: 4.5rem;
    background: linear-gradient(to right, #10b981, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


  /* Sidebar */
  .sidebar {
    width: 290px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
  }

  .sidebar input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
  }

  .sidebar ul {
    list-style: none;
    padding: 0;
  }

  .sidebar li {
     background: #f0f4ff;
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 5px;
    transition: background 0.2s;
  }

  .sidebar li:hover {
    background: #f0f4ff;
    font-weight: 600;
  }
/* Sidebar background */
.sidebar {
  background: radial-gradient(circle at top left, #e1f7e6 0%, #f6fdfc 100%);
  background: linear-gradient(to right, #10b981, #3b82f6);
  background: linear-gradient(to bottom, #d2f8ed, #a8e2f8);
  padding: 15px;
  border-radius: 10px;
}

/* Sidebar headings */
.sidebar h3 {
  background: linear-gradient(to right, #10b981, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sidebar list items */
.sidebar li {
  color: #1e3a8a; /* deep blue */
}

  /* Main container (courses + ads on right) */
  .main-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 20px;
  }

  .course-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 10px;
    align-items: stretch;
    width: 840px;
  }

  .course-card {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    max-width: 275px;   /* fix smaller card width */
    margin: auto;
    height: 380px;
  }

  .course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .course-card img {
    width: 100%;
   height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
  }

  .course-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
      background: linear-gradient(to right, #10b981, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  }

  .course-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: normal;
  }

.course-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  background: linear-gradient(to right, #10b981, #3b82f6);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.3s;
}

.course-btn:hover {
  background: linear-gradient(to right, #34d399, #2563eb);
}



  /* Ads */
  .ads {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .ad-box {
    flex: 1;
    width: 220px;
    background: #fefefe;
    border: 1px dashed #bbb;
    border-radius: 8px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #777;
  }







/* =========================
   Tablet (≤768px)
   ========================= */
@media (max-width: 768px) {

    .section-heading{
        font-size: 2rem;
          line-height: 2rem;
    }
  /* Sidebar full width */
  .sidebar {
    width: 100%;
    margin-bottom: 15px;
       position: static;
  }

  /* Sidebar list as horizontal scroll */
  .sidebar ul {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    padding-bottom: 8px;
    scrollbar-width: thin; /* Firefox */
  }

  .sidebar li {
    flex: 0 0 auto;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
  }

  /* Scrollbar styling */
  .sidebar ul::-webkit-scrollbar {
    height: 6px;
  }
  .sidebar ul::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
  }

  /* Main layout */
  .courses-section {
    flex-direction: column;
  }

  .main-content {
    flex-direction: column;
  }

  /* Course cards → 3 per row */
  .course-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .course-card {
    max-width: 100%;
    height: auto;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
  }

  /* Ads always below courses */
  .ads {
    order: 2; /* push below */
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .ad-box {
    width: 100%;
    height: 220px;
    background: #f0f0f0;
    border: 1px dashed #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


/* =========================
   Mobile (≤576px)
   ========================= */
@media (max-width: 576px) {
  /* Sidebar search input */
  .sidebar input {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
  }

  /* Sidebar ul as horizontal scroll */
  .sidebar ul {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding-bottom: 8px;
    scrollbar-width: thin; /* Firefox */
  }

  .sidebar li {
    flex: 0 0 auto;          /* Prevent shrinking */
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
  }

  /* Optional scroll bar styling */
  .sidebar ul::-webkit-scrollbar {
    height: 6px;
  }
  .sidebar ul::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
  }

  /* Main layout */
  .courses-section {
    flex-direction: column;
  }

  .main-content {
    flex-direction: column;
  }

  /* Course cards → 2 per row */
  .course-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .course-card {
    max-width: 100%;
    height: auto;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
  }

  /* Ads below course cards */
  .ads {
    order: 2; /* push ads below */
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .ad-box {
    width: 100%;
    height: 180px;
    background: #f0f0f0;
    border: 1px dashed #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


/* Phone responsive – hide ebook-list */
@media (max-width: 576px) {
  .sidebar .ebook-list {
    display: none;
  }
}




.footer{
    background: linear-gradient(to bottom, #ccfff1, #38bcf0);
}