/* مركز معلومات نايوش هوب | نايوش هوب 360 — عرض كامل + شبكة حتى 6 كروت */

body[data-info-center-home='1'],
body[data-hub-page='info-center'] {
  overflow-x: hidden;
}

.info-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.25rem clamp(14px, 2vw, 28px) 4rem;
  display: grid;
  gap: 18px;
  box-sizing: border-box;
}

.info-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 13px;
  font-weight: 750;
  color: #667085;
  width: 100%;
}

.info-crumbs a {
  color: #d70000;
  text-decoration: none;
}

.info-crumbs .is-current {
  color: #101828;
  font-weight: 900;
}

.info-crumbs-sep {
  color: #98a2b3;
}

.info-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid #e8eaee;
  border-radius: 16px;
  background: #fff;
  position: sticky;
  top: 60px;
  z-index: 6;
  backdrop-filter: blur(8px);
  width: 100%;
  box-sizing: border-box;
}

.info-subnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: #b80000;
  min-width: 0;
}

.info-subnav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.info-subnav-links a {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: #344054;
  font-weight: 800;
  font-size: 13px;
  background: #fff;
}

.info-subnav-links a.is-on {
  border-color: #d70000;
  background: #fff7f7;
  color: #b80000;
}

body.homepage .info-hero,
.info-hero {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #0f2744 0%, #163a66 55%, #1d4f86 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: clamp(22px, 3vw, 32px) clamp(18px, 2.5vw, 28px);
}

body.homepage .info-hero h1,
body.homepage .info-hero h2,
body.homepage .info-hero h3,
.info-hero h1,
.info-hero h2,
.info-hero h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1.3;
  color: #ffffff;
  max-width: none;
}

body.homepage .info-hero p,
body.homepage .info-hero .subtitle,
body.homepage .info-hero .description,
.info-hero p,
.info-hero .subtitle,
.info-hero .description {
  margin: 12px 0 0;
  max-width: min(72ch, 100%);
  line-height: 1.7;
  font-weight: 650;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

body.homepage .info-section :is(h1, h2, h3),
.info-section :is(h1, h2, h3) {
  color: #101828;
}

body.homepage .info-section :is(p, li),
.info-section :is(p, li) {
  color: #344054;
}

body.homepage .info-section .info-lead,
.info-section .info-lead {
  color: #475467;
}

.info-section {
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 18px;
  padding: 22px 24px;
  width: 100%;
  box-sizing: border-box;
}

.info-section h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 900;
}

.info-section .info-lead {
  margin: 0 0 16px;
  color: #475467;
  font-weight: 650;
  line-height: 1.7;
  font-size: 16px;
  max-width: 80rem;
}

/* حتى 6 كروت في الصف — auto-fit يوزّع البطاقات الموجودة على العرض */
.info-start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  width: 100%;
}

.info-start-grid--guides {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.info-start-card {
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 16px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.info-start-card .info-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff7f7;
  color: #d70000;
  border: 1px solid #f3d4d4;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-start-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  color: #101828;
  line-height: 1.35;
  word-break: break-word;
}

.info-start-card p {
  margin: 0;
  color: #475467;
  font-weight: 650;
  line-height: 1.55;
  flex: 1;
  font-size: 14px;
}

.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.info-btn.primary {
  background: #d70000;
  border-color: #d70000;
  color: #fff;
}

.info-btn.ghost {
  background: #fff;
}

.info-btn.sm {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
}

.info-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#overview,
#about-hub,
#guides,
#info-faq,
#policies-catalog,
#policy-view,
#start-here {
  scroll-margin-top: 120px;
}

.info-section details {
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #fafafa;
}

.info-section summary {
  cursor: pointer;
  font-weight: 900;
}

.info-section details p {
  margin: 10px 0 0;
  color: #667085;
  font-weight: 650;
  line-height: 1.65;
}

/* —— Responsive —— */
@media (max-width: 640px) {
  .info-page {
    padding: 12px 12px 3rem;
    gap: 14px;
  }
  .info-start-grid,
  .info-start-grid--guides {
    grid-template-columns: 1fr;
  }
  .info-subnav {
    top: 52px;
    padding: 10px;
  }
  .info-hero {
    padding: 20px 16px;
  }
  .info-section {
    padding: 16px;
  }
}

@media (min-width: 420px) and (max-width: 640px) {
  .info-start-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
