/*
Theme Name: Sandbox Child
Theme URI: https://demo.oceanthemes.site/sandbox/
Author: Your Name
Author URI: https://yourwebsite.com
Description: Child theme for the Sandbox theme.
Template: sandbox
Version: 1.0
Text Domain: sandbox-child
*/
/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
  LearnDash Courses & Single Post Custom Styles
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/

/* Hide the default LearnDash “Open to access this content” line */
body.post-type-archive-sfwd-courses .page-header + p {
  display: none;
}

/* Courses archive tagline */
.pm-courses-tagline {
  color: #000;
  font-size: 1rem;
  text-align: center;
  margin: 0.5rem 0 1.5rem;
}

/* Two-column courses banner */
.pm-course-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  justify-content: center;
}
.pm-course-banner__col {
  flex: 1 1 300px;
}
.pm-course-banner__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Single post styles */
.post-header {
  padding: 3rem 0;
  background: #f8f9fa;
}
.post-title {
  color: #421e5f;
  margin-bottom: 1.5rem;
  font-size: 2.25rem;
}
.post-featured-image {
  margin: 0 auto 2rem;
  max-width: 1200px;
  overflow: hidden;
  border-radius: 8px;
}
.post-featured-image__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Ad banner on single posts */
.post-ad-banner {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
}
.post-ad-banner .rev_slider_wrapper,
.post-ad-banner .rev_slider {
  width: 100% !important;
}

/* Post content */
.post-content {
  padding: 2rem 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* Related Articles grid */
.related-articles {
  margin: 4rem 0;
}
.related-articles .eael-post-grid-container {
  margin-top: 1rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .post-title { font-size: 1.75rem; }
  .post-featured-image { margin-bottom: 1.5rem; }
}
