/* Hero section — recent highlight carousel card (v4.0) */

.sv-hero-section {
  overflow: hidden;
  color: #fff;
}

/* Two-column hero layout — CSS fallback when Elementor grid settings are ignored */
@media (min-width: 1024px) {
  .sv-hero-section .sv-hero-grid > .e-con-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) !important;
    gap: 40px !important;
    align-items: center !important;
  }
}

.sv-hero-section .sv-hero-logo img,
.sv-hero-section .elementor-widget-image.sv-hero-logo img {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.sv-hero-section .sv-hero-cta-row > .e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
}

/* Ghost buttons on dark hero background */
.sv-hero-section .elementor-widget-xpro-button .xpro-elementor-button.xpro-btn-outline .xpro-button,
.sv-hero-section .elementor-widget-xpro-button .xpro-elementor-button[class*="outline"] .xpro-button {
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

.sv-hero-section .elementor-widget-xpro-button .xpro-elementor-button.xpro-btn-outline:hover .xpro-button,
.sv-hero-section .elementor-widget-xpro-button .xpro-elementor-button[class*="outline"]:hover .xpro-button {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
}

/* Highlight card */
.sv-hero-highlight {
  position: relative !important;
  margin-top: 0;
  width: 100% !important;
  max-width: 100% !important;
}

.sv-hero-highlight > .e-con-inner {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}

@media (min-width: 1024px) {
  .sv-hero-highlight {
    margin-top: 64px;
  }
}

.sv-hero-highlight::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(252, 185, 0, 0.35), rgba(3, 88, 204, 0.3), rgba(255, 255, 255, 0.1));
  filter: blur(18px);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

.sv-hero-highlight > .e-con-inner,
.sv-hero-highlight > .elementor-element {
  position: relative;
  z-index: 1;
}

.sv-hero-highlight .elementor-widget-image-carousel,
.sv-hero-highlight .elementor-image-carousel-wrapper {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.sv-hero-highlight .elementor-image-carousel-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 45%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.sv-hero-highlight .elementor-image-carousel-wrapper,
.sv-hero-highlight .elementor-widget-image-carousel .swiper {
  aspect-ratio: 4 / 3;
  width: 100% !important;
}

.sv-hero-highlight .swiper-slide,
.sv-hero-highlight .slick-slide {
  height: 100% !important;
}

.sv-hero-highlight .swiper-slide img,
.sv-hero-highlight .slick-slide img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  width: 100% !important;
  height: 100% !important;
  max-height: 420px;
  display: block;
}

.sv-hero-highlight-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  z-index: 10 !important;
  pointer-events: none;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  padding: 12px 16px 16px !important;
  box-sizing: border-box !important;
}

.sv-hero-highlight-overlay > .e-con-inner {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}

.sv-hero-highlight-badge .elementor-heading-title {
  display: inline-block;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 10px !important;
  backdrop-filter: blur(4px);
}

.sv-hero-highlight-caption {
  margin-top: auto;
}

.sv-hero-highlight-title .elementor-heading-title {
  font-family: Lora, serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin: 0 !important;
}

.sv-hero-highlight-link {
  pointer-events: auto;
}

.sv-hero-highlight-link a {
  color: #fcb900 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.sv-hero-highlight-link a:hover {
  color: #ffe066 !important;
}

/* Carousel dots — gold active dot */
.sv-hero-highlight .swiper-pagination-bullet-active,
.sv-hero-highlight .slick-dots li.slick-active button {
  background: #fcb900 !important;
  opacity: 1 !important;
}

.sv-hero-highlight .swiper-pagination {
  bottom: 12px !important;
  right: 12px !important;
  left: auto !important;
  width: auto !important;
  text-align: right;
}

.sv-hero-highlight .elementor-widget-image-carousel .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  opacity: 0.45;
}

.sv-hero-highlight .elementor-widget-image-carousel .swiper-pagination-bullet-active {
  width: 20px;
  border-radius: 999px;
}

.elementor-widget-xpro-button.sv-hero-btn-ghost .xpro-elementor-button {
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

.elementor-widget-xpro-button.sv-hero-btn-ghost .xpro-elementor-button:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
}

.sv-hero-cta-row > .e-con-inner {
  flex-wrap: wrap !important;
}
