/* AFB News — red / black / white RTL news theme */

:root {
  --afb-red: #e30613;
  --afb-red-dark: #b0050f;
  --afb-black: #111111;
  --afb-ink: #1a1a1a;
  --afb-muted: #5c5c5c;
  --afb-line: #e4e4e4;
  --afb-bg: #f4f4f4;
  --afb-white: #ffffff;
  --afb-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --afb-wrap: calc(100% - 40px);
  --afb-naskh: "Noto Naskh Arabic", Tahoma, "Segoe UI", sans-serif;
  --afb-nastaliq: "Noto Nastaliq Urdu", "Noto Naskh Arabic", Tahoma, serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body.afb-theme {
  margin: 0;
  direction: rtl;
  background: var(--afb-white);
  color: var(--afb-ink);
  font-family: var(--afb-naskh);
  font-size: 17px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--afb-red);
}

button,
input,
textarea {
  font: inherit;
}

h1, h2, h3, h4, .hero-feature__title, .cat-hero__title, .article-title, .site-title, .opinion-card__title, .cat-block__card-title, .cat-block__name {
  font-family: var(--afb-nastaliq);
  font-weight: 600;
  line-height: 1.7;
}

.afb-wrap {
  width: var(--afb-wrap);
  max-width: none;
  margin-inline: auto;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  top: -40px;
  right: 12px;
  z-index: 100;
  background: var(--afb-red);
  color: #fff;
  padding: 8px 14px;
}

.skip-link:focus {
  top: 8px;
  clip: auto;
  height: auto;
  width: auto;
}

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

.afb-badge {
  display: inline-block;
  background: var(--afb-red);
  color: #fff;
  font-size: 12px;
  font-family: var(--afb-naskh);
  padding: 2px 10px;
  line-height: 1.7;
}

.afb-badge--ghost {
  background: transparent;
  color: var(--afb-red);
  padding: 0;
}

.afb-date {
  color: var(--afb-muted);
  font-size: 13px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
}

.site-header-slot {
  display: block;
  width: 100%;
}

body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.elementor-widget-afb-site-header,
.elementor-widget-afb-site-header .elementor-widget-container {
  overflow: visible !important;
}

.header-top {
  background: var(--afb-black);
  color: #fff;
  font-size: 13px;
}

.header-top__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 16px;
}

.header-top__meta {
  margin: 0;
  opacity: 0.9;
}

.header-brand {
  background: #fff;
  border-bottom: 1px solid var(--afb-line);
}

.header-brand__inner {
  display: flex;
  align-items: center;
  min-height: 92px;
  gap: 12px;
}

.site-branding {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  text-align: start;
  flex: 1;
  min-width: 0;
}

.site-title--logo {
  margin: 0;
  font-size: 0;
  line-height: 0;
}

.site-logo,
.site-logo .custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.site-logo img,
.site-logo .custom-logo {
  max-height: 64px;
  width: auto;
  height: auto;
  display: block;
}

.site-title {
  margin: 0;
  font-size: 34px;
  letter-spacing: 0.08em;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
}

.site-title a {
  color: var(--afb-black);
}

.site-title span {
  color: var(--afb-red);
}

.site-description {
  margin: 2px 0 0;
  color: var(--afb-muted);
  font-size: 13px;
}

.nav-toggle,
.search-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--afb-line);
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--afb-black);
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.header-nav {
  background: var(--afb-red);
}

.afb-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 2px;
}

.afb-menu a {
  display: block;
  color: #fff;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
}

.afb-menu > li:hover,
.afb-menu > li.current-menu-item,
.afb-menu > li.current-menu-ancestor,
.afb-menu > li.current-menu-parent,
.afb-menu > li.current-category-ancestor,
.afb-menu > li.current_page_item {
  background: var(--afb-black);
}

body.afb-theme .header-nav .afb-menu > li.current-menu-item > a,
body.afb-theme .header-nav .afb-menu > li.current-menu-ancestor > a,
body.afb-theme .header-nav .afb-menu > li.current-menu-parent > a,
body.afb-theme .header-nav .afb-menu > li.current-category-ancestor > a,
body.afb-theme .header-nav .afb-menu > li.current_page_item > a,
body.afb-theme .header-nav .afb-menu a[aria-current="page"],
.afb-menu a:hover {
  background: var(--afb-black);
  color: #fff;
}

.afb-menu .sub-menu {
  display: none;
  position: absolute;
  background: var(--afb-black);
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 20;
}

.afb-menu > li {
  position: relative;
}

.afb-menu > li:hover > .sub-menu {
  display: block;
}

.header-search {
  border-top: 1px solid var(--afb-line);
  padding: 12px 0 16px;
  background: #fafafa;
}

.search-form {
  display: flex;
  gap: 0;
}

.search-field {
  flex: 1;
  border: 1px solid var(--afb-line);
  padding: 10px 14px;
  outline: none;
}

.search-field:focus {
  border-color: var(--afb-red);
}

.search-submit {
  background: var(--afb-red);
  color: #fff;
  border: 0;
  padding: 10px 18px;
  cursor: pointer;
}

/* Ticker */
.breaking-ticker {
  background: #fff;
  border-bottom: 1px solid var(--afb-line);
}

.breaking-ticker__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 44px;
  overflow: hidden;
}

.breaking-ticker__label {
  background: var(--afb-red);
  color: #fff;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.breaking-ticker__track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent);
}

.breaking-ticker__track {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0 16px;
  animation: ticker 42s linear infinite;
  width: max-content;
}

.breaking-ticker__track a {
  white-space: nowrap;
  font-weight: 600;
}

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

@keyframes ticker {
  from { transform: translateX(-40%); }
  to { transform: translateX(40%); }
}

/* Social icons */
.afb-social {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.afb-social a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.25);
}

.afb-ico {
  width: 14px;
  height: 14px;
  display: inline-block;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.afb-ico--search {
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M15.5 14h-.79l-.28-.27A6.5 6.5 0 1 0 14 15.5l.27.28v.79l5 5 1.5-1.5-5-5zM6.5 11a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M15.5 14h-.79l-.28-.27A6.5 6.5 0 1 0 14 15.5l.27.28v.79l5 5 1.5-1.5-5-5zM6.5 11a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0z'/></svg>");
}

.afb-ico--facebook { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M14 9h3V6h-3c-2.2 0-4 1.8-4 4v2H8v3h2v7h3v-7h2.6l.4-3H13v-2c0-.6.4-1 1-1z'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M14 9h3V6h-3c-2.2 0-4 1.8-4 4v2H8v3h2v7h3v-7h2.6l.4-3H13v-2c0-.6.4-1 1-1z'/></svg>"); }
.afb-ico--x { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 4l6.7 8.6L4.3 20H7l4.4-5.4L15.8 20H20l-7-9 6.2-7H16l-4 4.9L8.2 4H4z'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 4l6.7 8.6L4.3 20H7l4.4-5.4L15.8 20H20l-7-9 6.2-7H16l-4 4.9L8.2 4H4z'/></svg>"); }
.afb-ico--youtube { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M23 12s0-3.4-.4-4.9c-.3-1.1-1.1-1.9-2.2-2.2C18.8 4.4 12 4.4 12 4.4s-6.8 0-8.4.5c-1.1.3-1.9 1.1-2.2 2.2C1 8.6 1 12 1 12s0 3.4.4 4.9c.3 1.1 1.1 1.9 2.2 2.2 1.6.5 8.4.5 8.4.5s6.8 0 8.4-.5c1.1-.3 1.9-1.1 2.2-2.2.4-1.5.4-4.9.4-4.9zM10 15.5v-7l6 3.5-6 3.5z'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M23 12s0-3.4-.4-4.9c-.3-1.1-1.1-1.9-2.2-2.2C18.8 4.4 12 4.4 12 4.4s-6.8 0-8.4.5c-1.1.3-1.9 1.1-2.2 2.2C1 8.6 1 12 1 12s0 3.4.4 4.9c.3 1.1 1.1 1.9 2.2 2.2 1.6.5 8.4.5 8.4.5s6.8 0 8.4-.5c1.1-.3 1.9-1.1 2.2-2.2.4-1.5.4-4.9.4-4.9zM10 15.5v-7l6 3.5-6 3.5z'/></svg>"); }
.afb-ico--instagram { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7 3h10a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4zm10 2H7a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2zm-5 3.5A3.5 3.5 0 1 1 8.5 12 3.5 3.5 0 0 1 12 8.5zm5.2-.9a1 1 0 1 1-1-1 1 1 0 0 1 1 1z'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7 3h10a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4zm10 2H7a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2zm-5 3.5A3.5 3.5 0 1 1 8.5 12 3.5 3.5 0 0 1 12 8.5zm5.2-.9a1 1 0 1 1-1-1 1 1 0 0 1 1 1z'/></svg>"); }
.afb-ico--whatsapp { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 3a9 9 0 0 0-7.8 13.5L3 21l4.7-1.2A9 9 0 1 0 12 3zm5 12.2c-.2.6-1.2 1.1-1.6 1.1-.4 0-.8.2-2.7-.6-2.3-.9-3.8-3.2-3.9-3.4s-1-1.3-1-2.5.6-1.8.9-2 .5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2 0 .4-.1.6l-.4.5c-.2.2-.4.4-.2.7s.7 1.2 1.6 1.9c1.1.9 2 .1 2.2.3s.9 1.1 1 1.3z'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 3a9 9 0 0 0-7.8 13.5L3 21l4.7-1.2A9 9 0 1 0 12 3zm5 12.2c-.2.6-1.2 1.1-1.6 1.1-.4 0-.8.2-2.7-.6-2.3-.9-3.8-3.2-3.9-3.4s-1-1.3-1-2.5.6-1.8.9-2 .5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2 0 .4-.1.6l-.4.5c-.2.2-.4.4-.2.7s.7 1.2 1.6 1.9c1.1.9 2 .1 2.2.3s.9 1.1 1 1.3z'/></svg>"); }

/* Homepage */
.home-stack {
  padding: 24px 0 0;
  display: grid;
  gap: 36px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}

.hero .afb-section-head {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.hero--section .hero-feature__media {
  min-height: 240px;
}

.hero--section .hero-feature__title {
  font-size: clamp(22px, 2.4vw, 30px);
}

.cat-block {
  background: #fff;
  scroll-margin-top: 190px;
}

.cat-block__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  background: transparent;
  color: inherit;
  padding: 0;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--afb-black);
}

.cat-block__name {
  margin: 0;
  font-size: 26px;
  line-height: 1.5;
  position: relative;
  padding: 0 0 8px;
}

.cat-block__name::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 72px;
  height: 2px;
  background: var(--afb-red);
}

.cat-block__name a,
.cat-block__name {
  color: var(--afb-ink);
}

.cat-block__name a:hover {
  color: var(--afb-red);
}

.cat-block__more {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--afb-naskh);
  white-space: nowrap;
  color: var(--afb-red);
}

.cat-block__more:hover {
  color: var(--afb-red-dark);
}

.cat-block__body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.05fr) minmax(260px, 1fr);
  gap: 22px;
  align-items: start;
  border: 0;
  min-height: 0;
}

.cat-block__body:not(:has(.cat-block__mids)) {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.cat-block__body:not(:has(.cat-block__list)) {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.cat-block__body:not(:has(.cat-block__mids)):not(:has(.cat-block__list)) {
  grid-template-columns: 1fr;
}

.cat-block__card {
  min-width: 0;
}

.cat-block__card-media {
  display: block;
  overflow: hidden;
  background: var(--afb-bg);
}

.cat-block__card-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.cat-block__card-media:hover img {
  transform: scale(1.04);
}

.cat-block__card--lead .cat-block__card-media img {
  aspect-ratio: 16 / 10;
  min-height: 260px;
}

.cat-block__card--mid .cat-block__card-media img {
  aspect-ratio: 2 / 1;
}

.cat-block__card--small .cat-block__card-media img {
  aspect-ratio: 3 / 2;
}

.cat-block__card-title {
  margin: 10px 0 0;
  font-family: var(--afb-nastaliq);
  line-height: 1.7;
}

.cat-block__card--lead .cat-block__card-title {
  font-size: clamp(22px, 2vw, 28px);
}

.cat-block__card--mid .cat-block__card-title {
  font-size: 18px;
  margin-top: 8px;
}

.cat-block__card--small .cat-block__card-title {
  font-size: 15px;
  font-family: var(--afb-naskh);
  font-weight: 700;
  line-height: 1.7;
  margin-top: 8px;
}

.cat-block__card-title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-block__card-title a:hover {
  color: var(--afb-red);
}

.cat-block__mids {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.cat-block__mid-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cat-block__list {
  display: flex;
  flex-direction: column;
  background: transparent;
  min-width: 0;
}

.cat-block__item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--afb-line);
}

.cat-block__item:first-child {
  padding-top: 0;
}

.cat-block__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cat-block__item-title {
  margin: 0;
  font-size: 15px;
  font-family: var(--afb-naskh);
  font-weight: 700;
  line-height: 1.75;
}

.cat-block__item-title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-block__item-title a:hover {
  color: var(--afb-red);
}

.cat-block__item-media {
  display: block;
  width: 88px;
  height: 66px;
  overflow: hidden;
  background: var(--afb-bg);
  flex-shrink: 0;
}

.cat-block__item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-feature {
  display: grid;
  grid-template-rows: auto auto;
  background: #fff;
}

.hero-feature__media {
  display: block;
  overflow: hidden;
  height: clamp(210px, 26vw, 290px);
  background: var(--afb-black);
}

.hero-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-feature__media:hover img {
  transform: scale(1.03);
}

.hero-feature__body {
  padding: 12px 2px 0;
}

.hero-feature__title {
  font-size: clamp(22px, 2.4vw, 32px);
  margin: 0;
  line-height: 1.7;
}

.hero-feature__excerpt {
  display: none;
}

.hero-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.hero .list-item {
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
}

.hero .list-item:first-child {
  padding-top: 0;
}

.hero .list-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hero .list-item__media {
  width: 108px;
  height: 70px;
}

.hero .list-item__title {
  font-size: 16px;
  line-height: 1.7;
}

.list-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--afb-line);
}

.list-item__media {
  height: 78px;
  overflow: hidden;
  background: var(--afb-bg);
}

.list-item__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-family: var(--afb-nastaliq);
}

.afb-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--afb-black);
  margin-bottom: 18px;
}

.afb-section-title {
  margin: 0;
  font-size: 26px;
  position: relative;
  padding: 0 0 8px;
}

.afb-section-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 72px;
  height: 2px;
  background: var(--afb-red);
}

.afb-section-more {
  color: var(--afb-red);
  font-size: 14px;
  font-weight: 700;
}

.opinion-desk {
  background: #111;
  color: #fff;
  padding: 22px 22px 26px;
}

.opinion-desk .afb-section-head {
  border-bottom-color: #2f2f2f;
}

.opinion-desk .afb-section-title,
.opinion-desk .afb-section-title a {
  color: #fff;
}

.opinion-desk .afb-section-more {
  color: #fff;
}

.opinion-desk .afb-section-more:hover {
  color: var(--afb-red);
}

.opinion-desk__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.opinion-card {
  background: #1b1b1b;
  min-width: 0;
  border-top: 3px solid var(--afb-red);
}

.opinion-card__link {
  display: flex;
  flex-direction: column;
  min-height: 188px;
  padding: 18px 20px 16px;
  color: #fff;
}

.opinion-card__link:hover {
  color: #fff;
}

.opinion-card__mark {
  color: var(--afb-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 0.7;
  font-weight: 700;
  align-self: flex-start;
  unicode-bidi: isolate;
}

.opinion-card__title {
  margin: 10px 0 18px;
  font-size: clamp(20px, 2.1vw, 26px);
  color: #fff;
}

.opinion-card__link:hover .opinion-card__title {
  color: var(--afb-red);
}

.opinion-card__byline {
  margin-top: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  color: #cfcfcf;
  font-size: 14px;
}

.opinion-card__initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--afb-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.opinion-card__author {
  font-weight: 700;
  color: #fff;
}

.opinion-card .afb-date {
  color: #9a9a9a;
}

.opinion-desk--archive {
  background: transparent;
  color: inherit;
  padding: 0;
}

.card-grid {
  display: grid;
  gap: 20px;
}

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

.post-card {
  background: #fff;
}

.post-card__media {
  display: block;
  overflow: hidden;
  background: var(--afb-bg);
}

.post-card__media img {
  aspect-ratio: 16 / 10;
  transition: transform 0.4s ease;
}

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

.post-card__body {
  padding: 10px 0 0;
}

.post-card__title {
  margin: 6px 0 8px;
  font-size: 19px;
}

.post-card__excerpt {
  color: var(--afb-muted);
  font-size: 15px;
  margin: 0 0 8px;
}

/* Video desk */
.video-desk {
  background: var(--afb-black);
  color: #fff;
  padding: 22px 22px 26px;
}

.video-desk .afb-section-head {
  border-bottom-color: #333;
}

.video-desk .afb-section-title,
.video-desk .afb-section-more,
.video-desk a {
  color: #fff;
}

.video-desk a:hover {
  color: #ffd6d8;
}

.video-desk__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.video-lead__title {
  margin: 12px 0 0;
  font-size: 22px;
}

.video-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.video-rail__title {
  margin: 8px 0 0;
  font-size: 15px;
}

.afb-embed {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

.afb-embed iframe,
.afb-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #222;
}

.video-thumb img {
  aspect-ratio: 16 / 9;
}

.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--afb-red);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.play-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent #fff;
}

.play-btn--sm {
  width: 36px;
  height: 36px;
}

.play-btn--sm::after {
  border-width: 6px 0 6px 10px;
}

.cat-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cat-column__list .list-item:first-child {
  padding-top: 0;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.city-col {
  background: #fff;
  min-width: 0;
}

.city-col__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  background: var(--afb-red);
  color: #fff !important;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 20px;
  font-family: var(--afb-naskh);
}

.city-col__head:hover {
  background: var(--afb-red-dark);
  color: #fff !important;
}

.city-col__pin {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: #fff;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 14.5 9 2.5 2.5 0 0 1 12 11.5z'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 14.5 9 2.5 2.5 0 0 1 12 11.5z'/></svg>") center / contain no-repeat;
}

.city-lead {
  padding-top: 8px;
}

.city-lead__media {
  display: block;
  overflow: hidden;
  background: var(--afb-black);
}

.city-lead__media img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.city-lead:hover .city-lead__media img {
  transform: scale(1.03);
}

.city-lead__title {
  margin: 10px 0 8px;
  font-size: 18px;
  padding: 0 2px;
  font-family: var(--afb-nastaliq);
  line-height: 1.7;
}

.city-lead__title a {
  color: var(--afb-black);
}

.city-list {
  border-top: 1px solid var(--afb-line);
}

.city-item {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--afb-line);
}

.city-item:last-child {
  border-bottom: 0;
}

.city-item__media {
  width: 72px;
  height: 54px;
  overflow: hidden;
  background: var(--afb-bg);
}

.city-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.city-item__title {
  margin: 0;
  font-size: 15px;
  font-family: var(--afb-nastaliq);
  line-height: 1.7;
}

.city-item__title a {
  color: #1f4f8a;
}

.city-item__title a:hover {
  color: var(--afb-red);
}

/* Category page — Geo style */
.category-page,
.archive-layout,
.article-layout,
.page-layout,
.video-single {
  padding: 22px 0 48px;
}

.cat-page-head {
  margin-bottom: 16px;
}

.cat-page-title,
.archive-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  display: inline-block;
  border-bottom: 3px solid var(--afb-red);
  padding-bottom: 4px;
  line-height: 1.5;
}

.cat-page-desc {
  margin: 8px 0 0;
  color: var(--afb-muted);
}

.cat-hero {
  margin-bottom: 28px;
}

.cat-hero__media {
  display: block;
  overflow: hidden;
  background: var(--afb-bg);
}

.cat-hero__media img {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 440px;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.cat-hero__media:hover img {
  transform: scale(1.03);
}

.cat-hero__body {
  padding: 14px 0 0;
}

.cat-hero__title {
  display: block;
  font-size: clamp(24px, 2.8vw, 36px);
  margin: 0 0 10px;
  color: inherit;
  line-height: 1.7;
}

.cat-hero__title a:hover {
  color: var(--afb-red);
}

.cat-hero__excerpt {
  color: var(--afb-muted);
  font-size: 17px;
  line-height: 2;
  max-width: 920px;
  margin: 0;
}

.cat-more {
  margin-top: 8px;
}

.cat-more .afb-badge,
.cat-more .afb-date,
.cat-more .post-card__excerpt {
  display: none;
}

.cat-more .post-card__title {
  font-size: 18px;
  margin: 10px 0 0;
}

.cat-more .post-card__media img {
  aspect-ratio: 16 / 10;
}

.afb-breadcrumbs {
  font-size: 13px;
  color: var(--afb-muted);
  margin-bottom: 8px;
}

.afb-breadcrumbs .sep {
  margin: 0 6px;
  opacity: 0.6;
}

/* Article */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 320px;
  gap: 36px;
}

.article-title {
  font-size: clamp(28px, 3.4vw, 42px);
  margin: 8px 0 10px;
}

.article-meta {
  display: flex;
  gap: 14px;
  color: var(--afb-muted);
  margin-bottom: 12px;
}

.article-hero {
  margin: 0 0 22px;
}

.article-hero figcaption {
  color: var(--afb-muted);
  font-size: 13px;
  margin-top: 8px;
}

.article-content {
  font-size: 19px;
}

.article-content p {
  margin: 0 0 1.1em;
}

.article-content h2,
.article-content h3 {
  margin: 1.4em 0 0.6em;
}

.article-content a {
  color: var(--afb-red);
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.1em;
  padding-inline-start: 1.4em;
}

.article-content li {
  margin: 0 0 0.4em;
}

.article-content h2 {
  border-bottom: 2px solid var(--afb-red);
  padding-bottom: 6px;
}

.policy-signoff {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid var(--afb-line);
  font-family: Arial, Helvetica, sans-serif;
}

.contact-card {
  display: grid;
  gap: 16px;
  margin: 28px 0 8px;
}

.contact-card__item {
  padding: 18px 20px;
  border: 1px solid var(--afb-line);
  border-right: 4px solid var(--afb-red);
  background: #fff;
}

.article-content .contact-card__label,
.contact-card__label {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--afb-naskh);
  color: var(--afb-red);
  line-height: 1.4;
}

.contact-card__value {
  margin: 0;
  font-size: 20px;
  line-height: 1.8;
}

.contact-card__value--ur {
  margin-top: 4px;
  font-size: 18px;
}

.footer-contact {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.9;
  color: #cfcfcf;
}

.footer-contact li {
  margin: 0 0 8px;
}

.footer-contact span {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

.footer-contact a {
  color: #cfcfcf;
}

.footer-contact a:hover {
  color: #fff;
}

.article-tags a {
  display: inline-block;
  border: 1px solid var(--afb-line);
  padding: 2px 10px;
  margin: 0 0 8px 8px;
  font-size: 13px;
}

.afb-share {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  margin: 8px 0 16px;
}

.afb-share a {
  border: 1px solid var(--afb-line);
  padding: 2px 10px;
}

.related-wrap {
  padding-bottom: 48px;
}

.site-sidebar .widget {
  margin-bottom: 28px;
}

.widget-title {
  font-size: 22px;
  margin: 0 0 12px;
  border-bottom: 2px solid var(--afb-black);
  padding-bottom: 8px;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 320px;
  gap: 36px;
}

.search-list .list-item {
  padding: 14px 0;
}

/* Footer */
.site-footer {
  background: var(--afb-black);
  color: #cfcfcf;
  margin: 0;
  border-top: 4px solid var(--afb-red);
  width: 100%;
}

.elementor-widget-afb-site-footer .site-footer {
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 42px 0 32px;
  align-items: start;
}

.footer-logo {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 28px;
  color: #fff;
  margin: 0 0 16px;
}

.footer-logo a {
  color: #fff;
  display: inline-block;
  line-height: 0;
}

.footer-logo span { color: var(--afb-red); }

.footer-logo--img {
  display: inline-block;
  background: #fff;
  padding: 8px 12px;
  line-height: 0;
}

.footer-logo--img img,
.footer-logo--img .custom-logo {
  max-height: 52px;
  width: auto;
  height: auto;
  display: block;
}

.footer-about {
  max-width: 360px;
  line-height: 2;
  margin: 0 0 16px;
}

.footer-widgets {
  display: contents;
}

.footer-menu,
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu a,
.footer-col a {
  color: #cfcfcf;
  display: block;
  padding: 6px 0;
}

.footer-menu a:hover,
.footer-col a:hover {
  color: #fff;
}

.site-footer .widget-title {
  color: #fff;
  border-bottom: 2px solid var(--afb-red);
  padding-bottom: 8px;
  margin: 0 0 12px;
  font-size: 18px;
}

.afb-social--footer a {
  background: #1f1f1f;
  color: #fff;
  border-color: #333;
}

.afb-social--footer a:hover {
  background: var(--afb-red);
  border-color: var(--afb-red);
}

.footer-base {
  border-top: 0;
  font-size: 13px;
  background: transparent;
}

.footer-base__inner {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.footer-base p { margin: 0; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
}

.footer-legal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.footer-legal a {
  color: #cfcfcf;
  font-size: 13px;
}

.footer-legal a:hover {
  color: #fff;
}

.footer-base__brand {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0;
}

.footer-logo--compact {
  padding: 4px 8px;
}

.footer-logo--compact img,
.footer-logo--compact .custom-logo {
  max-height: 28px;
}

.afb-empty,
.error-404 {
  text-align: center;
  padding: 48px 0 72px;
}

.error-code {
  font-size: 72px;
  font-weight: 800;
  color: var(--afb-red);
  margin: 0;
  font-family: Arial, sans-serif;
}

.btn-home {
  display: inline-block;
  background: var(--afb-red);
  color: #fff !important;
  padding: 8px 20px;
  margin-top: 8px;
}

.nav-pagination,
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 0;
}

.page-numbers,
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--afb-line);
  padding: 0 10px;
}

.page-numbers.current,
.nav-links .current {
  background: var(--afb-red);
  color: #fff;
  border-color: var(--afb-red);
}

.comments-area {
  margin-top: 36px;
  border-top: 1px solid var(--afb-line);
  padding-top: 20px;
}

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

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--afb-line);
  padding: 10px;
}

.comment-form .submit {
  background: var(--afb-red);
  color: #fff;
  border: 0;
  padding: 8px 18px;
  cursor: pointer;
}

/* Mobile / tablet */
@media (max-width: 980px) {
  :root {
    --afb-wrap: calc(100% - 28px);
  }

  .hero,
  .article-layout,
  .archive-layout {
    grid-template-columns: 1fr;
  }

  .video-desk__grid,
  .cat-columns,
  .city-grid,
  .dual-grid,
  .footer-grid,
  .cat-block__body,
  .card-grid--4,
  .card-grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .cat-block__list {
    grid-column: 1 / -1;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
  }

  body.nav-open .header-nav {
    display: block;
  }

  body.nav-open .nav-toggle {
    background: var(--afb-red);
    border-color: var(--afb-red);
  }

  body.nav-open .nav-toggle__bars,
  body.nav-open .nav-toggle__bars::before,
  body.nav-open .nav-toggle__bars::after {
    background: #fff;
  }

  .afb-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .afb-menu a {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  .afb-menu .sub-menu {
    position: static;
    display: block;
    background: #8f0410;
  }

  .home-stack--elementor .elementor-container:has(.elementor-widget-afb-category-feature) {
    flex-wrap: wrap;
  }

  .home-stack--elementor .elementor-container:has(.elementor-widget-afb-category-feature) > .elementor-column {
    width: 50% !important;
  }

  .cat-block,
  .opinion-desk,
  .article-title,
  .page-header,
  .afb-section-head {
    scroll-margin-top: 180px;
  }
}

@media (min-width: 981px) {
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --afb-wrap: calc(100% - 20px);
  }

  .hero,
  .card-grid--4,
  .card-grid--3,
  .video-rail,
  .footer-grid,
  .opinion-desk__grid,
  .cat-block__body,
  .cat-columns,
  .city-grid,
  .dual-grid,
  .article-layout,
  .archive-layout,
  .video-desk__grid {
    grid-template-columns: 1fr;
  }

  .header-brand__inner {
    min-height: 64px;
    gap: 8px;
  }

  .site-title { font-size: 26px; }

  .site-logo img,
  .site-logo .custom-logo {
    max-height: 40px;
  }

  .site-description {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .breaking-ticker {
    overflow: hidden;
  }

  .breaking-ticker__inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .breaking-ticker__track-wrap {
    min-width: 0;
    overflow-x: auto;
    mask-image: none;
    -webkit-overflow-scrolling: touch;
  }

  .breaking-ticker__track {
    animation: none;
    transform: none;
  }

  .hero-feature__media {
    height: 210px;
  }

  .hero-feature__title {
    font-size: 22px;
  }

  .hero-feature__excerpt {
    font-size: 15px;
  }

  .list-item {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .cat-block__card--lead .cat-block__card-media img {
    min-height: 200px;
  }

  .cat-block__card--lead .cat-block__card-title {
    font-size: 20px;
  }

  .cat-block__mid-pair {
    grid-template-columns: 1fr;
  }

  .cat-block__list {
    grid-column: auto;
  }

  .cat-block__item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
  }

  .cat-block__item-title {
    font-size: 14px;
  }

  .cat-block__item-media {
    width: 72px;
    height: 54px;
  }

  .opinion-desk {
    padding: 16px 14px 18px;
  }

  .home-stack,
  .home-stack--elementor {
    padding-top: 16px;
  }

  .home-stack--elementor > .elementor {
    gap: 22px;
  }

  .home-stack--elementor .elementor-container:has(.elementor-widget-afb-category-feature) > .elementor-column {
    width: 100% !important;
  }

  .article-title {
    font-size: clamp(22px, 7vw, 32px);
  }

  .header-top__inner {
    min-height: 32px;
    gap: 8px;
  }

  .header-top__meta {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .search-form {
    width: 100%;
  }

  .footer-logo--img img,
  .footer-logo--img .custom-logo {
    max-height: 40px;
  }
}

/* Elementor */
.home-stack--elementor {
  display: block;
  padding: 24px 0 0;
}

.home-stack--elementor > .elementor {
  display: grid;
  gap: 36px;
}

.home-stack--elementor .elementor-section,
.home-stack--elementor .elementor-widget {
  margin-bottom: 0;
}

.home-stack--elementor .elementor-column-wrap,
.home-stack--elementor .elementor-widget-wrap {
  padding: 0;
}

.home-stack--elementor .elementor-container:has(.elementor-widget-afb-category-feature) {
  gap: 18px;
  max-width: var(--afb-wrap);
  width: var(--afb-wrap);
  margin-inline: auto;
  padding-bottom: 0;
}

.home-stack--elementor .elementor-widget-afb-category-feature .city-col {
  height: 100%;
}

.afb-elementor-chrome {
  width: 100%;
  margin: 0;
  padding: 0;
}

.afb-elementor-chrome .elementor-section,
.afb-elementor-chrome .elementor-widget,
.afb-elementor-chrome .elementor-widget-container {
  margin: 0;
  padding: 0;
}

.afb-elementor-chrome .elementor-column-wrap,
.afb-elementor-chrome .elementor-widget-wrap {
  padding: 0;
}

.afb-elementor-chrome .elementor-section.elementor-section-boxed > .elementor-container,
.afb-elementor-chrome .elementor-section.elementor-section-full_width > .elementor-container,
.afb-elementor-chrome .e-con-boxed > .e-con-inner {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

body.afb-theme .elementor-section.elementor-section-boxed > .elementor-container,
body.afb-theme .elementor-section.elementor-section-full_width > .elementor-container,
body.afb-theme .e-con-boxed > .e-con-inner {
  max-width: none !important;
  width: var(--afb-wrap);
  margin-inline: auto;
}

body.afb-theme {
  --container-max-width: 100%;
}

.elementor-editor-active .site-main,
.elementor-editor-preview .site-main {
  min-height: 40vh;
}

/* MonsterInsights "Verified" badge is injected after the footer by the plugin. */
img[src*="monsterinsights-badge"],
img[alt="Verified by MonsterInsights"],
a[href*="utm_campaign=verifiedbyMonsterInsights"],
a[href*="monsterinsights.com"][href*="verifiedBadge"],
body > div:last-of-type:has(> a[href*="verifiedbyMonsterInsights"]) {
  display: none !important;
}
