/**
 * Islamtics — homepage hero + pillar cards + section polish
 */

.itx-hero,
.itx-hero *,
.itx-pillars,
.itx-pillars * { box-sizing: border-box; }

/* ── Hero section ──────────────────────────────────────────── */
.itx-hero {
  position: relative;
  overflow: hidden;
  margin: 0 calc(50% - 50vw);
  padding: 4rem 1.5rem 5rem;
  background:
    radial-gradient(ellipse 800px 400px at 50% -100px, rgba(74, 222, 128, 0.18), transparent 60%),
    linear-gradient(to bottom, #f0faf6 0%, #e6f0ee 100%);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  text-align: center;
}

@media (min-width: 768px) {
  .itx-hero { padding: 5rem 1.5rem 6rem; }
}

.itx-hero__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(16, 185, 129, 0.4), transparent);
  pointer-events: none;
}

.itx-hero__inner {
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
}

.itx-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(167, 243, 208, 0.6);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #047857;
  margin-bottom: 1.5rem;
}
.itx-hero__eyebrow::before {
  content: "✦";
  color: rgba(5, 150, 105, 0.7);
}

.itx-hero__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 5.5vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #064e3b;
  margin: 0 0 1rem;
}

.itx-hero__title em {
  font-style: italic;
  color: #059669;
}

.itx-hero__subtitle {
  max-width: 38rem;
  margin: 0 auto 2rem;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: #475569;
}

.itx-hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

.itx-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.itx-hero__btn--primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(16, 185, 129, 0.45);
}
.itx-hero__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -4px rgba(16, 185, 129, 0.55);
  color: #fff;
}

.itx-hero__btn--ghost {
  background: rgba(255, 255, 255, 0.8);
  color: #064e3b;
  border-color: rgba(167, 243, 208, 0.8);
}
.itx-hero__btn--ghost:hover {
  background: #fff;
  border-color: #6ee7b7;
  color: #064e3b;
  transform: translateY(-1px);
}

.itx-hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.itx-hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.itx-hero__trust-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #10b981;
}

/* ── Pillar cards ──────────────────────────────────────────── */
.itx-pillars {
  margin: 0 calc(50% - 50vw);
  padding: 4rem 1.5rem;
  background: #fff;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
}

.itx-pillars__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.itx-pillars__heading {
  text-align: center;
  margin-bottom: 0.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #064e3b;
}

.itx-pillars__sub {
  text-align: center;
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0 auto 2.5rem;
  max-width: 36rem;
}

.itx-pillars__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px)  { .itx-pillars__grid { gap: 1.25rem; } }
@media (min-width: 768px)  { .itx-pillars__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .itx-pillars__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; } }

.itx-pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.itx-pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #10b981, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.itx-pillar:hover {
  transform: translateY(-3px);
  border-color: #6ee7b7;
  box-shadow: 0 12px 24px -8px rgba(16, 185, 129, 0.2);
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.itx-pillar:hover::before { opacity: 1; }

.itx-pillar__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #059669;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}
.itx-pillar:hover .itx-pillar__icon { transform: scale(1.08); }
.itx-pillar__icon svg { width: 24px; height: 24px; }

.itx-pillar__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.itx-pillar__desc {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0.25rem 0 0;
  line-height: 1.4;
}

/* ── Polish existing "Latest" sections (h2 inside .entry-content) ─ */
.entry-content h2.wp-block-heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #064e3b;
  text-align: center;
  position: relative;
  padding-bottom: 0.75rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.entry-content h2.wp-block-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  border-radius: 9999px;
  background: linear-gradient(to right, transparent, #10b981, transparent);
}

/* ── Dark mode ─────────────────────────────────────────────── */
body.ct-default-dark-mode .itx-hero,
[data-theme="dark"] .itx-hero {
  background:
    radial-gradient(ellipse 800px 400px at 50% -100px, rgba(6, 95, 70, 0.4), transparent 60%),
    linear-gradient(to bottom, #07150f 0%, #0c1a12 100%);
}
body.ct-default-dark-mode .itx-hero__eyebrow,
[data-theme="dark"] .itx-hero__eyebrow {
  background: rgba(23, 23, 23, 0.5);
  border-color: rgba(6, 78, 59, 0.5);
  color: #6ee7b7;
}
body.ct-default-dark-mode .itx-hero__title,
[data-theme="dark"] .itx-hero__title { color: #d1fae5; }
body.ct-default-dark-mode .itx-hero__title em,
[data-theme="dark"] .itx-hero__title em { color: #6ee7b7; }
body.ct-default-dark-mode .itx-hero__subtitle,
[data-theme="dark"] .itx-hero__subtitle { color: #94a3b8; }
body.ct-default-dark-mode .itx-hero__btn--ghost,
[data-theme="dark"] .itx-hero__btn--ghost {
  background: rgba(23, 23, 23, 0.6);
  color: #d1fae5;
  border-color: rgba(6, 78, 59, 0.6);
}
body.ct-default-dark-mode .itx-hero__btn--ghost:hover,
[data-theme="dark"] .itx-hero__btn--ghost:hover { background: rgba(6, 78, 59, 0.3); }
body.ct-default-dark-mode .itx-hero__trust,
[data-theme="dark"] .itx-hero__trust { color: #64748b; }

body.ct-default-dark-mode .itx-pillars,
[data-theme="dark"] .itx-pillars { background: #0a0a0a; }
body.ct-default-dark-mode .itx-pillars__heading,
[data-theme="dark"] .itx-pillars__heading { color: #d1fae5; }
body.ct-default-dark-mode .itx-pillars__sub,
[data-theme="dark"] .itx-pillars__sub { color: #94a3b8; }
body.ct-default-dark-mode .itx-pillar,
[data-theme="dark"] .itx-pillar {
  background: linear-gradient(180deg, #0c0c0c 0%, #0a0a0a 100%);
  border-color: #262626;
}
body.ct-default-dark-mode .itx-pillar:hover,
[data-theme="dark"] .itx-pillar:hover {
  border-color: rgba(6, 78, 59, 0.6);
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.15) 0%, #0a0a0a 100%);
}
body.ct-default-dark-mode .itx-pillar__icon,
[data-theme="dark"] .itx-pillar__icon {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.4) 0%, rgba(6, 95, 70, 0.4) 100%);
  color: #6ee7b7;
}
body.ct-default-dark-mode .itx-pillar__name,
[data-theme="dark"] .itx-pillar__name { color: #f1f5f9; }
body.ct-default-dark-mode .itx-pillar__desc,
[data-theme="dark"] .itx-pillar__desc { color: #94a3b8; }

body.ct-default-dark-mode .entry-content h2.wp-block-heading,
[data-theme="dark"] .entry-content h2.wp-block-heading { color: #d1fae5; }

@media (prefers-color-scheme: dark) {
  body:not(.ct-default-light-mode) .itx-hero {
    background:
      radial-gradient(ellipse 800px 400px at 50% -100px, rgba(6, 95, 70, 0.4), transparent 60%),
      linear-gradient(to bottom, #07150f 0%, #0c1a12 100%);
  }
  body:not(.ct-default-light-mode) .itx-hero__title { color: #d1fae5; }
  body:not(.ct-default-light-mode) .itx-hero__title em { color: #6ee7b7; }
  body:not(.ct-default-light-mode) .itx-hero__subtitle { color: #94a3b8; }
  body:not(.ct-default-light-mode) .itx-pillars { background: #0a0a0a; }
  body:not(.ct-default-light-mode) .itx-pillars__heading { color: #d1fae5; }
  body:not(.ct-default-light-mode) .itx-pillar {
    background: linear-gradient(180deg, #0c0c0c 0%, #0a0a0a 100%);
    border-color: #262626;
  }
  body:not(.ct-default-light-mode) .itx-pillar__name { color: #f1f5f9; }
  body:not(.ct-default-light-mode) .itx-pillar__desc { color: #94a3b8; }
  body:not(.ct-default-light-mode) .entry-content h2.wp-block-heading { color: #d1fae5; }
}
