/* Designscapes Colorado - blog listing + detail redesign (BugHerd #29, 2026-07-24)
   Loaded by templates 50 (listing) and 51 (post detail). Scoped to dsc-* classes so
   nothing here touches the shared Mrittik theme CSS. */

/* ============ listing ============ */
  /* --- BugHerd #29 blog listing: wide layout, landscape cards, no hover reveal --- */
  .dsc-blog-listing { padding: 26px 0 70px; }
  /* search band above the grid - light + tight (was a tall dark slab) */
  .dsc-blog-searchbar { padding: 26px 0 6px; background: #ffffff; }
  .dsc-blog-searchbar .widget { margin: 0; }
  .dsc-blog-searchbar .widget-title { display: none; }
  .dsc-blog-searchbar .wp-block-search__inside-wrapper { display: flex; }
  .dsc-blog-searchbar .wp-block-search__input { flex: 1 1 auto; border: 1px solid #dfe5e2; border-right: 0; border-radius: 6px 0 0 6px; padding: 12px 16px; background: #fff; color: #1f2937; }
  .dsc-blog-searchbar .wp-block-search__button { border: 0; background: #6B755F; color: #fff; padding: 12px 20px; border-radius: 0 6px 6px 0; }
  .dsc-blog-searchbar .wp-block-search__button:hover { background: #545C4A; }
  .dsc-subscribe-band { padding: 10px 0 60px; background: #ffffff; }
  .dsc-blog-toolbar { margin-bottom: 18px; }
  .dsc-filter-heading { margin: 0; font-size: 20px; color: #1f2937; }
  .dsc-clear-filter { font-size: 13px; font-weight: 400; margin-left: 10px; color: #6B755F; text-decoration: underline; }
  .dsc-cat-toggle { font-size: 14px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #6B755F; text-decoration: none; border-bottom: 2px solid rgba(107,117,95,.35); padding-bottom: 2px; }
  .dsc-cat-toggle:hover { color: #545C4A; border-bottom-color: #545C4A; }
  .dsc-cat-panel { margin: 14px 0 6px; }
  .dsc-cat-chips { background: #ffffff; border: 1px solid #e6eae8; border-radius: 12px; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 8px; }
  .dsc-chip { display: inline-block; background: #f1f5f3; color: #4A5142; border-radius: 999px; padding: 6px 14px; font-size: 13px; line-height: 1.2; text-decoration: none; transition: background .15s ease, color .15s ease; }
  .dsc-chip:hover { background: #6B755F; color: #ffffff; }
  .dsc-chip-sm { padding: 4px 11px; font-size: 11.5px; letter-spacing: .3px; text-transform: uppercase; font-weight: 600; }
  .dsc-search-note { color: #4b5563; }

  .dsc-card-row { margin-top: 6px; }
  .dsc-card { background: #ffffff; border-radius: 14px; overflow: hidden; height: 100%; display: flex; flex-direction: column;
              box-shadow: 0 6px 22px rgba(0,0,0,.08); transition: transform .2s ease, box-shadow .2s ease; margin-bottom: 30px; }
  .dsc-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(0,0,0,.14); }
  .dsc-card-media { display: block; }
  /* landscape 16:9, always visible - no opacity/hover reveal */
  .dsc-card .blog-image-container { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; background: #eef2f0; }
  .dsc-card .blog-image-container img { position: absolute; inset: 0; width: 100% !important; height: 100% !important;
                                        object-fit: cover !important; opacity: 1 !important; display: block; transition: transform .4s ease; }
  /* posts with no cover image yet - branded panel, not a repeated stock photo */
  .dsc-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
               background: linear-gradient(135deg, #4E5545 0%, #6B755F 55%, #9AA28B 100%); }
  .dsc-noimg-mark { color: rgba(255,255,255,.9); font-size: 20px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; }
  .dsc-noimg-mark sup { font-size: 10px; letter-spacing: 0; }
  .dsc-card:hover .blog-image-container img { transform: scale(1.04); }
  .dsc-card-body { padding: 20px 24px 26px; display: flex; flex-direction: column; flex: 1 1 auto; }
  .dsc-card-body .meta time { font-size: 12px; letter-spacing: .6px; text-transform: uppercase; font-weight: 700; color: #6B755F; }
  .dsc-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
  .dsc-card-body h5 { margin: 0 0 10px; font-size: 19px; line-height: 1.35; }
  .dsc-card-body h5 > a { color: #1f2937 !important; font-size: 19px; line-height: 1.35; text-decoration: none; }
  .dsc-card-body h5 > a:hover { color: #6B755F !important; }
  .dsc-card-body p { color: #5b6770; font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
  .dsc-card-body .details_link { margin-top: auto; }
  .dsc-card-body .details_link a { color: #6B755F; font-weight: 700; font-size: 14px; letter-spacing: .3px; text-decoration: none; }
  .dsc-card-body .details_link a:hover { color: #545C4A; }

  @media (max-width: 767px) {
    .dsc-blog-toolbar { margin-bottom: 12px; }
    .dsc-blog-toolbar .text-md-end { text-align: left !important; margin-top: 10px; }
    .dsc-card-body { padding: 18px 20px 22px; }
  }

/* ============ recent posts carousel ============ */
  .dsc-recent-wrap { padding: 56px 0 70px; background: #f7f9f8; }
  .dsc-recent-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
  .dsc-recent-title { margin: 0; color: #1f2937; }
  .dsc-recent-all { color: #6B755F; font-weight: 700; font-size: 14px; text-decoration: none; }
  .dsc-recent-all:hover { color: #545C4A; }
  .dsc-recent-carousel { position: relative; padding-bottom: 44px; }
  .dsc-recent-carousel .dsc-card { margin-bottom: 0; }
  .dsc-recent-carousel .dsc-card-body { padding: 16px 20px 22px; }
  .dsc-recent-carousel .dsc-card-body h5 { margin: 0; font-size: 17px; }
  .dsc-recent-carousel .swiper-button-prev,
  .dsc-recent-carousel .swiper-button-next { color: #6B755F; top: 40%; }
  .dsc-recent-carousel .swiper-button-prev:after,
  .dsc-recent-carousel .swiper-button-next:after { font-size: 22px; font-weight: 700; }
  .dsc-recent-carousel .swiper-pagination { bottom: 0; }
  .dsc-recent-carousel .swiper-pagination-bullet-active { background: #6B755F; }
  @media (max-width: 991px) {
    .dsc-recent-carousel .swiper-button-prev,
    .dsc-recent-carousel .swiper-button-next { display: none; }
  }

/* ============ post detail ============ */
  /* --- BugHerd #29 blog detail: wide single-column, no right sidebar --- */
  .dsc-post { max-width: 100%; }
  /* full-bleed hero + CTA inside the container, article text kept readable */
  .dsc-post-inner { max-width: 900px; margin: 0 auto; }
  .dsc-post .post-hero { margin-bottom: 24px; border-radius: 14px; overflow: hidden; }
  .dsc-post .post-hero-img { width: 100% !important; height: 440px !important; object-fit: cover !important; display: block; }
  .dsc-post .post-hero-placeholder { height: 300px; display: flex; align-items: center; justify-content: center;
                                     background: linear-gradient(135deg, #4E5545 0%, #6B755F 55%, #9AA28B 100%); }
  .dsc-post .dsc-noimg-mark { color: rgba(255,255,255,.9); font-size: 30px; letter-spacing: 5px; text-transform: uppercase; font-weight: 600; }
  .dsc-post .dsc-noimg-mark sup { font-size: 14px; letter-spacing: 0; }

  .dsc-post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 16px; }
  .dsc-post-allcats { font-size: 12px; letter-spacing: .3px; color: #6B755F; text-decoration: underline; margin-left: 4px; }
  .dsc-post-allcats:hover { color: #545C4A; }

  .dsc-post .post-title { margin: 0 0 14px; line-height: 1.15; }
  .dsc-post .post-meta-bar { font-size: 13px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 30px; color: #6b7280; padding-bottom: 18px; border-bottom: 1px solid #e6eae8; }
  .dsc-post .post-meta-bar .text-green { color: #6B755F; font-weight: 700; }
  .dsc-post .post-meta-sep { margin: 0 10px; color: #cbd5d1; }
  .dsc-author-link { color: #1f2937; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(107,117,95,.5); }
  .dsc-author-link:hover { color: #6B755F; }
  .dsc-author-title { text-transform: none; letter-spacing: 0; color: #8b949e; }

  .dsc-post .fulltext { font-size: 17px; line-height: 1.75; color: #374151; }
  .dsc-post .fulltext img { max-width: 100% !important; height: auto !important; border-radius: 10px; }
  .dsc-post .fulltext h2 { margin-top: 38px; }
  .dsc-post .fulltext h3 { margin-top: 30px; }
  .dsc-post .fulltext iframe { max-width: 100%; }

  .blog-cta { background: #6B755F; border-radius: 14px; padding: 34px 40px; margin: 50px 0 8px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; }
  .blog-cta h3 { color: #ffffff; margin: 0 0 6px; }
  .blog-cta p { color: #EFF1EA; margin: 0; }
  .blog-cta-btn { display: inline-block; background: #ffffff; color: #6B755F !important; padding: 15px 34px; border-radius: 6px; font-weight: 700; text-decoration: none; white-space: nowrap; }
  .blog-cta-btn:hover { background: #EFF1EA; }

  .dsc-post-footer { margin-top: 34px; }
  .dsc-back-link { color: #6B755F; font-weight: 700; font-size: 14px; text-decoration: none; }
  .dsc-back-link:hover { color: #545C4A; }

  @media (max-width: 767px) {
    .dsc-post .post-hero-img { height: 240px !important; }
    .dsc-post .post-hero-placeholder { height: 180px; }
    .dsc-post .dsc-noimg-mark { font-size: 19px; letter-spacing: 3px; }
    .blog-cta { padding: 26px; }
    .dsc-post .fulltext { font-size: 16px; }
  }

/* ============ shared fixes ============ */
.dsc-recent-carousel .swiper-slide { height: auto; display: flex; }
.dsc-recent-carousel .swiper-slide > .dsc-card { width: 100%; }


/* ---- portrait covers (2026-08-12 v3): FB/IG-style blur-fill.
   Every box keeps the same 16:9 crop; a portrait cover sits contained &
   sharp over a blurred, zoomed copy of itself. Detection is server-side
   (custom/smarty_plugins/modifier.dsc_is_portrait.php) at bake time. ---- */
.blog-image-container .blur-bg,
.post-hero .blur-bg { position: absolute; inset: 0; width: 100% !important; height: 100% !important;
                      object-fit: cover !important; filter: blur(16px) saturate(1.05);
                      transform: scale(1.12); opacity: 1 !important; }
.dsc-card .blog-image-container.is-portrait img[data-img] { object-fit: contain !important; }
.post-hero { position: relative; overflow: hidden; }
.post-hero .blur-bg { z-index: 0; }
.dsc-post .post-hero-img.is-portrait { position: relative; z-index: 1; object-fit: contain !important; }

/* ================================================================
   BugHerd #167 / #168 (Marissa, 2026-08-21) - 2026-08-22
   ----------------------------------------------------------------
   LOAD-ORDER NOTE (corrected 2026-08-22): this file USED to be linked
   at the top of templates 45/50/51, ahead of the theme, so every rule
   here lost an equal-specificity fight to style.css and to the plugin
   CSS style.css @imports (swiper, select2, ma5-menu ...). It is now
   par'd in from pb_section 21 AFTER section 15, so it lands last and
   wins on document order. The .dsc-recent-wrap scoping below is left
   over from that fight - it is harmless but no longer required.
   Bump the ?v= in pb_section 21, not in the templates.
   ================================================================ */

/* ---- #168: Recent Posts carousel dots were sitting ON TOP of a card.
   Cause: swiper-bundle's `.swiper{padding:0}` killed our padding-bottom,
   and style.css's `.swiper-horizontal > .swiper-pagination-bullets
   {bottom:-10px}` pulled the dots up into the card. Both won on load
   order alone, not specificity - see the load-order note above. ---- */
.dsc-recent-wrap .dsc-recent-carousel { padding-bottom: 54px; }
.dsc-recent-wrap .dsc-recent-pagination.swiper-pagination-bullets { bottom: 0; }
.dsc-recent-wrap .dsc-recent-pagination.swiper-pagination-bullets .swiper-pagination-bullet {
  width: 9px; height: 9px; opacity: .45; background: #6B755F; }
.dsc-recent-wrap .dsc-recent-pagination.swiper-pagination-bullets .swiper-pagination-bullet-active {
  opacity: 1; background: #6B755F; }

/* ---- #167: homepage "LATEST BLOGS" now uses the same always-visible
   landscape card as the blog listing (was the theme's .blog_post
   hover-reveal). Cards are the shared .dsc-card; these rules only
   adjust it for the dark band it sits on. ---- */
.dsc-home-blog { padding-bottom: 70px; }
.dsc-home-blog .row { margin-bottom: 6px; }
.dsc-home-blog .dsc-card { margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.dsc-home-blog .dsc-card:hover { box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.dsc-home-blog .dsc-card-body { padding: 18px 22px 24px; }
.dsc-home-blog .dsc-card-body h5 { font-size: 18px; }
.dsc-home-blog .dsc-card-body h5 > a { font-size: 18px; }
/* NB: this band renders LIGHT (body.bg-white overrides the section's
   bg-dark-100), so the link is green - white was invisible here. */
.dsc-home-blog .dsc-home-blog-all { display: inline-block; margin-top: 22px; color: #6B755F;
  font-weight: 700; font-size: 14px; letter-spacing: .4px; text-transform: uppercase;
  text-decoration: none; border-bottom: 2px solid rgba(107,117,95,.45); padding-bottom: 3px; }
.dsc-home-blog .dsc-home-blog-all:hover { color: #545C4A; border-bottom-color: #545C4A; }
@media (max-width: 767px) {
  .dsc-home-blog .dsc-card { margin-bottom: 22px; }
}
