/* ==========================================================================
   Bento Day Theme Stylesheet v3 (v3-day.css)
   Информационное агентство «Бизнес Код»
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Surface & Backgrounds (Swapped in v3) */
  --bento-bg: #ffffff;
  --bento-card-bg: #f2f4f7;
  --bento-card-hover-bg: #e5e7eb;
  --bento-header-bg: rgba(255, 255, 255, 0.95);
  --bento-header-top-bg: #f2f4f7;
  --bento-border: #e5e7eb;
  --bento-border-subtle: rgba(0, 0, 0, 0.05);

  /* Color Palette - Typography */
  --bento-text-main: #2b2c30;
  --bento-text-muted: #6b7280;
  --bento-text-light: #9ca3af;

  /* Color Palette - Accents */
  --bento-accent-green: #a9cf54;
  --bento-accent-green-hover: #96bb43;
  --bento-accent-green-subtle: rgba(169, 207, 84, 0.18);
  --bento-accent-dark: #12161a;

  /* Category Tag Colors (preserved) */
  --tag-politika-bg: #dcfce7;
  --tag-politika-text: #15803d;
  --tag-predprin-bg: #dbeafe;
  --tag-predprin-text: #1d4ed8;
  --tag-obshhestvo-bg: #fef3c7;
  --tag-obshhestvo-text: #b45309;
  --tag-kultura-bg: #fce7f3;
  --tag-kultura-text: #be185d;
  --tag-tehnologii-bg: #e0e7ff;
  --tag-tehnologii-text: #4338ca;

  /* Dynamic Tag HSL Settings (Day Mode) */
  --tag-dynamic-saturation: 75%;
  --tag-dynamic-bg-lightness: 92%;
  --tag-dynamic-text-lightness: 26%;

  /* Geometry & Radii */
  --bento-radius-lg: 20px;
  --bento-radius-md: 14px;
  --bento-radius-sm: 10px;
  --bento-radius-pill: 50px;

  /* Spacing & Gaps */
  --bento-gap-lg: 20px;
  --bento-gap-md: 14px;
  --bento-gap-sm: 10px;

  /* Shadows */
  --bento-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --bento-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --bento-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --bento-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --bento-img-transition: transform 0.4s ease;
}

/* --------------------------------------------------------------------------
   2. Base & Typography Resets
   -------------------------------------------------------------------------- */
body.home,
body.single,
body.bento-page {
  background-color: var(--bento-bg) !important;
  color: var(--bento-text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding-bottom: 40px;
}

/* Section Title with Quote Accents */
.bento-section-title {
  font-family: 'Roboto Condensed', -apple-system-condensed, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--bento-text-main);
}

.bento-section-title span.quotes {
  color: var(--bento-accent-green);
  font-size: 24px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   3. Header Bento v3 (2-Row Layout with Full-Width Lime Top Row)
   -------------------------------------------------------------------------- */
header.header-v2 {
  background: var(--bento-header-bg) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bento-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--bento-shadow-sm);
  padding: 0 0 6px 0;
}

/* Row 1: Full-width Top Bar */
.bento-header-top-bar,
.bento-header-row-top {
  width: 100%;
  background-color: var(--bento-accent-green);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 8px 0;
  margin-bottom: 6px;
}

.bento-header-top-inner {
  max-width: 2500px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.bento-header-logo-wrap {
  display: flex;
  align-items: center;
}

.bento-header-logo-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: var(--bento-transition);
  flex-shrink: 0;
}

.bento-header-logo-icon img {
  width: 64px;
  height: 64px;
  display: block;
  border-radius: 50%;
}

.bento-header-logo-icon:hover {
  transform: scale(1.05);
}

.bento-header-center-title {
  text-align: center;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin: 0;
  line-height: 1;
  color: #000000;
}

.bento-header-center-title a {
  color: #000000;
  text-decoration: none;
}

.bento-header-center-title span.title-black {
  color: #000000;
}

.bento-header-center-title span.title-green {
  color: #000000;
}

.bento-header-actions-v2 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.bento-action-icon-btn {
  background: none;
  border: none;
  color: #111111;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--bento-transition);
  text-decoration: none !important;
}

.bento-action-icon-btn:hover {
  color: #000000;
  transform: scale(1.1);
}

/* Day/Night Theme Toggle Pill */
.bento-theme-toggle-pill {
  width: 44px;
  height: 24px;
  background: #111111;
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 2px;
  cursor: pointer;
}

.bento-theme-toggle-circle {
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  font-size: 11px;
  margin-left: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Header Container for Row 2 */
.bento-header-v2-container {
  max-width: 2500px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Row 2: Centered Navigation Menu */
.bento-header-row-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2px;
}

.bento-nav-row-centered {
  display: flex;
  align-items: center;
  row-gap: 4px;
  column-gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.bento-nav-item-v2 {
  color: var(--bento-text-main);
  font-weight: 700 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.3px !important;
  transition: var(--bento-transition);
}

.bento-nav-item-v2:hover {
  color: var(--bento-accent-green);
}

.bento-nav-item-v2.green-link {
  color: var(--bento-accent-green) !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bento-nav-item-v2.green-link:hover {
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   4. Layout Architecture & Wrappers
   -------------------------------------------------------------------------- */
.bento-main-wrapper {
  max-width: 2500px;
  margin: 20px auto 0;
  padding: 0 24px;
}

.bento-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--bento-gap-lg);
}

.bento-main-feed {
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   5. Category Badges & Tag Pills
   -------------------------------------------------------------------------- */
.bento-tag,
.bento-cat-pill,
.bento-tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--bento-radius-pill);
  font-family: 'Roboto Condensed', -apple-system-condensed, sans-serif !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  line-height: 1.2;
  transition: var(--bento-transition);
}

.bento-tag {
  padding: 4px 10px;
  font-size: 14px !important;
  letter-spacing: 0.2px !important;
  text-transform: lowercase;
  background-color: hsl(var(--tag-bg-h, var(--tag-h, 160)), var(--tag-dynamic-saturation), var(--tag-dynamic-bg-lightness));
  color: hsl(var(--tag-text-h, var(--tag-h, 160)), var(--tag-dynamic-saturation), var(--tag-dynamic-text-lightness));
}

.bento-tag--politika {
  background: var(--tag-politika-bg);
  color: var(--tag-politika-text);
}

.bento-tag--predprinimatelstvo {
  background: var(--tag-predprin-bg);
  color: var(--tag-predprin-text);
}

.bento-tag--obshhestvo {
  background: var(--tag-obshhestvo-bg);
  color: var(--tag-obshhestvo-text);
}

.bento-tag--kultura {
  background: var(--tag-kultura-bg);
  color: var(--tag-kultura-text);
}

.bento-tag--tehnologii {
  background: var(--tag-tehnologii-bg);
  color: var(--tag-tehnologii-text);
}

.bento-cat-pill {
  gap: 6px;
  padding: 4px 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bento-accent-green-subtle);
  color: var(--bento-accent-green);
}

.bento-cat-pill:hover {
  background: var(--bento-accent-green);
  color: #ffffff;
}

.bento-tag-pill {
  gap: 4px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600 !important;
  background: var(--bento-bg);
  border: 1px solid var(--bento-border);
  color: var(--bento-text-muted);
}

.bento-tag-pill:hover {
  color: var(--bento-accent-green);
  border-color: var(--bento-accent-green);
  background: var(--bento-accent-green-subtle);
}

/* --------------------------------------------------------------------------
   6. Core Bento Card Components
   -------------------------------------------------------------------------- */
.bento-card {
  background: var(--bento-card-bg);
  border-radius: var(--bento-radius-lg);
  overflow: hidden;
  box-shadow: var(--bento-shadow-sm);
  transition: var(--bento-transition);
  position: relative;
  border: 1px solid var(--bento-border-subtle);
}

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

/* Card: Hero Banner */
.bento-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bento-gap-md);
  margin-bottom: var(--bento-gap-lg);
}

.bento-card--hero {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #ffffff;
  text-decoration: none;
}

.bento-card--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}

.bento-hero-content {
  position: relative;
  z-index: 2;
}

.bento-hero-title {
  font-family: 'Roboto Condensed', -apple-system-condensed, sans-serif !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  line-height: 1.25 !important;
  margin-top: 10px;
  margin-bottom: 0;
  color: #ffffff;
}

/* Card: Mini Grid 3x2 */
.bento-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: var(--bento-gap-sm);
}

.bento-card--mini {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  text-decoration: none !important;
  color: var(--bento-text-main);
  background: var(--bento-card-bg);
  border-radius: var(--bento-radius-md);
  border: 1px solid var(--bento-border-subtle);
  min-height: 155px;
}

.bento-card--mini .bento-mini-media {
  width: 100%;
  height: 90px !important;
  max-height: none !important;
  border-radius: var(--bento-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.bento-mini-title {
  font-family: 'Roboto Condensed', -apple-system-condensed, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  line-height: 1.25 !important;
  margin: 4px 0 0;
  color: var(--bento-text-main);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card: Medium Grid */
.bento-medium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bento-gap-md);
  margin-bottom: var(--bento-gap-lg);
}

.bento-card--medium {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: var(--bento-text-main);
}

.bento-medium-image-wrap {
  width: 100%;
  height: 190px;
  overflow: hidden;
  position: relative;
}

.bento-medium-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--bento-img-transition);
}

.bento-card--medium:hover .bento-medium-image-wrap img,
.bento-card--horizontal:hover .bento-horizontal-image-wrap img,
.bento-card--video:hover .bento-video-thumb-wrap img {
  transform: scale(1.05);
}

.bento-medium-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.bento-medium-title {
  font-family: 'Roboto Condensed', -apple-system-condensed, sans-serif !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px !important;
  line-height: 1.3 !important;
  margin: 0;
  color: var(--bento-text-main);
}

.bento-medium-excerpt {
  font-family: 'Roboto Condensed', -apple-system-condensed, sans-serif !important;
  font-size: 14px !important;
  letter-spacing: 0.2px !important;
  color: var(--bento-text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* Card: Horizontal List */
.bento-horizontal-list {
  display: flex;
  flex-direction: column;
  gap: var(--bento-gap-md);
}

.bento-card--horizontal {
  display: grid;
  grid-template-columns: 200px 1fr;
  text-decoration: none !important;
  color: var(--bento-text-main);
  height: 140px;
  overflow: hidden;
}

.bento-horizontal-image-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bento-horizontal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--bento-img-transition);
}

.bento-horizontal-content {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.bento-horizontal-title {
  font-family: 'Roboto Condensed', -apple-system-condensed, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px !important;
  line-height: 1.3 !important;
  margin: 0;
  color: var(--bento-text-main);
}

.bento-horizontal-excerpt {
  font-family: 'Roboto Condensed', -apple-system-condensed, sans-serif !important;
  font-size: 14px !important;
  letter-spacing: 0.2px !important;
  color: var(--bento-text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   7. Sidebar Widgets (PRO, Ad, Video)
   -------------------------------------------------------------------------- */
.bento-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--bento-gap-lg);
}

.bento-sidebar-col-promo {
  display: flex;
  flex-direction: column;
  gap: var(--bento-gap-lg);
}

/* PRO Membership Widget */
.bento-card--pro {
  background: #1c1d22;
  background-image: radial-gradient(circle at 80% 20%, #2e313d 0%, #1a1b20 70%);
  color: #ffffff;
  padding: 24px;
  position: relative;
  overflow: hidden;
  max-height: 242px;
}

.bento-pro-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bento-pro-title {
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #9ca3af;
  margin: 0;
}

.bento-pro-badge {
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #ffffff;
  margin: 0;
}

.bento-pro-avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #27272a;
  border: 2px solid var(--bento-accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bento-accent-green);
  font-size: 22px;
}

.bento-pro-sub {
  font-family: 'Roboto Condensed', sans-serif !important;
  color: #e5e7eb;
  font-size: 15px !important;
  font-weight: 700 !important;
  margin: 4px 0 2px;
}

.bento-pro-desc {
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 14px !important;
  color: #9ca3af;
  margin-bottom: 20px;
}

.bento-pro-btn {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  background: var(--bento-accent-green);
  color: #111111 !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  border-radius: var(--bento-radius-pill);
  text-decoration: none !important;
  transition: var(--bento-transition);
}

.bento-pro-btn:hover {
  background: var(--bento-accent-green-hover);
  color: #000000 !important;
}

/* Video Section Widget */
.bento-sidebar-video-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-card--video {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: var(--bento-text-main);
  background: var(--bento-card-bg);
}

.bento-video-thumb-wrap {
  width: 100%;
  height: 150px;
  position: relative;
  overflow: hidden;
}

.bento-video-thumb-wrap img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: var(--bento-img-transition);
}

.bento-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
}

.bento-video-content {
  padding: 12px;
}

.bento-video-title {
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  line-height: 1.3 !important;
  margin: 6px 0 4px;
  color: var(--bento-text-main);
}

.bento-video-meta {
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 14px !important;
  color: var(--bento-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Ad Banner Card */
.bento-card--ad {
  background: #473b26;
  color: #fff;
  border-radius: var(--bento-radius-lg);
  overflow: hidden;
  max-height: 242px;
}

.bento-ad-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.bento-ad-footer {
  padding: 14px 16px;
  background: #473b26;
}

.bento-ad-title {
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  margin: 0 0 4px;
  color: #fff;
}

.bento-ad-desc {
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 16px !important;
  color: #ffffff;
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. Article Page Components
   -------------------------------------------------------------------------- */
.bento-article-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.bento-article-card {
  background: var(--bento-card-bg);
  border-radius: var(--bento-radius-lg);
  border: 1px solid var(--bento-border);
  box-shadow: var(--bento-shadow-md);
  padding: 36px 44px;
  margin-bottom: var(--bento-gap-lg);
  transition: var(--bento-transition);
}

.bento-article-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--bento-border);
  padding-bottom: 20px;
}

.bento-article-categories {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.bento-article-title {
  font-family: 'Inter', sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--bento-text-main);
  margin: 0 0 20px 0;
  letter-spacing: -0.5px;
}

.bento-article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 14px;
  color: var(--bento-text-muted);
}

.bento-meta-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.bento-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bento-meta-item i {
  color: var(--bento-accent-green);
  font-size: 14px;
}

.bento-share-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bento-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bento-bg);
  color: var(--bento-text-main);
  border: 1px solid var(--bento-border);
  text-decoration: none !important;
  transition: var(--bento-transition);
  font-size: 14px;
  cursor: pointer;
}

.bento-share-btn:hover {
  background: var(--bento-accent-green);
  color: #ffffff;
  border-color: var(--bento-accent-green);
  transform: translateY(-2px);
}

.bento-article-excerpt {
  background: var(--bento-accent-green-subtle);
  border-left: 4px solid var(--bento-accent-green);
  padding: 18px 24px;
  border-radius: 0 var(--bento-radius-md) var(--bento-radius-md) 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--bento-text-main);
  margin-bottom: 28px;
}

.bento-article-picture-wrap {
  margin: 28px 0;
  border-radius: var(--bento-radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--bento-shadow-sm);
}

.bento-article-picture-wrap img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.bento-picture-caption {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--bento-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bento-article-body {
  font-size: 18px;
  line-height: 1.7;
  color: #2c3545;
}

.bento-article-body p {
  margin-bottom: 20px;
}

.bento-article-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--bento-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.bento-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--bento-text-main);
}

.bento-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(27, 122, 71, 0.15);
  color: var(--bento-accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.bento-tags-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   9. Post Feed Section (Under Article)
   -------------------------------------------------------------------------- */
.bento-feed-section {
  margin-top: 36px;
  margin-bottom: var(--bento-gap-lg);
}

.bento-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bento-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bento-gap-md);
}

.bento-feed-card {
  background: var(--bento-card-bg);
  border-radius: var(--bento-radius-md);
  border: 1px solid var(--bento-border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--bento-shadow-sm);
  transition: var(--bento-transition);
  text-decoration: none !important;
  position: relative;
}

.bento-feed-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bento-shadow-hover);
  border-color: var(--bento-accent-green);
}

.bento-feed-card--featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  background: linear-gradient(135deg, rgba(27, 122, 71, 0.08) 0%, var(--bento-card-bg) 100%);
  border-left: 4px solid var(--bento-accent-green);
}

.bento-feed-cat {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: hsl(var(--tag-text-h, var(--tag-h, 140)), var(--tag-dynamic-saturation), var(--tag-dynamic-text-lightness));
  margin-bottom: 8px;
}

.bento-feed-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--bento-text-main);
  margin: 0 0 12px 0;
  transition: var(--bento-transition);
}

.bento-feed-card:hover .bento-feed-title {
  color: var(--bento-accent-green);
}

.bento-feed-meta {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 13px;
  color: var(--bento-text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   10. Footer Architecture v2
   -------------------------------------------------------------------------- */
.bento-footer-v2 {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.bento-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--bento-gap-md);
  margin-bottom: 14px;
}

.bento-footer-card {
  background: var(--bento-card-bg);
  border-radius: var(--bento-radius-lg);
  padding: 24px;
  border: 1px solid var(--bento-border-subtle);
  box-shadow: var(--bento-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.bento-footer-brand {
  font-family: "Georgia", serif;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bento-footer-age {
  font-size: 13px;
  font-family: 'Roboto Condensed', sans-serif !important;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--bento-text-muted);
}

.bento-footer-text {
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 14px !important;
  line-height: 1.45;
  color: var(--bento-text-muted);
  margin: 0;
}

.bento-footer-license-badge {
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 14px !important;
  background: var(--bento-bg);
  padding: 10px 14px;
  border-radius: var(--bento-radius-sm);
  border: 1px solid var(--bento-border-subtle);
}

.bento-footer-license-link {
  color: var(--bento-accent-green) !important;
  font-weight: 700;
  text-decoration: none;
}

.bento-footer-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bento-heart-icon {
  color: #ef4444;
  font-size: 18px;
}

.bento-footer-card-title {
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  margin: 0;
}

.bento-footer-qr-wrap {
  margin-top: 6px;
}

.bento-footer-donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bento-accent-green);
  color: #111111 !important;
  padding: 10px 16px;
  border-radius: var(--bento-radius-pill);
  font-family: 'Roboto Condensed', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: var(--bento-transition);
}

.bento-footer-donate-btn:hover {
  background: var(--bento-accent-green-hover);
  color: #000000 !important;
  transform: translateY(-1px);
}

.bento-footer-qr-img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #fff;
  padding: 2px;
}

.bento-footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 14px !important;
}

.contact-label {
  color: var(--bento-text-muted);
  font-size: 13px;
}

.contact-value,
.contact-email {
  font-weight: 700;
  color: var(--bento-text-main);
  text-decoration: none;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-links a {
  color: var(--bento-accent-green) !important;
  font-weight: 700;
  text-decoration: none;
}

.bento-footer-bottom-bar {
  background: var(--bento-card-bg);
  border-radius: var(--bento-radius-md);
  padding: 16px 24px;
  border: 1px solid var(--bento-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.bento-footer-copyright {
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700;
  color: var(--bento-text-main);
}

.bento-footer-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 14px !important;
}

.bento-footer-nav-links a {
  color: var(--bento-text-muted);
  text-decoration: none !important;
  font-weight: 600;
  transition: var(--bento-transition);
}

.bento-footer-nav-links a:hover {
  color: var(--bento-accent-green);
}

.bento-footer-nav-links .dot {
  color: #d1d5db;
}

/* --------------------------------------------------------------------------
   11. Responsive Breakpoints & Viewport Behavior
   -------------------------------------------------------------------------- */
@media (min-width: 1800px) {
  .bento-layout-grid {
    grid-template-columns: 1fr 420px;
    gap: 28px;
  }

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

  .bento-card--hero {
    min-height: 480px;
  }

  .bento-header-center-title {
    font-size: 38px;
  }

  .bento-card--mini .bento-mini-media {
    height: 155px !important;
  }

  .bento-mini-title {
    font-size: 15px !important;
  }
}

@media (min-width: 1400px) and (max-width: 1799px) {
  .bento-layout-grid {
    grid-template-columns: 1fr 380px;
    gap: 24px;
  }

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

  .bento-card--hero {
    min-height: 420px;
  }

  .bento-card--mini .bento-mini-media {
    height: 125px !important;
  }
}

@media (min-width: 1025px) and (max-width: 1399px) {
  .bento-card--hero {
    min-height: 380px;
  }

  .bento-card--mini .bento-mini-media {
    height: 110px !important;
  }
}

@media (max-width: 1024px) {
  .bento-layout-grid {
    grid-template-columns: 1fr;
  }

  .bento-header-top-inner {
    grid-template-columns: 80px 1fr 100px;
  }

  .bento-header-center-title {
    font-size: 26px;
  }

  .bento-footer-grid {
    grid-template-columns: 1fr;
  }

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

  .bento-feed-card--featured {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .bento-article-card {
    padding: 24px 20px;
  }

  .bento-article-title {
    font-size: 26px;
  }
}

@media (min-width: 668px) and (max-width: 1024px) {
  .bento-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
}

@media (max-width: 768px) {
  .bento-header-top-inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .bento-header-center-title {
    grid-column: 1 / -1;
    order: 2;
    font-size: 24px;
    text-align: center;
  }

  .bento-header-logo-icon,
  .bento-header-logo-icon img {
    width: 48px;
    height: 48px;
  }

  .bento-top-grid {
    grid-template-columns: 1fr;
  }

  .bento-mini-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-medium-grid {
    grid-template-columns: 1fr;
  }

  .bento-card--horizontal {
    grid-template-columns: 120px 1fr;
  }

  .bento-card--mini .bento-mini-media {
    height: 85px !important;
  }
}

@media (max-width: 667px) {
  .bento-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .bento-feed-grid {
    grid-template-columns: 1fr;
  }

  .bento-feed-card--featured {
    grid-column: span 1;
  }
}

/* --------------------------------------------------------------------------
   Load More Navigation & Spinner
   -------------------------------------------------------------------------- */
.load-more-navigation {
  margin: 32px 0 16px;
  width: 100%;
}

.load-more__manual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.load-more-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 36px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--bento-text-main, #2b2c30);
  background-color: var(--bento-card-bg, #f2f4f7);
  border: 1px solid var(--bento-border, #e5e7eb);
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 44px;
  min-width: 180px;
  position: relative;
  overflow: hidden;
}

.load-more-btn:hover {
  background-color: var(--bento-accent-green, #a9cf54);
  color: #12161a;
  border-color: var(--bento-accent-green, #a9cf54);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(169, 207, 84, 0.25);
}

.load-more-btn:active {
  transform: translateY(0);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.load-more-btn > span {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.spinner_container {
  position: relative;
}

.spinner {
  animation: rotate 2s linear infinite;
  z-index: 20000;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
}

.spinner .path {
  stroke: var(--bento-accent-green, #a9cf54);
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

.spinner_dark .path {
  stroke: var(--bento-text-main, #2b2c30);
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* --------------------------------------------------------------------------
   Bento In-Feed Wide Banner Card
   -------------------------------------------------------------------------- */
.bento-card--banner-wide {
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: var(--bento-radius-lg, 20px) !important;
  margin-bottom: 20px;
  background: var(--bento-card-bg, #f2f4f7);
  border: 1px solid var(--bento-border, #e5e7eb);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card--banner-wide:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.bento-card--banner-wide a {
  display: block;
  width: 100%;
  text-decoration: none;
}

.bento-card--banner-wide picture,
.bento-card--banner-wide picture.banner,
.bento-card--banner-wide picture.banner-wide {
  display: block;
  width: 100%;
}

.bento-card--banner-wide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}