/* ===============================
   YOUTUBE COURSES SECTION
================================ */

.youtube-courses-section {
  max-width: 1200px;
  padding: 0 20px;
  text-align: center;
}
.youtube-courses-section a{
text-decoration: none;
}
.youtube-courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

/* CARD */
.yt-course-card {
  width: 220px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #111827;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  transition: all .3s ease;
  cursor: pointer;
  margin: auto;
}

.yt-course-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 18px 40px rgba(0,0,0,.15);
}

/* ===============================
   SOFT DIFFERENT COLORS
================================ */

.card-1  { background: #eef2ff; }
.card-2  { background: #ecfeff; }
.card-3  { background: #f0fdf4; }
.card-4  { background: #fff7ed; }
.card-5  { background: #fdf2f8; }
.card-6  { background: #fefce8; }
.card-7  { background: #f1f5f9; }
.card-8  { background: #ecfdf5; }
.card-9  { background: #f5f3ff; }
.card-10 { background: #fff1f2; }
.card-11 { background: #f0f9ff; }
.card-12 { background: #fafafa; }


/* ===============================
   MOBILE
   ✔ Phone → 2 cards per row
================================ */

@media (max-width: 768px) {
  .youtube-courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px; /* optional – better spacing */
    justify-items: center;
  }

  .yt-course-card {
    width: 100%;
    max-width: 100%;
  }
}

    .dsa-youtube-links{
        padding: 20px 60px;
        margin-top: 30px;
        border: none;
        border-radius: 12px;
        color: white;
        font-size: 16px;
          background: linear-gradient(to right, #6366f1, #ec4899);
    } 
    .dsa-youtube-links a{
        color: white;
        font-weight: 600;
    }



    
/* Default hide mobile ad */
.mobile-ad { display: none; }
.desktop-ad { display: block; }

/* When screen is below 1024px → show phone ad */
@media (max-width: 1024px) {
  .desktop-ad { display: none; }
  .mobile-ad { display: block; }
}

/* Center ads safely */
.responsive-ad {
  display: flex;
  justify-content: center;
  margin: 20px auto;
}










/* ===============================
   FREE DSA COURSES SECTION
================================ */
.free-dsa-section {
  padding: 10px 20px;
  display: flex;
  justify-content: center;
}

.free-dsa-card {
  width: 100%;
  max-width: 1000px;
  height: 300px;
  background: linear-gradient(135deg, #f5f7ff, #eefcf4);
  border-radius: 28px;
  display: flex;
  gap: 30px;
  padding: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,.08);
}

/* LEFT */
.free-dsa-content {
  flex: 1.3;
}

.free-dsa-content h2 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 12px;
  color: #5d96e6;
}

.free-dsa-content p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 26px;
  max-width: 360px;
}

.free-dsa-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #c522af);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: all .3s ease;
}

.free-dsa-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(99,102,241,.4);
}

/* RIGHT */
.free-dsa-features {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.dsa-feature-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 8px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  transition: all .3s ease;
}

.dsa-feature-card span {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.dsa-feature-card h4 {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}

.dsa-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,.15);
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 768px) {
  .free-dsa-card {
    flex-direction: column;
    height: auto;
    padding: 30px;
  }
  .free-dsa-content h2 {
   text-align: center;
}

  .free-dsa-content p {
    max-width: 100%;
  }

  .free-dsa-features {
    grid-template-columns: repeat(2, 1fr);
  }
}
