/**
 * Alpha Theme - combined stylesheet (single request for speed)
 * Order: design tokens & base -> layout & components -> header/post polish -> footer/search (v1.1)
 */
/* ==========================================================================
   CSS Custom Properties & Design Tokens
   ========================================================================== */
:root {
  /* Color Palette - Pakistan Green & Trust Accents */
  --color-primary: #005d32;
  --color-primary-hover: #004525;
  --color-primary-light: #e8f5ed;
  --color-primary-rgb: 0, 93, 50;

  --color-secondary: #0a8451;
  --color-secondary-hover: #086b41;

  --color-accent: #d97706;
  --color-accent-hover: #b45309;
  --color-accent-light: #fef3c7;

  --color-danger: #dc2626;
  --color-danger-light: #fee2e2;
  --color-success: #16a34a;
  --color-success-light: #dcfce7;
  --color-warning: #f59e0b;
  --color-warning-light: #fef9c3;
  --color-info: #0284c7;
  --color-info-light: #e0f2fe;

  /* Neutrals & Surfaces */
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;

  /* Typography Colors */
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-text-subtle: #94a3b8;
  --color-text-inverse: #ffffff;

  /* Typography Scales */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Georgia', Cambria, 'Times New Roman', Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', Tahoma, sans-serif;

  --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --font-size-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.875rem);
  --font-size-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --font-size-md: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  --font-size-lg: clamp(1.1875rem, 1.1rem + 0.45vw, 1.375rem);
  --font-size-xl: clamp(1.375rem, 1.25rem + 0.65vw, 1.625rem);
  --font-size-2xl: clamp(1.625rem, 1.45rem + 0.9vw, 2rem);
  --font-size-3xl: clamp(2rem, 1.7rem + 1.5vw, 2.625rem);

  --line-height-tight: 1.25;
  --line-height-normal: 1.6;
  --line-height-loose: 1.8;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 860px;
  --header-height: 70px;
  --topbar-height: 40px;
  --sidebar-width: 340px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 24px -4px rgba(0, 93, 50, 0.12);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Ad Dimensions to prevent CLS */
  --ad-height-leaderboard: 90px;
  --ad-height-rectangle: 250px;
  --ad-height-large-rectangle: 280px;
  --ad-height-banner: 100px;
}

/* ==========================================================================
   Dark Mode Custom Properties
   ========================================================================== */
[data-theme="dark"] {
  --color-primary: #10b981;
  --color-primary-hover: #34d399;
  --color-primary-light: rgba(16, 185, 129, 0.12);
  --color-primary-rgb: 16, 185, 129;

  --color-secondary: #059669;
  --color-secondary-hover: #10b981;

  --color-accent: #fbbf24;
  --color-accent-hover: #f59e0b;
  --color-accent-light: rgba(251, 191, 36, 0.12);

  --color-bg: #0f172a;
  --color-surface: #1e293b;
  --color-surface-elevated: #334155;
  --color-border: #334155;
  --color-border-subtle: #1e293b;

  --color-text-main: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-text-subtle: #64748b;
  --color-text-inverse: #0f172a;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 12px 24px -4px rgba(16, 185, 129, 0.2);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--line-height-normal);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--color-bg);
  color: var(--color-text-main);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--line-height-tight);
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: var(--space-3);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--space-4);
}

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

a:hover,
a:focus-visible {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

ul,
ol {
  list-style-position: inside;
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   Accessibility & Screen Readers
   ========================================================================== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--color-primary);
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/**
 * Alpha Theme - Main Stylesheet
 * Modern CSS Architecture: Grid, Flexbox, Fluid Typography, CSS Variables
 *
 * @package Alpha_Theme
 * @since 1.0.0
 */

/* ==========================================================================
   Layout Containers & Grid System
   ========================================================================== */
.alpha-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.alpha-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-6);
  margin-bottom: var(--space-12);
}

@media (min-width: 992px) {
  .alpha-layout-grid {
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  }
}

.alpha-primary-content {
  min-width: 0; /* Prevents flex/grid blowouts from tables or code blocks */
}

/* Header dark/light toggle (sits beside Search and Menu) */
.alpha-theme-toggle-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-muted);
  transition: border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.alpha-theme-toggle-btn:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

[data-theme="light"] .alpha-icon-sun { display: none; }
[data-theme="light"] .alpha-icon-moon { display: inline-block; }
[data-theme="dark"] .alpha-icon-moon { display: none; }
[data-theme="dark"] .alpha-icon-sun { display: inline-block; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition-normal), background-color var(--transition-normal);
}

.site-header.is-sticky {
  box-shadow: var(--shadow-md);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-4);
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-title {
  font-size: var(--font-size-xl);
  font-weight: 800;
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

.site-title a {
  color: var(--color-primary);
  text-decoration: none;
}

.site-description {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: 0;
  display: none;
}

@media (min-width: 768px) {
  .site-description {
    display: block;
  }
}

.custom-logo {
  max-height: 50px;
  width: auto;
}

/* Primary Desktop Menu */
.main-navigation {
  display: none;
}

@media (min-width: 992px) {
  .main-navigation {
    display: block;
  }
}

.alpha-nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.alpha-nav-menu li {
  position: relative;
  list-style: none;
}

.alpha-nav-menu a {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-main);
  font-weight: 600;
  font-size: var(--font-size-sm);
  padding: var(--space-2) 0;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.alpha-nav-menu a:hover,
.alpha-nav-menu a:focus-visible,
.alpha-nav-menu .current-menu-item > a {
  color: var(--color-primary);
  text-decoration: none;
}

/* Dropdown Caret Indicator */
.alpha-nav-menu .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.alpha-nav-menu .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.7;
}

.alpha-nav-menu .menu-item-has-children:hover > a::after,
.alpha-nav-menu .menu-item-has-children:focus-within > a::after {
  transform: rotate(-135deg);
  opacity: 1;
  color: var(--color-primary);
}

/* Enhanced Submenu Dropdown */
.alpha-nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg);
  min-width: 230px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 1000;
  list-style: none;
}

/* Invisible Hover Bridge to prevent premature closing */
.alpha-nav-menu .sub-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

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

.alpha-nav-menu .sub-menu li {
  list-style: none;
  margin: 0 0 2px 0;
}

.alpha-nav-menu .sub-menu a {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.alpha-nav-menu .sub-menu a:hover,
.alpha-nav-menu .sub-menu a:focus-visible {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  transform: translateX(4px);
  text-decoration: none;
}

/* Multi-Level Nested Dropdowns */
.alpha-nav-menu .sub-menu .sub-menu {
  top: 0;
  left: calc(100% + 4px);
  transform: translateX(8px) scale(0.97);
}

.alpha-nav-menu .sub-menu li:hover > .sub-menu {
  transform: translateX(0) scale(1);
}

/* Header Actions */
.site-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.alpha-icon-btn {
  background: transparent;
  border: none;
  color: var(--color-text-main);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.alpha-icon-btn:hover {
  background-color: var(--color-border-subtle);
}

.alpha-mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 8px;
}

@media (min-width: 992px) {
  .alpha-mobile-toggle {
    display: none;
  }
}

.alpha-hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

/* ==========================================================================
   News Ticker
   ========================================================================== */
.alpha-ticker-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  height: var(--topbar-height);
  flex: 1;
}

.alpha-ticker-badge {
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  margin-right: var(--space-3);
  letter-spacing: 0.05em;
}

.alpha-ticker-viewport {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.alpha-ticker-items {
  display: inline-flex;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: ticker-slide 25s linear infinite;
}

.alpha-ticker-items:hover {
  animation-play-state: paused;
}

.alpha-ticker-item {
  display: inline-flex;
  align-items: center;
  margin-right: var(--space-6);
}

.alpha-ticker-link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
}

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

.alpha-ticker-bullet {
  color: var(--color-accent);
  margin-right: 4px;
}

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

/* ==========================================================================
   Mobile Off-Canvas Drawer
   ========================================================================== */
.alpha-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  transition: visibility var(--transition-normal);
}

.alpha-drawer.is-open {
  visibility: visible;
}

.alpha-drawer-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.alpha-drawer.is-open .alpha-drawer-overlay {
  opacity: 1;
}

.alpha-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.alpha-drawer.is-open .alpha-drawer-panel {
  transform: translateX(0);
}

.alpha-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.alpha-drawer-title {
  font-weight: 700;
  font-size: var(--font-size-md);
  color: var(--color-primary);
}

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

.alpha-drawer-body {
  padding: var(--space-4);
}

.alpha-drawer-search {
  margin-bottom: var(--space-4);
}

.alpha-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.alpha-mobile-menu li {
  list-style: none;
  border-bottom: 1px solid var(--color-border-subtle);
}

.alpha-mobile-menu a {
  display: block;
  padding: var(--space-3) 0;
  font-weight: 600;
  color: var(--color-text-main);
  text-decoration: none;
}

/* ==========================================================================
   Hero Section & Alert Banner
   ========================================================================== */
.alpha-hero-section {
  padding-top: var(--space-6);
}

.alpha-hero-card {
  background: linear-gradient(135deg, #005d32 0%, #064e2c 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .alpha-hero-card {
  background: linear-gradient(135deg, #064e2c 0%, #0f172a 100%);
  border: 1px solid var(--color-border);
}

.alpha-hero-badge {
  display: inline-block;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: var(--font-size-xs);
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  letter-spacing: 0.05em;
}

.alpha-hero-title {
  color: #ffffff;
  font-size: var(--font-size-2xl);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-3);
  max-width: 800px;
}

.alpha-hero-subtitle {
  color: #e2e8f0;
  font-size: var(--font-size-base);
  margin-bottom: var(--space-6);
  max-width: 720px;
  line-height: var(--line-height-normal);
}

.alpha-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Buttons */
.alpha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-weight: 700;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.alpha-btn-primary {
  background-color: var(--color-accent);
  color: #ffffff !important;
}

.alpha-btn-primary:hover {
  background-color: var(--color-accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.alpha-btn-whatsapp {
  background-color: #25d366;
  color: #ffffff !important;
}

.alpha-btn-whatsapp:hover {
  background-color: #1ebc59;
  text-decoration: none;
  transform: translateY(-1px);
}

.alpha-btn-official {
  background-color: var(--color-primary);
  color: #ffffff !important;
  font-size: var(--font-size-base);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
}

.alpha-btn-official:hover {
  background-color: var(--color-primary-hover);
  text-decoration: none;
}

/* ==========================================================================
   Quick Scheme Tags Directory Bar
   ========================================================================== */

/* ==========================================================================
   Section Headers
   ========================================================================== */
.alpha-section-header {
  margin-bottom: var(--space-5);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-3);
}

.alpha-section-title {
  display: flex;
  align-items: center;
  font-size: var(--font-size-xl);
  font-weight: 800;
  margin-bottom: 2px;
}

.alpha-title-decor {
  display: inline-block;
  width: 5px;
  height: 24px;
  background-color: var(--color-primary);
  border-radius: 2px;
  margin-right: var(--space-3);
}

.alpha-section-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Post Cards & Grid
   ========================================================================== */
.alpha-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .alpha-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.alpha-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

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

.alpha-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--color-border-subtle);
  overflow: hidden;
}

.alpha-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.alpha-card:hover .alpha-card-img {
  transform: scale(1.04);
}

.alpha-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #005d32 0%, #0a8451 100%);
  color: #ffffff;
}

.alpha-placeholder-icon {
  font-size: 2rem;
  margin-bottom: var(--space-1);
}

.alpha-placeholder-text {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.alpha-card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.alpha-card-badge:hover {
  background-color: var(--color-primary-hover);
  text-decoration: none;
  color: #ffffff;
}

.alpha-card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.alpha-card-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.alpha-card-title {
  font-size: var(--font-size-md);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--space-2);
}

.alpha-card-title a {
  color: var(--color-text-main);
  text-decoration: none;
}

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

.alpha-card-excerpt {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-4);
  flex: 1;
}

.alpha-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-subtle);
  font-size: var(--font-size-xs);
}

.alpha-card-cta {
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.alpha-card-cta:hover {
  text-decoration: underline;
}

.alpha-card-views {
  color: var(--color-text-subtle);
}

/* ==========================================================================
   AJAX Load More & Spinner
   ========================================================================== */
.alpha-pagination-wrap {
  text-align: center;
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.alpha-btn-load-more {
  background-color: var(--color-surface);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: var(--space-3) var(--space-8);
  font-size: var(--font-size-base);
  font-weight: 700;
  border-radius: var(--radius-full);
}

.alpha-btn-load-more:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.alpha-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: alpha-spin 0.75s linear infinite;
  margin-left: var(--space-2);
}

.alpha-btn-load-more.is-loading .alpha-spinner {
  display: inline-block;
}

@keyframes alpha-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.alpha-breadcrumbs {
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.alpha-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.alpha-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  list-style: none;
}

.alpha-breadcrumb-item a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.alpha-breadcrumb-item a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.alpha-breadcrumb-item.active {
  color: var(--color-text-main);
  font-weight: 600;
}

.alpha-breadcrumb-sep {
  margin: 0 var(--space-2);
  color: var(--color-text-subtle);
}

/* ==========================================================================
   Single Post Layout & Article Styling
   ========================================================================== */
.alpha-single-article {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .alpha-single-article {
    padding: var(--space-8);
  }
}

.alpha-category-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.alpha-badge-category {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-decoration: none;
}

.alpha-badge-category:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.alpha-single-title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: var(--space-4);
}

.alpha-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-subtle);
}

.alpha-meta-icon {
  margin-right: 4px;
}

/* Prominent Informational Disclaimer Box */
.alpha-disclaimer-box {
  background-color: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .alpha-disclaimer-box {
  background-color: rgba(245, 158, 11, 0.1);
  border-left-color: #fbbf24;
}

.alpha-disclaimer-badge {
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: #b45309;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: var(--space-2);
}

[data-theme="dark"] .alpha-disclaimer-badge {
  color: #fbbf24;
}

.alpha-disclaimer-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-main);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-3);
}

.alpha-disclaimer-link {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: underline;
}

/* Single Featured Image */
.alpha-single-featured-media {
  margin-bottom: var(--space-6);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.alpha-single-featured-media img {
  width: 100%;
  height: auto;
}

.alpha-caption {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-align: center;
  padding-top: var(--space-2);
}

/* ==========================================================================
   Single Post Typography & Rich Content
   ========================================================================== */
.alpha-entry-content {
  font-size: var(--font-size-base);
  line-height: var(--line-height-loose);
  color: var(--color-text-main);
}

.alpha-entry-content h1,
.alpha-entry-content h2,
.alpha-entry-content h3,
.alpha-entry-content h4,
.alpha-entry-content h5,
.alpha-entry-content h6 {
  color: var(--color-text-main);
  line-height: var(--line-height-tight);
}

.alpha-entry-content h2 {
  font-size: var(--font-size-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-left: 14px;
  border-left: 4px solid var(--color-primary);
  border-bottom: none;
}

.alpha-entry-content h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.alpha-entry-content h4 {
  font-size: var(--font-size-md);
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Image Styling, Gutenberg Alignments & Zoom Effects
   ========================================================================== */
.alpha-entry-content img,
.alpha-single-featured-media img,
.wp-block-image img,
figure img {
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.alpha-entry-content figure:hover img,
.wp-block-image:hover img {
  transform: scale(1.015);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

figcaption,
.wp-block-image figcaption,
.alpha-caption {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}

/* Gutenberg Core Alignments */
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.alignwide {
  max-width: 100%;
}

.wp-block-gallery {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.alpha-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: block;
  overflow-x: auto; /* Responsive table scrolling */
}

.alpha-entry-content th,
.alpha-entry-content td {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  text-align: left;
}

.alpha-entry-content th {
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
}

.alpha-entry-content tr:nth-child(even) td {
  background-color: var(--color-border-subtle);
}

/* Responsive Table Container */
.alpha-entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  background-color: var(--color-primary-light);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-6) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}

/* Notice Shortcode Styles */
.alpha-notice {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin: var(--space-6) 0;
  border-left: 4px solid;
}

.alpha-notice-info {
  background-color: var(--color-info-light);
  border-color: var(--color-info);
  color: #0369a1;
}

.alpha-notice-warning {
  background-color: var(--color-warning-light);
  border-color: var(--color-warning);
  color: #a16207;
}

.alpha-notice-success {
  background-color: var(--color-success-light);
  border-color: var(--color-success);
  color: #15803d;
}

.alpha-notice-danger {
  background-color: var(--color-danger-light);
  border-color: var(--color-danger);
  color: #b91c1c;
}

/* Official Portal Action Card */
.alpha-official-cta-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-surface) 100%);
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-8) 0;
}

@media (min-width: 640px) {
  .alpha-official-cta-card {
    flex-direction: row;
    align-items: center;
  }
}

.alpha-cta-icon {
  font-size: 2.5rem;
}

.alpha-cta-body {
  flex: 1;
}

.alpha-cta-body h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-1);
}

.alpha-cta-body p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   FAQ Accordions
   ========================================================================== */
.alpha-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.alpha-faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-surface);
}

.alpha-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: var(--font-size-base);
  color: var(--color-text-main);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.alpha-faq-question:hover {
  background-color: var(--color-border-subtle);
}

.alpha-faq-icon {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: transform var(--transition-fast);
}

.alpha-faq-question[aria-expanded="true"] .alpha-faq-icon {
  transform: rotate(45deg);
}

.alpha-faq-answer {
  padding: 0 var(--space-4) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
}

/* ==========================================================================
   Social Sharing Buttons
   ========================================================================== */
.alpha-social-share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.alpha-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: #ffffff !important;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.alpha-share-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  text-decoration: none;
}

.alpha-share-whatsapp { background-color: #25d366; }
.alpha-share-facebook { background-color: #1877f2; }
.alpha-share-twitter  { background-color: #000000; }
.alpha-share-telegram { background-color: #229ed9; }
.alpha-share-copy     { background-color: #475569; }

.alpha-share-wrapper-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.alpha-share-label {
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--space-2);
  display: block;
}

/* ==========================================================================
   Author Bio Box
   ========================================================================== */
.alpha-author-box {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background-color: var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.alpha-author-avatar img {
  border-radius: 50%;
}

.alpha-author-name {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-1);
}

.alpha-author-name a {
  color: var(--color-text-main);
}

.alpha-author-bio {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Post Prev/Next Navigation
   ========================================================================== */
.alpha-post-navigation {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: var(--space-8) 0;
  padding: var(--space-5);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

@media (min-width: 640px) {
  .alpha-post-navigation {
    grid-template-columns: 1fr 1fr;
  }
}

.alpha-nav-direction {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.alpha-post-navigation a {
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: var(--color-text-main);
}

.alpha-post-navigation a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   Related Posts Component
   ========================================================================== */
.alpha-related-posts-section {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.alpha-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .alpha-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.alpha-related-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.alpha-related-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.alpha-related-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.alpha-related-date {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.alpha-related-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0;
}

.alpha-related-title a {
  color: var(--color-text-main);
  text-decoration: none;
}

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

/* ==========================================================================
   AdSense Placement Containers (CLS Prevention)
   ========================================================================== */
.alpha-ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: var(--space-6) 0;
  background-color: var(--color-border-subtle);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.alpha-ad-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-1);
}

.alpha-ad-inner {
  width: 100%;
  display: flex;
  justify-content: center;
}

.alpha-header-ad-banner-section {
  width: 100%;
  background-color: var(--color-bg);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}

.alpha-header-ad-banner-section .alpha-ad-slot {
  margin: var(--space-2) 0;
}

.alpha-ad-leaderboard {
  min-height: var(--ad-height-leaderboard);
}

.alpha-ad-rectangle {
  min-height: var(--ad-height-rectangle);
}

.alpha-ad-banner {
  min-height: var(--ad-height-banner);
}

.alpha-ad-in-article {
  margin: var(--space-6) auto;
  max-width: 728px;
}

/* ==========================================================================
   Sidebar & Custom Widgets
   ========================================================================== */
.alpha-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.alpha-widget {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.alpha-widget-title {
  font-size: var(--font-size-md);
  font-weight: 800;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-text-main);
}

.alpha-widget-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.alpha-widget-post-item {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  align-items: center;
}

.alpha-widget-thumb {
  width: 75px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

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

.alpha-widget-post-link {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.alpha-widget-post-link:hover {
  color: var(--color-primary);
}

.alpha-widget-post-meta {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
}

/* Official Helpline Widget Box */
.alpha-helpline-box {
  background-color: var(--color-primary-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.alpha-helpline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
}

.alpha-helpline-list li {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.alpha-helpline-num {
  font-weight: 700;
  color: var(--color-primary);
}

/* ==========================================================================
   Comments Area
   ========================================================================== */
.alpha-comments-area {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 2px solid var(--color-border);
}

.alpha-comments-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-6);
}

.alpha-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.alpha-comment-list .comment {
  list-style: none;
  background-color: var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.alpha-comment-warning-notice {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  margin: var(--space-5) 0;
}

[data-theme="dark"] .alpha-comment-warning-notice {
  background-color: rgba(220, 38, 38, 0.1);
  border-color: #ef4444;
  color: #fca5a5;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  .site-header,
  .alpha-ad-slot,
  .alpha-sidebar,
  .alpha-social-share-bar,
  .alpha-back-to-top,
  .alpha-pagination-wrap,
  .site-footer {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .alpha-single-article {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  a {
    color: #000000 !important;
    text-decoration: underline !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* ==========================================================================
   Editorial polish: article content, accessible tables, quotes and footer
   ========================================================================== */
.alpha-entry-content {
  font-size: clamp(1rem, 0.96rem + 0.15vw, 1.075rem);
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.alpha-entry-content > * { max-width: 100%; }
.alpha-entry-content h1,
.alpha-entry-content h2,
.alpha-entry-content h3,
.alpha-entry-content h4,
.alpha-entry-content h5,
.alpha-entry-content h6 {
  color: var(--color-text-main);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.025em;
  scroll-margin-top: 90px;
}
.alpha-entry-content h1 {
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem);
  margin: 2rem 0 1rem;
}
.alpha-entry-content h2 {
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem);
  margin: 2.6rem 0 1rem;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 5px solid var(--color-primary);
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, var(--color-primary-light), transparent 85%);
}
.alpha-entry-content h3 {
  font-size: clamp(1.2rem, 1.08rem + 0.4vw, 1.45rem);
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--color-border);
}
.alpha-entry-content h4 { font-size: 1.12rem; margin: 1.6rem 0 0.6rem; }
.alpha-entry-content h5,
.alpha-entry-content h6 { font-size: 1rem; margin: 1.4rem 0 0.5rem; }
.alpha-entry-content p { margin: 0 0 1.25rem; }
.alpha-entry-content a {
  color: var(--color-secondary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.alpha-entry-content a:hover { color: var(--color-primary-hover); }
.alpha-entry-content ul,
.alpha-entry-content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.6rem;
}
.alpha-entry-content li { margin: 0.35rem 0; padding-left: 0.15rem; }
.alpha-entry-content li::marker { color: var(--color-secondary); font-weight: 700; }
.alpha-entry-content hr {
  border: 0;
  height: 1px;
  margin: 2.25rem 0;
  background: var(--color-border);
}
.alpha-entry-content :not(pre) > code {
  padding: 0.15em 0.4em;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  background: var(--color-border-subtle);
  font-size: 0.9em;
}
.alpha-entry-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #101827;
  color: #e5edf7;
  line-height: 1.65;
}
.alpha-entry-content blockquote,
.alpha-entry-content .wp-block-quote {
  position: relative;
  margin: 2rem 0;
  padding: 1.25rem 1.4rem 1.25rem 1.6rem;
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-secondary);
  border-radius: 0 14px 14px 0;
  background: var(--color-primary-light);
  color: var(--color-text-main);
  font-size: 1.04em;
  font-style: normal;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
}
.alpha-entry-content blockquote p:last-child,
.alpha-entry-content .wp-block-quote p:last-child { margin-bottom: 0; }
.alpha-entry-content blockquote cite,
.alpha-entry-content .wp-block-quote cite {
  display: block;
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.85em;
  font-style: normal;
  font-weight: 700;
}
.alpha-entry-content table,
.alpha-entry-content .wp-block-table table {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.75rem 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  font-size: 0.94em;
  line-height: 1.6;
}
.alpha-entry-content .wp-block-table { max-width: 100%; overflow-x: auto; }
.alpha-entry-content th,
.alpha-entry-content td {
  padding: 0.85rem 1rem;
  border: 0;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}
.alpha-entry-content th:last-child,
.alpha-entry-content td:last-child { border-right: 0; }
.alpha-entry-content tr:last-child td { border-bottom: 0; }
.alpha-entry-content thead th,
.alpha-entry-content th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 750;
}
.alpha-entry-content tbody tr:nth-child(even) td { background: var(--color-border-subtle); }
.alpha-entry-content tbody tr:hover td { background: var(--color-primary-light); }
.alpha-entry-content .wp-block-table figcaption {
  margin: 0.6rem 0 1rem;
  text-align: left;
}

/**
 * Alpha Theme - Pro Layer
 * Header, Footer, Single Post and AdSense-friendly ad styling.
 * Loads AFTER main.css, so it safely refines the base design.
 *
 * @package Alpha_Theme
 */

/* ==========================================================================
   0. Base helpers
   ========================================================================== */
html {
  scroll-behavior: smooth;
  /* sticky header + topbar offset so TOC / anchor links never hide headings */
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


:focus-visible {
  outline: 3px solid rgba(var(--color-primary-rgb), 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

.alpha-svg {
  flex-shrink: 0;
  vertical-align: -2px;
}

/* ==========================================================================
   1. Reading progress bar (single posts)
   ========================================================================== */
.alpha-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  background: transparent;
  pointer-events: none;
}

.alpha-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  will-change: transform;
}

/* ==========================================================================
   3. Main header
   ========================================================================== */
.site-header {
  background-color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}

[data-theme="dark"] .site-header {
  background-color: rgba(15, 23, 42, 0.88);
}

.site-header.is-sticky {
  box-shadow: 0 6px 24px -10px rgba(15, 23, 42, 0.25);
  border-bottom-color: transparent;
}

.site-header-inner {
  height: var(--header-height);
}

/* Brand */
.site-title {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.65rem);
  line-height: 1.1;
  margin: 0;
}

.site-title a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-primary);
}

.site-description {
  margin-top: 3px;
  letter-spacing: 0.01em;
}

/* Desktop navigation */
.alpha-nav-menu {
  gap: 0.25rem;
}

.alpha-nav-menu > li > a {
  position: relative;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-md);
  color: var(--color-text-main);
}

.alpha-nav-menu > li > a::before {
  content: '';
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-normal);
}

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

.alpha-nav-menu > li > a:hover::before,
.alpha-nav-menu > .current-menu-item > a::before,
.alpha-nav-menu > .current-menu-ancestor > a::before,
.alpha-nav-menu > .current_page_item > a::before {
  transform: scaleX(1);
}

/* Header actions */
.site-header-actions {
  gap: 0.4rem;
}

.alpha-search-toggle {
  gap: 0.45rem;
  height: 40px;
  min-width: 40px;
  padding: 0 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: 600;
  transition: border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.alpha-search-toggle:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.12);
}

.alpha-search-label {
  display: none;
}

@media (min-width: 1100px) {
  .alpha-search-label {
    display: inline;
    padding-right: 0.25rem;
  }
}

.alpha-mobile-toggle {
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.alpha-drawer-panel {
  box-shadow: 0 24px 60px -12px rgba(2, 6, 23, 0.45);
}

/* ==========================================================================
   5. Single post - article shell
   ========================================================================== */
.alpha-single-article {
  border-radius: var(--radius-xl);
  padding: clamp(1.1rem, 3.5vw, 2.5rem);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 30px -14px rgba(15, 23, 42, 0.12);
}

.alpha-entry-header {
  margin-bottom: 1.25rem;
}

.alpha-single-title {
  font-size: clamp(1.65rem, 1.3rem + 1.8vw, 2.5rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0.25rem 0 1rem;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.alpha-badge-category {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

/* Meta bar */
.alpha-meta-bar {
  gap: 0.5rem 1.1rem;
  padding: 0.85rem 0;
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: var(--font-size-sm);
}

.alpha-meta-bar a {
  color: var(--color-text-main);
  font-weight: 600;
  text-decoration: none;
}

.alpha-meta-bar a:hover {
  color: var(--color-primary);
}

.alpha-updated-date {
  color: var(--color-primary);
  font-weight: 600;
}

/* Featured image: reserved ratio = no layout shift */
.alpha-single-featured-media {
  margin: 0 0 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-border-subtle);
}

.alpha-single-featured-media img,
.alpha-featured-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none !important;
}

/* Share bar */
.alpha-social-share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.alpha-share-wrapper-top {
  margin-bottom: 1.5rem;
}

.alpha-share-btn {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.alpha-share-wrapper-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 2rem 0 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--color-border-subtle);
  border-radius: var(--radius-lg);
}

.alpha-share-label {
  font-weight: 700;
  font-size: var(--font-size-sm);
}

/* ==========================================================================
   6. Single post - reading typography
   ========================================================================== */
.alpha-entry-content {
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.8;
  color: var(--color-text-main);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

/* Comfortable measure on very wide layouts */
@media (min-width: 1280px) {
  .alpha-entry-content > * {
    max-width: 74ch;
  }
  .alpha-entry-content > .alignwide,
  .alpha-entry-content > figure,
  .alpha-entry-content > table,
  .alpha-entry-content > .alpha-ad-slot,
  .alpha-entry-content > .alpha-notice,
  .alpha-entry-content > .alpha-official-cta-card,
  .alpha-entry-content > .alpha-faq-accordion,
  .alpha-entry-content > .wp-block-table,
  .alpha-entry-content > .wp-block-image {
    max-width: 100%;
  }
}

.alpha-entry-content > *:first-child {
  margin-top: 0;
}

.alpha-entry-content p {
  margin: 0 0 1.25em;
}

.alpha-entry-content > p:first-of-type {
  font-size: 1.06em;
  color: var(--color-text-main);
}

/* Headings */
.alpha-entry-content h2,
.alpha-entry-content h3,
.alpha-entry-content h4 {
  scroll-margin-top: calc(var(--header-height) + 16px);
  text-wrap: balance;
}

.alpha-entry-content h2 {
  margin: 2.4em 0 0.8em;
  padding: 0.15em 0 0.15em 0.8em;
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.8rem);
  border-left: 5px solid var(--color-primary);
  border-radius: 2px;
}

.alpha-entry-content h3 {
  margin: 1.9em 0 0.6em;
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
}

.alpha-entry-content h4 {
  margin: 1.6em 0 0.5em;
}

/* Links (clearly links = user friendly + accessible) */
.alpha-entry-content a:not(.alpha-btn):not(.alpha-share-btn):not(.wp-block-button__link) {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(var(--color-primary-rgb), 0.4);
  transition: text-decoration-color var(--transition-fast), color var(--transition-fast);
}

.alpha-entry-content a:not(.alpha-btn):not(.alpha-share-btn):not(.wp-block-button__link):hover {
  text-decoration-color: currentColor;
  color: var(--color-primary-hover);
}

/* Lists */
.alpha-entry-content ul,
.alpha-entry-content ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}

.alpha-entry-content li {
  margin-bottom: 0.5em;
  padding-left: 0.25em;
}

.alpha-entry-content li::marker {
  color: var(--color-primary);
  font-weight: 700;
}

.alpha-entry-content li > ul,
.alpha-entry-content li > ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Blockquote */
.alpha-entry-content blockquote {
  position: relative;
  margin: 1.8em 0;
  padding: 1.1em 1.4em;
  border-left: 5px solid var(--color-primary);
  background: var(--color-primary-light);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: normal;
}

.alpha-entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.alpha-entry-content blockquote cite {
  display: block;
  margin-top: 0.6em;
  font-size: 0.875em;
  font-style: normal;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* Inline code + code blocks */
.alpha-entry-content code {
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: var(--color-border-subtle);
  border: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.alpha-entry-content pre {
  margin: 1.6em 0;
  padding: 1.1em 1.25em;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.65;
  -webkit-overflow-scrolling: touch;
}

.alpha-entry-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.alpha-entry-content hr {
  margin: 2.5em auto;
  width: 120px;
  border: 0;
  border-top: 3px solid var(--color-border);
  border-radius: 3px;
}

/* Images inside content: no hover zoom (avoids accidental layout jank) */
.alpha-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.alpha-entry-content figure {
  margin: 1.75em 0;
}

.alpha-entry-content figure img,
.alpha-entry-content .wp-block-image img {
  margin: 0 auto;
  transform: none;
}

.alpha-entry-content figure:hover img,
.alpha-entry-content .wp-block-image:hover img {
  transform: none;
}

.alpha-entry-content iframe,
.alpha-entry-content video,
.alpha-entry-content embed {
  max-width: 100%;
  border-radius: var(--radius-lg);
}

.alpha-entry-content .wp-block-embed__wrapper,
.alpha-entry-content .is-type-video .wp-block-embed__wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
}

.alpha-entry-content .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Tables: horizontal scroll on mobile, readable on desktop */
.alpha-entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.75em 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: 0.95em;
  line-height: 1.55;
}

.alpha-entry-content th,
.alpha-entry-content td {
  min-width: 110px;
  padding: 0.75em 1em;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.alpha-entry-content th {
  background: var(--color-primary);
  color: #ffffff;
  white-space: nowrap;
  text-align: left;
}

.alpha-entry-content tbody tr:last-child td {
  border-bottom: 0;
}

.alpha-entry-content tbody tr:hover td {
  background: var(--color-primary-light);
}

/* Table of contents */

/* Notice boxes */
.alpha-notice {
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin: 1.75em 0;
  font-size: 0.97em;
  line-height: 1.65;
}

.alpha-notice > :last-child {
  margin-bottom: 0;
}

/* Official portal CTA card */
.alpha-official-cta-card {
  margin: 2.25rem 0;
  border-width: 2px;
  border-radius: var(--radius-xl);
}

/* FAQ accordion */
.alpha-faq-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.alpha-faq-question {
  min-height: 52px;
  font-weight: 700;
  text-align: left;
}

/* Taxonomy footer as pills */
.alpha-entry-taxonomies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin: 1.25rem 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-subtle);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.alpha-entry-taxonomies a {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  margin: 0.1rem 0.15rem 0.1rem 0;
  border-radius: var(--radius-full);
  background: var(--color-border-subtle);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  font-weight: 600;
  text-decoration: none;
}

.alpha-entry-taxonomies a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

/* Author box */
.alpha-author-box {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin: 2rem 0;
  padding: 1.25rem;
  background: var(--color-border-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.alpha-author-avatar img {
  display: block;
  border-radius: 50%;
  border: 3px solid var(--color-surface);
  box-shadow: var(--shadow-md);
}

.alpha-author-name {
  margin: 0 0 0.3rem;
  font-size: var(--font-size-md);
}

.alpha-author-name a {
  color: var(--color-text-main);
  text-decoration: none;
}

.alpha-author-bio {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

@media (max-width: 520px) {
  .alpha-author-box {
    flex-direction: column;
  }
}

/* Previous / next */
.alpha-post-navigation {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .alpha-post-navigation {
    grid-template-columns: 1fr 1fr;
  }
}

.alpha-post-navigation > div:empty {
  display: none;
}

.alpha-nav-next {
  text-align: right;
}

.alpha-nav-previous,
.alpha-nav-next {
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.alpha-nav-previous:hover,
.alpha-nav-next:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.alpha-nav-direction {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.alpha-post-navigation a {
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  color: var(--color-text-main);
}

.alpha-post-navigation a:hover {
  color: var(--color-primary);
}

/* Related posts */
.alpha-related-posts-section {
  margin: 2.5rem 0 1rem;
}

.alpha-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .alpha-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.alpha-related-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.alpha-related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.alpha-related-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.alpha-related-body {
  padding: 0.8rem 0.95rem 1rem;
}

.alpha-related-title {
  margin: 0.2rem 0 0;
  font-size: 0.97rem;
  line-height: 1.4;
}

.alpha-related-title a {
  color: var(--color-text-main);
  text-decoration: none;
}

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

/* Comments */
.alpha-comments-area {
  margin-top: 2.5rem;
}

.alpha-comment-list {
  list-style: none;
  padding: 0;
}

.alpha-comment-list .comment-body {
  padding: 1rem 1.1rem;
  margin-bottom: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.alpha-comments-area input[type="text"],
.alpha-comments-area input[type="email"],
.alpha-comments-area input[type="url"],
.alpha-comments-area textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-main);
  font: inherit;
}

.alpha-comments-area textarea {
  min-height: 140px;
}

.alpha-comments-area input:focus,
.alpha-comments-area textarea:focus {
  border-color: var(--color-primary);
  outline: 3px solid rgba(var(--color-primary-rgb), 0.2);
}

/* ==========================================================================
   7. AdSense-friendly ad slots
   - Clearly labelled "Advertisement" (policy)
   - Reserved height = no layout shift (CLS)
   - Generous spacing so ads never crowd links / buttons (accidental clicks)
   - Empty / unfilled slots collapse so there is no blank gap
   - No dashed "click me" frames, no sticky overlay over content
   ========================================================================== */
.alpha-ad-slot {
  display: block;
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 2.25rem auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: center;
  overflow: hidden;
  contain: layout style;
}

.alpha-ad-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.alpha-ad-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: inherit;
}

.alpha-ad-inner ins.adsbygoogle {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Reserved space per placement (only while the ad is pending/filled) */
.alpha-ad-leaderboard { min-height: 110px; }
.alpha-ad-banner      { min-height: 120px; }
.alpha-ad-rectangle   { min-height: 280px; }
.alpha-ad-in-article  { min-height: 280px; max-width: 100%; }

@media (min-width: 768px) {
  .alpha-ad-leaderboard { min-height: 120px; }
}

/* Collapse when AdSense reports no fill */
.alpha-ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none;
  min-height: 0;
  margin: 0;
}

/* Header leaderboard strip */
.alpha-header-ad-banner-section {
  padding: 0.5rem 0 0.25rem;
  background: transparent;
  border-bottom: 0;
}

.alpha-header-ad-banner-section .alpha-ad-slot {
  margin: 0.25rem auto;
}

/* Keep ads away from interactive content blocks */
.alpha-ad-slot + .alpha-official-cta-card,
.alpha-official-cta-card + .alpha-ad-slot,
.alpha-ad-slot + .alpha-social-share-bar,
.alpha-ad-slot + .alpha-faq-accordion {
  margin-top: 2.5rem;
}

.alpha-single-top-ad {
  margin-top: 0.5rem;
  margin-bottom: 1.75rem;
}

.alpha-single-bottom-ad {
  margin-top: 2.5rem;
}

/* ==========================================================================
   8. Dark mode refinements
   ========================================================================== */
[data-theme="dark"] .alpha-entry-content pre {
  background: #020617;
  border: 1px solid var(--color-border);
}

[data-theme="dark"] .alpha-entry-content th {
  background: #065f46;
}

[data-theme="dark"] .alpha-entry-content tbody tr:hover td {
  background: rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] .alpha-single-article {
  box-shadow: none;
}

/* ==========================================================================
   9. Motion + print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .alpha-progress,
  .site-header,
  .alpha-ad-slot,
  .alpha-share-wrapper-top,
  .alpha-share-wrapper-bottom,
  .alpha-post-navigation,
  .alpha-related-posts-section,
  .alpha-comments-area,
  .site-footer,
  .alpha-back-to-top {
    display: none !important;
  }
  .alpha-single-article {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .alpha-entry-content a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    word-break: break-all;
  }
}

/* ==========================================================================
   Search popup & search form (v1.1)
   ========================================================================== */
.alpha-search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  padding-top: clamp(1rem, 10vh, 6rem);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.alpha-search-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.alpha-search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
}

.alpha-search-modal-box {
  position: relative;
  width: 100%;
  max-width: 640px;
  padding: clamp(1.1rem, 4vw, 1.75rem);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px -12px rgba(2, 6, 23, 0.45);
  transform: translateY(-12px);
  transition: transform 0.2s ease;
}

.alpha-search-modal.is-open .alpha-search-modal-box {
  transform: none;
}

.alpha-search-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.alpha-search-modal-heading {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.35;
}

.alpha-search-modal-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-border-subtle);
  color: var(--color-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.alpha-search-modal-close:hover {
  background: var(--color-border);
  color: var(--color-text-main);
}

/* One clean pill: icon + input + button, single focus ring */
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  padding: 0.3rem 0.3rem 0.3rem 2.75rem;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-form:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.14);
}

.search-form .search-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  display: flex;
  color: var(--color-text-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-form .search-field {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: 0;
  color: var(--color-text-main);
  font: inherit;
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
}

.search-form .search-field::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-form .search-field::placeholder {
  color: var(--color-text-subtle);
}

.search-form .search-submit {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 44px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #ffffff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-form .search-submit:hover {
  background: var(--color-primary-hover);
}

.search-form .search-submit-icon {
  display: none;
}

@media (max-width: 400px) {
  .search-form .search-submit {
    padding: 0 0.95rem;
  }
  .search-form .search-submit-text {
    display: none;
  }
  .search-form .search-submit-icon {
    display: block;
  }
}

/* Live results + popular topics */
.alpha-search-live:empty {
  display: none;
}

.alpha-search-live {
  margin-top: 0.75rem;
}

.alpha-search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.alpha-search-results a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--color-text-main);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.alpha-search-results a:hover,
.alpha-search-results a:focus-visible {
  background: var(--color-border-subtle);
}

.alpha-search-results .alpha-search-all {
  color: var(--color-primary);
  font-size: 0.9rem;
}

.alpha-search-status {
  margin: 0;
  padding: 0.5rem 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.alpha-search-section-title {
  margin: 1.1rem 0 0.55rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alpha-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alpha-search-chips a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.alpha-search-chips a:hover {
  background: var(--color-primary);
  color: #ffffff;
}

[data-theme="dark"] .alpha-search-chips a {
  color: #6ee7b7;
}

/* ==========================================================================
   Footer (v1.1): wave border, editable columns, round social icons
   ========================================================================== */
:root {
  --alpha-footer-bg: #0b1220;
  --alpha-footer-text: #cbd5e1;
  --alpha-footer-heading: #f8fafc;
  --alpha-footer-accent: #10b981;
}

.site-footer {
  position: relative;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.25rem;
  background: var(--alpha-footer-bg);
  color: var(--alpha-footer-text);
}

.site-footer .alpha-container {
  width: min(100% - 2rem, 1240px);
}

/* Wave divider sits on top edge of the footer and uses the footer color */
.alpha-footer-wave {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: clamp(30px, 5vw, 72px);
  margin-bottom: -1px;
  overflow: hidden;
  color: var(--alpha-footer-bg);
  line-height: 0;
  pointer-events: none;
}

.alpha-footer-wave svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.alpha-footer-wave .wave-back {
  opacity: 0.4;
}

.alpha-footer-widgets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: 1.75rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.alpha-footer-cols-4 .alpha-footer-widgets-grid {
  grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr;
}

@media (max-width: 991px) {
  .alpha-footer-widgets-grid,
  .alpha-footer-cols-4 .alpha-footer-widgets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .alpha-footer-widgets-grid,
  .alpha-footer-cols-4 .alpha-footer-widgets-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.alpha-footer-col,
.site-footer .widget,
.alpha-footer-widget {
  min-width: 0;
}

.alpha-footer-widget-title,
.site-footer .widget-title,
.site-footer .widgettitle,
.site-footer .wp-block-heading {
  position: relative;
  margin: 0 0 1.1rem;
  padding-bottom: 0.8rem;
  color: var(--alpha-footer-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.alpha-footer-widget-title::after,
.site-footer .widget-title::after,
.site-footer .widgettitle::after,
.site-footer .wp-block-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: var(--alpha-footer-accent);
}

.site-footer p,
.alpha-footer-fallback-text {
  margin: 0 0 0.75rem;
  color: var(--alpha-footer-text);
  font-size: 0.92rem;
  line-height: 1.8;
  opacity: 0.9;
}

.site-footer ul:not(.alpha-footer-menu) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 0;
  padding: 0.3rem 0;
  color: var(--alpha-footer-text);
}

.site-footer a {
  color: var(--alpha-footer-text);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:focus-visible,
.alpha-back-to-top:focus-visible {
  outline: 2px solid #6ee7b7;
  outline-offset: 4px;
}

.alpha-footer-fallback-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.92rem;
}

/* Social icons (round, brand colors) */
.alpha-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.site-footer .alpha-footer-social a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.site-footer .alpha-footer-social a:hover,
.site-footer .alpha-footer-social a:focus-visible {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.6);
}

.alpha-footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.alpha-social-whatsapp { background: #25d366; }
.alpha-social-facebook { background: #1877f2; }
.alpha-social-youtube { background: #ff0000; }
.alpha-social-telegram { background: #229ed9; }
.alpha-social-instagram { background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888); }
.alpha-social-x { background: #000000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.alpha-social-tiktok { background: #010101; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }

.alpha-footer-hint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

/* Disclaimer strip */
.alpha-footer-disclaimer {
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--alpha-footer-text);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.alpha-footer-disclaimer a {
  text-decoration: underline;
}

/* Bottom bar */
.alpha-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .alpha-footer-bottom {
    flex-direction: row;
    align-items: center;
  }
}

.alpha-footer-copyright {
  color: var(--alpha-footer-text);
  line-height: 1.7;
  opacity: 0.85;
}

.alpha-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alpha-footer-menu a {
  padding: 0.25rem 0;
  font-size: 0.8125rem;
}

/* ==========================================================================
   Back to top (no mobile bottom bar anymore)
   ========================================================================== */
.alpha-back-to-top {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 8px 24px -6px rgba(var(--color-primary-rgb), 0.55);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.alpha-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.alpha-back-to-top.is-visible:hover {
  transform: translateY(-3px);
}

@media (max-width: 600px) {
  .alpha-entry-content th,
  .alpha-entry-content td {
    padding: 0.7rem 0.8rem;
  }
  .alpha-entry-content h2 {
    margin-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer *,
  .alpha-entry-content *,
  .alpha-search-modal,
  .alpha-search-modal-box,
  .alpha-back-to-top {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Latest Updates ticker under the header (v1.2)
   ========================================================================== */
.alpha-ticker-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.alpha-ticker-bar .alpha-ticker-wrap {
  flex: none;
  width: 100%;
  height: 44px;
}

.alpha-ticker-bar .alpha-ticker-badge {
  flex: none;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.alpha-ticker-bar .alpha-ticker-items {
  animation-duration: 40s;
}

.alpha-ticker-bar .alpha-ticker-link {
  color: var(--color-text-main);
  font-size: 0.875rem;
  font-weight: 600;
}

.alpha-ticker-bar .alpha-ticker-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .alpha-ticker-bar .alpha-ticker-viewport {
    overflow-x: auto;
  }
  .alpha-ticker-bar .alpha-ticker-items {
    animation: none;
  }
}

/* WhatsApp channel button in footer (v1.2.1) */
.site-footer .alpha-footer-social a.alpha-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: auto;
  height: 44px;
  padding: 0 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
}

.alpha-social-pill svg {
  width: 20px;
  height: 20px;
}

.alpha-social-break {
  flex-basis: 100%;
  height: 0;
}

/* ==========================================================================
   Dropdown menus (v1.2.2): mobile accordion + touch support
   ========================================================================== */
.alpha-mobile-menu .menu-item-has-children {
  position: relative;
}

.alpha-mobile-menu .menu-item-has-children > a {
  padding-right: 52px;
}

.alpha-submenu-toggle {
  z-index: 2;
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.alpha-submenu-toggle svg {
  transition: transform 0.2s ease;
}

.alpha-mobile-menu .is-open > .alpha-submenu-toggle svg {
  transform: rotate(180deg);
}

.alpha-mobile-menu li > ul,
.alpha-mobile-menu .sub-menu {
  display: none;
  margin: 0 0 0.5rem;
  padding: 0 0 0 1rem;
  list-style: none;
  border-left: 2px solid var(--color-primary-light);
}

.alpha-mobile-menu li.is-open > ul,
.alpha-mobile-menu .is-open > .sub-menu {
  display: block;
}

.alpha-mobile-menu .sub-menu li {
  border-bottom: 0;
}

.alpha-mobile-menu .sub-menu a {
  padding: 0.6rem 0;
  font-size: 0.95rem;
  font-weight: 500;
}

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


/* ==========================================================================
   Mobile content fit (v1.2.4): nothing may be wider than the screen
   ========================================================================== */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.alpha-primary-content,
.alpha-entry-content,
.alpha-entry-content > * {
  min-width: 0;
  max-width: 100%;
}

.alpha-entry-content {
  overflow-wrap: anywhere;
  word-break: normal;
}

.alpha-entry-content p,
.alpha-entry-content span,
.alpha-entry-content li,
.alpha-entry-content td,
.alpha-entry-content th {
  white-space: normal;
  max-width: 100%;
}

/* Pasted content often carries fixed widths in inline styles */
.alpha-entry-content [style*="width"],
.alpha-entry-content div,
.alpha-entry-content figure,
.alpha-entry-content iframe,
.alpha-entry-content video,
.alpha-entry-content embed,
.alpha-entry-content object {
  max-width: 100% !important;
}

.alpha-entry-content iframe,
.alpha-entry-content video {
  width: 100%;
}

.alpha-entry-content table {
  table-layout: auto;
}

.alpha-entry-content td,
.alpha-entry-content th {
  min-width: 0;
}

@media (max-width: 640px) {
  .alpha-entry-content td,
  .alpha-entry-content th {
    padding: 0.6rem 0.7rem;
  }
}


/* ==========================================================================
   Mobile content fit, part 2 (v1.2.5)
   Forces every block of page content to wrap inside the screen, whatever
   inline styles or layout tables were pasted into the editor.
   ========================================================================== */
.site-main,
.site-main * {
  overflow-wrap: anywhere;
}

.site-main pre,
.site-main code,
.site-main .alpha-ticker-items,
.site-main .alpha-ticker-items * {
  overflow-wrap: normal;
}

.site-main [style*="width"],
.site-main [style*="min-width"],
.site-main [style*="nowrap"],
.site-main [style*="text-indent"] {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  text-indent: 0 !important;
}

.site-main center,
.site-main [align] {
  max-width: 100%;
}

/* Single-column "layout" tables (marked by main.js) behave like normal text blocks */
.alpha-entry-content table.alpha-layout-table,
.alpha-entry-content table.alpha-layout-table tbody,
.alpha-entry-content table.alpha-layout-table tr,
.alpha-entry-content table.alpha-layout-table td,
.alpha-entry-content table.alpha-layout-table th {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.alpha-entry-content table.alpha-layout-table {
  overflow: visible;
}

@media (max-width: 640px) {
  .alpha-layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .alpha-entry-content p,
  .alpha-entry-content div {
    text-indent: 0;
  }
}
