/* ECARDSNAP News Theme 129 — focused visual refinement, 25 Nov 2026.
   Scope: mini ads on phones, image-overlay headlines, motivation, rashifal.
   No post queries, vendor settings, media paths, JS controls or DB changes. */

/* News photographs: never let a long Hindi headline cover the image. */
body.nf-2026 .nf-hero-grid .card .body h3,
body.ng-refresh .hero-grid .card .body h3,
body.nf-2026 .nf-main-slider .dn-slide-caption strong {
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;
  overflow:hidden !important;
  text-overflow:ellipsis;
  max-height:2.9em;
  overflow-wrap:anywhere;
}
body.nf-2026 .nf-hero-grid .card .body h3 {line-height:1.39 !important;max-height:2.78em}
body.nf-2026 .nf-main-slider .dn-slide-caption strong {line-height:1.36 !important;max-height:2.72em}

/* A bright editorial background links the Lifestyle modules to the NewsGrid brand. */
body.nf-2026 .nfl-motivation {
  --nfl-ink:var(--navy,#10213b);
  --nfl-muted:#61718a;
  background:radial-gradient(ellipse 70% 95% at 90% -20%,rgba(201,23,65,.065),transparent 78%),
             linear-gradient(180deg,#f7f9fd 0%,#fff 54%,#f5f8fc 100%);
  border-block:1px solid #e9eef5;
  padding-top:60px;padding-bottom:52px;
}
body.nf-2026 .nfl-motivation .nfl-heading h2{color:var(--navy,#10213b)}
body.nf-2026 .nfl-motivation .nfl-heading h2 em{color:var(--accent,#be123c)}
body.nf-2026 .nfl-motivation .nfl-kicker{color:var(--accent,#be123c)}
body.nf-2026 .nfl-motivation .nfl-kicker-dot{background:var(--accent,#be123c);box-shadow:0 0 0 5px rgba(190,18,60,.10)}
body.nf-2026 .nfl-motivation .nfl-heading h2 span,
body.nf-2026 .nfl-motivation .nfl-heading p{color:#677991}
body.nf-2026 .nfl-motivation .nfl-heading-icon{color:var(--accent,#be123c);background:#fff;border:1px solid #e7eaf1;box-shadow:0 10px 24px #10213b0c;transform:none}
body.nf-2026 .nfl-mot-stage{height:345px;margin-top:16px;margin-bottom:0}
body.nf-2026 .nfl-mot-card{
  width:min(490px,62vw);height:296px;top:12px;
  padding:27px 31px 22px;border-radius:24px;
  border:1px solid rgba(255,255,255,.34);
  background-color:#0c2443 !important;
  background-image:linear-gradient(120deg,rgba(7,24,48,.97),rgba(19,47,78,.86)),var(--nfl-card-photo) !important;
  background-position:center;background-size:cover;
  box-shadow:0 24px 45px rgba(9,27,56,.23),0 4px 15px rgba(9,27,56,.12);
  color:white;
}
body.nf-2026 .nfl-mot-card::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:radial-gradient(circle at 100% 0%,rgba(255,255,255,.14),transparent 35%),
    radial-gradient(circle at 0% 110%,rgba(210,25,63,.23),transparent 44%);
  z-index:0;
}
body.nf-2026 .nfl-mot-card::after{
  content:"";pointer-events:none;position:absolute;left:26px;right:26px;top:0;height:3px;
  border-radius:0 0 9px 9px;background:linear-gradient(90deg,var(--accent,#be123c),#f7b477,transparent);
}
body.nf-2026 .nfl-mot-card > :not(.nfl-mot-ornament) {position:relative;z-index:1}
body.nf-2026 .nfl-mot-card .nfl-mot-ornament{position:absolute;top:18px;right:25px;z-index:1}
body.nf-2026 .nfl-mot-card blockquote{margin:auto 0}
body.nf-2026 .nfl-mot-card h3{font-size:clamp(21px,2.4vw,29px);line-height:1.33;margin:2px 0 9px;color:#fff;letter-spacing:-.015em}
body.nf-2026 .nfl-mot-card p{color:#dde7f4;font-size:clamp(12px,1.25vw,14px);line-height:1.7;max-width:46ch;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
body.nf-2026 .nfl-quote-mark{color:#ffb4c7;font-size:53px;height:37px}
body.nf-2026 .nfl-mot-no{color:#dbe3ee;font-size:11px}
body.nf-2026 .nfl-mot-ornament{color:#fff;opacity:.15;font-size:35px}
body.nf-2026 .nfl-mot-bottom{border-top:1px solid #ffffff2c;color:#dae3f0;font-size:9px;letter-spacing:.1em;padding-top:12px}
body.nf-2026 .nfl-mot-bottom span{color:#ffb4c7}
body.nf-2026 .nfl-mot-card[data-nfl-pos=center]{z-index:4;opacity:1;filter:none;transform:translateX(-50%) translateZ(45px) scale(1)}
body.nf-2026 .nfl-mot-card[data-nfl-pos=left]{transform:translateX(calc(-50% - 76%)) rotateY(14deg) scale(.79);opacity:.52;filter:saturate(.78);z-index:2}
body.nf-2026 .nfl-mot-card[data-nfl-pos=right]{transform:translateX(calc(-50% + 76%)) rotateY(-14deg) scale(.79);opacity:.52;filter:saturate(.78);z-index:2}
body.nf-2026 .nfl-mot-arrow{top:46%;width:43px;height:43px;background:#fff;color:var(--navy,#10213b);border:1px solid #dce3ed;box-shadow:0 6px 18px #071c3420;backdrop-filter:none}
body.nf-2026 .nfl-mot-arrow:hover{background:var(--accent,#be123c);color:white;border-color:transparent}
body.nf-2026 .nfl-mot-prev{left:8px}body.nf-2026 .nfl-mot-next{right:8px}
body.nf-2026 .nfl-mot-dots button{background:#cdd6e3}
body.nf-2026 .nfl-mot-dots button.is-active{background:var(--accent,#be123c)}

/* Rashifal: refined product-like cards, compact 2-up mobile layout. */
body.nf-2026 .nfl-zodiac{
  background:linear-gradient(180deg,#fff 0%,#f5f7fc 100%);
  padding-top:61px;padding-bottom:62px;
}
body.nf-2026 .nfl-zodiac .nfl-kicker{color:var(--accent,#be123c)}
body.nf-2026 .nfl-zodiac .nfl-kicker-dot{background:var(--accent,#be123c);box-shadow:0 0 0 5px rgba(190,18,60,.1)}
body.nf-2026 .nfl-zodiac .nfl-heading h2 em{color:var(--accent,#be123c)}
body.nf-2026 .nfl-zodiac-actions button{background:#fff;color:var(--navy,#10213b);border-color:#dce3ec;border-radius:50%;box-shadow:0 6px 20px #0e28440e}
body.nf-2026 .nfl-zodiac-actions button:hover{background:var(--navy,#10213b);color:#fff}
body.nf-2026 .nfl-zodiac-scroller{gap:15px;padding:6px 3px 24px;scrollbar-width:none}
body.nf-2026 .nfl-zodiac-scroller::-webkit-scrollbar{display:none}
body.nf-2026 .nfl-zodiac-card{
  flex:0 0 clamp(215px,22vw,268px);background:#fff;
  border:1px solid #e3e9f3;border-radius:19px;
  box-shadow:0 9px 25px rgba(12,35,72,.09);color:var(--navy,#10213b);
}
body.nf-2026 .nfl-zodiac-card:hover,body.nf-2026 .nfl-zodiac-card:focus-visible{box-shadow:0 18px 37px rgba(12,35,72,.17);transform:translateY(-5px)}
body.nf-2026 .nfl-zodiac-art{position:relative;height:clamp(174px,19vw,240px);background:#102041}
body.nf-2026 .nfl-zodiac-art::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,transparent 65%,rgba(5,18,40,.30))}
body.nf-2026 .nfl-zodiac-info{padding:15px 17px 17px;gap:0}
body.nf-2026 .nfl-zodiac-info small{font-size:10px;letter-spacing:.10em;color:var(--accent,#be123c)}
body.nf-2026 .nfl-zodiac-info strong{font-size:22px;color:var(--navy,#10213b);margin:3px 0 5px}
body.nf-2026 .nfl-zodiac-info>span:not(.nfl-z-more){color:#5c6d83;font-size:12px;line-height:1.55;min-height:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body.nf-2026 .nfl-z-more{align-self:flex-start;padding:9px 0 0;color:var(--accent,#be123c);font-size:11px;font-weight:800}
body.nf-2026 .nfl-zodiac-tail{padding:2px 3px;color:#758195}
body.nf-2026 .nfl-zodiac-tail>span{color:var(--navy,#10213b)}
body.nf-2026 .nfl-z-done{background:var(--accent,#be123c)}

/* AdSense-like MINI ADS on phones: full photographic canvas, no blank side column.
   The CTA remains conditional in PHP (button_text AND valid target_url). */
@media (max-width:760px){
  body.nf-2026 .nfm-wrap.container{
    width:calc(100% - 28px);padding:0!important;margin-left:auto!important;margin-right:auto!important;
    border:1px solid #dae4ef;border-radius:15px;
    box-shadow:0 11px 28px rgba(11,31,56,.14);
  }
  body.nf-2026 .nfm-top{height:34px;padding:0 11px;background:#f8fafc}
  body.nf-2026 .nfm-top-right{font-size:8px;letter-spacing:.07em}
  body.nf-2026 .nfm-slide{height:clamp(176px,49vw,265px)!important;min-height:176px;padding:0!important;display:block;overflow:hidden;background:#0c2242!important}
  body.nf-2026 .nfm-slide .nfm-picture,
  body.nf-2026 .nfm-slide.nfm-style-overlay .nfm-picture{
    position:absolute!important;inset:0!important;z-index:1;display:block;
    width:100%!important;height:100%!important;max-width:none!important;flex:none!important;
    border-radius:0!important;border:0!important;box-shadow:none!important;
    background:#0d274b;
  }
  body.nf-2026 .nfm-slide .nfm-picture img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}
  body.nf-2026 .nfm-slide .nfm-picture::after,
  body.nf-2026 .nfm-slide.nfm-style-overlay .nfm-picture::after{
    content:"";position:absolute;inset:0;z-index:1;
    background:linear-gradient(180deg,rgba(3,16,36,.12) 0%,transparent 34%,rgba(4,17,35,.20) 52%,rgba(3,15,33,.87) 100%)!important;
  }
  body.nf-2026 .nfm-slide .nfm-info,
  body.nf-2026 .nfm-slide.nfm-style-overlay .nfm-info{
    position:absolute!important;z-index:2;inset:0!important;
    display:flex!important;flex-direction:column!important;justify-content:flex-end!important;
    align-items:flex-start!important;min-width:0!important;max-width:none!important;
    width:100%!important;flex:none!important;padding:12px 15px 13px!important;
    gap:3px!important;background:transparent!important;color:white!important;
    pointer-events:none;
  }
  body.nf-2026 .nfm-slide .nfm-tag{
    position:absolute;top:10px;left:12px;background:rgba(5,20,43,.78);color:#fff!important;
    border:1px solid rgba(255,255,255,.4);padding:5px 8px;border-radius:5px;
    letter-spacing:.09em;font-size:8px;font-weight:800;backdrop-filter:blur(4px)
  }
  body.nf-2026 .nfm-slide .nfm-info h3,
  body.nf-2026 .nfm-slide.nfm-style-overlay .nfm-info h3{
    font-size:clamp(15px,4.3vw,20px)!important;line-height:1.28!important;color:white!important;
    max-width:100%!important;margin:0!important;font-weight:850;
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
    overflow:hidden!important;max-height:2.56em;text-shadow:0 2px 7px #06142e90;
  }
  body.nf-2026 .nfm-slide .nfm-info p{display:none!important}
  body.nf-2026 .nfm-slide .nfm-cta{
    pointer-events:auto;max-width:100%;min-height:32px;padding:7px 13px;margin:5px 0 0!important;
    background:var(--accent,#be123c)!important;color:#fff!important;border:1px solid #ffffff54;
    font-size:11px;font-weight:850;border-radius:7px;box-shadow:0 4px 14px #04152b66;
  }
  body.nf-2026 .nfm-bottom{height:30px;padding:0 12px;background:#fff}
  body.nf-2026 .nfm-bottom-note{font-size:8px;letter-spacing:.06em}
  body.nf-2026 .nfm-arrows button{width:22px;height:22px}
  /* Keep headline overlay concise even on small news tiles. */
  body.nf-2026 .nf-hero-grid .card .body h3{max-height:2.78em}
  body.nf-2026 .nfl-motivation,body.nf-2026 .nfl-zodiac{padding-top:42px;padding-bottom:43px}
  body.nf-2026 .nfl-mot-stage{height:318px;margin-top:12px}
  body.nf-2026 .nfl-mot-card{width:min(340px,78vw);height:274px;top:12px;padding:20px 24px 18px;border-radius:19px}
  body.nf-2026 .nfl-mot-card[data-nfl-pos=center]{transform:translateX(-50%) translateZ(20px) scale(1)}
  body.nf-2026 .nfl-mot-card[data-nfl-pos=left]{transform:translateX(calc(-50% - 66%)) rotateY(12deg) scale(.75)}
  body.nf-2026 .nfl-mot-card[data-nfl-pos=right]{transform:translateX(calc(-50% + 66%)) rotateY(-12deg) scale(.75)}
  body.nf-2026 .nfl-mot-arrow{width:34px;height:34px;font-size:23px!important;top:48%}
  body.nf-2026 .nfl-mot-prev{left:1px}body.nf-2026 .nfl-mot-next{right:1px}
  body.nf-2026 .nfl-mot-card h3{font-size:21px;margin-bottom:8px}
  body.nf-2026 .nfl-mot-card p{font-size:12px;line-height:1.63}
  body.nf-2026 .nfl-heading{gap:10px;margin-bottom:18px}
  body.nf-2026 .nfl-zodiac-scroller{gap:12px;padding:4px 2px 17px}
  body.nf-2026 .nfl-zodiac-card{flex:0 0 calc((100% - 12px)/2);min-width:0;border-radius:16px;box-shadow:0 6px 17px rgba(16,34,62,.095)}
  body.nf-2026 .nfl-zodiac-art{height:auto;aspect-ratio:1/1;min-height:0}
  body.nf-2026 .nfl-zodiac-info{padding:11px 12px 13px}
  body.nf-2026 .nfl-zodiac-info small{font-size:9px;letter-spacing:.055em}
  body.nf-2026 .nfl-zodiac-info strong{font-size:20px;line-height:1.2;margin:5px 0}
  body.nf-2026 .nfl-zodiac-info>span:not(.nfl-z-more){font-size:11px;line-height:1.5;-webkit-line-clamp:2}
  body.nf-2026 .nfl-z-more{font-size:10px;padding-top:10px}
  body.nf-2026 .nfl-zodiac-actions{gap:6px}
  body.nf-2026 .nfl-zodiac-actions button{width:35px;height:35px;font-size:18px}
}
@media(max-width:370px){
  body.nf-2026 .nfm-slide{height:176px!important}
  body.nf-2026 .nfl-mot-card{width:81vw;height:264px;padding:18px 21px}
  body.nf-2026 .nfl-mot-stage{height:305px}
  body.nf-2026 .nfl-mot-card h3{font-size:19px}
  body.nf-2026 .nfl-heading h2{font-size:26px}
  body.nf-2026 .nfl-zodiac-info strong{font-size:18px}
  body.nf-2026 .nfl-zodiac-info{padding:10px}
}
/* Existing dark mode remains functional without forcing a light module. */
html[data-ng-theme="dark"] body.nf-2026 .nfl-motivation,
html[data-ng-theme="dark"] body.nf-2026 .nfl-zodiac{background:linear-gradient(180deg,#0d182a,#121f32);border-color:#263a52}
html[data-ng-theme="dark"] body.nf-2026 .nfl-motivation .nfl-heading h2{color:#f1f5fb}
html[data-ng-theme="dark"] body.nf-2026 .nfl-motivation .nfl-heading p,
html[data-ng-theme="dark"] body.nf-2026 .nfl-motivation .nfl-heading h2 span{color:#becbda}
html[data-ng-theme="dark"] body.nf-2026 .nfl-zodiac-card{background:#19283c;border-color:#344760}
html[data-ng-theme="dark"] body.nf-2026 .nfl-zodiac-info strong{color:#f4f6fc}
html[data-ng-theme="dark"] body.nf-2026 .nfl-zodiac-info>span:not(.nfl-z-more){color:#c8d4e4}
html[data-ng-theme="dark"] body.nf-2026 .nfl-zodiac-actions button{background:#1c2b43;border-color:#34445e;color:#fff}

/* Theme 129 — 25 Nov 2026: Mini Ads full-image, no-crop fix.
   The uploaded ad can be a very wide landscape banner (e.g. 1600 x 533).
   Never force it into a tall image container or put a dark gradient over its copy.
   Scope is intentionally LIMITED to the mobile Mini Ads section. */
@media (max-width:760px) {
  body.nf-2026 #nfm-mini-ads .nfm-slide {
    height:auto !important;
    min-height:0 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    padding:0 !important;
    background:#fff !important;
    aspect-ratio:auto !important;
  }
  body.nf-2026 #nfm-mini-ads .nfm-slide .nfm-picture,
  body.nf-2026 #nfm-mini-ads .nfm-slide.nfm-style-overlay .nfm-picture {
    position:relative !important;
    inset:auto !important;
    flex:0 0 auto !important;
    display:block !important;
    width:100% !important;
    height:auto !important;
    max-width:none !important;
    overflow:visible !important;
    background:#fff !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
  }
  body.nf-2026 #nfm-mini-ads .nfm-slide .nfm-picture img,
  body.nf-2026 #nfm-mini-ads .nfm-slide.nfm-style-overlay .nfm-picture img {
    display:block !important;
    width:100% !important;
    height:auto !important;
    max-height:none !important;
    aspect-ratio:auto !important;
    object-fit:contain !important;
    object-position:center !important;
  }
  body.nf-2026 #nfm-mini-ads .nfm-slide .nfm-picture::after,
  body.nf-2026 #nfm-mini-ads .nfm-slide.nfm-style-overlay .nfm-picture::after {
    display:none !important;
    content:none !important;
  }
  body.nf-2026 #nfm-mini-ads .nfm-slide .nfm-info,
  body.nf-2026 #nfm-mini-ads .nfm-slide.nfm-style-overlay .nfm-info {
    position:relative !important;
    inset:auto !important;
    flex:0 0 auto !important;
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:wrap !important;
    justify-content:flex-start !important;
    align-items:center !important;
    gap:5px 9px !important;
    width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    padding:8px 11px !important;
    background:#f8fafc !important;
    color:#122643 !important;
    pointer-events:auto !important;
    box-sizing:border-box;
  }
  body.nf-2026 #nfm-mini-ads .nfm-slide .nfm-tag {
    position:static !important;
    inset:auto !important;
    flex:0 0 auto;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
    color:#64748b !important;
    font-size:9px !important;
    text-shadow:none !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
  }
  body.nf-2026 #nfm-mini-ads .nfm-slide .nfm-info h3,
  body.nf-2026 #nfm-mini-ads .nfm-slide.nfm-style-overlay .nfm-info h3 {
    flex:1 1 120px;
    min-width:0;
    margin:0 !important;
    font-size:12px !important;
    line-height:1.3 !important;
    color:#172b49 !important;
    text-shadow:none !important;
    display:-webkit-box !important;
    -webkit-box-orient:vertical !important;
    -webkit-line-clamp:2 !important;
    max-height:2.6em !important;
    overflow:hidden !important;
  }
  body.nf-2026 #nfm-mini-ads .nfm-slide .nfm-cta {
    flex:0 0 auto;
    pointer-events:auto !important;
    margin:0 !important;
    min-height:29px;
    padding:6px 10px;
    font-size:10px;
    white-space:nowrap;
    box-shadow:none !important;
  }
  html[data-ng-theme="dark"] body.nf-2026 #nfm-mini-ads .nfm-slide .nfm-info {
    background:#1b304c !important;
    color:#edf4ff !important;
  }
  html[data-ng-theme="dark"] body.nf-2026 #nfm-mini-ads .nfm-slide .nfm-info h3 {color:#edf4ff !important;}
  html[data-ng-theme="dark"] body.nf-2026 #nfm-mini-ads .nfm-slide .nfm-tag {color:#bed0e8 !important;}
}
