/**
 * Hero Block Styles
 */

.wp-block-broadplace-hero {
  position: relative;
  padding: var(--wp--preset--spacing--xxl) var(--wp--preset--spacing--md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* background: linear-gradient(135deg, #e91e63 0%, #1a4f5c 100%); */
 
  /* css for background image  */

  background-size: cover;      
  background-position: 87% center !important; /* Centers the background image */
  background-repeat: no-repeat;
  /* Creates parallax effect */
  width: 100%;

    /* height: 550px;              Full viewport height */
    /* min-height: 500px;         Minimum height */

    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0;
    height: clamp(219px, 55vw, 550px);
  
}

.wp-block-broadplace-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: rgba(0, 0, 0, 0.3); */
  z-index: 1;
}

.wp-block-broadplace-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 70%;   /* Robust Change */
  width: 100%;
}

/* Alignment Classes */
.wp-block-broadplace-hero.alignment-left .hero-content {
  text-align: left;
}

.wp-block-broadplace-hero.alignment-center .hero-content {
  text-align: center;
}

.wp-block-broadplace-hero.alignment-right .hero-content {
  text-align: right;
}

/* Typography */
.wp-block-broadplace-hero .hero-headline {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 var(--wp--preset--spacing--md) 0;
  color: black;
}

.wp-block-broadplace-hero .hero-subheadline {
  font-size: clamp(1.125rem, 2.5vw, 1.75rem);
  line-height: 1.5;
  margin: 0 0 var(--wp--preset--spacing--lg) 0;
  opacity: 0.9;
  color: black;
  max-width: 100%;
}

/* Call to Action */
.wp-block-broadplace-hero .hero-cta {
  margin: var(--wp--preset--spacing--lg) 0;
}

.wp-block-broadplace-hero .hero-cta-button {
  background: var(--accent-color);
  color: var(--wp--preset--color--background);
  padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--lg);
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  /* display: inline-block; */
  transition: all 0.3s ease;
  cursor: pointer;
}

.wp-block-broadplace-hero .hero-cta-button:hover {
  background: var(--wp--preset--color--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Trust Badges */
.wp-block-broadplace-hero .hero-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--wp--preset--spacing--lg);
  margin-top: var(--wp--preset--spacing--xl);
  flex-wrap: wrap;
}

.wp-block-broadplace-hero.alignment-left .hero-trust-badges {
  justify-content: flex-start;
}

.wp-block-broadplace-hero.alignment-right .hero-trust-badges {
  justify-content: flex-end;
}

.wp-block-broadplace-hero .trust-badge:hover {
  opacity: 1;
}

.wp-block-broadplace-hero .trust-badge img {
  height: 60px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  
}

/* Wide and Full Width Alignments */
.wp-block-broadplace-hero.alignwide {
  margin-left: auto;
  margin-right: auto;
  width: var(--wp--style--global--wide-size);
}

.wp-block-broadplace-hero.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}

/* Animation on Scroll */
.wp-block-broadplace-hero.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.wp-block-broadplace-hero.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  
  .wp-block-broadplace-hero .hero-headline {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    margin-bottom: 1rem;
  }
  
  .wp-block-broadplace-hero .hero-subheadline {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .wp-block-broadplace-hero .hero-cta-button {
    padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--md);
    font-size: 1rem;
  }
  
  .wp-block-broadplace-hero .hero-trust-badges {
    gap: var(--wp--preset--spacing--md);
    margin-top: var(--wp--preset--spacing--lg);
  }
  
  .wp-block-broadplace-hero .trust-badge img {
    height: 40px;
    max-width: 80px;
  }
}

@media (max-width: 480px) {
  
  .wp-block-broadplace-hero .hero-trust-badges {
    justify-content: center !important;
  }
  
  .wp-block-broadplace-hero .trust-badge img {
    height: 35px;
    max-width: 70px;
  }
}



/**
 * Hero Block Styles
 */

/* .wp-block-broadplace-hero {
  position: relative;
  padding: var(--wp--preset--spacing--xxl) var(--wp--preset--spacing--md);
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  background-size: cover;      
  background-position: 80% center; 
  background-repeat: no-repeat;
} */

.wp-block-broadplace-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}


.wp-block-broadplace-hero.alignment-center .hero-content {
  text-align: center;
}

.wp-block-broadplace-hero.alignment-right .hero-content {
  text-align: right;
}



/* Call to Action */
.wp-block-broadplace-hero .hero-cta {
  margin: var(--wp--preset--spacing--lg) 0;
}

.wp-block-broadplace-hero .hero-cta-button {
  background: var(--accent-color);
  color: var(--wp--preset--color--background);
  padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--lg);
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.wp-block-broadplace-hero .hero-cta-button:hover {
  background: var(--wp--preset--color--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Trust Badges */
.wp-block-broadplace-hero .hero-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  gap: var(--wp--preset--spacing--lg);
  margin-top: var(--wp--preset--spacing--xl);
  flex-wrap: wrap;
}

.wp-block-broadplace-hero .trust-badge img {
  height: 75px;
  width: auto;
  max-width: 200px;
  object-fit: cover;
  box-shadow: 0px 3px 6px #00000029;
}

/* Responsive Design */
@media (max-width: 768px) {


  /* Hide CTA and trust badges on mobile */
  .wp-block-broadplace-hero .hero-cta,
  .wp-block-broadplace-hero .hero-trust-badges {
    display: none;
  }
}

/* @media (max-width: 480px) {
  .wp-block-broadplace-hero {
    padding: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--sm);
    min-height: 400px;
    background-position: 20% center; 
  }
} */