/**
 * Tomorrow Theme — Modern News & Magazine Components
 * Author: Rifan Muazin (https://gig.web.id)
 */

/* ==========================================================================
   1. Container Custom Widths & Layout Utilities
   ========================================================================== */
.container {
  max-width: var(--maxw, 1320px) !important;
}

body.tomorrow-width-compact { --maxw: 1140px; }
body.tomorrow-width-wide { --maxw: 1440px; }
body.tomorrow-width-ultrawide { --maxw: 1600px; }
body.tomorrow-width-fluid { --maxw: 96%; }

.tomorrow-mt-gap { margin-top: var(--gap, 1.5rem); }
.tomorrow-mt-sm { margin-top: 0.75rem; }

/* Badges & Micro Typography */
.tomorrow-badge {
  display: inline-block;
  background-color: var(--brand, #2c3e50);
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.tomorrow-badge:hover {
  transform: translateY(-2px);
  background-color: var(--brand-dark, #1a252f);
}

.tomorrow-cat-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand, #2c3e50);
  margin-bottom: 0.25rem;
}

/* Broadsheet Category Kicker */
.tomorrow-kicker {
  color: var(--brand, #2c3e50);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85em;
  margin-right: 0.35rem;
  display: inline;
}

.tomorrow-kicker.light {
  color: var(--brand-soft, #9fb3c8);
}

.tomorrow-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted, #5f7081);
  margin-bottom: 0.5rem;
}

.tomorrow-card-meta i {
  margin-right: 0.2rem;
}

.tomorrow-card-meta.light {
  color: rgba(255, 255, 255, 0.85);
}

.tomorrow-card-placeholder,
.tomorrow-card-placeholder-sm {
  background: linear-gradient(135deg, var(--line, #e3e8ee) 0%, var(--chip, #eef1f4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted, #5f7081);
  width: 100%;
  height: 100%;
  min-height: 180px;
  font-size: 2rem;
}
.tomorrow-card-placeholder-sm {
  min-height: 85px;
  font-size: 1.25rem;
}

/* ==========================================================================
   2. Marquee Breaking News Ticker
   ========================================================================== */
.tomorrow-marquee-bar {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.tomorrow-marquee-inner {
  display: flex;
  align-items: center;
  padding: 0.35rem 0.5rem;
  background-color: var(--surface, #ffffff);
  border: 1px solid var(--line, #e3e8ee);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.tomorrow-marquee-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
  color: #ffffff;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
  z-index: 3;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0.7);
  animation: tomorrowPulse 1.8s infinite;
}

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

.tomorrow-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-left: 1rem;
  white-space: nowrap;
}

.tomorrow-marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: tomorrowMarqueeLoop 36s linear infinite;
}

.tomorrow-marquee-wrapper:hover .tomorrow-marquee-track,
.tomorrow-marquee-wrapper:focus-within .tomorrow-marquee-track {
  animation-play-state: paused;
}

@keyframes tomorrowMarqueeLoop {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.tomorrow-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink, #1f2d3d);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}

.tomorrow-marquee-item:hover {
  color: var(--brand, #2c3e50);
}

.tomorrow-marquee-tag {
  background-color: var(--chip, #eef1f4);
  color: var(--ink-soft, #3e4c59);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tomorrow-marquee-time {
  font-size: 0.78rem;
  color: var(--muted, #5f7081);
}

.tomorrow-marquee-separator {
  color: var(--line, #e3e8ee);
  font-size: 1.2rem;
  margin-inline: 0.75rem;
}

/* ==========================================================================
   3. WhatsApp-Style Stories
   ========================================================================== */
.tomorrow-stories-bar {
  margin-block: 0.75rem 1.25rem;
}

.tomorrow-stories-wrapper {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line, #e3e8ee);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.tomorrow-stories-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.tomorrow-stories-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink, #1f2d3d);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tomorrow-stories-title i {
  color: #25d366; /* WhatsApp Green */
  font-size: 1.1rem;
}

.tomorrow-stories-list-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tomorrow-stories-scroll-container {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  width: 100%;
  padding-block: 4px;
}

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

.tomorrow-stories-list {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.tomorrow-story-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
  width: 78px;
  text-align: center;
  transition: transform 0.2s ease;
  user-select: none;
}

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

.tomorrow-story-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 50%, #075e54 100%);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

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

.tomorrow-story-avatar-wrap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--surface, #ffffff);
  padding: 2px;
  overflow: hidden;
}

.tomorrow-story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.tomorrow-story-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft, #3e4c59);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.tomorrow-stories-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line, #e3e8ee);
  background-color: var(--surface, #ffffff);
  color: var(--ink, #1f2d3d);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.tomorrow-stories-nav:hover {
  background-color: var(--chip, #eef1f4);
  transform: translateY(-50%) scale(1.1);
}

.tomorrow-stories-nav.prev { left: -10px; }
.tomorrow-stories-nav.next { right: -10px; }

/* Story Modal Viewer */
.tomorrow-story-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tomorrow-story-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 15, 22, 0.88);
  backdrop-filter: blur(8px);
}

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

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

.tomorrow-story-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #ffffff;
  border-radius: 3px;
  transition: width 0.1s linear;
}

.tomorrow-story-modal-header {
  position: absolute;
  top: 24px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  color: #ffffff;
}

.tomorrow-story-author-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.tomorrow-story-author-info h4 {
  font-size: 0.88rem;
  margin: 0;
  color: #ffffff;
  font-weight: 700;
}

.tomorrow-story-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.tomorrow-story-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tomorrow-story-play-pause,
.tomorrow-story-close {
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
}

.tomorrow-story-content-box {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tomorrow-story-media-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tomorrow-story-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tomorrow-story-caption {
  position: relative;
  z-index: 5;
  padding: 1.5rem 1.25rem 1.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
  color: #ffffff;
}

.tomorrow-story-caption h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.tomorrow-story-caption p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.85rem;
}

.tomorrow-story-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--brand, #2c3e50);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.tomorrow-story-step {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  background: transparent;
  border: none;
  z-index: 6;
  cursor: pointer;
}
.tomorrow-story-step.prev { left: 0; }
.tomorrow-story-step.next { right: 0; }

/* ==========================================================================
   4. Hero News Slider
   ========================================================================== */
.tomorrow-news-slider-section {
  margin-bottom: 1.75rem;
}

.tomorrow-slider-card {
  border: 1px solid var(--line, #e3e8ee);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.tomorrow-slider-viewport {
  position: relative;
  width: 100%;
  min-height: 440px;
  background-color: #0b1118;
  outline: none;
}

.tomorrow-slider-slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 440px;
}

.tomorrow-slider-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease;
  display: flex;
  align-items: flex-end;
  z-index: 1;
}

.tomorrow-slider-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.tomorrow-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 6s ease;
}

.tomorrow-slider-slide.is-active .tomorrow-slide-bg {
  transform: scale(1);
}

.tomorrow-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 24, 0.15) 0%, rgba(11, 17, 24, 0.6) 40%, rgba(11, 17, 24, 0.95) 100%);
}

.tomorrow-slide-content {
  position: relative;
  z-index: 3;
  padding: 2.5rem;
  max-width: 820px;
  color: #ffffff;
}

.tomorrow-slide-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
}

.tomorrow-slide-cat-badge {
  background-color: var(--brand, #2c3e50);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  text-decoration: none;
}

.tomorrow-slide-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

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

.tomorrow-slide-title a:hover {
  color: var(--brand-soft, #9fb3c8);
}

.tomorrow-slide-excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

.tomorrow-slide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.tomorrow-slide-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tomorrow-slide-author-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.tomorrow-slide-author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.tomorrow-slide-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(4px);
  padding: 0.5rem 1.1rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.tomorrow-slide-read-more:hover {
  background-color: var(--brand, #2c3e50);
  transform: translateX(3px);
}

.tomorrow-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tomorrow-slider-btn:hover {
  background: var(--brand, #2c3e50);
  transform: translateY(-50%) scale(1.08);
}

.tomorrow-slider-btn.prev { left: 1.5rem; }
.tomorrow-slider-btn.next { right: 1.5rem; }

.tomorrow-slider-dots {
  position: absolute;
  bottom: 1.25rem;
  right: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 5;
}

.tomorrow-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
}

.tomorrow-slider-dot.is-active {
  width: 24px;
  border-radius: 12px;
  background-color: #ffffff;
}

/* ==========================================================================
   5. News Blocks — 10 Symmetrical & Balanced Layout Variations
   ========================================================================== */
.tomorrow-featured-block-wrapper {
  margin-bottom: 2rem;
}

.tomorrow-block-section {
  width: 100%;
}

.tomorrow-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--line, #e3e8ee);
  position: relative;
}

.tomorrow-block-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink, #1f2d3d);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}

.tomorrow-block-title-accent {
  width: 4px;
  height: 22px;
  background-color: var(--brand, #2c3e50);
  border-radius: 2px;
  display: inline-block;
}

.tomorrow-block-view-all {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand, #2c3e50);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: transform 0.2s ease;
}

.tomorrow-block-view-all:hover {
  transform: translateX(3px);
}

/* Card Components */
.tomorrow-card-head {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line, #e3e8ee);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tomorrow-card-head:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}

.tomorrow-card-head-media {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background-color: var(--chip, #eef1f4);
}

.tomorrow-card-head-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.tomorrow-card-head-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tomorrow-card-head-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.tomorrow-card-head-title a {
  color: var(--ink, #1f2d3d);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tomorrow-card-head-title a:hover {
  color: var(--brand, #2c3e50);
}

.tomorrow-card-excerpt {
  font-size: 0.88rem;
  color: var(--ink-soft, #3e4c59);
  line-height: 1.5;
  margin: 0;
}

/* List Card */
.tomorrow-card-list {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--line, #e3e8ee);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.tomorrow-card-list:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.tomorrow-card-list-thumb {
  position: relative;
  flex-shrink: 0;
  width: 110px;
  height: 78px;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
}

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

.tomorrow-card-list:hover .tomorrow-card-list-thumb img {
  transform: scale(1.06);
}

.tomorrow-card-list-content {
  flex-grow: 1;
  min-width: 0;
}

.tomorrow-card-list-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.15rem 0 0.35rem;
}

.tomorrow-card-list-title a {
  color: var(--ink, #1f2d3d);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tomorrow-card-list-title a:hover {
  color: var(--brand, #2c3e50);
}

/* Medium Card */
.tomorrow-card-medium {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line, #e3e8ee);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.2s ease;
  overflow: hidden;
}

.tomorrow-card-medium:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.tomorrow-card-medium-media {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.tomorrow-card-medium-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tomorrow-card-medium:hover .tomorrow-card-medium-media img {
  transform: scale(1.05);
}

.tomorrow-card-medium-body {
  padding: 1rem;
  flex-grow: 1;
}

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

.tomorrow-card-medium-title a {
  color: var(--ink, #1f2d3d);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tomorrow-card-medium-title a:hover {
  color: var(--brand, #2c3e50);
}

/* Mini Card */
.tomorrow-card-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  border: 1px solid var(--line, #e3e8ee);
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
  transition: transform 0.2s ease;
}

.tomorrow-card-mini:hover {
  transform: translateY(-2px);
}

.tomorrow-card-mini-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
}

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

.tomorrow-card-mini-content {
  flex-grow: 1;
  min-width: 0;
}

.tomorrow-card-mini-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0.1rem 0 0.25rem;
}

.tomorrow-card-mini-title a {
  color: var(--ink, #1f2d3d);
  text-decoration: none;
}

.tomorrow-card-mini-title a:hover {
  color: var(--brand, #2c3e50);
}

/* Overlay Card */
.tomorrow-card-overlay {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--line, #e3e8ee);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tomorrow-card-overlay:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

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

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

.tomorrow-card-overlay-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.92) 100%);
}

.tomorrow-card-overlay-content {
  position: relative;
  z-index: 2;
  padding: 1.25rem;
  color: #ffffff;
  width: 100%;
}

.tomorrow-card-overlay-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.35rem 0 0.5rem;
}

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

/* Layout Grid Variation Containers */
.tomorrow-block-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap, 1.5rem);
}

.tomorrow-col-half {
  flex: 1 1 calc(50% - (var(--gap, 1.5rem) / 2));
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.tomorrow-list-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: space-between;
  height: 100%;
}

.tomorrow-stacked-group {
  display: flex;
  flex-direction: column;
  gap: var(--gap, 1.5rem);
  justify-content: space-between;
  height: 100%;
}

/* Style 3: 1 Row 3 Sub Blocks Equal */
.tomorrow-trio-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap, 1.5rem);
  width: 100%;
}

.tomorrow-trio-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: var(--surface, #ffffff);
  border: 1px solid var(--line, #e3e8ee);
  border-radius: var(--radius, 16px);
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.tomorrow-trio-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* Style 6: Quad Grid */
.tomorrow-quad-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap, 1.5rem);
  width: 100%;
}

/* Style 7: Dual Leads Top + Quad Bottom */
.tomorrow-dual-lead-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.tomorrow-dual-lead-top {
  display: flex;
  gap: var(--gap, 1.5rem);
  width: 100%;
}

/* Style 8: Magazine Triple (40% - 30% - 30%) */
.tomorrow-triple-row {
  display: grid;
  grid-template-columns: 4fr 3fr 3fr;
  gap: var(--gap, 1.5rem);
  width: 100%;
}

.tomorrow-col-40,
.tomorrow-col-30 {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Style 9: Dual Category Twin */
.tomorrow-twin-col {
  background-color: var(--surface, #ffffff);
  border: 1px solid var(--line, #e3e8ee);
  border-radius: var(--radius, 16px);
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* Style 10: 5 Overlay Deck */
.tomorrow-overlay-deck {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  width: 100%;
}

/* ==========================================================================
   6. "You May Have Missed" Section
   ========================================================================== */
.tomorrow-missed-section {
  margin-block: 2.5rem 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line, #e3e8ee);
}

.tomorrow-missed-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tomorrow-missed-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tomorrow-missed-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink, #1f2d3d);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.tomorrow-missed-icon {
  color: var(--brand, #2c3e50);
  font-size: 1.4rem;
}

.tomorrow-missed-sub {
  font-size: 0.88rem;
  color: var(--muted, #5f7081);
}

.tomorrow-missed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap, 1.5rem);
}

.tomorrow-missed-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line, #e3e8ee);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  height: 100%;
}

.tomorrow-missed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.tomorrow-missed-thumb-link {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.tomorrow-missed-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tomorrow-missed-card:hover .tomorrow-missed-img {
  transform: scale(1.05);
}

.tomorrow-missed-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tomorrow-missed-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.tomorrow-missed-card-title a {
  color: var(--ink, #1f2d3d);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tomorrow-missed-card-title a:hover {
  color: var(--brand, #2c3e50);
}

.tomorrow-missed-excerpt {
  font-size: 0.85rem;
  color: var(--ink-soft, #3e4c59);
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   7. Responsive Media Queries
   ========================================================================== */
@media (max-width: 1200px) {
  .tomorrow-overlay-deck {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .tomorrow-col-half,
  .tomorrow-col-40,
  .tomorrow-col-30 {
    flex: 1 1 100%;
  }

  .tomorrow-trio-row {
    grid-template-columns: 1fr;
  }

  .tomorrow-quad-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .tomorrow-dual-lead-top {
    flex-direction: column;
  }

  .tomorrow-triple-row {
    grid-template-columns: 1fr;
  }

  .tomorrow-overlay-deck {
    grid-template-columns: repeat(2, 1fr);
  }

  .tomorrow-missed-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tomorrow-slide-title {
    font-size: 1.6rem;
  }

  .tomorrow-slider-viewport,
  .tomorrow-slider-slides {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .tomorrow-quad-row,
  .tomorrow-overlay-deck,
  .tomorrow-missed-grid {
    grid-template-columns: 1fr;
  }

  .tomorrow-card-list {
    flex-direction: column;
    align-items: flex-start;
  }

  .tomorrow-card-list-thumb {
    width: 100%;
    height: 140px;
  }

  .tomorrow-slider-content {
    padding: 1.5rem;
  }

  .tomorrow-slide-title {
    font-size: 1.3rem;
  }

  .tomorrow-slider-btn {
    display: none;
  }

  .tomorrow-marquee-badge {
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   8. Tomorrow Featured Posts Widget (with Featured Images)
   ========================================================================== */
.widget_tomorrow_featured_posts .tomorrow-widget-posts-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tomorrow-widget-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  position: relative;
  transition: transform 0.2s ease;
}

.tomorrow-widget-item:hover {
  transform: translateY(-2px);
}

.tomorrow-widget-thumb-link {
  position: relative;
  flex-shrink: 0;
  width: 84px;
  height: 64px;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  background-color: var(--chip, #eef1f4);
  display: block;
}

.tomorrow-widget-thumb-link.lead-thumb {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm, 10px);
}

.tomorrow-widget-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tomorrow-widget-item:hover .tomorrow-widget-img {
  transform: scale(1.08);
}

.tomorrow-widget-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--line, #e3e8ee) 0%, var(--chip, #eef1f4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted, #5f7081);
  font-size: 1.25rem;
}

.tomorrow-widget-content {
  flex-grow: 1;
  min-width: 0;
}

.tomorrow-widget-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.15rem 0 0.35rem;
}

.tomorrow-widget-title a {
  color: var(--ink, #1f2d3d);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tomorrow-widget-title a:hover {
  color: var(--brand, #2c3e50);
}

.tomorrow-meta-comments {
  font-size: 0.78rem;
  color: var(--muted, #5f7081);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

/* Layout: Lead First */
.layout-lead_first .tomorrow-widget-item.is-lead {
  flex-direction: column;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line, #e3e8ee);
  margin-bottom: 0.25rem;
}

.layout-lead_first .tomorrow-widget-item.is-lead .tomorrow-widget-title {
  font-size: 1.05rem;
  margin-top: 0.6rem;
}

/* Layout: Cards Stack */
.layout-cards .tomorrow-widget-item {
  flex-direction: column;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line, #e3e8ee);
}

.layout-cards .tomorrow-widget-thumb-link {
  width: 100%;
  height: 140px;
}

/* ==========================================================================
   9. In-Article Related Post ("Baca Juga")
   ========================================================================== */
.tomorrow-inline-related {
  margin: 2rem 0;
  padding: 1.15rem 1.35rem;
  background: linear-gradient(135deg, var(--surface, #ffffff) 0%, var(--chip, #f8fafc) 100%);
  border: 1px solid var(--line, #e2e8f0);
  border-left: 4px solid var(--brand, #2563eb);
  border-radius: var(--radius-sm, 10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tomorrow-inline-related:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.tomorrow-inline-related-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand, #2563eb);
  margin-bottom: 0.65rem;
}

.tomorrow-inline-related-badge i {
  font-size: 0.85rem;
}

.tomorrow-inline-related-body {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.tomorrow-inline-related-thumb {
  flex-shrink: 0;
  width: 96px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
}

.tomorrow-inline-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tomorrow-inline-related:hover .tomorrow-inline-related-thumb img {
  transform: scale(1.08);
}

.tomorrow-inline-related-text {
  flex-grow: 1;
  min-width: 0;
}

.tomorrow-inline-related-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.2rem;
}

.tomorrow-inline-related-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.3rem;
}

.tomorrow-inline-related-title a {
  color: var(--ink, #1e293b);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tomorrow-inline-related-title a:hover {
  color: var(--brand, #2563eb);
}

.tomorrow-inline-related-date {
  font-size: 0.78rem;
  color: var(--muted, #64748b);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.tomorrow-inline-related-arrow {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--surface, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  color: var(--brand, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.tomorrow-inline-related:hover .tomorrow-inline-related-arrow {
  background-color: var(--brand, #2563eb);
  color: #ffffff;
  transform: translateX(3px);
}

@media (max-width: 576px) {
  .tomorrow-inline-related-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .tomorrow-inline-related-thumb {
    width: 100%;
    height: 140px;
  }
  .tomorrow-inline-related-arrow {
    display: none;
  }
}

/* ==========================================================================
   10. Bottom Related Posts Section
   ========================================================================== */
.tomorrow-bottom-related-section {
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  padding: 1.75rem;
  background-color: var(--surface, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius, 16px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.tomorrow-bottom-related-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line, #e2e8f0);
}

.tomorrow-bottom-related-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink, #1e293b);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tomorrow-bottom-related-title i {
  color: var(--brand, #2563eb);
}

.tomorrow-bottom-related-grid {
  display: grid;
  gap: 1.25rem;
}

.tomorrow-bottom-related-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.tomorrow-bottom-related-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.tomorrow-bottom-related-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.tomorrow-bottom-related-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-sm, 10px);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  background-color: var(--surface, #ffffff);
}

.tomorrow-bottom-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tomorrow-bottom-related-thumb-link {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background-color: var(--chip, #f1f5f9);
}

.tomorrow-bottom-related-thumb-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tomorrow-bottom-related-card:hover .tomorrow-bottom-related-thumb-link img {
  transform: scale(1.06);
}

.tomorrow-bottom-related-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tomorrow-bottom-related-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.4rem 0 0.5rem;
}

.tomorrow-bottom-related-card-title a {
  color: var(--ink, #1e293b);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tomorrow-bottom-related-card-title a:hover {
  color: var(--brand, #2563eb);
}

.tomorrow-bottom-related-excerpt {
  font-size: 0.82rem;
  color: var(--ink-soft, #475569);
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 900px) {
  .tomorrow-bottom-related-grid.cols-3,
  .tomorrow-bottom-related-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .tomorrow-bottom-related-grid,
  .tomorrow-bottom-related-grid.cols-2,
  .tomorrow-bottom-related-grid.cols-3,
  .tomorrow-bottom-related-grid.cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   11. Left-Rail Table of Contents (Daftar Isi) Modernization
   ========================================================================== */
.left-rail .toc {
  background-color: var(--surface, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius, 14px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.left-rail .toc-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink, #1e293b);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line, #e2e8f0);
}

.left-rail .toc-title i {
  color: var(--brand, #2563eb);
  font-size: 1.15rem;
}

.left-rail .toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.left-rail .toc-list a {
  display: block;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-soft, #475569);
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.left-rail .toc-list a:hover {
  background-color: var(--chip, #f1f5f9);
  color: var(--brand, #2563eb);
  padding-left: 0.75rem;
}

.left-rail .toc-list a.is-active {
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--brand, #2563eb);
  font-weight: 700;
  padding-left: 0.75rem;
}

.left-rail .toc-list li.toc-h3 a {
  padding-left: 1.25rem;
  font-size: 0.8rem;
}

.left-rail .toc-list li.toc-h3 a:hover,
.left-rail .toc-list li.toc-h3 a.is-active {
  padding-left: 1.45rem;
}


