/* WordPress content spacing inside your clean UI boxes */
.post-content, .page-content { text-align: left; }
.post-content p, .page-content p { margin: 12px 0; }
.post-content ul, .page-content ul { padding-left: 22px; margin: 12px 0; }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; }

/* WP pagination basic styling inside your theme */
.nav-links { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.nav-links a, .nav-links span {
  background:#fff;
  padding:10px 14px;
  border-radius:10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Fix seo-list check icon positioning from your main CSS */
.seo-list li { position: relative; padding-left: 24px; }

/* Better emoji fallback */
.trust-badges span {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

/* Align header container width with blog cards (logo edge = card edge) */
.nav-container{
  max-width: 1100px;
  margin: 0 auto;
  justify-content: space-between;
  padding: 0 20px;
}

/* ===== BLOG LAYOUT (WPBeginner style) ===== */
.blog-layout{
  max-width: 1100px;
  margin: 35px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 3fr 1.2fr;
  gap: 30px;
}

/* Stop centering the white cards inside blog only */
.blog-layout .seo-content{
  max-width: none;
  margin: 0 0 22px 0;
}

/* Left-align blog text WITHOUT forcing a global color (keeps hover working) */
.blog-layout,
.blog-layout * {
  text-align: left;
  text-decoration: none;
}

/* Keep center-box widgets centered */
.blog-layout .center-box,
.blog-layout .center-box * { text-align: center; }

/* ===== Line below Blog H1 (like WPBeginner) ===== */
/* Targets the top "Blog" heading card inside <main> reliably */
.blog-layout main > .seo-content {
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 18px;
  margin-bottom: 25px;
}

/* ===== Divider between each post ===== */
.blog-layout main article.seo-content{
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 25px;
  margin-bottom: 25px;
}

.blog-layout main article.seo-content:last-of-type{
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ===== Post title hover (H2) ===== */
.blog-layout main article.seo-content h2 a{
  color: #0D1B2A;
  transition: color .25s ease;
}

.blog-layout main article.seo-content h2 a:hover{
  color: #1587FD;
}

/* Mobile */
@media (max-width: 900px){
  .blog-layout{
    grid-template-columns: 1fr;
  }
}
/* Divider under "Blog" */
.blog-divider-top{
  border:0;
  border-top:1px solid #e6e6e6;
  margin:16px 0 22px;
}

/* Post row layout (thumbnail left, content right) */
.post-row{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items:start;
  padding: 8px 0;
}

.post-thumb img{
  width: 100%;
  height: auto;
  display:block;
  border-radius: 6px;
}

/* Fallback thumbnail if no featured image */
.post-thumb-fallback{
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eef3ff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
}

/* Title + hover */
.post-title{
  margin: 0 0 10px;
  line-height: 1.2;
}

.post-title-link{
  color:#0D1B2A;
  text-decoration:none;
  transition: color .2s ease;
}

.post-title-link:hover{
  color:#1587FD;
}

/* Meta */
.post-meta{
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

/* Excerpt + read more */
.post-excerpt{
  color:#333;
  line-height: 1.7;
}

.read-more-link{
  color:#1587FD; /* WPBeginner-ish orange feel */
  font-weight: 600;
  margin-left: 6px;
  text-decoration:none;
}
.read-more-link:hover{
  text-decoration: underline;
}

/* Divider between posts */
.post-divider{
  border:0;
  border-top:1px solid #e6e6e6;
  margin: 26px 0;
}

/* Hide last divider */
.seo-content .post-divider:last-of-type{ display:none; }

/* Mobile */
@media (max-width: 900px){
  .post-row{
    grid-template-columns: 1fr;
  }
  .post-thumb{
    max-width: 320px;
  }
}
/* Make WP submenus work with your existing .menu styles */
.menu li { position: relative; }

/* Desktop dropdown */
.menu .sub-menu{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #0D1B2A;                 /* matches header */
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 8px 0;
  z-index: 99999;
}

.menu .sub-menu li{
  padding: 0;
  border: 0;
}

.menu .sub-menu a{
  display: block;
  padding: 10px 14px;
  border-radius: 0;
  white-space: nowrap;
}

/* Show on hover (desktop) */
.menu li:hover > .sub-menu{
  display: block;
}

/* Mobile menu: show submenus as part of the vertical list */
@media (max-width: 768px){
  .menu .sub-menu{
    position: static;
    display: block;          /* always visible inside mobile drawer */
    background: transparent;
    border: 0;
    padding: 6px 0 0;
    min-width: 0;
  }

  .menu .sub-menu a{
    padding-left: 28px;      /* indent child items */
    font-size: 15px;
  }
}

