/* Kech News editorial layer. Publisher handles markup, grid and interactions. */
body.kech-editorial {
  --kech-ink: #111820;
  --kech-nav: #14202b;
  --kech-red: #e52532;
  --kech-red-dark: #bd1622;
  --kech-muted: #68737d;
  --kech-line: #e5e9ed;
  --publisher-primary-color: var(--kech-red);
  color: var(--kech-ink);
  background: #fff;
  font-family: "Tajawal", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.kech-editorial :is(h1, h2, h3, h4, h5, h6, .title, .section-heading, .main-menu > li > a) {
  font-family: "Cairo", "Tajawal", Tahoma, sans-serif;
  letter-spacing: 0;
}

body.kech-editorial :is(.post-meta, .post-meta a, .listing .post-summary) {
  color: var(--kech-muted);
}

body.kech-editorial a { transition: color .18s ease, background-color .18s ease; }
body.kech-editorial a:hover { color: var(--kech-red-dark); }

/* Masthead: the WordPress logo remains managed by Publisher. */
body.kech-editorial .site-header { background: #fff; }
body.kech-editorial .site-header .topbar {
  background: var(--kech-ink);
  color: #d6dce1;
  border: 0;
  font-size: 12px;
}
body.kech-editorial .site-header .topbar a { color: #e3e7eb; }
body.kech-editorial .site-header .topbar a:hover { color: #fff; }
body.kech-editorial .site-header .header-inner {
  padding-block: 16px;
  background: #fff;
}
body.kech-editorial .site-header .site-branding .logo img {
  max-height: 126px;
  width: auto;
  object-fit: contain;
}

/* Navigation. Do not override Publisher's responsive/off-canvas mechanics. */
body.kech-editorial .site-header .main-menu-wrapper,
body.kech-editorial .site-header .main-menu-inner {
  background: var(--kech-nav);
  border: 0;
}
body.kech-editorial .site-header .main-menu.menu > li { margin: 0; }
body.kech-editorial .site-header .main-menu.menu > li > a {
  color: #f5f7f9;
  font-size: 14px;
  font-weight: 700;
  line-height: 51px;
  padding-inline: 15px;
}
body.kech-editorial .site-header .main-menu.menu > li > a:before {
  height: 3px;
  background: var(--kech-red);
}
body.kech-editorial .site-header .main-menu.menu > li:hover > a,
body.kech-editorial .site-header .main-menu.menu > li.current-menu-item > a,
body.kech-editorial .site-header .main-menu.menu > li.current-menu-parent > a {
  color: #fff;
  background: rgba(255,255,255,.07);
}
body.kech-editorial .site-header .menu-action-buttons,
body.kech-editorial .site-header .search-container .search-handler {
  color: #fff;
}
body.kech-editorial .site-header .main-menu .sub-menu {
  border-top: 3px solid var(--kech-red);
  box-shadow: 0 10px 25px rgba(17,24,32,.12);
}

/* Slider: retain its original dimensions, controls and link behaviour. */
body.kech-editorial .bs-slider .bs-slider-item .item-content,
body.kech-editorial .bs-slider .bs-slider-item .img-cont {
  border-radius: 8px;
}
body.kech-editorial .bs-slider .bs-slider-item .item-content { overflow: hidden; }
body.kech-editorial .bs-slider .bs-slider-item .content-container {
  background: linear-gradient(0deg, rgba(8,16,23,.88), rgba(8,16,23,.42) 63%, transparent);
}
body.kech-editorial .bs-slider .bs-slider-item .title {
  font-weight: 800;
  line-height: 1.45;
  text-shadow: 0 1px 3px rgba(0,0,0,.24);
}
body.kech-editorial .bs-slider .bs-slider-item .title a { color: #fff; }
body.kech-editorial .bs-slider .better-control-nav a,
body.kech-editorial .bs-slider .flex-control-paging a { transition: background .2s ease; }
body.kech-editorial .bs-slider .better-control-nav .better-active a,
body.kech-editorial .bs-slider .flex-control-paging a.flex-active { background: var(--kech-red); }

/* Shared editorial rhythm for Publisher blocks. */
body.kech-editorial .bs-listing,
body.kech-editorial .bs-shortcode { margin-bottom: 25px; }
body.kech-editorial .section-heading {
  color: var(--kech-ink);
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--kech-line) !important;
  padding: 0 0 9px !important;
  margin-bottom: 17px;
  min-height: 0;
  line-height: 1.6;
}
body.kech-editorial .section-heading::before,
body.kech-editorial .section-heading::after,
body.kech-editorial .section-heading .h-text::before,
body.kech-editorial .section-heading .h-text::after {
  content: none !important;
  display: none !important;
}
body.kech-editorial .section-heading .h-text,
body.kech-editorial .section-heading > a,
body.kech-editorial .section-heading > .main-link {
  font-family: "Cairo", "Tajawal", Tahoma, sans-serif !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
}
body.kech-editorial .section-heading .h-text {
  border-inline-start: 3px solid var(--kech-red) !important;
  padding-inline-start: 9px !important;
}
body.kech-editorial .listing .title {
  color: var(--kech-ink);
  font-weight: 700;
  line-height: 1.55;
}
body.kech-editorial .listing-item-grid .title { font-size: 15px; }
body.kech-editorial .listing-item-thumbnail .title { font-size: 13px; font-weight: 600; }
body.kech-editorial .listing .title a:hover { color: var(--kech-red-dark); }
body.kech-editorial .listing-item .featured { overflow: hidden; border-radius: 8px; }
body.kech-editorial .listing-item .img-holder {
  border-radius: 8px;
  transition: transform .22s ease;
}
body.kech-editorial .listing-item:hover .featured .img-holder { transform: scale(1.025); }
body.kech-editorial .listing-item-thumbnail .featured,
body.kech-editorial .listing-item-thumbnail .img-holder { border-radius: 5px; }
body.kech-editorial .listing-item-thumbnail .item-inner,
body.kech-editorial .listing-item-text .item-inner { border-color: var(--kech-line); }
body.kech-editorial .listing-item-thumbnail .title,
body.kech-editorial .listing-item-text .title { line-height: 1.55; }
body.kech-editorial .listing-item .post-meta { font-size: 12px; }
body.kech-editorial .term-badges.floated a {
  background: var(--kech-red);
  border-radius: 3px;
  color: #fff;
}
body.kech-editorial .term-badges.floated a:hover { background: var(--kech-red-dark); color: #fff; }

/* The homepage script finds the Kech TV row. Extra class name works as a fallback. */
body.kech-editorial .kech-video-band {
  background: var(--kech-nav) !important;
  color: #f5f7f9;
  padding-block: 27px 30px;
}
body.kech-editorial .kech-video-band > .wpb_column,
body.kech-editorial .kech-video-band > .vc_column_container,
body.kech-editorial .kech-video-band > .wpb_column > .vc_column-inner {
  background-color: transparent !important;
}
body.kech-editorial .kech-video-band .section-heading { border-color: rgba(255,255,255,.23); }
body.kech-editorial .kech-video-band .section-heading .h-text,
body.kech-editorial .kech-video-band .listing .title,
body.kech-editorial .kech-video-band .listing .title a { color: #fff; }
body.kech-editorial .kech-video-band .listing .title a:hover { color: #ff858d; }
body.kech-editorial .kech-video-band .post-meta,
body.kech-editorial .kech-video-band .post-meta a { color: #c9d2da; }

/* The reels shortcode keeps the editorial width while its background spans the viewport. */
body.kech-editorial .almanbar-reels-widget {
  position: relative;
  isolation: isolate;
  overflow: visible !important;
  background: transparent !important;
}
body.kech-editorial .almanbar-reels-widget::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--kech-nav);
  pointer-events: none;
}

/* Two featured homepage categories. */
body.kech-editorial .bs-listing.kech-opinion-section {
  padding: 17px;
  border-top: 3px solid var(--kech-red);
  border-radius: 7px;
  background: #f5f7f9;
}
body.kech-editorial .kech-opinion-section .section-heading {
  border-bottom-color: #d6dce1 !important;
}
body.kech-editorial .kech-opinion-section .section-heading .h-text {
  color: var(--kech-ink) !important;
  border-inline-start-color: var(--kech-red) !important;
}
body.kech-editorial .kech-opinion-section .listing-item-grid .item-inner {
  padding-bottom: 8px;
  border-bottom: 1px solid #dce2e7;
}
body.kech-editorial .kech-opinion-section .listing .title a:hover {
  color: var(--kech-red-dark);
}

body.kech-editorial .bs-listing.kech-sports-section {
  padding: 19px;
  border-radius: 7px;
  background: var(--kech-nav);
  color: #f5f7f9;
}
body.kech-editorial .kech-sports-section .section-heading {
  border-bottom-color: rgba(255,255,255,.25) !important;
}
body.kech-editorial .kech-sports-section .section-heading .h-text {
  color: #fff !important;
  border-inline-start-color: var(--kech-red) !important;
}
body.kech-editorial .kech-sports-section .listing .title,
body.kech-editorial .kech-sports-section .listing .title a { color: #fff; }
body.kech-editorial .kech-sports-section .listing .title a:hover { color: #ff858d; }
body.kech-editorial .kech-sports-section .listing-item .post-meta,
body.kech-editorial .kech-sports-section .listing-item .post-meta a { color: #c9d2da; }
body.kech-editorial .kech-sports-section .listing-item-thumbnail .item-inner,
body.kech-editorial .kech-sports-section .listing-item-text .item-inner {
  border-color: rgba(255,255,255,.18);
}

/* WP-Polls output inside the user's poll card. Keep its form and AJAX hooks intact. */
body.kech-editorial .minbar-poll-card,
body.kech-editorial .minbar-poll-card * { box-sizing: border-box; }
body.kech-editorial .minbar-poll-card {
  width: 100%;
  max-width: 485px;
  margin: 0 auto;
  padding: 22px;
  direction: rtl;
  border: 1px solid var(--kech-line);
  border-radius: 8px;
  background: #fff;
  color: var(--kech-ink);
  font-family: "Tajawal", Tahoma, Arial, sans-serif;
}
body.kech-editorial .minbar-poll-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 15px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--kech-line);
}
body.kech-editorial .minbar-poll-icon {
  flex: 0 0 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 49px;
  height: 49px;
  border-radius: 7px;
  background: var(--kech-nav);
  color: #fff;
  font: 700 15px/1 Arial, sans-serif;
  letter-spacing: 2px;
}
body.kech-editorial .minbar-poll-title h3 {
  margin: 0;
  color: var(--kech-ink);
  font: 700 18px/1.5 "Cairo", "Tajawal", sans-serif;
}
body.kech-editorial .minbar-poll-title p {
  margin: 0;
  color: var(--kech-muted);
  font-size: 13px;
}
body.kech-editorial .minbar-poll-body .wp-polls,
body.kech-editorial .minbar-poll-body .wp-polls-form,
body.kech-editorial .minbar-poll-body .wp-polls-ans {
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--kech-ink);
  font-family: "Tajawal", Tahoma, Arial, sans-serif;
}
body.kech-editorial .minbar-poll-body .wp-polls-form p {
  margin: 0 0 13px;
}
body.kech-editorial .minbar-poll-body .wp-polls-form p > strong {
  display: block;
  text-align: right;
  color: var(--kech-ink);
  font: 700 15px/1.65 "Cairo", "Tajawal", sans-serif;
}
body.kech-editorial .minbar-poll-body .wp-polls-ul {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
body.kech-editorial .minbar-poll-body .wp-polls-ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #edf0f2;
  border-radius: 5px;
  background: #f7f9fa;
  color: var(--kech-ink);
  text-align: right;
  font-size: 14px;
}
body.kech-editorial .minbar-poll-body .wp-polls-ul input[type="radio"] {
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--kech-red);
}
body.kech-editorial .minbar-poll-body .wp-polls-ul label {
  flex: 1;
  margin: 0;
  cursor: pointer;
}
body.kech-editorial .minbar-poll-body input.Buttons,
body.kech-editorial .minbar-poll-body input[name="vote"] {
  min-width: 112px;
  padding: 8px 17px;
  border: 0;
  border-radius: 4px;
  background: var(--kech-red);
  color: #fff;
  cursor: pointer;
  font: 700 14px/1.5 "Cairo", "Tajawal", sans-serif;
}
body.kech-editorial .minbar-poll-body input.Buttons:hover,
body.kech-editorial .minbar-poll-body input[name="vote"]:hover {
  background: var(--kech-red-dark);
}
body.kech-editorial .minbar-poll-body a { color: var(--kech-red-dark); }
body.kech-editorial .minbar-poll-body .pollbar { background: var(--kech-red); }
body.kech-editorial .minbar-poll-card :is(a, input, button):focus-visible {
  outline: 2px solid var(--kech-red);
  outline-offset: 2px;
}

/* Footer, including installations using Publisher's dark-text option. */
body.kech-editorial #site-footer.site-footer,
body.kech-editorial #site-footer .footer-widgets {
  background: var(--kech-ink) !important;
  color: #d4dce3;
}
body.kech-editorial #site-footer .footer-widgets .content-wrap,
body.kech-editorial #site-footer .footer-widgets .container {
  background: transparent !important;
}
body.kech-editorial .site-footer:before { background: var(--kech-red); }
body.kech-editorial .site-footer .footer-widgets { padding-block: 34px 27px; }
body.kech-editorial .site-footer .footer-widgets .widget,
body.kech-editorial .site-footer .footer-widgets .widget a { color: #d4dce3; }
body.kech-editorial .site-footer .footer-widgets .widget a:hover { color: #fff; }
body.kech-editorial .site-footer .footer-widgets .widget .widget-title,
body.kech-editorial .site-footer .footer-widgets .section-heading .h-text,
body.kech-editorial .site-footer .footer-widgets :is(h2,h3,h4) { color: #fff; }
body.kech-editorial #site-footer .footer-widgets .section-heading,
body.kech-editorial #site-footer .footer-widgets .widget-title {
  border-color: rgba(255,255,255,.18) !important;
}
body.kech-editorial #site-footer .footer-widgets .section-heading .h-text,
body.kech-editorial #site-footer .footer-widgets .section-heading a .h-text,
body.kech-editorial #site-footer .footer-widgets .widget-title,
body.kech-editorial #site-footer .footer-widgets .widget-title a {
  color: #f5f7f9 !important;
}
/* Publisher's heading variants draw a line through the footer titles. */
body.kech-editorial #site-footer .footer-widgets .section-heading {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0 0 9px;
  margin-bottom: 15px;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.22) !important;
  background: transparent !important;
}
body.kech-editorial #site-footer .footer-widgets .section-heading::before,
body.kech-editorial #site-footer .footer-widgets .section-heading::after,
body.kech-editorial #site-footer .footer-widgets .section-heading .h-text::before,
body.kech-editorial #site-footer .footer-widgets .section-heading .h-text::after {
  content: none !important;
  display: none !important;
}
body.kech-editorial #site-footer .footer-widgets .section-heading .h-text,
body.kech-editorial #site-footer .footer-widgets .section-heading .main-link {
  background: transparent !important;
  padding: 0 !important;
  border-inline-start: 0 !important;
  line-height: 1.6;
}
body.kech-editorial #site-footer .footer-widgets .bs-about .about-title img.logo-image,
body.kech-editorial #site-footer .footer-widgets .row > [class*="col-"]:first-child img:not(.avatar):not(.emoji) {
  width: auto;
  height: auto;
  max-width: 150px !important;
  max-height: 150px !important;
  object-fit: contain;
}
body.kech-editorial .site-footer .footer-social-icons,
body.kech-editorial .site-footer .copy-footer { background: #0d141a !important; }
body.kech-editorial .site-footer .copy-footer { border-top: 1px solid rgba(255,255,255,.13); }
body.kech-editorial #site-footer .copy-footer,
body.kech-editorial #site-footer .copy-footer .container,
body.kech-editorial #site-footer .copy-footer .copy-1,
body.kech-editorial #site-footer .copy-footer .copy-2,
body.kech-editorial #site-footer .copy-footer .copy-1 *,
body.kech-editorial #site-footer .copy-footer .copy-2 * {
  color: #b9c4cd !important;
  font-family: "Tajawal", Tahoma, Arial, sans-serif !important;
}

@media (max-width: 767px) {
  body.kech-editorial { font-size: 15px; }
  body.kech-editorial .site-header .header-inner { padding-block: 10px; }
  body.kech-editorial .site-header .site-branding .logo img { max-height: 84px; }
  body.kech-editorial .kech-video-band { padding-block: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  body.kech-editorial a,
  body.kech-editorial .listing-item .img-holder { transition: none; }
}
