@font-face {
  font-family: 'Tajawal';
  src: url('/assets/fonts/tajawal-v12-arabic_latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tajawal';
  src: url('/assets/fonts/tajawal-v12-arabic_latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tajawal';
  src: url('/assets/fonts/tajawal-v12-arabic_latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    direction: rtl;
}

body {
    margin: 0;
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 18px;
    line-height: 1.7;
    background: #f7f8fa;
    color: #18212f;
}

a {
    color: inherit;
}

main {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 64px;
}


.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 12px;
  padding-left: 12px;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .container {
    max-width: 700px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 900px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}


/* =========================================================
   Header layout
   ========================================================= */
.flex {
  display: flex;
}

.between {
  justify-content: space-between;
  align-items: center;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

.site-header {
  padding: 5px;
  background: black;
  color: white;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 60px;
}

.logo {
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 700;
  margin-right: 10px;
}

a.logo {
  color: #ffffff;
  text-decoration: none;
}

/* =========================================================
   Desktop menu
   ========================================================= */

.menu {
  flex: 0 0 auto;
}

.menu a {
  text-decoration: none;
  color: #333;
}

.scd-menu,
.scd-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 10px;
}

.scd-menu {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.scd-menu > li {
  position: relative;
}

.scd-menu > li > a {
  display: block;
  padding: 0.75rem 1rem;
  padding-right: 16px;
  text-decoration: none;
  line-height: 1.2;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.scd-menu > li > a:hover {
  text-decoration: none;
}

/* =========================================================
   Mobile toggle button
   ========================================================= */

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 0px solid #adadad;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: #363636;
}

.burger span {
  width: 22px;
  height: 1px;
  background: #adadad;
}



/* =========================================================
   Mobile overlay and drawer
   ========================================================= */

.menu-overlay {
  border: 0;
  padding: 0;
  background: transparent;
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 1001;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  background: #ffffff;
  box-shadow: -5px 0 10px rgba(15, 23, 42, 0.12);
  transition: right 0.3s ease;
}

#menuToggle[aria-expanded="true"] ~ .menu-overlay {
  display: block;
}

#menuToggle[aria-expanded="true"] ~ .mobile-menu {
  right: 0;
}

.mobile-inner {
  padding: 0px;
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  background: black;
  gap: 36px;
  min-height: 60px;
  font-size: 22px;
  font-weight: 700;
}
.mobile-header span {
  color: #000000;
}
.close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a8a8a8;
    font-size: 20px;
    font-weight: 400;
    width: 42px;
    height: 42px;
    border: 0px solid #adadad;
    border-radius: 10px;
    cursor: pointer;
    background: #363636;  
}

.mobile-list {
  list-style: none;
  margin: 0;
  padding: 20px;
}

.mobile-list li {
    margin: 0;
    border: 1px solid #dfdfdf;
    margin-top: 4px;
    border-radius: 10px;
    padding: 5px;
    text-align: center;
    background: #f0f0f0;
    box-shadow: 0 18px 50px rgb(170 170 170 / 30%)
}

.mobile-list a {
  display: block;
  padding: 10px 0;
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-title {
  margin-top: 10px;
  color: #000000;
  font-size: 14px;
  font-weight: 700;
  border-top: 1px solid #eeeeee;
}



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

@media (max-width: 999px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex;
  }

  .menu,
  .lang {
    display: none;
  }

  .burger {
    margin-right: auto;
  }
}

/*---------------------*/

/* =========================================================
   Breadcrumbs
========================================================= */

nav[aria-label="مسار التنقل"] {
    width: min(920px, calc(100% - 32px));
    margin: 24px auto 0;
    font-size: 14px;
    color: #667085;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-right: 8px;
    color: #98a2b3;
}

.breadcrumbs a {
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}


/* =========================================================
   Header
========================================================= */

main > header {
    text-align: center;
    padding: 40px 16px 24px;
}

main > header h1 {
    margin: 0;
    font-size: clamp(30px, 6vw, 48px);
    line-height: 1.25;
}

main > header p {
    max-width: 680px;
    margin: 16px auto 0;
    color: #667085;
    font-size: 17px;
}


/* =========================================================
   Sections
========================================================= */

section {
    margin-top: 24px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgb(174 174 174 / 15%);
}

section h2 {
    margin: 0 0 18px;
    font-size: 22px;
    line-height: 1.4;
}

section p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   Countdown
========================================================= */

#countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

#countdown > div {
    text-align: center;
    padding: 22px 10px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    background: rgb(255 255 255 / 10%);
}

#countdown strong {
    display: block;
    font-size: clamp(28px, 6vw, 42px);
    line-height: 1.1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

#countdown span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #ffffff;
}


/* =========================================================
   Dates
========================================================= */

time {
    font-variant-numeric: tabular-nums;
}


/* =========================================================
   FAQ
========================================================= */

details {
    border-top: 1px solid #eaecf0;
    padding: 16px 0;
}

details:first-of-type {
    border-top: 0;
}

summary {
    cursor: pointer;
    font-weight: 600;
}

details p {
    color: #475467;
    margin: 12px 0 0;
}


/* =========================================================
   Lists
========================================================= */

section ul {
    margin: 0;
    padding-right: 22px;
}

section li + li {
    margin-top: 10px;
}


/* =========================================================
   Related links
========================================================= */

section a {
    text-decoration: none;
}

section a:hover {
    text-decoration: underline;
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 640px) {

    main {
        width: min(100% - 20px, 920px);
        padding-top: 16px;
    }

    nav[aria-label="مسار التنقل"] {
        width: min(100% - 20px, 920px);
        margin-top: 16px;
    }

    main > header {
        padding: 28px 10px 16px;
    }

    section {
        padding: 20px;
        border-radius: 14px;
    }

    #countdown {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   Site Footer
========================================================= */

.site-footer {
    background: #000000;
    border-top: 1px solid #e5e7eb;
    margin-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
    font-size: 16px;
}

.footer-brand h3,
.footer-links h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-brand p {
    color: #b4b4b4;
    line-height: 2;
    margin: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b4b4b4;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #414141;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #b4b4b4;
    font-size: 16px;
}

@media (max-width: 768px) {

    .footer-top {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-brand,
    .footer-links {
        text-align: center;
    }

}

/* =========================================================
   Category Page
========================================================= */

.category-page {
    max-width: 920px;
}

.category-header {
    text-align: right;
    padding: 32px 0 20px;
}

.category-header h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.3;
}

.category-header p {
    max-width: 700px;
    margin: 12px 0 0;
    color: #667085;
    font-size: 17px;
}


/* =========================================================
   Event List
========================================================= */

.category-events {
    padding: 0;
    overflow: hidden;
    color:#ffffff;
    background: linear-gradient(130deg, #1473ac 0%, #005484 100%);
}

.category-events h2 {
    padding: 24px 26px 18px;
    margin: 0;
}

.event-list {
    border-top: 1px solid rgb(255 255 255 / 20%);
}

.event-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 26px;
    text-decoration: none;
    border-bottom: 1px solid rgb(255 255 255 / 20%);
    transition: background-color 0.15s ease;
}

.event-list__item:last-child {
    border-bottom: 0;
}

.event-list__item:hover {
    background: rgb(255 255 255 / 20%);
    text-decoration: none;
}

.event-list__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-list__content strong {
    font-size: 17px;
}

.event-list__content span {
    color: #ffffff;
    font-size: 14px;
}

.event-list__arrow {
    flex-shrink: 0;
    font-size: 20px;
    color: #ffffff;
}


/* =========================================================
   Category Mobile
========================================================= */

@media (max-width: 640px) {

    .category-header {
        padding: 24px 4px 14px;
    }

    .category-events h2 {
        padding: 20px;
    }

    .event-list__item {
        padding: 18px 20px;
    }

}

/* =========================================================
   Home Page
========================================================= */

.home-page {
    max-width: 1040px;
}


/* =========================================================
   Hero
========================================================= */

.home-hero {
    text-align: center;
    background: transparent;
    border: 0;
    padding: 64px 16px 40px;
}

.home-hero h1 {
    margin: 0;
    font-size: clamp(32px, 8vw, 52px);
    line-height: 1.15;
    letter-spacing: -1px;
}

.home-hero > p {
    max-width: 650px;
    margin: 18px auto 0;
    color: #667085;
    font-size: 18px;
}


/* =========================================================
   Search
========================================================= */

.home-search {
    max-width: 650px;
    margin: 30px auto 0;

    display: flex;
    align-items: stretch;

    background: #ffffff;

    border: 1px solid #d0d5dd;
    border-radius: 16px;

    padding: 6px;

    box-shadow:
        0 4px 16px rgba(16, 24, 40, 0.05);
}

.home-search input {
    flex: 1;
    min-width: 0;

    border: 0;
    outline: 0;

    padding: 13px 16px;

    font: inherit;
    font-size: 16px;

    background: transparent;
    color: #101828;
}

.home-search input::placeholder {
    color: #98a2b3;
}

.home-search button {
    border: 0;
    border-radius: 11px;

    padding: 0 22px;

    font: inherit;
    font-weight: 600;

    cursor: pointer;

    background: #101828;
    color: #ffffff;
}


/* =========================================================
   Quick Links
========================================================= */

.home-quick-links {
    margin-top: 16px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;
}

.home-quick-links a {
    padding: 6px 11px;

    border-radius: 999px;

    background: #ffffff;
    border: 1px solid #e4e7ec;

    color: #475467;

    font-size: 13px;
    text-decoration: none;
}

.home-quick-links a:hover {
    background: #f9fafb;
    text-decoration: none;
}


/* =========================================================
   Section Label
========================================================= */

.home-section-label {
    display: block;

    margin-bottom: 8px;

    color: #475467;
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   Featured Countdown
========================================================= */

.home-featured {
    padding: 40px;
    text-align: center;
    background: linear-gradient(130deg, #1473ac 0%, #005484 100%);
    color: #ffffff;
}

.home-featured h2 {
    margin: 0 0 28px;
    font-size: clamp(24px, 5vw, 36px);
    color: #ffffff;
}

.home-featured .home-section-label {
    color: #ffffff;
}

.home-featured #countdown {
    max-width: 720px;
    margin: 0 auto;
}

.home-featured__link {
    display: inline-block;
    color: #ffffff;
    margin-top: 24px;
    font-weight: 600;
    text-decoration: none;
}

.home-featured__link:hover {
    text-decoration: underline;
}


/* =========================================================
   Section Headings
========================================================= */

.home-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.home-section-heading h2,
.home-upcoming > h2,
.home-categories > h2,
.home-popular > h2 {
    margin: 0;
}


/* =========================================================
   Upcoming Events
========================================================= */

.home-upcoming:not(.home-ongoing) {
    background: linear-gradient(130deg, #1473ac 0%, #005484 100%);
    color: #ffffff;
    padding-inline: 0;
    overflow: hidden;
}

.home-upcoming:not(.home-ongoing) .home-section-heading {
    padding-inline: 28px;
}

.home-upcoming:not(.home-ongoing) .home-upcoming-item {
    padding-inline: 28px;
    transition: background-color 0.15s ease;
}

.home-upcoming:not(.home-ongoing) .home-section-label,
.home-upcoming:not(.home-ongoing) .home-upcoming-item div span,
.home-upcoming:not(.home-ongoing) .home-upcoming-days {
    color: #ffffff;
}

.home-upcoming:not(.home-ongoing) .home-upcoming-list,
.home-upcoming:not(.home-ongoing) .home-upcoming-item {
    border-color: rgb(255 255 255 / 20%);
}

.home-upcoming:not(.home-ongoing) .home-upcoming-item:hover {
    background: rgb(255 255 255 / 20%);
}

.home-upcoming:not(.home-ongoing) .home-upcoming-item:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -3px;
}

.home-upcoming-list {
    border-top: 1px solid #eaecf0;
}

.home-upcoming-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 17px 0;

    border-bottom: 1px solid #eaecf0;

    text-decoration: none;
}

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

.home-upcoming-item:hover {
    text-decoration: none;
}

.home-upcoming-item > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.home-upcoming-item strong {
    font-size: 16px;
}

.home-upcoming-item div span {
    color: #667085;
    font-size: 13px;
}

.home-upcoming-days {
    flex-shrink: 0;

    color: #475467;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   Categories
========================================================= */

.home-category-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

    margin-top: 22px;
}

.home-category-list > a {
    display: flex;
    flex-direction: column;

    gap: 4px;

    padding: 18px;

    border: 1px solid #eaecf0;
    border-radius: 12px;

    text-decoration: none;

    background: #fafafa;
}

.home-category-list > a:hover {
    background: #f5f6f7;
    text-decoration: none;
}

.home-category-list strong {
    font-size: 16px;
}

.home-category-list span {
    color: #667085;
    font-size: 13px;
}


/* =========================================================
   Popular
========================================================= */

.home-popular-links {
    margin-top: 20px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 10px 24px;
}

.home-popular-links a {
    padding: 10px 0;

    border-bottom: 1px solid #eaecf0;

    text-decoration: none;

    font-weight: 500;
}

.home-popular-links a:hover {
    text-decoration: underline;
}


/* =========================================================
   Accessibility
========================================================= */

.visually-hidden {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
}


/* =========================================================
   Home Mobile
========================================================= */

@media (max-width: 640px) {

    .home-upcoming:not(.home-ongoing) .home-section-heading,
    .home-upcoming:not(.home-ongoing) .home-upcoming-item {
        padding-inline: 20px;
    }

    .home-hero {
        padding: 40px 6px 24px;
    }

    .home-search {
        margin-top: 24px;
    }

    .home-search button {
        padding: 0 16px;
    }

    .home-featured {
        padding: 24px 18px;
    }

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

    .home-popular-links {
        grid-template-columns: 1fr;
    }

    .home-upcoming-item {
        align-items: flex-start;
    }

    .home-upcoming-days {
        font-size: 13px;
    }

}

/* =========================================================
   Search Page
========================================================= */

.search-page {
    max-width: 920px;
}

.search-header {
    text-align: center;
    padding: 42px 0 20px;
}

.search-header h1 {
    margin: 0;
    font-size: clamp(32px, 6vw, 46px);
}

/* =========================================================
   hijri year
========================================================= */

.event-hijri-year {
    margin: 0 0 8px;

    font-size: 18px;
    font-weight: 700;

    color: #344054;
}


/* =========================================================
   Event Year Page
========================================================= */

.event-year-page {
    max-width: 920px;
}

.event-year-navigation > div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 18px;
}

.event-year-navigation a {
    display: inline-block;

    padding: 10px 15px;

    border: 1px solid #e4e7ec;
    border-radius: 10px;

    background: #ffffff;

    text-decoration: none;
}

.event-year-navigation a:hover {
    background: #f9fafb;
    text-decoration: none;
}

/* =========================================================
   Event Year Archive
========================================================= */

.event-years__group {
    margin-top: 24px;
}

.event-years__group:first-of-type {
    margin-top: 18px;
}

.event-years__group h3 {
    margin: 0 0 12px;

    font-size: 16px;
    color: #475467;
}

.event-years__links {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.event-years__links a {
    display: inline-block;

    padding: 9px 14px;

    border: 1px solid #e4e7ec;
    border-radius: 10px;

    background: #ffffff;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;
}

.event-years__links a:hover {
    background: #f9fafb;
    text-decoration: none;
}

.date-status-badge {
    display: inline-block;
    padding: 3px 10px;
    margin-bottom: 12px;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    background: #f9fafb;
    color: #475467;
    font-size: 13px;
}
.event-source-note {
    color: #475467;
}

/* Optional structured event facts; inherits the existing section design. */
.event-details dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}
.event-details__item { min-width: 0; }
.event-details dt { font-weight: 700; }
.event-details dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}
.event-location-link {
    display: block;
    margin-top: 6px;
    text-decoration: underline;
}
@media (max-width: 640px) {
    .event-details dl { grid-template-columns: 1fr; }
}

/* Shared header category navigation. */
.scd-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  padding: .75rem 1rem;
  cursor: pointer;
  border-radius: 10px;
}
.scd-menu > li > a, .scd-menu-trigger { white-space: nowrap; }
.scd-menu > li:first-child { margin-inline-end: 3px; }
.scd-submenu {
  display: none;
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 0;
  z-index: 1002;
  width: 225px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid #dfdfdf;
  box-shadow: 0 8px 20px rgb(15 23 42 / 12%);
  overflow: hidden;
}
.scd-menu-dropdown:hover > .scd-submenu,
.scd-menu-dropdown:focus-within > .scd-submenu { display: block; }
.scd-submenu a { display: block; padding: 10px 16px; font-size: 16px; text-align: start; }
.scd-submenu a:hover, .scd-submenu a:focus-visible,
.mobile-submenu a:hover, .mobile-submenu a:focus-visible { background: #eeeeee; }
.scd-menu-trigger:hover { text-decoration: none; }
.scd-menu-trigger.is-active, .scd-menu > li > a[aria-current],
.mobile-categories > summary.is-active { font-weight: 700; }
.scd-submenu a[aria-current], .mobile-submenu a[aria-current] {
  background: #e5e7eb; color: #18212f; font-weight: 700;
}
.site-header a:focus-visible, .scd-menu-trigger:focus-visible,
.mobile-categories > summary:focus-visible { outline: 2px solid #64748b; outline-offset: -3px; }
.mobile-categories > summary { padding: 10px; color: #000; font-size: 16px; font-weight: 600; cursor: pointer; text-align: start; }
.mobile-submenu { list-style: none; margin: 0; padding: 0 16px 8px 0; }
.mobile-list .mobile-submenu li { border: 0; box-shadow: none; background: #fff; padding: 0; text-align: start; }
.mobile-submenu a { padding: 10px 12px; border-radius: 8px; }
.mobile-menu { visibility: hidden; height: 100dvh; overscroll-behavior: contain; }
#menuToggle[aria-expanded="true"] ~ .mobile-menu { visibility: visible; }
@media (min-width: 1000px) {
  .mobile-menu, .menu-overlay { display: none !important; }
}
@media (max-width: 999px) {
  body:has(#menuToggle[aria-expanded="true"]) { overflow: hidden; }
  .nav { gap: 12px; }
  .burger, .close { flex-shrink: 0; }
  .burger:focus-visible, .mobile-menu .close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
  .mobile-header { gap: 12px; }
}

/* Category pagination: normal links, responsive RTL layout. */
.category-page-position { color: #475467; font-size: 14px; }
.category-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 28px 0; }
.category-pagination a, .category-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 6px 12px; box-sizing: border-box; border-radius: 8px; }
.category-pagination a { border: 1px solid #d0d5dd; color: #344054; text-decoration: none; }
.category-pagination a:hover { background: #f2f4f7; }
.category-pagination [aria-current="page"] { background: #1372ab; color: #fff; }
.category-pagination a:focus-visible { outline: 3px solid #1372ab; outline-offset: 3px; }

/* =========================================================
   Base Countdown Theme
========================================================= */

.countdown-section {
    --theme-bg: linear-gradient(130deg, #3a8bd8 0%, #095c8d 100%);
    --theme-heading: #ffffff;
    --theme-number: #ffffff;
    --theme-label: rgba(255,255,255,.75);
    --theme-box-bg: rgba(255,255,255,.10);
    --theme-box-border: rgba(255, 255, 255, .15);

    background: var(--theme-bg);
    color: var(--theme-heading);
    box-shadow: 0 18px 50px rgb(132 132 132 / 50%);
    border-radius: 22px;
    padding: 34px;
}

.countdown-section > h2 {
    color: var(--theme-heading);
}

.countdown-section #countdown > div {
    background: var(--theme-box-bg);
    border: 1px solid var(--theme-box-border);
}

.countdown-section #countdown strong {
    color: var(--theme-number);
}

.countdown-section #countdown span {
    color: var(--theme-label);
}

/*-----------------------------------*/

.countdown-theme--ramadan {
    --theme-bg: linear-gradient(130deg, #9a394c 0%, #670c54 100%);

    --theme-heading: #ffffff;
    --theme-number: #ffffff;
    --theme-label: rgba(255,255,255,.75);
    --theme-box-bg: rgba(255,255,255,.10);
    --theme-box-border: rgba(255, 255, 255, .15);
}

.countdown-theme--saudi-national-day {
    --theme-bg: linear-gradient(130deg, #6a9a39 0%, #22671a 100%);

    --theme-heading: #ffffff;
    --theme-number: #ffffff;
    --theme-label: rgba(255,255,255,.75);
    --theme-box-bg: rgba(255,255,255,.10);
    --theme-box-border: rgba(255, 255, 255, .15);
}

.countdown-theme--saudi-founding-day {
    --theme-bg: linear-gradient(130deg, #c05151 0%, #552929 100%);

    --theme-heading: #ffffff;
    --theme-number: #ffffff;
    --theme-label: rgba(255,255,255,.75);
    --theme-box-bg: rgba(255,255,255,.10);
    --theme-box-border: rgba(255, 255, 255, .15);
}
