/**
 * NewsPlus Features Stylesheet
 * Theme: NewsPlus
 * Creator: Rifan Muazin (https://gig.web.id)
 */

:root {
  --newsplus-brand: #202F5B;
  --newsplus-brand-dark: #152243;
  --newsplus-accent: #0066cc;
  --newsplus-surface: #ffffff;
  --newsplus-ink: #111827;
  --newsplus-muted: #6b7280;
  --newsplus-border: #e5e7eb;
  --newsplus-bg: #f4f6f9;
  --newsplus-container-width: 1170px;
  --newsplus-radius: 8px;
  --newsplus-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   0. TOP CATEGORIES BAR
   ========================================================================== */
.newsplus-top-cats-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--newsplus-border);
  padding: 10px 0;
  position: relative;
  z-index: 10;
}

.newsplus-top-cats-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.newsplus-top-cats-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--newsplus-brand);
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.newsplus-top-cats-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--newsplus-border) transparent;
  flex: 1;
}

.newsplus-top-cats-scroll::-webkit-scrollbar {
  height: 4px;
}

.newsplus-top-cats-scroll::-webkit-scrollbar-thumb {
  background-color: var(--newsplus-border);
  border-radius: 4px;
}

.newsplus-top-cats-list {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px;
}

.newsplus-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--newsplus-border);
  border-radius: 30px;
  padding: 4px 14px 4px 5px;
  text-decoration: none !important;
  color: var(--newsplus-ink) !important;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.newsplus-cat-pill:hover {
  background: #ffffff;
  border-color: var(--newsplus-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.newsplus-cat-logo-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
}

.newsplus-cat-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.newsplus-cat-logo-fallback {
  color: var(--newsplus-muted);
  font-size: 0.85rem;
}

.newsplus-cat-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.newsplus-cat-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--newsplus-ink);
}

.newsplus-cat-count-badge {
  background: rgba(0, 0, 0, 0.07);
  color: var(--newsplus-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.newsplus-cat-pill:hover .newsplus-cat-count-badge {
  background: var(--newsplus-brand);
  color: #ffffff;
}

/* ==========================================================================
   1. MARQUEE BREAKING NEWS
   ========================================================================== */
.newsplus-marquee-section {
  background: #0f172a;
  color: #ffffff;
  border-bottom: 2px solid var(--newsplus-accent);
}

.newsplus-marquee-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 44px;
}

.newsplus-marquee-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--newsplus-brand);
  color: #ffffff;
  padding: 0 16px;
  height: 100%;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 3px 0 10px rgba(0,0,0,0.25);
}

.newsplus-pulse-indicator {
  width: 9px;
  height: 9px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: newsplus-pulse 1.6s infinite;
}

@keyframes newsplus-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.newsplus-marquee-track-container {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  position: relative;
}

.newsplus-marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: newsplus-marquee-scroll 32s linear infinite;
}

.newsplus-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes newsplus-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.newsplus-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 28px;
  font-size: 0.88rem;
}

.newsplus-marquee-bullet {
  color: var(--newsplus-accent);
  font-weight: 900;
}

.newsplus-marquee-time {
  color: #94a3b8;
  font-size: 0.78rem;
}

.newsplus-marquee-link {
  color: #f1f5f9 !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.newsplus-marquee-link:hover {
  color: var(--newsplus-accent) !important;
  text-decoration: underline !important;
}

/* ==========================================================================
   2. YOU MAY HAVE MISSED
   ========================================================================== */
.newsplus-missed-section {
  padding: 35px 0 20px;
  border-top: 1px solid var(--newsplus-border);
  background: #f8fafc;
}

.newsplus-section-header, .newsplus-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--newsplus-border);
  position: relative;
}

.newsplus-section-title, .newsplus-block-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--newsplus-ink);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.newsplus-title-indicator {
  width: 5px;
  height: 22px;
  background: var(--newsplus-brand);
  border-radius: 3px;
  display: inline-block;
}

.newsplus-block-view-all {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--newsplus-accent) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.newsplus-block-view-all:hover {
  gap: 10px;
}

.newsplus-missed-card {
  border: 1px solid var(--newsplus-border);
  border-radius: var(--newsplus-radius);
  overflow: hidden;
  background: #ffffff;
  transition: all 0.25s ease;
}

.newsplus-missed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--newsplus-shadow);
  border-color: #cbd5e1;
}

.newsplus-missed-media {
  position: relative;
  display: block;
  height: 180px;
  overflow: hidden;
  background: #e2e8f0;
}

.newsplus-missed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.newsplus-missed-card:hover .newsplus-missed-media img {
  transform: scale(1.06);
}

.newsplus-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--newsplus-brand);
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  z-index: 2;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.newsplus-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--newsplus-muted);
  margin-bottom: 6px;
}

.newsplus-card-meta i {
  margin-right: 3px;
}

.newsplus-missed-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.newsplus-missed-title a {
  color: var(--newsplus-ink) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.newsplus-missed-title a:hover {
  color: var(--newsplus-accent) !important;
}

/* ==========================================================================
   3. WHATSAPP-STYLE STORIES
   ========================================================================== */
.newsplus-stories-bar {
  padding: 16px 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--newsplus-border);
}

.newsplus-stories-container {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 18px;
  border: 1px solid var(--newsplus-border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.newsplus-stories-header {
  margin-bottom: 12px;
}

.newsplus-stories-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--newsplus-brand);
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 20px;
}

.newsplus-stories-scroll-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.newsplus-stories-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
}

.newsplus-stories-scroll::-webkit-scrollbar {
  display: none;
}

.newsplus-stories-track {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 4px 2px;
}

.newsplus-story-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  width: 72px;
  text-align: center;
  flex-shrink: 0;
  outline: none;
  transition: transform 0.2s ease;
}

.newsplus-story-bubble:hover {
  transform: translateY(-3px);
}

.newsplus-story-ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(220, 39, 67, 0.25);
  transition: transform 0.2s ease;
}

.newsplus-story-bubble:hover .newsplus-story-ring {
  transform: scale(1.05);
}

.newsplus-story-avatar-wrap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ffffff;
  background: #e2e8f0;
}

.newsplus-story-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.newsplus-story-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--newsplus-ink);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.newsplus-stories-nav {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--newsplus-border);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  color: var(--newsplus-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.newsplus-stories-nav:hover {
  background: var(--newsplus-brand);
  color: #ffffff;
}

.newsplus-stories-nav.prev { left: -12px; }
.newsplus-stories-nav.next { right: -12px; }

/* Story Modal Viewer */
.newsplus-story-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsplus-story-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(10px);
}

.newsplus-story-dialog {
  position: relative;
  width: 92%;
  max-width: 420px;
  height: 85vh;
  max-height: 740px;
  border-radius: 20px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.newsplus-story-progress-wrap {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  overflow: hidden;
  z-index: 20;
}

.newsplus-story-progress-bar {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 4px;
  transition: width 0.05s linear;
}

.newsplus-story-modal-header {
  position: absolute;
  top: 22px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
}

.newsplus-story-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.newsplus-story-mini-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  object-fit: cover;
}

.newsplus-story-user-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.newsplus-story-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.newsplus-story-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.newsplus-story-btn-toggle, .newsplus-story-btn-close {
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.newsplus-story-btn-toggle:hover, .newsplus-story-btn-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.newsplus-story-content-area {
  position: relative;
  width: 100%;
  height: 100%;
}

.newsplus-story-image-wrap {
  width: 100%;
  height: 100%;
  background: #1e293b;
}

.newsplus-story-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.newsplus-story-caption-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 18px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.65) 60%, transparent 100%);
  color: #ffffff;
  z-index: 15;
}

.newsplus-story-caption-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin: 10px 0 6px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.newsplus-story-caption-box p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  margin-bottom: 14px;
}

.newsplus-story-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--newsplus-accent);
  color: #ffffff !important;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 25px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.4);
  transition: all 0.2s ease;
  pointer-events: auto !important;
  position: relative;
  z-index: 30;
}

.newsplus-story-cta-btn:hover {
  background: var(--newsplus-brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Touch navigation triggers: middle area only to not block CTA button */
.newsplus-story-nav-touch {
  position: absolute;
  top: 75px;
  bottom: 170px;
  width: 45%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  outline: none;
}

.newsplus-story-nav-touch.prev { left: 0; }
.newsplus-story-nav-touch.next { right: 0; }

/* ==========================================================================
   4. HERO NEWS SLIDER
   ========================================================================== */
.newsplus-hero-slider-section {
  padding: 20px 0;
}

.newsplus-slider-card {
  border-radius: var(--newsplus-radius);
  overflow: hidden;
  border: none;
  box-shadow: var(--newsplus-shadow);
}

.newsplus-slider-viewport {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
  background: #0f172a;
}

@media (max-width: 768px) {
  .newsplus-slider-viewport { height: 340px; }
}

.newsplus-slider-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.newsplus-slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(1.02);
}

.newsplus-slider-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.newsplus-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.newsplus-slide-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 50%, rgba(15, 23, 42, 0.15) 100%);
}

.newsplus-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  color: #ffffff;
  z-index: 5;
  max-width: 850px;
}

.newsplus-slide-meta-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.newsplus-slide-meta-item {
  color: #cbd5e1;
  font-size: 0.85rem;
}

.newsplus-slide-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 10px;
}

@media (max-width: 768px) {
  .newsplus-slide-title { font-size: 1.35rem; }
}

.newsplus-slide-title a {
  color: #ffffff !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.newsplus-slide-title a:hover {
  color: var(--newsplus-accent) !important;
}

.newsplus-slide-excerpt {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .newsplus-slide-excerpt { display: none; }
}

.newsplus-slide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.newsplus-slide-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.newsplus-author-avatar {
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.newsplus-author-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.newsplus-slide-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--newsplus-accent);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.newsplus-slide-read-btn:hover {
  background: #ffffff;
  color: var(--newsplus-brand) !important;
  transform: translateY(-2px);
}

.newsplus-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.newsplus-slider-btn:hover {
  background: #ffffff;
  color: var(--newsplus-brand);
}

.newsplus-slider-btn.prev { left: 20px; }
.newsplus-slider-btn.next { right: 20px; }

.newsplus-slider-dots {
  position: absolute;
  bottom: 20px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.newsplus-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.newsplus-slider-dot.is-active {
  width: 26px;
  border-radius: 6px;
  background: var(--newsplus-accent);
}

/* ==========================================================================
   5. 10 HOMEPAGE NEWS BLOCKS STYLES
   ========================================================================== */
.newsplus-blocks-container {
  padding: 20px 0;
}

.newsplus-block-section {
  margin-bottom: 35px;
}

/* Card Placeholders */
.newsplus-card-placeholder, .newsplus-media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: var(--newsplus-muted);
  font-size: 2rem;
}

.newsplus-card-placeholder-sm {
  width: 100%;
  height: 100%;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: var(--newsplus-muted);
  font-size: 1.3rem;
}

/* Lead Card (Head) */
.newsplus-card-head {
  border: 1px solid var(--newsplus-border);
  border-radius: var(--newsplus-radius);
  overflow: hidden;
  height: 100%;
  background: #ffffff;
  transition: all 0.25s ease;
}

.newsplus-card-head:hover {
  box-shadow: var(--newsplus-shadow);
  border-color: #cbd5e1;
}

.newsplus-card-head-media {
  display: block;
  height: 250px;
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

.newsplus-card-head-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.newsplus-card-head:hover .newsplus-card-head-media img {
  transform: scale(1.05);
}

.newsplus-card-head-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
}

.newsplus-card-head-title a {
  color: var(--newsplus-ink) !important;
  text-decoration: none !important;
}

.newsplus-card-head-title a:hover {
  color: var(--newsplus-accent) !important;
}

.newsplus-card-excerpt {
  color: var(--newsplus-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
}

/* Medium Card */
.newsplus-card-medium {
  border: 1px solid var(--newsplus-border);
  border-radius: var(--newsplus-radius);
  overflow: hidden;
  background: #ffffff;
  transition: all 0.25s ease;
  height: 100%;
}

.newsplus-card-medium:hover {
  box-shadow: var(--newsplus-shadow);
}

.newsplus-card-medium-media {
  display: block;
  height: 170px;
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

.newsplus-card-medium-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.newsplus-card-medium:hover .newsplus-card-medium-media img {
  transform: scale(1.06);
}

.newsplus-card-medium-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.newsplus-card-medium-title a {
  color: var(--newsplus-ink) !important;
  text-decoration: none !important;
}

.newsplus-card-medium-title a:hover {
  color: var(--newsplus-accent) !important;
}

/* List Card */
.newsplus-card-list {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--newsplus-border);
  background: transparent;
  border-radius: 0;
}

.newsplus-card-list:last-child {
  border-bottom: none;
}

.newsplus-card-list-thumb {
  width: 100px;
  height: 75px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
  display: block;
}

.newsplus-card-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.newsplus-card-list:hover .newsplus-card-list-thumb img {
  transform: scale(1.08);
}

.newsplus-card-list-content {
  flex: 1;
}

.newsplus-cat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--newsplus-accent);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 3px;
}

.newsplus-card-list-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 4px;
}

.newsplus-card-list-title a {
  color: var(--newsplus-ink) !important;
  text-decoration: none !important;
}

.newsplus-card-list-title a:hover {
  color: var(--newsplus-accent) !important;
}

/* Mini Card */
.newsplus-card-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--newsplus-border);
  background: transparent;
}

.newsplus-card-mini:last-child {
  border-bottom: none;
}

.newsplus-card-mini-thumb {
  width: 70px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  background: #e2e8f0;
}

.newsplus-card-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsplus-card-mini-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 3px;
}

.newsplus-card-mini-title a {
  color: var(--newsplus-ink) !important;
  text-decoration: none !important;
}

.newsplus-card-mini-title a:hover {
  color: var(--newsplus-accent) !important;
}

.newsplus-card-meta-date {
  font-size: 0.74rem;
  color: var(--newsplus-muted);
}

/* Overlay Card */
.newsplus-card-overlay {
  position: relative;
  height: 280px;
  border-radius: var(--newsplus-radius);
  overflow: hidden;
  border: none;
}

.newsplus-card-overlay-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.newsplus-card-overlay:hover .newsplus-card-overlay-bg {
  transform: scale(1.06);
}

.newsplus-card-overlay-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

.newsplus-card-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px;
  color: #ffffff;
  z-index: 2;
}

.newsplus-card-overlay-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 6px 0;
}

.newsplus-card-overlay-title a {
  color: #ffffff !important;
  text-decoration: none !important;
}

.newsplus-card-meta.light {
  color: rgba(255, 255, 255, 0.8);
}

/* Grid Layout Arrangements for Style 1 - 10 */
.newsplus-block-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.newsplus-col-half {
  flex: 1 1 calc(50% - 10px);
  min-width: 290px;
}

.newsplus-quad-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  width: 100%;
}

.newsplus-trio-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  width: 100%;
}

.newsplus-trio-head {
  margin-bottom: 12px;
}

.newsplus-stacked-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.newsplus-triple-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.newsplus-col-40 { flex: 1 1 38%; min-width: 280px; }
.newsplus-col-30 { flex: 1 1 28%; min-width: 240px; }

.newsplus-dual-lead-wrap {
  width: 100%;
}

.newsplus-dual-lead-top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.newsplus-overlay-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  width: 100%;
}

.newsplus-mt-gap { margin-top: 20px; }
.newsplus-mt-sm { margin-top: 10px; }
