.kotobi-countdown {
    --kotobi-blue: #1160a5;
    --kotobi-blue-dark: #0d4c82;
    --kotobi-sky: #f3f8fd;
    --kotobi-line: #c9e1f8;
    --kotobi-orange: #f3a400;
    --kotobi-text: #123b62;
    --kotobi-muted: #68839a;
    --kotobi-white: #ffffff;
    --kotobi-shadow: 0 8px 24px rgba(18, 83, 140, .09);
    width: 100%;
    clear: both;
    margin: 22px auto;
    color: var(--kotobi-text);
    /*font-family: "Tajawal", "Cairo", "Noto Kufi Arabic", Arial, sans-serif;*/
    font-family: "Almarai", Arial, sans-serif;
    box-sizing: border-box;
}

.kotobi-countdown *,
.kotobi-countdown *::before,
.kotobi-countdown *::after {
    box-sizing: border-box;
}

.kotobi-countdown__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border: 1px solid var(--kotobi-line);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #fff 0%, var(--kotobi-sky) 100%);
}

.kotobi-countdown__heading h2,
.kotobi-countdown__hero h3,
.kotobi-countdown__card h3 {
    margin: 0;
    line-height: 1.6;
}

.kotobi-countdown__heading h2 {
    font-size: clamp(20px, 2.4vw, 28px);
    color: var(--kotobi-blue-dark);
}

.kotobi-countdown__heading p {
    margin: 5px 0 0;
    font-size: 13px;
    color: var(--kotobi-muted);
}

.kotobi-countdown__eyebrow,
.kotobi-countdown__overline {
    display: inline-block;
    margin-bottom: 3px;
    color: var(--kotobi-blue);
    font-size: 12px;
    font-weight: 800;
}

.kotobi-countdown__next-chip {
    min-width: 175px;
    padding: 10px 13px;
    border: 1px solid #d5eaf8;
    border-radius: 9px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 4px 14px rgba(11, 103, 194, .06);
}

.kotobi-countdown__next-chip span,
.kotobi-countdown__next-chip strong {
    display: block;
}

.kotobi-countdown__next-chip span {
    color: var(--kotobi-muted);
    font-size: 11px;
}

.kotobi-countdown__next-chip strong {
    margin-top: 2px;
    color: var(--kotobi-blue-dark);
    font-size: 13px;
}

.kotobi-countdown__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 22px;
    border: 1px solid var(--kotobi-line);
    background:
        radial-gradient(circle at 8% 10%, rgba(25, 142, 220, .11), transparent 31%),
        var(--kotobi-white);
    box-shadow: var(--kotobi-shadow);
}

.kotobi-countdown__event-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.kotobi-countdown__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 16px;
    color: var(--kotobi-blue);
    background: #e8f5ff;
    border: 1px solid #cfe8fb;
    position: relative;
}

.kotobi-countdown__icon::after {
    content: "";
    position: absolute;
    right: 7px;
    bottom: 7px;
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: var(--kotobi-orange);
}

.kotobi-countdown__icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kotobi-countdown__hero h3 {
    color: var(--kotobi-blue-dark);
    font-size: clamp(18px, 2.3vw, 26px);
}

.kotobi-countdown__dates {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    color: var(--kotobi-muted);
    font-size: 12px;
}

.kotobi-countdown__dates i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--kotobi-orange);
}

.kotobi-countdown__units {
    display: grid;
    grid-template-columns: repeat(4, minmax(64px, 1fr));
    gap: 8px;
}

.kotobi-countdown__unit {
    min-width: 70px;
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #d8ebf8;
    border-radius: 9px;
    background: #fafdff;
}

.kotobi-countdown__unit strong,
.kotobi-countdown__unit span {
    display: block;
}

.kotobi-countdown__unit strong {
    direction: ltr;
    font-variant-numeric: tabular-nums;
    color: var(--kotobi-blue);
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1;
}

.kotobi-countdown__unit span {
    margin-top: 6px;
    color: var(--kotobi-muted);
    font-size: 11px;
}

.kotobi-countdown__events {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--kotobi-line);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #f5fbff;
}

.kotobi-countdown__card {
    min-width: 0;
    padding: 14px;
    border: 1px solid #d9eaf5;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(18, 83, 140, .05);
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.kotobi-countdown__card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--kotobi-blue);
}

.kotobi-countdown__card--national::before,
.kotobi-countdown__card--foundation::before {
    background: var(--kotobi-orange);
}

.kotobi-countdown__card:hover {
    transform: translateY(-2px);
    border-color: #bcdcf1;
    box-shadow: 0 9px 22px rgba(18, 83, 140, .1);
}

.kotobi-countdown__card.is-active {
    border-color: #8fc9ee;
    background: linear-gradient(180deg, #ffffff 0%, #f3faff 100%);
}

.kotobi-countdown__card.is-ongoing {
    border-color: #8fc9ee;
    background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
}

.kotobi-countdown__card.is-ongoing .kotobi-countdown__status {
    color: #0d4c82;
    background: #c9e1f8;
}

.kotobi-countdown__card.is-past {
    opacity: .62;
    filter: grayscale(.18);
}

.kotobi-countdown__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.kotobi-countdown__number {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    color: #fff;
    background: var(--kotobi-blue);
    font-size: 12px;
    font-weight: 800;
}

.kotobi-countdown__status {
    padding: 4px 8px;
    border-radius: 20px;
    color: var(--kotobi-blue);
    background: #edf8ff;
    font-size: 10px;
    font-weight: 800;
}

.kotobi-countdown__card.is-past .kotobi-countdown__status {
    color: #6f7f8d;
    background: #eff2f4;
}

.kotobi-countdown__card h3 {
    margin-top: 10px;
    color: var(--kotobi-blue-dark);
    font-size: 14px;
}

.kotobi-countdown__card-date {
    display: grid;
    gap: 3px;
    margin-top: 8px;
    color: var(--kotobi-muted);
    font-size: 11px;
}

.kotobi-countdown__card-period-end {
    margin-top: 3px;
    color: var(--kotobi-blue-dark);
    font-weight: 700;
}

.kotobi-countdown__card-remaining {
    margin-top: 11px;
    padding-top: 9px;
    border-top: 1px dashed #dceaf3;
    color: var(--kotobi-blue);
    font-size: 11px;
    font-weight: 800;
}

.kotobi-countdown__note {
    margin: 8px 2px 0;
    color: var(--kotobi-muted);
    font-size: 10px;
}

/* النسخة المختصرة للرئيسية */
.kotobi-countdown--compact .kotobi-countdown__head {
    padding-top: 14px;
    padding-bottom: 14px;
}

.kotobi-countdown--compact .kotobi-countdown__heading p,
.kotobi-countdown--compact .kotobi-countdown__note {
    display: none;
}

.kotobi-countdown--compact .kotobi-countdown__hero {
    padding-top: 16px;
    padding-bottom: 16px;
}

.kotobi-countdown--compact .kotobi-countdown__events {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* النسخة الكاملة للصفحات */
.kotobi-countdown--full {
    max-width: 1180px;
}

.kotobi-countdown--full .kotobi-countdown__head {
    padding: 26px 28px;
}

.kotobi-countdown--full .kotobi-countdown__hero {
    padding: 30px 28px;
}

.kotobi-countdown--full .kotobi-countdown__events {
    padding: 18px;
    gap: 14px;
}

.kotobi-countdown--full .kotobi-countdown__card {
    padding: 18px;
}

@media (max-width: 900px) {
    .kotobi-countdown__hero {
        grid-template-columns: 1fr;
    }

    .kotobi-countdown__units {
        width: 100%;
    }

    .kotobi-countdown__events,
    .kotobi-countdown--compact .kotobi-countdown__events {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .kotobi-countdown {
        margin: 14px auto;
    }

    .kotobi-countdown__head {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .kotobi-countdown__next-chip {
        width: 100%;
        min-width: 0;
    }

    .kotobi-countdown__hero,
    .kotobi-countdown--full .kotobi-countdown__hero {
        padding: 17px 14px;
    }

    .kotobi-countdown__icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 13px;
    }

    .kotobi-countdown__icon svg {
        width: 28px;
        height: 28px;
    }

    .kotobi-countdown__units {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }

    .kotobi-countdown__unit {
        min-width: 0;
        padding: 9px 3px;
    }

    .kotobi-countdown__unit strong {
        font-size: 22px;
    }

    .kotobi-countdown__events,
    .kotobi-countdown--compact .kotobi-countdown__events {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .kotobi-countdown--compact .kotobi-countdown__events {
        max-height: 302px;
        overflow-y: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kotobi-countdown__card {
        transition: none;
    }
}

/* ===== قسم عن حلول كتبي في الصفحة الرئيسية ===== */
.hul-home-v2__about {
  clear: both;
  margin: 28px 0 8px;
  color: #263746;
  font-family: 'Almarai', Arial, sans-serif;
}

.hul-home-v2__about,
.hul-home-v2__about * {
  box-sizing: border-box;
}

.hul-home-v2__container {
  width: 100%;
  margin: 0 auto;
}

.hul-home-v2__section-header--about {
  margin-bottom: 12px;
}

.hul-home-v2__section-header--about > .hul-home-v2__section-title {
  margin: 0;
  padding: 0.65em 0.8em;
  border-radius: 8px;
  background: #c9e1f8;
  color: #1160a5;
  box-shadow: 0 5px 5px rgba(160, 205, 255, 0.2);
  font-size: 1.4em;
  font-weight: 700;
  line-height: 1.6;
}

.hul-home-v2__about-details {
  overflow: hidden;
  border: 1px solid #c9e1f8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 96, 165, 0.08);
}

.hul-home-v2__about-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  background: #f3f8fd;
  color: #0d4c82;
}

.hul-home-v2__about-summary::-webkit-details-marker {
  display: none;
}

.hul-home-v2__about-summary span:first-child,
.hul-home-v2__about-summary strong,
.hul-home-v2__about-summary small {
  display: block;
}

.hul-home-v2__about-summary strong {
  font-size: 15px;
  line-height: 1.7;
}

.hul-home-v2__about-summary small {
  margin-top: 2px;
  color: #68839a;
  font-size: 11px;
  line-height: 1.7;
}

.hul-home-v2__about-summary-action {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: #1160a5;
}

.hul-home-v2__about-summary-action::before,
.hul-home-v2__about-summary-action::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 50%;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: translate(50%, -50%);
}

.hul-home-v2__about-summary-action::after {
  transform: translate(50%, -50%) rotate(90deg);
  transition: transform 0.2s ease;
}

.hul-home-v2__about-details[open] .hul-home-v2__about-summary-action::after {
  transform: translate(50%, -50%) rotate(0deg);
}

.hul-home-v2__about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2fr);
  gap: 18px;
  padding: 20px;
  border-top: 1px solid #e1edf7;
}

.hul-home-v2__about-copy {
  padding: 18px;
  border-radius: 10px;
  background: linear-gradient(145deg, #1160a5 0%, #0d4c82 100%);
  color: #fff;
}

.hul-home-v2__about-copy .hul-home-v2__section-kicker {
  margin: 0 0 5px;
  color: #c9e1f8;
  font-size: 11px;
  font-weight: 700;
}

.hul-home-v2__about-copy .hul-home-v2__section-title {
  margin: 0 0 9px;
  color: #fff;
  font-size: 20px;
  line-height: 1.6;
}

.hul-home-v2__about-copy > p:last-child {
  margin: 0;
  color: #f3f8fd;
  font-size: 13px;
  line-height: 2;
}

.hul-home-v2__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hul-home-v2__feature {
  min-width: 0;
  padding: 16px;
  border: 1px solid #d9e9f6;
  border-radius: 10px;
  background: #fff;
}

.hul-home-v2__feature-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #c9e1f8;
  color: #1160a5;
  font-size: 11px;
  font-weight: 800;
}

.hul-home-v2__feature h3 {
  margin: 11px 0 7px;
  color: #0d4c82;
  font-size: 14px;
  line-height: 1.8;
}

.hul-home-v2__feature p {
  margin: 0;
  color: #5d7183;
  font-size: 12px;
  line-height: 1.9;
}

@media (max-width: 900px) {
  .hul-home-v2__about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hul-home-v2__about {
    margin-top: 20px;
  }

  .hul-home-v2__about-grid {
    gap: 12px;
    padding: 12px;
  }

  .hul-home-v2__features {
    grid-template-columns: 1fr;
  }

  .hul-home-v2__section-header--about > .hul-home-v2__section-title {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hul-home-v2__about-summary-action::after {
    transition: none;
  }
}