/* =====================================================
   Lens Tech Home Sections CSS
   Category Slider + Finance Section
   Safe: Homepage only, no hiding original homepage
   ===================================================== */

/* Emergency restore if old codes were hiding homepage */
body.lt-force-homepage main > section,
body.lt-force-homepage main > div,
body.ba-custom-home-active main > section,
body.ba-custom-home-active main > div,
body.lt-custom-home-active main > section,
body.lt-custom-home-active main > div,
body.lt-force-homepage .s-block,
body.ba-custom-home-active .s-block,
body.lt-custom-home-active .s-block {
  display: revert !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* =========================
   Category Slider
   ========================= */

.lt-category-slider {
  direction: rtl;
  padding: 28px 0 22px;
  background: #fff;
  overflow: hidden;
  display: block;
}

.lt-category-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.lt-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.lt-category-title {
  margin: 0;
  color: #061b3a;
  font-size: clamp(21px, 2.3vw, 30px);
  font-weight: 800;
  line-height: 1.3;
}

.lt-category-subtitle {
  margin: 4px 0 0;
  color: #6b7890;
  font-size: 14px;
}

.lt-category-arrows {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.lt-category-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(20, 111, 255, 0.22);
  border-radius: 50%;
  background: #fff;
  color: #0b63ce;
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(7, 35, 77, 0.08);
  transition: 0.25s ease;
}

.lt-category-arrow:hover {
  background: #0b63ce;
  color: #fff;
  transform: translateY(-2px);
}

.lt-category-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.lt-category-track::-webkit-scrollbar {
  display: none;
}

.lt-category-card {
  flex: 0 0 130px;
  width: 130px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: block;
}

.lt-category-img-box {
  width: 130px;
  height: 130px;
  border-radius: 24px;
  overflow: hidden;
  background: #06245f;
  box-shadow: 0 10px 24px rgba(6, 28, 70, 0.14);
  transition: 0.25s ease;
}

.lt-category-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lt-category-name {
  display: block;
  margin-top: 9px;
  text-align: center;
  color: #152033;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.45;
  min-height: 40px;
}

.lt-category-card:hover .lt-category-img-box {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(6, 28, 70, 0.2);
}

/* =========================
   Finance Section
   ========================= */

.lt-finance-section {
  direction: rtl;
  padding: 34px 0 30px;
  background: #ffffff;
  overflow: hidden;
  display: block;
}

.lt-finance-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.lt-finance-box {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 15% 20%, rgba(56, 207, 255, 0.22), transparent 30%),
    radial-gradient(circle at 90% 85%, rgba(11, 99, 206, 0.32), transparent 32%),
    linear-gradient(135deg, #061b4f 0%, #073fba 52%, #001a45 100%);
  box-shadow: 0 18px 50px rgba(6, 28, 70, 0.18);
}

.lt-finance-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.08) 42%, transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 16px);
  pointer-events: none;
}

.lt-finance-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
  padding: 36px;
}

.lt-finance-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  color: #d9f5ff;
  font-size: 13px;
  font-weight: 800;
}

.lt-finance-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(27px, 3.7vw, 48px);
  font-weight: 950;
  line-height: 1.18;
  letter-spacing: -0.6px;
}

.lt-finance-text {
  max-width: 620px;
  margin: 14px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 16px;
  line-height: 1.9;
  font-weight: 600;
}

.lt-finance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.lt-finance-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  transition: 0.25s ease;
}

.lt-finance-btn-main {
  background: #ffffff;
  color: #073fba;
  box-shadow: 0 12px 26px rgba(0,0,0,0.16);
}

.lt-finance-btn-main:hover {
  color: #073fba;
  transform: translateY(-3px);
}

.lt-finance-side {
  display: grid;
  gap: 12px;
}

.lt-finance-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lt-finance-month-card {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  padding: 20px;
  border-radius: 28px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 14px 30px rgba(0,0,0,0.13);
}

.lt-finance-month-card::after {
  content: "";
  position: absolute;
  inset: auto -44px -54px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(56, 207, 255, 0.15);
}

.lt-finance-number {
  position: relative;
  z-index: 2;
  display: block;
  color: #061b3a;
  font-size: 54px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -1px;
}

.lt-finance-month {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 7px;
  color: #0b63ce;
  font-size: 17px;
  font-weight: 900;
}

.lt-finance-mini {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 12px;
  color: #667085;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .lt-finance-inner {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

@media (max-width: 768px) {
  .lt-category-slider {
    padding: 24px 0 18px;
  }

  .lt-category-wrap,
  .lt-finance-wrap {
    width: calc(100% - 24px);
  }

  .lt-category-head {
    margin-bottom: 14px;
  }

  .lt-category-arrows {
    display: none;
  }

  .lt-category-track {
    gap: 13px;
  }

  .lt-category-card {
    flex-basis: 108px;
    width: 108px;
  }

  .lt-category-img-box {
    width: 108px;
    height: 108px;
    border-radius: 20px;
  }

  .lt-category-name {
    font-size: 12px;
    margin-top: 7px;
    min-height: 36px;
  }

  .lt-finance-section {
    padding: 26px 0 24px;
  }

  .lt-finance-box {
    border-radius: 26px;
  }

  .lt-finance-inner {
    padding: 22px;
    gap: 20px;
  }

  .lt-finance-title {
    font-size: 29px;
  }

  .lt-finance-text {
    font-size: 14px;
  }

  .lt-finance-months {
    gap: 10px;
  }

  .lt-finance-month-card {
    min-height: 122px;
    padding: 17px;
    border-radius: 22px;
  }

  .lt-finance-number {
    font-size: 42px;
  }

  .lt-finance-month {
    font-size: 14px;
  }

  .lt-finance-btn {
    width: 100%;
  }
}