/* =========================================
   Kawalis UI - CLEAN CSS (RE-ORDERED)
   - NO design changes
   - only reordered sections
   - grouped additions at correct places
========================================= */

/* =========================================
   Reset
========================================= */
html, body { margin: 0; padding: 0; }

/* =========================================
   Fonts
========================================= */
@font-face {
  font-family: "Nizar Bukra";
  src: url("../fonts/nizar-bukra/NizarBukraRegular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nizar Bukra";
  src: url("../fonts/nizar-bukra/NizarBukraBold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================
   Tokens
========================================= */
:root {
  /* Brand */
  --brand-primary: #FACC1A;
  --brand-dark: #1A1A1A;

  /* Text */
  --text-dark: #111;
  --text-muted: #666;
  --text-muted-2: #777;

  /* Background / Borders */
  --bg-page: #fffffc;
  --bg-white: #fff;
  --border-soft: #eee;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 6px;
  --radius-pill: 999px;

  /* Spacing */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;

  /* Layout */
  --page-pad: clamp(16px, 4vw, 60px);
  --nav-gap: clamp(10px, 1.2vw, 40px);
  --logo-gap: clamp(10px, 4vw, 90px);

  /* Fonts */
  --font-family: "Zain", sans-serif;
  --font-heading: "Nizar Bukra", var(--font-family);
  --font-ui: "Inter", sans-serif;

  /* Featured */
  --bg-featured: #FFFDF3;
  --featured-divider: rgba(0, 0, 0, 0.08);

  /* Motion */
  --transition: 0.2s ease;

  /* Overlays */
  --overlay-gradient: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 36.65%,
    rgba(0, 0, 0, 0.8) 87.99%
  );
}

/* =========================================
   Base
========================================= */
body {
  font-family: var(--font-family);
  background: var(--bg-page);
  color: var(--text-dark);
}

/* =========================================
   Helpers / Shared Patterns
========================================= */
 
/* Shared title style (Behind / Local News) */
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.2;
  margin: 0;
  position: relative;
  padding-right: 18px;
  color: #1A1A1A;
}
.section-title::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 60px;
  background: var(--brand-primary);
  border-radius: 10px;
}

/* Shared overlay: pseudo elements only */
.overlay-gradient::after,
.featured__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: var(--overlay-gradient); */
}

/* Shared overlay: real elements */
.bk-feature__overlay,
.reels__media .bk-feature__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-gradient);
}

/* Shared clamp */
.featured__title,
.sidebar-news__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================
   Header
========================================= */
.header { background: var(--brand-dark); }

.header__inner {
  width: 100%;
  height: 95px;
  padding: 20px 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: var(--logo-gap);
  align-items: center;
  box-sizing: border-box;
}

/* keep same padding behavior */
.header__inner.container-fluid {
  padding-left: 60px !important;
  padding-right: 60px !important;
}

.header__logo {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header__logo img {
  width: clamp(90px, 14vw, 125px);
  height: clamp(40px, 6vw, 55px);
  object-fit: contain;
  display: block;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  white-space: nowrap;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.header__nav--right { justify-self: end; justify-content: flex-end; }
.header__nav--left  { justify-self: start; justify-content: flex-start; }

.header__link {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
  line-height: 34px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  opacity: 0.92;
}
.header__link:hover { opacity: 1; color: var(--brand-primary); }
.header__link--active { font-weight: 800; opacity: 1; color: var(--brand-primary); }

/* Mobile toggle */
.header__toggle {
  position: absolute;
  left: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  border-radius: 10px;
  padding: 10px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.header__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 999px;
  opacity: 0.9;
  transition: var(--transition);
}
.header__toggle:hover { border-color: rgba(250, 204, 26, 0.7); }
.header__toggle:hover span { background: var(--brand-primary); opacity: 1; }

/* Offcanvas */
.mobile-menu.offcanvas {
  background: rgba(26, 26, 26, 0.82);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 18px;
}
.mobile-menu .offcanvas-title {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 22px;
  margin: 0;
  color: #fff;
}
.mobile-menu__nav { display: flex; flex-direction: column; gap: 10px; }
.mobile-menu__link {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  font-size: 18px;
  line-height: 34px;
  padding: 8px 12px;
  border-radius: 10px;
  opacity: 0.92;
  transition: var(--transition);
}
.mobile-menu__link:hover {
  opacity: 1;
  color: var(--brand-primary);
  background: rgba(255, 255, 255, 0.06);
}
.mobile-menu__link.is-active { font-weight: 700; color: var(--brand-primary); opacity: 1; }

/* =========================================
   Featured
========================================= */
.featured__grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 28px;
  align-items: stretch;
  min-height: 0;
}

.featured__hero,
.featured__sidebar { min-width: 0; min-height: 0; }

.featured__hero { display: flex; min-height: 0; }
.featured__hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.featured__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 34px;
  line-height: 45px;
  margin: 0 0 20px;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.featured__excerpt {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 22px;
  margin: 0 0 16px;
  color: #1A1A1A;
}

.featured__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  height: 500px;
  background: #000;
}
.featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured__tag {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: #fff;
  color: var(--brand-primary);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-weight: 400;
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.featured__indicators {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 5;
  display: flex;
  gap: 10px;
}
.featured__indicators button {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
  padding: 0;
  outline: none;
}
.featured__indicators button.is-active { background: var(--brand-primary); }

/* Sidebar */
.featured__sidebar {
  height: 100%;
  padding-left: 6px;
  min-height: 0;
  overflow: hidden;
  display: flex;
}
.featured__sidebar-inner {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-news__item {
  display: flex;
  gap: 18px;
  padding-right: 18px;
  border-right: 3px solid var(--brand-primary);
  text-decoration: none;
  color: inherit;
}
.sidebar-news__thumb {
  width: 155px;
  flex: 0 0 155px;
  height: 97px;
  object-fit: cover;
  border-radius: 6px;
}
.sidebar-news__meta { flex: 1; min-width: 0; }
.sidebar-news__time {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  color: #7D7D7D;
  display: block;
  margin-bottom: 8px;
}
.sidebar-news__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  line-height: 22px;
  color: #111;
  margin: 0;
  overflow-wrap: anywhere;
}
.sidebar-news__item:hover .sidebar-news__title { text-decoration: underline; }

/* =========================================
   Behind / Cards
========================================= */
.behind { padding-top: 60px; }

.behind__head,
.local-news__head { display: flex; justify-content: flex-start; margin-bottom: 24px; }

.behind__title,
.local-news__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.2;
  margin: 0;
  position: relative;
  padding-right: 18px;
  color: #1A1A1A;
}
.behind__title::after,
.local-news__title::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 60px;
  background: var(--brand-primary);
  border-radius: 10px;
}

.behind__grid {
  display: grid;
  grid-template-columns: 1fr 2.2fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.behind__col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.behind__col .bk-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* small card */
.bk-card {
  width: 100%;
  padding: 16px;
  gap: 10px;
  border-radius: 6px;
  border: 1px solid rgba(226, 226, 226, 0.8);
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bk-card__img {
  height: 89px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}
.bk-time {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  color: #7D7D7D;
  margin-bottom: 10px;
  display: block;
}
.bk-text {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 13px;
  line-height: 150%;
  text-align: right;
  color: #1A1A1A;
  margin: 0;
}

/* center feature */
.bk-feature {
  padding: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bk-feature__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}
.bk-feature__overlay { z-index: 1; pointer-events: none; }
.bk-feature__content {
  position: absolute;
  right: 30px;
  left: 30px;
  bottom: 30px;
  z-index: 2;
  color: #fff;
}
.bk-feature__cat {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 3;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  color: var(--brand-primary);
}
.bk-feature__title {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 32px;
  line-height: 34px;
  margin: 0;
}
.bk-feature__desc {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.9;
}

/* =========================================
   Reels
========================================= */
.reels .behind__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.reels__col { gap: 18px; }

/* Reel item */
.reel-item {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 16px 16px 16px 0;
  border-right: 2px solid var(--brand-primary);

  min-height: 109px;
  width: 100%;
  box-sizing: border-box;

  text-decoration: none !important;
  position: relative;
}
.reel-item:hover,
.reel-item *,
.reel-item:hover * { text-decoration: none !important; }

.reel-item__content { flex: 1; min-width: 0; }

.reel-item__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  text-align: right;
  color: #1A1A1A;
  margin: 0 0 6px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reel-item__time {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  color: #7D7D7D;
  display: block;
}
.reel-item__thumb {
  width: 75px;
  height: 75px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 75px;
}

/* Center media */
.reels__media {
  width: min(440px, 100%);
  height: 619px;
  padding: 0 16px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}
.reels__media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.reels__mute {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;

  width: 44px;
  height: 44px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.45);
  border: 0;
  outline: none;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  display: grid;
  place-items: center;

  color: #fff;
  cursor: pointer;
}
.reels__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}
.reels__progress-bar {
  height: 100%;
  width: 25%;
  display: block;
  background: var(--brand-primary);
}
.reels__mute-ico { width: 20px; height: 20px; display: block; }
.reels__media-ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; }

/* Mobile bar */
.reels__mobile-bar { display: none; }

/* FB Frame + Video */
.reels__fb-frame{
  position:absolute;
  inset:0;
  z-index:0;
  border-radius:12px;
  overflow:hidden;
  transition: opacity 0.2s ease;
}
.reels__fb-frame iframe{
  width:100%;
  height:100%;
  display:block;
}
.reels__video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  z-index:0;
}

/* =========================================
   Hero Banner
========================================= */
.hero-banner {
  position: relative;
  width: 100%;
  height: 407px;
  border-radius: 0;
  overflow: hidden;
  background: #111;
}
.hero-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.05);
  transform: scale(1.02);
}
.hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}
.hero-banner__content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 28px 60px;
}

.hero-banner__title {
  position: absolute;
  right: 60px;
  top: 60px;
  z-index: 3;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 48px;
  line-height: 130%;
  text-align: right;
  color: #fff;
  margin: 0;
}

.hero-banner__brand {
  position: absolute;
  left: 60px;
  bottom: 30px;
  z-index: 5;

  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.hero-banner__brand-mark {
  width: 10px;
  height: 60px;
  border-radius: 10px;
  background: #fff;
  opacity: 0.95;
}
.hero-banner__brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.hero-banner__brand-ar { font-family: var(--font-heading); font-weight: 700; font-size: 20px; }
.hero-banner__brand-en { font-family: var(--font-ui); font-weight: 600; font-size: 14px; opacity: 0.95; }
.hero-banner__logo { height: 60px; width: auto; display: block; object-fit: contain; }

/* =========================================
   Local News (Base)
========================================= */
.local-news__grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 28px;
  align-items: start;
}

.local-news__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:28px;
}

.local-item {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 16px;

  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 14px;

  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
.local-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.local-item__thumb {
  width: 155px;
  height: 118px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.local-item__time {
  font-family: var(--font-ui);
  font-size: 12px;
  color: #7D7D7D;
  display: block;
  margin-bottom: 8px;
}
.local-item__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  text-align: right;
  margin: 0;
}

.local-side { padding: 18px; }
.local-side__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--brand-primary);
  position: relative;
  padding-right: 12px;
}
.local-side__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #111;
  font-size: 14px;
  transition: var(--transition);
}
.local-side__link:hover {
  background: rgba(250, 204, 26, 0.10);
  color: #111;
}

/* =========================================
   Footer (k-footer only) - CLEAN
========================================= */
.k-footer { background: #111; }

.k-footer__container {
  max-width: 100%;
  margin: 0 auto;
  padding-top: 60px;
  width: 100%;
}

/* Desktop default */
.k-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr;
  gap: 24px;
  align-items: start;

  padding-inline: var(--page-pad);
  padding-bottom: 60px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Columns default order */
.k-footer__about { order: 1; }
.k-footer__links-wrap { order: 2; }
.k-footer__news { order: 3; }

/* Links wrap always keep 2 columns */
.k-footer__links-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.k-footer__col { min-width: 0; }

.k-footer__title {
  margin: 0 0 12px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.k-footer__links { display: flex; flex-direction: column; gap: 8px; }

.k-footer__links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 14px;
}
.k-footer__links a:hover {
  color: #fff;
  text-decoration: underline;
}

.k-footer__brand img {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.k-footer p,
.k-footer__muted,
.k-footer__about-text {
  font-family: var(--font-heading);
  color: #fff;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  text-align: right;
}

.k-footer__email {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.k-footer__email a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}
.k-footer__email a:hover { text-decoration: underline; }

/* newsletter */
.k-footer__form { margin-top: 6px; }
.k-footer__input {
  width: 100%;
  max-width: 488px;
  height: 58px;
  direction: rtl;
  padding: 16px;
  border-radius: 6px;

  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);

  color: #fff;
  outline: none;
}
.k-footer__input::placeholder { color: rgba(255, 255, 255, 0.45); }

.k-footer__bottom {
  padding-top: 16px;
  padding-inline: var(--page-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}

/* Bottom items */
.k-footer__bottom-item { display: flex; color: #fff; }

.k-footer__bottom-left { text-align: right; }
.k-footer__bottom-center { text-align: center; color: rgba(255, 255, 255, 0.55); }
.k-footer__powered { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.k-footer__powered:hover { text-decoration: underline; }

.k-footer__bottom-right {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.k-footer__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;

  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}
.k-footer__icon:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* =========================================
   Smooth Page Animations (AOS)
========================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Base hidden state */
.aos {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

/* Visible */
.aos.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variations */
.aos--fade { transform: none; }
.aos--up { transform: translateY(14px); }
.aos--down { transform: translateY(-14px); }
.aos--scale {
  transform: scale(0.985);
  transform-origin: center;
}

/* =========================================
   Responsive - unified breakpoints
========================================= */
@media (max-width: 991px) {
  /* Header */
  .header__inner {
    grid-template-columns: auto 1fr auto;
    height: 70px;
    padding: 12px 16px;
    column-gap: 10px;
  }
  .header__logo { grid-column: 1; justify-self: start; }
  .header__toggle { grid-column: 3; justify-self: end; position: static; }

  /* Featured */
  .featured__grid { grid-template-columns: 1fr; }
  .featured__sidebar {
    height: auto;
    overflow: visible;
    padding-left: 0;
    padding-top: 12px;
    margin-top: 16px;
  }
  .featured__sidebar-inner { max-height: none !important; overflow: visible; }
  .featured__title { font-size: 28px; line-height: 34px; }

  /* Behind */
  .behind__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px; }
  .bk-feature { grid-column: 1 / -1; min-height: 280px; }
  .behind__col { display: contents; }
  .bk-card__img { width: 100% !important; height: 140px; border-radius: 10px; }

  /* Reels */
  .reels .behind__grid,
  .reels__grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .reels__col--right,
  .reels__col--left { display: none !important; }

  .reels__media {
    order: 1;
    width: 100%;
    max-width: 100%;
    height: 420px;
    padding: 0;
  }

  .reels__mobile-bar {
    display: flex;
    order: 2;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;

    scrollbar-width: thin;
    scrollbar-color: rgba(250, 204, 26, 0.85) transparent;
  }

  .reels__mobile-bar::-webkit-scrollbar { height: 5px; }
  .reels__mobile-bar::-webkit-scrollbar-track { background: transparent; }
  .reels__mobile-bar::-webkit-scrollbar-thumb {
    background: rgba(250, 204, 26, 0.85);
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  .reels__mobile-bar::-webkit-scrollbar-thumb:hover { background: rgba(250, 204, 26, 1); }

  .reels__mobile-bar .reel-item {
    border-right: 2px solid var(--brand-primary) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    flex: 0 0 65%;
    max-width: 65%;
    padding: 16px 16px 16px 0 !important;

    scroll-snap-align: start;
    min-height: 109px;
  }

  .reels__mobile-bar .reel-item__thumb { width: 75px; height: 75px; flex: 0 0 75px; }
  .reels__mobile-bar .reel-item__title { font-size: 14px; line-height: 1.55; -webkit-line-clamp: 2; }

  /* Hero Banner */
  .hero-banner { height: 220px; min-height: 240px; padding: 24px 0; }
  .hero-banner__content {
    height: auto;
    padding: 0 16px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
  }

  .hero-banner__brand,
  .hero-banner__title { position: static !important; }

  .hero-banner__logo { height: 44px; width: auto; }
  .hero-banner__brand-mark { height: 46px; }
  .hero-banner__title {
    font-size: 32px;
    line-height: 1.35;
    margin: 0;
    width: 100%;
    text-align: right;
  }

  /* Local News */
  .local-news__grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .behind__grid { grid-template-columns: 1fr !important; }
  .bk-feature { min-height: 240px; }
  .bk-card__img { height: 120px; }

  .local-news__cards { grid-template-columns: 1fr; }
  .local-item { grid-template-columns: 92px 1fr; }
  .local-item__thumb { width: 92px; height: 70px; }
}

@media (max-width: 480px) {
  .hero-banner__title { font-size: 28px; }
   .k-news-list__thumb-wrap{
    width: 100%;
    height: auto;
    flex: 0 0 auto;
  }

 .k-news-list__thumb{
    width: 100%;
    height: 200px;        /* تقدري تغيريها */
    object-fit: cover;
    display: block;
    border-radius: 6px;
  }
}

/* =========================================
   Footer Responsive Layout (kept behavior)
========================================= */
@media (max-width: 992px) {
  .k-footer__top { grid-template-columns: 1fr 1fr; }
  .k-footer__about { grid-column: 1 / -1; }
  .k-footer__links-wrap { grid-column: 1 / 2; }
  .k-footer__news { grid-column: 2 / 3; }
}

@media (max-width: 576px) {
  .k-footer__top { grid-template-columns: 1fr; }

  .k-footer__about,
  .k-footer__links-wrap,
  .k-footer__news { grid-column: auto; }

  .k-footer__links-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .k-footer__bottom-item.reserved { display: none; }
}

/* =========================================
   Featured Fixes / Clamps (ADDITIONS)
========================================= */
.featured__media{
  height: 480px;
  min-height: 480px;
  max-height: 480px;
}

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

/* ✅ Title ثابت بسطرين */
.featured__title{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(45px * 2);
}

/* ✅ Excerpt ثابت بـ 3 أسطر */
.featured__excerpt{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(22px * 3);
}

/* الوضع الطبيعي */
.featured__media{
  height: 480px;
}

/* ✅ إذا ما في excerpt أو فاضي → زيدي ارتفاع الصورة */
.featured__hero-inner:not(:has(.featured__excerpt:not(:empty))) .featured__media{
  height: 560px;
}

/* =========================================
   Fixed FAB Popup (Akhbar)
========================================= */
.news-fab{
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
}

.news-fab__btn{
  border: 0;
  background: #FACC1A;
  color: #111;
  font-family: "Nizar Bukra", "Zain", sans-serif;
  font-weight: 700;
  font-size: 20px;
  padding: 16px 28px;
  border-radius: 999px;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 14px;

  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.news-fab__ico{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(0,0,0,0.12);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.news-fab__popup{
  position: absolute;
  bottom: calc(100% + 18px);
  right: 0;
  width: min(520px, 86vw);

  background: #FFFDF3;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);

  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
  padding: 18px;

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.2s ease;
}

.news-fab.is-open .news-fab__popup{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.news-fab__list{
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 360px;
  overflow: auto;
  padding-right: 6px;
}

.news-fab__item{
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;

  text-decoration: none;
  color: #111;

  padding: 14px 12px;
  border-radius: 10px;
}

.news-fab__item:hover{
  background: rgba(0,0,0,0.04);
}

.news-fab__avatar{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 44px;
}

.news-fab__text{
  flex: 1;
  font-family: "Nizar Bukra", "Zain", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0;
}

/* =========================================
   Local News (Tabs version) - CLEAN
========================================= */
.local-news__grid{
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 28px;
  align-items: stretch;
}

/* Tabs Header (NO main title) */
.local-tabs-head{
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.local-tabs{
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.local-tabs__btn{
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;

  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 22px;
  color: #777;

  position: relative;
  padding-right: 16px;
  transition: var(--transition);
}

.local-tabs__btn:hover{ color: #111; }

.local-tabs__btn.is-active{
  color: #111;
  font-weight: 800;
}

.local-tabs__btn.is-active::after{
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 32px;
  background: var(--brand-primary);
  border-radius: 999px;
}

/* Cards */
.local-news__cards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.local-item{
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 16px;

  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 14px;

  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.local-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.local-item__thumb{
  width: 155px;
  height: 118px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.local-item__time{
  font-family: var(--font-ui);
  font-size: 12px;
  color: #7D7D7D;
  display: block;
  margin-bottom: 8px;
}

.local-item__title{
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  text-align: right;
  margin: 0;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ✅ Side Column (NO padding-top hack) */
.local-news__side{
  padding-top: 0 !important;
  height: 100%;
}

/* =========================================
   Platforms banner (FINAL)
========================================= */
.platform-banner{
  width: 100%;
  height: 100%;
  min-height: 504px;

  border-radius: 6px;
  padding: 30px;

  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  background: #111;
  text-decoration: none;
  color: #fff;
}

/* image */
.platform-banner__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* overlay */
.platform-banner__overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0.85) 90%
  );
}

/* content layer */
.platform-banner__content{
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.platform-banner__title{
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 14px;
  color: var(--brand-primary);
}

.platform-banner__text{
  margin: 0;
  font-family: "Nizar Bukra", "Zain", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 34px;
}

/* Responsive */
@media (max-width: 991px){
  .local-news__grid{ grid-template-columns: 1fr; }
  .local-news__cards{ grid-template-columns: 1fr; }
  .platform-banner{ min-height: 360px; }
}

@media (max-width: 540px){
  .local-item{ grid-template-columns: 92px 1fr; }
  .local-item__thumb{ width: 92px; height: 70px; }

  .local-tabs__btn{ font-size: 18px; }
  .local-tabs__btn.is-active::after{ height: 26px; }
}

/* =========================================
   k-home-hero (Wrapper)
========================================= */
.k-home-hero{
  padding-top: 60px;
  padding-bottom: 60px;
}

.k-home-hero__container{
  padding-inline: 16px;
}

@media (min-width: 768px){
  .k-home-hero__container{
    padding-inline: 60px;
  }

}

.k-home-hero__grid{
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.k-home-hero__col{
  min-width: 0;
}

.k-home-hero__col--8{ flex: 0 0 66.6667%; }
.k-home-hero__col--4{ flex: 0 0 33.3333%; }

@media (max-width: 991px){
  .k-home-hero__grid{
    flex-direction: column;
  }
  .k-home-hero__col--8,
  .k-home-hero__col--4{
    width: 100%;
    flex: 0 0 auto;
  }
}

/* =========================================
   k-hero-carousel
========================================= */
.k-hero-carousel{
  width: 100%;
}

/* ✅ نمنع تغيير ارتفاع الكاريوسل بناء على المحتوى */
.k-hero-carousel__slider .carousel-inner{
  overflow: visible;
}

.k-hero-carousel__slider .carousel-item{
  min-height: 0;
}

/* layout */
.k-hero-carousel__content{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.k-hero-carousel__head{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  align-self: stretch;
}

/* title */
.k-hero-carousel__title{
  margin: 0;
  width: 100%;
}

.k-hero-carousel__title-link{
  color: #1A1A1A;
  text-align: right;
  font-family: "Nizar Bukra";
  font-size: 34px;
  font-style: normal;
  font-weight: 700;
  line-height: 45px;
  text-decoration: none;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* excerpt */
.k-hero-carousel__excerpt{
  margin: 0;
  width: 100%;

  color: #1A1A1A;
  text-align: right;
  font-family: "Nizar Bukra";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* ✅ media ثابت + gradient overlay حسب الفيجما */
.k-hero-carousel__media{
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  width: 100%;

  height: 500px;
  min-height: 500px;
  max-height: 500px;

  background: #111;
  text-decoration: none;

  display: flex;
  padding: 30px;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

/* image */
.k-hero-carousel__media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  border-radius: 6px;
  z-index: 0;

  transform: scale(1);
  transition: transform .35s ease, filter .35s ease;
}

/* ✅ hover بسيط للـ hero */
.k-hero-carousel__media:hover img{
  transform: scale(1.02);
  filter: brightness(.92);
}

/* ✅ overlay gradient Figma */
.k-hero-carousel__media::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  z-index: 1;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.00) 36.65%,
    rgba(0, 0, 0, 0.80) 87.99%
  );
}

/* badge */
.k-hero-carousel__badge{
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;

  display: flex;
  padding: 6px 18px;
  align-items: center;
  gap: 10px;

  border-radius: 999px;
  background: #fff;

  color: #FACC1A;
  font-family: "Nizar Bukra", "Zain", sans-serif;
  font-size: 14px;
  font-weight: 400;

  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}

/* ✅ indicators ثابتة تظهر على كل السلايدات */
.k-hero-carousel__slider{
  position: relative;
}

.k-hero-carousel__indicators{
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 18px;

  z-index: 5;
  display: flex;
  gap: 10px;
}

.k-hero-carousel__indicators button{
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: 0;
  padding: 0;
  outline: none;
}

.k-hero-carousel__indicators button.is-active{
  background: #FACC1A;
}

/* responsive media height */
@media (max-width: 991px){
  .k-hero-carousel__media{
    height: 420px;
    min-height: 420px;
    max-height: 420px;
    padding: 16px;
  }

  .k-hero-carousel__title-link{
    font-size: 28px;
    line-height: 34px;
  }
}

/* =========================================
   k-news-list (Independent)
========================================= */
.k-news-list{
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* item */
.k-news-list__item{
  display: flex;
  padding-right: 16px;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;

  border-right: 2px solid #FACC1A;

  text-decoration: none;
  color: inherit;
}

/* thumb (Figma) */
.k-news-list__thumb{
  width: 155px;
  height: 97px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  flex: 0 0 155px;

  transform: scale(1);
  transition: transform .28s ease;
}

/* ✅ Hover: تكبير للصورة فقط */
.k-news-list__item:hover .k-news-list__thumb{
  transform: scale(1.06);
}

.k-news-list__meta{
  flex: 1;
  min-width: 0;
}

/* time */
.k-news-list__time{
  display: block;
  margin-bottom: 8px;

  color: #7D7D7D;
  font-family: "Nizar Bukra";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* title */
.k-news-list__title{
  margin: 0;

  overflow: hidden;
  color: #1A1A1A;
  text-align: right;
  text-overflow: ellipsis;

  font-family: "Nizar Bukra";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  align-self: stretch;
}

/* =========================================
   Hero media content + stretch fixes
========================================= */
.k-hero-carousel__media-content{
  position: relative;
  z-index: 3;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1 0 0;

  width: min(791px, 100%);
}

/* خلي العمودين بنفس الارتفاع */
.k-home-hero__grid{
  align-items: stretch;
}

/* خلي الكاريوسل يتمدد */
.k-hero-carousel,
.k-hero-carousel__slider,
.k-hero-carousel__slider .carousel-inner,
.k-hero-carousel__slider .carousel-item,
.k-hero-carousel__content{
  height: 100%;
}

/* IMPORTANT: خليه ياخذ الباقي */
.k-hero-carousel__media{
  flex: 1 0 0;
  height: auto !important;
  max-height: none !important;
}

.k-hero-carousel__media img{
  transform: scale(1);
  transition: transform .5s cubic-bezier(.22,.61,.36,1),
              filter .5s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.k-hero-carousel__media:hover img{
  transform: scale(1.015);
  filter: brightness(.95);
}

@keyframes heroZoomSoft{
  0%   { transform: scale(1); }
  100% { transform: scale(1.02); }
}

.k-hero-carousel__media img{
  animation: heroZoomSoft 10s ease-in-out infinite alternate;
}

/* =========================================
   Bootstrap Carousel: DISABLE slide/fade
========================================= */
#heroCarousel .carousel-item{
  transition: none !important;
}

#heroCarousel .carousel-item-next,
#heroCarousel .carousel-item-prev,
#heroCarousel .carousel-item.active{
  transform: none !important;
}

/* prevent any leftover translate */
#heroCarousel .carousel-inner{
  transform: none !important;
}

/* =========================================
   News list responsive
========================================= */
@media (max-width: 991px){
  .k-news-list{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .k-news-list__item{
    border-right: 0;
    padding-right: 0;
    flex-direction: column;
    gap: 10px;
  }

  .k-news-list__thumb{
    width: 100%;
    height: 140px;
    flex: 0 0 auto;
  }
}

@media (max-width: 768px){
  .k-news-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
    .k-category-grid__side{
  display: none;
}
}

@media (max-width: 480px){
  .k-news-list{
    grid-template-columns: 1fr;
  }

  .k-news-list__thumb{
    height: 160px;
  }
}

@media (max-width: 767.98px){
  /* اخفي آخر عنصرين من قائمة السايدبار */
  .k-news-list__item:nth-last-child(-n+2){
    display: none !important;
  }
}
/* =========================================
   KAWALIS: Featured Section (Figma)
   Class: k-section--featured
   - semantic + reusable
   - RTL friendly
   - responsive
========================================= */

/* ============ Section wrapper ============ */
.k-section{
  width: 100%;
  box-sizing: border-box;
  padding-left: 60px;
  padding-right: 60px;
}

/* featured section style (Figma background + borders) */
.k-section--featured{
  margin-top: 60px;
  background: #FFFDF3;
  border-top: 2px solid #FACC1A;
  border-bottom: 2px solid #FACC1A;
}

/* ============ Container ============ */
.k-section--featured .k-section__container{
  
  width: 100%;
  margin: 0 auto;

  /* ✅ padding 60 من كل الاتجاهات */
  padding-top: 60px;
  padding-bottom: 60px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

/* ============ Head / Title ============ */
.k-section--featured .k-section__head{
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.k-section--featured .k-section__title{
  margin: 0;
  padding: 0;
}

/* clickable title */
.k-section--featured .k-section__title-link{
  position: relative;

  overflow: hidden;
  color: #1A1A1A;
  text-align: right;
  text-overflow: ellipsis;

  font-family: "Nizar Bukra";
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;

  text-decoration: none;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  /* space for the vertical bar */
  padding-right: 18px;
}

/* yellow bar */
.k-section--featured .k-section__title-link::after{
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

  width: 8px;
  height: 60px;

  border-radius: 10px;
  background: #FACC1A;
}

.k-section--featured .k-section__title-link:hover{
  color: #111;
}

/* ============ Grid 3 columns (1 / 2 / 1) ============ */
.k-section--featured .k-section__grid{
  width: 100%;

  display: grid;
  grid-template-columns: 1fr 2fr 1fr; /* ✅ الوسط = مجموع العمودين */
  gap: 28px;

  justify-content: flex-end;
  align-items: start;
  align-self: stretch;
}

/* Side columns */
.k-section--featured .k-section__col{
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

/* =========================================
   Mini cards (side)
========================================= */
.k-section--featured .k-mini-card{
  background: transparent;
  border-radius: 10px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  min-width: 0;
}

/* image area */
.k-section--featured .k-mini-card__media{
  display: block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
}

.k-section--featured .k-mini-card__media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  border-radius: 10px;

  transform: scale(1);
  transition: transform .35s ease, filter .35s ease;
}

.k-section--featured .k-mini-card__media:hover img{
  transform: scale(1.03);
  filter: brightness(.96);
}

/* time */
.k-section--featured .k-mini-card__time{
  color: #7D7D7D;
  text-align: right;

  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;

  margin: 0;
}

/* title */
.k-section--featured .k-mini-card__title{
  margin: 0;

  color: #1A1A1A;
  text-align: right;

  font-family: "Nizar Bukra";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;

  overflow: hidden;
  text-overflow: ellipsis;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* =========================================
   Feature card (center)
========================================= */
.k-section--featured .k-feature-card{
  min-width: 0;
}

.k-section--featured .k-feature-card__link{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;

  height: 100%;
  min-height: 100%;

  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;

  /* ✅ padding 30 حسب الفيجما */
  padding: 30px;
  box-sizing: border-box;

}

/* background image */
.k-section--featured .k-feature-card__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;

  transform: scale(1);
  transition: transform .6s cubic-bezier(.22,.61,.36,1),
              filter .6s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

/* hover */
.k-section--featured .k-feature-card__link:hover .k-feature-card__img{
  transform: scale(1.02);
  filter: brightness(.95);
}

/* overlay */
.k-section--featured .k-feature-card__overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.00) 36.65%,
    rgba(0, 0, 0, 0.80) 87.99%
  );
}

/* badge */
.k-section--featured .k-feature-card__badge{
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;

  background: #fff;
  color: #FACC1A;

  padding: 6px 18px;
  border-radius: 12px;

  font-family: "Nizar Bukra", "Zain", sans-serif;
  font-size: 14px;
  font-weight: 400;

  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}

/* content */
.k-section--featured .k-feature-card__content{
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.k-section--featured .k-feature-card__title{
  margin: 0;

  color: #fff;
  text-align: right;

  font-family: "Nizar Bukra";
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;

  overflow: hidden;
  text-overflow: ellipsis;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.k-section--featured .k-feature-card__desc{
  margin: 0;

  color: rgba(255,255,255,.92);
  text-align: right;

  font-family: "Nizar Bukra", "Zain", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.8;

  overflow: hidden;
  text-overflow: ellipsis;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* =========================================
   Responsive
========================================= */

/* Tablet & down */
@media (max-width: 991px){
  .k-section--featured .k-section__container{
   
    gap: 18px;
  }

  .k-section--featured .k-section__title-link{
    font-size: 30px;
  }

  .k-section--featured .k-section__title-link::after{
    height: 46px;
  }

  /* stack grid */
  .k-section--featured .k-section__grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* feature card becomes first (like hero) */
  .k-section--featured .k-feature-card{
    order: 1;
  }

  .k-section--featured .k-section__col:first-child{
    order: 2;
  }

  .k-section--featured .k-section__col:last-child{
    order: 3;
  }

  /* feature height */
  .k-section--featured .k-feature-card__link{
    min-height: 320px;
    padding: 16px;
  }

  .k-section--featured .k-feature-card__title{
    font-size: 22px;
  }
}

/* Mobile */
@media (max-width: 540px){
  .k-section--featured .k-section__title-link{
    font-size: 28px;
  }

  .k-section--featured .k-mini-card__title{
    font-size: 15px;
  }

  .k-section--featured .k-mini-card__time{
    font-size: 13px;
  }

  .k-section--featured .k-feature-card__badge{
    top: 14px;
    right: 14px;
    padding: 6px 14px;
    font-size: 13px;
  }

  .k-section--featured .k-feature-card__desc{
    -webkit-line-clamp: 3;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .k-section--featured *{
    transition: none !important;
    animation: none !important;
  }
}
/* =========================================
   Featured: 3 Columns Container (Figma)
   - display: flex
   - justify-content: flex-end
   - align-items: flex-start
   - gap: 28px
   - align-self: stretch
   - middle column width = left + right (1/2/1)
========================================= */

.k-section--featured .k-section__grid{
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 28px;
  align-self: stretch;

  width: 100%;
  box-sizing: border-box;
}

/* Left + Right columns */
.k-section--featured .k-section__col{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;

  /* ✅ العمود الجانبي = 1 جزء */
  flex: 1 1 0;

  min-width: 0;
  box-sizing: border-box;
}

/* Center feature card wrapper */
.k-section--featured .k-feature-card{
  /* ✅ الوسط = مجموع الجانبين */
  flex: 2 1 0;

  min-width: 0;
  box-sizing: border-box;
}
/* =========================================
   Mini Card Image (Figma)
   - width:  100%
 
   - radius: 6px
   - cover
========================================= */

.k-section--featured .k-mini-card__media{
  display: block;

  width:  100%
 ;
  border-radius: 6px;

  overflow: hidden;
  text-decoration: none;

  /* مهم لو جنبها نص */
  flex: 0 0  100%
 ;

  box-sizing: border-box;
}

.k-section--featured .k-mini-card__media img{
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;
  border-radius: 6px;
}
/* =========================================
   KAWALIS SECTION SYSTEM
   SECTION: k-section--featured (Figma)
   - background: #FFFDF3
   - border-top/bottom: 2px solid #FACC1A
   - container width: 1320px
   - container padding: 60px 0
   - column gap: 28px
========================================= */

/* base section */
.k-section{
  width: 100%;
  box-sizing: border-box;
}

/* skin */
.k-section--featured{
  background: #FFFDF3;
  border-top: 2px solid #FACC1A;
  border-bottom: 2px solid #FACC1A;
}

/* =========================================
   Container (Figma)
========================================= */
.k-section--featured .k-section__container{
  display: flex;
   
  padding-top: 60px ;
  padding-bottom:60px;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;

  margin: 0 auto;
  box-sizing: border-box;
}

/* =========================================
   Head / Title (Figma)
========================================= */
.k-section--featured .k-section__head{
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.k-section--featured .k-section__title{
  margin: 0;
  padding: 0;
}

.k-section--featured .k-section__title-link{
  position: relative;

  overflow: hidden;
  color: #1A1A1A;
  text-align: right;
  text-overflow: ellipsis;

  font-family: "Nizar Bukra";
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;

  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  padding-right: 18px;
}

.k-section--featured .k-section__title-link::after{
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

  width: 8px;
  height: 60px;

  border-radius: 10px;
  background: #FACC1A;
}

.k-section--featured .k-section__title-link:hover{
  color: #111;
}

/* =========================================
   3 Columns Container (Figma)
   - display:flex
   - gap: 28px
   - middle column = sum of both sides
========================================= */
.k-section--featured .k-section__grid{
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 28px;
  align-self: stretch;

  width: 100%;
  box-sizing: border-box;
}

/* side columns */
.k-section--featured .k-section__col{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;

  flex: 1 0 0;

  min-width: 0;
  box-sizing: border-box;
}

/* center column wrapper */
.k-section--featured .k-feature-card{
  flex: 2 0 0;

  min-width: 0;
  box-sizing: border-box;
}

/* =========================================
   Mini Card (Side) - Figma
========================================= */
.k-section--featured .k-mini-card{
  display: flex;
    border-radius: 6px;
  border: 1px solid rgba(226, 226, 226, 0.80);
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
padding: 16px;
  min-width: 0;
  box-sizing: border-box;
}

/* ✅ Thumb background (Figma)
   width:  100%
 ;
   flex: 1 0 0;
   border-radius: 6px;
   background: url(...) lightgray 50% / cover no-repeat;
*/
.k-section--featured .k-mini-card__thumb{
  width:  100%
 ;
  flex: 1 0 0;

  border-radius: 6px;

  background-color: lightgray;
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;

  display: block;
  overflow: hidden;
  text-decoration: none;

  box-sizing: border-box;

  transform: translateZ(0);
  transition: transform .45s cubic-bezier(.22,.61,.36,1),
              filter .45s cubic-bezier(.22,.61,.36,1);
}

.k-section--featured .k-mini-card__thumb:hover{
  transform: scale(1.02);
  filter: brightness(.95);
}

/* time (Figma) */
.k-section--featured .k-mini-card__time{
  align-self: stretch;

  color: #7D7D7D;
  font-family: "Nizar Bukra";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;

  margin: 0;
  display: block;
  text-align: right;
}

/* title (Figma) */
.k-section--featured .k-mini-card__title{
  align-self: stretch;

  color: #1A1A1A;
  text-align: right;

  font-family: "Nizar Bukra";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;

  margin: 0;

  overflow: hidden;
  text-overflow: ellipsis;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* =========================================
   Feature Card (Center)
========================================= */
.k-section--featured .k-feature-card__link{
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;

  width: 100%;
  height: 100%;
  min-height: 504px;

  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;

  padding: 30px;
  box-sizing: border-box;

}

/* image */
.k-section--featured .k-feature-card__img{
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;
  z-index: 0;

  transform: scale(1);
  transition: transform .6s cubic-bezier(.22,.61,.36,1),
              filter .6s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.k-section--featured .k-feature-card__link:hover .k-feature-card__img{
  transform: scale(1.02);
  filter: brightness(.95);
}

/* overlay */
.k-section--featured .k-feature-card__overlay{
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.00) 36.65%,
    rgba(0, 0, 0, 0.80) 87.99%
  );
}

/* badge */
.k-section--featured .k-feature-card__badge{
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;

  display: inline-flex;
  align-items: center;

  background: #fff;
  color: #FACC1A;

  padding: 6px 18px;
  border-radius: 12px;

  font-family: "Nizar Bukra", "Zain", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;

  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}

/* content */
.k-section--featured .k-feature-card__content{
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  gap: 10px;

  width: 100%;
  box-sizing: border-box;
}

/* feature title */
.k-section--featured .k-feature-card__title{
  margin: 0;

  color: #fff;
  text-align: right;

  font-family: "Nizar Bukra";
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;

  overflow: hidden;
  text-overflow: ellipsis;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* feature desc */
.k-section--featured .k-feature-card__desc{
  margin: 0;

  color: rgba(255,255,255,.92);
  text-align: right;

  font-family: "Nizar Bukra", "Zain", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.8;

  overflow: hidden;
  text-overflow: ellipsis;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* =========================================
   Responsive
========================================= */

/* prevent overflow below 1320 */
@media (max-width: 1380px){
  .k-section--featured .k-section__container{
    width: min(1320px, 100%);
 
  }
}

/* Tablet */
@media (max-width: 991px){
  .k-section--featured .k-section__container{
    width: 100%;
    
    gap: 18px;
  }

  .k-section--featured .k-section__title-link{
    font-size: 30px;
  }

  .k-section--featured .k-section__title-link::after{
    height: 46px;
  }

  .k-section--featured .k-section__grid{
    flex-direction: column;
    gap: 16px;
  }

  .k-section--featured .k-section__col{
    flex: 0 0 auto;
    width: 100%;
  }

  .k-section--featured .k-feature-card{
    flex: 0 0 auto;
    width: 100%;
    order: 1;
  }

  .k-section--featured .k-feature-card__link{
    min-height: 320px;
    padding: 16px;
  }

  .k-section--featured .k-mini-card__thumb{
    width: 100%;
    flex: 0 0 auto;
    min-height: 160px;
  }
}

/* Mobile */
@media (max-width: 540px){
  .k-section--featured .k-section__title-link{
    font-size: 28px;
  }

  .k-section--featured .k-mini-card__time{
    font-size: 13px;
  }

  .k-section--featured .k-mini-card__title{
    font-size: 15px;
  }

  .k-section--featured .k-feature-card__badge{
    top: 14px;
    right: 14px;
    padding: 6px 14px;
    font-size: 13px;
  }

  .k-section--featured .k-feature-card__desc{
    -webkit-line-clamp: 3;
  }

  .k-section--featured .k-mini-card__thumb{
    min-height: 140px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .k-section--featured *{
    transition: none !important;
    animation: none !important;
  }
}
.k-section--featured .k-mini-card__thumb{
  width:  100%
 ;
  flex: 1 0 0;

  /* ✅ بديل height */
  aspect-ratio: 260.5 / 106;

  border-radius: 6px;
  overflow: hidden;

  background-color: lightgray;
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;

  display: block;
  text-decoration: none;

  transform: translateZ(0);
  transition: transform .45s cubic-bezier(.22,.61,.36,1),
              filter .45s cubic-bezier(.22,.61,.36,1);
}
/* =========================================
   Featured: make center card stretch full height
========================================= */

/* 1) خلي الأعمدة تتمدد بنفس الارتفاع */
.k-section--featured .k-section__grid{
  display: flex;
  gap: 28px;
  align-self: stretch;

  align-items: stretch; /* ✅ مهم جدًا بدل flex-end */
}

/* 2) الأعمدة الجانبية flex وتتمدد */
.k-section--featured .k-section__col{
  display: flex;
  flex-direction: column;
  gap: 28px;

  flex: 1 0 0;
  min-width: 0;
}

/* 3) الكارد الوسطي يتمدد ويثبت minimum height */
.k-section--featured .k-feature-card{
  flex: 2 0 0;
  min-width: 0;

  display: flex;      /* ✅ يعطيه قابلية تمدد داخل flex */
  height: auto;       /* ✅ */
  min-height: 504px;  /* ✅ حسب الفيجما */
}

/* 4) الرابط لازم ياخد كامل ارتفاع الكارد */
.k-section--featured .k-feature-card__link{
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  width: 100%;
  height: 100%;       /* ✅ */
  min-height: 504px;  /* ✅ */

  border-radius: 12px;
  overflow: hidden;
  padding: 30px;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;

}

/* 5) الصورة تملأ 100% من الكارد */
.k-section--featured .k-feature-card__img{
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;       /* ✅ هذا المطلوب */

  object-fit: cover;
  display: block;
  z-index: 0;
}
.k-section--featured .k-mini-card__title{
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;        /* ✅ عدد الأسطر */

  line-height: 1.5;             /* ✅ لازم تكون قيمة ثابتة */
  min-height: calc(1.5em * 2);  /* ✅ يمنع الفراغات العشوائية */

  text-align: right;
}
/* =========================================
   KAWALIS: Category Grid Section (Figma)
   Class: k-section--category-grid
========================================= */

 

/* container */
.k-section--category-grid .k-section__container{
  
  width: 100%;
  margin: 0 auto;
  padding-top: 60px;
padding-bottom: 60;
  box-sizing: border-box;
}

/* main grid: banner + cards */
.k-section--category-grid .k-category-grid__grid{
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 28px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

/* order RTL like Figma: banner left, cards right (visually) */
.k-section--category-grid .k-category-grid__main{ order: 1; min-width: 0; }
.k-section--category-grid .k-category-grid__side{ order: 2; min-width: 0;  }

/* =========================================
   Tabs
========================================= */

.k-section--category-grid .k-category-grid__tabs-head{
 
  margin-bottom: 28px;
}

.k-section--category-grid .k-category-grid__tabs{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.k-section--category-grid .k-category-grid__tab{
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;

  font-family: "Nizar Bukra";
  font-weight: 400;
  font-size: 34px;
  line-height: 1.2;
  color: #777;

  position: relative;
  padding-right: 18px;

  transition: 0.2s ease;
}

.k-section--category-grid .k-category-grid__tab:hover{
  color: #111;
}

.k-section--category-grid .k-category-grid__tab.is-active{
  color: #111;
  font-weight: 700;
}

.k-section--category-grid .k-category-grid__tab.is-active::after{
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

  width: 8px;
  height: 60px;
  border-radius: 10px;
  background: #FACC1A;
}

/* =========================================
   Cards grid
========================================= */

.k-section--category-grid .k-category-grid__cards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

/* card */
.k-section--category-grid .k-category-card{
  min-width: 0;
}

.k-section--category-grid .k-category-card__link{
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 16px;

  padding: 14px;
  border-radius: 10px;

  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;

  text-decoration: none;
  color: inherit;

  transition: transform .2s ease, box-shadow .2s ease;
}

.k-section--category-grid .k-category-card__link:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.k-section--category-grid .k-category-card__thumb{
  width: 155px;
  height: 118px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.k-section--category-grid .k-category-card__meta{
  min-width: 0;
}

.k-section--category-grid .k-category-card__time{
  display: block;
  margin-bottom: 8px;

  color: #7D7D7D;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.k-section--category-grid .k-category-card__title{
  margin: 0;
  color: #1A1A1A;

  text-align: right;
  font-family: "Nizar Bukra";
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
   hyphens: auto;
  overflow-wrap: anywhere;
  word-break: normal;
  overflow: hidden;
}

/* =========================================
   Platform Banner (Side)
========================================= */

.k-section--category-grid .k-platform-banner{
  width: 100%;
  min-height: 504px;
  height: 100%;

  border-radius: 6px;
  overflow: hidden;

  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 30px;
  box-sizing: border-box;

  text-decoration: none;
  color: #fff;

  background: #111;
}

.k-section--category-grid .k-platform-banner__img{
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.k-section--category-grid .k-platform-banner__overlay{
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0.85) 90%
  );
}

.k-section--category-grid .k-platform-banner__content{
  z-index: 2;
}

.k-section--category-grid .k-platform-banner__title{
  margin: 0 0 10px;

  font-family: "Nizar Bukra";
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: #FACC1A;
  text-align: right;
}

.k-section--category-grid .k-platform-banner__text{
  margin: 0;

  font-family: "Nizar Bukra";
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;

  text-align: right;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 991px){
  .k-section--category-grid .k-section__container{
    padding: 24px 16px;
  }

  .k-section--category-grid .k-category-grid__grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* show banner first on mobile */
  .k-section--category-grid .k-category-grid__side{ order: 2; }
  .k-section--category-grid .k-category-grid__main{ order: 1; }

  .k-section--category-grid .k-platform-banner{
    min-height: 360px;
    padding: 16px;
  }

  .k-section--category-grid .k-category-grid__tabs{
    justify-content: flex-end;
  }

  .k-section--category-grid .k-category-grid__tab{
    font-size: 22px;
  }

  .k-section--category-grid .k-category-grid__tab.is-active::after{
    height: 34px;
    width: 6px;
  }

  .k-section--category-grid .k-category-grid__cards{
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 540px){
  .k-section--category-grid .k-category-card__link{
    grid-template-columns: 92px 1fr;
    gap: 12px;
  }

  .k-section--category-grid .k-category-card__thumb{
    width: 92px;
    height: 70px;
  }

  .k-section--category-grid .k-platform-banner__text{
    font-size: 20px;
    line-height: 30px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .k-section--category-grid *{
    transition: none !important;
    animation: none !important;
  }
}
/* Badge: المنصات الرقمية */
.k-section--category-grid .k-platform-banner__badge{
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;

  display: flex;
  padding: 6px 18px;
  align-items: center;
  gap: 10px;

  border-radius: 12px;
  background: #FFF;

  color: #FACC1A;
  font-family: "Nizar Bukra";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;

  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.k-section--category-grid .k-platform-banner__overlay{
  z-index: 1;
}

.k-section--category-grid .k-platform-banner__content{
  z-index: 2;
}

.k-section--category-grid .k-platform-banner__badge{
  z-index: 3;
}
/* =========================================
   KAWALIS: Cards Grid Section (Figma-like)
   Class: k-section--cards-grid
========================================= */

.k-section--cards-grid{
  width: 100%;
  box-sizing: border-box;
  padding-top: 60px;
  padding-bottom: 60px;
}

.k-section--cards-grid .k-section__container{
  width: 100%;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Head */
.k-section--cards-grid .k-section__head{
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.k-section--cards-grid .k-section__title{
  margin: 0;
  padding: 0;
}

/* Clickable title + yellow bar */
.k-section--cards-grid .k-section__title-link{
  position: relative;
  display: inline-block;

  color: #1A1A1A;
  text-align: right;

  font-family: "Nizar Bukra";
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;

  text-decoration: none;
  padding-right: 18px;
}

.k-section--cards-grid .k-section__title-link::after{
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

  width: 8px;
  height: 60px;
  border-radius: 10px;
  background: #FACC1A;
}

.k-section--cards-grid .k-section__title-link:hover{
  color: #111;
}

/* =========================================
   Grid
========================================= */
.k-section--cards-grid .k-cards-grid{
  width: 100%;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* =========================================
   Media Card (Image + overlay + time + title)
========================================= */
.k-section--cards-grid .k-media-card{
  height: 294px;
  min-width: 0;
}

.k-section--cards-grid .k-media-card__link{
  position: relative;
  display: block;

  width: 100%;
  height: 100%;
  min-height: 170px;

  border-radius: 6px;
  overflow: hidden;

  background: #111;
  text-decoration: none;
  color: inherit;
}

.k-section--cards-grid .k-media-card__img{
  position: absolute;
  inset: 0;

  width: 100%;
  height: 294px;
  object-fit: cover;
  display: block;
  z-index: 0;

  transform: scale(1);
  transition: transform .45s cubic-bezier(.22,.61,.36,1),
              filter .45s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.k-section--cards-grid .k-media-card__link:hover .k-media-card__img{
  transform: scale(1.03);
  filter: brightness(.95);
}

.k-section--cards-grid .k-media-card__overlay{
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0.75) 92%
  );
}

/* content bottom */
.k-section--cards-grid .k-media-card__content{
  position: absolute;
  right: 16px;
  left: 16px;
  bottom: 14px;
  z-index: 2;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.k-section--cards-grid .k-media-card__time{
  margin: 0;

  color: rgba(255,255,255,0.70);
  text-align: right;

  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.k-section--cards-grid .k-media-card__title{
  margin: 0;

  color: #fff;
  text-align: right;

  font-family: "Nizar Bukra";
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;

  overflow: hidden;
  text-overflow: ellipsis;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 991px){
  .k-section--cards-grid{
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .k-section--cards-grid .k-section__container{
    gap: 18px;
  }

  .k-section--cards-grid .k-section__title-link{
    font-size: 30px;
  }

  .k-section--cards-grid .k-section__title-link::after{
    height: 46px;
  }

  .k-section--cards-grid .k-cards-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .k-section--cards-grid .k-media-card__link{
    min-height: 160px;
  }
}

@media (max-width: 540px){
  .k-section--cards-grid .k-cards-grid{
    grid-template-columns: 1fr;
  }

 
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .k-section--cards-grid *{
    transition: none !important;
    animation: none !important;
  }
}
.k-section--cards-grid .k-media-card__link{
  position: relative;
  display: flex;
  padding: 16px;

  justify-content: flex-end; /* ✅ RTL: المحتوى يصطف يمين */
  align-items: flex-end;     /* ✅ المحتوى ينزل لتحت */
  gap: 12px;

  flex: 1 0 0;
  align-self: stretch;

  width: 100%;
  height: 100%;
  min-height: 170px;

  border-radius: 6px;
  overflow: hidden;

  background: #111;
  text-decoration: none;
  color: inherit;
}
.k-section--cards-grid .k-media-card__content{
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  gap: 8px;

  width: 100%;
  min-width: 0;
}
.k-section--cards-grid .k-media-card__time{
  color: #FFF;
  text-align: right;

  font-family: "Nizar Bukra";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;

  margin: 0;
  display: block;
  opacity: 0.92;
}
.k-card{
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  display: block;
}

/* الصورة */
.k-card__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* ✅ الجرادينت */
.k-card::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  border-radius: 6px;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.00) 30.1%,
    rgba(0, 0, 0, 0.80) 100%
  );
}

/* النص فوق الجرادينت */
.k-card__content{
  position: relative;
  z-index: 2;
}
/* =========================================
   Kawalis UI - FAB NEWS (Important News)
   Component: k-fab-news
========================================= */

.k-fab-news{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  direction: rtl;
}

/* ===== Button ===== */
.k-fab-news__btn{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
  cursor: pointer;

  border-radius: 999px;
  background: #FACC1A;

  color: #1A1A1A;
  font-family: "Nizar Bukra";
  font-size: 14px;
  font-weight: 700;
  line-height: 1;

  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.k-fab-news__btn:hover{
  filter: brightness(.98);
}

.k-fab-news__btn:active{
  transform: translateY(1px);
}

.k-fab-news__icon{
  width: 27px;
  height: 30px;
  flex-shrink: 0;
  aspect-ratio: 9/10;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;
  background: rgba(26,26,26,.08);
}

.k-fab-news__label{
  white-space: nowrap;
}

/* ===== Panel ===== */
.k-fab-news__panel{
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);

  width: min(520px, calc(100vw - 32px));
  border-radius: 14px;
  background: #fff;

  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  overflow: hidden;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .2s ease;
}

/* Open state (JS will toggle .is-open on root) */
.k-fab-news.is-open .k-fab-news__panel{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== List (Figma) ===== */
.k-fab-news__list{
  display: flex;
  padding: 24px;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  align-self: stretch;
}

/* ===== Item ===== */
.k-fab-news__item{
  width: 100%;
  text-decoration: none;
  color: inherit;

  display: flex;
  align-items: center;
  gap: 16px;

  padding: 16px;
  border-radius: 12px;
  background: #fff;

  border-right: 2px solid #FACC1A;
  transition: .18s ease;
}

.k-fab-news__item:hover{
  background: rgba(250,204,26,.07);
}

/* thumb */
.k-fab-news__thumb{
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
}

/* text (Figma typography) */
.k-fab-news__text{
  flex: 1 1 auto;
  color: #1A1A1A;
  text-align: right;
  font-family: "Nizar Bukra";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 21px */
}

/* arrow (black chevron like figma) */
.k-fab-news__arrow{
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
  position: relative;
}

.k-fab-news__arrow::before{
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;

  width: 10px;
  height: 10px;

  border-left: 3px solid #1A1A1A;
  border-bottom: 3px solid #1A1A1A;

  transform: rotate(45deg);
}

/* ===== Responsive ===== */
@media (max-width: 520px){
  .k-fab-news{
    right: 12px;
    bottom: 12px;
  }

  .k-fab-news__list{
    padding: 16px;
    gap: 12px;
  }

  .k-fab-news__item{
    padding: 12px;
    gap: 12px;
  }

  .k-fab-news__thumb{
    width: 48px;
    height: 48px;
  }
}
/* Icon must be relative for badge positioning */
.k-fab-news__icon{
  position: relative;
  width: 27px;
  height: 30px;
  flex-shrink: 0;
  aspect-ratio: 9/10;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Red dot */
.k-fab-news__badge{
  position: absolute;
  top: -3px;
  right: -3px;

  width: 8px;
  height: 8px;
  border-radius: 999px;

  background: #FF2E2E;
  box-shadow: 0 0 0 2px #FACC1A; /* نفس خلفية الزر (دمج حلو) */

  /* 👇 نبض */
  animation: kPulseDot 1.3s ease-in-out infinite;
}

/* Ring pulse (الهالة اللي بتكبر حوالين النقطة) */
.k-fab-news__badge::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 46, 46, .35);

  transform: scale(1);
  opacity: 0.9;

  animation: kPulseRing 1.3s ease-in-out infinite;
}

/* Keyframes */
@keyframes kPulseDot{
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes kPulseRing{
  0%   { transform: scale(1); opacity: .65; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce){
  .k-fab-news__badge,
  .k-fab-news__badge::after{
    animation: none;
  }
}
.k-fab-news__svg{
  width: 27px;
  height: 30px;
  flex-shrink: 0;
}

/* ✅ News-grade pulse */
.k-fab-news__svg-dot{
  transform-origin: 19px 5px;
  animation: kFabDotPulseNews 1.6s ease-in-out infinite;

  /* لمعة خفيفة */
  filter: drop-shadow(0 0 6px rgba(201,0,0,.35));
}

@keyframes kFabDotPulseNews{
  0%   { transform: scale(1);    opacity: 1; }
  40%  { transform: scale(1.22); opacity: 1; }
  65%  { transform: scale(1.02); opacity: .96; }
  100% { transform: scale(1);    opacity: 1; }
}
/* =========================================
   KAWALIS: Reels Section (System)
   Class: k-section--reels
   - NO design changes
========================================= */

.k-section--reels .k-section__container{
  width: 100%;
  margin: 0 auto;
  padding-top: 60px;
  padding-bottom: 60px;

  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* head */
 .k-section__head{
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

 .k-section__title{
  margin: 0;
  padding: 0;
}

  .k-section__title-link{
  position: relative;

  color: #1A1A1A;
  text-align: right;

  font-family: "Nizar Bukra";
  font-size: 34px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;

  text-decoration: none;
  padding-right: 18px;
}

  .k-section__title-link::after{
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

  width: 8px;
  height: 60px;
  border-radius: 10px;
  background: #FACC1A;
}

.k-section--reels .k-section__title-link:hover{
  color: #111;
}

/* main grid (same old reels grid behavior) */
.k-section--reels .k-section__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

/* columns */
.k-section--reels .k-reels__col{
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* reel item */
.k-reel-item{
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 16px 16px 16px 0;
  border-right: 2px solid var(--brand-primary);

  min-height: 109px;
  width: 100%;
  box-sizing: border-box;

  text-decoration: none !important;
  position: relative;
}

.k-reel-item:hover,
.k-reel-item *,
.k-reel-item:hover *{
  text-decoration: none !important;
}

.k-reel-item__content{
  flex: 1;
  min-width: 0;
}

.k-reel-item__title{
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  text-align: right;
  color: #1A1A1A;
  margin: 0 0 6px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.k-reel-item__time{
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  color: #7D7D7D;
  display: block;
}

.k-reel-item__thumb{
  width: 75px;
  height: 75px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 75px;
}

/* center media */
.k-reels__media{
  width: min(440px, 100%);
  height: 619px;
  padding: 0 16px;

  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.k-reels__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.k-reels__mute{
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;

  width: 44px;
  height: 44px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.45);
  border: 0;
  outline: none;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  display: grid;
  place-items: center;

  color: #fff;
  cursor: pointer;
}

.k-reels__progress{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.25);

  overflow: hidden;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.k-reels__progress-bar{
  height: 100%;
  width: 25%;
  display: block;
  background: var(--brand-primary);
}

.k-reels__mute-ico{
  width: 20px;
  height: 20px;
  display: block;
}

.k-reels__media-ui{
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

/* mobile bar default */
.k-reels__mobile-bar{ display: none; }

/* =========================================
   Responsive (same behavior as your old reels)
========================================= */
@media (max-width: 991px){

  .k-section--reels .k-section__container{
    padding: 24px 16px;
    gap: 18px;
  }

  .k-section--reels .k-section__grid{
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .k-reels__col--right,
  .k-reels__col--left{
    display: none !important;
  }

  .k-reels__media{
    order: 1;
    width: 100%;
    max-width: 100%;
    height: 420px;
    padding: 0;
  }

  .k-reels__mobile-bar{
    display: flex;
    order: 2;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;

    scrollbar-width: thin;
    scrollbar-color: rgba(250, 204, 26, 0.85) transparent;
  }

  .k-reels__mobile-bar::-webkit-scrollbar{ height: 5px; }
  .k-reels__mobile-bar::-webkit-scrollbar-track{ background: transparent; }

  .k-reels__mobile-bar::-webkit-scrollbar-thumb{
    background: rgba(250, 204, 26, 0.85);
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  .k-reels__mobile-bar::-webkit-scrollbar-thumb:hover{
    background: rgba(250, 204, 26, 1);
  }

  .k-reels__mobile-bar .k-reel-item{
    border-right: 2px solid var(--brand-primary) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    flex: 0 0 65%;
    max-width: 65%;
    padding: 16px 16px 16px 0 !important;

    scroll-snap-align: start;
    min-height: 109px;
  }

  .k-reels__mobile-bar .k-reel-item__thumb{
    width: 75px;
    height: 75px;
    flex: 0 0 75px;
  }

  .k-reels__mobile-bar .k-reel-item__title{
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .k-section--reels *{
    transition: none !important;
    animation: none !important;
  }
}
/* =========================
   Category Hero Grid (4/12 + 8/12)
   - RTL: XL first on the right
========================= */

.k-category-hero__grid{
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 18px;
  align-items: stretch;
}

/* RIGHT XL */
.k-post-card--xl{
  min-height: 468px;
}

/* LEFT */
.k-category-hero__left{
  display: grid;
  grid-template-rows: auto auto;
  gap: 18px;
  min-width: 0;
}

.k-category-hero__left-bottom{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* heights */
.k-post-card--lg{ min-height: 260px; }
.k-post-card--sm{ min-height: 190px; }

/* responsive */
@media (max-width: 991px){
  .k-category-hero__grid{
    grid-template-columns: 1fr;
  }

  .k-category-hero__left-bottom{
    grid-template-columns: 1fr;
  }

  .k-post-card--xl{ min-height: 320px; }
  .k-post-card--sm{ min-height: 220px; }
}
/* =========================================
   Category Page: HERO + TAGS
   Section: k-section--category-hero
========================================= */

.k-section--category-hero{
  padding-top: 24px;
  padding-bottom: 60px;
}

.k-section--category-hero .k-section__container{
  padding: 0 60px;
  box-sizing: border-box;
}

/* =========================
   Tags / Chips
========================= */

.k-tags{
  margin-bottom: 18px;
}

.k-tags__list{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.k-tag__link{
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;

  border-radius: 999px;
  background: #F3F3F3;

  color: #1A1A1A;
  text-decoration: none;

  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;

  transition: .2s ease;
}

.k-tag__link:hover{
  background: rgba(250,204,26,.18);
}

.k-tag__link.is-active{
  background: var(--brand-primary);
  font-weight: 700;
}

/* =========================
   Hero Grid (4 images)
   - RTL layout: XL appears first (right)
========================= */

.k-category-hero__grid{
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 18px;
  align-items: stretch;
}

/* LEFT */
.k-category-hero__left{
  display: grid;
  grid-template-rows: auto auto;
  gap: 18px;
  min-width: 0;
}

.k-category-hero__left-bottom{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* =========================
   Post Card (General)
========================= */

.k-post-card{
  min-width: 0;
}

.k-post-card__link{
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;

  border-radius: 14px;
  overflow: hidden;

  text-decoration: none;
  color: inherit;

  padding: 18px;
  justify-content: flex-end;
  align-items: flex-end;

  background: #111;
}

.k-post-card__img{
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;

  z-index: 0;

  transform: scale(1);
  transition: transform .45s cubic-bezier(.22,.61,.36,1),
              filter .45s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.k-post-card__link:hover .k-post-card__img{
  transform: scale(1.03);
  filter: brightness(.95);
}

.k-post-card__overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--overlay-gradient);
}

.k-post-card__content{
  position: relative;
  z-index: 2;
  width: 100%;
}

.k-post-card__time{
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,.85);

  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.1;
}

.k-post-card__title{
  margin: 0;
  color: #fff;

  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 150%;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.k-post-card__excerpt{
  margin: 10px 0 0;
  color: rgba(255,255,255,.9);

  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  line-height: 180%;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   Sizes (Match layout)
========================= */

.k-post-card--xl{ min-height: 468px; }
.k-post-card--lg{ min-height: 260px; }
.k-post-card--sm{ min-height: 190px; }

.k-post-card--xl .k-post-card__title{
  font-size: 28px;
  line-height: 140%;
}

/* =========================
   Responsive
========================= */

@media (max-width: 991px){
  .k-section--category-hero .k-section__container{
    padding: 0 16px;
  }

  .k-category-hero__grid{
    grid-template-columns: 1fr;
  }

  .k-category-hero__left-bottom{
    grid-template-columns: 1fr;
  }

  .k-post-card--xl{ min-height: 320px; }
  .k-post-card--lg{ min-height: 240px; }
  .k-post-card--sm{ min-height: 220px; }
}

 

/* Mobile tags scroll (optional but perfect) */
@media (max-width: 576px){
  .k-tags__list{
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .k-tag__link{ flex: 0 0 auto; }
}
@media (max-width: 480px) {
  .k-section {
    padding-left: 24px;
    padding-right: 24px;
  }
  .k-home-hero{
  padding-top: 24px;
  padding-bottom: 24px;
}

}
   .k-pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 40px;
            /* ✅ اللي بالصورة */

            padding: 14px 0;
        }

        .k-pagination__pages {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .k-pagination__page,
        .k-pagination__dots {
            font-family: "Zain", sans-serif;
            font-size: 14px;
            font-weight: 700;
            color: #111;
            text-decoration: none;
            line-height: 1;
            padding: 2px 6px;
        }

        .k-pagination__page.is-active {
            color: #FACC1A;
            /* active like image */
        }

        .k-pagination__arrow {
            color: #FACC1A;
            text-decoration: none;
            font-size: 18px;
            font-weight: 800;
            line-height: 1;

            transition: transform .18s ease, opacity .18s ease;
        }

        .k-pagination__arrow:hover {
            transform: translateY(-1px);
            opacity: .85;
        }

        /* responsive */
        @media (max-width: 576px) {
            .k-pagination {
                gap: 22px;
            }

            .k-pagination__pages {
                gap: 8px;
            }
        }
        /* ✅ Mobile: show only 4 category cards */
@media (max-width: 480px){
  .k-section--category-grid .k-category-card:nth-child(n+5){
    display: none !important;
  }

}
@media (max-width: 480px){
  .k-cards-grid .k-section__grid{
    grid-template-columns: 1fr !important;
  }
}
 
/* =========================================
   Page: Policy / 404 (Post Layout Base)
   - NO DESIGN CHANGES
========================================= */

/* Section */
.k-section{
  padding-left: 60px;
  padding-right: 60px;
}

/* Container spacing between blocks */
.k-section__container{
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* =========================================
   Breadcrumb
========================================= */
.k-section--breadcrumb{
  background: #FFFDF3;
}

.post-breadcrumb{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 60px;      /* top/bottom 20 - left/right 60 */
  gap: 20px;
  box-sizing: border-box;
}

.post-breadcrumb__link{
  text-decoration: none;
  color: rgba(26, 26, 26, 0.50);
  font-family: "Nizar Bukra", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 34px;
  letter-spacing: 0%;
}

.post-breadcrumb__link:hover{
  text-decoration: none;
}

.post-breadcrumb__current{
  color: #1A1A1A;
  text-align: right;
  font-family: "Nizar Bukra", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: 0%;
  text-decoration: none;
}

/* =========================================
   Post Head (Meta + Hero)
========================================= */
.k-post-head{
  display: flex;
  flex-direction: column;
  gap: 16px; /* meta + hero */
}

/* =========================================
   Social Buttons (Final Specs)
========================================= */
.post-social{
  display: flex;
  align-items: center;
  gap: 16px;
  width: 272px;
  height: 32px;
  opacity: 1;
}

.post-social__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 5px;
  border-radius: 100px;
  background: #E2E2E280;
  opacity: 1;
  color: #1A1A1A;
  text-decoration: none;
  box-sizing: border-box;
}

.post-social__icon{
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

/* =========================================
   Post Hero
========================================= */
.k-post-hero{
  width: 100%;
  height: 558px;
  border-radius: 6px;
  opacity: 1;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.k-post-hero .post-hero-media__link{
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.k-post-hero .post-hero-media__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.post-hero-media__overlay{
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 36.65%,
    rgba(0, 0, 0, 0.8) 87.99%
  );
  pointer-events: none;
}

/* =========================================
   Post Body Layout
========================================= */
.k-post-layout{
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 28px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.k-post-layout__side,
.k-post-layout__main{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* =========================================
   Content Typography
========================================= */
.post-content p{
  color: #1A1A1A;
  font-family: "Nizar Bukra", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 34px;
  letter-spacing: 0%;
}

.post-content p:first-of-type{
  font-family: "Nizar Bukra", sans-serif;
  font-size: 20px;
  font-weight: 700;
  font-style: normal;
  line-height: 150%;
  letter-spacing: 0%;
  text-align: right;
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 992px){
  .k-post-layout{
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 480px){
  .k-section{
    padding-left: 24px;
    padding-right: 24px;
  }

  .k-post-hero{
    height: 300px;
  }

  .k-feature-card__img{
    height: 332px;
  }

  .post-breadcrumb{
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 12px;
    padding: 14px 16px;
  }

  .post-breadcrumb__link,
  .post-breadcrumb__current{
    font-size: 16px;
    line-height: 24px;
  }

  .post-breadcrumb__sep{
    flex: 0 0 auto;
  }

  /* Sidebar list vertical on mobile */
  .k-post-layout__side .k-news-list__item{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}
 
