/* =========================================================
   SWIPER: BASE (keep these minimal + consistent)
   ========================================================= */

.awards-carousel.swiper,
.testimonial-carousel.swiper,
.news-post-carousel.swiper {
  position: relative;
  box-sizing: border-box;
  overflow: hidden !important;
}


/* =========================================================
   Testimonials Carousel
   ========================================================= */

.testimonials {
  position: relative;
  z-index: 500;
  padding: 0 15px;
}

.testimonial-slide {
  background-size: 100% 105%;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 40px 5px;
  color: #1b2118;
  transition: transform 0.6s ease;
  text-align: center;
}

.testimonial-carousel .swiper-slide {
  max-width: 950px;
  width: 100%;
  height: 450px;
  margin: 0 auto;
  box-sizing: border-box;
}

.testimonial-slide:hover {
  transform: translateY(-10px);
}

.testimonial-logo img {
  width: 250px;
  margin: 0 auto 15px;
  display: block;
}

.testimonial-text {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  text-align: left;
  padding: 20px 10px 0;
  min-height: 120px;
}

.carousel-testimonial-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  text-overflow: ellipsis;
  line-height: 1.5em;
  max-height: 4.5em;
  position: relative;
  z-index: 1;
  margin: 0 25px;
}

.carousel-opening-quote {
  font-family: Georgia, serif;
  font-size: 40px;
  color: #1A9CA6;
  position: absolute;
  top: 25px;
  left: 0;
  z-index: 2;
}

.carousel-closing-quote {
  font-family: Georgia, serif;
  font-size: 40px;
  color: #1A9CA6;
  position: absolute;
  bottom: 34px;
  right: 0;
  z-index: 2;
}

.testimonial-text::after {
  content: "";
  display: block;
  clear: both;
}

.read-more {
  color: #244342;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  font-size: 11px;
  display: block;
  background-color: rgba(113, 176, 217, 0.2);
  width: 120px;
  height: 35px;
  padding: 5px;
  margin: 15px auto 0;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

a.read-more { font-weight: 800 !important; }

.testimonial-slide h2 {
  font-size: 16px;
  margin-bottom: 2px;
  color: #1B2118;
  line-height: 22px;
  text-transform: uppercase;
}

.testimonial-slide h3 {
  font-size: 12px;
  margin-bottom: 8px;
  color: #244342;
  line-height: 16px;
}

.testimonial-slide h4 {
  font-size: 14px;
  margin-bottom: 2px;
  color: #1B2118;
}

.testimonial-top {
  background-color: rgba(35, 147, 158, 0.2);
  padding: 45px;
  overflow: hidden !important;
}

.testimonial-partner-image {
  float: left;
  margin: 0 55px 40px 0;
}

.testimonial-partner-image img {
  max-width: 300px;
  width: 100%;
  height: auto;
  box-shadow: 0 0px 21px -5px;
  background-color: #fff;
}

.testimonial-main-content .opening-quote,
.testimonial-main-content .closing-quote {
  font-family: Georgia, serif;
  font-size: 50px;
  color: #1A9CA6;
  line-height: 1;
}

.testimonial-main-content .opening-quote {
  display: inline-block;
  vertical-align: top;
  margin-right: 0;
}

.testimonial-main-content .closing-quote {
  float: right;
  margin-top: 0;
  margin-left: 0;
}

.testimonial-video {
  margin: 60px 0;
  border-bottom: solid 1px #ddd;
  padding: 40px 0;
}


/* =========================================================
   News / Trail Posts Carousel
   ========================================================= */

.news-post-carousel {
  margin: 0;
  position: relative;
  overflow: hidden !important;
  padding: 0 40px; 
  box-sizing: border-box;
}

.news-post-carousel .swiper-slide {
  height: auto;
  display: flex;
  box-sizing: border-box;
}

.news-post-slide {
  padding: 15px;
  box-sizing: border-box;
  height: 100%;
  display: flex;
}

.news-carousel-box {
  background-color: rgba(109, 140, 147, 0.7);
  border-radius: 5px;
  padding: 20px 20px 10px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  flex: 1;
}

.news-carousel-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  object-position: top;
}

.news-carousel-title {
  margin: 15px 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #10211f;
}

.news-carousel-excerpt {
  flex-grow: 1;
  line-height: 22px;
  max-height: 44px;
  overflow: hidden !important;
  font-size: 15px;
  margin-bottom: 15px;
  font-weight: 600;
}

.news-carousel-button {
  margin: auto auto 0;
  display: inline-block;
  text-align: center;
  background-image: url(images/readmore.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  font-weight: bold;
  padding: 6px 30px;
  text-decoration: none;
  font-size: 16px;
  width: 150px;
  height: 40px;
  line-height: 24px;
  border: none;
  position: relative;
  z-index: 2;
}

.news-carousel-button a {
  color: #fff;
  display: block;
}


/* =========================================================
   Awards Carousel — SINGLE (lane trick)
   ========================================================= */

.swiper.awards-carousel.awards-carousel-single {
  position: relative;
  overflow: hidden !important;
  padding: 0 !important; 
  box-sizing: border-box;
}


.swiper.awards-carousel.awards-carousel-single::before,
.swiper.awards-carousel.awards-carousel-single::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 65px;
  z-index: 5;
  pointer-events: none;
}
.swiper.awards-carousel.awards-carousel-single::before { left: 0; }
.swiper.awards-carousel.awards-carousel-single::after  { right: 0; }

.swiper.awards-carousel.awards-carousel-single .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper.awards-carousel.awards-carousel-single .swiper-slide img {
  max-width: calc(100% - 130px); /* keep image out of lanes */
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}


/* =========================================================
   Awards Carousel — FIVE (lane trick, same idea)
   ========================================================= */

.swiper.awards-carousel.awards-carousel-single{
  position:relative;
  overflow:hidden !important;
  padding:0 !important;
  box-sizing:border-box;
  height:320px; 
}
.swiper.awards-carousel.awards-carousel-single::before,
.swiper.awards-carousel.awards-carousel-single::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width:65px;
  z-index:5;
  pointer-events:none;
}

.swiper.awards-carousel.awards-carousel-single::before{ left:0; }
.swiper.awards-carousel.awards-carousel-single::after { right:0; }

.swiper.awards-carousel.awards-carousel-single .swiper-wrapper,
.swiper.awards-carousel.awards-carousel-single .swiper-slide{
  height:100%;
}
.swiper.awards-carousel.awards-carousel-single .swiper-slide{
  display:flex;
  align-items:center;
  justify-content:center;
}

.swiper.awards-carousel.awards-carousel-single .swiper-slide img{
  max-width:calc(100% - 130px);
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}







/* =========================================================
   Awards Carousel — FIVE (bigger logos + arrows with space)
   ========================================================= */

.swiper.awards-carousel.awards-carousel-five {
  position: relative;
  overflow: hidden !important;
  padding: 0 !important;
  box-sizing: border-box;
  height: 225px;
}
.swiper.awards-carousel.awards-carousel-five::before,
.swiper.awards-carousel.awards-carousel-five::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 95px;   
  z-index: 5;
  pointer-events: none;
}
.swiper.awards-carousel.awards-carousel-five::before{ left:0; }
.swiper.awards-carousel.awards-carousel-five::after { right:0; }

.swiper.awards-carousel.awards-carousel-five .swiper-slide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}


.swiper.awards-carousel.awards-carousel-five .swiper-slide img {
  width: auto !important;        
  height: 150px !important;      
  max-height: 150px !important;
  max-width: 100% !important;
  object-fit: contain;
  display: block;
}




/* =========================================================
   Awards: Grid/Flex cards
   ========================================================= */

.awards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.award-card {
  flex: 1 1 calc((100% - 40px) / 3);
  min-width: 240px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.award-card-img img {
  width: 100%;
  height: auto;
  max-height: 170px;
  object-fit: contain;
  display: block;
}

.award-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  text-align: center;
}

/* Column variants */
.awards-grid--cols-1 .award-card { flex-basis: 100%; }
.awards-grid--cols-2 .award-card { flex-basis: calc((100% - 20px) / 2); }
.awards-grid--cols-3 .award-card { flex-basis: calc((100% - 40px) / 3); }
.awards-grid--cols-4 .award-card { flex-basis: calc((100% - 60px) / 4); }


/* =========================================================
   GLOBAL SWIPER ARROWS (ALL CAROUSELS)
   ========================================================= */

.swiper-button-prev::after,
.swiper-button-next::after { display: none; }

.swiper-button-prev,
.swiper-button-next {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
  color: #1D9DA7;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  background: none !important;
}

.swiper-button-prev i,
.swiper-button-next i { color: inherit; }

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: none !important;
  color: #1D9DA7;
}

/* Single awards arrows are white */
.awards-carousel-single .swiper-button-prev,
.awards-carousel-single .swiper-button-next {
  color: #fff;
}

.awards-carousel-single .swiper-button-prev { left: 20px; z-index: 10; }
.awards-carousel-single .swiper-button-next { right: 20px; z-index: 10; }

.awards-carousel-five .swiper-button-prev { left: -10px; z-index: 10; }
.awards-carousel-five .swiper-button-next { right: -10px; z-index: 10; }

.testimonial-carousel .swiper-button-prev,
.news-post-carousel .swiper-button-prev { left: 15px; right: auto; }

.testimonial-carousel .swiper-button-next,
.news-post-carousel .swiper-button-next { right: 15px; left: auto; }


/* =========================================================
   Responsive
   ========================================================= */

@media (min-width: 1024px) {
  .swiper.awards-carousel.awards-carousel-single .swiper-slide img { max-height: 340px; }
}

@media (max-width: 900px) {
  .award-card { flex-basis: calc((100% - 20px) / 2); }
}

@media (max-width: 768px) {
  .swiper.awards-carousel.awards-carousel-single .swiper-slide img { max-height: 220px; }
}

@media only screen and (max-width: 700px) {
  .testimonial-slide { padding: 60px 0px 5px; }
}

@media (max-width: 600px) {
  .award-card { flex-basis: 100%; }
  .news-post-carousel { padding: 0; }
}