/* 
 * Testimonial and Fun Facts Section Fixes
 * This file contains fixes for:
 * 1. Testimonial images in section 10 - standardizing sizes
 * 2. Fun Facts section text on mobile devices - improving display on small screens
 */

/* ==========================================================================
   Testimonial Section Fixes
   ========================================================================== */

/* Make testimonial cards consistent height */
.testimonial .swiper-slide {
  height: auto;
}

/* Fix testimonial image container to have consistent dimensions */
.testimonial-card .img-wrapper {
  width: 100%;
  height: 400px !important; /* Fixed height for consistency */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgb(0, 0, 0);
  background-color: #f9f9f9;
}

/* Responsive adjustments for testimonial images */
@media screen and (max-width: 767px) {
  .testimonial-card .img-wrapper {
    height: 300px !important; /* Smaller height on mobile */
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .testimonial-card .img-wrapper {
    height: 350px !important; /* Medium height on tablets */
  }
}

/* Ensure images maintain aspect ratio and fill container properly */
.testimonial-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ==========================================================================
   Fun Facts Section Fixes
   ========================================================================== */

/* Improve fun facts display on mobile */
@media screen and (max-width: 767px) {
  /* Adjust container for better spacing */
  .fun_facts .fun-fact {
    margin-bottom: 30px;
    padding: 15px;
  }
  
  /* Make text more readable on small screens */
  .fun_facts .fun-fact .numbers span {
    font-size: 28px !important; /* Much smaller font size for mobile */
    line-height: 1.2;
    display: block; /* Ensure proper stacking */
    width: 100%;
    text-align: center;
    word-break: keep-all !important; /* Prevent breaking words at all costs */
    hyphens: manual !important; /* Completely disable automatic hyphenation */
    white-space: normal; /* Allow text to wrap naturally */
    overflow-wrap: normal !important; /* Prevent breaking words */
    -webkit-hyphens: none !important; /* Safari support */
    -ms-hyphens: none !important; /* IE support */
  }
  
  /* Adjust outline text positioning */
  .fun_facts .fun-fact .numbers .number-outline-one,
  .fun_facts .fun-fact .numbers .number-outline-two {
    width: 100%;
    text-align: center;
    word-break: keep-all !important;
    hyphens: manual !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
  }
  
  /* Ensure description text is readable */
  .fun_facts .fun-fact p {
    font-size: 16px;
    text-align: center;
    margin-top: 10px;
  }
}

/* Small tablet adjustments to prevent overflow */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .fun_facts .fun-fact .numbers span {
    font-size: 40px !important; /* Smaller size for small tablets */
    word-break: keep-all !important;
    hyphens: manual !important;
    white-space: normal;
    overflow-wrap: normal !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
  }
  
  /* Ensure the fact container has proper width constraints */
  .fun_facts .fun-fact {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Medium screen adjustments */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .fun_facts .fun-fact .numbers span {
    font-size: 42px !important; /* Smaller size for medium screens */
    word-break: keep-all !important;
    hyphens: manual !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
  }
}

/* Additional styles for all screen sizes to prevent text overflow */
.fun_facts .fun-fact .numbers span {
  max-width: 100%; /* Ensure text doesn't overflow container */
  overflow-wrap: normal !important; /* Prevent breaking words */
  word-break: keep-all !important; /* Prevent breaking words at all costs */
  hyphens: manual !important; /* Completely disable automatic hyphenation */
  -webkit-hyphens: none !important; /* Safari support */
  -ms-hyphens: none !important; /* IE support */
}

/* Force the fun facts to display properly on all devices */
.fun_facts .fun-fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* Ensure the numbers container is properly sized */
.fun_facts .fun-fact .numbers {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
