/* ==========================================================================
   Purenote Child Theme - Hero Featured & Trending Two-Column Section
   Strict Equal-Height Alignment & 970x250 Billboard Ad Banner
   ========================================================================== */

/* 1. SECTION & GRID WRAPPER */
.section-hero-trending {
  margin-top: 24px;
  margin-bottom: 36px;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(330px, 1fr);
  gap: 28px;
  align-items: stretch; /* CRITICAL: Stretches both left and right columns to identical height */
}

/* ==========================================================================
   2. LEFT COLUMN: HERO FEATURED ARTICLES SLIDER
   ========================================================================== */
.hero-featured {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hero-slider-container {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 100% !important;
  min-height: 520px;
  flex: 1;
  background-color: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-slides-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide .hero-image-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #111827);
}

.hero-slide .hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}

.hero-slide.is-active .hero-slide-img {
  transform: scale(1.04);
}

.hero-slide .hero-placeholder-img {
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1513151233558-d860c5398176?auto=format&fit=crop&w=1200&q=80') center/cover;
}

/* White Hero Overlay Card (Bottom-Left) */
.hero-slide .hero-overlay-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  max-width: 500px;
  width: calc(100% - 48px);
  background: #ffffff;
  padding: 22px 26px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  z-index: 5;
  transform: translateY(12px);
  transition: transform 0.5s ease 0.1s;
}

.hero-slide.is-active .hero-overlay-card {
  transform: translateY(0);
}

/* Category Badge in Slider */
.hero-slide .category-badge {
  background-color: #7F304F !important;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 3.5px 11px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 4px;
}

.hero-slide .hero-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 8px 0;
  color: #1a202c;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slide .hero-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-slide .hero-card-title a:hover {
  color: #7F304F;
}

.hero-slide .hero-meta {
  font-size: 12px;
  color: #718096;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-slide .hero-excerpt {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Slider Navigation Buttons (Top-Right) */
.hero-slider-nav {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 20;
}

.hero-slider-nav button {
  background: rgba(88, 28, 47, 0.9);
  color: #ffffff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-slider-nav button:hover {
  background: #7F304F;
  transform: scale(1.06);
}

/* Slider Dots / Progress Indicator */
.hero-slider-dots {
  position: absolute;
  top: 22px;
  right: 98px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 20;
}

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

.hero-slider-dots .hero-dot.is-active {
  width: 22px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   3. RIGHT COLUMN: TRENDING SIDEBAR (Equal Height with Slider)
   ========================================================================== */
.trending-sidebar-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.trending-header {
  margin-bottom: 12px;
  padding-left: 2px;
}

.trending-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.trending-title .trending-dot {
  font-size: 24px;
  line-height: 1;
  color: #0f172a;
}

.trending-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.trending-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.trending-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.trending-thumb {
  width: 98px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.trending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.trending-item:hover .trending-thumb img {
  transform: scale(1.06);
}

.trending-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.trending-content .category-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #ffffff !important;
  background-color: #7F304F !important;
  padding: 2.5px 8.5px;
  border-radius: 4px;
  line-height: 1.2;
}

.trending-post-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.32;
  margin: 1px 0 2px 0;
  letter-spacing: -0.01em;
}

.trending-post-title a {
  color: #111827 !important;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.trending-post-title a:hover {
  color: #7F304F !important;
}

.trending-date {
  font-size: 11.5px;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.trending-date i {
  font-size: 11px;
  color: #9ca3af;
}

/* ==========================================================================
   4. 970x250-PIXEL ADVERTISING BILLBOARD BANNER
   ========================================================================== */
.section-billboard-ad {
  width: 100%;
  margin: 36px 0 44px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.billboard-ad-container {
  width: 100%;
  max-width: 970px;
  margin: 0 auto;
  text-align: center;
}

.billboard-ad-label {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 8px;
  text-align: center;
}

.billboard-ad-banner {
  width: 970px;
  max-width: 100%;
  height: 250px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(127, 48, 79, 0.25);
  background: #111827;
}

.billboard-ad-link {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none !important;
  align-items: center;
  justify-content: center;
  padding: 30px 48px;
  box-sizing: border-box;
}

.billboard-ad-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #18191b 0%, #2A0D18 45%, #5E2038 85%, #7F304F 100%);
  transition: transform 0.4s ease;
}

.billboard-ad-link:hover .billboard-ad-bg {
  transform: scale(1.02);
}

.billboard-ad-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.billboard-ad-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.billboard-ad-badge {
  display: inline-block;
  padding: 3px 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fbcfe8;
  background: rgba(127, 48, 79, 0.4);
  border: 1px solid rgba(251, 207, 232, 0.25);
  border-radius: 4px;
  margin-bottom: 10px;
}

.billboard-ad-title {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.billboard-ad-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0 0 16px 0;
  max-width: 580px;
}

.billboard-ad-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #5E2038;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 24px;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.billboard-ad-link:hover .billboard-ad-btn {
  background: #fce7f3;
  color: #421224;
  transform: translateY(-1px);
}

.billboard-ad-dimensions {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  z-index: 2;
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-slider-container {
    min-height: 440px;
    height: 440px !important;
  }

  .trending-sidebar-wrap {
    height: auto;
  }

  .trending-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .billboard-ad-banner {
    width: 100%;
    height: auto;
    min-height: 220px;
  }

  .billboard-ad-link {
    padding: 24px 24px;
  }

  .billboard-ad-title {
    font-size: 22px;
  }

  .billboard-ad-desc {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .hero-slider-container {
    height: 400px !important;
    min-height: 400px;
  }

  .hero-slide .hero-overlay-card {
    left: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    padding: 18px 20px;
  }

  .hero-slide .hero-card-title {
    font-size: 20px;
  }

  .hero-slider-dots {
    display: none;
  }

  .trending-list {
    grid-template-columns: 1fr;
  }

  .billboard-ad-title {
    font-size: 18px;
  }

  .billboard-ad-desc {
    display: none;
  }
}
