/*
 Theme Name:   Astra Child
 Theme URI:    https://primaryignition.com
 Description:  Astra Child Theme for Primary Ignition
 Author:       Primary Ignition Media
 Author URI:   https://primaryignition.com
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  astra-child
*/

/* =================================================================
   MODERN MINIMALISTIC FINANCIAL NEWS DESIGN - MOBILE FIRST
   ================================================================= */

/* ===== TYPOGRAPHY & BASE ===== */
.single .entry-content {
  font-size: 18px;
  line-height: 1.75;
  color: #1a1a1a;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

.single .entry-content p {
  margin-bottom: 1.5em;
  font-weight: 400;
}

.single .entry-title {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.single .entry-header {
  margin-bottom: 30px;
}

/* Author & Meta */
.single .posted-on,
.single .byline,
.single .entry-meta {
  font-size: 14px;
  color: #666;
  font-weight: 400;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.single .entry-meta a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.single .entry-meta a:hover {
  color: #1e40af;
}

/* ===== HEADINGS HIERARCHY ===== */
.single .entry-content h2 {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
  color: #0a0a0a;
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.single .entry-content h3 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

.single .entry-content h4 {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
  color: #2a2a2a;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* ===== FEATURED IMAGE ===== */
.single .post-thumbnail {
  max-width: 800px !important;
  margin: 0 auto 30px !important;
  padding: 0 20px !important;
}

.single .post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* ===== NATIVE AD LINKS ===== */
/* Ad links styled as regular inline links for native advertising */
.single .entry-content a[href*="lp/analysis"] {
  color: #2563eb;
  text-decoration: none;
}

.single .entry-content a[href*="lp/analysis"]:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* ===== POST NAVIGATION ===== */
.single .post-navigation {
  max-width: 700px;
  margin: 60px auto 40px;
  padding: 30px 20px;
  border-top: 2px solid #e5e7eb;
  border-bottom: 2px solid #e5e7eb;
}

.single .post-navigation a {
  color: #1e40af;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  display: inline-block;
  transition: color 0.2s ease;
}

.single .post-navigation a:hover {
  color: #1e3a8a;
  text-decoration: underline;
}

.single .post-navigation .nav-previous,
.single .post-navigation .nav-next {
  margin: 10px 0;
}

/* ===== RELATED POSTS ===== */
.ast-single-related-posts-container {
  max-width: 700px !important;
  margin: 50px auto 40px !important;
  padding: 0 20px !important;
}

.ast-single-related-posts-container .ast-related-posts-title {
  font-size: 24px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}

/* Vertical list layout */
.ast-related-posts-wrapper {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  grid-template-columns: none !important;
}

/* Override Astra's inner wrapper */
.ast-related-posts-inner-section {
  display: block !important;
  width: 100% !important;
}

.ast-related-post {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px !important;
  padding: 16px !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  width: 100% !important;
  margin: 0 !important;
  align-items: flex-start !important;
}

.ast-related-post:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Force the content wrapper to use flex layout horizontally */
.ast-single-related-posts-container .ast-related-post-content,
.ast-related-posts-wrapper .ast-related-post-content,
article.ast-related-post .ast-related-post-content {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px !important;
  width: 100% !important;
  align-items: flex-start !important;
}

.ast-related-post-featured-section {
  flex-shrink: 0 !important;
  width: 120px !important;
  height: 80px !important;
  overflow: hidden !important;
  border-radius: 6px !important;
}

.ast-related-post-featured-section img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Text content wrapper - contains header and entry-content */
.ast-related-post-content > .entry-header,
.ast-related-post-content > .entry-content {
  flex: 1 !important;
  min-width: 0 !important;
}

/* Wrapper for text elements */
.ast-related-post-content > .entry-header {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Hide the separate entry-content div since we have excerpt in header */
.ast-related-post .entry-content.clear {
  display: none !important;
}

.ast-related-post-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #1a1a1a !important;
  margin: 0 0 8px 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ast-related-post-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ast-related-post-meta {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
}

/* Hide read more button in related posts */
.ast-related-post .ast-read-more {
  display: none;
}

/* ===== TABLET STYLES (768px+) ===== */
@media (min-width: 768px) {
  .single .entry-content {
    font-size: 19px;
    line-height: 1.8;
    padding: 0 30px;
  }

  .single .entry-title {
    font-size: 36px;
    margin-bottom: 24px;
    padding: 0 30px;
  }

  .single .entry-content h2 {
    font-size: 28px;
  }

  .single .entry-content h3 {
    font-size: 22px;
  }

  .single .post-thumbnail {
    margin-bottom: 40px !important;
    padding: 0 30px !important;
  }

  .ast-related-post-featured-section {
    width: 140px !important;
    height: 95px !important;
  }

  .ast-related-post-title {
    font-size: 17px !important;
  }
}

/* ===== DESKTOP STYLES (1024px+) ===== */
@media (min-width: 1024px) {
  .single .entry-content {
    padding: 0;
  }

  .single .entry-title {
    font-size: 42px;
    margin-bottom: 28px;
    padding: 0;
  }

  .single .entry-meta {
    padding: 0;
  }

  .single .entry-content h2 {
    font-size: 32px;
  }

  .single .entry-content h3 {
    font-size: 24px;
  }

  .single .post-thumbnail {
    padding: 0 !important;
  }

  .ast-single-related-posts-container {
    padding: 0 !important;
  }

  .ast-related-post-featured-section {
    width: 160px !important;
    height: 107px !important;
  }

  .ast-related-post-title {
    font-size: 18px !important;
  }

  .ast-related-post-excerpt {
    font-size: 15px;
  }
}

/* ===== LARGE DESKTOP (1280px+) ===== */
@media (min-width: 1280px) {
  .single .entry-title {
    font-size: 48px;
  }

  .single .entry-content h2 {
    font-size: 34px;
  }
}

/* ===== ACCESSIBILITY & TOUCH TARGETS ===== */
@media (max-width: 767px) {
  .ast-related-post {
    min-height: 44px;
  }

  .single .post-navigation a {
    padding: 12px 0;
    display: block;
  }
}
