.neo-premium-banner{
  display: flex;
  overflow: hidden;
  position: relative;
  width:100%; 
  flex-direction: column;
  padding: 0;
  transition: background-color .5s ease;
  border-radius: var(--neo-border-radius);
}

.neo-premium-banner .top-details,
.neo-premium-banner .bottom-details{
  display: flex;
  flex-direction: column;
  gap:6px
}

.neo-premium-banner .top-details{
  margin-bottom: 10px;
}

.neo-premium-banner .standard-badge-holder{
  margin-bottom: 8px;
  margin-top: -4px;
}

.neo-premium-banner.align-right .vertical-line, 
.neo-premium-banner.align-right .vertical-text {
    right: calc(100% - 20px);
}

.neo-premium-banner .standard-image-holder{
  padding: 0;
  width: 100%;
}

.neo-premium-banner .main-heading{
  margin-bottom: 0;
  margin-top: 0;
}

.neo-premium-banner .big-text{
  font-size: 150px;
  top: 0;
  z-index: 3;
  left: 25px;
}

.neo-premium-banner .description-wrapper{
  max-width: 300px;
  margin-bottom: 10px;
}

.neo-premium-banner .description-wrapper span{
  color:var(--neo-color-paragraph)
}

.neo-premium-banner:hover .vertical-line:before{
  height: 0;
}

.neo-premium-banner:hover .vertical-line:after{
  height: 50px;
}

/* Reset transforms */
.neo-premium-banner .banner-overlay-details .subtitle-wrapper,
.neo-premium-banner .banner-overlay-details .heading-wrapper,
.neo-premium-banner .banner-overlay-details .description-wrapper,
.neo-premium-banner .banner-overlay-details .icon-wrapper {
  transform: translateY(0);
  transition: color var(--neo-transition) ease, transform var(--neo-transition) ease;
}

/* Animate top-details elements */
.neo-premium-banner:hover .banner-overlay-details .subtitle-wrapper {
  transform: translateY(-6px);
}

.neo-premium-banner:hover .banner-overlay-details .heading-wrapper {
  transform: translateY(-3px);
}

/* Animate bottom-details elements */
.neo-premium-banner:hover .banner-overlay-details .description-wrapper {
  transform: translateY(6px);
}

.neo-premium-banner:hover .banner-overlay-details .icon-wrapper {
  transform: translateY(3px);
}

.neo-premium-banner a .icon-wrapper{
  transition: transform var(--neo-transition) ease;
}

.neo-premium-banner a:hover .icon-wrapper{
   transform: scale(1.2) translateX(5px) !important;
}

.neo-premium-banner .lottie-container{
  z-index: 2;
}

.neo-premium-banner.align-right .description-wrapper,
.neo-premium-banner.align-right .icon-wrapper{
  margin-left: auto;
}
.neo-premium-banner.align-center .description-wrapper,
.neo-premium-banner.align-center .icon-wrapper{
  margin-left: auto;
  margin-right: auto;
}

.neo-premium-banner .banner-overlay-details{
  position: absolute;
  bottom: 0;
  height: 100%;
  left: 0;
  padding: var(--neo-padding-elements-inner);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  width: 100%;
  transition: background var(--neo-transition) ease;
}

.neo-premium-banner .banner-overlay-details{
  background: var(--neo-background-color-elements);
}

.neo-premium-banner .banner-overlay-details:before {
  background: var(--neo-background-color-overlay-2);
  border-radius: var(--neo-border-radius);
  width: 100%;
  height: 100%;
  content: "";
  position: absolute;
  left: 0;
  top:0;
  transform: translateY(100%);
  transition: transform var(--neo-transition) ease;
}

.neo-premium-banner:hover .banner-overlay-details:before {
  transform: translateY(0);
}

.neo-premium-banner.style1:where(:not(.neo-banner-photo)):hover .banner-overlay-details{
  background:transparent;
}

.neo-premium-banner:hover .main-heading,
.neo-premium-banner:hover .subtitle-wrapper span,
.neo-premium-banner:hover .description-wrapper span,
.neo-premium-banner:hover .vertical-text{
  color:var(--neo-color-reversed);
}

.neo-premium-banner:hover .vertical-line:after{
  background-color:var(--neo-color-reversed);
}

.neo-premium-banner.style1 img{
  opacity: 0;
  transition: opacity var(--neo-transition) ease;
}


.neo-premium-banner.style1:hover img{
  opacity: 1;
}

/* ==========================
   STYLE 2 — REVERSED HOVER
   ========================== */

/* Base overlay for style2 */
.neo-premium-banner.style2 .banner-overlay-details {
  background-color: var(--neo-background-color-overlay-2);
}

/* On hover, fill background instead of clearing it */
.neo-premium-banner.style2:where(:not(.neo-banner-photo)):hover .banner-overlay-details {
  background-color: var(--neo-background-color-elements);
}

/* Overlay slides DOWN instead of UP */
.neo-premium-banner.style2:hover .banner-overlay-details:before {
  transform: translateY(100%);
}


/* Reverse text colors (back to normal instead of reversed) */
.neo-premium-banner.style2 .main-heading,
.neo-premium-banner.style2 .subtitle-wrapper span,
.neo-premium-banner.style2 .description-wrapper span,
.neo-premium-banner.style2 .vertical-text {
  color: var(--neo-color-reversed);
}

.neo-premium-banner.style2 .vertical-line:before {
  background-color:var(--neo-color-white);
}

.neo-premium-banner.style2:hover .main-heading,
.neo-premium-banner.style2:hover .subtitle-wrapper span{
  color: var(--neo-color-heading);
}

.neo-premium-banner.style2:hover .description-wrapper span{
  color: var(--neo-color-paragraph);
}

.neo-premium-banner.style2:hover .vertical-text {
  color: var(--neo-color-vertical-text);
}

/* Vertical line back to normal color */
.neo-premium-banner.style2:hover .vertical-line:after {
  background-color:var(--neo-background-color-vertical-line);
}

/* Explicit photo mode: stable layers and content-driven height. Legacy presets are untouched. */
.neo-premium-banner.neo-banner-photo {
  isolation: isolate;
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.neo-premium-banner.neo-banner-photo::after {
  content: "";
  display: block;
  grid-area: 1 / 1;
  padding-top: 100%;
  pointer-events: none;
}
.neo-premium-banner.neo-banner-photo > .standard-image-holder {
  position: absolute;
  inset: 0;
  height: 100%;
}
.neo-premium-banner.neo-banner-photo .standard-image,
.neo-premium-banner.neo-banner-photo .standard-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.neo-premium-banner.neo-banner-photo img { opacity: 1; }
.neo-premium-banner.neo-banner-photo .banner-details {
  grid-area: 1 / 1;
  align-self: stretch;
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: min-content;
}
.neo-premium-banner.neo-banner-photo .banner-overlay-details {
  position: relative;
  height: auto;
  min-height: 320px;
  flex: 1;
  gap: 24px;
  background: rgba(0, 0, 0, .25);
}
.neo-premium-banner.neo-banner-photo .banner-overlay-details::before {
  transform: none;
  opacity: 0;
  background: rgba(0, 0, 0, .2);
  transition: opacity var(--neo-transition, .35s) ease;
  pointer-events: none;
  z-index: 0;
}
.neo-premium-banner.neo-banner-photo:hover .banner-overlay-details::before { opacity: 1; transform: none; }
.neo-premium-banner.neo-banner-photo .top-details,
.neo-premium-banner.neo-banner-photo .bottom-details { position: relative; z-index: 2; flex-shrink: 0; }
.neo-premium-banner.neo-banner-photo .big-text { z-index: 1; pointer-events: none; }
.neo-premium-banner.neo-banner-photo .main-heading { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  .neo-premium-banner.neo-banner-photo .banner-overlay-details::before { transition: none; }
}

/* Legacy inserted-page compatibility: preserve landscape proportions and native Banner controls. */
.neo-ai-template-photo-card .neo-premium-banner.neo-banner-photo::after { padding-top: 80%; }
.neo-ai-template-photo-card .neo-premium-banner .banner-overlay-details { justify-content: flex-end; gap: 24px; }
.neo-ai-template-photo-card .neo-premium-banner .description-wrapper { max-width: 400px; }
@media(max-width:767px){ .neo-ai-template-photo-card .neo-premium-banner.neo-banner-photo::after { padding-top: 100%; } }
