/* ============================================================
   SEHAPLUS – HOMEPAGE STYLESHEET
   Direction: RTL | Language: AR | Theme: Medical/Health
   ============================================================ */

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

.hp-wrap {
  overflow-x: hidden;
  font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
  color: #1E293B;
  direction: rtl;
}

/* ── Container ───────────────────────────────────────────── */
.hp-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/*
 * When .hp-container sits inside main.container (which already
 * provides the 24px horizontal gutter), remove the duplicate
 * padding so content lines up exactly with the header.
 */
main.container .hp-container,
.site-content.container .hp-container {
  padding-inline: 0;
  max-width: 100%;
}

/* ── Section Title ───────────────────────────────────────── */
.hp-section-title {
  font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #1E293B;
  margin: 0 0 24px;
  position: relative;
  padding-right: 16px;
}
.hp-section-title::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #0EA5E9, #10B981);
  border-radius: 4px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hp-hero {
  background: linear-gradient(135deg, #E0F2FE 0%, #F0F9FF 45%, #ECFDF5 100%);
  padding: 72px 0 60px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.hp-hero::before,
.hp-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: .18;
}
.hp-hero::before {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #0EA5E9, transparent);
  top: -120px; right: -120px;
}
.hp-hero::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #10B981, transparent);
  bottom: -100px; left: -80px;
}

.hp-hero__inner { position: relative; z-index: 1; text-align: center; }

.hp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14,165,233,.1);
  border: 1px solid rgba(14,165,233,.25);
  color: #0284C7;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hp-hero__title {
  font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 20px;
  background: linear-gradient(135deg, #059669 0%, #0EA5E9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-hero__subtitle {
  font-size: 18px;
  color: #475569;
  margin: 0 auto 48px;
  max-width: 620px;
  line-height: 1.7;
}

/* ── Topics Grid ─────────────────────────────────────────── */
.hp-topics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  text-align: center;
}

.hp-topic-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  border-radius: 18px;
  border: 2px solid transparent;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  cursor: pointer;
}
.hp-topic-card:hover,
.hp-topic-card:focus,
.hp-topic-card:active,
.hp-topic-card:visited { text-decoration: none; }
.hp-topic-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}
.hp-topic-card__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  flex-shrink: 0;
  transition: transform .3s ease;
}
.hp-topic-card:hover .hp-topic-card__icon { transform: scale(1.15); }

.hp-topic-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}
.hp-topic-card p {
  font-size: 11px;
  margin: 0;
  opacity: .75;
  line-height: 1.4;
}

/* Color themes */
.topic--red    { background: linear-gradient(135deg,#FEF2F2,#FECACA); border-color: rgba(220,38,38,.2); }
.topic--red:hover { border-color: rgba(220,38,38,.45); }
.topic--red    .hp-topic-card__icon { background: linear-gradient(135deg,#DC2626,#EF4444); }
.topic--red    h3 { color: #DC2626; }
.topic--red    p  { color: #7F1D1D; }

.topic--blue   { background: linear-gradient(135deg,#EBF8FF,#DBEAFE); border-color: rgba(59,130,246,.2); }
.topic--blue:hover { border-color: rgba(59,130,246,.45); }
.topic--blue   .hp-topic-card__icon { background: linear-gradient(135deg,#3B82F6,#1D4ED8); }
.topic--blue   h3 { color: #1E40AF; }
.topic--blue   p  { color: #1E3A8A; }

.topic--green  { background: linear-gradient(135deg,#ECFDF5,#D1FAE5); border-color: rgba(16,185,129,.2); }
.topic--green:hover { border-color: rgba(16,185,129,.45); }
.topic--green  .hp-topic-card__icon { background: linear-gradient(135deg,#10B981,#059669); }
.topic--green  h3 { color: #065F46; }
.topic--green  p  { color: #047857; }

.topic--amber  { background: linear-gradient(135deg,#FFFBEB,#FEF3C7); border-color: rgba(245,158,11,.2); }
.topic--amber:hover { border-color: rgba(245,158,11,.45); }
.topic--amber  .hp-topic-card__icon { background: linear-gradient(135deg,#F59E0B,#D97706); }
.topic--amber  h3 { color: #92400E; }
.topic--amber  p  { color: #A16207; }

.topic--purple { background: linear-gradient(135deg,#F3E8FF,#E9D5FF); border-color: rgba(139,92,246,.2); }
.topic--purple:hover { border-color: rgba(139,92,246,.45); }
.topic--purple .hp-topic-card__icon { background: linear-gradient(135deg,#8B5CF6,#7C3AED); }
.topic--purple h3 { color: #5B21B6; }
.topic--purple p  { color: #6B21A8; }

.topic--pink   { background: linear-gradient(135deg,#FDF2F8,#FCE7F3); border-color: rgba(236,72,153,.2); }
.topic--pink:hover { border-color: rgba(236,72,153,.45); }
.topic--pink   .hp-topic-card__icon { background: linear-gradient(135deg,#EC4899,#DB2777); }
.topic--pink   h3 { color: #BE185D; }
.topic--pink   p  { color: #9D174D; }

.topic--sky    { background: linear-gradient(135deg,#E0F2FE,#C7D2FE); border-color: rgba(56,189,248,.2); }
.topic--sky:hover { border-color: rgba(56,189,248,.45); }
.topic--sky    .hp-topic-card__icon { background: linear-gradient(135deg,#38BDF8,#6366F1); }
.topic--sky    h3 { color: #1E3A8A; }
.topic--sky    p  { color: #1D4ED8; }

.topic--gray   { background: linear-gradient(135deg,#F8FAFC,#E5E7EB); border-color: rgba(107,114,128,.2); }
.topic--gray:hover { border-color: rgba(107,114,128,.45); }
.topic--gray   .hp-topic-card__icon { background: linear-gradient(135deg,#9CA3AF,#4B5563); }
.topic--gray   h3 { color: #374151; }
.topic--gray   p  { color: #4B5563; }

.topic--cyan   { background: linear-gradient(135deg,#ECFEFF,#CFFAFE); border-color: rgba(14,165,233,.2); }
.topic--cyan:hover { border-color: rgba(14,165,233,.45); }
.topic--cyan   .hp-topic-card__icon { background: linear-gradient(135deg,#0EA5E9,#06B6D4); }
.topic--cyan   h3 { color: #0E7490; }
.topic--cyan   p  { color: #155E75; }

.topic--teal   { background: linear-gradient(135deg,#F0FDFA,#CCFBF1); border-color: rgba(20,184,166,.2); }
.topic--teal:hover { border-color: rgba(20,184,166,.45); }
.topic--teal   .hp-topic-card__icon { background: linear-gradient(135deg,#14B8A6,#0D9488); }
.topic--teal   h3 { color: #0F766E; }
.topic--teal   p  { color: #0D9488; }

.topic--stone  { background: linear-gradient(135deg,#FAFAF9,#F5F5F4); border-color: rgba(120,113,108,.2); }
.topic--stone:hover { border-color: rgba(120,113,108,.45); }
.topic--stone  .hp-topic-card__icon { background: linear-gradient(135deg,#78716C,#57534E); }
.topic--stone  h3 { color: #44403C; }
.topic--stone  p  { color: #57534E; }

.topic--navy   { background: linear-gradient(135deg,#F8FAFC,#F1F5F9); border-color: rgba(71,85,105,.2); }
.topic--navy:hover { border-color: rgba(71,85,105,.45); }
.topic--navy   .hp-topic-card__icon { background: linear-gradient(135deg,#475569,#334155); }
.topic--navy   h3 { color: #1E293B; }
.topic--navy   p  { color: #334155; }

/* ============================================================
   TOPICS NAV BAR
   ============================================================ */
.hp-nav {
  background: #fff;
  border-radius: 999px;
  padding: 10px 20px;
  margin: 0 auto 48px;
  max-width: 1280px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  border: 1px solid rgba(0,0,0,.06);
}
.hp-nav__list {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0; padding: 0;
  list-style: none;
}
.hp-nav__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all .25s ease;
}
.hp-nav__item:hover {
  background: var(--ni-color) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* ============================================================
   FEATURED SLIDER
   ============================================================ */
.hp-featured {
  margin-bottom: 56px;
  padding: 0 24px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.hp-featured__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.hp-slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  height: 420px;
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
}
.hp-slider-track {
  display: flex;
  height: 100%;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.hp-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.hp-slide__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 140px;
  opacity: .15;
}
.hp-slide__overlay {
  position: absolute;
  inset: 0;
  background: var(--slide-bg);
  opacity: .92;
}
.hp-slide__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  padding: 60px 40px 36px;
  color: #fff;
  z-index: 2;
}
.hp-slide__tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  background: var(--tag-color);
}
.hp-slide__title {
  font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.hp-slide__desc {
  font-size: 15px;
  color: rgba(255,255,255,.88);
  margin: 0 0 14px;
  line-height: 1.5;
}
.hp-slide__meta {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  flex-wrap: wrap;
}
.hp-slide__dots {
  position: absolute;
  bottom: 20px; right: 40px;
  display: flex; gap: 6px; z-index: 3;
}
.hp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none; cursor: pointer; padding: 0;
  transition: all .3s ease;
}
.hp-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #fff;
}
.hp-ctrl {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: none;
  color: #475569;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  transition: all .25s ease;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.hp-ctrl:hover {
  background: #0EA5E9;
  color: #fff;
  transform: scale(1.08);
}
.hp-ctrls { display: flex; gap: 8px; }

/* ============================================================
   STATS BAR
   ============================================================ */
.hp-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0 auto 56px;
  max-width: 1280px;
  padding: 0 24px;
}
.hp-stat {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.hp-stat:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.hp-stat__icon { font-size: 36px; margin-bottom: 10px; }
.hp-stat__num {
  font-family: 'Tajawal', Cairo, Arial, sans-serif;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #0EA5E9, #10B981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.hp-stat__label { font-size: 14px; color: #64748B; font-weight: 500; }

/* ============================================================
   LATEST POSTS GRID
   ============================================================ */
.hp-posts-section {
  max-width: 1280px;
  margin: 0 auto 56px;
  padding: 0 24px;
}
.hp-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hp-post-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.hp-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
}
.hp-post-card__thumb {
  height: 180px;
  overflow: hidden;
  background: var(--card-bg, linear-gradient(135deg,#EBF8FF,#DBEAFE));
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hp-post-card__thumb-icon { font-size: 64px; opacity: .35; }
/* per-category placeholder */
.hp-post-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.sp-card-deco {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: .9;
  pointer-events: none;
}
.hp-post-card__pl-icon {
  position: relative;
  font-size: 56px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.14));
  z-index: 2;
}
.hp-post-card__body {
  padding: 20px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.hp-post-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tag-bg, rgba(59,130,246,.1));
  color: var(--tag-color, #1D4ED8);
  width: fit-content;
}
.hp-post-card h3 {
  font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1E293B;
  margin: 0;
  line-height: 1.45;
}
.hp-post-card p {
  font-size: 13px;
  color: #64748B;
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94A3B8;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
  margin-top: auto;
}
.hp-post-card__read {
  color: #0EA5E9;
  font-weight: 600;
  font-size: 13px;
  transition: gap .2s;
  display: flex; align-items: center; gap: 4px;
}

/* ============================================================
   HEALTH TIP WIDGET
   ============================================================ */
.hp-tip-widget {
  max-width: 1280px;
  margin: 0 auto 56px;
  padding: 0 24px;
}
.hp-tip-inner {
  background: linear-gradient(135deg, #059669 0%, #0EA5E9 100%);
  border-radius: 24px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
  color: #fff;
  height: 100%;
  box-sizing: border-box;
}
.hp-tip-inner::before {
  content: '🩺';
  position: absolute;
  font-size: 160px;
  opacity: .07;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
}
.hp-tip-icon {
  font-size: 52px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.hp-tip-content { position: relative; z-index: 1; flex: 1; }
.hp-tip-content h3 {
  font-family: 'Tajawal', Cairo, Arial, sans-serif;
  font-size: 22px; font-weight: 800; margin: 0 0 10px;
}
.hp-tip-content p {
  font-size: 16px; margin: 0 0 18px; opacity: .9; line-height: 1.6;
}
.hp-tip-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.4);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  font-family: 'Cairo', Arial, sans-serif;
  transition: all .3s ease;
}
.hp-tip-btn:hover { background: rgba(255,255,255,.35); transform: translateY(-2px); }

/* ============================================================
   RSS / INTERNATIONAL ARTICLES
   ============================================================ */
.hp-rss-section {
  max-width: 1280px;
  margin: 0 auto 56px;
  padding: 0 24px;
}
.hp-rss-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
.hp-rss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hp-rss-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.hp-rss-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,.09); }
.hp-rss-card__img {
  height: 120px;
  background: #F1F5F9 center/cover no-repeat;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.hp-rss-card__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hp-rss-card__source {
  display: inline-block;
  background: #EEF2FF;
  color: #1D4ED8;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
}
.hp-rss-card h4 {
  font-size: 14px; font-weight: 700; color: #0F172A;
  margin: 0; line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-rss-card p {
  font-size: 12px; color: #6B7280; margin: 0; line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-rss-card__footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: #94A3B8; margin-top: auto; padding-top: 8px;
}
.hp-rss-card__link {
  color: #0EA5E9; font-weight: 600; font-size: 12px; text-decoration: none;
}
.hp-rss-sidebar {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.hp-rss-sidebar h4 {
  font-size: 16px; font-weight: 800; color: #0F172A; margin: 0 0 14px;
}
.hp-rss-actions {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
}
.hp-btn {
  padding: 9px 18px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Cairo', Arial, sans-serif;
  transition: all .25s ease;
}
.hp-btn--primary { background: #0EA5E9; color: #fff; }
.hp-btn--primary:hover { background: #0284C7; transform: translateY(-1px); }
.hp-btn--outline { background: transparent; border: 1.5px solid #CBD5E1; color: #475569; }
.hp-btn--outline:hover { border-color: #0EA5E9; color: #0EA5E9; }

.hp-cat-btn {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.05);
  cursor: pointer;
  background: transparent;
  font-family: 'Cairo', Arial, sans-serif;
  font-size: 13px; color: #334155;
  transition: all .2s ease;
  width: 100%;
  text-align: right;
}
.hp-cat-btn:hover, .hp-cat-btn.active { background: #EEF2FF; border-color: rgba(59,130,246,.2); color: #1D4ED8; }
.hp-cat-count {
  background: #fff; padding: 3px 8px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,.06); font-weight: 700; font-size: 12px;
}

/* ============================================================
   NEWSLETTER BANNER
   ============================================================ */
.hp-newsletter {
  max-width: 1280px;
  margin: 0 auto 64px;
  padding: 0 24px;
}
.hp-newsletter__inner {
  background: linear-gradient(135deg,#1E293B 0%,#0F172A 100%);
  border-radius: 24px;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hp-newsletter__inner::before {
  content: '📧';
  position: absolute; font-size: 180px; opacity: .06;
  right: 56px; top: 50%; transform: translateY(-50%);
}
.hp-newsletter__text h3 {
  font-family: 'Tajawal', Cairo, Arial, sans-serif;
  font-size: 26px; font-weight: 800; color: #fff; margin: 0 0 8px;
}
.hp-newsletter__text p { color: #94A3B8; font-size: 15px; margin: 0; }
.hp-newsletter__form {
  display: flex; gap: 10px; flex-wrap: wrap; z-index: 1; position: relative;
}
.hp-newsletter__input {
  padding: 13px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 14px;
  font-family: 'Cairo', Arial, sans-serif;
  width: 260px;
  outline: none;
  transition: border-color .25s ease;
}
.hp-newsletter__input::placeholder { color: rgba(255,255,255,.4); }
.hp-newsletter__input:focus { border-color: rgba(14,165,233,.6); }
.hp-newsletter__submit {
  padding: 13px 24px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg,#F59E0B,#D97706);
  color: #fff;
  font-size: 14px; font-weight: 700;
  font-family: 'Cairo', Arial, sans-serif;
  cursor: pointer;
  transition: all .3s ease;
  white-space: nowrap;
}
.hp-newsletter__submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,158,11,.35); }

/* ============================================================
   LOADING STATE
   ============================================================ */
.hp-loading-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}
.hp-skeleton {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
}
.hp-skel-img { height: 120px; background: linear-gradient(90deg,#F1F5F9 25%,#E2E8F0 50%,#F1F5F9 75%); background-size: 200% 100%; animation: hp-shimmer 1.5s ease-in-out infinite; }
.hp-skel-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.hp-skel-line { height: 10px; border-radius: 6px; background: linear-gradient(90deg,#F1F5F9 25%,#E2E8F0 50%,#F1F5F9 75%); background-size: 200% 100%; animation: hp-shimmer 1.5s ease-in-out infinite; }
.hp-skel-line--short { width: 60%; }
@keyframes hp-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hp-topics-grid { grid-template-columns: repeat(4, 1fr); }
  .hp-posts-grid  { grid-template-columns: repeat(2, 1fr); }
  .hp-rss-grid    { grid-template-columns: repeat(2, 1fr); }
  .hp-rss-layout  { grid-template-columns: 1fr; }
  .hp-rss-sidebar { display: none; }
  .hp-stats-bar   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hp-hero { padding: 48px 0 40px; margin-bottom: 32px; }
  .hp-hero__title { font-size: 34px; }
  .hp-hero__subtitle { font-size: 15px; margin-bottom: 32px; }
  .hp-topics-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hp-topic-card  { padding: 14px 8px; }
  .hp-topic-card__icon { width: 46px; height: 46px; font-size: 22px; }
  .hp-topic-card h3 { font-size: 12px; }
  .hp-topic-card p  { display: none; }
  .hp-nav { border-radius: 18px; margin: 0 16px 32px; padding: 10px 14px; }
  .hp-featured, .hp-posts-section, .hp-tip-widget, .hp-rss-section, .hp-newsletter, .hp-stats-bar { padding: 0 16px; }
  .hp-slider-wrap { height: 320px; }
  .hp-slide__title { font-size: 22px; }
  .hp-slide__caption { padding: 40px 20px 24px; }
  .hp-posts-grid  { grid-template-columns: 1fr; }
  .hp-rss-grid    { grid-template-columns: 1fr; }
  .hp-stats-bar   { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .hp-tip-inner   { padding: 28px 20px; flex-direction: column; text-align: center; gap: 16px; }
  .hp-newsletter__inner { grid-template-columns: 1fr; padding: 32px 24px; text-align: center; }
  .hp-newsletter__form { justify-content: center; }
  .hp-newsletter__input { width: 100%; max-width: 300px; }
}
@media (max-width: 480px) {
  .hp-hero__title { font-size: 28px; }
  .hp-topics-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .hp-topic-card  { padding: 12px 6px; gap: 6px; }
  .hp-topic-card__icon { width: 40px; height: 40px; font-size: 18px; }
  .hp-topic-card h3 { font-size: 11px; }
  .hp-stats-bar   { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .hp-stat__num   { font-size: 26px; }
  .hp-slider-wrap { height: 280px; border-radius: 16px; }
  .hp-slide__title { font-size: 18px; }
  .hp-slide__desc { display: none; }
  .hp-rss-grid    { grid-template-columns: 1fr; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hp-slider-track { transition: none !important; }
}

/* ============================================================
   TABBED CATEGORY POSTS
   ============================================================ */
.hp-tabbed-section {
  max-width: 1280px;
  margin: 0 auto 56px;
  padding: 0 24px;
}
.hp-tabbed-inner { }
.hp-tabbed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.hp-tab-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hp-tab-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid #E2E8F0;
  background: #fff;
  color: #64748B;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Cairo', Arial, sans-serif;
  transition: all .22s ease;
  white-space: nowrap;
}
.hp-tab-btn:hover { border-color: #0EA5E9; color: #0EA5E9; }
.hp-tab-btn.active {
  background: linear-gradient(135deg, #0EA5E9, #10B981);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(14,165,233,.3);
}
.hp-tabbed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.hp-tc-card { transition: all .3s ease; }

/* ============================================================
   HEALTH TOOLS SECTION
   ============================================================ */
.hp-tools-section {
  max-width: 1280px;
  margin: 0 auto 56px;
  padding: 0 24px;
}
.hp-tools-inner { }
.hp-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.hp-tool-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.hp-tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.1);
}
.hp-tool-hd {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.hp-tool-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.hp-tool-hd h3 {
  font-family: 'Tajawal', Cairo, Arial, sans-serif;
  font-size: 16px; font-weight: 700; color: #1E293B; margin: 0 0 4px;
}
.hp-tool-hd p { font-size: 12px; color: #94A3B8; margin: 0; }
.hp-tool-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hp-tool-field label {
  display: block;
  font-size: 12px; font-weight: 600; color: #64748B; margin-bottom: 6px;
}
.hp-tool-field input,
.hp-tool-field select {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-size: 14px; color: #1E293B;
  font-family: 'Cairo', Arial, sans-serif;
  background: #F8FAFC;
  box-sizing: border-box;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hp-tool-field input:focus,
.hp-tool-field select:focus {
  border-color: #0EA5E9;
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
  background: #fff;
}
.hp-tool-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #DC2626, #F87171);
  color: #fff;
  font-size: 14px; font-weight: 700;
  font-family: 'Cairo', Arial, sans-serif;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.hp-tool-btn:hover { opacity: .9; transform: translateY(-1px); }
.hp-tool-result {
  padding: 16px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid rgba(0,0,0,.06);
  text-align: center;
  font-family: 'Tajawal', Cairo, Arial, sans-serif;
  animation: hp-fade-in .4s ease;
}
.hp-tool-result--warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; font-size: 13px; padding: 12px; }
.hp-tool-result--show { background: linear-gradient(135deg, #F0F9FF, #ECFDF5); border-color: rgba(14,165,233,.2); }
@keyframes hp-fade-in { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }

/* ============================================================
   CATEGORY SPOTLIGHT
   ============================================================ */
.hp-spotlight {
  max-width: 1280px;
  margin: 0 auto 56px;
  padding: 0 24px;
}
.hp-spotlight-inner { }
.hp-spotlight-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr;
  gap: 24px;
  margin-top: 24px;
  align-items: stretch;
}
.hp-spotlight-feat {
  display: block;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
  min-height: 360px;
}
.hp-spotlight-feat:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.15); }

/* ── Slider wrapper ── */
.hp-slider {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 360px;
  height: 100%;
}
.hp-slider__slide {
  display: none;
  height: 100%;
  border-radius: 24px;
  text-decoration: none;
  animation: hpSlideIn .55s ease;
}
.hp-slider__slide--active { display: block; }
@keyframes hpSlideIn {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}
.hp-slider__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.hp-slider__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: all .3s;
  border: none; padding: 0;
}
.hp-slider__dot--active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
}
.hp-slider__progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.18);
  z-index: 10;
}
.hp-slider__progress-bar {
  height: 100%;
  background: linear-gradient(90deg,#10B981,#0EA5E9);
  width: 0%;
  transition: width linear;
}
.hp-spotlight-feat__thumb {
  position: relative;
  height: 100%;
  min-height: 360px;
  background: linear-gradient(135deg, #FEF2F2, #FECACA);
  display: flex; align-items: center; justify-content: center;
}
.hp-spotlight-feat__emoji { font-size: 100px; opacity: .35; }

/* Slide placeholder (no featured image) */
.hp-slide-deco {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: .9;
  pointer-events: none;
}
.hp-slide-placeholder {
  position: absolute;
  top: 42%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 2;
}
.hp-slide-placeholder__icon {
  font-size: 90px;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,.15));
  line-height: 1;
}
.hp-slide-placeholder__label {
  font-family: 'Tajawal','Cairo',sans-serif;
  font-size: 16px; font-weight: 700;
  color: rgba(0,0,0,.4);
  letter-spacing: .02em;
  background: rgba(255,255,255,.45);
  padding: 4px 14px;
  border-radius: 20px;
}
.hp-spotlight-feat__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,.8) 100%);
}
.hp-spotlight-feat__caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 28px 28px; color: #fff; z-index: 2;
}
.hp-spotlight-feat__tag {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; margin-bottom: 12px;
}
.hp-spotlight-feat__caption h3 {
  font-family: 'Tajawal', Cairo, Arial, sans-serif;
  font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 10px; line-height: 1.4;
}
.hp-spotlight-feat__caption p { font-size: 14px; color: rgba(255,255,255,.85); margin: 0 0 14px; line-height: 1.5; }
.hp-spotlight-feat__date { font-size: 12px; color: rgba(255,255,255,.7); }

.hp-mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,.06);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hp-mini-card:hover { transform: translateX(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.09); }
.hp-mini-card__ico {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.hp-mini-card__body { flex: 1; min-width: 0; }
.hp-mini-card__tag { font-size: 11px; font-weight: 700; }
.hp-mini-card__body h4 {
  font-size: 14px; font-weight: 700; color: #1E293B; margin: 4px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hp-mini-card__date { font-size: 11px; color: #94A3B8; }

/* ── Mini column v2: tabs + scrollable list ── */
.hp-spotlight-mini {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.hp-mini-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 4px;
}
.hp-mini-tab {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(0,0,0,.10);
  background: #fff;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-size: 12px; font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.hp-mini-tab:hover { border-color: #0EA5E9; color: #0EA5E9; background: rgba(14,165,233,.06); }
.hp-mini-tab--active { background: #0EA5E9; color: #fff !important; border-color: #0EA5E9; }

.hp-mini-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 430px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.12) transparent;
  padding-left: 2px;
}
.hp-mini-list::-webkit-scrollbar { width: 4px; }
.hp-mini-list::-webkit-scrollbar-track { background: transparent; }
.hp-mini-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 4px; }

.hp-mini-card2 {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.06);
  text-decoration: none;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease;
  flex-shrink: 0;
}
.hp-mini-card2:hover { transform: translateX(-4px); box-shadow: 0 6px 20px rgba(0,0,0,.09); }
.hp-mini-card2.hp-mini-hidden { display: none; }
.hp-mini-card2__ico {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; overflow: hidden;
}
.hp-mini-card2__ico img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.hp-mini-card2__body { flex: 1; min-width: 0; }
.hp-mini-card2__tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-bottom: 4px;
}
.hp-mini-card2__body h4 {
  font-size: 13px; font-weight: 700; color: #1E293B; margin: 0 0 4px;
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hp-mini-card2__date { font-size: 10px; color: #94A3B8; }

.hp-mini-more-btn {
  display: block; text-align: center;
  padding: 10px 20px; border-radius: 12px;
  background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
  border: 1.5px solid rgba(14,165,233,.25);
  color: #0369A1; font-size: 13px; font-weight: 700;
  text-decoration: none; margin-top: 2px;
  transition: all .2s ease;
}
.hp-mini-more-btn:hover { background: #0EA5E9; color: #fff; border-color: #0EA5E9; }

/* ============================================================
   HEALTH QUIZ
   ============================================================ */
.hp-quiz-section {
  max-width: 1280px;
  margin: 0 auto 56px;
  padding: 0 24px;
}
.hp-quiz-inner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: 24px;
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
}
.hp-quiz-inner::before {
  content: '🧠';
  position: absolute; font-size: 180px; opacity: .05;
  right: -20px; top: 50%; transform: translateY(-50%);
}
.hp-quiz-hd {
  text-align: center; margin-bottom: 28px; position: relative; z-index: 1;
}
.hp-quiz-hd h2 {
  font-family: 'Tajawal', Cairo, Arial, sans-serif;
  font-size: 26px; font-weight: 800; color: #fff; margin: 0 0 8px;
}
.hp-quiz-hd p { color: #94A3B8; font-size: 15px; margin: 0; }
.hp-quiz-body { position: relative; z-index: 1; }
.hp-quiz-progress {
  height: 4px; background: rgba(255,255,255,.12); border-radius: 999px; margin-bottom: 28px;
}
.hp-quiz-progress-bar {
  height: 100%; background: linear-gradient(90deg, #0EA5E9, #10B981);
  border-radius: 999px; transition: width .4s ease;
}
.hp-quiz-q-num { font-size: 12px; color: #64748B; margin-bottom: 10px; font-weight: 600; }
.hp-quiz-q-text {
  font-family: 'Tajawal', Cairo, Arial, sans-serif;
  font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 24px; line-height: 1.45;
}
.hp-quiz-opts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hp-quiz-opt {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #E2E8F0;
  font-size: 14px; font-weight: 600;
  font-family: 'Cairo', Arial, sans-serif;
  cursor: pointer;
  text-align: right;
  transition: all .22s ease;
}
.hp-quiz-opt:hover:not(:disabled) { background: rgba(14,165,233,.2); border-color: #0EA5E9; color: #fff; }
.hp-quiz-opt--correct { background: rgba(16,185,129,.25) !important; border-color: #10B981 !important; color: #6EE7B7 !important; }
.hp-quiz-opt--wrong   { background: rgba(239,68,68,.2)  !important; border-color: #EF4444 !important; color: #FCA5A5 !important; }
.hp-quiz-explain {
  margin-top: 18px; padding: 14px 18px;
  background: rgba(14,165,233,.12); border: 1px solid rgba(14,165,233,.25);
  border-radius: 12px; color: #BAE6FD; font-size: 14px; line-height: 1.6;
}
.hp-quiz-score {
  text-align: center; padding: 20px 0;
}
.hp-quiz-score-num {
  font-family: 'Tajawal', Cairo, Arial, sans-serif;
  font-size: 52px; font-weight: 800; color: #fff; line-height: 1;
}
.hp-quiz-score-pct { font-size: 20px; font-weight: 700; margin: 6px 0; }
.hp-quiz-score p { color: #94A3B8; font-size: 16px; margin: 12px 0 0; }

/* ============================================================
   WEEKLY POLL
   ============================================================ */
.hp-poll-widget {
  max-width: 1280px;
  margin: 0 auto 56px;
  padding: 0 24px;
}
.hp-poll-inner {
  background: #fff;
  border-radius: 20px;
  padding: 32px 40px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  max-width: none;
  margin: 0;
  height: 100%;
  box-sizing: border-box;
}
.hp-poll-hd {
  display: flex; align-items: center; gap: 16px; margin-bottom: 18px;
  font-size: 36px;
}
.hp-poll-hd h3 {
  font-family: 'Tajawal', Cairo, Arial, sans-serif;
  font-size: 20px; font-weight: 800; color: #1E293B; margin: 0 0 4px;
}
.hp-poll-hd p { font-size: 13px; color: #94A3B8; margin: 0; }
.hp-poll-q {
  font-size: 17px; font-weight: 600; color: #334155;
  margin: 0 0 20px; line-height: 1.55;
}
.hp-poll-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hp-poll-opt {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  color: #334155;
  font-size: 14px; font-weight: 600;
  font-family: 'Cairo', Arial, sans-serif;
  cursor: pointer; text-align: center;
  transition: all .22s ease;
}
.hp-poll-opt:hover { border-color: #0EA5E9; background: #EFF6FF; color: #0EA5E9; transform: translateY(-2px); }
.hp-poll-bar-row {
  display: grid; grid-template-columns: 160px 1fr 40px;
  align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px;
}
.hp-poll-bar-track {
  height: 10px; background: #F1F5F9; border-radius: 999px; overflow: hidden;
}
.hp-poll-bar-fill {
  height: 100%; background: #CBD5E1; border-radius: 999px;
  transition: width 1s cubic-bezier(.4,0,.2,1);
}
.hp-poll-bar-fill--voted { background: linear-gradient(90deg, #0EA5E9, #10B981); }
.hp-poll-bar-row span:last-child { font-weight: 700; color: #475569; text-align: left; }

/* ============================================================
   RESPONSIVE — New sections
   ============================================================ */
@media (max-width: 1100px) {
  .hp-tabbed-grid  { grid-template-columns: repeat(3, 1fr); }
  .hp-tools-grid   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hp-tabbed-grid  { grid-template-columns: repeat(2, 1fr); }
  .hp-spotlight-grid { grid-template-columns: 1fr; }
  .hp-quiz-opts    { grid-template-columns: 1fr; }
  .hp-poll-options { grid-template-columns: 1fr; }
  .hp-poll-bar-row { grid-template-columns: 120px 1fr 36px; }
}
@media (max-width: 768px) {
  .hp-tools-grid   { grid-template-columns: 1fr; }
  .hp-quiz-inner   { padding: 28px 20px; }
  .hp-poll-inner   { padding: 24px 20px; }
  .hp-tabbed-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .hp-tabbed-grid  { grid-template-columns: 1fr; }
  .hp-tool-fields  { grid-template-columns: 1fr; }
  .hp-spotlight-feat { min-height: 280px; }
  .hp-spotlight-feat__thumb { min-height: 280px; }
  .hp-slider { min-height: 280px; }
  .hp-slider__slide .hp-spotlight-feat__thumb { min-height: 280px; }
  .hp-spotlight-feat__caption h3 { font-size: 18px; }
}

/* ============================================================
   FITNESS SECTION — Homepage Preview
   ============================================================ */

/* Outer wrapper */
.hp-fitness-section {
  max-width: 1280px;
  margin: 0 auto 64px;
  padding: 0 24px;
}

/* ── Hero Banner ─────────────────────────────────────────── */
.hp-fitness-hero {
  position: relative;
  background: linear-gradient(135deg, #10B981 0%, #059669 55%, #047857 100%);
  border-radius: 28px;
  padding: 56px 48px;
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: 0 16px 48px rgba(5,150,105,.25);
}
.hp-fitness-hero__bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: space-around;
  pointer-events: none;
}
.hp-fitness-hero__bg span {
  font-size: 120px; opacity: .07; user-select: none;
}
.hp-fitness-hero__inner {
  position: relative; z-index: 1;
  text-align: center; max-width: 800px; margin: 0 auto;
  color: #fff;
}
.hp-fitness-hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
  padding: 6px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700; margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.hp-fitness-hero__title {
  font-family: 'Tajawal', Cairo, Arial, sans-serif;
  font-size: 36px; font-weight: 800; margin: 0 0 16px; line-height: 1.3;
  text-shadow: 0 2px 16px rgba(0,0,0,.15);
}
.hp-fitness-hero__sub {
  font-size: 17px; color: rgba(255,255,255,.9); margin: 0 0 32px; line-height: 1.65;
}
.hp-fitness-hero__stats {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 32px;
}
.hp-fitness-stat {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px; padding: 16px 24px; min-width: 110px; text-align: center;
}
.hp-fitness-stat span { display: block; font-size: 28px; font-weight: 800; color: #fff; line-height: 1; }
.hp-fitness-stat small { display: block; font-size: 12px; color: rgba(255,255,255,.85); margin-top: 6px; }
.hp-fitness-hero__cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #059669;
  font-family: 'Cairo', Arial, sans-serif;
  font-size: 15px; font-weight: 800;
  padding: 14px 32px; border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hp-fitness-hero__cta:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,.22); }

/* ── Inner wrapper (shared padding) ─────────────────────── */
.hp-fitness-inner {
  max-width: 100%; margin-bottom: 48px;
}
.hp-fitness-plans-hd { margin-bottom: 6px; }
.hp-fitness-plans-hd p { font-size: 15px; color: #64748B; margin: 4px 0 28px; }

/* ── Workout Plans ───────────────────────────────────────── */
.hp-fitness-plans {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.hp-fitness-plan {
  border-radius: 22px; padding: 30px; position: relative; overflow: hidden;
  border: 1.5px solid rgba(0,0,0,.07);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column; gap: 14px;
}
.hp-fitness-plan:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,.12); }

.hp-fitness-plan--beginner  { background: linear-gradient(160deg,#f0fdf4,#dcfce7); }
.hp-fitness-plan--intermediate { background: linear-gradient(160deg,#eff6ff,#dbeafe); }
.hp-fitness-plan--advanced  { background: linear-gradient(160deg,#fff7ed,#fed7aa); }

.hp-fitness-plan__badge {
  display: inline-block;
  padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 800;
  margin-bottom: 4px; align-self: flex-start;
}
.hp-fitness-plan--beginner  .hp-fitness-plan__badge { background:#059669; color:#fff; }
.hp-fitness-plan--intermediate .hp-fitness-plan__badge { background:#1D4ED8; color:#fff; }
.hp-fitness-plan--advanced  .hp-fitness-plan__badge { background:#EA580C; color:#fff; }

.hp-fitness-plan__ico { font-size: 40px; line-height: 1; }
.hp-fitness-plan h4 {
  font-family: 'Tajawal', Cairo, Arial, sans-serif;
  font-size: 18px; font-weight: 800; color: #1E293B; margin: 0; line-height: 1.35;
}
.hp-fitness-plan p    { font-size: 13px; color: #64748B; margin: 0; line-height: 1.6; }
.hp-fitness-plan__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.hp-fitness-plan__list li { font-size: 13px; color: #475569; }
.hp-fitness-plan__meta {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px;
}
.hp-fitness-plan__meta span {
  font-size: 11px; font-weight: 600; color: #64748B;
  background: rgba(0,0,0,.05); padding: 4px 10px; border-radius: 999px;
}
.hp-fitness-plan__btn {
  display: inline-block; margin-top: auto;
  padding: 11px 22px; border-radius: 12px;
  font-size: 14px; font-weight: 700;
  font-family: 'Cairo', Arial, sans-serif; text-decoration: none;
  transition: all .22s ease;
}
.hp-fitness-plan--beginner  .hp-fitness-plan__btn { background:#059669; color:#fff; }
.hp-fitness-plan--intermediate .hp-fitness-plan__btn { background:#1D4ED8; color:#fff; }
.hp-fitness-plan--advanced  .hp-fitness-plan__btn { background:#EA580C; color:#fff; }
.hp-fitness-plan__btn:hover { opacity:.88; transform: translateX(-3px); }

/* ── Latest Fitness Posts Grid ───────────────────────────── */
.hp-fitness-posts-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top:24px;
}
.hp-fitness-post-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  text-decoration: none; border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .28s ease, box-shadow .28s ease;
  display: flex; flex-direction: column;
}
.hp-fitness-post-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(5,150,105,.15); }
.hp-fitness-post-card__thumb {
  height: 160px; overflow: hidden; position: relative;
  background: linear-gradient(135deg,#ECFDF5,#D1FAE5);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hp-fitness-post-card__ico { font-size: 48px; opacity: .55; }
.hp-fitness-post-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.hp-fitness-post-card__tag {
  display: inline-block;
  background: rgba(5,150,105,.1); color: #059669;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  align-self: flex-start;
}
.hp-fitness-post-card__body h4 {
  font-size: 14px; font-weight: 700; color: #1E293B; margin: 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hp-fitness-post-card__body p  { font-size: 12px; color: #64748B; margin: 0; line-height: 1.55; flex: 1; }
.hp-fitness-post-card__footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: #94A3B8; margin-top: 8px; padding-top: 8px;
  border-top: 1px solid #F1F5F9;
}
.hp-fitness-post-card__read { color: #059669; font-weight: 700; font-size: 12px; }

/* ── Quick Tips ──────────────────────────────────────────── */
.hp-fitness-tips {
  background: linear-gradient(135deg,#F0FDF4,#DCFCE7);
  border-radius: 20px; padding: 32px; margin-top: 32px;
  border: 1px solid rgba(5,150,105,.12);
}
.hp-fitness-tips__hd {
  font-family: 'Tajawal', Cairo, Arial, sans-serif;
  font-size: 20px; font-weight: 800; color: #1E293B; margin: 0 0 20px;
}
.hp-fitness-tips__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.hp-fitness-tip {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border-radius: 14px; padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.hp-fitness-tip__ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.hp-fitness-tip div strong { display: block; font-size: 14px; font-weight: 700; color: #1E293B; margin-bottom: 4px; }
.hp-fitness-tip div p { font-size: 12px; color: #64748B; margin: 0; line-height: 1.5; }

/* ── Bottom CTA Button ───────────────────────────────────── */
.hp-fitness-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg,#059669,#10B981);
  color: #fff; font-family: 'Cairo', Arial, sans-serif;
  font-size: 15px; font-weight: 800;
  padding: 15px 36px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(5,150,105,.3);
  transition: all .25s ease;
}
.hp-fitness-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(5,150,105,.4); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hp-fitness-posts-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .hp-fitness-plans         { grid-template-columns: 1fr; }
  .hp-fitness-hero__title   { font-size: 26px; }
  .hp-fitness-hero          { padding: 40px 28px; }
}
@media (max-width: 768px) {
  .hp-fitness-posts-grid    { grid-template-columns: repeat(2,1fr); }
  .hp-fitness-tips__grid    { grid-template-columns: 1fr; }
  .hp-fitness-hero__stats   { gap: 12px; }
  .hp-fitness-stat          { padding: 12px 16px; min-width: 90px; }
  .hp-fitness-stat span     { font-size: 22px; }
}
@media (max-width: 540px) {
  .hp-fitness-section       { padding: 0 14px; }
  .hp-fitness-posts-grid    { grid-template-columns: 1fr; }
  .hp-fitness-hero__title   { font-size: 22px; }
  .hp-fitness-hero__sub     { font-size: 14px; }
  .hp-fitness-hero__bg span { font-size: 70px; }
}

/* ============================================================
   CDC AI SECTION — Article Cards + Modal
   ============================================================ */

.hp-cdc-section {
  max-width: 1280px;
  margin: 0 auto 64px;
  padding: 0 24px;
}
.hp-cdc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

/* ── Article card grid ──────────────────────────────────── */
.hp-cdc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.hp-cdc-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 14px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.hp-cdc-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,.1); }

.hp-cdc-card__thumb {
  height: 130px;
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
}
.hp-cdc-card__ico    { font-size: 52px; opacity: .45; }
.hp-cdc-card__badge  {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.3); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  padding: 3px 10px; border-radius: 999px;
}

.hp-cdc-card__body {
  padding: 18px 18px 20px;
  flex: 1; display: flex; flex-direction: column; gap: 8px;
}
.hp-cdc-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-cdc-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  background: #F1F5F9; color: #475569;
  padding: 3px 10px; border-radius: 999px;
}
.hp-cdc-card__body h4 {
  font-family: 'Tajawal', Cairo, Arial, sans-serif;
  font-size: 15px; font-weight: 800; color: #1E293B; margin: 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hp-cdc-card__subtitle { font-size: 12px; font-weight: 700; margin: 0; }
.hp-cdc-card__excerpt  {
  font-size: 13px; color: #64748B; margin: 0; line-height: 1.55; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hp-cdc-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid #F1F5F9; margin-top: auto;
}
.hp-cdc-card__date { font-size: 11px; color: #94A3B8; }
.hp-cdc-card__read {
  background: #0EA5E9; color: #fff;
  border: none; cursor: pointer; padding: 6px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 700;
  font-family: 'Cairo', Arial, sans-serif;
  transition: background .2s ease;
}
.hp-cdc-card__read:hover { background: #0284C7; }

/* ── Article modal ──────────────────────────────────────── */
.hp-cdc-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.hp-cdc-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
}
.hp-cdc-modal__panel {
  position: relative; z-index: 1;
  background: #fff; border-radius: 24px;
  width: 100%; max-width: 700px; max-height: 90vh;
  overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,.3);
  animation: hp-modal-in .3s ease;
}
@keyframes hp-modal-in { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }

.hp-cdc-modal__close {
  position: sticky; top: 16px; float: left; margin: 16px 16px 0 0;
  background: rgba(0,0,0,.08); border: none; border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; transition: background .2s;
  font-family: inherit; z-index: 2;
}
.hp-cdc-modal__close:hover { background: rgba(0,0,0,.16); }

.hp-cdc-modal__header {
  padding: 32px 28px 28px;
  display: flex; gap: 20px; align-items: flex-start;
}
.hp-cdc-modal__ico  { font-size: 56px; flex-shrink: 0; }
.hp-cdc-modal__meta { flex: 1; min-width: 0; }
.hp-cdc-modal__title {
  font-family: 'Tajawal', Cairo, Arial, sans-serif;
  font-size: 20px; font-weight: 800; color: #1E293B; margin: 0 0 8px; line-height: 1.4;
}
.hp-cdc-modal__subtitle { font-size: 14px; font-weight: 700; margin: 0 0 10px; }

.hp-cdc-modal__content {
  padding: 24px 28px 32px;
  font-size: 15px; line-height: 1.75; color: #334155;
  direction: rtl; text-align: right;
}
.hp-cdc-modal__content h2,
.hp-cdc-modal__content h3 {
  font-family: 'Tajawal', Cairo, Arial, sans-serif;
  font-weight: 700; color: #1E293B; margin: 20px 0 10px;
}
.hp-cdc-modal__content ul { padding-right: 20px; }
.hp-cdc-modal__content li { margin-bottom: 6px; }
.hp-cdc-modal__content a  { color: #0EA5E9; }

/* Interactive block inside modal */
.hp-cdc-interactive {
  background: linear-gradient(135deg,#F0F9FF,#EFF6FF);
  border: 1px solid rgba(14,165,233,.2);
  border-radius: 16px; padding: 20px 24px; margin-top: 20px;
}
.hp-cdc-interactive h3,
.hp-cdc-interactive h4 { color: #1D4ED8; margin: 0 0 10px; font-size: 14px; font-weight: 800; }
.hp-cdc-interactive ul { padding-right: 18px; margin: 0; }
.hp-cdc-interactive li { font-size: 13px; color: #334155; margin-bottom: 4px; }
.hp-cdc-interactive p  { font-size: 13px; color: #475569; margin: 8px 0 0; }

.hp-cdc-img-prompt { font-size: 12px; color: #94A3B8; margin-top: 20px; border-top: 1px solid #F1F5F9; padding-top: 12px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) { .hp-cdc-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  {
  .hp-cdc-grid { grid-template-columns: 1fr; }
  .hp-cdc-section { padding: 0 14px; }
  .hp-cdc-modal__header { flex-direction: column; gap: 12px; }
  .hp-cdc-modal__panel  { border-radius: 16px; }
  .hp-cdc-modal__content { padding: 16px 18px 24px; }
}

/* ============================================================
   THREE-COLUMN GRID  (Tip + Quiz + Poll)
   ============================================================ */
.hp-three-col-grid {
  max-width: 100%;
  margin: 0 0 56px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 28px;
  align-items: stretch;
}

/* When inside the grid, strip the standalone outer-wrapper styles */
.hp-three-col-grid .hp-col-item {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}
.hp-three-col-grid .hp-col-item > * {
  flex: 1;
}

/* Tablet: 2 + 1 stacked */
@media (max-width: 1024px) {
  .hp-three-col-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* Poll drops below, full width */
  .hp-three-col-grid .hp-col-item:last-child {
    grid-column: 1 / -1;
  }
}

/* Mobile: single column */
@media (max-width: 640px) {
  .hp-three-col-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 20px;
  }
  .hp-three-col-grid .hp-col-item:last-child {
    grid-column: auto;
  }
}
