/* ==========================================================================
   guidance-page.css — guidance page (المحتوى الإرشادي): hero background,
   page head (breadcrumb, title, tabs) and the card grid with pagination.
   Cards and tab buttons come from css/components/guide.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero background — pulled up behind the sticky header
   -------------------------------------------------------------------------- */
.gp-hero {
  position: relative;
  margin-top: -88px;
  padding-top: 88px;
  background: linear-gradient(180deg, var(--color-cream-200) 0%, var(--color-sky-50) 55%, var(--color-white) 100%);
}

/* --------------------------------------------------------------------------
   Page head
   -------------------------------------------------------------------------- */
.gp-head {
  position: relative;
  overflow-x: clip;
}

/* faint calligraphy watermark */
.gp-head__pattern {
  position: absolute;
  z-index: 0;
  bottom: -60px;
  left: -80px;
  width: 380px;
  height: auto;
  opacity: .06;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
}

.gp-head__inner {
  position: relative;
  max-width: var(--cw, 1180px);
  margin: 0 auto;
  padding: var(--page-head-space) 24px; /* equal space above and below (css/base.css) */
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}

.gp-crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--color-ink-500);
}

.gp-crumbs__link,
.gp-crumbs__link:hover {
  color: var(--color-blue-500);
  font-weight: 700;
}

.gp-head__title {
  margin: 0;
  font-family: 'Almarai', 'Cairo', sans-serif;
  font-weight: 800;
  font-size: var(--fs-page-title);
  line-height: 1.2;
  color: var(--color-navy-700);
}

.gp-head__accent {
  color: var(--color-blue-500);
}

/* the guide tab bar (guide.css), on white here — on every screen */
.guide-tabs.gp-tabs {
  margin-top: 10px;
  background: var(--color-white);
  border-color: var(--color-line);
}

/* --------------------------------------------------------------------------
   Listing: card grid
   -------------------------------------------------------------------------- */
.gp-list {
  background: var(--color-mist-100);
}

.gp-list__inner {
  max-width: var(--cww, 1320px);
  margin: 0 auto;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.gp-list__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* the partner banners across a whole row, after the first 6 cards — the same
   blue box «مواقع أخرى» as on the other pages (css/components/partner-banners.css) */
.gp-bnrs {
  grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   Pagination (static placeholder pages, as in the design)
   -------------------------------------------------------------------------- */
.gp-pager {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 6px 0 4px;
}

.gp-pager__arrow,
.gp-pager__page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.gp-pager__arrow {
  box-sizing: border-box;
  border: 1px solid var(--acc);
  background: var(--color-white);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.gp-pager__arrow[aria-disabled="true"] {
  border-color: var(--color-mist-200);
  opacity: .45;
  cursor: default;
}

button.gp-pager__arrow {
  padding: 0;
  font: inherit;
}

.gp-pager__arrow svg {
  fill: none;
  stroke: var(--color-blue-500);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gp-pager__arrow:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 117, 150, .25);
}

.gp-pager__page {
  color: var(--color-navy-700);
  font-size: 15px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}

.gp-pager__page:hover {
  background: var(--color-blue-100);
  color: var(--color-blue-500);
}

.gp-pager__page[aria-current="page"],
.gp-pager__page[aria-current="page"]:hover {
  background: var(--acc);
  color: var(--color-white);
  font-weight: 800;
}

.gp-pager__gap {
  color: var(--color-ink-400);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1099px) {
  .gp-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .gp-list__inner {
    padding-top: 88px;
    padding-bottom: 88px;
  }
}

@media (max-width: 759px) {
  .gp-list__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .gp-head__inner {
    padding: var(--page-head-space) 16px;
  }

  .gp-list__inner {
    padding-top: 24px;
    padding-bottom: 32px;
  }
}
