/* ==========================================================================
   NewsPortal Pro - Main Stylesheet
   Modern, Ultra-Fast, Mobile-First Optimized News & Magazine Design
   ========================================================================== */

:root {
  --primary: #1e40af;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --success: #16a34a;
  --warning: #f59e0b;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --container-width: 1220px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Lexend Deca', 'Inter', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Reading Progress Bar (Single Page) */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  width: 0%;
  z-index: 99999;
  transition: width 0.1s ease;
}

/* ==========================================================================
   Top Announcement / Breaking News Bar
   ========================================================================== */
.topbar {
  background-color: var(--dark);
  color: #f1f5f9;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  min-height: 36px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.ticker-badge {
  background: var(--accent);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-badge .pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: pulseAnimation 1.5s infinite;
}

@keyframes pulseAnimation {
  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 6px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  position: relative;
  text-overflow: ellipsis;
}

.ticker-item {
  display: inline-block;
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.82rem;
  transition: color 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ticker-item:hover {
  color: #ffffff;
  text-decoration: underline;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-date {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  gap: 1rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.site-branding .custom-logo-link,
.site-branding a {
  display: inline-flex;
  align-items: center;
}

.site-branding .custom-logo,
.site-branding .custom-logo-link img,
.site-branding img,
.site-logo img {
  height: auto;
  max-height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: max-width 0.2s ease, max-height 0.2s ease;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.site-title a {
  color: inherit;
}

.site-description {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: var(--primary);
  background-color: var(--primary-light);
}

/* Submenu dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu li a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}

.nav-menu .sub-menu li a:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 1.5rem;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-toggle-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.search-toggle-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-nav-toggle:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================================
   Mobile Drawer & Overlay
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 10000;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background: #ffffff;
  z-index: 10001;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.drawer-body {
  padding: 1.25rem;
  flex: 1;
}

.drawer-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
  text-align: center;
}

.mobile-menu li {
  margin-bottom: 0.35rem;
}

.mobile-menu a {
  display: block;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  border-bottom: 1px solid #f8fafc;
}

.mobile-menu a:hover,
.mobile-menu .current-menu-item a {
  background: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================================
   Search Modal
   ========================================================================== */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  z-index: 10002;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 580px;
  padding: 1.75rem;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.25s ease;
}

.search-modal.active .search-modal-box {
  transform: translateY(0);
}

.search-form-wrap {
  display: flex;
  gap: 0.5rem;
}

.search-form-wrap input[type="search"] {
  flex: 1;
  padding: 0.85rem 1.25rem;
  font-size: 1.05rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.search-form-wrap input[type="search"]:focus {
  border-color: var(--primary);
}

.search-form-wrap button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-form-wrap button:hover {
  background: var(--primary-hover);
}

.search-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* ==========================================================================
   Homepage Sections
   ========================================================================== */

/* 1. Flash Alert Box */
.flash-alert-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.flash-badge {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.flash-alert-text strong {
  color: var(--dark);
}

/* 2. Quick Action Hub (Gradient Buttons from Reference) */
.quick-tools-section {
  margin: 1.25rem 0;
}

.quick-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.quick-tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.quick-tool-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}

.quick-tool-btn:hover::after {
  left: 150%;
}

.quick-tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Colorful Gradients */
.tool-c-purple  { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.tool-c-amber   { background: linear-gradient(135deg, #d97706, #b45309); }
.tool-c-blue    { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.tool-c-pink    { background: linear-gradient(135deg, #db2777, #be185d); }
.tool-c-dark    { background: linear-gradient(135deg, #334155, #1e293b); }
.tool-c-red     { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.tool-c-cyan    { background: linear-gradient(135deg, #0891b2, #0e7490); }
.tool-c-teal    { background: linear-gradient(135deg, #0d9488, #0f766e); }
.tool-c-orange  { background: linear-gradient(135deg, #ea580c, #c2410c); }
.tool-c-indigo  { background: linear-gradient(135deg, #4f46e5, #4338ca); }

/* 3. Practice Hub / Resource Cards */
.practice-hub-section {
  margin: 1.25rem 0 1.75rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0.65rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.hub-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 12px 10px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  transition: var(--transition);
}

.hub-card:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 4. Social Follow Bar (WhatsApp & Google News) */
.follow-channel-wrap {
  display: flex;
  gap: 10px;
  width: 100%;
  margin: 1.25rem 0;
}

.follow-btn {
  flex: 1;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  gap: 10px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.follow-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.follow-btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
}

.follow-btn.google {
  background: #ffffff;
  border: 2px solid #3b82f6;
  color: var(--dark);
}

.follow-btn.google img {
  width: 22px;
  height: 22px;
}

.google-text-rotator {
  font-weight: 700;
  color: #1e293b;
  transition: opacity 0.25s ease;
}

.google-text-rotator.fade {
  opacity: 0;
}

/* 5. Floating Action Button (WhatsApp - Right Edge Sticky Tab as in reference) */
.floating-wbtn {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #00d757;
  background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
  color: #ffffff !important;
  padding: 9px 15px 9px 11px;
  border-radius: 50px 0 0 50px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.22), -3px 0 12px rgba(0, 200, 83, 0.35);
  z-index: 99999;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: floatShake 4s infinite ease-in-out;
}

.floating-wbtn svg,
.floating-wbtn .wbtn-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

.floating-wbtn .wbtn-phone-path {
  fill: #00c853;
}

.floating-wbtn:hover {
  transform: translateY(-50%) translateX(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), -4px 0 16px rgba(0, 200, 83, 0.5);
  color: #ffffff !important;
}

@keyframes floatShake {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  2%, 6% { transform: translateY(-50%) rotate(-5deg); }
  4%, 8% { transform: translateY(-50%) rotate(5deg); }
  10% { transform: translateY(-50%) rotate(0deg); }
}

/* ==========================================================================
   Main Content Layout (Two Columns or Full-Width)
   ========================================================================== */
.site-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.site-main-layout.no-sidebar,
.site-main-layout.full-width {
  grid-template-columns: minmax(0, 1fr);
}

.site-content-area {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

/* Posts Magazine Grid Columns (1, 2, 3, 4) */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.posts-grid.grid-cols-1 {
  grid-template-columns: 1fr;
}

.posts-grid.grid-cols-1 .post-card {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.posts-grid.grid-cols-1 .post-thumb-wrap {
  aspect-ratio: auto;
  height: 100%;
  min-height: 180px;
}

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

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

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

@media (max-width: 1200px) {
  .posts-grid.grid-cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.post-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}

.post-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-thumb-wrap img {
  transform: scale(1.05);
}

.post-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.post-content-wrap {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.post-card-title a:hover {
  color: var(--primary);
}

.post-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.meta-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--text-main);
}

.verified-badge {
  color: #2563eb;
  display: inline-flex;
  align-items: center;
}

.meta-sep {
  color: #cbd5e1;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--accent);
}

/* Compact Post List in Sidebar */
.compact-post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.compact-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f8fafc;
}

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

.compact-thumb {
  width: 75px;
  height: 55px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-info {
  flex: 1;
}

.compact-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
  color: var(--dark);
}

.compact-title a:hover {
  color: var(--primary);
}

.compact-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Advertisement Container */
.ad-slot-wrap {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  margin: 1.25rem 0;
}

.ad-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-weight: 600;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination-wrap {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  margin: 0 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==========================================================================
   Homepage SEO Content Box (Above Footer, Below All Posts)
   ========================================================================== */
.homepage-seo-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin: 2rem 0 2.5rem 0;
  box-shadow: var(--shadow-sm);
}

.homepage-seo-section .section-head {
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0.65rem;
}

.seo-content-body {
  font-size: 0.96rem;
  line-height: 1.8;
  color: #334155;
}

.seo-content-body h2,
.seo-content-body h3,
.seo-content-body h4 {
  font-family: var(--font-heading);
  color: var(--dark);
  margin: 1.25rem 0 0.5rem 0;
  font-weight: 700;
}

.seo-content-body h2 {
  font-size: 1.35rem;
}

.seo-content-body h3 {
  font-size: 1.18rem;
}

.seo-content-body h4 {
  font-size: 1.05rem;
}

.seo-content-body p {
  margin-bottom: 1rem;
}

.seo-content-body ul,
.seo-content-body ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
}

.seo-content-body li {
  margin-bottom: 0.4rem;
}

.seo-content-body a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.seo-content-body a:hover {
  color: var(--primary-hover);
}

/* ==========================================================================
   Single Post Layout & Typography (Mobile-First Optimized)
   ========================================================================== */
.single-article {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.breadcrumbs {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumbs a {
  color: var(--primary);
  font-weight: 500;
}

.breadcrumbs .sep {
  color: #cbd5e1;
}

.single-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 1rem;
}

/* Single Post Meta Chips */
.single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
}

.meta-chip svg {
  color: var(--primary);
  flex-shrink: 0;
}

.meta-chip-author {
  color: var(--text-main);
  font-weight: 600;
  background: var(--primary-light);
}

.single-featured-image {
  margin-bottom: 1.75rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f1f5f9;
}

.single-featured-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* Social Share Bar (Top & Bottom) */
.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.share-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  color: #fff !important;
}

.share-whatsapp {
  background: #25d366;
  font-weight: 700;
}
.share-whatsapp:hover {
  background: #20ba5a;
}

.share-telegram { background: #0088cc; }
.share-telegram:hover { background: #0077b5; }
.share-facebook { background: #1877f2; }
.share-facebook:hover { background: #166fe5; }
.share-twitter  { background: #000000; }
.share-twitter:hover { background: #1a1a1a; }
.share-copy     { background: #475569; }
.share-copy:hover { background: #334155; }

/* Bottom Share Bar */
.share-bar-bottom {
  margin: 2rem 0 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-bar-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-bar-heading svg {
  color: var(--primary);
  flex-shrink: 0;
}

.share-bar-bottom .share-bar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Article Content Body */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #334155;
  word-break: break-word;
}

.entry-content p {
  margin-bottom: 1.35rem;
}

.entry-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 2.2rem 0 1rem;
  color: var(--dark);
  border-left: 4px solid var(--primary);
  padding: 8px 12px;
  background: linear-gradient(90deg, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.35;
}

.entry-content h2 strong {
  font-weight: 800;
  color: inherit;
}

.entry-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.75rem 0 0.85rem;
  color: var(--dark);
  border-left: 3px solid var(--secondary);
  padding-left: 10px;
  line-height: 1.35;
}

.entry-content h3 strong {
  font-weight: 700;
  color: inherit;
}

.entry-content h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.35rem 0 0.65rem;
  color: var(--dark);
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.35rem;
  padding-left: 1.5rem;
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.entry-content blockquote {
  border-left: 4px solid var(--primary);
  background: #f8fafc;
  padding: 1.15rem 1.4rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-main);
  position: relative;
}

.entry-content figure.wp-block-image {
  margin: 1.75rem 0;
  text-align: center;
}

.entry-content figure.wp-block-image img {
  border-radius: var(--radius-md);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.entry-content figure.wp-block-image figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Crucial: Table Styling for Drama Reviews, Cast & Episode Lists */
figure.wp-block-table {
  margin: 1.75rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  background: #ffffff;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
  margin: 0;
}

.entry-content th {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 16px;
  border: 1px solid #334155;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.entry-content td {
  padding: 11px 16px;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  line-height: 1.5;
}

.entry-content tr:nth-child(even) td {
  background-color: #f8fafc;
}

.entry-content tr:hover td {
  background-color: #f1f5f9;
}

/* Table Link Action Buttons (e.g. Watch Online, Download Ep, Telegram) */
.entry-content td a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: var(--transition);
  white-space: nowrap;
}

.entry-content td a:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Rank Math FAQ Block Styling
   ========================================================================== */
.wp-block-rank-math-faq-block {
  margin: 2rem 0;
  padding: 1.25rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.rank-math-faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.rank-math-faq-item:last-child {
  margin-bottom: 0;
}

.rank-math-faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: var(--primary);
}

.rank-math-question {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.5rem 0;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.rank-math-question::before {
  content: "Q.";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
}

.rank-math-answer {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
  padding-left: 28px;
}

.rank-math-answer p {
  margin-bottom: 0.5rem;
}

.rank-math-answer p:last-child {
  margin-bottom: 0;
}

/* Post Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2rem;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-color);
}

.post-tags-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark);
}

.post-tags-label svg {
  color: var(--primary);
}

.post-tags a {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
  transition: var(--transition);
  text-decoration: none;
}

.post-tags a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Next / Previous Post Navigation */
.post-navigation {
  margin: 2.25rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  display: flex;
}

.post-navigation .nav-links a {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  width: 100%;
  transition: var(--transition);
}

.post-navigation .nav-links a:hover {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.post-navigation .nav-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-navigation .nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-navigation .nav-next a {
  text-align: right;
}

.post-navigation .nav-next .nav-subtitle {
  justify-content: flex-end;
}

/* Author Box */
.author-bio-box {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 2.25rem;
  position: relative;
  overflow: hidden;
}

.author-bio-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
}

.author-avatar img {
  border-radius: 50%;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.author-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Related Posts Section */
.related-posts-section {
  margin-top: 2.5rem;
}

.related-posts-section .section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-posts-section .section-title-bar {
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.no-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

/* ==========================================================================
   Comments Area & Discussion Form (Desktop, Tablet, Mobile)
   ========================================================================== */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.comments-header {
  margin-bottom: 1.5rem;
}

.comments-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.comments-title-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.comments-count-pill {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  line-height: 1;
}

/* Comment List */
.comment-list,
.comment-list .children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.comment-list .comment {
  position: relative;
}

.comment-body {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-body:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0.85rem;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-author .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-author .fn {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.98rem;
  font-style: normal;
}

.comment-author .fn a {
  color: var(--dark);
  text-decoration: none;
}

.comment-author .fn a:hover {
  color: var(--primary);
}

.comment-author .says {
  display: none;
}

.comment-metadata {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.comment-metadata a {
  color: var(--text-muted);
  text-decoration: none;
}

.comment-metadata a:hover {
  color: var(--primary);
}

.bypostauthor > .comment-body {
  border-left: 4px solid var(--primary);
  background: #f8fafc;
}

.comment-content {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.65;
  word-break: break-word;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.reply {
  margin-top: 0.85rem;
  text-align: right;
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.comment-reply-link:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Threaded / Nested Comments */
.comment-list .children {
  margin-top: 1rem;
  margin-left: 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Comments Pagination Navigation */
.comments-pagination,
.comment-navigation {
  margin: 1.5rem 0;
}

.comment-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.comment-navigation a {
  padding: 8px 16px;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: background 0.2s ease;
}

.comment-navigation a:hover {
  background: var(--primary);
  color: #fff;
}

.no-comments {
  background: #f8fafc;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin: 1.5rem 0;
}

/* ==========================================================================
   Comment Form / #respond (Desktop, Tablet, Mobile)
   ========================================================================== */
#respond {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.comment-reply-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 0;
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
}

#cancel-comment-reply-link {
  font-size: 0.8rem;
  font-weight: 600;
  background: #fee2e2;
  color: #dc2626;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

#cancel-comment-reply-link:hover {
  background: #dc2626;
  color: #ffffff;
}

.comment-notes {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.comment-notes .required,
label .required {
  color: #dc2626;
  font-weight: 700;
}

/* Comment Form Layout */
#commentform {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 641px) {
  #commentform {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
  }
  #commentform .comment-notes,
  #commentform .comment-form-comment,
  #commentform .comment-form-url,
  #commentform .comment-form-cookies-consent,
  #commentform .form-submit {
    grid-column: 1 / -1;
  }
  #commentform .comment-form-author {
    grid-column: 1 / 2;
  }
  #commentform .comment-form-email {
    grid-column: 2 / 3;
  }
}

#commentform p {
  margin: 0;
}

#commentform label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--dark);
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #f8fafc;
  color: var(--dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

#commentform textarea {
  min-height: 120px;
  line-height: 1.6;
  resize: vertical;
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus,
#commentform textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
  outline: none;
}

/* Cookies Consent */
.comment-form-cookies-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0.25rem 0 !important;
}

.comment-form-cookies-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.comment-form-cookies-consent label {
  font-size: 0.84rem !important;
  font-weight: 400 !important;
  color: var(--text-muted) !important;
  cursor: pointer;
  line-height: 1.45;
  margin: 0 !important;
}

/* Submit Button */
.form-submit {
  margin-top: 0.5rem;
}

.form-submit #submit,
.submit-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 13px 32px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25);
  letter-spacing: 0.2px;
}

.form-submit #submit:hover,
.submit-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.35);
  background: linear-gradient(135deg, #1e40af 0%, #172554 100%);
}

.form-submit #submit:active,
.submit-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: #0f172a;
  color: #94a3b8;
  padding-top: 3.5rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}

.footer-logo img,
.footer-logo .custom-logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1e293b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-circle:hover {
  background: var(--primary);
  transform: translateY(-3px);
  color: #ffffff;
}

.footer-nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-nav-menu a {
  color: #cbd5e1;
}

.footer-nav-menu a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  background: #020617;
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */
@media (max-width: 1024px) {
  .site-main-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .main-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  /* Container Padding */
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Topbar */
  .topbar .container {
    min-height: 32px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
  .topbar-right {
    display: none;
  }
  .ticker-badge {
    font-size: 0.68rem;
    padding: 2px 6px;
  }
  .ticker-item {
    font-size: 0.78rem;
  }

  /* Header Clean Mobile UI */
  .site-header {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  }
  .header-inner {
    padding: 0.5rem 0;
  }
  .site-branding .custom-logo,
  .site-branding .custom-logo-link img,
  .site-branding img,
  .site-logo img {
    height: auto;
    max-height: 36px;
    width: auto;
    max-width: 150px;
  }
  .site-title {
    font-size: 1.2rem;
  }
  .site-description {
    display: none;
  }
  .search-toggle-btn,
  .mobile-nav-toggle {
    width: 36px;
    height: 36px;
  }

  /* Homepage Modules on Mobile */
  .flash-alert-box {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
    gap: 0.65rem;
    margin: 0.85rem 0;
  }
  .quick-tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .quick-tool-btn {
    font-size: 0.8rem;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
  }
  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .hub-card {
    font-size: 0.82rem;
    padding: 10px 8px;
  }
  .follow-channel-wrap {
    flex-direction: column;
    gap: 8px;
    margin: 1rem 0;
  }
  .follow-btn {
    height: 44px;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
  }

  /* Magazine Grid on Mobile (Configurable: 1, 2, 3, or 4 Columns) */
  .posts-grid {
    gap: 10px;
  }

  /* Mobile 1 Column (Big Card) */
  .posts-grid.mobile-cols-1 {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .posts-grid.mobile-cols-1 .post-card {
    grid-template-columns: 1fr;
  }
  .posts-grid.mobile-cols-1 .post-thumb-wrap {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }
  .posts-grid.mobile-cols-1 .post-card-title {
    font-size: 0.98rem;
  }
  .posts-grid.mobile-cols-1 .post-content-wrap {
    padding: 0.85rem;
  }

  /* Mobile 2 Columns (Magazine Grid, 2 in a row) */
  .posts-grid.mobile-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  .posts-grid.mobile-cols-2 .post-card {
    display: flex;
    flex-direction: column;
  }
  .posts-grid.mobile-cols-2 .post-content-wrap {
    padding: 8px 6px;
  }
  .posts-grid.mobile-cols-2 .post-card-title {
    font-size: 0.84rem;
    line-height: 1.35;
    margin-bottom: 6px;
  }
  .posts-grid.mobile-cols-2 .post-meta-row {
    font-size: 0.68rem;
    padding-top: 6px;
    gap: 4px;
  }
  .posts-grid.mobile-cols-2 .post-category-badge {
    font-size: 0.62rem;
    padding: 2px 6px;
    top: 6px;
    left: 6px;
  }

  /* Mobile 3 Columns */
  .posts-grid.mobile-cols-3 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px;
  }
  .posts-grid.mobile-cols-3 .post-card {
    display: flex;
    flex-direction: column;
  }
  .posts-grid.mobile-cols-3 .post-content-wrap {
    padding: 6px 4px;
  }
  .posts-grid.mobile-cols-3 .post-card-title {
    font-size: 0.74rem;
    line-height: 1.25;
    margin-bottom: 4px;
  }
  .posts-grid.mobile-cols-3 .post-meta-row {
    font-size: 0.62rem;
    padding-top: 4px;
    gap: 2px;
  }
  .posts-grid.mobile-cols-3 .meta-reading-time {
    display: none;
  }
  .posts-grid.mobile-cols-3 .post-category-badge {
    font-size: 0.58rem;
    padding: 1px 4px;
    top: 4px;
    left: 4px;
  }

  /* Mobile 4 Columns (Mini Cards) */
  .posts-grid.mobile-cols-4 {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px;
  }
  .posts-grid.mobile-cols-4 .post-card {
    display: flex;
    flex-direction: column;
  }
  .posts-grid.mobile-cols-4 .post-content-wrap {
    padding: 4px 2px;
  }
  .posts-grid.mobile-cols-4 .post-card-title {
    font-size: 0.66rem;
    line-height: 1.2;
    margin-bottom: 2px;
  }
  .posts-grid.mobile-cols-4 .post-meta-row {
    display: none;
  }
  /* Homepage SEO Section on Mobile */
  .homepage-seo-section {
    padding: 1.25rem 1rem;
    margin: 1.5rem 0 2rem 0;
    border-radius: var(--radius-md);
  }
  .seo-content-body {
    font-size: 0.9rem;
    line-height: 1.65;
  }
  .seo-content-body h2 {
    font-size: 1.2rem;
  }
  .seo-content-body h3 {
    font-size: 1.05rem;
  }

  /* ========================================================================
     Single Post Mobile Layout (Seamless, Modern, 100% Contained & Aligned)
     ======================================================================== */
  body.single {
    background-color: #ffffff;
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
  body.single .site-main {
    margin-top: 0;
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  /* Consistent mobile padding matching header, topbar, and footer */
  body.single .site-main > .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  body.single .site-main-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.25rem;
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  body.single .site-content-area {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden;
  }
  body.single .single-article {
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0.5rem 0;
    background: #ffffff;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  body.single .breadcrumbs {
    font-size: 0.76rem;
    color: #64748b;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.4;
    word-break: break-word;
    max-width: 100%;
  }
  body.single .breadcrumbs a {
    color: var(--primary);
    font-weight: 500;
  }
  body.single .breadcrumbs .sep {
    color: #cbd5e1;
    margin: 0 2px;
  }
  body.single .single-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.38;
    margin-bottom: 0.75rem;
    color: var(--dark);
    letter-spacing: -0.3px;
    word-break: break-word;
    max-width: 100%;
  }
  body.single .single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0.65rem 0;
    margin-bottom: 1.15rem;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    max-width: 100%;
  }
  body.single .meta-chip {
    font-size: 0.72rem;
    padding: 4px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    gap: 4px;
    color: #475569;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
  }
  body.single .meta-chip svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }
  body.single .meta-chip-author {
    color: var(--text-main);
    font-weight: 600;
    background: #eff6ff;
    border-color: #dbeafe;
  }
  body.single .single-featured-image {
    margin: 0.85rem 0 1.25rem 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    max-width: 100%;
  }
  body.single .single-featured-image img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

  /* Mobile Top Share Bar: WhatsApp Hero + 4 Equal Micro Buttons */
  .share-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
    margin: 1.25rem 0;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    max-width: 100%;
    box-sizing: border-box;
  }
  .share-bar .share-whatsapp {
    grid-column: 1 / -1;
    height: 44px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .share-bar .share-btn:not(.share-whatsapp) {
    padding: 8px 3px;
    font-size: 0.72rem;
    flex-direction: column;
    gap: 3px;
    border-radius: var(--radius-sm);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Single Entry Content on Mobile */
  .entry-content {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #334155;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .entry-content p {
    margin-bottom: 1.2rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .entry-content h2 {
    font-size: 1.25rem;
    margin: 1.75rem 0 0.85rem;
    padding: 6px 10px;
    border-left: 4px solid var(--primary);
    word-break: break-word;
  }
  .entry-content h3 {
    font-size: 1.12rem;
    margin: 1.4rem 0 0.7rem;
    padding-left: 8px;
    border-left: 3px solid var(--secondary);
    word-break: break-word;
  }
  .entry-content h4 {
    font-size: 1.02rem;
    margin: 1.2rem 0 0.6rem;
    word-break: break-word;
  }

  /* Table Mobile Scrolling (Contained inside figure, never expands body) */
  .entry-content figure.wp-block-table,
  .entry-content .wp-block-table {
    margin: 1.25rem 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-color) !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .entry-content table {
    display: table !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
  }
  .entry-content table.has-fixed-layout {
    table-layout: auto !important;
  }
  .entry-content th,
  .entry-content td {
    padding: 8px 10px;
    font-size: 0.82rem;
    word-break: normal;
  }
  .entry-content td a {
    padding: 4px 9px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  /* Rank Math FAQ Block on Mobile */
  .wp-block-rank-math-faq-block {
    padding: 1rem 0.85rem;
    margin: 1.5rem 0;
  }
  .rank-math-faq-item {
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
  }
  .rank-math-question {
    font-size: 0.98rem;
    line-height: 1.4;
  }
  .rank-math-answer {
    font-size: 0.88rem;
    line-height: 1.6;
    padding-left: 0;
    margin-top: 0.4rem;
  }

  /* Post Tags on Mobile */
  .post-tags {
    margin-top: 1.5rem;
    gap: 6px;
    padding-top: 1rem;
  }
  .post-tags a {
    font-size: 0.75rem;
    padding: 3px 10px;
  }

  /* Bottom Share Bar on Mobile */
  .share-bar-bottom {
    padding: 1rem;
    margin: 1.75rem 0 1.25rem 0;
  }
  .share-bar-bottom .share-bar-heading {
    font-size: 0.88rem;
  }
  .share-bar-bottom .share-bar-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .share-bar-bottom .share-whatsapp {
    grid-column: 1 / -1;
    justify-content: center;
    height: 44px;
    font-size: 0.95rem;
  }
  .share-bar-bottom .share-btn:not(.share-whatsapp) {
    justify-content: center;
    padding: 10px 8px;
    font-size: 0.82rem;
  }

  /* Post Navigation on Mobile */
  .post-navigation {
    margin: 1.75rem 0;
    padding: 1rem 0;
  }
  .post-navigation .nav-links {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .post-navigation .nav-next a {
    text-align: left;
  }
  .post-navigation .nav-next .nav-subtitle {
    justify-content: flex-start;
  }
  .post-navigation .nav-links a {
    padding: 0.85rem 1rem;
  }
  .post-navigation .nav-title {
    font-size: 0.88rem;
  }

  /* Author Box on Mobile */
  .author-bio-box {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 0.75rem;
    margin-top: 1.75rem;
  }
  .author-avatar img {
    width: 60px;
    height: 60px;
    margin: 0 auto;
  }
  .author-name {
    justify-content: center;
    font-size: 1.05rem;
  }

  /* Related Posts on Mobile */
  .related-posts-section {
    margin-top: 2rem;
  }
  .related-posts-section .section-title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }

  /* ========================================================================
     Comments Area on Mobile
     ======================================================================== */
  .comments-area {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
  .comments-title {
    font-size: 1.15rem;
  }
  .comment-body {
    padding: 1rem;
  }
  .comment-author .avatar {
    width: 36px;
    height: 36px;
  }
  .comment-author .fn {
    font-size: 0.92rem;
  }
  .comment-metadata {
    font-size: 0.78rem;
  }
  .comment-content {
    font-size: 0.91rem;
    line-height: 1.6;
  }
  .comment-list .children {
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left-width: 2px;
  }
  #respond {
    padding: 1.25rem 1rem;
    margin-top: 1.75rem;
    border-radius: var(--radius-md);
  }
  .comment-reply-title {
    font-size: 1.15rem;
  }
  #commentform input[type="text"],
  #commentform input[type="email"],
  #commentform input[type="url"],
  #commentform textarea {
    padding: 11px 12px;
    font-size: 0.92rem;
  }
  .form-submit #submit,
  .submit-btn-primary {
    width: 100% !important;
    text-align: center;
    padding: 13px 20px;
    font-size: 0.96rem;
  }

  /* ========================================================================
     Floating WhatsApp Button on Mobile - RIGHT EDGE TAB (Matching Screenshot)
     ======================================================================== */
  .floating-wbtn {
    position: fixed !important;
    top: 50% !important;
    bottom: auto !important;
    left: auto !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    transform-origin: right center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    background: #00d757 !important;
    background: linear-gradient(135deg, #00e676 0%, #00c853 100%) !important;
    color: #ffffff !important;
    border-radius: 50px 0 0 50px !important;
    padding: 8px 12px 8px 9px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24), -2px 0 10px rgba(0, 200, 83, 0.35) !important;
    animation: floatShake 4s infinite ease-in-out !important;
    z-index: 99999 !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    max-width: 135px !important;
    overflow: hidden !important;
  }
  .floating-wbtn svg,
  .floating-wbtn .wbtn-svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    display: block !important;
  }
  .floating-wbtn .wbtn-phone-path {
    fill: #00c853 !important;
  }
  .floating-wbtn:hover,
  .floating-wbtn:active {
    transform: translateY(-50%) translateX(-3px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32), -3px 0 14px rgba(0, 200, 83, 0.5) !important;
    color: #ffffff !important;
  }
}
