/* Homepage mockup sections */

/*
 * Full-bleed hero — break out of Astra/WPBakery content max-width.
 * Structure: .entry-content > .vc_row.rn-home-mockup-row > ... > .rn-hero-slider
 */
.home .entry-content .vc_row.rn-home-mockup-row,
.home .entry-content .rn-hero-slider {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  left: auto;
  right: auto;
}

.home .entry-content .vc_row.rn-home-mockup-row > .wpb_column,
.home .entry-content .vc_row.rn-home-mockup-row .vc_column-inner,
.home .entry-content .vc_row.rn-home-mockup-row .wpb_wrapper {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none !important;
}

.home .rn-categories,
.home .rn-features {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* Section title shown on mobile only (see mobile.css) */
.rn-categories-head {
  display: none;
}

.rn-categories-wrap .rn-categories {
  margin-bottom: 0;
}

/* Keep WPBakery / product sections inside a readable width */
.home .entry-content {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Hero Swiper */
.rn-hero-slider.swiper {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
  overflow: hidden;
  height: auto !important;
}

.rn-hero-slider .swiper-wrapper {
  align-items: stretch;
  height: auto !important;
}

.rn-hero-slider .swiper-slide {
  width: 100% !important;
  height: auto !important;
  box-sizing: border-box;
  overflow: hidden;
}

.rn-hero {
  position: relative;
  min-height: 560px;
  height: clamp(480px, 62vh, 640px);
  width: 100%;
  display: flex;
  align-items: center;
  border-radius: 0;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: #e8eef5;
}

.rn-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.rn-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 42%, rgba(255,255,255,0.15) 70%, transparent 100%);
  z-index: 1;
}

.rn-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 72px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  box-sizing: border-box;
}

.rn-hero__content {
  max-width: 520px;
}

.rn-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #154181;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.rn-hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #154181;
}

.rn-hero__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  color: #111;
  margin: 0 0 16px;
  font-weight: 500;
}

.rn-hero__sub {
  font-size: 16px;
  line-height: 1.55;
  color: #4b5563;
  margin: 0 0 28px;
}

.rn-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.rn-hero-slider__pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px !important;
  z-index: 8;
  text-align: center;
}

.rn-hero-slider__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #fff;
  opacity: 0.55;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  margin: 0 4px;
}

.rn-hero-slider__pagination .swiper-pagination-bullet-active {
  background: #154181;
  opacity: 1;
}

.rn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
}

.rn-btn--primary {
  background: #154181;
  color: #fff;
  border: 2px solid #154181;
}

.rn-btn--primary:hover {
  background: #0f3266;
  color: #fff;
}

.rn-btn--outline {
  background: #fff;
  color: #154181;
  border: 2px solid #154181;
}

.rn-btn--outline:hover {
  background: #f0f5fb;
  color: #154181;
}

.rn-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.rn-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

.rn-stat svg {
  width: 28px;
  height: 28px;
  color: #154181;
}

.rn-hero__card {
  background: rgba(40, 44, 52, 0.78);
  color: #fff;
  padding: 22px 24px;
  border-radius: 12px;
  max-width: 260px;
  backdrop-filter: blur(4px);
}

.rn-hero__card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.rn-hero__card a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.rn-hero__card a:hover {
  text-decoration: underline;
}

.rn-categories {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}

.rn-cat {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px 10px 16px;
  text-align: center;
  text-decoration: none;
  color: #111;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rn-cat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  color: #154181;
}

.rn-cat img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
}

.rn-cat span {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.rn-cat--all {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.rn-features {
  max-width: 1200px;
  margin: 0 auto 56px;
  padding: 36px 28px;
  background: #f3f4f6;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 32px;
  align-items: center;
}

.rn-features__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.25;
  margin: 0 0 18px;
  color: #111;
}

.rn-features__head .rn-features__cta {
  display: inline-flex;
}

.rn-features__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.rn-feature {
  text-align: left;
}

.rn-feature__icon {
  width: 36px;
  height: 36px;
  color: #154181;
  margin-bottom: 10px;
}

.rn-feature h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.rn-feature p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #6b7280;
}

@media (max-width: 1024px) {
  .rn-categories {
    grid-template-columns: repeat(4, 1fr);
  }
  .rn-features {
    grid-template-columns: 1fr;
  }
  .rn-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .rn-hero {
    min-height: 480px;
    height: auto;
  }
  .rn-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px 36px;
  }
  .rn-hero__card {
    max-width: 100%;
  }
  .rn-categories {
    grid-template-columns: repeat(2, 1fr);
  }
  .rn-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Hide Trustindex fetch-error banner when host outbound HTTP fails. */
.home .entry-content .ti-widget .alert,
.home .entry-content .trustindex .alert,
.home .entry-content .ti-widget div[style*="f8d7da"],
.home .entry-content div[style*="Could not download the posts"] {
  display: none !important;
}
