/* Hero Project Banner Widget */

.vars-pb {
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.vars-pb * {
  box-sizing: border-box;
}

/* Elementor wrapper fix */
.elementor-element-vars-project-banner .vars-pb {
  height: 85vh !important;
  min-height: 85vh !important;
}

.elementor-widget-vars-project-banner > .elementor-widget-container {
  padding: 0 !important;
  height: 100% !important;
}

/* --- Carousel --- */
.vars-pb-carousel {
  height: 100% !important;
  width: 100%;
  flex: 1;
  margin: 0 !important;
  padding: 0 !important;
}

.vars-pb-carousel .owl-stage-outer,
.vars-pb-carousel .owl-stage,
.vars-pb-carousel .owl-item {
  height: 100% !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.vars-pb-carousel .owl-stage {
  display: flex !important;
}

.vars-pb-carousel .owl-item {
  display: flex !important;
}

/* --- Slide --- */
.vars-pb-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.vars-pb-slide.item {
  display: flex;
}

/* --- Picture & Image --- */
.vars-pb-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vars-pb-picture img {
  height: 100% !important;
}

.vars-pb-img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* --- Overlay --- */
.vars-pb-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* --- Content --- */
.vars-pb-content {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 2.5rem 3.75rem;
  color: #fff;
  max-width: 100%;
  width: auto;
}

/* Content positioning variations */
.vars-pb-content.center-left {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.vars-pb-content.bottom-center {
  left: 50%;
  transform: translateX(-50%);
}

.vars-pb-content.bottom-right {
  left: auto;
  right: 0;
}

.vars-pb-content.center-right {
  top: 50%;
  left: auto;
  right: 0;
  bottom: auto;
  transform: translateY(-50%);
}

.vars-pb-content.center-left.center {
  left: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
}

/* --- Logo --- */
.vars-pb-logo {
  width: 80px !important;
  height: 80px !important;
  margin-bottom: 1rem !important;
  display: block !important;
  object-fit: contain !important;
  max-width: 80px !important;
}

/* --- Heading --- */
.vars-pb-heading {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

/* --- Subheading --- */
.vars-pb-subheading {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* --- Line/Tagline --- */
.vars-pb-line {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* RERA Number */
.vars-pb-rera {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* --- Button --- */
.vars-pb-btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background-color: #4dbfa3;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border-radius: 2px;
  line-height: 1;
}

.vars-pb-btn:hover {
  background-color: #3a9880;
  color: #fff;
}

/* --- Owl Carousel Navigation --- */
.vars-pb .owl-nav {
  position: absolute !important;
  bottom: 2rem !important;
  right: 2rem !important;
  display: flex !important;
  gap: 0.75rem;
  z-index: 10;
}

.vars-pb .owl-nav.disabled {
  display: none !important;
}

.vars-pb .owl-nav button {
  width: 3rem !important;
  height: 3rem !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  padding: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  line-height: 1 !important;
  backdrop-filter: blur(2px);
}

.vars-pb .owl-nav button:hover {
  background-color: rgba(255, 255, 255, 0.3) !important;
}

.vars-pb .owl-nav button.disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
}

.vars-pb .owl-nav button svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Owl Carousel Dots (hidden) */
.vars-pb .owl-dots {
  display: none !important;
}

/* --- Elementor Editor Fixes --- */
.elementor-editor-active .vars-pb {
  height: 500px !important;
  min-height: 500px !important;
  display: block !important;
  background-color: #e8e8e8 !important;
  border: 2px solid #999 !important;
  overflow: hidden !important;
  position: relative !important;
}

.elementor-editor-active .vars-pb-carousel {
  height: 500px !important;
  min-height: 500px !important;
  display: block !important;
  background-color: #e8e8e8 !important;
  overflow: hidden !important;
}

.elementor-editor-active .vars-pb-slide {
  height: 500px !important;
  min-height: 500px !important;
}

/* Cube CSS */
.cube-grid {
  display: grid;
  grid-template-columns: repeat(4, 80px);
  grid-template-rows: repeat(4, 80px);
  gap: 0; /* no gap = seamless blocks */
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
}

/* .cube-grid .cubes {
    background-color: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
} */


/* --- Responsive --- */
@media (max-width: 1024px) {
  .vars-pb-heading {
    font-size: 2rem;
  }

  .vars-pb-subheading {
    font-size: 1rem;
  }

  .vars-pb-content {
    padding: 2rem 2.5rem;
  }

  .vars-pb .owl-nav button {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }
  .cube-grid {
      grid-template-columns: repeat(4, 60px);
      grid-template-rows: repeat(4, 60px);
  }
}

@media (max-width: 767px) {
  .vars-pb-content.center-right {
    left: 0;
    right: 0;
  }
  .vars-pb {
    height: 85vh;
  }

  .vars-pb-content {
    padding: 1.5rem 1.875rem;
  }

  .vars-pb-heading {
    font-size: 1.5rem;
  }

  .vars-pb-subheading {
    font-size: 0.95rem;
  }

  .vars-pb-rera {
    font-size: 0.85rem;
  }

  .vars-pb-logo {
    width: 70px !important;
    height: 70px !important;
    margin-bottom: 0.75rem !important;
    object-fit: contain !important;
    max-width: 70px !important;
  }

  .vars-pb-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  .vars-pb .owl-nav {
    bottom: 1rem !important;
    right: 1rem !important;
  }

  .vars-pb .owl-nav button {
    width: 2rem !important;
    height: 2rem !important;
  }

  .vars-pb .owl-nav button svg {
    width: 20px;
    height: 20px;
  }
  .cube-grid {
    grid-template-columns: repeat(4, 40px);
    grid-template-rows: repeat(4, 40px);
}
}
