/* ==========================================================================
   Assam Jatir Khabar — Modern Editorial & ePaper Design System
   Inspired by Asomiya Pratidin (https://www.asomiyapratidin.in/)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700;800;900&family=Noto+Serif+Bengali:wght@400;500;600;700;800;900&family=Cinzel:wght@700;900&family=Playfair+Display:ital,wght@0,700;0,900;1,700&display=swap');

:root {
  /* Typography - Assamese First with Serif & Sans Fallbacks */
  --font-serif: 'Noto Serif Bengali', 'Tiro Bangla', 'Hind Siliguri', 'Playfair Display', Georgia, serif;
  --font-masthead: 'Noto Serif Bengali', 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: 'Noto Sans Bengali', 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Signature Color Palette (Asomiya Pratidin Style) */
  --color-primary: #e21e26;
  /* Iconic Asomiya Pratidin Red */
  --color-primary-dark: #b90015;
  /* Deep Crimson */
  --color-primary-light: #ff4d4f;
  /* Bright Red */
  --color-primary-rgb: 226, 30, 38;

  --color-accent: #e21e26;
  --color-accent-hover: #b90015;
  --color-gold: #d4af37;
  /* Editorial Gold for VIP & Passes */
  --color-gold-dark: #b45309;
  --color-gold-light: #fef3c7;

  --color-bg-main: #f8fafc;
  --color-bg-paper: #ffffff;
  --color-bg-alt: #f1f5f9;
  --color-bg-dark: #0f172a;

  --color-text-primary: #181818;
  /* Deep Newspaper Charcoal */
  --color-text-secondary: #475569;
  /* Slate */
  --color-text-muted: #64748b;
  /* Subtle Meta */
  --color-border: #e2e8f0;
  /* 1px Column Divider */
  --color-border-dark: #cbd5e1;
  --color-border-red: #e21e26;

  --color-success: #15803d;
  --color-success-bg: #f0fdf4;
  --color-warning: #b45309;
  --color-warning-bg: #fffbeb;
  --color-danger: #b91c1c;
  --color-danger-bg: #fef2f2;

  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.06);
  --shadow-paper: 0 8px 30px rgba(15, 23, 42, 0.07);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;

  /* Emil Design Engineering Easing Curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-main);
  color: var(--color-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s var(--ease-out), opacity 0.18s var(--ease-out);
}

/* Tactile Press Feedback for Pressable Elements (Emil Kowalski Principle) */
button,
.btn,
.navbar-btn-subscribe,
.navbar-btn-login,
.reader-tool-btn,
.paywall-plan-box,
.drawer-action-btn,
.btnToggle {
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out), background-color 140ms var(--ease-out), color 140ms var(--ease-out), border-color 140ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

button:active:not(:disabled),
.btn:active:not(:disabled),
.navbar-btn-subscribe:active,
.navbar-btn-login:active,
.reader-tool-btn:active:not(:disabled),
.paywall-plan-box:active,
.drawer-action-btn:active,
.btnToggle:active {
  transform: scale(0.97);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.container-narrow {
  max-width: 900px;
}

.container-wide {
  max-width: 1440px;
}

/* ==========================================================================
   Clean Modern Navbar (Asomiya Pratidin Exact Style)
   ========================================================================== */
.main-navbar-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.35rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Thin Edition Meta Strip (Left Aligned) */
.navbar-edition-strip {
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 3px 0;
  width: 100%;
}

.navbar-edition-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.2;
}

.navbar-edition-inner .edition-item {
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.01em;
}

.navbar-edition-inner .edition-sep {
  color: #cbd5e1;
  font-size: 0.7rem;
}

.navbar-edition-inner .edition-place {
  color: var(--color-primary);
  font-weight: 700;
}

/* Left: Hamburger & Search */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.navbar-hamburger-btn {
  background: #d90429;
  border: none;
  border-radius: 4px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 1px 3px rgba(217, 4, 41, 0.25);
}

.navbar-hamburger-btn:hover {
  background: #b90015;
}

.navbar-hamburger-btn:active {
  transform: scale(0.96);
}

.navbar-hamburger-btn .hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.navbar-hamburger-btn .hamburger-icon span {
  display: block;
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

/* Search input */
.navbar-search-form {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0 10px;
  height: 38px;
  transition: all 0.2s ease;
  position: relative;
}

.navbar-search-form:focus-within {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 2px rgba(217, 4, 41, 0.1);
}

.navbar-search-form .search-icon {
  font-size: 0.85rem;
  color: #64748b;
  margin-right: 6px;
}

.navbar-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: #1e293b;
  font-family: var(--font-sans);
  width: 140px;
  transition: width 0.25s ease;
}

.navbar-search-input::placeholder {
  color: #94a3b8;
  font-size: 0.85rem;
}

.navbar-search-form:focus-within .navbar-search-input {
  width: 210px;
}

/* Search Suggestions Dropdown */
.search-form-with-suggestions {
  position: relative;
}

.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 380px;
  max-width: calc(100vw - 2rem);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.05);
  z-index: 1200;
  overflow: hidden;
  max-height: 420px;
  display: none;
  transform-origin: top left;
  animation: dropdownFade 180ms var(--ease-out);
}

.search-suggestions-dropdown.is-active {
  display: block;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.suggestion-items-group {
  max-height: 340px;
  overflow-y: auto;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  transition: background-color 140ms var(--ease-out), transform 120ms var(--ease-out);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.is-selected {
  background: #fef2f2;
}

.suggestion-item:active {
  background: #fee2e2;
  transform: scale(0.99);
}

.suggestion-thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0f172a;
}

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

.suggestion-body {
  flex: 1;
  min-width: 0;
}

.suggestion-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 2px;
  letter-spacing: 0.03em;
}

.suggestion-title {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.suggestion-item:hover .suggestion-title,
.suggestion-item.is-selected .suggestion-title {
  color: var(--color-primary);
}

.suggestion-meta {
  font-size: 0.7rem;
  color: #64748b;
}

.suggestion-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 0.5rem 0.85rem;
  text-align: center;
}

.suggestion-view-all {
  font-size: 0.785rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: block;
}

.suggestion-view-all:hover {
  text-decoration: underline;
}

.suggestion-status-item {
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.825rem;
  color: #64748b;
}

.suggestion-empty span {
  font-size: 1.1rem;
  margin-right: 4px;
}

.suggestion-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #cbd5e1;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

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

/* Center: Brand Logo */
.navbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
}

.navbar-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 2px 0;
}

.navbar-brand-logo .brand-img {
  max-height: 62px;
  max-width: 360px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.navbar-brand-logo .brand-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.02em;
}

/* Right: Translator, Subscribe, Login */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.navbar-translate-wrapper {
  display: inline-flex;
  align-items: center;
}

.navbar-btn-subscribe {
  background: #d90429;
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.825rem;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  transition: background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(217, 4, 41, 0.25);
}

.navbar-btn-subscribe:hover {
  background: #b90015;
  transform: translateY(-1px);
}

.navbar-btn-login {
  background: #d90429;
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.825rem;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  line-height: 1.2;
  transition: background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(217, 4, 41, 0.25);
}

.navbar-btn-login:hover {
  background: #b90015;
  transform: translateY(-1px);
}

/* Slide-out Navigation Drawer */
.navbar-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease-out), visibility 0.28s;
}

.navbar-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.navbar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #ffffff;
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.32s var(--ease-drawer);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
}

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

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

.drawer-close-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #64748b;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 140ms var(--ease-out), color 140ms var(--ease-out);
}

.drawer-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.drawer-close-btn:active {
  transform: scale(0.92);
}

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

.drawer-search-form {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0 10px;
  height: 42px;
  margin-bottom: 1.25rem;
  position: relative;
  transition: all 0.2s ease;
}

.drawer-search-form:focus-within {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 2px rgba(217, 4, 41, 0.1);
}

.drawer-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  color: #1e293b;
  font-family: var(--font-sans);
  width: 100%;
  padding: 6px 8px;
}

.drawer-section-heading {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.drawer-links-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.drawer-links-list li {
  border-bottom: 1px solid #f1f5f9;
}

.drawer-links-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.drawer-links-list li a:hover,
.drawer-links-list li a.active {
  background: #fef2f2;
  color: #d90429;
  padding-left: 0.75rem;
}

.drawer-highlight-link {
  background: #fef2f2 !important;
  color: #d90429 !important;
  font-weight: 800 !important;
  border: 1px dashed #fca5a5;
  margin-top: 0.5rem;
}

.drawer-account-box {
  margin-bottom: 1.5rem;
}

.drawer-action-btn {
  display: block;
  text-align: center;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.drawer-action-btn:hover {
  opacity: 0.9;
}

.drawer-footer-links {
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
  font-size: 0.775rem;
  color: #64748b;
  text-align: center;
  line-height: 1.8;
}

.drawer-footer-links a {
  color: #64748b;
  text-decoration: none;
}

.drawer-footer-links a:hover {
  color: #d90429;
  text-decoration: underline;
}

/* Mobile responsive adjustments */
@media (max-width: 900px) {
  .navbar-search-form {
    display: none;
  }
  
  .navbar-btn-subscribe {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  
  .navbar-btn-login {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  
  .navbar-brand-logo .brand-img {
    max-height: 48px;
  }
}

@media (max-width: 540px) {
  .navbar-container {
    padding: 0.35rem 0.6rem;
    gap: 0.5rem;
  }
  
  .navbar-translate-wrapper {
    display: none;
  }
  
  .navbar-brand-logo .brand-img {
    max-height: 38px;
  }
}

/* ==========================================================================
   Breaking News Ticker Bar (Asomiya Pratidin Style)
   ========================================================================== */
.breaking-ticker-wrap {
  width: 100%;
  background: #111827;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  height: 40px;
  position: relative;
}

.breaking-label {
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.breaking-label::after {
  content: '';
  position: absolute;
  right: -14px;
  top: 0;
  bottom: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 14px solid var(--color-primary);
}

.ticker-content-track {
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.ticker-marquee {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  padding-left: 100%;
  font-size: 0.875rem;
  color: #ffffff;
}

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

.ticker-item {
  display: inline-block;
  margin-right: 3rem;
}

.ticker-item a {
  color: #f1f5f9;
  text-decoration: none;
  font-weight: 500;
}

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

.ticker-item::before {
  content: '⚡';
  margin-right: 0.5rem;
  color: var(--color-primary-light);
}

@keyframes ticker-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* ==========================================================================
   Horizontal Category Navigation Bar (Below Breaking News Marquee)
   ========================================================================== */
.main-category-navbar {
  width: 100%;
  background: #ffffff;
  border-bottom: 2px solid var(--color-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 15;
}

.category-nav-scroll-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
  align-items: center;
}

.category-nav-scroll-wrap::-webkit-scrollbar {
  display: none;
}

.category-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
}

.category-nav-item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.category-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  position: relative;
  transition: color 140ms var(--ease-out), background-color 140ms var(--ease-out), transform 120ms var(--ease-out);
  border-radius: 4px;
}

.category-nav-link:hover {
  color: var(--color-primary);
  background-color: #fef2f2;
}

.category-nav-link:active {
  transform: scale(0.96);
}

.category-nav-link.active {
  color: var(--color-primary);
  font-weight: 800;
}

.category-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.85rem;
  right: 0.85rem;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 3px 3px 0 0;
}

.category-nav-link.epaper-highlight-link {
  background: #fef2f2;
  color: var(--color-primary);
  font-weight: 800;
  border: 1px solid #fecaca;
  margin-left: 0.35rem;
  padding: 0.45rem 0.85rem;
}

.category-nav-link.epaper-highlight-link:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

@media (max-width: 768px) {
  .category-nav-link {
    font-size: 0.875rem;
    padding: 0.55rem 0.7rem;
  }
}

/* ==========================================================================
   Editorial News Matrix (3-Column Grid with Contained Widths)
   ========================================================================== */
.editorial-matrix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.75rem;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.main-news-column {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.sidebar-column {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.section-headline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 3px solid var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 0;
  margin-bottom: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.section-headline-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 900;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-headline-more {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  flex-shrink: 0;
}

.section-headline-more:hover {
  text-decoration: underline;
}

/* ==========================================================================
   1. Top Headline 2-Column Grid (Asomiya Pratidin Style)
   ========================================================================== */
.headline-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
}

.headline-story-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  border-radius: var(--radius-sm);
}

.headline-story-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.headline-story-media {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.85rem;
  aspect-ratio: 16/10;
  background: #0f172a;
  border-radius: 4px;
  width: 100%;
}

.headline-story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.headline-story-card:hover .headline-story-img {
  transform: scale(1.03);
}

.category-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  z-index: 2;
}

.headline-story-title {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.35;
  color: #111827;
  margin: 0 0 0.5rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

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

.story-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.775rem;
  color: var(--color-text-muted);
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.story-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ==========================================================================
   2. Below News 3-Column Grid (Asomiya Pratidin Style)
   ========================================================================== */
.news-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.news-card-3col {
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  border-radius: var(--radius-sm);
}

.news-card-3col:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.news-card-3col-media {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.65rem;
  aspect-ratio: 16/10;
  background: #0f172a;
  border-radius: 4px;
  width: 100%;
}

.news-card-3col-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card-3col:hover .news-card-3col-media img {
  transform: scale(1.04);
}

.news-card-3col-title {
  font-family: var(--font-serif);
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1.4;
  color: #181818;
  margin: 0 0 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

.news-card-3col-title a:hover {
  color: var(--color-primary);
}

@media (max-width: 992px) {
  .news-grid-3col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .headline-grid-2col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .news-grid-3col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ==========================================================================
   Right Sidebar Components (Strictly Contained)
   ========================================================================== */
.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
}

.epaper-promo-widget {
  border-top: 4px solid var(--color-primary);
  text-align: center;
  background: #ffffff;
}

.epaper-promo-cover {
  width: 160px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-paper);
  border: 1px solid var(--color-border-dark);
  transition: transform 0.2s ease;
  display: block;
}

.epaper-promo-cover:hover {
  transform: scale(1.03);
}

.trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.trending-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--color-border);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-rank {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  width: 24px;
  flex-shrink: 0;
}

.trending-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #181818;
  line-height: 1.4;
  flex-grow: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

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

/* ==========================================================================
   Multimedia & Web Stories (Dark Strip)
   ========================================================================== */
.webstories-section {
  background: #0f172a;
  padding: 2rem 0;
  margin: 2rem 0;
}

.webstories-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.webstories-header h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.webstories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.webstory-card {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1e293b;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.webstory-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.webstory-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.webstory-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 1;
}

.webstory-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.webstory-play-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(226, 30, 38, 0.85);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  z-index: 2;
}

.webstory-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   ePaper Pages Grid & Thumbnail Cards
   ========================================================================== */
.edition-control-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
}

.edition-control-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.date-navigator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.current-edition-pill {
  font-weight: 700;
  font-size: 1.05rem;
  color: #111827;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.section-tabs-wrapper {
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.section-tabs {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.section-tab-item a {
  display: block;
  padding: 0.4rem 0.9rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.section-tab-item.active a,
.section-tab-item a:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.page-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.page-thumb-wrapper {
  position: relative;
  background: #f1f5f9;
  aspect-ratio: 1 / 1.45;
  overflow: hidden;
}

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

.page-thumb-img.page-img-blurred {
  filter: blur(5px);
  transform: scale(1.05);
}

.page-badge-free {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #15803d;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #ffffff;
  z-index: 2;
  transition: background 0.2s ease;
}

.page-card:hover .page-lock-overlay {
  background: rgba(15, 23, 42, 0.6);
}

.lock-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.lock-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.page-card-meta {
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
}

.page-number-text {
  font-weight: 700;
  font-size: 0.875rem;
  color: #111827;
}

.page-section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: #f1f5f9;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   ePaper Reader Interface (epaper.asomiyapratidin.in Style)
   ========================================================================== */
.reader-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  min-height: 600px;
  background: #1e293b;
  position: relative;
  overflow: hidden;
}

.reader-toolbar {
  background: #0f172a;
  color: #ffffff;
  padding: 0.6rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
  z-index: 10;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.reader-toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reader-tool-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.reader-tool-btn:hover:not(:disabled) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.reader-page-indicator {
  font-weight: 700;
  font-size: 0.85rem;
  color: #e2e8f0;
  margin: 0 0.25rem;
}

.reader-viewport {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: #1e293b;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.reader-viewport.is-dragging {
  cursor: grabbing;
}

.reader-canvas-container {
  position: relative;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  background: #ffffff;
  display: inline-block;
  transform-origin: center center;
  will-change: transform;
}

.reader-page-image {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 85vh;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: filter 250ms var(--ease-out);
}

.reader-page-image.is-blurred {
  filter: blur(12px);
}

/* Bottom Slide-up Thumbnail Drawer */
.btnToggle {
  padding: 4px 36px;
  background-color: var(--color-primary);
  color: #ffffff;
  position: fixed;
  border-radius: 8px 8px 0 0 !important;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0px;
  z-index: 50;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  transition: bottom 0.32s var(--ease-drawer), background-color 0.18s var(--ease-out);
}

.btnToggle:hover {
  background-color: var(--color-primary-dark);
  color: #ffffff;
}

.rthumb_bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #111827;
  padding: 1rem 1.5rem;
  white-space: nowrap;
  height: 160px;
  overflow-x: auto;
  overflow-y: hidden;
  z-index: 45;
  border-top: 2px solid var(--color-primary);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.32s var(--ease-drawer);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-padding: 1.5rem;
}

.rthumb_bar.is-open {
  transform: translateY(0);
}

.rthumb-list {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.rthumb-item {
  display: inline-block;
  text-align: center;
  position: relative;
  scroll-snap-align: center;
}

.rthumb-item a {
  display: block;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  width: 75px;
  background: #1f2937;
  transition: transform 140ms var(--ease-out), border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}

.rthumb-item a:active {
  transform: scale(0.95);
}

.rthumb-item.active a {
  border-color: #facc15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.55);
}

.rthumb-item a:hover {
  border-color: var(--color-primary);
}

.rthumb-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.rthumb-title {
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.rthumb-lock {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.65rem;
  padding: 0.1rem 0.25rem;
  border-radius: 2px;
}

/* ==========================================================================
   The "Twist" — High-Converting Subscription Paywall Modal
   ========================================================================== */
.reader-paywall-curtain {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2.5rem 1.25rem;
  z-index: 30;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.paywall-modal-card {
  margin: auto;
  background: #ffffff;
  max-width: 740px;
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  text-align: center;
  position: relative;
  animation: modal-pop 0.22s var(--ease-out);
}

@keyframes modal-pop {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.paywall-badge-crown {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fef2f2;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 0.75rem;
}

.paywall-modal-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 0.35rem;
}

.paywall-modal-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

.paywall-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.paywall-plan-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), border-color 160ms var(--ease-out);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .paywall-plan-box:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(226, 30, 38, 0.12);
  }
}

.paywall-plan-box:active {
  transform: scale(0.97);
}

.paywall-plan-box.featured {
  border: 2px solid var(--color-primary);
  background: #fffafa;
}

.paywall-popular-ribbon {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #111827;
  margin-bottom: 0.25rem;
}

.plan-price {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.plan-price small {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  color: var(--color-text-muted);
  font-weight: 500;
}

.plan-desc {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin-bottom: 1rem;
  min-height: 36px;
}

.paywall-benefits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  text-align: left;
  background: #f8fafc;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.paywall-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.paywall-benefit-item span.check {
  color: #15803d;
  font-weight: 900;
}

.paywall-footer-links {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.paywall-footer-links a {
  color: var(--color-primary);
  font-weight: 600;
}

.paywall-footer-links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Buttons & Form Controls
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}

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

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

.btn-accent:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-border-dark);
  color: var(--color-text-primary);
}

.btn-outline:hover {
  background: #f1f5f9;
}

.btn-outline-primary {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

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

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  background: #ffffff;
  color: var(--color-text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--color-primary);
}

/* ==========================================================================
   Pricing Teaser Banner
   ========================================================================== */
.pricing-teaser-strip {
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
  border-left: 6px solid var(--color-primary);
}

.pricing-teaser-text h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.pricing-teaser-text p {
  color: #94a3b8;
  font-size: 0.9rem;
  max-width: 540px;
}

.pricing-teaser-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* ==========================================================================
   Editorial Footer (Asomiya Pratidin Style)
   ========================================================================== */
.site-footer {
  background: #111827;
  color: #94a3b8;
  padding-top: 3.5rem;
  margin-top: auto;
  border-top: 4px solid var(--color-primary);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #1f2937;
}

.footer-brand h4 {
  font-family: var(--font-masthead);
  font-size: 1.6rem;
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--color-primary);
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav-list li {
  margin-bottom: 0.6rem;
}

.footer-nav-list a {
  font-size: 0.85rem;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-nav-list a:hover {
  color: #ffffff;
  padding-left: 3px;
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
}

/* ==========================================================================
   Pricing Page Styles
   ========================================================================== */
.pricing-hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
  max-width: 760px;
  margin: 0 auto;
}

.pricing-hero h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 0.5rem;
}

.pricing-hero p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.pricing-card.featured {
  border: 2px solid var(--color-primary);
  background: #fffafa;
}

.featured-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(var(--color-primary-rgb), 0.4);
}

.pricing-card-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin: 0.5rem 0;
}

.plan-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.plan-amount {
  font-family: var(--font-serif);
  font-size: 3.25rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}

.plan-period {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.plan-features-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.plan-features-list li {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border-bottom: 1px dashed #f1f5f9;
}

.plan-features-list li::before {
  content: '✓';
  color: #15803d;
  font-weight: 900;
  flex-shrink: 0;
}

/* ==========================================================================
   Archive & Calendar Styles
   ========================================================================== */
.archive-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 1rem;
}

.cal-header-cell {
  text-align: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  padding: 0.4rem 0;
}

.cal-day-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.cal-day-cell.empty {
  background: transparent;
}

.cal-day-cell.no-edition {
  background: #f8fafc;
  color: #cbd5e1;
  border: 1px solid #f1f5f9;
}

.cal-day-cell.has-edition {
  background: #fef2f2;
  color: var(--color-primary);
  border: 1px solid #fca5a5;
  cursor: pointer;
}

.cal-day-cell.has-edition:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.3);
}

/* ==========================================================================
   Modern Editorial Checkout Experience
   ========================================================================== */
.checkout-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
  gap: 2.25rem;
  margin-top: 1.5rem;
  margin-bottom: 4rem;
  align-items: start;
}

.checkout-main-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.checkout-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fef2f2;
  color: var(--color-primary);
  border: 1px solid #fecaca;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.checkout-main-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.checkout-main-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.checkout-section-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  margin: 1.75rem 0 1.25rem;
}

.checkout-section-divider::before,
.checkout-section-divider::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: var(--color-border);
}

.checkout-input-group {
  margin-bottom: 1.35rem;
}

.checkout-input-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.4rem;
}

.checkout-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.checkout-input-icon {
  position: absolute;
  left: 1rem;
  font-size: 1rem;
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
}

.checkout-input-field {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.65rem;
  font-size: 0.925rem;
  font-family: inherit;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: #0f172a;
  transition: all 0.2s ease;
}

.checkout-input-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.12);
}

.checkout-prefix-tag {
  position: absolute;
  left: 2.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  pointer-events: none;
  z-index: 2;
}

.checkout-input-field.has-prefix {
  padding-left: 4.65rem;
}

.checkout-input-hint {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.35rem;
}

/* Payment Method Visual Selector */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.payment-method-tile {
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.85rem 0.75rem;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.payment-method-tile:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.payment-method-tile.selected {
  border-color: var(--color-primary);
  background: #fffafa;
  box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.15);
}

.payment-method-tile .method-icon {
  font-size: 1.35rem;
}

.payment-method-tile .method-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f172a;
}

.payment-method-tile .method-sub {
  font-size: 0.68rem;
  color: #64748b;
}

/* Checkout Submit Button */
.checkout-submit-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(var(--color-primary-rgb), 0.4);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.checkout-submit-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.5);
}

.checkout-submit-btn:active {
  transform: translateY(0);
}

.checkout-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.checkout-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.75rem;
  color: #64748b;
}

.checkout-trust-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Sticky Order Summary Sidebar Card */
.checkout-summary-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 1.5rem;
}

.summary-card-header {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.summary-edition-box {
  display: flex;
  gap: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.summary-edition-thumb {
  width: 60px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.summary-edition-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-edition-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

.summary-edition-date {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.summary-edition-sub {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.summary-price-table {
  width: 100%;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.summary-price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: #475569;
}

.summary-price-row.total-row {
  border-top: 2px solid #0f172a;
  border-bottom: 2px solid #0f172a;
  padding: 0.85rem 0;
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 900;
  color: #0f172a;
}

.summary-total-amount {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-primary);
}

.summary-perks-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.summary-perks-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #15803d;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.summary-perks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: #166534;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.summary-support-box {
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */
@media (max-width: 1080px) {
  .editorial-matrix {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sidebar-column {
    width: 100%;
    max-width: 100%;
  }

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

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

@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }

  .top-bar-meta {
    font-size: 0.75rem;
    gap: 0.6rem;
    flex-wrap: wrap;
  }

  .top-bar-actions {
    width: 100%;
    justify-content: space-between;
    font-size: 0.75rem;
  }

  .masthead-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .masthead-edition-meta {
    font-size: 0.68rem;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
  }

  /* Mobile Hamburger Toggle */
  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.75rem;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #111827;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
  }

  .mobile-menu-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
  }

  .hamburger-box {
    width: 18px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: #111827;
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-menu-toggle.is-open .hamburger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background-color: var(--color-primary);
  }

  .mobile-menu-toggle.is-open .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-menu-toggle.is-open .hamburger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background-color: var(--color-primary);
  }

  /* Backdrop Overlay */
  .mobile-menu-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .mobile-menu-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* Slide-out Off-Canvas Drawer */
  .nav-links-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: #ffffff;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex !important;
    flex-direction: column;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
  }

  .nav-links-wrapper.is-open {
    transform: translateX(0);
  }

  /* Drawer Header */
  .mobile-drawer-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: #0f172a;
    color: #ffffff;
    border-bottom: 3px solid var(--color-primary);
  }

  .mobile-drawer-brand {
    font-family: var(--font-masthead);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.02em;
  }

  .mobile-drawer-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-drawer-close:hover {
    background: var(--color-primary);
  }

  /* Section Title */
  .mobile-drawer-section-title {
    display: block !important;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 0.85rem 1.25rem 0.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
  }

  /* Drawer Links */
  .nav-links {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    flex-grow: 1;
  }

  .nav-links li a {
    display: block;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.15s ease;
  }

  .nav-links li a::after {
    display: none;
  }

  .nav-links li a:hover,
  .nav-links li a.active {
    background: #fef2f2;
    color: var(--color-primary);
    border-left: 4px solid var(--color-primary);
    padding-left: calc(1.25rem - 4px);
  }

  /* Drawer Footer */
  .mobile-drawer-footer {
    display: block !important;
    padding: 1.25rem;
    background: #f8fafc;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
  }

  .mobile-drawer-btn-vip {
    display: block;
    text-align: center;
    background: var(--color-primary);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 6px rgba(var(--color-primary-rgb), 0.35);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
  }

  .mobile-drawer-quick-links {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.6;
  }

  .mobile-drawer-quick-links a {
    color: var(--color-text-secondary);
    font-weight: 600;
  }

  .mobile-drawer-quick-links a:hover {
    color: var(--color-primary);
  }

  .breaking-ticker-wrap {
    height: auto;
    min-height: 38px;
  }

  .breaking-label {
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem 0.35rem 0.75rem;
  }

  .ticker-marquee {
    font-size: 0.8125rem;
  }

  .lead-story-title {
    font-size: clamp(1.25rem, 4.5vw, 1.85rem);
  }

  .news-grid-2col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pages-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  /* Swipeable Web Stories Reel on Mobile */
  .webstories-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding: 0.25rem 0 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .webstory-card {
    flex: 0 0 160px;
    aspect-ratio: 9/16;
    scroll-snap-align: start;
    border-radius: var(--radius-sm);
  }

  .paywall-plans-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pricing-teaser-strip {
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .reader-container {
    height: calc(100vh - 110px);
    min-height: 500px;
  }

  .reader-toolbar {
    padding: 0.4rem 0.75rem;
    gap: 0.35rem;
    justify-content: center;
  }

  .reader-tool-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }

  .article-content-box {
    padding: 1.5rem 1.25rem !important;
  }

  .article-title {
    font-size: clamp(1.4rem, 5.5vw, 2.2rem) !important;
  }

  .article-byline-bar {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }

  .article-share-bar {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .article-share-actions {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }

  .article-share-actions a {
    flex: 1;
    text-align: center;
  }

  .article-epaper-callout {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  .checkout-layout-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .checkout-main-card {
    padding: 1.75rem 1.25rem;
  }

  .checkout-summary-card {
    position: static;
    padding: 1.5rem 1.25rem;
  }

  .payment-methods-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }

  .page-card-meta {
    padding: 0.5rem 0.65rem;
  }

  .page-number-text {
    font-size: 0.78rem;
  }

  .page-section-tag {
    font-size: 0.68rem;
  }

  .webstory-card {
    flex: 0 0 140px;
  }
}

@media (max-width: 480px) {
  .masthead-title {
    font-size: 1.65rem;
  }

  .top-bar-meta {
    font-size: 0.7rem;
    gap: 0.4rem;
  }

  .webstory-card {
    flex: 0 0 130px;
  }
}

/* ==========================================================================
   Staff Admin Console Styles (Desktop & Mobile Responsive Architecture)
   ========================================================================== */
.admin-layout {
  display: flex;
  height: 100vh;
  max-height: 100vh;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

/* Sidebar Navigation (Desktop Fixed & Independent Scroll) */
.admin-sidebar {
  width: 260px;
  background: #0f172a;
  color: #f8fafc;
  flex-shrink: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 1000;
  transition: transform 280ms var(--ease-drawer), visibility 280ms;
}

/* Emil Kowalski Slim Scrollbar for Admin Sidebar */
.admin-sidebar::-webkit-scrollbar {
  width: 5px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: #0f172a;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 999px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms var(--ease-out), visibility 240ms;
}

.admin-sidebar-close {
  display: none;
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: background 140ms var(--ease-out), color 140ms var(--ease-out);
}

.admin-sidebar-close:hover {
  background: #334155;
  color: #ffffff;
}

.admin-brand {
  padding: 1.25rem 1.25rem;
  font-family: var(--font-masthead);
  font-weight: 900;
  font-size: 1.15rem;
  border-bottom: 1px solid #1e293b;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.admin-menu {
  list-style: none;
  padding: 1rem 0 2rem;
  margin: 0;
  flex-grow: 1;
}

.admin-menu li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s var(--ease-out);
  border-left: 3px solid transparent;
}

.admin-menu li a:hover,
.admin-menu li a.active {
  background: #1e293b;
  color: #ffffff;
  border-left-color: var(--color-primary);
}

.admin-main {
  flex: 1 1 0%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  min-width: 0;
}

.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}

.admin-mobile-toggle-btn {
  display: none;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 140ms var(--ease-out), transform 100ms var(--ease-out);
  flex-shrink: 0;
}

.admin-mobile-toggle-btn:active {
  transform: scale(0.96);
  background: #e2e8f0;
}

.admin-topbar-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.875rem;
}

.admin-content {
  padding: 1.5rem;
  flex-grow: 1;
  max-width: 1400px;
  width: 100%;
}

.admin-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

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

/* ==========================================================================
   Admin Mobile Responsive Media Queries (< 992px)
   ========================================================================== */
@media (max-width: 991px) {
  .admin-layout {
    display: block;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .admin-main {
    height: auto;
    overflow: visible;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    z-index: 10000;
    transform: translateX(-100%);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.4);
  }

  .admin-sidebar.active {
    transform: translateX(0);
    visibility: visible;
  }

  .admin-sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  .admin-sidebar-close {
    display: inline-flex;
  }

  .admin-mobile-toggle-btn {
    display: inline-flex;
  }

  .admin-topbar {
    padding: 0.75rem 1rem;
  }

  .admin-content {
    padding: 1rem 0.85rem;
  }

  /* Grid Stack Optimizations on Tablet/Mobile */
  .admin-grid-2col,
  .admin-article-grid,
  .admin-category-grid,
  .admin-upload-grid,
  .settings-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Responsive Data Tables */
  .data-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.85rem;
    padding: 0 0.85rem;
  }

  .data-table {
    min-width: 600px;
  }
}

@media (max-width: 640px) {
  .admin-user-label {
    display: none;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .admin-stat-card {
    padding: 1rem 0.85rem;
  }

  .admin-card {
    padding: 1.15rem 1rem;
    border-radius: var(--radius-md);
  }

  /* Admin Filter Forms Mobile Stacking */
  .admin-filter-bar {
    flex-direction: column !important;
    gap: 0.65rem !important;
  }

  .admin-filter-bar > div {
    width: 100% !important;
    min-width: 100% !important;
  }
}

.admin-stat-number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 900;
  color: #111827;
  line-height: 1.1;
  margin-top: 0.25rem;
}

.admin-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.data-table th {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--color-border);
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-warning {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.badge-info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* ==========================================================================
   Google Translate Styling & Responsive Integration
   ========================================================================== */
.translate-subbar {
  background: #f8fafc;
  border-bottom: 1px solid var(--color-border);
  padding: 0.35rem 0;
  font-size: 0.8rem;
}

.translate-subbar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.translate-subbar-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  font-size: 0.775rem;
}

.header-translate-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-size: 0.75rem;
}

.goog-te-gadget-simple {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  font-size: 0.775rem !important;
  font-family: inherit !important;
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer !important;
  line-height: normal !important;
  transition: all 0.2s ease !important;
}

.goog-te-gadget-simple:hover {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 2px rgba(217, 4, 41, 0.08);
}

.goog-te-gadget-simple .goog-te-menu-value {
  color: #1e293b !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
  border: none !important;
  font-size: 0.775rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.goog-te-gadget-simple img {
  display: inline-block !important;
  vertical-align: middle;
}

/* ==========================================================================
   Google Translate: Banner Suppressed, Popup Menu Interactive
   ========================================================================== */
/* 1. Only hide top banner frame */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.goog-te-banner-frame.skiptranslate,
.VIpgJd-ZVi9gl-ORHb-OEVmcb,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: none !important;
  position: fixed !important;
  top: -9999px !important;
  z-index: -9999 !important;
}

/* 2. Explicitly show the language dropdown popup menu */
.goog-te-menu-frame,
iframe.goog-te-menu-frame,
.goog-te-menu2,
.VIpgJd-ZVi9gl-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9gl-aZ2wEe,
.VIpgJd-ZVi9gl-O2T7fe {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 99999999 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  border-radius: 8px !important;
}

html {
  top: 0px !important;
  position: static !important;
}

body {
  top: 0px !important;
  position: static !important;
  transform: none !important;
}

.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

.mobile-drawer-translate-box {
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid var(--color-border);
  background: #f8fafc;
}

.mobile-drawer-translate-box .goog-te-gadget-simple {
  width: 100%;
  justify-content: center;
  padding: 8px 12px !important;
  background: #ffffff !important;
  border: 1px solid var(--color-border-dark) !important;
  border-radius: var(--radius-md) !important;
}

/* ==========================================================================
   Emil Kowalski Design Engineering: Form Loading, Spinners & Processing Overlays
   ========================================================================== */

/* 1. Fast-spinning Micro Spinner (600ms linear) */
@keyframes spin-fast {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.btn-spinner {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin-fast 600ms linear infinite;
  vertical-align: middle;
  flex-shrink: 0;
}

.btn-spinner-dark {
  border: 2px solid rgba(15, 23, 42, 0.2);
  border-top-color: #0f172a;
}

/* 2. Tactile Button Loading State */
.btn.btn-loading,
button.btn-loading {
  pointer-events: none !important;
  opacity: 0.88 !important;
  cursor: not-allowed !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 140ms var(--ease-out), transform 120ms var(--ease-out);
}

/* 3. Newspaper Edition Upload Full-Screen Processing Overlay */
.upload-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms var(--ease-out), visibility 220ms;
}

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

.upload-overlay-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 480px;
  padding: 2.25rem 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: scale(0.96) translateY(10px);
  transition: transform 260ms var(--ease-out);
}

.upload-overlay-backdrop.active .upload-overlay-card {
  transform: scale(1) translateY(0);
}

.upload-spinner-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-spinner-ring {
  width: 100%;
  height: 100%;
  border: 4px solid #f1f5f9;
  border-top-color: var(--color-primary);
  border-right-color: var(--color-primary);
  border-radius: 50%;
  animation: spin-fast 700ms linear infinite;
}

.upload-spinner-icon {
  position: absolute;
  font-size: 1.75rem;
}

.upload-overlay-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0 0 0.5rem;
}

.upload-overlay-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

/* 4. Indeterminate Gradient Shimmer Progress Bar */
.progress-indeterminate-shimmer {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.5rem;
}

.progress-indeterminate-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  border-radius: 999px;
  animation: shimmer-indeterminate 1.2s infinite linear;
}

@keyframes shimmer-indeterminate {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}

/* 5. Processing Steps Indicator */
.upload-steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
}

.upload-step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color 200ms var(--ease-out);
}

.upload-step-item.active {
  color: var(--color-text-primary);
  font-weight: 700;
}

.upload-step-item.completed {
  color: #16a34a;
  font-weight: 600;
}

.upload-step-bullet {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.upload-step-item.active .upload-step-bullet {
  background: #fee2e2;
  color: var(--color-primary);
  animation: pulse-step 1s infinite alternate ease-in-out;
}

.upload-step-item.completed .upload-step-bullet {
  background: #dcfce7;
  color: #16a34a;
}

@keyframes pulse-step {
  0% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1.08);
  }
}

.upload-safety-hint {
  font-size: 0.775rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #f8fafc;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}