/* =====================================================================
   Khanewal.com.pk – theme "Ajrak & Phulkari" (loads after css/style.css)
   Colours of Sindhi-Punjabi ajrak block prints (madder red, indigo, black,
   white) with phulkari brights (marigold, green, magenta) used as accents.
   Headlines: Rozha One. Text: Mukta.
   ===================================================================== */

:root {
  --ajrak: #8E1B2C;
  --ajrak-deep: #6B1221;
  --ajrak-soft: #F8E9EB;
  --indigo: #1F2766;
  --indigo-deep: #131845;
  --indigo-soft: #ECEDF7;
  --marigold: #F2A900;
  --marigold-soft: #FFF4D6;
  --leaf: #23784A;
  --leaf-soft: #E4F3EA;
  --rose: #C2185B;
  --rose-soft: #FCE7EF;
  --ink: #1C1A24;
  --muted: #625D6B;
  --line: #E8E4EC;
  --paper: #F6F4F8;
  --white: #FFFFFF;
  /* aliases used by page templates */
  --cobalt: var(--ajrak);
  --cobalt-deep: var(--ajrak-deep);
  --cobalt-soft: var(--ajrak-soft);
  --tile: var(--leaf);
  --tile-soft: var(--leaf-soft);
  --board: var(--marigold);
  --radius-s: 8px;
  --radius-m: 14px;
  --shadow: 0 1px 2px rgba(19, 24, 69, .05), 0 12px 32px rgba(19, 24, 69, .08);
  --font: "Mukta", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Rozha One", Georgia, serif;
  --ajrak-img: url("/img/ajrak.svg");
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--font); font-weight: 700; color: var(--ink); line-height: 1.2; letter-spacing: 0; }
a { color: var(--ajrak); }
a:hover { color: var(--ajrak-deep); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
::selection { background: var(--marigold); color: var(--ink); }

.kdc-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.kdc-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kdc-skip { position: absolute; left: 12px; top: -48px; z-index: 1000; background: var(--marigold); color: var(--ink); padding: 8px 14px; border-radius: var(--radius-s); font-weight: 700; }
.kdc-skip:focus { top: 12px; }

/* The ajrak band: the site's signature, used at the top, under the hero and above the footer */
.kdc-band { height: 14px; background: var(--ajrak-img) 0 0 / 28px 28px repeat-x; }

/* ---------- Header ---------- */
.kdc-header { background: var(--white); position: relative; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.kdc-header::before { content: ""; display: block; height: 10px; background: var(--ajrak-img) 0 -4px / 20px 20px repeat-x; }
.kdc-brandbar { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.kdc-brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--ink); flex-shrink: 0; }
.kdc-brand img { width: 58px; height: 58px; object-fit: contain; }
.kdc-brand__name { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--indigo); }
.kdc-brand__name span { color: var(--ajrak); }

.kdc-search { flex: 1; display: flex; max-width: 540px; margin-left: auto; background: var(--white); border: 2px solid var(--indigo); border-radius: 999px; overflow: hidden; }
.kdc-search:focus-within { box-shadow: 0 0 0 4px rgba(31, 39, 102, .12); }
.kdc-search input { flex: 1; border: 0; background: transparent; padding: 10px 20px; font: inherit; font-size: 1rem; color: var(--ink); min-width: 0; outline: none; }
.kdc-search button { border: 0; background: var(--indigo); color: #fff; padding: 0 22px; font: inherit; font-weight: 600; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.kdc-search button:hover { background: var(--indigo-deep); }
.kdc-menu-btn { display: none; border: 2px solid var(--line); background: var(--white); width: 46px; height: 46px; border-radius: 12px; font-size: 1.15rem; color: var(--indigo); }
.kdc-brand-social { display: none; margin-left: auto; gap: 8px; }
.kdc-brand-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; }
.kdc-brand-social a:nth-child(1) { background: #1877F2; }
.kdc-brand-social a:nth-child(2) { background: #E62117; }
.kdc-brand-social a:nth-child(3) { background: var(--rose); }
.kdc-brand-social a:nth-child(4) { background: #1FA855; }
.kdc-brand-social a:hover { filter: brightness(1.1); color: #fff; }
@media (min-width: 992px) { .is-home .kdc-brand-social { display: flex; } .is-home .kdc-brandbar .kdc-search { display: none; } }

.kdc-nav { background: var(--indigo); }
.kdc-nav__inner { display: flex; align-items: stretch; gap: 2px; flex-wrap: wrap; }
.kdc-nav__link { display: flex; align-items: center; gap: 6px; padding: 13px 16px; font: inherit; font-size: 1rem; font-weight: 600; color: #fff; background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; text-decoration: none !important; }
.kdc-nav__link:hover { color: var(--marigold); }
.kdc-nav__link.is-current { color: #fff; border-bottom-color: var(--marigold); background: rgba(255, 255, 255, .06); }
.kdc-nav__link i { font-size: .65rem; transition: transform .15s; }
.kdc-nav__toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.kdc-nav__group { position: relative; }
.kdc-nav__menu { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--white); border-top: 3px solid var(--marigold); border-radius: 0 0 var(--radius-m) var(--radius-m); box-shadow: var(--shadow); padding: 8px; z-index: 60; }
.kdc-nav__toggle[aria-expanded="true"] + .kdc-nav__menu { display: block; }
.kdc-nav__menu a { display: block; padding: 9px 12px; border-radius: var(--radius-s); color: var(--ink); font-size: .97rem; text-decoration: none !important; }
.kdc-nav__menu a:hover, .kdc-nav__menu a[aria-current] { background: var(--ajrak-soft); color: var(--ajrak); }

@media (max-width: 991.98px) {
  .kdc-brandbar { gap: 12px; }
  .kdc-brand img { width: 46px; height: 46px; }
  .kdc-brand__name { font-size: 1.6rem; }
  .kdc-menu-btn { display: grid; place-items: center; margin-left: auto; }
  .kdc-search { order: 3; flex-basis: 100%; max-width: none; }
  .kdc-search button span { display: none; }
  .kdc-nav { display: none; }
  .kdc-nav.is-open { display: block; }
  .kdc-nav__inner { flex-direction: column; padding: 6px 12px 14px; }
  .kdc-nav__link { width: 100%; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .12); border-left: 3px solid transparent; }
  .kdc-nav__link.is-current { border-bottom-color: rgba(255, 255, 255, .12); border-left-color: var(--marigold); }
  .kdc-nav__menu { position: static; box-shadow: none; border: 0; border-radius: var(--radius-s); margin: 4px 0 8px; }
}

/* Google Auto ads sometimes insert an ad inside header rows: give it its own full row. */
.kdc-brandbar > :not(.kdc-brand):not(.kdc-search):not(.kdc-brand-social):not(.kdc-menu-btn) { order: 10; flex: 1 0 100%; width: 100%; margin: 4px 0 8px; }
.kdc-header > :not(.kdc-brandbar):not(.kdc-nav) { width: 100%; max-width: 1200px; margin: 0 auto 8px; padding: 0 20px; }

/* ---------- Ads (space reserved to avoid layout shift) ---------- */
.kdc-ad { margin: 28px auto; text-align: center; min-height: 120px; }
.kdc-ad__label { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .04em; margin-bottom: 4px; }
.kdc-ad--leaderboard { min-height: 110px; margin: 18px auto; }
.kdc-ad--sidebar { min-height: 270px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 10px; margin: 0 0 20px; }
.kdc-ad--in-article { margin: 30px 0; min-height: 280px; }
.kdc-ad ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.kdc-top-ad .kdc-ad { margin-bottom: 4px; }
.is-home .kdc-top-ad { max-width: none; background: var(--white); padding-top: 2px; padding-bottom: 8px; }
.is-home .kdc-top-ad .kdc-ad { max-width: 1160px; margin: 8px auto 0; }
.kdc-sidebar-ads { width: 100%; }
@media (min-width: 992px) { .kdc-sticky { position: sticky; top: 16px; } }

/* ---------- Page scaffolding ---------- */
.kdc-page { padding-top: 8px; padding-bottom: 48px; }
.kdc-crumbs { font-size: .9rem; color: var(--muted); padding: 16px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.kdc-crumbs a { color: var(--muted); text-decoration: none; }
.kdc-crumbs a:hover { color: var(--ajrak); }
.kdc-crumbs span[aria-current] { color: var(--ink); font-weight: 600; }
.kdc-crumbs .sep { color: #B9B2C2; }
.kdc-pagehead { padding: 8px 0 26px; }
.kdc-pagehead h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; margin: 0 0 10px; color: var(--indigo); }
.kdc-pagehead h1::after { content: ""; display: block; width: 72px; height: 8px; margin-top: 14px; background: var(--ajrak-img) 0 -2px / 16px 16px repeat-x; border-radius: 2px; }
.kdc-pagehead p { color: var(--muted); max-width: 66ch; margin: 0; font-size: 1.1rem; }
.kdc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
@media (max-width: 991.98px) { .kdc-layout { grid-template-columns: 1fr; } }
.kdc-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; box-shadow: var(--shadow); }
.kdc-panel + .kdc-panel { margin-top: 20px; }
.kdc-side-title { font-size: 1.05rem; margin: 0 0 12px; color: var(--indigo); }

.kdc-section { padding: 40px 0; }
.kdc-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.kdc-section__head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; color: var(--indigo); line-height: 1.1; }
.kdc-section__head h2::after { content: ""; display: block; width: 56px; height: 6px; margin-top: 10px; background: linear-gradient(90deg, var(--ajrak) 0 33%, var(--marigold) 33% 66%, var(--leaf) 66%); border-radius: 3px; }
.kdc-section__head a { font-weight: 600; white-space: nowrap; text-decoration: none; padding-bottom: 4px; }
.kdc-section__head a::after { content: " \203A"; }

.kdc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .97rem; text-decoration: none !important; border: 2px solid var(--ajrak); color: var(--ajrak); background: var(--white); cursor: pointer; }
.kdc-btn:hover { background: var(--ajrak); color: #fff; }
.kdc-btn--solid { background: var(--ajrak); color: #fff; }
.kdc-btn--solid:hover { background: var(--ajrak-deep); border-color: var(--ajrak-deep); }
.kdc-btn--call { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.kdc-btn--call:hover { background: #1A5E39; border-color: #1A5E39; color: #fff; }

/* Colourful icon chips: cycle through the phulkari palette */
.kdc-tile:nth-child(5n+1) i, .kdc-listing li:nth-child(5n+1) .kdc-entry__icon, .kdc-contact-card:nth-child(3n+1) > i { background: var(--ajrak-soft); color: var(--ajrak); }
.kdc-tile:nth-child(5n+2) i, .kdc-listing li:nth-child(5n+2) .kdc-entry__icon, .kdc-contact-card:nth-child(3n+2) > i { background: var(--indigo-soft); color: var(--indigo); }
.kdc-tile:nth-child(5n+3) i, .kdc-listing li:nth-child(5n+3) .kdc-entry__icon, .kdc-contact-card:nth-child(3n+3) > i { background: var(--marigold-soft); color: #9A6A00; }
.kdc-tile:nth-child(5n+4) i, .kdc-listing li:nth-child(5n+4) .kdc-entry__icon { background: var(--leaf-soft); color: var(--leaf); }
.kdc-tile:nth-child(5n+5) i, .kdc-listing li:nth-child(5n+5) .kdc-entry__icon { background: var(--rose-soft); color: var(--rose); }

/* ---------- Directory listing ---------- */
.kdc-filter { display: flex; gap: 10px; margin-bottom: 18px; }
.kdc-filter input { flex: 1; border: 2px solid var(--line); border-radius: 999px; padding: 10px 18px; font: inherit; background: var(--white); min-width: 0; }
.kdc-filter input:focus { border-color: var(--indigo); outline: none; }
.kdc-count { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.kdc-listing { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow); }
.kdc-listing li + li { border-top: 1px solid var(--line); }
.kdc-entry { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px; transition: background .15s; }
.kdc-entry:hover { background: #FCFBFD; }
.kdc-entry__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; }
.kdc-entry__name { font-weight: 700; font-size: 1.08rem; color: var(--ink); display: block; line-height: 1.3; text-decoration: none !important; }
.kdc-entry__name:hover { color: var(--ajrak); }
.kdc-entry__meta { color: var(--muted); font-size: .93rem; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.kdc-entry__meta i { color: var(--ajrak); margin-right: 5px; }
.kdc-entry__actions { display: flex; gap: 8px; }
.kdc-entry__actions a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); color: var(--indigo); text-decoration: none !important; }
.kdc-entry__actions a:hover { border-color: var(--indigo); background: var(--indigo-soft); }
.kdc-entry__actions a.is-call { background: var(--leaf); border-color: var(--leaf); color: #fff; }
@media (max-width: 575.98px) { .kdc-entry { grid-template-columns: minmax(0, 1fr) auto; padding: 14px; gap: 10px; } .kdc-entry__icon { display: none; } .kdc-entry__actions a:not(.is-call) { display: none; } .kdc-entry__meta { flex-direction: column; gap: 2px; } }
.kdc-empty { padding: 28px; text-align: center; color: var(--muted); }

.kdc-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 26px 0 0; padding: 0; list-style: none; }
.kdc-pager a, .kdc-pager span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none !important; }
.kdc-pager a:hover { border-color: var(--ajrak); color: var(--ajrak); }
.kdc-pager [aria-current] { background: var(--ajrak); border-color: var(--ajrak); color: #fff; }
.kdc-pager .is-gap { border: 0; background: none; }

.kdc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kdc-chips a { padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .93rem; color: var(--ink); text-decoration: none !important; }
.kdc-chips a:hover, .kdc-chips a[aria-current] { border-color: var(--ajrak); color: var(--ajrak); background: var(--ajrak-soft); }
.kdc-chips a small { color: var(--muted); margin-left: 4px; }

/* ---------- Contact detail page ---------- */
.kdc-contact h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--indigo); margin: 8px 0 4px; line-height: 1.1; }
.kdc-contact__cat { display: inline-block; background: var(--marigold-soft); color: #7A5400; padding: 4px 14px; border-radius: 999px; font-size: .86rem; font-weight: 700; text-decoration: none !important; }
.kdc-facts { display: grid; margin: 22px 0; border-top: 1px solid var(--line); }
.kdc-facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kdc-facts dt { color: var(--muted); font-weight: 500; }
.kdc-facts dd { margin: 0; font-weight: 600; word-break: break-word; }
.kdc-facts dd a { margin-right: 10px; }
.kdc-contact__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.kdc-map { margin-top: 20px; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--paper); }
.kdc-map iframe { width: 100% !important; height: 100% !important; border: 0; display: block; }
.kdc-note { font-size: .92rem; color: var(--muted); margin-top: 16px; }
.kdc-related { list-style: none; margin: 0; padding: 0; }
.kdc-related li + li { border-top: 1px solid var(--line); }
.kdc-related a { display: block; padding: 10px 0; text-decoration: none !important; }
.kdc-related a strong { display: block; color: var(--ink); font-size: .98rem; line-height: 1.3; }
.kdc-related a span { color: var(--muted); font-size: .88rem; }
.kdc-related a:hover strong { color: var(--ajrak); }
@media (max-width: 575.98px) { .kdc-facts > div { grid-template-columns: 84px minmax(0, 1fr); } .kdc-panel { padding: 18px; } }

/* ---------- Article ---------- */
.kdc-article__title { font-family: var(--display); font-weight: 400; color: var(--indigo); font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; margin: 8px 0 14px; max-width: 26ch; }
.kdc-article__dek { font-size: 1.2rem; color: var(--muted); max-width: 62ch; margin-bottom: 20px; }
.kdc-article__figure { margin: 0 0 28px; border-radius: var(--radius-m); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.kdc-article__figure img { width: 100%; display: block; }
.kdc-prose { font-size: 1.12rem; line-height: 1.75; max-width: 70ch; overflow-wrap: anywhere; }
.kdc-prose p { margin: 0 0 1.15em; }
.kdc-prose h2, .kdc-prose h3 { margin: 1.6em 0 .55em; color: var(--indigo); }
.kdc-prose h2 { font-family: var(--display); font-weight: 400; font-size: 1.75rem; line-height: 1.15; }
.kdc-prose h3 { font-size: 1.3rem; }
.kdc-prose img { border-radius: var(--radius-s); }
.kdc-prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 1rem; display: block; overflow-x: auto; }
.kdc-prose th { background: var(--indigo); color: #fff; }
.kdc-prose th, .kdc-prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.kdc-prose tr:nth-child(even) td { background: var(--paper); }
.kdc-prose blockquote { border-left: 4px solid var(--marigold); padding: 4px 0 4px 18px; color: var(--muted); margin: 1.2em 0; }
.kdc-prose ul, .kdc-prose ol { padding-left: 1.3em; }
.kdc-prose li::marker { color: var(--ajrak); }

/* ---------- Cards ---------- */
.kdc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.kdc-cards--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.kdc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; text-decoration: none !important; color: var(--ink); box-shadow: 0 1px 2px rgba(19, 24, 69, .04); transition: box-shadow .2s, transform .2s; }
.kdc-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kdc-card:hover .kdc-card__title { color: var(--ajrak); }
.kdc-card__img { aspect-ratio: 16 / 10; background: var(--indigo-soft); overflow: hidden; }
.kdc-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kdc-card__body { padding: 14px 16px 18px; border-top: 4px solid var(--marigold); }
.kdc-cards > .kdc-card:nth-child(3n+2) .kdc-card__body { border-top-color: var(--ajrak); }
.kdc-cards > .kdc-card:nth-child(3n+3) .kdc-card__body { border-top-color: var(--leaf); }
.kdc-card__title { font-weight: 700; font-size: 1.06rem; line-height: 1.3; margin: 0; }
.kdc-card__text { color: var(--muted); font-size: .93rem; margin: 6px 0 0; }
.kdc-lead { display: grid; grid-template-columns: 1.3fr 1fr; }
.kdc-lead .kdc-card__img { aspect-ratio: auto; min-height: 300px; }
.kdc-lead .kdc-card__body { padding: 30px; display: flex; flex-direction: column; justify-content: center; border-top: 0; border-left: 6px solid var(--ajrak); }
.kdc-lead .kdc-card__title { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.12; color: var(--indigo); }
.kdc-lead .kdc-card__text { font-size: 1.02rem; margin-top: 12px; }
@media (max-width: 767.98px) { .kdc-lead { grid-template-columns: 1fr; } .kdc-lead .kdc-card__img { min-height: 0; aspect-ratio: 16 / 10; } .kdc-lead .kdc-card__body { padding: 18px; border-left: 0; border-top: 5px solid var(--ajrak); } }

.kdc-video .kdc-card__img { aspect-ratio: 16 / 9; position: relative; background: var(--indigo-deep); }
.kdc-video .kdc-card__img i { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: var(--marigold); color: var(--ink); display: grid; place-items: center; font-size: 1.1rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }

/* People */
.kdc-people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.kdc-person { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); text-decoration: none !important; color: var(--ink); box-shadow: 0 1px 2px rgba(19, 24, 69, .04); transition: box-shadow .2s, transform .2s; position: relative; overflow: hidden; }
.kdc-person::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64px; background: var(--ajrak-img) 0 0 / 28px 28px; opacity: .9; }
.kdc-person:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kdc-person img { position: relative; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: var(--indigo-soft); box-shadow: 0 0 0 5px var(--white); margin-bottom: 14px; }
.kdc-person__name { font-weight: 700; font-size: 1.08rem; line-height: 1.25; }
.kdc-person:hover .kdc-person__name { color: var(--ajrak); }
.kdc-person__text { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.kdc-profile { display: flex; align-items: center; gap: 24px; margin: 6px 0 24px; }
.kdc-profile img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 6px var(--white), 0 0 0 9px var(--marigold); background: var(--indigo-soft); }
.kdc-profile .kdc-article__title { margin-bottom: 0; }
.kdc-profile .kdc-contact__cat { margin: 0 0 6px; }
@media (max-width: 575.98px) { .kdc-profile { flex-direction: column; align-items: flex-start; } .kdc-profile img { width: 108px; height: 108px; } }
.kdc-player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow); }
.kdc-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Static pages ---------- */
.kdc-doc { max-width: 78ch; }
.kdc-doc .kdc-prose { max-width: none; }
.kdc-toc { font-size: .95rem; }
.kdc-toc a { display: block; padding: 7px 0 7px 12px; color: var(--ink); text-decoration: none; border-left: 3px solid var(--line); }
.kdc-toc a:hover { color: var(--ajrak); border-left-color: var(--ajrak); }
.kdc-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.kdc-contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-decoration: none !important; color: var(--ink); transition: transform .2s; border-top: 5px solid var(--marigold); }
.kdc-contact-card:nth-child(2) { border-top-color: var(--leaf); }
.kdc-contact-card:nth-child(3) { border-top-color: var(--ajrak); }
.kdc-contact-card:hover { transform: translateY(-2px); }
.kdc-contact-card > i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; }
.kdc-contact-card h2 { font-size: 1.3rem; margin: 6px 0 0; color: var(--indigo); }
.kdc-contact-card p { color: var(--muted); margin: 0 0 8px; flex: 1; }
.kdc-contact-card .kdc-btn { word-break: break-all; }

/* ---------- Share + comments ---------- */
.kdc-share { margin: 40px auto; }
.kdc-share__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; background: var(--paper); border-radius: var(--radius-m); padding: 16px 20px; }
.kdc-share__title { font-size: 1.05rem; margin: 0; color: var(--indigo); }
.kdc-share__links { display: flex; flex-wrap: wrap; gap: 8px; }
.kdc-share__links a, .kdc-share__links button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; border: 0; color: #fff; font: inherit; font-size: .93rem; font-weight: 600; cursor: pointer; text-decoration: none !important; }
.kdc-share__links .is-whatsapp { background: #1FA855; }
.kdc-share__links .is-facebook { background: #1877F2; }
.kdc-share__links .is-x { background: #111; }
.kdc-share__links .is-copy { background: var(--indigo); }
.kdc-share__links a:hover, .kdc-share__links button:hover { filter: brightness(1.1); color: #fff; }
.kdc-comments { margin-top: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 0 20px; }
.kdc-comments summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--indigo); }
.kdc-comments[open] { padding-bottom: 16px; }

/* ---------- Footer ---------- */
.kdc-footer { background: var(--indigo-deep); color: #C6C9E6; margin-top: 56px; }
.kdc-footer::before { content: ""; display: block; height: 28px; background: var(--ajrak-img) 0 0 / 28px 28px repeat-x; }
.kdc-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
.kdc-footer h2 { color: var(--marigold); font-size: 1rem; margin: 6px 0 14px; }
.kdc-footer nav a { display: block; color: #C6C9E6; padding: 4px 0; font-size: .97rem; text-decoration: none; }
.kdc-footer nav a:hover { color: #fff; }
.kdc-footer__about p { max-width: 40ch; font-size: 1rem; margin: 14px 0; }
.kdc-brand--footer .kdc-brand__name { color: #fff; font-size: 1.7rem; }
.kdc-brand--footer .kdc-brand__name span { color: var(--marigold); }
.kdc-footer__social { display: flex; gap: 8px; }
.kdc-footer .kdc-footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; padding: 0; }
.kdc-footer .kdc-footer__social a:hover { background: var(--marigold); color: var(--ink); }
.kdc-footer__base { border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; padding: 16px 0; }
.kdc-footer__base p { margin: 0; }
.kdc-footer__base a { color: #fff; }
@media (max-width: 767.98px) { .kdc-footer__grid { grid-template-columns: 1fr 1fr; } .kdc-footer__about { grid-column: 1 / -1; } }
.kdc-to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--ajrak); color: #fff !important; display: none; place-items: center; z-index: 40; box-shadow: var(--shadow); }

/* =====================================================================
   Home page
   ===================================================================== */
.kdc-hero { position: relative; color: #fff; background: var(--indigo-deep); overflow: hidden; }
.kdc-hero::before { content: ""; position: absolute; inset: 0; background: var(--ajrak-img) 0 0 / 56px 56px; -webkit-mask-image: linear-gradient(100deg, transparent 52%, rgba(0, 0, 0, .85) 85%); mask-image: linear-gradient(100deg, transparent 52%, rgba(0, 0, 0, .85) 85%); }
.kdc-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--ajrak-img) 0 0 / 28px 28px repeat-x; }
.kdc-hero__inner { position: relative; padding-top: 70px; padding-bottom: 140px; }
.kdc-hero h1 { color: #fff; font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.04; margin: 0 0 18px; max-width: 16ch; }
.kdc-hero__inner > p:not(.kdc-hero__popular) { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: #D3D6F0; max-width: 54ch; margin: 0 0 30px; }
.kdc-hero__search { display: flex; align-items: center; max-width: 680px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 22px; box-shadow: 0 0 0 6px rgba(242, 169, 0, .35), 0 20px 50px rgba(0, 0, 0, .35); }
.kdc-hero__search > i { color: var(--muted); font-size: 1.05rem; }
.kdc-hero__search input { flex: 1; border: 0; padding: 14px; font: inherit; font-size: 1.1rem; min-width: 0; outline: none; color: var(--ink); background: transparent; }
.kdc-hero__search button { border: 0; background: var(--ajrak); color: #fff; font: inherit; font-weight: 700; font-size: 1.05rem; padding: 13px 30px; border-radius: 999px; cursor: pointer; }
.kdc-hero__search button:hover { background: var(--ajrak-deep); }
.kdc-hero__popular { font-size: .95rem; margin: 22px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kdc-hero__popular span { color: var(--marigold); font-weight: 600; margin-right: 4px; }
.kdc-hero__popular a { color: #fff; padding: 6px 14px; border-radius: 999px; background: var(--indigo-deep); border: 1px solid rgba(255, 255, 255, .25); text-decoration: none; }
.kdc-hero__popular a:hover { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }
.kdc-dirpanel { position: relative; margin-top: -96px; background: var(--white); border-radius: 22px; padding: 30px 30px 32px; box-shadow: 0 24px 60px rgba(19, 24, 69, .18); }
.kdc-dirpanel .kdc-section__head { margin-bottom: 20px; }
@media (max-width: 767.98px) {
  .kdc-hero::before { -webkit-mask-image: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .7)); mask-image: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .7)); }
  .kdc-hero__inner { padding-top: 40px; padding-bottom: 110px; }
  .kdc-hero__search { padding-left: 16px; }
  .kdc-hero__search button { padding: 12px 18px; }
  .kdc-hero__search input { padding: 12px 10px; font-size: 1rem; }
  .kdc-dirpanel { margin-top: -76px; padding: 20px 14px 22px; border-radius: 18px; }
}

.kdc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 12px; }
.kdc-tile { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); text-decoration: none !important; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.kdc-tile i { grid-row: 1 / 3; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; }
.kdc-tile__label { font-weight: 700; line-height: 1.25; }
.kdc-tile__count { font-size: .86rem; color: var(--muted); }
.kdc-tile:hover { border-color: var(--ajrak); box-shadow: var(--shadow); }
@media (max-width: 575.98px) { .kdc-tiles { grid-template-columns: 1fr 1fr; gap: 8px; } .kdc-tile { grid-template-columns: 1fr; padding: 12px; row-gap: 6px; } .kdc-tile i { grid-row: auto; width: 38px; height: 38px; } }

.kdc-news { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; }
.kdc-news__lead .kdc-card__title { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.12; color: var(--indigo); }
.kdc-news__lead .kdc-card__body { padding: 18px 22px 24px; border-top-color: var(--ajrak); }
.kdc-news__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.kdc-news__list a { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 10px; text-decoration: none !important; color: var(--ink); font-weight: 700; line-height: 1.3; transition: box-shadow .2s; }
.kdc-news__list a:hover { color: var(--ajrak); box-shadow: var(--shadow); }
.kdc-news__list img { width: 116px; height: 82px; object-fit: cover; border-radius: 10px; }
@media (max-width: 767.98px) { .kdc-news { grid-template-columns: 1fr; } .kdc-news__list a { grid-template-columns: 92px minmax(0, 1fr); } .kdc-news__list img { width: 92px; height: 66px; } }

.kdc-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
.kdc-split--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 991.98px) { .kdc-split, .kdc-split--even { grid-template-columns: 1fr; gap: 0; } }
.kdc-split > .kdc-section { padding-bottom: 12px; }
.kdc-jobs a { display: block; padding: 14px 20px; text-decoration: none !important; color: var(--ink); }
.kdc-jobs a strong { display: block; line-height: 1.3; }
.kdc-jobs a span { font-size: .9rem; color: var(--muted); }
.kdc-jobs a:hover strong { color: var(--ajrak); }

.kdc-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.kdc-rail > * { scroll-snap-align: start; }

.kdc-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kdc-people a { display: flex; align-items: center; gap: 12px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; text-decoration: none !important; color: var(--ink); font-weight: 600; line-height: 1.25; }
.kdc-people a:hover { border-color: var(--ajrak); color: var(--ajrak); }
.kdc-people img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--indigo-soft); box-shadow: 0 0 0 3px var(--marigold-soft); }
@media (max-width: 575.98px) { .kdc-people { grid-template-columns: 1fr; } }

.kdc-about { max-width: 74ch; }
.kdc-about h2 { font-family: var(--display); font-weight: 400; color: var(--indigo); font-size: 1.7rem; }
.kdc-about p { color: var(--muted); }
.kdc-home-band { background: var(--paper); }

@media (max-width: 575.98px) {
  .kdc-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kdc-cards .kdc-card__body { padding: 10px 12px 14px; }
  .kdc-cards .kdc-card__title { font-size: .95rem; }
  .kdc-cards .kdc-card__text { display: none; }
  .kdc-people-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kdc-person { padding: 18px 10px 14px; }
  .kdc-person::before { height: 48px; }
  .kdc-person img { width: 84px; height: 84px; }
  .kdc-person__text { display: none; }
}

/* =====================================================================
   Older pages (Bootstrap template markup) brought in line
   ===================================================================== */
.container { max-width: 1200px; }
.container-fluid.bg-light, .bg-light { background-color: var(--white) !important; }
.d-flex.bg-light.py-2.px-4, .bg-light.py-2.px-4 { border-left: 5px solid var(--ajrak); border-radius: var(--radius-s); box-shadow: none; background: var(--paper) !important; }
.bg-light h1, .bg-light h2, .bg-light h3 { font-family: var(--display); font-weight: 400 !important; color: var(--indigo); }
.breadcrumb { font-size: .9rem; padding: 14px 0 !important; }
.breadcrumb-item, .breadcrumb-item a, .breadcrumb a { color: var(--muted); }
.btn-danger, .btn-primary { background-color: var(--ajrak) !important; border-color: var(--ajrak) !important; color: #fff !important; border-radius: 999px; }
.btn-danger:hover, .btn-primary:hover { background-color: var(--ajrak-deep) !important; border-color: var(--ajrak-deep) !important; }
.btn-secondary { border-radius: 999px; }
.text-primary { color: var(--ajrak) !important; }
.bg-primary { background-color: var(--ajrak) !important; }
.page-item.active .page-link { background-color: var(--ajrak); border-color: var(--ajrak); }
.page-link { color: var(--ajrak); }
.form-control:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(31, 39, 102, .15); }
[style*="#ED1C24"], [style*="#ed1c24"], [style*="#CC1A00"] { color: var(--ajrak) !important; }
.view-details-btn { color: var(--ajrak); border: 2px solid var(--ajrak); border-radius: 999px; padding: 8px 18px; display: inline-block; text-decoration: none; font-weight: 600; }
.view-details-btn:hover { background: var(--ajrak); color: #fff; }
.small-iframe { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-m); }
.custom-video-frame, .video-responsive { position: relative; padding-top: 56.25%; overflow: hidden; border-radius: var(--radius-m); }
.custom-video-frame iframe, .video-responsive iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sidebar-ads .ad-placeholder { height: auto !important; line-height: normal !important; background: none !important; }
.overlay { background: linear-gradient(to top, rgba(19, 24, 69, .88), rgba(19, 24, 69, 0)); }

/* Jobs pages */
.job-card, .card, .job-info-card, .description-card { background: var(--white) !important; border: 1px solid var(--line) !important; border-radius: var(--radius-m) !important; box-shadow: var(--shadow) !important; }
.job-card h3, .job-card h3 a { color: var(--indigo) !important; font-weight: 700; font-size: 1.08rem !important; }
.job-card a[style*="background"] { background: var(--ajrak) !important; border-radius: 999px !important; }
.btn-primary, .subscribe-btn { background: var(--ajrak) !important; border-color: var(--ajrak) !important; border-radius: 999px !important; }
.job-summary-table th, .industry-summary-table th { background: var(--indigo) !important; }
.job-summary-table td, .industry-summary-table td, .job-summary-table th, .industry-summary-table th { border-color: var(--line) !important; }
.filter-row select { border: 2px solid var(--line) !important; border-radius: 999px !important; font: inherit; padding: 8px 14px !important; }
.breadcrumbs, .breadcrumb-box { font-size: .9rem; color: var(--muted); padding: 14px 0 6px; }
.breadcrumbs a, .breadcrumb-box a { color: var(--muted); }
.popup-banner { border: 0 !important; border-top: 5px solid var(--marigold) !important; border-radius: 16px !important; box-shadow: 0 20px 50px rgba(19, 24, 69, .3) !important; bottom: 96px !important; }
.popup-content h2, .close-btn { color: var(--indigo) !important; font-family: var(--font) !important; }
.popup-content { font-family: var(--font) !important; }
.job-info-row i { color: var(--ajrak); }
.is-home .kdc-brandbar .kdc-search { display: none; }
