/**
 * Kulwatha Research Center — editorial polish layer.
 * Version: 1.1.0
 *
 * This file intentionally sits after the legacy WPCode-compatible stylesheet.
 * It refines hierarchy, spacing and responsive behavior without breaking the
 * original class contract or WordPress menu assignments.
 */

:root {
  --kwd-charcoal: #202427;
  --kwd-charcoal-2: #2b3034;
  --kwd-ink: #1d2225;
  --kwd-text: #32383c;
  --kwd-muted: #737a7f;
  --kwd-gold: #e4b92a;
  --kwd-gold-dark: #a97d00;
  --kwd-gold-soft: #f5ecc8;
  --kwd-cream: #f8f6f0;
  --kwd-surface: #ffffff;
  --kwd-line: #e7e2d8;
  --kwd-line-strong: #dcd4c4;
  --kwd-radius-sm: 12px;
  --kwd-radius: 18px;
  --kwd-radius-lg: 24px;
  --kwd-shadow-sm: 0 10px 30px rgba(27, 32, 35, 0.06);
  --kwd-shadow: 0 22px 56px rgba(27, 32, 35, 0.09);
  --kwd-container: 1240px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--kwd-text);
  background: #fff;
  font-family: "Tajawal", "Cairo", Tahoma, Arial, sans-serif !important;
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
button,
.kwd-nav-list,
.kwd-top-menu,
.kwf-col h3 {
  font-family: "Cairo", "Tajawal", Tahoma, Arial, sans-serif;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(228, 185, 42, 0.34);
  outline-offset: 3px;
}

.kwd-container,
.kwf-container,
.khn-container,
.kwsv2-container,
.kwr-container,
.kwres-container,
.kwa-container,
.kwn-container,
.kwsvc-container,
.kwabout-container,
.kwcta2-container {
  width: min(calc(100% - 48px), var(--kwd-container));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.kwd-header {
  position: relative;
  z-index: 100;
  background: #fff;
  border-bottom: 0;
}

.kwd-topbar {
  background: #1d2124;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.kwd-topbar-inner {
  min-height: 34px;
}

.kwd-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kwd-live-dot,
.kwd-survey-cta__dot,
.kwsv2-status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 999px;
  background: var(--kwd-gold);
  box-shadow: 0 0 0 4px rgba(228, 185, 42, 0.12);
}

.kwd-top-menu {
  gap: 22px;
}

.kwd-top-menu a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.kwd-brand {
  border-bottom: 1px solid #f0ede7;
}

.kwd-brand-inner {
  min-height: 100px;
  gap: 42px;
}

.kwd-logo {
  display: inline-flex;
  align-items: center;
}

.kwd-logo img {
  width: 280px;
  max-width: 42vw;
  height: auto;
}

.kwd-site-info {
  max-width: 540px;
  margin-inline-start: auto;
  text-align: left;
  gap: 3px;
}

.kwd-site-kicker {
  color: var(--kwd-muted) !important;
  font-size: 14px !important;
}

.kwd-site-info strong {
  color: var(--kwd-charcoal);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.kwd-nav-wrap {
  background: rgba(255, 255, 255, 0.98);
  border-top: 0;
  border-bottom: 1px solid var(--kwd-line);
}

.kwd-nav-inner {
  min-height: 60px;
  gap: 14px;
}

.kwd-nav-list {
  gap: 0;
}

.kwd-nav-list > li > a {
  min-height: 60px;
  padding-inline: 12px;
  color: #343a3e;
  font-size: 14px;
  font-weight: 600;
  position: relative;
}

.kwd-nav-list > li > a::after {
  content: "";
  position: absolute;
  right: 12px;
  left: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--kwd-gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.kwd-nav-list > li:hover > a::after,
.kwd-nav-list > .current-menu-item > a::after,
.kwd-nav-list > .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.kwd-nav-list .sub-menu {
  width: 310px;
  padding: 10px;
  border: 1px solid var(--kwd-line);
  border-top: 3px solid var(--kwd-gold);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 22px 55px rgba(20, 24, 26, 0.14);
}

.kwd-nav-list .sub-menu a {
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.kwd-nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-inline-start: auto;
}

.kwd-survey-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid #d4aa18;
  border-radius: 9px;
  background: var(--kwd-gold);
  color: #17191a;
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kwd-survey-cta:hover {
  color: #111;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(185, 142, 8, 0.2);
}

.kwd-survey-cta__dot {
  width: 6px;
  height: 6px;
  background: #1f2427;
  box-shadow: 0 0 0 3px rgba(31, 36, 39, 0.1);
}

.kwd-search-btn {
  min-width: 42px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--kwd-line);
  border-radius: 9px;
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.kwd-search-btn:hover {
  background: var(--kwd-cream);
  border-color: var(--kwd-line-strong);
}

.kwd-search-panel {
  padding: 18px 0;
  background: #f7f5ef;
  border-bottom: 1px solid var(--kwd-line);
}

.kwd-search-panel form {
  max-width: 860px;
}

.kwd-search-panel input,
.kwd-search-panel button {
  height: 48px;
}

.kwd-updates {
  border-bottom: 1px solid var(--kwd-line);
}

.kwd-updates-inner {
  min-height: 42px;
}

.kwd-updates-title {
  padding-inline: 15px;
  background: var(--kwd-gold);
  color: #17191a;
  font-size: 14px;
  font-weight: 800;
}

.kwd-ticker-group {
  gap: 38px;
}

.kwd-ticker-group a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #52595d;
  font-size: 14px;
}

.kwd-ticker-group a small {
  color: var(--kwd-gold-dark);
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.kwd-ticker-group a::after {
  width: 4px;
  height: 4px;
  background: #c8c0b2;
}

/* --------------------------------------------------------------------------
   Shared section hierarchy
   -------------------------------------------------------------------------- */

.khn-home,
.kwsv2-section,
.kwr-section,
.kwres-section,
.kwa-section,
.kwn-section,
.kwsvc-section,
.kwabout-section,
.kwcta2-section {
  padding: 84px 0;
}

.khn-head,
.kwsv2-header,
.kwr-head,
.kwres-head,
.kwa-head,
.kwn-head {
  align-items: flex-end;
  margin-bottom: 34px;
  gap: 40px;
}

.khn-head > div,
.kwsv2-title,
.kwr-head > div,
.kwres-head > div,
.kwa-head > div,
.kwn-head > div {
  max-width: 790px;
}

.khn-head span,
.kwsv2-title > span,
.kwr-head > div > span,
.kwres-head > div > span,
.kwa-head > div > span,
.kwn-head > div > span,
.kwsvc-intro > span,
.kwabout-label,
.kwcta2-label {
  margin-bottom: 8px;
  color: var(--kwd-gold-dark);
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.khn-head h1,
.kwsv2-title h2,
.kwr-head h2,
.kwres-head h2,
.kwa-head h2,
.kwn-head h2 {
  margin: 0;
  color: var(--kwd-ink);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.khn-head p,
.kwsv2-title p,
.kwr-head p,
.kwres-head p,
.kwa-head p,
.kwn-head p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--kwd-muted);
  font-size: 15px;
  line-height: 1.85;
}

.khn-head > a,
.kwsv2-main-link,
.kwr-head > a,
.kwres-head > a,
.kwa-head > a,
.kwn-head > a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0 4px;
  border-bottom: 2px solid var(--kwd-gold);
  color: var(--kwd-charcoal);
  font-size: 14px;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Editorial hero
   -------------------------------------------------------------------------- */

.khn-home {
  padding-top: 54px;
  background: #fff;
}

.khn-layout {
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.72fr);
  gap: 20px;
}

.khn-featured,
.khn-side-card {
  border-radius: var(--kwd-radius-lg);
  background: #171a1c;
}

.khn-featured {
  min-height: 540px;
  box-shadow: var(--kwd-shadow-sm);
}

.khn-featured::after {
  background: linear-gradient(180deg, rgba(10, 12, 13, 0.03) 20%, rgba(10, 12, 13, 0.88) 87%);
}

.khn-featured-overlay {
  max-width: 900px;
  padding: 38px 40px;
}

.khn-featured-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.khn-type-badge,
.khn-cat.dark {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(22, 26, 28, 0.78);
  color: #fff;
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.khn-type-badge--gold {
  border-color: var(--kwd-gold);
  background: var(--kwd-gold);
  color: #151719;
}

.khn-featured h2 {
  max-width: 850px;
  margin: 14px 0 8px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.42;
  letter-spacing: -0.02em;
}

.khn-featured p {
  max-width: 760px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.8;
}

.khn-meta {
  gap: 18px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.khn-side {
  gap: 20px;
}

.khn-side-card {
  min-height: 260px;
}

.khn-side-card::after {
  background: linear-gradient(180deg, rgba(10, 12, 13, 0.02) 20%, rgba(10, 12, 13, 0.9));
}

.khn-side-overlay {
  padding: 24px;
}

.khn-side-overlay h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.55;
}

.khn-side-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.khn-bottom-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--kwd-line);
}

.khn-bottom-head strong {
  color: var(--kwd-ink);
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 17px;
}

.khn-bottom-head a {
  color: var(--kwd-muted);
  font-size: 14px;
  font-weight: 700;
}

.khn-bottom-grid {
  margin-top: 16px;
  gap: 18px;
}

.khn-card {
  border-color: var(--kwd-line);
  border-radius: 14px;
  box-shadow: none;
}

.khn-card:hover {
  border-color: #d9d1c2;
  box-shadow: var(--kwd-shadow-sm);
  transform: translateY(-2px);
}

.khn-card-image {
  aspect-ratio: 3 / 2;
}

.khn-card-content {
  padding: 16px 17px 18px;
}

.khn-card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--kwd-muted);
  font-size: 14px;
}

.khn-card-kicker span {
  color: var(--kwd-gold-dark);
  font-family: "Cairo", "Tajawal", sans-serif;
  font-weight: 800;
}

.khn-card h3 {
  margin: 7px 0 0;
  color: var(--kwd-ink);
  font-size: 16px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Surveys
   -------------------------------------------------------------------------- */

.kwsv2-section {
  background: var(--kwd-cream);
  border-top: 1px solid #f0ece4;
  border-bottom: 1px solid #f0ece4;
}

.kwsv2-layout {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.45fr);
  gap: 28px;
}

.kwsv2-feature-card {
  top: 24px;
  padding: 30px;
  border: 1px solid #31373b;
  border-radius: var(--kwd-radius-lg);
  background:
    radial-gradient(circle at 0 0, rgba(228, 185, 42, 0.13), transparent 32%),
    var(--kwd-charcoal);
  box-shadow: var(--kwd-shadow-sm);
}

.kwsv2-feature-status,
.kwsv2-feature-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--kwd-gold);
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.kwsv2-feature-card h3 {
  margin: 12px 0 12px;
  color: #fff;
  font-size: 28px;
  line-height: 1.45;
}

.kwsv2-feature-card > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.8;
}

.kwsv2-feature-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.kwsv2-feature-facts > div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.kwsv2-feature-facts small,
.kwsv2-feature-facts strong {
  display: block;
}

.kwsv2-feature-facts small {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 14px;
}

.kwsv2-feature-facts strong {
  color: #fff;
  font-size: 14px;
}

.kwsv2-feature-action {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--kwd-gold);
  color: #161819;
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.kwsv2-feature-action:hover {
  color: #111;
}

.kwsv2-archive {
  min-width: 0;
}

.kwsv2-archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 0 2px;
}

.kwsv2-archive-head span,
.kwsv2-archive-head strong {
  display: block;
}

.kwsv2-archive-head span {
  color: var(--kwd-gold-dark);
  font-size: 14px;
  font-weight: 800;
}

.kwsv2-archive-head strong {
  margin-top: 2px;
  color: var(--kwd-ink);
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 18px;
}

.kwsv2-archive-head small {
  color: var(--kwd-muted);
  font-size: 14px;
}

.kwsv2-grid {
  gap: 13px;
}

.kwsv2-card {
  border-color: #e8e2d8;
  border-radius: 13px;
  box-shadow: none;
}

.kwsv2-card:hover {
  border-color: #d8c47b;
  box-shadow: var(--kwd-shadow-sm);
  transform: translateY(-1px);
}

.kwsv2-card-link {
  padding: 18px 19px;
}

.kwsv2-card-top {
  align-items: center;
}

.kwsv2-number {
  color: #b88700;
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 14px;
}

.kwsv2-count {
  font-size: 14px;
}

.kwsv2-card h3 {
  margin: 10px 0 5px;
  color: var(--kwd-ink);
  font-size: 17px;
  line-height: 1.55;
}

.kwsv2-card p {
  min-height: 0;
  color: var(--kwd-muted);
  font-size: 14px;
  line-height: 1.65;
}

.kwsv2-latest {
  display: block;
  margin-top: 13px;
  padding-top: 11px;
  border-top-color: #eee9df;
}

.kwsv2-latest small,
.kwsv2-latest strong {
  display: block;
}

.kwsv2-latest small {
  color: #96918a;
  font-size: 14px;
}

.kwsv2-latest strong {
  margin-top: 2px;
  color: #50565a;
  font-size: 14px;
  font-weight: 600;
}

.kwsv2-more {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--kwd-charcoal);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Research publications
   -------------------------------------------------------------------------- */

.kwr-section {
  background: #fff;
}

.kwr-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 30px;
}

.kwr-main {
  border-color: var(--kwd-line);
  border-radius: var(--kwd-radius-lg);
  box-shadow: var(--kwd-shadow-sm);
}

.kwr-main-image {
  position: relative;
  aspect-ratio: 16 / 8.2;
}

.kwr-main-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(20, 23, 25, 0.18));
  pointer-events: none;
}

.kwr-cover-label {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(32, 36, 39, 0.9);
  color: #fff;
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.kwr-main-content {
  padding: 28px 30px 30px;
}

.kwr-main-kicker,
.kwr-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--kwd-muted);
  font-size: 14px;
}

.kwr-main-kicker span:first-child,
.kwr-item-meta span {
  color: var(--kwd-gold-dark);
  font-family: "Cairo", "Tajawal", sans-serif;
  font-weight: 800;
}

.kwr-main h3 {
  max-width: 800px;
  margin: 9px 0 9px;
  color: var(--kwd-ink);
  font-size: 28px;
  line-height: 1.5;
}

.kwr-main-content > p {
  max-width: 800px;
  margin: 0;
  color: var(--kwd-muted);
  font-size: 14px;
  line-height: 1.85;
}

.kwr-publication-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.kwr-publication-meta > div {
  padding: 12px 13px;
  border: 1px solid #ece7de;
  border-radius: 11px;
  background: #fbfaf7;
}

.kwr-publication-meta small,
.kwr-publication-meta strong {
  display: block;
}

.kwr-publication-meta small {
  color: #96918a;
  font-size: 14px;
}

.kwr-publication-meta strong {
  margin-top: 2px;
  color: #41474b;
  font-size: 14px;
  font-weight: 700;
}

.kwr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.kwr-read,
.kwr-pdf {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 9px;
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.kwr-read {
  background: var(--kwd-charcoal);
  color: #fff;
}

.kwr-pdf {
  border: 1px solid var(--kwd-line-strong);
  color: var(--kwd-charcoal);
}

.kwr-list {
  border: 1px solid var(--kwd-line);
  border-top: 0;
  border-radius: var(--kwd-radius);
  overflow: hidden;
  background: #fff;
}

.kwr-list-head {
  padding: 19px 20px;
  border-top: 3px solid var(--kwd-gold);
  border-bottom: 1px solid var(--kwd-line);
}

.kwr-list-head span,
.kwr-list-head strong {
  display: block;
}

.kwr-list-head span {
  color: var(--kwd-muted);
  font-size: 14px;
}

.kwr-list-head strong {
  margin-top: 2px;
  color: var(--kwd-ink);
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 16px;
}

.kwr-item {
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 15px 16px;
  border-bottom-color: var(--kwd-line);
}

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

.kwr-item-image {
  aspect-ratio: 4 / 3;
  border-radius: 9px;
}

.kwr-item h4 {
  margin: 4px 0 3px;
  color: var(--kwd-ink);
  font-size: 14px;
  line-height: 1.58;
}

.kwr-item-content small {
  color: var(--kwd-muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Results / data dashboard
   -------------------------------------------------------------------------- */

.kwres-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(228, 185, 42, 0.08), transparent 28%),
    var(--kwd-charcoal);
}

.kwres-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(228, 185, 42, 0.55);
}

.kwres-head h2 {
  color: #fff;
}

.kwres-head p {
  color: rgba(255, 255, 255, 0.62);
}

.kwres-head > a {
  color: #fff;
}

.kwres-layout {
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 34px;
}

.kwres-dashboard {
  align-self: start;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--kwd-radius-lg);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(4px);
}

.kwres-dashboard-label {
  color: var(--kwd-gold);
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 14px;
}

.kwres-dashboard h3 {
  margin: 8px 0 8px;
  color: #fff;
  font-size: 25px;
  line-height: 1.5;
}

.kwres-dashboard > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.8;
}

.kwres-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 22px;
}

.kwres-stats > div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}

.kwres-stats small,
.kwres-stats strong {
  display: block;
}

.kwres-stats small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

.kwres-stats strong {
  margin-top: 4px;
  color: var(--kwd-gold);
  font-size: 20px;
  line-height: 1.3;
}

.kwres-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.kwres-tags a {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
}

.kwres-feature {
  grid-template-columns: 42% 1fr;
  margin-bottom: 22px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--kwd-radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.kwres-feature-image {
  position: relative;
  min-height: 360px;
}

.kwres-feature-image > span {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--kwd-gold);
  color: #17191a;
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.kwres-feature-content {
  padding: 28px 30px;
}

.kwres-feature-kicker {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.kwres-feature-kicker span:first-child {
  color: var(--kwd-gold);
  font-family: "Cairo", "Tajawal", sans-serif;
  font-weight: 800;
}

.kwres-feature h3 {
  margin: 8px 0 8px;
  color: #fff;
  font-size: 25px;
  line-height: 1.5;
}

.kwres-feature-content > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  line-height: 1.8;
}

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

.kwres-facts > div {
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.kwres-facts small,
.kwres-facts strong {
  display: block;
}

.kwres-facts small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 14px;
}

.kwres-facts strong {
  margin-top: 3px;
  color: #fff;
  font-size: 14px;
}

.kwres-methodology {
  margin-top: 14px;
  padding-right: 12px;
  border-right: 2px solid var(--kwd-gold);
}

.kwres-methodology small {
  color: var(--kwd-gold);
  font-size: 14px;
  font-weight: 800;
}

.kwres-methodology p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.kwres-read {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
  color: #fff;
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.kwres-latest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.kwres-latest-head strong {
  color: #fff;
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 14px;
}

.kwres-latest-head span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 14px;
}

.kwres-timeline {
  padding-right: 0;
}

.kwres-timeline::before,
.kwres-dot {
  display: none;
}

.kwres-timeline-item {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 5px 0;
}

.kwres-timeline-date {
  padding: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 14px;
}

.kwres-timeline-card {
  padding: 12px 15px;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.kwres-timeline-card:hover {
  border-color: rgba(228, 185, 42, 0.25);
  background: rgba(255, 255, 255, 0.055);
}

.kwres-small-cat {
  color: var(--kwd-gold);
  font-size: 14px;
}

.kwres-timeline-card h4 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Analysis, news, services and about — visual consistency pass
   -------------------------------------------------------------------------- */

.kwa-section,
.kwsvc-section {
  background: #fff;
}

.kwn-section,
.kwabout-section {
  background: var(--kwd-cream);
}

.kwa-layout {
  gap: 30px;
}

.kwa-feature,
.kwa-editorial-list,
.kwn-main-news,
.kwn-sidebar {
  border-color: var(--kwd-line);
  border-radius: var(--kwd-radius-lg);
  box-shadow: none;
}

.kwa-feature h3,
.kwn-main-content h3 {
  color: var(--kwd-ink);
}

.kwa-read-more {
  border-radius: 9px;
  font-size: 14px;
}

.kwn-main-news {
  margin-bottom: 16px;
}

.kwn-news-feed {
  gap: 12px;
}

.kwn-feed-item {
  border-radius: 11px;
}

.kwn-feed-content h4 {
  color: var(--kwd-ink);
  font-size: 14px;
}

.kwn-popular-number,
.kwa-list-number {
  color: var(--kwd-gold-dark);
}

.kwsvc-layout {
  grid-template-columns: 1fr;
  gap: 28px;
}

.kwsvc-intro {
  position: relative;
  top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px 50px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--kwd-line);
}

.kwsvc-intro > span,
.kwsvc-intro > h2,
.kwsvc-intro > p {
  grid-column: 1;
}

.kwsvc-intro h2 {
  max-width: 760px;
  margin-bottom: 5px;
}

.kwsvc-intro p {
  max-width: 820px;
  margin: 0;
}

.kwsvc-intro > a {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  border-radius: 9px;
  font-size: 14px;
}

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

.kwsvc-card {
  border-radius: 13px;
}

.kwsvc-card-link {
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 20px;
}

.kwsvc-icon {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  font-size: 14px;
}

.kwsvc-content h3 {
  color: var(--kwd-ink);
  font-size: 16px;
}

.kwabout-layout {
  gap: 54px;
}

.kwabout-content h2 {
  color: var(--kwd-ink);
}

.kwabout-content p {
  font-size: 15px;
  line-height: 1.9;
}

.kwabout-panel {
  border-color: var(--kwd-line);
  border-radius: var(--kwd-radius-lg);
  box-shadow: var(--kwd-shadow-sm);
}

.kwabout-stats > div {
  border: 1px solid #ece7de;
}

/* --------------------------------------------------------------------------
   CTA and footer
   -------------------------------------------------------------------------- */

.kwcta2-section {
  padding-top: 24px;
  padding-bottom: 24px;
}

.kwcta2-box {
  border: 1px solid #30363a;
  border-radius: var(--kwd-radius-lg);
  background: var(--kwd-charcoal);
  box-shadow: var(--kwd-shadow-sm);
}

.kwcta2-primary,
.kwcta2-secondary {
  min-height: 43px;
  align-items: center;
}

.kwf-footer {
  margin-top: 68px;
  border-top: 3px solid var(--kwd-gold);
  background: #1d2124;
}

.kwf-main {
  padding: 58px 0 42px;
}

.kwf-grid {
  gap: 46px;
}

.kwf-logo img {
  width: 250px;
  height: auto;
}

.kwf-about p {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.8;
}

.kwf-badges span {
  border-color: rgba(228, 185, 42, 0.22);
  color: rgba(255, 255, 255, 0.64);
}

.kwf-col h3 {
  position: relative;
  padding-bottom: 12px;
  font-size: 15px;
}

.kwf-col h3::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--kwd-gold);
}

.kwf-menu a,
.kwf-post-link span {
  font-size: 14px;
}

.kwf-middle-inner {
  padding: 14px 0;
}

.kwf-bottom-inner {
  min-height: 58px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .kwd-nav-list > li > a {
    padding-inline: 9px;
    font-size: 14px;
  }

  .kwd-survey-cta {
    padding-inline: 11px;
  }

  .khn-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kwsvc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .kwd-container,
  .kwf-container,
  .khn-container,
  .kwsv2-container,
  .kwr-container,
  .kwres-container,
  .kwa-container,
  .kwn-container,
  .kwsvc-container,
  .kwabout-container,
  .kwcta2-container {
    width: min(calc(100% - 32px), var(--kwd-container));
  }

  .kwd-site-info {
    display: none;
  }

  .kwd-brand-inner {
    min-height: 88px;
  }

  .kwd-logo img {
    width: 235px;
    max-width: 62vw;
  }

  .kwd-nav-inner {
    min-height: 56px;
    align-items: center;
  }

  .kwd-menu-btn {
    display: flex;
  }

  .kwd-main-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    z-index: 20;
    max-height: 0;
    overflow: auto;
    border: 1px solid var(--kwd-line);
    border-radius: 0 0 15px 15px;
    background: #fff;
    box-shadow: var(--kwd-shadow);
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.24s ease, opacity 0.18s ease;
  }

  .kwd-main-nav.is-active {
    max-height: 75vh;
    opacity: 1;
    visibility: visible;
  }

  .kwd-nav-list {
    display: block;
    height: auto;
    padding: 10px;
  }

  .kwd-nav-list > li {
    display: block;
  }

  .kwd-nav-list > li > a {
    min-height: 46px;
    padding: 0 12px;
    border-bottom: 1px solid #f2efe9;
  }

  .kwd-nav-list > li > a::after {
    display: none;
  }

  .kwd-nav-list .sub-menu {
    position: static;
    width: auto;
    display: none;
    margin: 2px 10px;
    border: 0;
    border-right: 3px solid var(--kwd-gold);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .kwd-nav-list .is-open > .sub-menu {
    display: block;
  }

  .kwd-nav-actions {
    margin-inline-start: auto;
  }

  .khn-layout,
  .kwsv2-layout,
  .kwr-layout,
  .kwres-layout,
  .kwa-layout,
  .kwabout-layout,
  .kwcta2-box {
    grid-template-columns: 1fr;
  }

  .kwsv2-feature-card {
    position: relative;
    top: auto;
  }

  .kwr-layout {
    gap: 22px;
  }

  .kwr-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kwr-list-head {
    grid-column: 1 / -1;
  }

  .kwr-item {
    border-left: 1px solid var(--kwd-line);
  }

  .kwres-feature {
    grid-template-columns: 1fr;
  }

  .kwres-feature-image {
    min-height: 330px;
  }

  .kwsvc-intro {
    grid-template-columns: 1fr;
  }

  .kwsvc-intro > span,
  .kwsvc-intro > h2,
  .kwsvc-intro > p,
  .kwsvc-intro > a {
    grid-column: 1;
    grid-row: auto;
  }

  .kwsvc-intro > a {
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .kwd-topnav {
    display: none;
  }

  .kwd-search-btn span {
    display: none;
  }

  .khn-home,
  .kwsv2-section,
  .kwr-section,
  .kwres-section,
  .kwa-section,
  .kwn-section,
  .kwsvc-section,
  .kwabout-section,
  .kwcta2-section {
    padding: 58px 0;
  }

  .khn-head,
  .kwsv2-header,
  .kwr-head,
  .kwres-head,
  .kwa-head,
  .kwn-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
  }

  .khn-head h1,
  .kwsv2-title h2,
  .kwr-head h2,
  .kwres-head h2,
  .kwa-head h2,
  .kwn-head h2 {
    font-size: 29px;
  }

  .khn-layout {
    display: block;
  }

  .khn-featured {
    min-height: 450px;
  }

  .khn-featured-overlay {
    padding: 25px;
  }

  .khn-featured h2 {
    font-size: 28px;
  }

  .khn-featured p {
    display: none;
  }

  .khn-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    margin-top: 14px;
    gap: 12px;
  }

  .khn-side-card {
    min-height: 220px;
  }

  .khn-side-overlay {
    padding: 18px;
  }

  .khn-side-overlay h3 {
    font-size: 16px;
  }

  .khn-bottom-grid,
  .kwsv2-grid,
  .kwsvc-grid,
  .kwn-news-feed {
    grid-template-columns: 1fr;
  }

  .kwsv2-feature-card,
  .kwres-dashboard,
  .kwres-feature-content,
  .kwr-main-content {
    padding: 24px;
  }

  .kwsv2-feature-card h3,
  .kwres-dashboard h3 {
    font-size: 24px;
  }

  .kwr-publication-meta,
  .kwres-facts {
    grid-template-columns: 1fr 1fr;
  }

  .kwr-list {
    grid-template-columns: 1fr;
  }

  .kwr-item {
    border-left: 0;
  }

  .kwres-feature-image {
    min-height: 260px;
  }

  .kwres-timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .kwcta2-box {
    padding: 28px;
  }

  .kwf-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .kwf-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }
}

@media (max-width: 480px) {
  .kwd-container,
  .kwf-container,
  .khn-container,
  .kwsv2-container,
  .kwr-container,
  .kwres-container,
  .kwa-container,
  .kwn-container,
  .kwsvc-container,
  .kwabout-container,
  .kwcta2-container {
    width: min(calc(100% - 24px), var(--kwd-container));
  }

  .kwd-brand-inner {
    min-height: 80px;
  }

  .kwd-logo img {
    width: 210px;
  }

  .kwd-updates-title {
    padding-inline: 10px;
  }

  .kwd-ticker-group a small {
    display: none;
  }

  .khn-side {
    grid-template-columns: 1fr;
  }

  .khn-side-card {
    min-height: 235px;
  }

  .khn-bottom-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .kwsv2-feature-facts,
  .kwr-publication-meta,
  .kwres-stats,
  .kwres-facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .kwd-ticker-track,
  .khn-card,
  .kwsv2-card,
  .kwsvc-card,
  .kwd-survey-cta {
    animation: none !important;
    transition: none !important;
  }
}

/* Footer contact details. */
.kwf-contact-mini {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.kwf-contact-mini a,
.kwf-contact-mini span {
  color: inherit;
}

.kwf-contact-mini a:hover {
  color: var(--kwd-gold);
}
