/* ==========================================================================
   Altijara Magazine - Editorial Theme (Financial Times / Asharq Business Style)
   Clean, High-Performance, Pixel-Perfect Layout
   ========================================================================== */

/* Fonts: self-hosted via assets/css/fonts.css (IBM Plex Sans Arabic + Playfair Display).
   Colors/fonts overridable from Admin → Altijara Theme → المظهر */

:root {
  --bg-salmon: #FFF1E5;
  --bg-salmon-light: #F2DFCE;
  --bg-card: #FFF7EF;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-dashed: rgba(0, 0, 0, 0.12);
  
  --ink-black: #262A33;
  --ink-secondary: #3b424e;
  --ink-muted: #6e7787;
  
  --accent-brand: #1897B8;
  --accent-red: #1897B8;
  --accent-red-hover: #12748e;
  --accent-blue: #1897B8;
  --accent-amber: #d97706;
  --accent-black: #262A33;
  --color-brand: #1897B8;
  
  --font-main: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --home-section-gap: 32px;
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Stacked modules added in any builder. Blocks that already have a bar or margin stay as they are. */
.altijara-block {
  margin-top: 20px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.altijara-block:has(> .section-bar-wrapper),
.altijara-block:has(> .bottom-related-section),
.altijara-block:has(> .cat-top-grid),
.altijara-block:has(> .cat-featured-row-4col),
.altijara-block:has(> .cat-news-col),
.altijara-block:has(> .issues-lead-hero),
.altijara-block:has(> .issues-carousel-section),
.altijara-block:has(> .home-split-sectors-section),
.altijara-block:has(> .cars-section) {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

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

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  height: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-salmon);
  color: var(--ink-black);
  font-family: var(--font-main);
  text-align: start;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-brand, #1897B8) transparent;
}

/* Global sticky footer — same chrome at the bottom of every page */
body {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > .main-header,
body > .live-loading-bar,
body > .live-loading-hint {
  flex-shrink: 0;
}

body > main,
body > .container,
body > .category-main-wrapper {
  flex: 1 0 auto;
  width: 100%;
}

body > .editorial-dark-footer {
  flex-shrink: 0;
  margin-top: 60px;
  width: 100%;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--accent-brand, #1897B8);
  border-radius: 999px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-inline-start: 3px solid transparent;
  border-inline-end: 3px solid transparent;
  background-clip: padding-box;
}

/* Loading UX: keep layout feeling alive — slim bar + soft overlay, not a blank page */
html.live-pending main.container,
html.live-pending main.category-main-wrapper {
  position: relative;
  min-height: 50vh;
}

html.live-pending main.container > *,
html.live-pending main.category-main-wrapper > * {
  opacity: 0.22;
  filter: saturate(0.7);
  pointer-events: none;
  user-select: none;
}

html.live-ready main.container > *,
html.live-ready main.category-main-wrapper > * {
  opacity: 1;
  filter: none;
  pointer-events: auto;
  user-select: auto;
}

.live-loading-bar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
  background: transparent;
  overflow: hidden;
  display: none;
}

html.live-pending .live-loading-bar {
  display: block;
}

.live-loading-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent-brand, #1897B8), transparent);
  animation: live-loading-slide 1.1s ease-in-out infinite;
}

@keyframes live-loading-slide {
  0% { transform: translateX(120%); }
  100% { transform: translateX(-280%); }
}

.live-loading-hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: #262A33;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: none;
  white-space: nowrap;
  font-family: var(--font-main);
}

html.live-pending .live-loading-hint {
  display: block;
}

html.live-ready .live-loading-hint,
html.live-ready .live-loading-bar {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:visited {
  color: inherit;
}

a:hover {
  color: var(--accent-brand, var(--color-brand, #1897B8));
}

/* Content titles — always use primary brand on hover */
main h2 a:hover,
main h3 a:hover,
main h4 a:hover,
main [class*="-title"] a:hover,
main [class*="-headline"] a:hover,
main [class*="title"] > a:hover,
main [class*="headline"] > a:hover,
.cat-page [class*="-title"] a:hover,
.cat-page [class*="-headline"] a:hover,
.article-page [class*="-title"] a:hover,
.article-page [class*="-headline"] a:hover {
  color: var(--accent-brand, var(--color-brand, #1897B8));
}

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

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 30px;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .container {
    padding-inline: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 16px;
  }
}

/* --------------------------------------------------------------------------
   Top Utility Bar (Crisp Light Executive Style)
   -------------------------------------------------------------------------- */
.top-utility-bar {
  background-color: #262A33;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0;
}

.top-utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.top-bar-left-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.top-nav-links li {
  position: relative;
  display: flex;
  align-items: center;
}

.top-nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  padding: 3px 15px;
  transition: all 0.2s ease;
  display: inline-block;
}

.top-nav-links li:first-child a {
  padding-inline-start: 0;
}

.top-nav-links a:hover {
  color: #38bdf8;
}

.top-nav-links li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.16);
  margin: 0 1px;
  border-radius: 0.5px;
}

.top-left-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-date-display {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.top-date-icon {
  color: #38bdf8;
  flex-shrink: 0;
}

.top-tools-divider {
  width: 1px;
  height: 15px;
  background-color: rgba(255, 255, 255, 0.16);
}

.top-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  color: #e2e8f0;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
  text-decoration: none;
}

.top-social-links a:hover {
  color: #ffffff;
  background-color: var(--color-brand, #1897B8);
  border-color: var(--color-brand, #1897B8);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Main Header
   -------------------------------------------------------------------------- */
.main-header {
  background-color: var(--bg-salmon);
  padding: 16px 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.14);
  position: relative;
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.menu-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}

.menu-toggle-btn span {
  display: block;
  width: 20px;
  height: 2.5px;
  background-color: #262A33;
  border-radius: 2px;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  line-height: 0;
  transition: transform 0.2s ease;
}

.brand-logo-link:hover {
  transform: scale(1.02);
}

.brand-logo-img {
  height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.brand-logo-default {
  opacity: 1;
}

.brand-logo-hover {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  opacity: 0;
  pointer-events: none;
}

.brand-logo-link:hover .brand-logo-default {
  opacity: 0;
}

.brand-logo-link:hover .brand-logo-hover {
  opacity: 1;
}

.brand-logo-text {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #262A33;
  line-height: 1;
}

.brand-logo-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  margin-top: 3px;
}

/* Header Sponsor Banner */
.header-sponsor-banner {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}

.sponsor-banner-img-link {
  display: block;
  max-width: 728px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sponsor-banner-img-link:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.header-ad-shortcode {
  position: relative;
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
  text-align: center;
}

/* Static creatives only — line-height:0 collapses Adning absolute stacks. */
.header-ad-shortcode > img,
.header-ad-shortcode > a > img,
.header-ad-shortcode > picture,
.header-ad-shortcode > iframe {
  max-width: 100%;
  height: auto;
  line-height: 0;
}

/* Adning multi-banner zones (home, categories, posts, issues). */
.header-sponsor-banner .header-ad-shortcode [class*="_ning_"] {
  max-width: 100%;
}

.header-sponsor-banner .header-ad-shortcode img,
.header-sponsor-banner .header-ad-shortcode iframe,
.header-sponsor-banner .header-ad-shortcode picture {
  max-width: 100%;
  height: auto;
}

/* Do not override ._ning_hidden display/visibility/opacity — Adning needs it. */

.header-ad-placeholder {
  width: 100%;
  max-width: 728px;
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px dashed #c5c9d1;
  border-radius: 4px;
  background:
    repeating-linear-gradient(
      -45deg,
      #f7f8fa,
      #f7f8fa 8px,
      #eef0f3 8px,
      #eef0f3 16px
    );
  color: #6e7787;
  line-height: 1.2;
  user-select: none;
  pointer-events: none;
}

.header-ad-placeholder__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-ad-placeholder__size {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.85;
}

.header-ad-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  margin: 0 auto;
}

/* Header Left Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Header Search Button (Clean, Completely Borderless & Transparent on Normal & Hover) */
.header-search-btn,
.o-header__top-icon-link--search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #262a33;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  padding: 0;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
}

.header-search-btn:hover,
.header-search-btn:focus,
.header-search-btn:active,
.header-search-btn:focus-visible,
.o-header__top-icon-link--search:hover,
.o-header__top-icon-link--search:focus,
.o-header__top-icon-link--search:active,
.o-header__top-icon-link--search:focus-visible {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--color-brand, #1897B8) !important;
  transform: scale(1.12);
}

/* Header Expandable Search Bar — global overlay */
.header-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(38, 42, 51, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.header-search-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.header-search-bar {
  display: none;
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1050;
  background: var(--bg-card, #F2DFCE);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  padding: 18px 0 16px;
}

.header-search-bar.active {
  display: block;
  animation: searchSlideDown 0.22s ease-out;
}

@keyframes searchSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-search-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  gap: 10px;
}

.header-search-form {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  background: var(--bg-salmon, #FFF1E5);
  border: 1.5px solid rgba(24, 151, 184, 0.22);
  border-radius: 999px;
  padding: 6px 8px 6px 10px;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-form:focus-within {
  background: var(--bg-salmon, #FFF1E5);
  border-color: var(--color-brand, #1897B8);
  box-shadow: 0 0 0 3px rgba(24, 151, 184, 0.14);
}

.header-search-form-icon {
  color: var(--color-brand, #1897B8);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-inline-start: 6px;
}

.header-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 14.5px;
  color: var(--ink-black);
  background: transparent;
  padding: 8px 4px;
  min-width: 0;
}

.header-search-input::placeholder {
  color: #8a96a8;
  font-size: 13.5px;
}

.header-search-submit {
  background-color: var(--color-brand, #1897B8);
  color: #ffffff;
  border: none;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background-color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.header-search-submit:hover {
  background-color: #12748e;
  transform: translateY(-0.5px);
}

.header-search-close {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: #64748b;
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
  line-height: 1;
  flex-shrink: 0;
  padding: 0;
}

.header-search-close:hover {
  color: #262A33;
  background-color: rgba(0, 0, 0, 0.1);
}

.header-search-hint {
  margin: 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* Live Search Results Dropdown */
.header-search-results {
  position: relative;
  top: 0;
  inset-inline: 0;
  background: var(--bg-salmon, #FFF1E5);
  border-radius: 12px;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  max-height: min(52vh, 380px);
  overflow-y: auto;
  z-index: 1;
  display: none;
}

.header-search-results.active {
  display: block;
}

.header-search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--ink-black);
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

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

.header-search-item:hover {
  background-color: #f8fafc;
}

.header-search-item-thumb {
  width: 60px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #e2e8f0;
}

.header-search-item-info {
  flex: 1;
  min-width: 0;
}

.header-search-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 3px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-search-item-meta {
  font-size: 11px;
  color: #64748b;
  display: flex;
  gap: 8px;
}

/* FT Sign In Link with User Icon */
.o-header__top-myaccount,
.login-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #262A33;
  text-decoration: none;
  height: 32px;
  padding: 0 4px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.o-header__myaccount-icon {
  width: 16px;
  height: 16px;
  color: #262A33;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.o-header__top-myaccount:hover,
.login-link:hover {
  color: #262A33;
  text-decoration: underline;
  text-decoration-thickness: 2.5px;
  text-underline-offset: 4px;
  font-weight: 700;
}

.o-header__top-myaccount:hover .o-header__myaccount-icon {
  color: #262A33;
}

/* Subscribe Button */
.o-header__top-button,
.btn-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #262A33 !important;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  height: 32px;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid #262A33;
  box-shadow: 0 2px 6px rgba(38, 42, 51, 0.25) !important;
  text-decoration: none;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.o-header__top-button:hover,
.btn-subscribe:hover {
  background-color: #1a1d24 !important;
  border-color: #1a1d24;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(38, 42, 51, 0.35) !important;
}

/* --------------------------------------------------------------------------
   Primary Category Navigation
   -------------------------------------------------------------------------- */
.primary-nav-bar {
  background-color: var(--bg-salmon);
  border-bottom: 2.5px solid rgba(0, 0, 0, 0.14);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.primary-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.primary-nav-list::-webkit-scrollbar {
  display: none;
}

.primary-nav-list li a {
  display: block;
  padding: 12px 14px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  position: relative;
  text-decoration: none;
  transition: color 0.15s ease;
}

.primary-nav-list li a:hover {
  color: var(--color-brand, #1897B8);
  font-weight: 800;
}

.primary-nav-list li.active a {
  color: var(--color-brand, #1897B8);
  font-weight: 800;
}

.primary-nav-list li.active a::after,
.primary-nav-list li a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 14px;
  height: 3.5px;
  background-color: #262A33;
  border-radius: 0;
  box-shadow: none;
  z-index: 10;
}

/* --------------------------------------------------------------------------
   Digital Subscription Promo Ribbon
   -------------------------------------------------------------------------- */
.promo-ribbon {
  background-color: #1a222d;
  color: #f8fafc;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.promo-ribbon-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.promo-text-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.promo-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
}

.promo-sub {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.btn-promo-action {
  background-color: var(--bg-card);
  color: #262A33 !important;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 4px;
  transition: all 0.15s;
}

.btn-promo-action:hover {
  background-color: #e2e8f0;
}

/* --------------------------------------------------------------------------
   Pills & Badges
   -------------------------------------------------------------------------- */
.pill-badge {
  display: inline-block;
  background-color: #262A33;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 3px;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.pill-badge.red {
  background-color: var(--accent-red);
}

.pill-badge.blue {
  background-color: var(--accent-blue);
}

.category-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 5px;
  display: inline-block;
}

.tag-badge-inline {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-inline-end: 6px;
  vertical-align: middle;
}

.tag-badge-inline.updated {
  background-color: rgba(24, 151, 184, 0.12);
  color: var(--accent-brand, #1897B8);
}

.tag-badge-inline.exclusive {
  background-color: #fef3c7;
  color: #92400e;
}

.tag-badge-inline.new {
  background-color: #e0f2fe;
  color: #0369a1;
}

.tag-badge-inline.partner {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.tag-badge-inline.sub {
  background-color: #262A33;
  color: #ffffff;
}

.meta-time {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 500;
  display: block;
  margin-top: 4px;
}


/* ===== Footer, chrome extras, responsive, issues (from former style.css) ===== */
/* --------------------------------------------------------------------------
   Live API Control Switch (Integrated in Top Bar)
   -------------------------------------------------------------------------- */
.api-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.btn-sync-action {
  background: #38bdf8;
  color: #262A33;
  border: none;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-sync-action:hover {
  background: var(--bg-card);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Asharq-Inspired Premium Dark Editorial Footer
   -------------------------------------------------------------------------- */
.editorial-dark-footer {
  background-color: #262A33;
  color: #94a3b8;
  margin-top: 60px;
  padding: 56px 0 28px;
  position: relative;
  font-family: inherit;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.editorial-dark-footer .footer-grid {
  display: grid;
  grid-template-columns: 260px 1.4fr 190px 180px;
  gap: 36px;
  align-items: flex-start;
  padding-bottom: 44px;
}

/* Brand Column (inline-start) */
.editorial-dark-footer .footer-col-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  gap: 14px;
}

.editorial-dark-footer .footer-logo-link {
  display: block;
  text-align: start;
  margin: 0;
}

.editorial-dark-footer .footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-inline-start: 0;
  margin-inline-end: auto;
}

.editorial-dark-footer .footer-platform-badge {
  display: inline-block;
  align-self: flex-start;
  background: #181d27;
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-align: start;
  margin-inline-start: 0;
}

.editorial-dark-footer .footer-brand-desc {
  font-size: 13.5px;
  font-weight: 500;
  color: #cbd5e1;
  line-height: 1.65;
  margin: 0;
  max-width: 260px;
  text-align: start;
  align-self: flex-start;
}

/* Headings */
.editorial-dark-footer .footer-heading {
  font-size: 15.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px 0;
  letter-spacing: -0.2px;
}

/* Sections Column. الصناعة shares the الأقسام row; the other list starts under the heading. */
.editorial-dark-footer .footer-col-sections {
  min-width: 0;
}

.editorial-dark-footer .footer-sections-subcols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  align-items: start;
}

.editorial-dark-footer .footer-sections-col > .footer-heading {
  margin: 0;
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8.5px 0;
  border-bottom: 1px dashed transparent;
  box-sizing: border-box;
}

/* Common Links List */
.editorial-dark-footer .footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.editorial-dark-footer .footer-links-list li {
  margin: 0;
  padding: 0;
}

.editorial-dark-footer .footer-links-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8.5px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, padding 0.15s ease;
}

.editorial-dark-footer .footer-links-list a:hover {
  color: var(--color-brand, #1897B8);
  padding-inline-end: 4px;
}

.editorial-dark-footer .footer-caret {
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.editorial-dark-footer .footer-links-list a:hover .footer-caret {
  color: var(--color-brand, #1897B8);
  transform: translateX(-3px);
}

html:not([dir="rtl"]) .editorial-dark-footer .footer-links-list a:hover .footer-caret {
  transform: translateX(3px);
}

.editorial-dark-footer .trp-menu-ls-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.editorial-dark-footer .trp-menu-ls-label img,
.editorial-dark-footer .trp-flag-image {
  width: 16px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

/* Social Column */
.editorial-dark-footer .footer-col-social {
  display: flex;
  flex-direction: column;
}

.editorial-dark-footer .footer-social-icons {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 4px;
}

.editorial-dark-footer .footer-social-icons a {
  color: #ffffff;
  opacity: 0.85;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.editorial-dark-footer .footer-social-icons a:hover {
  color: var(--color-brand, #1897B8);
  opacity: 1;
  transform: translateY(-2px);
}

/* Bottom Copyright Bar */
.editorial-dark-footer .footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
}

.editorial-dark-footer .footer-copyright-text {
  margin: 0;
  font-size: 12.5px;
  color: #7e8b9b;
  font-weight: 500;
}

.editorial-dark-footer .footer-dev-credit {
  margin-inline-start: 6px;
}

.editorial-dark-footer .footer-dev-credit-link {
  color: #a8b4c4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.editorial-dark-footer .footer-dev-credit-link:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 1100px) {
  .editorial-dark-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
  }
}

@media (max-width: 640px) {
  .editorial-dark-footer {
    padding: 44px 0 24px;
    text-align: start;
  }
  .editorial-dark-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .editorial-dark-footer .footer-col-brand {
    align-items: flex-start;
    text-align: start;
  }
  .editorial-dark-footer .footer-brand-desc {
    text-align: start;
  }
  .editorial-dark-footer .footer-sections-subcols {
    grid-template-columns: 1fr;
  }
  .editorial-dark-footer .footer-sections-col > .footer-heading {
    margin: 0 0 16px;
    min-height: 0;
    padding: 0;
    border-bottom: none;
  }
  .editorial-dark-footer .footer-social-icons {
    gap: 16px;
  }
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid,
  .hero-grid--no-chamber,
  .hero-grid--no-center,
  .hero-grid--no-lead,
  .hero-grid--solo {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    align-items: start;
  }
  .hero-col-center,
  .hero-col-lead {
    grid-row: auto;
    display: flex;
    flex-direction: column;
  }
  .hero-col-opinion {
    grid-column: auto;
    grid-row: auto;
    border-inline-start: none;
    border-top: 1px solid var(--border-dashed);
    padding-inline-start: 0;
    padding-top: 8px;
  }
  .lead-primary-story {
    height: auto;
    min-height: 0 !important;
    margin-inline-start: 0 !important;
    border-inline-start: 1px solid var(--border-color);
    border-radius: 6px;
  }
  .magazine-cover-card {
    border-inline-end: 1px solid var(--border-color);
    border-radius: 6px;
    height: auto !important;
    max-height: none;
  }
  .dossier-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .dossier-side-card {
    border-inline-start: none;
    padding-inline-start: 0;
  }
  .news-grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }
  .cars-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .top-utility-inner {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
  }
  .top-nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .top-nav-links li:first-child a {
    padding-inline-start: 10px;
  }
  .top-nav-links a {
    padding: 2px 9px;
    font-size: 11px;
  }
  .top-left-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .header-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
  }
  .header-brand {
    order: 1;
  }
  .brand-logo-img {
    height: 46px;
  }
  .header-actions {
    order: 2;
  }
  .header-sponsor-banner {
    order: 3;
    width: 100%;
    padding: 6px 0 0;
  }
  .sponsor-banner-img-link {
    max-width: 100%;
  }
  .header-ad-img {
    max-height: 70px;
  }
}

@media (max-width: 768px) {
  .hero-col-lead {
    border-inline-end: none;
    padding-inline-end: 0;
  }
  .lead-title-giant {
    font-size: 17.5px;
  }
  .news-grid-4col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cars-cards-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .car-card {
    border: 1px solid rgba(0, 0, 0, 0.07);
    padding: 14px;
  }
  .promo-ribbon-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .promo-text-group {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 640px) {
  .main-header {
    padding: 10px 0;
  }
  .brand-logo-img {
    height: 38px;
  }
  .header-brand {
    gap: 8px;
  }
  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }
  .o-header__top-myaccount,
  .login-link {
    display: inline-flex;
    font-size: 12.5px;
    height: 30px;
    gap: 5px;
  }
  .o-header__myaccount-icon {
    width: 15px;
    height: 15px;
  }
  .btn-subscribe {
    padding: 6px 14px;
    font-size: 12px;
  }
  .header-sponsor-banner {
    padding-top: 4px;
  }
  .header-ad-img {
    max-height: 52px;
  }
  .top-nav-links a {
    padding: 2px 7px;
    font-size: 10.5px;
  }
  .hide-on-mobile {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Issues Page (Financial Times Editorial Style Archive)
   -------------------------------------------------------------------------- */
.issues-page-body {
  background-color: var(--bg-salmon);
}

.issues-main-wrapper {
  padding-bottom: 50px;
}

.issues-page-header {
  margin: 24px 0 28px;
  border-bottom: 2px solid #262A33;
  padding-bottom: 16px;
}

.issues-page-title {
  font-size: 24px;
  font-weight: 900;
  color: #262A33;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

.issues-page-subtitle {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
  max-width: 820px;
}

/* Hero Featured Issue (Crisp Light Executive Showcase) */
.issues-lead-hero {
  background: var(--bg-card);
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 24px;
  margin-bottom: 40px;
  box-shadow: 0 8px 30px -4px rgba(180, 150, 120, 0.12), 0 2px 6px rgba(0, 0, 0, 0.03);
}

.issues-lead-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  align-items: stretch;
}

.lead-media-wrap {
  position: relative;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-left: 1px solid rgb(226, 232, 240);
  padding: 24px;
}

.lead-cover-frame {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-cover-img {
  width: auto;
  max-width: 90%;
  max-height: 390px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lead-cover-frame:hover .lead-cover-img {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.lead-play-badge {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  color: #262A33;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.play-icon-svg {
  color: var(--color-brand, #1897B8);
  display: flex;
  align-items: center;
}

.lead-media-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: #262A33;
}

.lead-issue-tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 16px;
  background: var(--color-brand, #1897B8);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(31, 162, 189, 0.3);
}

.lead-info-wrap {
  padding: 38px 36px;
  color: #262A33;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-card);
}

.lead-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.lead-type-badge {
  background: rgba(31, 162, 189, 0.12);
  color: #0d7b91;
  border: 1px solid rgba(31, 162, 189, 0.28);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}

.lead-date-txt {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
}

.lead-headline {
  margin: 0 0 14px;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.35;
  color: #262A33;
}

.lead-headline a {
  color: #262A33;
  transition: color 0.15s;
}

.lead-headline a:hover {
  color: var(--color-brand, #1897B8);
}

.lead-synopsis {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  margin: 0 0 22px;
}

.lead-stats-row {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.lead-stat-chip {
  background: var(--bg-card);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 18px;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lead-stat-chip strong {
  font-size: 20px;
  color: #0d7b91;
  line-height: 1;
  font-weight: 800;
}

.lead-stat-chip span {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  margin-top: 4px;
}

.lead-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.lead-actions-row > .btn-lead-primary,
.lead-actions-row > .btn-lead-secondary {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
}

.btn-lead-primary {
  background: linear-gradient(135deg, var(--color-brand, #1897B8) 0%, #178fa6 100%);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(31, 162, 189, 0.35);
}

.btn-lead-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 162, 189, 0.45);
}

.btn-lead-secondary {
  background: var(--bg-card);
  color: #334155 !important;
  border: 1.5px solid #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}

.btn-lead-secondary:hover {
  background: #f8fafc;
  border-color: var(--color-brand, #1897B8);
  color: var(--color-brand, #1897B8) !important;
}

.btn-lead-toc {
  background: transparent;
  color: #0d7b91;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  transition: color 0.15s;
}

.btn-lead-toc:hover {
  color: #085564;
}

/* FT Editorial Section Title Bar */
.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1.5px solid #a8a8a8 !important;
  padding-top: 14px;
  margin: 44px 0 20px;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.section-ft-heading {
  font-size: 22px;
  font-weight: 800;
  color: #262A33;
  margin: 0;
  letter-spacing: -0.3px;
}

.carousel-nav-arrows {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #262A33;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.nav-arrow-btn:hover {
  background: var(--color-brand, #1897B8);
  color: #ffffff;
  border-color: var(--color-brand, #1897B8);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(24, 151, 184, 0.3);
}

.nav-arrow-btn:active {
  transform: scale(0.95);
}

/* Carousel Horizontal Track */
.issues-carousel-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 6px 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.issues-carousel-track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.issues-carousel-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Desktop: four full cards, nothing of the next one. Arrows stay hidden until the row overflows. */
@media (min-width: 1151px) {
  .issues-carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 66px) / 4);
    gap: 22px;
  }

  .issues-carousel-track > .issue-card-ft {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .issues-carousel-section.is-static .carousel-nav-arrows {
    display: none;
  }

  .issues-carousel-section.is-static .issues-carousel-track {
    overflow-x: hidden;
    cursor: default;
  }
}

/* Individual FT Issue Card */
.issue-card-ft {
  width: 285px;
  flex: 0 0 285px;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.issue-card-ft:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card-cover-wrap {
  position: relative;
  width: 100%;
  background: #fbf5ee;
  border-bottom: 1px solid #e7ded2;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 12px;
  text-decoration: none;
  color: inherit;
}

.card-cover-img {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: -4px 6px 18px rgba(0, 0, 0, 0.15), -1px 2px 5px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.issue-card-ft:hover .card-cover-img {
  transform: translateY(-4px) scale(1.02);
  box-shadow: -6px 12px 26px rgba(0, 0, 0, 0.22);
}

.card-num-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: var(--color-brand, #1897B8);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(24, 151, 184, 0.35);
  z-index: 2;
}

.cover-play-badge {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--color-brand, #1897B8);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, background 0.2s, color 0.2s;
  z-index: 2;
}

.card-cover-wrap:hover .cover-play-badge {
  background: var(--color-brand, #1897B8);
  color: #ffffff;
  transform: scale(1.08);
}

.card-duration-badge {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 12px;
  background: var(--bg-card);
  color: #262A33;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.card-content-wrap {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: start;
}

.card-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.card-category-tag {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--color-brand, #1897B8);
  margin: 0 0 8px;
  line-height: 1.3;
}

.card-category-tag.red { color: var(--accent-brand, #1897B8); }
.card-category-tag.blue { color: #0284c7; }
.card-category-tag.green { color: #16a34a; }
.card-category-tag.gold { color: #d97706; }
.card-category-tag.purple { color: #7c3aed; }
.card-category-tag.orange { color: #ea580c; }
.card-category-tag.teal { color: #0d9488; }
.card-category-tag.indigo { color: #4f46e5; }

.card-issue-num {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 600;
}

.card-issue-title {
  font-size: 15px;
  font-weight: 800;
  color: #262A33;
  line-height: 1.4;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.card-issue-title a {
  color: inherit;
  transition: color 0.15s;
}

.card-issue-title a:hover {
  color: var(--color-brand, #1897B8);
}

.card-issue-date {
  display: block;
  font-size: 12px;
  color: #8892a0;
  font-weight: 600;
  margin: auto 0 0;
  padding-top: 4px;
}

.card-actions-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1ece4;
}

.card-action-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-brand, #1897B8);
  text-decoration: none;
}

.card-action-link:hover {
  text-decoration: underline;
}

.card-issue-excerpt {
  font-size: 12px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.issue-card-ft .card-issue-date {
  margin-top: auto;
  margin-bottom: 0;
}

.card-actions-row {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #f1ece4;
}

.card-action-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-brand, #1897B8);
  text-decoration: none;
}

.card-action-link:hover {
  text-decoration: underline;
}

.card-footer-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1ece4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-card-read-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  background: transparent;
  border: 1.5px solid var(--color-brand, #1897B8);
  color: var(--color-brand, #1897B8) !important;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-card-read-action:hover {
  background: var(--color-brand, #1897B8);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 151, 184, 0.25);
}

.btn-card-read-action svg {
  transition: transform 0.2s ease;
}

.btn-card-read-action:hover svg {
  transform: translateX(-3px);
}

html:not([dir="rtl"]) .btn-card-read-action:hover svg {
  transform: translateX(3px);
}

/* Filter Toolbar */
.issues-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-card);
  padding: 12px 18px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.filter-year-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.year-pill {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.year-pill:hover {
  border-color: var(--color-brand, #1897B8);
  color: var(--color-brand, #1897B8);
}

.year-pill.active {
  background: var(--color-brand, #1897B8);
  color: #ffffff;
  border-color: var(--color-brand, #1897B8);
  box-shadow: 0 2px 8px rgba(31, 162, 189, 0.3);
}

.filter-search-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 480px;
  justify-content: flex-end;
}

.issue-search-box {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 7px 12px;
  font-size: 12px;
  font-family: inherit;
  transition: all 0.15s;
}

.issue-search-box:focus {
  outline: none;
  border-color: var(--accent-brand);
  background: var(--bg-card);
  box-shadow: 0 0 0 2px rgba(31, 162, 189, 0.2);
}

.issue-sort-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 12px;
  font-family: inherit;
  color: #334155;
}

.archive-count-badge {
  background: rgba(31, 162, 189, 0.12);
  color: var(--accent-brand);
  border: 1px solid rgba(31, 162, 189, 0.25);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

/* Complete Archive Grid */
.issues-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 50px;
}

.archive-card {
  width: 100%;
  flex: auto;
}

.no-issues-found {
  grid-column: span 4;
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  color: #64748b;
}

.btn-reset-filters {
  background: var(--accent-brand);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}

/* Interactive Modal */
.issue-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.issue-modal-backdrop.active,
.issue-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.issue-modal-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 820px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
}

.issue-modal-backdrop.active .issue-modal-card,
.issue-modal-backdrop.is-open .issue-modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  inset-inline-end: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid #e2e8f0;
  font-size: 16px;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.15s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.modal-close-btn:hover {
  background: var(--color-brand, #1897B8);
  color: #ffffff;
  border-color: var(--color-brand, #1897B8);
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
}

.modal-cover-column {
  background: var(--bg-card);
  border-inline-start: 1px solid #e2e8f0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-cover-preview {
  width: auto;
  max-width: 250px;
  max-height: 380px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: -6px 10px 26px rgba(0, 0, 0, 0.2);
}

.modal-issue-badge {
  margin-top: 14px;
  background: var(--bg-card);
  color: #0d7b91;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.modal-details-column {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.modal-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-brand);
}

.modal-date {
  font-size: 11.5px;
  color: #94a3b8;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #262A33;
  line-height: 1.4;
  margin: 0 0 12px;
}

.modal-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 18px;
}

.modal-toc-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.modal-toc-box h4 {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

.modal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-toc-list li {
  font-size: 12px;
  color: #64748b;
  position: relative;
  padding-inline-start: 14px;
}

.modal-toc-list li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 0;
  color: var(--color-brand, #1897B8);
  font-weight: bold;
}

.modal-toc-list li strong {
  color: #1e293b;
}

.modal-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.btn-modal-primary {
  background: var(--color-brand, #1897B8);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-modal-primary:hover {
  background: #178fa6;
}

.btn-modal-secondary {
  background: #f1f5f9;
  color: #334155 !important;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 0.15s;
}

.btn-modal-secondary:hover {
  background: #e2e8f0;
}

/* Responsive Rules for Issues Page */
@media (max-width: 1150px) {
  .issues-lead-grid {
    grid-template-columns: 380px 1fr;
  }
  .issues-archive-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 820px) {
  .issues-page-title {
    font-size: 24px;
  }
  .issues-lead-grid {
    grid-template-columns: 1fr;
  }
  .lead-media-wrap {
    min-height: 280px;
    padding: 24px;
  }
  .lead-info-wrap {
    padding: 24px 20px;
  }
  .lead-headline {
    font-size: 20px;
  }
  .issues-filter-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .filter-search-group {
    max-width: 100%;
    flex-direction: column;
  }
  .issues-archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .modal-body-grid {
    grid-template-columns: 1fr;
  }
  .modal-actions-bar {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .issues-archive-grid {
    grid-template-columns: 1fr;
  }
  .filter-year-pills {
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .year-pill {
    white-space: nowrap;
    font-size: 11.5px;
    padding: 5px 12px;
  }
}


/* ===== Bookmark / save toast ===== */
/* ---- Bookmark / save toast ---- */
.altijara-bookmark-toast {
  position: fixed;
  z-index: 10050;
  top: 24px;
  inset-inline-start: 24px;
  inset-inline-end: auto;
  bottom: auto;
  transform: translateY(-10px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 14px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  background: #1a222d;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.altijara-bookmark-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.altijara-bookmark-toast__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-brand, #1897B8);
}

.altijara-bookmark-toast--success {
  border-inline-start: 3px solid var(--color-brand, #1897B8);
}

.altijara-bookmark-toast--removed {
  border-inline-start: 3px solid #94a3b8;
}

.altijara-bookmark-toast--removed .altijara-bookmark-toast__icon {
  color: #94a3b8;
}

.altijara-bookmark-toast__msg {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.altijara-bookmark-toast__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--color-brand, #1897B8);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.altijara-bookmark-toast__cta:hover {
  background: #147a96;
  color: #fff;
}

.altijara-saved-empty {
  margin: 12px 0 20px;
  color: #64748b;
  font-size: 15px;
}

.altijara-saved-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.altijara-saved-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-card, #fff7ef);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 6px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.altijara-saved-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.altijara-saved-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  background: #e2e8f0;
  margin-bottom: 12px;
}

.altijara-saved-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.altijara-saved-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.altijara-saved-card__kicker {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-brand, #1897b8);
}

.altijara-saved-card__title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
}

.altijara-saved-card__title a {
  color: #262a33;
  text-decoration: none;
  border-bottom: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.altijara-saved-card__title a:hover {
  color: var(--color-brand, #1897b8);
}

.altijara-saved-card__excerpt {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.altijara-saved-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.altijara-saved-card__date {
  font-size: 11.5px;
  font-weight: 600;
  color: #888;
}

@media (max-width: 900px) {
  .altijara-saved-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .altijara-saved-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== Header search status + sections drawer ===== */
.header-search-status {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted, #64748b);
}

.header-search-status--error {
  color: #b91c1c;
}

body.search-open {
  overflow: hidden;
}

/* ---- Sections drawer (أقسام المجلة) ---- */
.sections-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sections-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.sections-drawer {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: #FFF7EF;
  z-index: 1201;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 28px rgba(15, 23, 42, 0.18);
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  overflow: hidden;
}

html[dir="rtl"] .sections-drawer {
  box-shadow: -8px 0 28px rgba(15, 23, 42, 0.18);
  transform: translateX(105%);
}

.sections-drawer.is-open,
html[dir="rtl"] .sections-drawer.is-open {
  transform: translateX(0);
}

.sections-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #ebd9c8;
  flex-shrink: 0;
}

.sections-drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sections-drawer-logo-link {
  display: inline-flex;
  flex: 0 0 auto;
}

.sections-drawer-logo {
  display: block;
  width: auto;
  max-width: 132px;
  height: 32px;
  object-fit: contain;
}

.sections-drawer-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #262A33;
}

.sections-drawer-close {
  width: 36px;
  height: 36px;
  border: 1px solid #ebd9c8;
  border-radius: 6px;
  background: #ffffff;
  color: #262A33;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sections-drawer-close:hover {
  background: #F2DFCE;
  border-color: rgba(24, 151, 184, 0.35);
}

.sections-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 24px;
}

.sections-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sections-drawer-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  color: #262A33;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.15s ease, color 0.15s ease;
}

.sections-drawer-list a:hover,
.sections-drawer-list a.is-active {
  background: rgba(24, 151, 184, 0.08);
  color: var(--color-brand, #1897B8);
}

.sections-drawer-list a .drawer-caret {
  color: #94a3b8;
  font-size: 16px;
  font-weight: 400;
}

.sections-drawer-list > .menu-item-has-children > .drawer-item-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sections-drawer-list > .menu-item-has-children > .drawer-item-row > a {
  flex: 1;
  min-width: 0;
  border-bottom: none;
}

.sections-drawer-list .drawer-submenu-toggle {
  flex: 0 0 44px;
  width: 44px;
  border: 0;
  border-inline-start: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.sections-drawer-list .drawer-submenu-toggle:hover {
  background: rgba(24, 151, 184, 0.08);
  color: var(--color-brand, #1897B8);
}

.sections-drawer-list .drawer-submenu-toggle .drawer-caret {
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.sections-drawer-list > .menu-item-has-children.is-open > .drawer-item-row .drawer-submenu-toggle .drawer-caret {
  transform: rotate(-90deg);
}

.sections-drawer-list .sub-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(38, 42, 51, 0.03);
}

.sections-drawer-list > .menu-item-has-children.is-open > .sub-menu {
  display: block;
}

.sections-drawer-list .sub-menu a {
  padding-inline-start: 32px;
  font-size: 13.5px;
  font-weight: 600;
  color: #4b5563;
}

.sections-drawer-group-label {
  margin: 18px 18px 6px;
  font-size: 11px;
  font-weight: 800;
  color: #8892a0;
  letter-spacing: 0.3px;
}

.menu-toggle-btn.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle-btn.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.menu-toggle-btn span {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.sections-drawer-open {
  overflow: hidden;
}

/* Optional sticky header (theme option) */
body.altijara-sticky-header .main-header.is-sticky-header {
  position: sticky;
  top: 0;
  z-index: 1200;
}

/* Auth / subscribe notices (Phase 5) */
.auth-notice--error {
  background: rgba(185, 28, 28, 0.08) !important;
  border-color: rgba(185, 28, 28, 0.35) !important;
  color: #7f1d1d !important;
}
.static-plan-option.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.plan-soon {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #7a6a4f;
}
.subscribe-payments-note,
.subscribe-logged-as {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  font-size: 0.95rem;
}
.altijara-account-plan h2 {
  margin-top: 0;
  font-size: 1.15rem;
}
.altijara-account-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Video play control sits in the middle of the thumbnail, including RTL. */
.cat-video-play-badge,
.cat-gallery-badge {
  position: relative;
  place-self: center;
  align-self: center;
  justify-self: center;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  z-index: 2;
  pointer-events: none;
  transform: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
