/* ==========================================================================
   4. Buttons (shared) — ثانوي + نص قابل للتخصيص
   ========================================================================== */
.smi-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--c2);
  color: var(--cbt);
  border-radius: 5px;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s, background 0.3s, box-shadow 0.3s, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}

.smi-btn-primary::after {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  background: var(--c1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}

.smi-btn-primary:hover,
.smi-btn-primary:hover span {
  color: var(--cbth);
}

.smi-btn-primary:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.smi-btn-primary span {
  position: relative;
  z-index: 1;
  color: inherit;
}

.smi-btn-teal {
  display: inline-block;
  padding: 16px 24px;
  background: var(--c2);
  color: var(--cbt);
  font-size: 16px;
  font-weight: 500;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  transition: color 0.3s, background 0.3s, transform 0.25s ease, box-shadow 0.3s;
}

.smi-btn-teal::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: var(--c1);
  transition: width 0.3s;
}

.smi-btn-teal:hover,
.smi-btn-teal:hover span {
  color: var(--cbth);
}

.smi-btn-teal:hover::after {
  width: 100%;
}

.smi-btn-teal span {
  position: relative;
  z-index: 1;
  color: inherit;
}

.smi-btn-outline {
  display: inline-flex;
  padding: 12px 28px;
  background: var(--c2);
  color: var(--cbt);
  border-radius: 64px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, transform 0.25s ease, box-shadow 0.3s;
}

.smi-btn-outline:hover {
  background: var(--c1);
  color: var(--cbth);
}

.smi-btn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--c1);
  transition: gap 0.3s, transform 0.25s ease, color 0.3s;
}

.smi-btn-more:hover {
  color: var(--c2d);
  gap: 12px;
}

/* خط ثم معين في نهاية الرابط — CSS فقط */
.smi-btn-more::before {
  content: '';
  order: 2;
  flex-shrink: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
}

.smi-btn-more::after {
  content: '';
  order: 3;
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  background: currentColor;
  transform: rotate(45deg);
}

/* Emphasis underline — خط متعرج تحت الكلمة (مبادرات) */
.smi-em-highlight {
  font-style: normal;
  position: relative;
  display: inline;
  white-space: nowrap;
}

.smi-em-highlight::after {
  content: '';
  position: absolute;
  bottom: -0.08em;
  right: 0;
  left: 0;
  height: 0.28em;
  background: var(--c2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M1 6.5 C18 2.5 28 8.5 42 5.5 C56 2.5 68 8 82 5 C96 2 108 7.5 119 4.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M1 6.5 C18 2.5 28 8.5 42 5.5 C56 2.5 68 8 82 5 C96 2 108 7.5 119 4.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  opacity: 1;
  border-radius: 0;
  pointer-events: none;
}

/* Slider dots (shared) */
.smi-slider-dots,
.smi-init-dots,
.smi-contrib-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
}

.smi-slider-dots .smi-dot,
.smi-init-dots .smi-dot,
.smi-contrib-dots .smi-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--brand-soft);
  cursor: pointer;
  transition: background 0.3s;
}

.smi-slider-dots .smi-dot.smi-on,
.smi-init-dots .smi-dot.smi-on,
.smi-contrib-dots .smi-dot.smi-on {
  background: var(--c1);
}

.smi-contrib-dots .smi-dot {
  width: 8px;
  height: 8px;
}

/* Carousel nav buttons (shared) */
.smi-carousel-nav,
.smi-init-nav,
.smi-news-arr,
.smi-post-related-arr,
.smi-reviews-arr,
.smi-srv-arr {
  display: flex;
  gap: 8px;
}

.smi-carousel-nav button,
.smi-init-nav button,
.smi-news-arr button,
.smi-post-related-arr button,
.smi-reviews-arr button,
.smi-srv-arr button {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--c1);
  color: var(--cw);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background 0.3s;
}

.smi-carousel-nav button:hover,
.smi-init-nav button:hover,
.smi-news-arr button:hover,
.smi-post-related-arr button:hover,
.smi-reviews-arr button:hover,
.smi-srv-arr button:hover {
  background: var(--c1d);
}

.smi-srv-arr button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.smi-carousel-nav button .smi-icon,
.smi-init-nav button .smi-icon,
.smi-news-arr button .smi-icon,
.smi-post-related-arr button .smi-icon,
.smi-reviews-arr button .smi-icon,
.smi-srv-arr button .smi-icon,
.smi-stt .smi-icon,
.smi-k-nav button .smi-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* CTA box — shared ([smi_cta] + homepage) */
.smi-post-cta {
  margin-top: clamp(40px, 5vw, 56px);
  padding: clamp(28px, 4vw, 40px);
  background: linear-gradient(135deg, var(--c1d) 0%, var(--c1) 100%);
  border-radius: clamp(12px, 2vw, 16px);
  text-align: center;
  color: var(--cw);
}

.smi-post-cta h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--cw);
}

.smi-post-cta p {
  font-size: clamp(15px, 1.5vw, 17px);
  opacity: 0.92;
  margin: 0 auto 20px;
  line-height: 1.7;
  max-width: 520px;
}

.smi-post-cta .smi-btn-primary {
  background: var(--c2);
  color: var(--cbt);
}

.smi-post-cta .smi-btn-primary:hover,
.smi-post-cta .smi-btn-primary:hover span {
  color: var(--cbth);
}

.smi-post-cta .smi-btn-primary::after {
  background: var(--c1);
}

/* Section titles → Customizer heading color */
.smi-init-hd h2,
.smi-isl h3,
.smi-srv-hd h2,
.smi-contrib-head h2,
.smi-stmt-title h2,
.smi-reviews-hd h2,
.smi-partners-hd h2,
.smi-news-hd-txt h2,
.smi-news-banner h2,
.smi-pg-banner h1,
.smi-init-card-body h2 {
  color: var(--ch);
}

/* Subtitles → Customizer subtitle color */
.smi-partners-sub,
.smi-reviews-sub,
.smi-init-hd p,
.smi-srv-hd p,
.smi-pg-banner p,
.smi-news-hd-txt p {
  color: var(--cs);
}

