/* ==========================================================
   أداة "وعي" - ملف الأنماط (CSS)
   كود مستقل بالكامل - لا يعتمد على أي مكتبة خارجية (لا jQuery
   ولا Slick ولا Font Awesome) حتى لا يتعارض مع أي أداة أخرى
   بالصفحة.
   ========================================================== */
.jzct-explore-section {
  position: relative;
  background: linear-gradient(to bottom, rgba(31, 187, 180, .25), transparent);
  padding: 4rem 0;
}

/* عرض حاوية الأداة: يطابق تمامًا آلية بقية أدوات الموقع (فحصتها
   عمليًا عبر قياس .colleges__gates .container و.collage__links
   .container على أكثر من 20 عرض شاشة مختلف من 340px إلى 1920px):
   العرض دائمًا = min(80% من عرض الشاشة, الحد الأقصى لنقطة التوقف
   الحالية) - وليس padding ثابت كما افترضت سابقًا. نقاط التوقف
   والحدود القصوى مطابقة تمامًا لما يستخدمه الموقع. */
.jzct-explore-wrap {
  --jzct-primary: #1fbbb4;
  --jzct-primary-rgb: 31, 187, 180;
  --jzct-secondary: #005b85;
  --jzct-text: #414042;
  width: 80%;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", "Tajawal", sans-serif;
  background: transparent;
}

@media (min-width: 576px) {
  .jzct-explore-wrap {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .jzct-explore-wrap {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .jzct-explore-wrap {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .jzct-explore-wrap {
    max-width: 1140px;
  }
}

@media (min-width: 1600px) {
  .jzct-explore-wrap {
    max-width: 1350px;
  }
}

.jzct-explore-wrap * {
  box-sizing: border-box;
}

.jzct-explore-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 0 2.5rem;
  flex-wrap: wrap;
}

@media (max-width: 599px) {
  .jzct-explore-header {
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
  }

  .jzct-explore-line {
    display: none;
  }
}

.jzct-explore-title h4 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--jzct-text);
  white-space: nowrap;
}

.jzct-explore-line {
  flex: 1;
  height: 2px;
  background-color: var(--jzct-primary);
  margin: 0 12px;
  min-width: 40px;
}

.jzct-explore-btn {
  display: inline-block;
  height: 46px;
  line-height: 32px;
  padding: .5rem 1.4rem;
  border-radius: 50rem;
  color: var(--jzct-primary) !important;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
  outline: none;
  box-shadow: none;
  transition: all .3s ease-in;
  white-space: nowrap;
}

.jzct-explore-btn:hover,
.jzct-explore-btn:focus,
.jzct-explore-btn:active {
  background-color: var(--jzct-primary);
  color: #fff !important;
  text-decoration: none !important;
}

.jzct-explore-slider {
  position: relative;
  width: 95%;
  margin: 0 auto;
}

.jzct-explore-main {
  position: relative;
  display: block;
  background-color: var(--jzct-primary);
  border-radius: 16px;
  overflow: hidden;
  height: 640px;
}

.jzct-explore-main-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease;
}

.jzct-explore-main-item.is-active {
  opacity: 1;
  visibility: visible;
}

.jzct-explore-image {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.jzct-explore-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jzct-explore-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top left, rgba(65, 64, 66, .55), rgba(var(--jzct-primary-rgb), .15));
  border-radius: 16px;
}

.jzct-explore-caption {
  position: absolute;
  right: 0;
  bottom: 200px;
  padding: 16px 80px;
  z-index: 2;
  max-width: 80%;
}

.jzct-explore-caption h5 {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.6;
}

.jzct-explore-thumbs-wrap {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 180px;
  z-index: 5;
  display: flex;
  justify-content: center;
  padding: 0 80px;
}

.jzct-explore-thumbs {
  max-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  position: relative;
  z-index: 2;
  padding: 0 4px;
  scrollbar-width: none;
}

.jzct-explore-thumbs::-webkit-scrollbar {
  display: none;
}

.jzct-explore-thumb-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.jzct-explore-thumb {
  position: relative;
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  width: 184px;
  height: 140px;
  cursor: pointer;
}

.jzct-explore-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jzct-explore-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--jzct-primary-rgb), .8), rgba(var(--jzct-primary-rgb), .6), rgba(31, 187, 180, .2));
  transition: all .5s ease;
}

.jzct-explore-thumb-item.is-active .jzct-explore-thumb {
  border-color: #fff;
  opacity: 1;
}

.jzct-explore-thumb-item.is-active .jzct-explore-thumb::after {
  display: none;
}

.jzct-explore-controls {
  position: absolute;
  inset: 0;
  padding: 0 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 0;
  pointer-events: none;
}

.jzct-explore-arrow {
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--jzct-primary);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  max-width: 30px;
  max-height: 30px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  cursor: pointer;
  transition: all .3s ease-in;
}

.jzct-explore-chevron {
  display: block;
  width: 7px;
  height: 7px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.jzct-explore-chevron-right {
  transform: rotate(45deg) translate(-1px, -1px);
}

.jzct-explore-chevron-left {
  transform: rotate(-135deg) translate(-1px, -1px);
}

@media (max-width:991px) {
  .jzct-explore-main {
    height: 470px;
  }

  .jzct-explore-thumbs-wrap {
    height: 116px;
    padding: 0 60px;
  }

  .jzct-explore-thumb {
    width: 110px;
    height: 86px;
  }

  .jzct-explore-caption {
    padding: 16px 40px;
    bottom: 150px;
  }

  .jzct-explore-controls {
    padding: 0 20px;
  }

  .jzct-explore-arrow {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
  }

  .jzct-explore-thumbs {
    gap: 10px;
  }
}

@media (max-width:768px) {
  .jzct-explore-main {
    height: 300px;
  }

  .jzct-explore-thumbs-wrap {
    height: 66px;
    padding: 0 46px;
  }

  .jzct-explore-thumb {
    width: 62px;
    height: 46px;
    border-radius: 8px;
  }

  .jzct-explore-controls {
    padding: 0 14px;
  }

  .jzct-explore-thumbs {
    gap: 6px;
  }

  .jzct-explore-caption {
    bottom: 16px;
    padding: 12px 16px;
    max-width: 100%;
  }

  .jzct-explore-title h4 {
    font-size: 1.2rem;
  }

  .jzct-explore-arrow {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
  }

  .jzct-explore-chevron {
    width: 6px;
    height: 6px;
  }
}

@media (max-width:480px) {
  .jzct-explore-main {
    height: 235px;
  }

  .jzct-explore-thumbs-wrap {
    height: 52px;
    padding: 0 36px;
  }

  .jzct-explore-thumb {
    width: 46px;
    height: 34px;
    border-radius: 6px;
  }

  .jzct-explore-controls {
    padding: 0 10px;
  }

  .jzct-explore-thumbs {
    gap: 5px;
  }

  .jzct-explore-arrow {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    max-width: 22px;
    max-height: 22px;
  }
}
