/* =========================================================
   Sections UI — guides / courses / timeline / page hero
   Unified look for homepage + dedicated listing pages
   ========================================================= */

/* —— Page hero (section listing pages) —— */
.jz-page-hero,
section.breadcrumb_area.jz-brand-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0 72px !important;
  margin: 0 !important;
  border-radius: 0 0 40px 40px !important;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(0, 220, 128, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(0, 102, 78, 0.35), transparent 55%),
    linear-gradient(145deg, #0b1a17 0%, #0f2a24 45%, #091c1a 100%) !important;
}

.jz-page-hero .breadcrumb_shap,
.jz-brand-section .breadcrumb_shap {
  opacity: 0.18 !important;
  mix-blend-mode: luminosity;
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.jz-page-hero .breadcrumb_content,
.jz-brand-section .breadcrumb_content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.jz-page-hero h1,
.jz-brand-section h1,
.jz-brand-section .f_size_50 {
  color: #fff !important;
  font-family: var(--jz-font, "Tajawal", sans-serif) !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  margin-bottom: 14px !important;
  letter-spacing: -0.02em;
}

.jz-page-hero p,
.jz-brand-section p,
.jz-brand-section .f_size_16 {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 16px !important;
  line-height: 1.85 !important;
  max-width: 36em;
  margin: 0 auto !important;
}

.jz-page-hero__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 220, 128, 0.14);
  border: 1px solid rgba(0, 220, 128, 0.28);
  color: #4dff8f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Listing page body */
.jz-listing {
  position: relative;
  padding: 72px 0 88px !important;
  background: #f7faf8;
}

.jz-listing--guides { background: #f4f8f6; }
.jz-listing--courses { background: #fff; }
.jz-listing--timeline { background: #f7faf8; }
.jz-listing--fields { background: #f7faf8; padding-top: 48px !important; }

/* =========================================================
   GUIDES
   ========================================================= */
.jz-guides.jz-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px !important;
  background: #f4f8f6 !important;
}

.jz-guides__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(0, 220, 128, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 45% at 100% 100%, rgba(0, 102, 78, 0.08), transparent 50%);
}

.jz-guides .container,
.jz-listing .container {
  position: relative;
  z-index: 1;
}

.jz-guides__head,
.jz-section__head {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

.jz-guides__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 !important;
}

.jz-guides__grid > [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.jz-guide {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px 28px 28px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(0, 102, 78, 0.08);
  box-shadow:
    0 4px 6px rgba(9, 28, 26, 0.02),
    0 18px 44px rgba(9, 28, 26, 0.06);
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}

.jz-guide__glow {
  position: absolute;
  top: -40%;
  left: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(0, 220, 128, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.jz-guide:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 220, 128, 0.28);
  box-shadow:
    0 8px 16px rgba(9, 28, 26, 0.04),
    0 28px 56px rgba(0, 102, 78, 0.14);
}

.jz-guide:hover .jz-guide__glow {
  opacity: 1;
}

.jz-guide__num {
  position: absolute;
  top: 18px;
  left: 22px;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(0, 102, 78, 0.08);
  pointer-events: none;
  transition: color 0.3s ease, transform 0.4s ease;
}

.jz-guide:hover .jz-guide__num {
  color: rgba(0, 220, 128, 0.2);
  transform: scale(1.06);
}

.jz-guide__icon {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  margin-bottom: 22px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e8f8ef, #d4f0e2);
  border: 1px solid rgba(0, 220, 128, 0.18);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.jz-guide:hover .jz-guide__icon {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 12px 28px rgba(0, 220, 128, 0.22);
}

.jz-guide__icon img {
  max-width: 46px;
  max-height: 46px;
  object-fit: contain;
  display: block;
}

.jz-guide__icon--empty {
  color: #008a58;
}

.jz-guide__title,
.jz-guide h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  color: var(--jz-ink, #0f1f1c) !important;
  min-height: 2.9em;
}

.jz-guide__text,
.jz-guide p {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0 0 24px !important;
  font-size: 14.5px !important;
  line-height: 1.8 !important;
  color: var(--jz-muted, #5a6b66) !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0 !important;
}

.jz-guide__btn {
  position: relative;
  z-index: 1;
  align-self: stretch !important;
  width: 100% !important;
  margin: 0 !important;
  gap: 8px !important;
}

.jz-guide__btn-ico {
  transition: transform 0.3s ease;
}

.jz-guide:hover .jz-guide__btn-ico {
  transform: translateY(2px);
}

@keyframes jzGuideIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.jz-guides__grid .jz-guide {
  animation: jzGuideIn 0.65s ease both;
}
.jz-guides__grid .jz-guide:nth-child(1) { animation-delay: 0.05s; }
.jz-guides__grid .jz-guide:nth-child(2) { animation-delay: 0.12s; }
.jz-guides__grid .jz-guide:nth-child(3) { animation-delay: 0.19s; }
.jz-guides__grid .jz-guide:nth-child(4) { animation-delay: 0.26s; }
.jz-guides__grid .jz-guide:nth-child(5) { animation-delay: 0.33s; }
.jz-guides__grid .jz-guide:nth-child(6) { animation-delay: 0.4s; }

/* =========================================================
   COURSES — match language
   ========================================================= */
.jz-courses.jz-section {
  padding: 96px 0 88px !important;
  background: #fff !important;
}

.jz-courses__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.jz-course {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(0, 102, 78, 0.08);
  box-shadow: 0 18px 44px rgba(9, 28, 26, 0.06);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.jz-course:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 56px rgba(0, 102, 78, 0.12);
}

.jz-course__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b1a17;
}

.jz-course__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.jz-course:hover .jz-course__media img {
  transform: scale(1.06);
}

.jz-course__body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.jz-course__body h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}

.jz-course__body h3 a {
  color: var(--jz-ink, #0f1f1c) !important;
  text-decoration: none;
}

.jz-course__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--jz-muted);
}

.jz-course__meta i {
  color: #008a58;
  margin-left: 4px;
}

/* =========================================================
   TIMELINE — refined
   ========================================================= */
.jz-timeline.jz-section {
  padding: 96px 0 88px !important;
  background: #f7faf8 !important;
}

.jz-timeline__list {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 0;
}

.jz-timeline__list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 27px;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 220, 128, 0.5), rgba(0, 102, 78, 0.15));
}

.jz-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  margin-bottom: 28px;
  align-items: start;
}

.jz-timeline__marker {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid rgba(0, 220, 128, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 0 0 6px rgba(0, 220, 128, 0.1);
}

.jz-timeline__marker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jz-timeline__marker span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4dff8f, #008a58);
}

.jz-timeline__body {
  padding: 20px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 102, 78, 0.08);
  box-shadow: 0 14px 36px rgba(9, 28, 26, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.jz-timeline__item:hover .jz-timeline__body {
  transform: translateX(-4px);
  box-shadow: 0 20px 44px rgba(0, 102, 78, 0.1);
}

.jz-timeline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--jz-muted);
}

.jz-timeline__meta b {
  color: #008a58;
}

.jz-timeline__body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--jz-ink);
}

.jz-timeline__body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--jz-muted);
}

/* Topics page: neutralize old theme card styles inside jz listing */
.jz-listing .event_features_item,
.jz-listing .blog_grid_item,
.jz-listing .h_blog_item {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .jz-guide,
  .jz-course,
  .jz-timeline__body,
  .jz-guides__grid .jz-guide {
    animation: none !important;
    transition: none !important;
  }
  .jz-guide:hover,
  .jz-course:hover {
    transform: none !important;
  }
}

@media (max-width: 991.98px) {
  .jz-guides__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .jz-courses__grid {
    grid-template-columns: 1fr;
  }

  .jz-page-hero,
  section.breadcrumb_area.jz-brand-section {
    padding: 100px 0 56px !important;
  }

  .jz-guide__title,
  .jz-guide h3 {
    min-height: 0;
  }
}

@media (max-width: 575.98px) {
  .jz-guides__grid {
    grid-template-columns: 1fr;
  }

  .jz-timeline__list::before {
    right: 21px;
  }

  .jz-timeline__item {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }

  .jz-timeline__marker {
    width: 44px;
    height: 44px;
  }
}
