/* --- style.css --- */
/*
Theme Name: Kadence Child
Template: kadence
Version: 1.0
Description: A child theme for the Kadence WordPress theme.
Author: Your Name
*/

.content-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.7;
  background-color: #ffffff;
  color: #222222;
}

.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content p,
.single-post .entry-content li {
  color: #222222;
}

.entry-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}
.entry-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.entry-content hr {
  margin: 2rem 0;
  border-color: #ddd;
}

.debt-story-box {
  background: #f9f9f9;
  border-left: 5px solid #2D6CDF;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 6px;
}

.debt-btn {
  display: inline-block;
  margin-top: 1rem;
  background: #2D6CDF;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
}

.ad-banner {
  margin: 20px 0;
  text-align: center;
  background: #f1f1f1;
  padding: 15px;
  border: 1px dashed #ccc;
}

.affiliate-disclosure {
  background: #f9f9f9;
  border-left: 5px solid #c58c8d;
  padding: 15px;
  margin-bottom: 20px;
  color: #222;
  font-size: 0.95rem;
}

.post-feedback {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
}
.post-feedback p {
  margin-bottom: 10px;
}
.post-feedback button {
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  margin: 0 5px;
  cursor: pointer;
}
.feedback-yes {
  background: #2D6CDF;
  color: white;
}
.feedback-no {
  background: #ccc;
  color: black;
}

.social-share {
  margin-top: 40px;
  text-align: center;
}
.social-share p.share-label {
  font-weight: bold;
  margin-bottom: 10px;
}
.social-share a {
  margin: 0 8px;
  color: #2D6CDF;
  text-decoration: none;
}
.social-share a:hover {
  text-decoration: underline;
}

.entry-footer {
  margin-top: 2rem;
}
.post-categories {
  font-weight: bold;
}
.tags {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

/* --- custom-styles.css --- */
body {
  background-color: #f9f9f9;
}

.affiliate-disclaimer {
  background: #b2b5d1;
  padding: 16px;
  border-left: 4px solid #2D6CDF;
  border-radius: 4px;
  margin-bottom: 24px;
  color: #3148f5;
  font-size: 0.95rem;
}
.affiliate-disclaimer p {
  margin: 0;
}

.author-box {
  text-align: center;
  margin-bottom: 40px;
}
.author-avatar img {
  border-radius: 50%;
}

.content-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.7;
}
.content-wrapper h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.author-meta {
  font-size: 1rem;
  text-align: left;
  color: #333;
  line-height: 1.7;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e2e2;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

.author-meta strong {
  color: #2D6CDF;
  font-weight: 600;
  display: inline-block;
  min-width: 100px;
}

.post-feedback {
  background: #f4f8ff;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 2rem;
  text-align: center;
}
.post-feedback button {
  background: #2D6CDF;
  color: #fff;
  border: none;
  margin: 0 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}
.post-feedback button:hover {
  background: #1e4fab;
}

/* --- custom-home(2).css --- */
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #222;
}

.hero {
  background: #f8f9fb;
  padding: 60px 20px;
  text-align: center;
}
.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background: #2D6CDF;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}
.cta-button:hover {
  background: #1f4da3;
}

.categories {
  background: #fff;
  padding: 40px 20px;
}
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.category-box {
  background: #f4f6f8;
  padding: 20px;
  border-radius: 8px;
  width: 280px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.category-box:hover {
  transform: translateY(-5px);
}
.category-box h2 {
  margin-top: 0;
  font-size: 1.25rem;
}
.category-box a {
  color: #2D6CDF;
  text-decoration: none;
}
.category-box p {
  color: #555;
}

.featured-carousel {
  background: #f1f5f9;
  padding: 60px 20px;
  text-align: center;
}
.carousel-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.carousel-card {
  background: #ffffff;
  padding: 20px;
  width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  text-align: left;
  transition: box-shadow 0.3s ease;
}
.carousel-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.carousel-card h3 {
  font-size: 1.15rem;
  margin-top: 0;
  color: #2D6CDF;
}
.carousel-card p {
  font-size: 0.95rem;
  color: #444;
}

.cta-section {
  background: #2D6CDF;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}
.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.cta-section .cta-button {
  background: #fff;
  color: #2D6CDF;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.cta-section .cta-button:hover {
  background: #2D6CDF;
  color: #fff;
  transform: scale(1.06);
}

@media screen and (max-width: 768px) {
  .category-grid, .carousel-container {
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p, .cta-section p {
    font-size: 1rem;
  }

  .carousel-card, .category-box {
    width: 90%;
  }
}

/* Blog Card Styling */
.blog-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
}
.blog-thumb img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.blog-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}
.blog-meta span {
  margin-right: 10px;
}

/* Pagination */
.pagination {
  margin-top: 40px;
  text-align: center;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  background: #f0f0f0;
  color: #2D6CDF;
  border-radius: 4px;
  text-decoration: none;
}
.pagination .current {
  background: #2D6CDF;
  color: #fff;
}

/* Sidebar */
.sidebar .cta-button {
  background: #2D6CDF;
  color: #fff;
  padding: 10px 16px;
  display: inline-block;
  border-radius: 6px;
  text-decoration: none;
}
.sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar ul li {
  margin-bottom: 10px;
}
.sidebar ul li a {
  text-decoration: none;
  color: #333;
}

.read-more-link {
  font-size: 0.9rem;
  color: #2D6CDF;
  font-weight: 500;
  text-decoration: none;
  padding: 2px 4px;
  display: inline;
  background: none;
  border: none;
  box-shadow: none;
}
.read-more-link:hover {
  text-decoration: underline;
}

.inline-next-article {
  margin-top: 2rem;
  background: #f8f9fb;
  padding: 1rem 1.5rem;
  border-left: 4px solid #2D6CDF;
  font-size: 0.95rem;
  border-radius: 6px;
}
.floating-cta {
  margin: 3rem 0;
  background: #2D6CDF;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
}
.floating-cta .cta-button-inline {
  color: #fff;
  font-weight: bold;
  margin-left: 10px;
  text-decoration: underline;
}
.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}
.related-card {
  flex: 1 1 30%;
  background: #f4f4f4;
  border-radius: 6px;
  overflow: hidden;
  padding: 0.5rem;
  text-align: center;
}
.related-card h4 {
  font-size: 1rem;
  margin: 0.5rem 0 0;
}

/* Existing Beelinger Styles */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9fb;
  color: #333;
}

/* === Enhanced Post Template Additions === */
.floating-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #2D6CDF;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: none;
}
.floating-cta a {
  color: #fff;
  text-decoration: underline;
  margin-left: 10px;
}
.related-posts-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.related-posts-grid .related-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 1rem;
  border-radius: 6px;
  flex: 1 1 calc(33.333% - 20px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* ===== Beelinger — v1.1.1 Patch (applied) ===== */

/* 1) Containers—keep content off the viewport edge */
.b-container { padding-inline: 20px; }

/* 2) Keyboard focus — visible, accessible rings */
a:focus-visible,
button:focus-visible,
.b-btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--b-brand, #2D6CDF);
  outline-offset: 3px;
  box-shadow: none;
}

/* 3) Buttons — pressed/disabled states */
.b-btn:active { transform: translateY(0); }
.b-btn[aria-disabled="true"],
.b-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  box-shadow: none;
}

/* 4) Forms — clear focus and placeholder contrast */
input[type="text"], input[type="email"], input[type="search"], textarea, select {
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="search"]:focus,
textarea:focus, select:focus {
  border-color: var(--b-brand, #2D6CDF);
  box-shadow: 0 0 0 3px rgba(45,108,223,.15);
}
::placeholder { color: #9ca3af; }

/* 5) Thumb ratio — add old-engine fallback (keeps your aspect-ratio look) */
.thumb { position: relative; background:#f1f5f9; }
.thumb::before { content:""; display:block; padding-top:56.25%; } /* 16:9 fallback */
.thumb img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
@supports (aspect-ratio: 16 / 9) {
  .thumb { aspect-ratio: 16 / 9; }
  .thumb::before { content:none; }
  .thumb img { position: static; }
}

/* 6) Scope Swiper styling so we don't reskin third-party carousels globally */
.bl-carousel .swiper,
.bl-carousel .swiper-slide {
  background:#fff;
  border:1px solid var(--b-border);
  border-radius:8px;
}
.bl-carousel .swiper-button-next,
.bl-carousel .swiper-button-prev {
  color: var(--b-brand);
}

/* 7) Links inside card titles — hover state already good; add underline on focus */
.b-card__title a:focus-visible { text-decoration: underline; }

/* 8) Reduced motion — respect user preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Make excerpts readable on Kadence archives/blog */
.blog .entry-summary,
.archive .entry-summary,
.blog .entry-summary p,
.archive .entry-summary p,
.kadence-posts .entry-summary,
.loop-entry .entry-summary,
.loop-entry .entry-summary p,
.blog-card .excerpt {
  color: var(--b-text, #1A1A1A) !important;
  opacity: 1 !important;
}

/* Archives use the same grid as blog, but with a narrower sidebar */
.archive-main { background: var(--b-bg); padding: 40px 20px; }
.archive-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 4fr 1fr;     /* 80 / 20 split (narrower sidebar) */
  gap: 40px;
}

/* Apply same blog styles on archives (ensure readable excerpt) */
.archive .blog-card .excerpt,
.category .blog-card .excerpt,
.archive .entry-summary,
.category .entry-summary,
.archive .entry-summary p,
.category .entry-summary p {
  color: var(--b-text, #1A1A1A) !important;
  opacity: 1 !important;
}

/* Optional: keep sidebar from growing too wide on giant screens */
.sidebar { max-width: 340px; }

/* Mobile: single column */
@media (max-width: 880px){
  .archive-container { grid-template-columns: 1fr; gap: 28px; }
  .sidebar { max-width: none; }
}

/* ===== Archives & Blog Shared Layout ===== */
.blog-main,
.archive-main { background: var(--b-bg); padding: 40px 20px; }

.blog-container,
.archive-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 4fr 1fr;  /* narrower sidebar */
  gap: 40px;
}

.sidebar { max-width: 320px; }             /* hard cap */
@media (max-width: 900px){
  .blog-container,
  .archive-container { grid-template-columns: 1fr; gap: 28px; }
  .sidebar { max-width: none; }
}

/* Card & text polish */
.blog-title { font-size: 2.5rem; color: var(--b-brand); margin-bottom: .5rem; }
.blog-subtitle { font-size: 1.125rem; color: var(--b-muted); margin-bottom: 30px; }

.blog-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: var(--b-shadow-sm);
  transition: transform .2s ease;
}
.blog-card:hover { transform: translateY(-2px); }

.blog-thumb { border-radius: 8px; overflow: hidden; background:#f1f5f9; margin-bottom: 1rem; }
.blog-thumb img { width: 100%; height: auto; display: block; }

.blog-card-title a { color: var(--b-text); text-decoration: none; }
.blog-card-title a:hover { color: var(--b-brand); }

.blog-meta { font-size: .9rem; color: #6b7280; margin-bottom: .5rem; }

/* Ensure excerpt is NOT transparent/muted on archives */
.archive .blog-card .excerpt,
.category .blog-card .excerpt,
.blog .blog-card .excerpt,
.blog-card .excerpt,
.archive .entry-summary,
.category .entry-summary,
.archive .entry-summary p,
.category .entry-summary p {
  color: var(--b-text, #1A1A1A) !important;
  opacity: 1 !important;
  margin-bottom: 1rem;
}

.read-more { color: var(--b-brand); font-weight: 700; }

/* Sidebar widgets (if default sidebar shows) */
.widget-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: var(--b-shadow-sm);
}
.widget-card h3 { color: var(--b-brand); margin-bottom: .5rem; }
.widget-card ul { list-style: none; padding: 0; margin: 0; }
.widget-card li { margin-bottom: 10px; }
.widget-card a { color: var(--b-text); text-decoration: none; }
.widget-card a:hover { color: var(--b-brand); }

/* CTA */
.cta-section { padding: 60px 20px 40px; background: var(--b-brand); color:#fff; text-align:center; border-bottom:8px solid var(--b-bg); }
.cta-inner { max-width: 800px; margin: auto; }
.cta-inner h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-inner p { margin-bottom: 2rem; color: #f3f4f6; }

/* Utilities used by single-post hardening */
.hero-thumb { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #f1f5f9; margin: 0 0 1rem; }
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.responsive-embed { position: relative; padding-top: 56.25%; height: 0; overflow: hidden; }
.responsive-embed iframe,
.responsive-embed embed,
.responsive-embed video { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Optional card/thumb helpers used across the site */
.b-img { max-width: 100%; height: auto; display: block; } /* class we inject on images */
.card-thumb, .grid-thumb { aspect-ratio: 16/9; overflow: hidden; border-radius: 12px; background: #f1f5f9; }
.card-thumb img, .grid-thumb img { width: 100%; height: 100%; object-fit: cover; }


/* --- Contact Modal Styles --- */
.contact-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: 'Segoe UI', sans-serif;
}
.contact-modal.active { display: flex; }
.contact-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(2px);
}
.contact-box {
  position: relative;
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 30px 24px;
  max-width: 420px;
  width: 90%;
  z-index: 2;
  box-shadow: 0 12px 28px rgba(0,0,0,.2);
  animation: fadeUp .3s ease-out;
}
@keyframes fadeUp { from {transform:translateY(20px);opacity:0;} to {transform:translateY(0);opacity:1;} }
.close-btn {
  position: absolute; top:10px; right:14px;
  background:none; border:0; font-size:1.4rem; cursor:pointer; color:#666;
}
.close-btn:hover { color:#000; }
.contact-box h2 {
  color:#2D6CDF;
  text-align:center;
  margin-bottom:1rem;
  font-weight:800;
}
#contact-form label { display:block; font-size:0.9rem; font-weight:600; margin:8px 0 4px; }
#contact-form input, #contact-form textarea {
  width:100%; padding:10px 12px; border:1px solid #ccc;
  border-radius:8px; font-size:1rem;
}
.send-btn {
  margin-top:14px; background:#2D6CDF; color:#fff; border:0; border-radius:8px;
  padding:10px 16px; font-weight:700; cursor:pointer; width:100%; transition:background .2s;
}
.send-btn:hover { background:#1e4eb9; }
.form-status { margin-top:10px; text-align:center; font-size:0.9rem; }

