/**
 * Wayanad News Daily - Single Post Stylesheet
 * Responsive, Modern, Clean News Reading Experience
 * Perfectly balanced typography and spacing
 */

/* Universal Font Application */
.wnd-single-page-wrapper,
.wnd-single-page-wrapper * {
  font-family: 'Noto Sans Malayalam', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  box-sizing: border-box;
}

/* Page Outer Wrapper */
.wnd-single-page-wrapper {
  background: #f8fafc;
  padding: 30px 0 60px;
  min-height: 80vh;
}

/* ==========================================================================
   1. BREADCRUMBS NAVIGATION
   ========================================================================== */
.wnd-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 24px 0;
  padding: 11px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.wnd-breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.wnd-breadcrumbs-sep {
  color: #cbd5e1;
  font-size: 11px;
}

.wnd-breadcrumbs-current {
  color: #0f172a;
  font-weight: 700;
  max-width: 500px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   2. MAIN 2-COLUMN LAYOUT GRID (ARTICLE + SIDEBAR)
   ========================================================================== */
.wnd-single-layout-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 340px !important;
  gap: 32px !important;
  align-items: start !important;
}

/* Override all theme width caps on .site-main */
body.single main#primary.site-main,
body.single-post main#primary.site-main,
main#primary.wnd-single-main {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 36px 40px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03) !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   3. POST HEADER & META
   ========================================================================== */
.wnd-single-cat-badge {
  display: inline-block;
  background: #dc2626;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.wnd-single-title {
  font-size: 30px !important;
  line-height: 1.55 !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 18px 0 !important;
  letter-spacing: -0.2px;
}

.wnd-single-meta-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 14px 0 !important;
  border-top: 1px solid #f1f5f9 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  margin-bottom: 26px !important;
  flex-wrap: wrap !important;
}

.wnd-single-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wnd-single-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.wnd-author-details {
  display: flex;
  flex-direction: column;
}

.wnd-author-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.wnd-post-date-meta {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

/* Share Row */
.wnd-share-pill-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wnd-share-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-right: 4px;
}

.wnd-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff !important;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.wnd-share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.wnd-share-wa { background: #25D366; box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3); }
.wnd-share-fb { background: #1877F2; box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3); }
.wnd-share-tg { background: #0088cc; box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3); }
.wnd-share-x  { background: #0f172a; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.3); }

/* ==========================================================================
   4. FEATURED IMAGE
   ========================================================================== */
.wnd-single-featured-wrap {
  width: 100%;
  margin-bottom: 26px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.wnd-single-featured-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.wnd-single-featured-caption {
  padding: 10px 16px;
  font-size: 12.5px;
  color: #64748b;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-style: italic;
}

/* ==========================================================================
   5. GOOGLE ADS BANNER (FIX YELLOW BACKGROUND & BORDER)
   ========================================================================== */
ins,
ins.adsbygoogle {
  background: transparent !important;
  text-decoration: none !important;
}

.wnd-ad-banner-wrapper {
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 10px 14px 12px !important;
  text-align: center !important;
  margin: 24px 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

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

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

/* ==========================================================================
   6. POST ENTRY CONTENT (CLEAN, SPACIOUS MALAYALAM TYPOGRAPHY)
   ========================================================================== */
.wnd-single-entry-content,
.wnd-single-entry-content p,
.wnd-single-main .wnd-single-entry-content p,
.single .site-main .primary-content .entry-content p {
  font-size: 18.5px !important;
  line-height: 2.15 !important;
  color: #1e293b !important;
  margin: 0 0 24px 0 !important;
  letter-spacing: 0.12px !important;
  word-break: break-word !important;
}

.wnd-single-entry-content p:last-child {
  margin-bottom: 0 !important;
}

.wnd-single-entry-content h2,
.wnd-single-entry-content h3 {
  color: #0f172a;
  font-weight: 800;
  margin: 32px 0 16px;
  line-height: 1.45;
  position: relative;
  padding-left: 14px;
}

.wnd-single-entry-content h2::before,
.wnd-single-entry-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: #dc2626;
  border-radius: 2px;
}

.wnd-single-entry-content blockquote {
  margin: 26px 0;
  padding: 18px 24px;
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  border-radius: 0 8px 8px 0;
  color: #991b1b;
  font-style: italic;
  font-size: 18px;
  line-height: 1.8;
}

.wnd-single-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

/* ==========================================================================
   7. ⚡ JOIN WHATSAPP & TELEGRAM COMMUNITY BOX AFTER CONTENT
   ========================================================================== */
.wnd-social-community-box {
  background: #0f172a;
  background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  position: relative;
  overflow: hidden;
}

.wnd-social-community-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #25D366 0%, #0088cc 100%);
}

.wnd-community-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.wnd-community-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wnd-community-badge {
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid #ef4444;
  color: #f87171;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.wnd-community-subtitle {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 0 0 18px;
  line-height: 1.55;
}

.wnd-community-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .wnd-community-buttons-grid {
    grid-template-columns: 1fr;
  }
}

.wnd-community-card-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.wnd-community-card-btn:hover {
  transform: translateY(-2px);
}

.wnd-community-card-btn.wnd-wa-join {
  background: #15803d;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.wnd-community-card-btn.wnd-tg-join {
  background: #0284c7;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.wnd-community-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wnd-community-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.wnd-community-text {
  display: flex;
  flex-direction: column;
}

.wnd-community-btn-main {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.25;
}

.wnd-community-btn-sub {
  font-size: 11.5px;
  opacity: 0.85;
  margin-top: 2px;
}

/* ==========================================================================
   8. TAGS ROW
   ========================================================================== */
.wnd-single-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.wnd-tags-label {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

.wnd-tag-item {
  background: #f1f5f9;
  color: #475569 !important;
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.wnd-tag-item:hover {
  background: #dc2626;
  color: #ffffff !important;
}

/* ==========================================================================
   9. PREVIOUS & NEXT NAVIGATION SPLIT
   ========================================================================== */
.wnd-single-nav-split {
  margin: 26px 0 28px !important;
}

.wnd-single-nav-split.nav-cols-2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
}

.wnd-single-nav-split.nav-cols-1 {
  display: grid !important;
  grid-template-columns: 1fr !important;
}

.wnd-nav-post-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 14px 18px !important;
  text-decoration: none !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.2s ease !important;
}

.wnd-nav-post-card:hover {
  border-color: #dc2626 !important;
  background: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.wnd-nav-post-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.wnd-nav-post-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   10. RELATED ARTICLES SECTION (ബന്ധപ്പെട്ട വാർത്തകൾ)
   ========================================================================== */
.wnd-related-articles-section {
  margin-top: 34px !important;
  padding-top: 26px !important;
  border-top: 2px solid #f1f5f9 !important;
}

.wnd-related-section-title {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 20px 0 !important;
  position: relative !important;
  padding-left: 14px !important;
}

.wnd-related-section-title::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 3px !important;
  bottom: 3px !important;
  width: 4px !important;
  background: #dc2626 !important;
  border-radius: 2px !important;
}

.wnd-related-grid-2col {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
}

.wnd-related-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-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

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

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

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

.wnd-related-content {
  padding: 13px 15px 15px;
}

.wnd-related-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

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

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

.wnd-related-meta {
  font-size: 11.5px;
  color: #64748b;
}

/* ==========================================================================
   11. SIDEBAR & WIDGETS
   ========================================================================== */
.wnd-single-sidebar {
  width: 340px !important;
  max-width: 100% !important;
  display: flex;
  flex-direction: column;
}

.wnd-sidebar-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 75px;
}

.wnd-sidebar-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 22px;
}

.wnd-sidebar-box-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.wnd-sidebar-box-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 28px;
  height: 2px;
  background: #dc2626;
}

/* Sidebar Trending List */
.wnd-sidebar-ranked-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wnd-sidebar-ranked-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wnd-sidebar-rank-num {
  font-size: 14px;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.rank-bg-1 { background: #dc2626; }
.rank-bg-2 { background: #ea580c; }
.rank-bg-3 { background: #d97706; }
.rank-bg-4 { background: #475569; }
.rank-bg-5 { background: #64748b; }

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

.wnd-sidebar-item-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.wnd-sidebar-item-title a {
  color: #0f172a;
  text-decoration: none;
}

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

.wnd-sidebar-item-date {
  font-size: 11px;
  color: #94a3b8;
}

/* Sidebar Categories List */
.wnd-sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wnd-sidebar-cat-list li {
  margin-bottom: 8px;
}

.wnd-sidebar-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.wnd-sidebar-cat-list a:hover {
  background: #dc2626;
  color: #ffffff;
}

.wnd-cat-count-pill {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 7px;
  border-radius: 12px;
}

.wnd-sidebar-cat-list a:hover .wnd-cat-count-pill {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ==========================================================================
   12. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 920px) {
  .wnd-single-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  
  .wnd-single-sidebar {
    width: 100% !important;
  }
  
  .wnd-sidebar-sticky {
    position: static !important;
  }

  body.single main#primary.site-main,
  body.single-post main#primary.site-main,
  main#primary.wnd-single-main {
    padding: 24px 20px !important;
  }

  .wnd-single-title {
    font-size: 23px !important;
    line-height: 1.45 !important;
  }

  .wnd-community-buttons-grid {
    grid-template-columns: 1fr !important;
  }

  .wnd-related-grid-2col {
    grid-template-columns: 1fr !important;
  }

  .wnd-single-nav-split.nav-cols-2 {
    grid-template-columns: 1fr !important;
  }
}

