/* ==========================================================================
   WAYANAD NEWS DAILY - HOME PAGE STYLES
   Font: Noto Sans Malayalam (Universal)
   ========================================================================== */

/* Universal Font Application */
:root {
  --wnd-font-family: 'Noto Sans Malayalam', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body,
button,
input,
select,
optgroup,
textarea,
h1, h2, h3, h4, h5, h6,
p, span, a, div, li, ul,
.wnd-header-master,
.wnd-navigation-bar,
.wnd-home-wrapper,
.wnd-block-title,
.wnd-slide-title,
.wnd-item-title,
.wnd-compact-title,
.wnd-card-title,
.wnd-media-title {
  font-family: var(--wnd-font-family) !important;
}

/* Main Wrapper - Override theme's restrictive max-width (420px-1090px) on .site-main */
body:not([class*=elementor-page-]) main#primary.site-main.wnd-home-wrapper,
body main#primary.site-main.wnd-home-wrapper,
main#primary.wnd-home-wrapper {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 28px 0 60px !important;
  background: #f8fafc !important;
  min-height: 80vh;
  box-sizing: border-box;
}

/* Master Container - Matches header .wnd-container exactly */
.wnd-home-wrapper .wnd-container,
.wnd-home-container,
.wnd-container {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* Section Wrapper Spacing */
.wnd-section-wrapper {
  margin-top: 26px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   SECTION HEADERS
   -------------------------------------------------------------------------- */
.wnd-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
  margin-bottom: 16px;
  position: relative;
}

.wnd-block-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: #dc2626;
}

.wnd-block-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wnd-block-title-accent {
  width: 4px;
  height: 18px;
  background: #dc2626;
  border-radius: 2px;
  flex-shrink: 0;
}

.wnd-badge-featured {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.wnd-badge-featured .wnd-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
  animation: wndPulse 1.5s infinite;
}

@keyframes wndPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.wnd-view-all-link {
  font-size: 12.5px;
  font-weight: 700;
  color: #dc2626;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.wnd-view-all-link:hover {
  transform: translateX(2px);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   UNIFIED COLUMN CARD CONTAINER
   -------------------------------------------------------------------------- */
.wnd-col-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 20px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  box-sizing: border-box;
}

/* ==========================================================================
   SECTION 1: 3-COLUMN HERO GRID (SLIDER + KERALA + WAYANAD)
   ========================================================================== */
.wnd-home-3col-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 22px;
  align-items: start;
  width: 100%;
}

.wnd-col-1 {
  display: flex;
  flex-direction: column;
}

.wnd-slider-container {
  position: relative;
  width: 100%;
  height: 330px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.15);
  background: #0f172a;
}

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

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

.wnd-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wnd-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.5) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 22px;
  z-index: 3;
}

.wnd-slide-cat {
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 8px;
  width: fit-content;
  text-decoration: none;
}

.wnd-slide-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

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

.wnd-slide-title a:hover {
  color: #fbbf24;
}

.wnd-slide-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: #cbd5e1;
}

/* Slider Controls */
.wnd-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  font-size: 18px;
  line-height: 1;
}

.wnd-slider-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-50%) scale(1.08);
}

.wnd-slider-prev { left: 14px; }
.wnd-slider-next { right: 14px; }

.wnd-slider-dots {
  position: absolute;
  bottom: 12px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
}

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

.wnd-slider-dot.wnd-active {
  width: 18px;
  border-radius: 9px;
  background: #dc2626;
}

/* Column 1 Bottom 3 Items */
.wnd-col1-bottom-wrap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.wnd-col1-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
}

.wnd-col1-items {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.wnd-list-item-horizontal {
  display: flex;
  gap: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}

.wnd-list-item-horizontal:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wnd-list-thumb-link {
  width: 110px;
  height: 78px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  background: #e2e8f0;
}

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

.wnd-list-item-horizontal:hover .wnd-list-thumb {
  transform: scale(1.06);
}

.wnd-list-content {
  flex: 1;
  min-width: 0;
}

.wnd-item-cat {
  font-size: 10.5px;
  font-weight: 700;
  color: #dc2626;
  text-transform: uppercase;
  margin-bottom: 3px;
  display: inline-block;
}

.wnd-item-title {
  margin: 0 0 5px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
}

.wnd-item-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wnd-item-title a:hover {
  color: #dc2626;
}

.wnd-item-date {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Vertical List Items (Columns 2 & 3 & Sidebars) */
.wnd-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.wnd-compact-item {
  display: flex;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid #f1f5f9;
  align-items: flex-start;
  position: relative;
}

.wnd-compact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wnd-compact-thumb-link {
  position: relative;
  width: 90px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  background: #e2e8f0;
}

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

.wnd-compact-item:hover .wnd-compact-thumb {
  transform: scale(1.06);
}

.wnd-compact-content {
  flex: 1;
  min-width: 0;
}

.wnd-compact-title {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}

.wnd-compact-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wnd-compact-title a:hover {
  color: #dc2626;
}

.wnd-compact-meta {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Numbered ranking overlay on Column 3 */
.wnd-rank-badge-overlay {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(2px);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.wnd-rank-badge-overlay.rank-1 { background: #dc2626; }
.wnd-rank-badge-overlay.rank-2 { background: #ea580c; }
.wnd-rank-badge-overlay.rank-3 { background: #d97706; }

/* ==========================================================================
   SECTION 2: NATIONAL (GRID & LIST) & WORLD (CARD & LIST)
   ========================================================================== */
.wnd-nat-world-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 22px;
  align-items: start;
}

.wnd-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.wnd-card-featured {
  display: flex;
  flex-direction: column;
}

.wnd-card-thumb-link {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  background: #0f172a;
}

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

.wnd-card-featured:hover .wnd-card-thumb {
  transform: scale(1.05);
}

.wnd-card-cat-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.wnd-card-content {
  padding-top: 10px;
}

.wnd-card-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.wnd-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wnd-card-title a:hover {
  color: #2563eb;
}

.wnd-nat-bottom-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* World Featured Card */
.wnd-world-featured-card {
  display: flex;
  flex-direction: column;
}

.wnd-world-thumb-link {
  position: relative;
  width: 100%;
  height: 175px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  background: #0f172a;
}

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

.wnd-world-featured-card:hover .wnd-world-thumb {
  transform: scale(1.05);
}

/* ==========================================================================
   SECTION 3: ENTERTAINMENT & CINEMA (4-CARD MEDIA GRID)
   ========================================================================== */
.wnd-media-4grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.wnd-media-card {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wnd-media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.wnd-media-thumb-link {
  position: relative;
  width: 100%;
  height: 155px;
  overflow: hidden;
  display: block;
  background: #0f172a;
}

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

.wnd-media-card:hover .wnd-media-thumb {
  transform: scale(1.06);
}

.wnd-media-content {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wnd-media-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.wnd-media-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wnd-media-card:hover .wnd-media-title a {
  color: #e11d48;
}

/* ==========================================================================
   SECTION 4: HEALTH & SPORTS (2-COLUMN SPLIT GRID & LIST)
   ========================================================================== */
.wnd-split-2col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.wnd-health-lead-card {
  display: flex;
  flex-direction: column;
}

.wnd-lead-thumb-link {
  position: relative;
  width: 100%;
  height: 195px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  background: #0f172a;
}

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

.wnd-health-lead-card:hover .wnd-lead-thumb {
  transform: scale(1.05);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .wnd-home-3col-grid {
    grid-template-columns: 1fr 1fr;
  }
  .wnd-col-1 {
    grid-column: span 2;
  }
  .wnd-nat-world-grid {
    grid-template-columns: 1fr;
  }
  .wnd-media-4grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wnd-split-2col-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .wnd-home-3col-grid {
    grid-template-columns: 1fr;
  }
  .wnd-col-1 {
    grid-column: span 1;
  }
  .wnd-slider-container {
    height: 260px;
  }
  .wnd-slide-overlay {
    padding: 14px 16px;
  }
  .wnd-slide-title {
    font-size: 16px;
  }
  .wnd-list-item-horizontal {
    gap: 12px;
  }
  .wnd-list-thumb-link {
    width: 90px;
    height: 65px;
  }
  .wnd-grid-2col {
    grid-template-columns: 1fr;
  }
  .wnd-nat-bottom-list {
    grid-template-columns: 1fr;
  }
  .wnd-media-4grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   GOOGLE ADSENSE / BANNER AD CONTAINERS
   ========================================================================== */
.wnd-ad-section-container {
  width: 100%;
  margin: 24px 0;
  display: flex;
  justify-content: center;
}

.wnd-ad-banner-wrapper {
  width: 100%;
  max-width: 100%;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px 12px;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.wnd-ad-banner-wrapper:hover {
  border-color: #94a3b8;
}

.wnd-ad-label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.wnd-ad-inner {
  width: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wnd-ad-inner ins.adsbygoogle {
  display: block;
  width: 100%;
  min-height: 90px;
}

