/* PakishNews 2026 modern polish overrides (Arabic RTL) */
:root {
  --pn-space-1: 8px;
  --pn-space-2: 16px;
  --pn-space-3: 24px;
  --pn-space-4: 32px;
  --pn-radius-md: 10px;
  --pn-radius-lg: 14px;
  --pn-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --pn-shadow-md: 0 10px 26px rgba(15, 23, 42, 0.14);
  --pn-focus: #0e7490;
}

/* Typography (Gold Standard Arabic) */
html[lang="ar"],
html[lang="ar"] body,
.post-content,
.post-content p,
.post-content h2,
.post-content h3,
.post-header__title,
.post-header__excerpt,
.card__title,
.top-story-card__title,
.hero-bento__title,
.hero-sub__title,
.gold-widget__title,
.main-nav__link {
  font-family: "Noto Sans Arabic", "Noto Sans Urdu", "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

.site-header {
  backdrop-filter: saturate(1.1) blur(6px);
}

.header-top__inner {
  gap: var(--pn-space-2);
  min-height: 68px;
}

.site-logo__image {
  height: 44px;
}

.site-logo__text {
  letter-spacing: -0.2px;
  text-wrap: balance;
}

.main-nav__list {
  gap: 2px;
  padding: 0 var(--pn-space-1);
}

.main-nav__link {
  border-radius: 8px 8px 0 0;
  padding: 10px 14px;
}

.card,
.top-story-card,
.hero-sub__card,
.gold-widget,
.top-stories {
  border-radius: var(--pn-radius-md);
}

.card,
.hero-sub__card,
.gold-widget {
  box-shadow: var(--pn-shadow-sm);
}

.card:hover,
.hero-sub__card:hover,
.gold-widget:hover {
  box-shadow: var(--pn-shadow-md);
  transform: translateY(-2px);
}

.card__image,
.hero-sub__image,
.top-story-card__image {
  border-radius: 10px;
  overflow: hidden;
}

.card__title,
.top-story-card__title,
.hero-sub__title {
  text-wrap: balance;
}

.card__excerpt,
.hero-sub__excerpt,
.gold-widget__desc {
  color: #334155;
}

.article-audio {
  border: 1px solid #cbd5e1;
  border-radius: var(--pn-radius-lg);
  padding: var(--pn-space-2);
  background: #f8fafc;
  box-shadow: var(--pn-shadow-sm);
}

.article-audio__logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.article-audio__play,
.article-audio__download {
  min-height: 40px;
  border-radius: 10px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--pn-focus);
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .header-top__inner {
    min-height: 62px;
  }

  .site-logo__image {
    height: 40px;
  }
}

/* Arabic Article FAQ + AI chat polish (2026, RTL-first) */
.article-faqs {
  margin-top: var(--pn-space-3);
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--pn-shadow-sm);
}

.article-faqs > h2 {
  margin-bottom: 14px;
  letter-spacing: -0.15px;
}

.article-faqs .faq-item {
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.article-faqs .faq-item + .faq-item {
  margin-top: 10px;
}

.article-faqs .faq-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.article-faqs .faq-item[open] {
  border-color: rgba(0, 90, 67, 0.35);
  box-shadow: 0 10px 24px rgba(0, 90, 67, 0.14);
}

.article-faqs .faq-question {
  padding: 14px 16px;
  font-weight: 700;
  line-height: 1.8;
}

.article-faqs .faq-answer {
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.04) 0%, rgba(14, 116, 144, 0.01) 100%);
  border-top: 1px solid #e5edf5;
}

.article-faqs .faq-answer p {
  margin: 0;
  padding: 12px 16px 14px;
}

.article-faqs .faq-icon {
  display: none !important;
}

.article-chatbar {
  border: 1px solid #d8e3ee;
  border-radius: 20px;
  background: linear-gradient(140deg, #ffffff 0%, #f8fafc 55%, #f0f9ff 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.article-chatbar__form {
  border-radius: 999px;
  border-width: 2px;
}

.article-chatbar__btn {
  border-radius: 999px;
  min-width: 44px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-chatbar__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 90, 67, 0.2);
}

.pakish-chat-sidebar__header {
  background: linear-gradient(135deg, #005a43 0%, #004a38 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.pakish-chat__faq-btn {
  border-radius: 999px;
  border: 1.5px solid #d8e3ee;
  background: #fff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.07);
  transition: all 0.22s ease;
}

.pakish-chat__faq-btn:hover {
  background: #005a43;
  border-color: #005a43;
  color: #fff;
  transform: translateY(-1px);
}

.pakish-chat__msg {
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

[dir="rtl"] .pakish-chat__msg--bot {
  border-bottom-left-radius: 6px;
}

[dir="rtl"] .pakish-chat__msg--user {
  border-bottom-right-radius: 6px;
}

@media (max-width: 768px) {
  .article-faqs {
    border-radius: 14px;
    padding: 14px;
  }

  .article-chatbar {
    border-radius: 16px;
  }
}

/* BBC Arabic-style homepage top stories */
.gold-home .top-stories {
  border-inline-start: 0;
  padding: 14px;
  background: #fff;
}

.gold-home .top-stories .section-title {
  font-size: 1rem;
  margin-bottom: 10px;
}

.gold-home .top-story-card {
  padding: 8px 0;
}

.gold-home .category-grid {
  gap: 14px;
}

.gold-home .card--featured {
  grid-column: 1 / -1;
}

.gold-home .card__content {
  padding: 12px 12px 14px;
}

.gold-home .card__title,
.gold-home .top-story-card__title {
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gold-home .card__excerpt {
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gold-home .gold-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

@media (max-width: 1100px) {
  .gold-home .gold-sidebar {
    position: static;
  }
}

/* 2026 Post Page Critical Fixes — AR */
.post-content hr {
  display: none !important;
}

.post-content h2 {
  border-top: 0 !important;
  padding-top: 0 !important;
}

.article-audio {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 16px !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 16px !important;
  background: var(--color-bg) !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09) !important;
}

.article-audio__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-audio__logo {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #eef6f3 0%, #e6f4ef 100%);
}

.article-audio__logo img {
  width: 70% !important;
  height: 70% !important;
  object-fit: contain;
}

.article-audio__label {
  font-size: 1rem !important;
  font-weight: 800 !important;
}

.article-audio__hint {
  font-size: 0.84rem !important;
  color: var(--color-text-light) !important;
}

.article-audio__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-audio__play,
.article-audio__download {
  min-height: 40px;
  padding: 8px 14px !important;
  border-radius: 999px !important;
}

.article-faqs,
.article-faqs .faq-item,
.article-faqs .faq-question,
.article-faqs .faq-answer {
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
  border-color: var(--color-border) !important;
}

.gold-post-widgets--post .container {
  display: block !important;
  max-width: min(100%, 760px) !important;
}

.gold-post-widgets--post .gold-sidebar--inline {
  max-width: 100% !important;
  margin: 0 auto !important;
  position: static !important;
}
