/*
Theme Name:     Newspaper Child Theme
Theme URI:      http://themeforest.net/user/tagDiv/portfolio
Description:    Custom child theme styles (LCP + CLS optimized)
Author:         tagDiv
Template:       Newspaper
Text Domain:    caxton-theme-newspaper-child-farmers
Version:        9.6.7.7
*/

/* ==================================================
   GLOBAL BASE
================================================== */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.td-main-content-wrap {
  min-height: 100vh;
  padding-top: 20px;
}

@media (max-width: 767px) {
  .td-main-content-wrap {
    padding-top: 5px !important;
  }
}

.td-main-page-wrap,
.td-page-content {
  padding-top: 15px !important;
}

.td-page-content {
  padding-bottom: 0px;
}

/* ==================================================
   HEADER / NAV
================================================== */

.td-header-wrap {
  position: sticky;
  top: 0;
}

@media (min-width: 768px) {
  .td-header-rec-wrap {
    width: 728px;
    height: 90px;
    min-height: 90px;
  }
}

.td-header-rec-wrap .td-adspot-title,
.td-icon-menu-down {
  display: none !important;
}

ul.sf-menu > .td-menu-item > a {
  font-size: 14px;
}

.td-header-top-menu,
.td-header-top-menu a {
  font-size: 16px;
  font-weight: 700;
}

/* ==================================================
   PAGE / CATEGORY STRUCTURE
================================================== */

.td_category_template_2 .td-main-content-wrap {
  padding-top: 0;
}

@media (min-width: 768px) and (max-width: 1018px) {
  .td_category_template_2 .td-main-content-wrap {
    padding-top: 6px;
  }
}

.td-crumb-container,
.td-page-header h1,
.woocommerce-page .page-title,
.td-post-next-prev-content {
  display: none !important;
}

/* ==================================================
   FEATURED IMAGE (LCP safe)
================================================== */

.td-post-featured-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.td-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==================================================
   MODULES (performance)
================================================== */

.td_module_wrap {
  content-visibility: auto;
  contain-intrinsic-size: 300px;
  position: relative;
}

@supports not (content-visibility: auto) {
  .td_module_wrap {
    min-height: 300px;
  }
}

.td_module_wrap .entry-title {
  margin: 25px 0 10px;
  font-size: 16px;
}

/* ==================================================
   MODULE 10 – inline layout
================================================== */

.td_module_10 {
  display: flex;
  flex-wrap: wrap;
}

.td_module_10 .td-module-image {
  flex: 0 0 120px;
  margin-right: 15px;
}

.td_module_10 .entry-title {
  flex: 1 1 calc(100% - 135px);
  margin-top: 0;
}

.td_module_10 .td-excerpt,
.td_module_10 .td-module-meta-info {
  flex: 0 0 100%;
}

/* ==================================================
   BADGES – SINGLE SOURCE OF TRUTH
================================================== */

.td-module-image,
.td-post-featured-image,
.td_module_wrap {
  position: relative;
}

.badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;

  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;

  border-radius: 0 0 3px 0;
}

.badge.sponsored {
  background: #fdc210;
  color: #000;
}

.badge.editors-pick {
  background: #1e73be;
  color: #fff;
}

.badge:empty {
  display: none !important;
}

@media (max-width: 767px) {
  .badge {
    font-size: 10px;
    padding: 1px 4px;
  }
}

/* ==================================================
   SPONSORED DISCLOSURE (INLINE)
================================================== */

.sponsored-disclosure {
  display: inline-block;
  background: #fdc210;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.sponsored-disclosure:empty {
  display: none !important;
}

/* ==================================================
   META INFO
================================================== */

.td-module-meta-info {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #555;
}

@media (max-width: 767px) {
  .td-module-meta-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* ==================================================
   FEATURED IMAGE CAPTIONS (Newspaper 9.x FIX)
================================================== */

figure.td-post-featured-image {
  overflow: visible !important;
}

figure.td-post-featured-image > figcaption {
  background: #f7f7f7;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

/* ==================================================
   ADS (CLS safe)
================================================== */

.placeholder,
.placeholderheader {
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder {
  min-height: 250px;
  background: #f7f7f7;
}

.placeholderheader {
  min-height: 90px;
  background: red;
}

.td_category_template_2 .td-category-header
 {
   
    padding-top: 15px;
}

.td-main-content-wrap {
    padding-top: 15px;
}


/* ----------------------------------------------------------------------------
 * Farmers Weekly Post-End CTA
 * ---------------------------------------------------------------------------- */
.fw-preferred-source.fw-post-end {
  margin: 3rem 0 2rem;   /* more breathing room at post end */
  padding: 1.5rem 2rem;
  background: #f8fafc;
  border-left: 5px solid #3299bb;
  border-radius: 6px;
  font-size: 0.97rem;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.fw-preferred-source.fw-post-end strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: #3299bb;
}

.fw-preferred-source.fw-post-end p {
  margin: 0 0 1rem 0;
  color: #333;
}

.fw-preferred-source.fw-post-end a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #3299bb;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.25s ease;
}

.fw-preferred-source.fw-post-end a:hover {
  background-color: #155a8a;
}

.fw-preferred-source.fw-post-end small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #555;
}

@media (max-width: 767px) {
  .fw-preferred-source.fw-post-end {
    padding: 1.2rem 1.5rem;
    font-size: 0.92rem;
  }

  .fw-preferred-source.fw-post-end a {
    width: 100%;
    text-align: center;
    padding: 0.6rem 0;
  }

  .fw-preferred-source.fw-post-end strong {
    font-size: 1.05rem;
  }
}

.single-post-excerpt {
    color: #817e7e;
    font-size: 1.3em;
    font-style: italic;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
}

.td_block_template_8 .td-block-title > * {
 
    color: #ff0000 !important;
}

   
.td_block_template_8 .td-block-title > *:before, .td_block_template_8 .td-block-title > *:after{

    background-color: #000 !important;
}	

// mobile leaderboard
@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}

