/* MCPT Modern — production CSS (no fades) — GREEN DEFAULT THEME */
.mcpt, .mcpt * { box-sizing: border-box; }

.mcpt {
  /* dynamic vars injected inline per section (php):
    --mcpt-max, --mcpt-radius, --mcpt-gap, --mcpt-accent, --mcpt-carousel-min, --mcpt-carousel-max
  */

  /* GREENISH DEFAULTS */
  --mcpt-accent: #16a34a;             /* emerald-600 */
  --mcpt-accent-2: #22c55e;           /* emerald-500 */
  --mcpt-accent-soft: rgba(34,197,94,.12);
  --mcpt-accent-soft-2: rgba(22,163,74,.08);

  --mcpt-text: #052e16;               /* deep green text */
  --mcpt-muted: rgba(5, 46, 22, .68);
  --mcpt-border: rgba(22, 163, 74, .18);

  --mcpt-bg: #ffffff;
  --mcpt-surface: rgba(255,255,255,.88);

  --mcpt-shadow: 0 14px 40px rgba(2, 44, 22, .10);
  --mcpt-shadow2: 0 26px 70px rgba(2, 44, 22, .14);
  --mcpt-ease: cubic-bezier(.22,.61,.36,1);

  font-family: Cairo, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--mcpt-text);
}

.mcpt a { color: inherit; text-decoration: none; }
.mcpt .mcpt-section { max-width: var(--mcpt-max, 1200px); margin: 34px auto; padding: 0 16px; }

.mcpt .mcpt-titlebar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.mcpt .mcpt-titlebar h2 {
  margin: 0;
  font-size: clamp(18px, 2.1vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.mcpt .mcpt-sub {
  margin: 6px 0 0;
  color: var(--mcpt-muted);
  font-size: 14px;
  max-width: 70ch;
}
.mcpt .mcpt-cta.mcpt-cta-top { white-space: nowrap; }

/* Cards */
.mcpt .mcpt-card {
  background: var(--mcpt-bg);
  border: 1px solid var(--mcpt-border);
  border-radius: var(--mcpt-radius, 18px);
  overflow: clip;
  box-shadow: var(--mcpt-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: translateY(0);
  transition: transform .25s var(--mcpt-ease), box-shadow .25s var(--mcpt-ease), border-color .25s var(--mcpt-ease);
}

.mcpt[data-mcpt-hover="0"] .mcpt-card { transition: none; }
.mcpt[data-mcpt-hover="0"] .mcpt-card:hover { transform: none; box-shadow: var(--mcpt-shadow); }

.mcpt[data-mcpt-hover="1"] .mcpt-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mcpt-shadow2);
  border-color: rgba(22, 163, 74, .28);
}

.mcpt .mcpt-media {
  position: relative;
  background: linear-gradient(135deg, rgba(22,163,74,.10), rgba(15,23,42,0));
}

.mcpt .mcpt-thumb { aspect-ratio: 16 / 10; }
.mcpt .mcpt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mcpt .mcpt-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background:
    radial-gradient(900px 380px at 0% 0%, rgba(34,197,94,.07), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(34,197,94,.03), rgba(255,255,255,0) 40%);
}

.mcpt .mcpt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.mcpt .mcpt-date { font-size: 12px; color: var(--mcpt-muted); }

.mcpt .mcpt-chip {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(22,163,74,.22);
  color: rgba(5,46,22,.90);
  white-space: nowrap;
}

.mcpt .mcpt-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mcpt .mcpt-excerpt {
  margin: 0;
  color: var(--mcpt-muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mcpt .mcpt-byline {
  margin-top: 10px;
  font-size: 12px;
  color: var(--mcpt-muted);
}

.mcpt .mcpt-cta {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 14px;
  color: var(--mcpt-accent);
}
.mcpt .mcpt-cta svg { width: 16px; height: 16px; }

/* Initials fallback */
.mcpt .mcpt-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(900px 380px at 0% 0%, rgba(34,197,94,.18), rgba(255,255,255,0)),
    linear-gradient(135deg, rgba(5,46,22,.10), rgba(5,46,22,.02));
  color: rgba(5,46,22,.90);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.mcpt .mcpt-fallback span { font-size: clamp(22px, 3vw, 44px); }
.mcpt .mcpt-fallback.is-circle { border-radius: 999px; }

/* GRID: tuned breakpoints (mobile 1 col, tablet 2 col, desktop 3/4 col) */
.mcpt .mcpt-grid { display: grid; gap: var(--mcpt-gap, 18px); }
.mcpt .mcpt-grid[data-cols="2"],
.mcpt .mcpt-grid[data-cols="3"],
.mcpt .mcpt-grid[data-cols="4"] { grid-template-columns: 1fr; }

@media (min-width: 700px) {
  .mcpt .mcpt-grid[data-cols="2"],
  .mcpt .mcpt-grid[data-cols="3"],
  .mcpt .mcpt-grid[data-cols="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .mcpt .mcpt-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mcpt .mcpt-grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* CAROUSEL (no fades) */
.mcpt .mcpt-carousel-wrap { position: relative; isolation: isolate; }
.mcpt .mcpt-track {
  display: flex;
  gap: var(--mcpt-gap, 18px);
  overflow: auto;
  padding: 10px 4px 14px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
  user-select: none;
  -webkit-user-select: none;
}
.mcpt .mcpt-track::-webkit-scrollbar { display: none; }
.mcpt .mcpt-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }

.mcpt .mcpt-track > .mcpt-card {
  flex: 0 0 auto;
  width: clamp(var(--mcpt-carousel-min, 260px), 86vw, var(--mcpt-carousel-max, 420px));
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-inline: 4px;
}

[dir="rtl"] .mcpt .mcpt-track,
[dir="rtl"] .mcpt .mcpt-arrows {
  direction: ltr;
}

[dir="rtl"] .mcpt .mcpt-card,
[dir="rtl"] .mcpt .mcpt-titlebar,
[dir="rtl"] .mcpt .mcpt-dots {
  direction: rtl;
}

/* arrows */
.mcpt .mcpt-arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  z-index: 2;
}
.mcpt .mcpt-arrow {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(22,163,74,.26);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 44px rgba(2, 44, 22, .18);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .2s var(--mcpt-ease), opacity .2s var(--mcpt-ease), box-shadow .2s var(--mcpt-ease);
  color: rgba(5,46,22,.95);
}
.mcpt .mcpt-arrow:hover { transform: translateY(-1px); box-shadow: 0 22px 60px rgba(2, 44, 22, .22); }
.mcpt .mcpt-arrow:disabled { opacity: .28; cursor: not-allowed; transform: none; box-shadow: 0 10px 26px rgba(2, 44, 22, .12); }
.mcpt .mcpt-arrow svg { width: 18px; height: 18px; }

/* dots */
.mcpt .mcpt-dots {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 6px 0 0;
}
.mcpt .mcpt-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(5,46,22,.25);
  transition: transform .2s var(--mcpt-ease), width .2s var(--mcpt-ease), background .2s var(--mcpt-ease), opacity .2s var(--mcpt-ease);
  opacity: .9;
}
.mcpt .mcpt-dot.is-active {
  width: 28px;
  background: rgba(22,163,74,.65);
  transform: translateY(-1px);
}

/* Type styles: each CPT refined — keep GREENISH default look */
.mcpt.mcpt-news .mcpt-card { border-top: 5px solid var(--mcpt-accent); }
.mcpt.mcpt-news .mcpt-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 44, 22, .50), rgba(2, 44, 22, 0));
  pointer-events: none;
}

.mcpt.mcpt-ann .mcpt-card { border-left: 6px solid var(--mcpt-accent); }
.mcpt.mcpt-ann .mcpt-thumb { aspect-ratio: 16 / 8; }
.mcpt.mcpt-ann .mcpt-body {
  background:
    radial-gradient(900px 380px at 0% 0%, rgba(34,197,94,.10), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(22,163,74,.06), rgba(255,255,255,1) 60%);
}
.mcpt.mcpt-ann .mcpt-chip {
  background: rgba(34,197,94,.10);
  border-color: rgba(22,163,74,.20);
}

.mcpt.mcpt-blog .mcpt-card { border-bottom: 5px solid var(--mcpt-accent); }
.mcpt.mcpt-blog .mcpt-thumb { aspect-ratio: 16 / 9; }

.mcpt.mcpt-story .mcpt-card { border-bottom: 5px solid var(--mcpt-accent); }
.mcpt.mcpt-story .mcpt-thumb { aspect-ratio: 16 / 9; }
.mcpt.mcpt-story .mcpt-chip {
  background: rgba(34,197,94,.10);
  border-color: rgba(22,163,74,.20);
}

/* Testimonials: calm, premium, high readability — GREEN VERSION */
.mcpt.mcpt-test .mcpt-card {
  text-align: center;
  background: var(--mcpt-surface);
  border-color: rgba(22,163,74,.22);
}
.mcpt.mcpt-test .mcpt-body {
  padding: 22px 20px 20px;
  background:
    radial-gradient(520px 260px at 50% 0%, rgba(34,197,94,.10), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(34,197,94,.04), rgba(255,255,255,0) 40%);
}
.mcpt .mcpt-test-quote {
  position: relative;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(5,46,22,.92);
}
.mcpt .mcpt-test-quote::before {
  content: "“";
  position: absolute;
  left: -2px;
  top: -18px;
  font-size: 52px;
  color: rgba(22,163,74,.22);
}
.mcpt.mcpt-test .mcpt-avatar {
  width: 92px;
  height: 92px;
  margin: 18px auto 0;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(22,163,74,.32);
  box-shadow: 0 16px 46px rgba(2, 44, 22, .14);
  background: rgba(255,255,255,.88);
  display: grid;
  place-items: center;
}
.mcpt.mcpt-test .mcpt-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcpt.mcpt-test .mcpt-name {
  margin: 12px 0 4px;
  font-size: 18px;
  color: var(--mcpt-accent);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.mcpt.mcpt-test .mcpt-statusline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mcpt-muted);
}
.mcpt.mcpt-test .mcpt-statuspill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(22,163,74,.22);
  color: rgba(5,46,22,.82);
}

/* Small screens: keep controls usable */
@media (max-width: 768px) {
  .mcpt .mcpt-carousel-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .mcpt .mcpt-track {
    order: 1;
    padding: 8px 2px 6px;
    scroll-snap-type: x proximity;
  }

  .mcpt .mcpt-track > .mcpt-card {
    width: clamp(240px, 84vw, var(--mcpt-carousel-max, 420px));
  }

  .mcpt .mcpt-arrows {
    order: 2;
    position: static;
    inset: auto;
    justify-content: flex-end;
    gap: 10px;
    padding: 0;
    pointer-events: auto;
  }

  .mcpt .mcpt-arrow {
    width: 46px;
    height: 46px;
    box-shadow: 0 12px 32px rgba(2, 44, 22, .16);
  }

  .mcpt .mcpt-dots {
    order: 3;
    padding: 0;
  }
}

@media (max-width: 420px) {
  .mcpt .mcpt-arrow { width: 40px; height: 40px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mcpt .mcpt-card { transition: none; }
  .mcpt .mcpt-track { scroll-behavior: auto; }
}
