.hero-slider {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
  background-color: #000; /* fallback to prevent white flash */
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}


/* ? Caption styling */
.item .caption {
  position: absolute;
  left: 5%;
  bottom: 30%;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  z-index: 20;
}
.caption h2{
	margin: 0;
	padding: 0;
	font-size: 3rem;
	font-weight: 700;
	letter-spacing: -.1rem;
	color: #FFF;
	text-shadow: 3px 2px 10px #000000;
	/*
	border: 1px solid #f8f821;
	*/
} 

.hero-slide.active .text-1 {
	margin: 0 0 0 0;
	animation-duration: 15s;
	opacity: 0;
	animation-name: textslideLeftFade;
}

.hero-slide.active .text-2 {
	margin: -5px 0 0 60px;
	animation-duration: 15s;
	opacity: 0;
	animation-name: textslideRightFade;
}

/* Hero Flags Slider */
.flags_wrap{
	position: relative;
	width: 100%;
	background-color: rgba(15, 46, 75, .5);
	z-index: 5;
}
.flags-block {
	position: relative;
	width: 1280px;
	margin: 0 auto;           /* center the div horizontally */
	padding: 3px 0;            /* optional for spacing */
	margin-top: -80px;
	overflow: hidden;
	}
.flags {
	/*white-space: nowrap;  Prevent wrapping */
	display: flex;
	transition: transform 5s ease;
	position: relative;
	margin: 5px auto;           /* center the div horizontally */
	padding: 0;
	/*
	background-color:#de3fca;
	*/
	width: auto;      
}
.flag {
	/*display: inline-block;*/
	flex: 0 0 auto;
	width: 114px;
	margin: 0 1px;
	padding: 0;
}
.flag img{
	max-width: 100%;
	height: auto;
	display: block;
	vertical-align: bottom;
	margin: 0;
	padding: 0;
}

/* Quote Slider */
.quote-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
 height: auto;
 min-height: 200px;
  margin: 0 auto;
}

.quote-slides {
  position: relative;
  /*width: 100%;*/
  width: 1280px;
  margin: 0 auto;
  /*border: 1px solid #fc1b58;*/
}

.quote-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 20px 0;
  opacity: 0;
}


.quote-slide-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 250px;
  text-align: center;
}

.per-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #b2b2b2;
  background-color: #fff;
  margin-bottom: 0.5rem;
}

.per-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.per-name {
  font-weight: 500;
  color: #b1357e;
  font-size: 1.2rem;
}

.per-year {
  font-size: 3rem;
  font-weight: 600;
  color: #b1357e;
}

.quote-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #5b57a6;
}

.quote-text-line1 {
  text-align: left;
  padding-left: 1rem;
}

.quote-text-line2 {
  text-align: right;
  padding-right: 0.5rem;
}

.quote-mark.open,
.quote-mark.close {
  position: absolute;
  font-size: 5rem;
  color: #f0556c;
  font-weight: bold;
  line-height: 1;
}

.quote-mark.open {
  left: 0;
  top: 0;
}

.quote-mark.close {
  right: 0;
  bottom: -10px;
}

/**/

.hero-banner {
  position: relative;
  width: 100%;
  height: 250px; /* adjust as needed */
  background-color: #cfcfcf; /* fallback color */
  display: flex;
  align-items: flex-end;  /* aligns children to bottom */
  padding: 0;        /* optional horizontal padding */
  box-sizing: border-box; /* ensures padding doesn’t break width */
  overflow: hidden;
}

.hero-banner .page-title {
  margin: 0 0 20px 300px;
  padding: 0;       /* optional spacing from bottom */
  color: #fff;           /* title color */
  font-size: 3rem;       /* adjust size */
}

/* ? Responsive adjustments */
@media (max-width: 768px) {
	.hero-banner .page-title {
  margin: 0 0 20px 30px;
 font-size: 2rem;       /* adjust size */
}

	.hero-slider {
    height: 300px;
  }

	.hero-banner{
		height: 250px;
	}
	
  .hero-slide {
    background-position: center center;
    background-size: contain;
  }
	  .caption .text-1 {
    font-size: 2rem;
    top: 15%;
  }

  .caption .text-2 {
    font-size: 2rem;
    top: 25%;
  }
 
.quote-slider {
 min-height: 300px;
}

.quote-slides {
 width: 100%;
}

  .quote-slide {
    flex-direction: column;
    align-items: center;
    width: 90%;
    padding: 0;
  }

  .quote-slide-person {
    flex: 0 0 auto;
    margin-bottom: 1rem;
  }

  .quote-text {
    flex: 0 0 auto;
    font-size: 1.2rem;
    padding: 1rem;
  }

  .quote-mark.open {
    font-size: 3rem;
    top: -5px;
  }

  .quote-mark.close {
    font-size: 3rem;
    bottom: -5px;
  }
 
 .flags-block {
    width: 100%;
    margin-top: -35px;
    padding: 0;
  }
   .flag {
    width: 42px;
    margin: 1px;
  }

}

/* ? Keyframe animation for slide transition */
@keyframes shrinkSlideLeft {
  0% {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
  90% {
    opacity: 1;
    transform: scale(1.1) translateX(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.1) translateX(-40%);
  }
}

@keyframes textslideLeftFade {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  5% {
    transform: translateX(-3%);
    opacity: 1;
  }
  95% {
    transform: translateX(0%);
    opacity: 1;
  }
  100% {
    transform: translateX(30%);
    opacity: 0;
  }
}

@keyframes textslideRightFade {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  5% {
    transform: translateX(3%);
    opacity: 1;
  }
  95% {
    transform: translateX(0%);
    opacity: 1;
  }
  100% {
   transform: translateX(-30%);
   opacity: 0;
  }
}

@keyframes slideLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes quoteIn {
  0% {
    opacity: 0;
    transform: translateX(0%);
  }
  100% {
    opacity: 1;
    transform: translateX(15%);
  }
}

@keyframes quoteOut {
  0% {
    opacity: 1;
    transform: translateX(15%);
  }
  100% {
    opacity: 0;
    transform: translateX(40%);
  }
}
