/* Discount4U2 – Clean Dark Theme CSS
   Paste over your existing discount4u2.css
   Bootstrap 5 / Joomla / Helix friendly
*/

/* =========================================
   ROOT TOKENS
   ========================================= */
:root{
  --color-surface: #0f1113;
  --color-surface-soft: #14181b;
  --color-surface-2: #1a2024;
  --color-on-surface: #e8f0fa;
  --color-border: #2b3438;
  --color-outline: #253034;

  --color-primary: #2b6cb0;
  --color-primary-dark: #22568d;
  --color-accent: #059669;
  --color-secondary: #0ca9a6;

  --shadow-level-1: 0 1px 2px rgba(0,0,0,.10);
  --shadow-level-2: 0 4px 12px rgba(0,0,0,.22);
  --shadow-level-3: 0 12px 32px rgba(0,0,0,.38);

  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-lg: 14px;
  --border-radius-xl: 18px;

  --font-family-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-family-heading: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --d4u2-bg: var(--color-surface);
  --d4u2-bg-soft: rgba(255,255,255,.04);
  --d4u2-bg-card: rgba(255,255,255,.06);
  --d4u2-ink: var(--color-on-surface);
  --d4u2-muted: rgba(232,240,250,.68);
  --d4u2-border: var(--color-border);
  --d4u2-radius: var(--border-radius-lg);
}

/* =========================================
   BASE
   ========================================= */
html,
body{
  background: var(--d4u2-bg) !important;
  color: var(--d4u2-ink) !important;
  font-family: var(--font-family-body);
  line-height: 1.6;
}

#sp-page-builder,
.sp-page-builder,
.body-innerwrapper,
.body-wrapper,
.sp-body-inner{
  background: transparent !important;
}

h1,h2,h3,h4,h5,h6,
.display-1,.display-2,.display-3,.display-4,.display-5,.display-6{
  font-family: var(--font-family-heading);
  color: var(--d4u2-ink);
  letter-spacing: -0.02em;
}

h2{ margin-bottom: .5rem; }

p{ line-height: 1.55; }

a{
  color: #7fb3ff;
  text-decoration: none;
}
a:hover{
  color: #a8cbff;
}

.text-muted,
.text-secondary,
.form-text{
  color: var(--d4u2-muted) !important;
}

/* =========================================
   GLOBAL LAYOUT
   ========================================= */
.d4u2-section{
  padding-top: 2.75rem !important;
  padding-bottom: 2.75rem !important;
  background: transparent !important;
}

.d4u2-section--soft{
  background: rgba(255,255,255,.02) !important;
}

@media (min-width: 1200px){
  .container{
    max-width: 1320px;
  }
}

@media (max-width: 575.98px){
  .d4u2-section{
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

:target{
  scroll-margin-top: 110px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn{
  border-radius: 12px;
}
.btn-lg{
  border-radius: 14px;
}

.btn-primary{
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}
.btn-primary:hover,
.btn-primary:focus{
  background-color: var(--color-primary-dark) !important;
  border-color: var(--color-primary-dark) !important;
}

.btn-outline-primary{
  color: #9ec5ff !important;
  border-color: var(--color-primary) !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus{
  background: rgba(43,108,176,.16) !important;
}

/* =========================================
   FORMS
   ========================================= */
.form-control{
  background: rgba(15,17,19,.65) !important;
  border-color: var(--d4u2-border) !important;
  color: var(--d4u2-ink) !important;
}
.form-control::placeholder{
  color: rgba(232,240,250,.55) !important;
}

/* =========================================
   GENERIC CARD
   ========================================= */
.d4u2-card{
  background: rgba(255,255,255,.04);
  border: 1px solid var(--d4u2-border);
  border-radius: var(--d4u2-radius);
  box-shadow: var(--shadow-level-1);
}

.d4u2-card--hover{
  transition: transform .15s ease, box-shadow .15s ease;
}

.d4u2-card--hover:hover{
  box-shadow: var(--shadow-level-3);
  transform: translateY(-1px);
}

/* =========================================
   HERO
   ========================================= */
.d4u2-hero,
.d4u2-hero.d4u2-section,
.d4u2-hero.d4u2-section > .container{
  position: relative;
  z-index: 2;
}

.d4u2-hero{
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(43,108,176,.22), transparent 60%),
    linear-gradient(180deg, rgba(43,108,176,.10), transparent);
  border-bottom: 1px solid var(--d4u2-border);
}

.d4u2-hero h1,
.d4u2-hero h2,
.d4u2-hero h3{
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}

.d4u2-hero p,
.d4u2-hero .lead,
.d4u2-hero .form-hint,
.d4u2-hero .d4u2-subtitle,
.d4u2-hero .d4u2-meta,
.d4u2-hero .d4u2-disclosure{
  color: rgba(255,255,255,.88) !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}

.d4u2-hero .d4u2-card,
.d4u2-hero-search-card{
  background: rgba(10,14,20,.55) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.d4u2-hero hr,
.d4u2-hero .border-top,
.d4u2-hero .border-bottom{
  border: 0 !important;
}

/* remove likely overlays */
.d4u2-hero::before,
.d4u2-hero::after,
.d4u2-hero.d4u2-section::before,
.d4u2-hero.d4u2-section::after,
.d4u2-hero .sppb-section::before,
.d4u2-hero .sppb-section::after,
.d4u2-hero .sppb-column-addons::before,
.d4u2-hero .sppb-column-addons::after{
  content: none !important;
  display: none !important;
  background: transparent !important;
  opacity: 0 !important;
}

.d4u2-hero .sppb-row-overlay,
.d4u2-hero .sppb-overlay,
.d4u2-hero .sp-overlay,
.d4u2-hero .sppb-section-overlay,
.d4u2-hero .sppb-column-addons .sppb-column-overlay,
.d4u2-hero .sppb-column-addons .sppb-addon-overlay,
.d4u2-hero .sppb-column-addons .sppb-overlay,
.d4u2-hero .sppb-column-addons .overlay{
  display: none !important;
  opacity: 0 !important;
}

.d4u2-hero .sppb-column-addons{
  background: transparent !important;
}

.d4u2-hero{
  z-index: 3;
}

/* =========================================
   HERO SEARCH
   ========================================= */
#sp-hero .mod-finder,
#sp-hero .finder,
.d4u2-hero .mod-finder,
.d4u2-hero .finder{
  width: 100%;
}

#sp-hero .mod-finder label,
.d4u2-hero .mod-finder label{
  display: none !important;
}

#sp-hero .mod-finder input[type="search"],
#sp-hero .mod-finder input[type="text"],
.d4u2-hero .mod-finder input[type="search"],
.d4u2-hero .mod-finder input[type="text"]{
  width: 100%;
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--d4u2-border) !important;
  background: rgba(15,17,19,.65) !important;
  color: var(--d4u2-ink) !important;
}

#sp-hero .mod-finder input::placeholder,
.d4u2-hero .mod-finder input::placeholder{
  color: rgba(232,240,250,.55) !important;
}

@media (max-width: 575.98px){
  .hero form,
  .d4u2-hero form{
    flex-direction: column;
  }

  .hero form .btn,
  .d4u2-hero form .btn{
    width: 100%;
  }
}

/* =========================================
   MARKET TOGGLE
   ========================================= */
.d4u2-market-toggle{
  display: inline-flex;
  gap: .25rem;
  padding: .35rem;
  border-radius: 999px;
  border: 1px solid var(--d4u2-border);
  background: rgba(15,17,19,.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.d4u2-toggle-btn{
  border: 0;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: transparent !important;
  color: rgba(232,240,250,.80) !important;
  font-weight: 700;
  cursor: pointer;
}

.d4u2-toggle-btn.is-active{
  background: var(--color-primary) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

/* =========================================
   HEADINGS / SUBTITLE
   ========================================= */
.d4u2-heading{
  margin-bottom: 1.25rem;
}

.d4u2-heading .d4u2-subtitle{
  color: #e8f0fa !important;
  opacity: .92 !important;
}

/* =========================================
   DEAL CARDS
   ========================================= */
.d4u2-deal-card,
.deal-card{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
}

.d4u2-deal-card .card-body,
.deal-card .card-body{
  display: flex;
  flex-direction: column;
}

.d4u2-deal-card p,
.deal-card p{
  color: rgba(255,255,255,.85);
}

.deal-card p{
  min-height: 42px;
}

.d4u2-deal-card .btn,
.deal-card .btn,
.deal-card a.btn{
  margin-top: auto;
}

.d4u2-deal-card h3,
.d4u2-deal-card .h6{
  color: #fff !important;
  font-weight: 800 !important;
}

/* Media */
.d4u2-deal-media{
  position: relative;
  height: 120px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: .85rem;
}

.d4u2-deal-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
}

.d4u2-deal-media.is-logo .d4u2-deal-img{
  object-fit: contain;
  padding: 12px;
  background: rgba(255,255,255,.04);
  transform: none;
}

.d4u2-deal-fallback{
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 2rem;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.04);
}

.d4u2-deal-media.is-fallback .d4u2-deal-fallback{
  display: flex;
}

.d4u2-fallback-icon{
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

/* Meta */
.d4u2-meta{
  color: rgba(255,255,255,.65);
  font-size: .9rem;
}

.d4u2-disclosure{
  color: rgba(255,255,255,.65);
  font-size: .9rem;
}

/* Chips */
.d4u2-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: .9rem;
}

.d4u2-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .85rem;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.15);
  color: rgba(255,255,255,.92);
}

.d4u2-chip-strong{
  font-weight: 700;
  color: #fff;
}

.d4u2-chip--blue{
  border-color: rgba(64,153,255,.45);
  background: rgba(64,153,255,.12);
}

.d4u2-chip--green{
  border-color: rgba(62,214,146,.40);
  background: rgba(62,214,146,.12);
}

.d4u2-chip--amber{
  border-color: rgba(255,193,72,.45);
  background: rgba(255,193,72,.12);
}

.d4u2-chip--red{
  border-color: rgba(239,68,68,.45);
  background: rgba(239,68,68,.12);
}

/* =========================================
   MERCHANT LOGOS IN DEAL CARDS
   Works for SVG, PNG, JPG, JPEG
   ========================================= */
.merchant-logo,
.d4u2-deal-card .merchant-logo{
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255,255,255,.96);
}

.merchant-logo img,
.d4u2-deal-card .merchant-logo img{
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  padding: 6px;
}

/* =========================================
   STORE PAGE HERO / STORE LOGO
   Works for SVG, PNG, JPG, JPEG
   ========================================= */
.d4u2-section.d4u2-hero{
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  margin-top: 0 !important;
}

.d4u2-store-hero{
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 .75rem 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

.d4u2-store-logo{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  max-width: min(100%, 280px);
  min-height: 56px;
  max-height: 86px;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
  overflow: hidden;
  background: transparent !important;
  border-radius: 0;
}

.d4u2-store-logo img{
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 86px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain;
  object-position: left center;
  vertical-align: middle;
}

.d4u2-store-logo.is-logo-missing{
  min-width: 56px;
  min-height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,.08) !important;
  border: 1px dashed rgba(255,255,255,.16);
}

.d4u2-store-logo.is-logo-missing::before{
  content: "%";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  color: rgba(255,255,255,.72);
}

.d4u2-store-hero .small.text-secondary{
  margin: 0 !important;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: normal;
}

.d4u2-hero h1{
  margin-top: 0 !important;
  margin-bottom: .5rem !important;
  line-height: 1.15;
}

.d4u2-hero .lead{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.5;
}

@media (max-width: 767.98px){
  .d4u2-section.d4u2-hero{
    padding-top: .75rem !important;
    padding-bottom: .75rem !important;
  }

  .d4u2-store-hero{
    gap: .5rem;
    margin-bottom: .5rem !important;
    align-items: center;
  }

  .d4u2-store-logo{
    max-width: 180px;
    min-height: 44px;
    max-height: 64px;
  }

  .d4u2-store-logo img{
    max-height: 64px !important;
  }

  .d4u2-hero h1{
    line-height: 1.2;
    margin-bottom: .5rem !important;
  }

  .d4u2-hero .lead{
    line-height: 1.45;
  }
}

/* =========================================
   STICKY FILTERS
   ========================================= */
.d4u2-filters-sticky{
  position: sticky;
  top: 110px;
  z-index: 1020;
  background: rgba(14,16,18,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.d4u2-filters-sticky .container{
  padding-top: 12px;
  padding-bottom: 12px;
}

.d4u2-clear-btn{
  white-space: nowrap;
}

/* =========================================
   LOAD MORE
   ========================================= */
[data-deals-loadmore-wrap]{
  text-align: center;
  margin-top: 1.5rem;
}

[data-deals-loadmore]{
  min-width: 220px;
  border-radius: 999px;
  font-weight: 600;
  padding: .75rem 1.25rem;
  transition: all .2s ease;
}

[data-deals-loadmore]:hover,
[data-deals-loadmore]:focus{
  transform: translateY(-1px);
}

@media (max-width: 767.98px){
  [data-deals-loadmore-wrap]{
    margin-top: 1.25rem;
  }

  [data-deals-loadmore]{
    width: 100%;
    max-width: 320px;
  }
}

/* =========================================
   TRENDING STORES
   ========================================= */
#trending-stores .p-3,
.trending-stores .p-3{
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.92) !important;
  transition: transform .12s ease, box-shadow .12s ease;
}

#trending-stores .p-3:hover,
.trending-stores .p-3:hover{
  transform: translateY(-1px);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.18);
}

.d4u2-trending-stores a{
  text-decoration: none;
  display: block;
}

.d4u2-trending-stores a > div{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 74px;
  padding: 14px 16px;
  border-radius: 16px !important;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
  line-height: 1.25;
}

.d4u2-trending-stores a > div:hover{
  transform: translateY(-1px);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.12);
}

.d4u2-trending-stores a > div .store-title,
.d4u2-trending-stores a > div .h6,
.d4u2-trending-stores a > div strong,
.d4u2-trending-stores a > div .fw-bold{
  margin: 0;
  display: block;
  line-height: 1.2;
}

.d4u2-trending-stores a > div .store-cta,
.d4u2-trending-stores a > div small,
.d4u2-trending-stores a > div .small{
  margin: 0;
  display: block;
  line-height: 1.2;
  opacity: .9;
}

/* =========================================
   STORE A-Z TILES
   ========================================= */
a.d4u2-store-tile{
  text-decoration: none;
  display: block;
}

a.d4u2-store-tile > div{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  transition: transform .12s ease, box-shadow .12s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 74px;
  padding: 14px 16px;
  line-height: 1.25;
}

a.d4u2-store-tile > div:hover{
  transform: translateY(-1px);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.12);
}

a.d4u2-store-tile .store-title{
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

a.d4u2-store-tile .store-cta{
  margin: 0;
  line-height: 1.2;
  opacity: .9;
}

/* =========================================
   LIGHT PANELS
   ========================================= */
.d4u2-light-panel,
.d4u2-light-panel *{
  color: #0f172a;
}

.d4u2-light-panel .text-secondary,
.d4u2-light-panel p{
  color: rgba(15,23,42,.78) !important;
}

.d4u2-light-panel h2,
.d4u2-light-panel h3{
  color: #0b1220 !important;
}

/* =========================================
   TILES / ACCESSIBILITY
   ========================================= */
.tile{
  cursor: pointer;
}

.tile:focus-within{
  outline: 3px solid rgba(13,110,253,.25);
  outline-offset: 2px;
}

/* =========================================
   ACCORDION
   ========================================= */
.accordion .accordion-item{
  border: 1px solid var(--d4u2-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,.04);
}

.accordion-button{
  color: var(--d4u2-ink) !important;
  background: transparent !important;
  font-weight: 600;
}

.accordion-button:focus{
  box-shadow: 0 0 0 .25rem rgba(43,108,176,.25) !important;
}

.accordion-body{
  color: rgba(232,240,250,.82);
}

/* =========================================
   LARGE SCREEN GRID SPACING
   ========================================= */
@media (min-width: 992px){
  .d4u2-section .row.g-3{
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
  }
}

/* =========================================
   FEATURED / BOOST ENHANCEMENTS
   ========================================= */
.d4u2-deal-card--compact{
  border-radius: 18px;
}

.d4u2-deal-card--compact .d4u2-deal-media{
  height: 104px;
  margin-bottom: .65rem;
  border-radius: 14px;
}

.d4u2-deal-card--compact .merchant-logo,
.d4u2-deal-card--compact .d4u2-deal-card .merchant-logo{
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.d4u2-deal-card--compact h3,
.d4u2-deal-card--compact .h6{
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: .45rem !important;
}

.d4u2-deal-card--compact p{
  font-size: .9rem;
  line-height: 1.35;
  margin-bottom: .65rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.d4u2-deal-card--compact .d4u2-meta{
  font-size: .8rem;
  margin-bottom: .5rem !important;
}

.d4u2-deal-card--compact .d4u2-chips{
  gap: 6px;
  margin-bottom: .75rem !important;
}

.d4u2-deal-card--compact .d4u2-chip{
  font-size: .72rem;
  padding: 4px 8px;
}

.d4u2-deal-card--compact .btn{
  padding: .5rem .7rem;
  font-size: .85rem;
}

.d4u2-boost-label{
  color: rgba(255,255,255,.82);
  font-size: .85rem;
  margin-bottom: .75rem;
}
 
/* =========================================
   BLOG CARD / TEASER LAYOUT
   ========================================= */
 
 .d4u2-blog-entry {
  margin-bottom: 2rem;
}
.d4u2-blog-card {
  background: #050b16;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.d4u2-blog-card-image-link,
.d4u2-blog-card-title a,
.d4u2-blog-card-readmore a,
.d4u2-blog-links a {
  text-decoration: none;
}
.d4u2-blog-card-image {
  display: block;
  width: 100%;
  height: auto;
}
.d4u2-blog-card-body {
  padding: 1.25rem 1.25rem 1.1rem;
}
.d4u2-blog-card-category,
.d4u2-blog-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4ccdf;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  margin-bottom: 0.75rem;
}
.d4u2-blog-card-title {
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.d4u2-blog-card-title a {
  color: #ffffff;
}
.d4u2-blog-card-title a:hover {
  color: #d8deff;
}
.d4u2-blog-card-excerpt {
  color: #d8deef;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}
.d4u2-blog-card-readmore {
  margin: 0;
}
.d4u2-blog-card-readmore a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #aebcff;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(174,188,255,0.35);
  border-radius: 999px;
  background: rgba(174,188,255,0.08);
  transition: all 0.2s ease;
}
.d4u2-blog-card-readmore a:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
}
.d4u2-blog-article {
  margin-top: 1.5rem;
}
.d4u2-blog-article p {
  line-height: 1.8;
}
.d4u2-blog-links a {
  color: #aebcff;
}
.d4u2-blog-links a:hover {
  color: #ffffff;
}
@media (max-width: 767.98px) {
  .d4u2-blog-card-body {
    padding: 1rem;
  }
}


/* =========================================
   Category RSS feed block
   ========================================= */
.d4u2-feed-module {
  background: #07162d !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 18px !important;
  padding: 22px !important;
  margin-top: 28px !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16) !important;
}

.d4u2-feed-module h3,
.d4u2-feed-module .module-title,
.d4u2-feed-module .modtitle {
  color: #ffffff !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  margin: 0 0 16px !important;
  line-height: 1.3 !important;
}

.d4u2-feed-module ul,
.d4u2-feed-module ol {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.d4u2-feed-module li {
  padding: 14px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

.d4u2-feed-module li:first-child {
  padding-top: 0 !important;
}

.d4u2-feed-module li:last-child {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.d4u2-feed-module a {
  display: inline-block !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.02rem !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  margin-bottom: 6px !important;
}

.d4u2-feed-module a:hover {
  color: #dbeafe !important;
  text-decoration: underline !important;
}

.d4u2-feed-module p,
.d4u2-feed-module div,
.d4u2-feed-module span,
.d4u2-feed-module small {
  color: rgba(255,255,255,0.78) !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.d4u2-feed-module img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 10px !important;
  margin: 0 0 10px !important;
}

.d4u2-feed-module hr {
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,0.07) !important;
  margin: 12px 0 !important;
}

.d4u2-feed-module p,
.d4u2-feed-module div,
.d4u2-feed-module span,
.d4u2-feed-module small {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: unset !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
}

/* =========================================
   Blog Grid Height adjustment
   ========================================= */
   /* === EQUAL HEIGHT BLOG CARDS === */

/* each row already uses .row, but ensure columns stretch */
.blog .row,
.blog-featured .row,
.category-blog .row {
  display: flex;
  flex-wrap: wrap;
}

.blog .row > .col-lg-4,
.blog-featured .row > .col-lg-4,
.category-blog .row > .col-lg-4 {
  display: flex;
  margin-bottom: 1.5rem;
}

/* make Joomla article wrapper fill the column */
.blog .row > .col-lg-4 > .article,
.blog-featured .row > .col-lg-4 > .article,
.category-blog .row > .col-lg-4 > .article {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* make article-body fill too */
.blog .row > .col-lg-4 > .article > .article-body,
.blog-featured .row > .col-lg-4 > .article > .article-body,
.category-blog .row > .col-lg-4 > .article > .article-body {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* your custom entry fills full height */
.d4u2-blog-entry {
  display: flex;
  width: 100%;
  height: 100%;
}

.d4u2-blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
}

/* image area stays consistent */
.d4u2-blog-card-image-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.d4u2-blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* body stretches */
.d4u2-blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  padding: 1rem;
}

/* title tidy */
.d4u2-blog-card-title {
  line-height: 1.35;
  margin-bottom: .75rem;
}

.d4u2-blog-card-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

/* excerpt controlled */
.d4u2-blog-card-excerpt {
  flex: 1 1 auto;
  margin-bottom: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* read more always at bottom */
.d4u2-blog-card-readmore {
  margin-top: auto;
  margin-bottom: 0;
}
   
   
   
   