/* Center testimonial client names below the paragraph */
.testimonial .xb-testimonial .center-name {
  text-align: center;
  width: 100%;
  margin: 15px auto 0;
}

/* Team hover overlay and 3-frame effect */
.team-section .team-details { position: relative; overflow: hidden; }
.team-section .team-details .hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; background: linear-gradient(180deg, rgba(11,57,72,0) 40%, rgba(11,57,72,0.78) 100%); color: #fff; opacity: 0; transform: translateY(12%); transition: opacity .35s ease, transform .35s ease; }
.team-section .team-details:hover .hover { opacity: 1; transform: translateY(0); }
.team-section .team-details .founder-img { transition: transform .45s ease; display: block; width: 100%; height: auto; }
.team-section .team-details:hover .founder-img { transform: scale(1.04); }
.team-section .team-details { box-shadow: none; transition: transform .45s ease, box-shadow .45s ease; }
.team-section .team-details::before, .team-section .team-details::after { content: ''; position: absolute; pointer-events: none; border-radius: 14px; top: 8px; left: 8px; right: 8px; bottom: 8px; border: 2px solid rgba(255,255,255,0.04); transition: transform .45s ease, opacity .45s ease; opacity: 0; }
.team-section .team-details::after { top: 16px; left: 16px; right: 16px; bottom: 16px; border-color: rgba(11,57,72,0.04); }
.team-section .team-details:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(11,57,72,0.12); }
.team-section .team-details:hover::before, .team-section .team-details:hover::after { opacity: 1; transform: translate(-8px,-8px); }


/* Gallery styles for management page (three-column tall layout) */
.founder-gallery .section-heading h3 { font-size: 22px; margin-bottom: 8px; }
.founder-gallery .gallery-item { overflow: hidden; border-radius: 12px; }
.founder-gallery .gallery-item img { width: 100%; height: 420px; object-fit: cover; display: block; transition: transform .4s ease, box-shadow .4s ease; }
.founder-gallery .gallery-item:hover img { transform: scale(1.03); box-shadow: 0 18px 40px rgba(11,57,72,0.12); }
.founder-gallery .row { gap: 18px; }
@media (max-width: 1200px) {
  .founder-gallery .gallery-item img { height: 360px; }
}
@media (max-width: 992px) {
  .founder-gallery .gallery-item img { height: 320px; }
}
@media (max-width: 768px) {
  .founder-gallery .gallery-item img { height: 220px; }
}

/* Testimonial small box card tweaks */
.testimonial-card {
  background: #ffffff;
  border: 1px solid #e9edf2;
  border-radius: 10px;
  padding: 16px 16px 14px;
  box-shadow: 0 4px 12px rgba(11, 57, 72, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-inner .swiper-wrapper {
  align-items: stretch;
}

.testimonial-card .xb-item--avater {
  display: block;
  margin: 0 0 6px 0;
  text-align: center;
}

.testimonial-card .xb-item--holder {
  margin: 0;
  text-align: center;
}

/* No avatar images in testimonial cards; ensure no residual spacing */
.testimonial-card .xb-item--img { display: none; }

.testimonial-card .xb-item--title {
  font-size: 16px;
  line-height: 1.2;
  margin: 0 0 4px 0;
  color: #0B3948;
}

.testimonial-card .xb-item--sub-title {
  font-size: 12px;
  color: #6c7980;
}

.xb-item--reating { display: none !important; }

.testimonial-card .xb-item--content {
  margin-top: 8px;
  font-size: 14px;
  color: #2a3a40;
}

.testimonial-card .xb-tes_shape {
  margin-top: auto;
  opacity: 0.5;
  width: 22px;
}

/* tighter pagination spacing under cards */
.testimonial-inner .swiper-pagination {
  margin-top: 18px;
}
/* Location area uses theme default positioning (no custom overrides) */
/* PSNF viewport and overflow fixes */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Breadcrumb height tweak: make the page title band slightly shorter */
section.breadcrumb {
  padding-top: 36px; /* reduced top padding */
  padding-bottom: 36px; /* reduced bottom padding */
}

/* Slightly reduce the breadcrumb title size on large screens to help reduce total height */
section.breadcrumb .breadcrumb__title {
  font-size: 40px; /* was 48px in inline style on about.php */
}

@media (max-width: 768px) {
  section.breadcrumb { padding-top: 20px; padding-bottom: 20px; }
  section.breadcrumb .breadcrumb__title { font-size: 28px; }
}

/* Small vertical gap between breadcrumb and the next section (about content) */
section.about-section {
  margin-top: 28px; /* adds space above the about image/content */
}

@media (max-width: 768px) {
  section.about-section { margin-top: 16px; }
}

.body_wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Ensure hero fills the viewport width without side padding */
.hero.hero-style-one {
  overflow: hidden;
}
.hero.hero-style-one .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

/* Center hero content within the left column */
.hero .hero__content-wrap {
  max-width: 720px;
  width: 100%;
}

/* Prevent oversized images from causing horizontal scroll */
.hero-right_img img,
img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Improved award image styling: card-like framed photo */
.about-left .about-award-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 4px;
}
.about-award-photo .square-img {
  width: 100%;
  max-width: 420px;                /* slightly larger desktop width */
  aspect-ratio: 4 / 3;             /* landscape rectangle */
  object-fit: cover;               /* fill box while preserving aspect */
  object-position: center;         /* focus on the middle (trophy & faces) */
  display: inline-block !important;
  border-radius: 12px;             /* soft rounded corners */
  background-color: transparent;   /* remove the opaque backdrop */
  padding: 0;                      /* no inner faux-frame padding */
  box-shadow: 0 10px 26px rgba(4, 54, 61, 0.22); /* softer shadow */
  border: 2px solid rgba(255,255,255,0.04); /* subtle stroke */
  transition: transform .28s ease, box-shadow .28s ease;
}
.about-award-photo .square-img:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 36px rgba(4,54,61,0.32), 0 8px 18px rgba(0,0,0,0.18);
}
/* Limit image height to make the box slightly smaller */
.about-award-photo .square-img { max-height: 260px; }

/* Ensure the image centers nicely when placed in the right/map column */
.about-right .about-award-photo-img {
  position: absolute; /* float over the map and center */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  overflow: hidden;
  border-radius: 12px;
  width: 260px; /* slightly larger desktop size */
  max-width: 34%;
  padding: 0;
  display: block;
  transform-origin: center center;
}
.about-right .about-award-photo-img .square-img {
  display: block;
  /* Use intrinsic image size when available to avoid upscaling blur */
  width: auto;           /* don't force full width if image is smaller */
  max-width: 100%;      /* allow it to shrink to the wrapper when larger */
  height: auto;
  max-height: 380px;    /* visual cap, but won't scale image up beyond its intrinsic size */
  border-radius: inherit;
  object-fit: cover;
}

/* Map container and award overlay */
.about-right { position: relative; }

.about-right .xb-item--map_img { position: relative; z-index: 1; }
.about-right .xb-item--map_img img.map-img { width: 92%; max-width: 760px; height: auto; display: block; margin: 0 auto; filter: brightness(0.96); }
.about-right .about-award-photo-img.award-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  z-index: 2;
  pointer-events: auto;
  will-change: transform;
}
.about-right .about-award-photo-img.award-overlay .square-img { max-height: 300px; max-width: 380px; border-radius: 12px; background: transparent; }

/* Hover animation for the award image: scale in place without changing its centered position */
.about-right .award-hover { transition: transform .32s cubic-bezier(.2,.9,.2,1), box-shadow .32s ease; }
.about-right .award-hover:hover { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 16px 36px rgba(4,54,61,0.24); }

@media (max-width: 768px) {
  /* On small screens keep the award image inline below the map for legibility */
  .about-right .about-award-photo-img { position: static; transform: none; margin-top: 12px; width: 100%; max-width: 320px; }
  .about-right .xb-item--map_img img.map-img { max-height: 220px; object-fit: contain; }
}
.about-award-photo .square-img::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
@media (max-width: 992px) {
  .about-award-photo .square-img { max-width: 320px; }
}
@media (max-width: 768px) {
  .about-award-photo .square-img {
    max-width: 280px;            /* smaller mobile size */
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    padding: 3px;
    box-shadow: 0 8px 20px rgba(4, 54, 61, 0.22);
  }
  .about-left .about-award-photo { padding-top: 6px; }
}

/* About section: smaller title and content around the award image */
.about .about-left .xb-heading .title {
  font-size: 26px;
  line-height: 1.25;
}
.about .about-left .content,
.about .about-left .content-larg {
  font-size: 16px;
  line-height: 1.6;
}

/* Founder images: display smaller across devices */
.founder-img {
  width: 320px;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .founder-img {
    width: 220px;
  }
}

/* Team section text centering and spacing */
.team-section .team-details {
  text-align: center;
  padding: 8px 0;
}
.team-section .founder-img {
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(11, 57, 72, 0.12);
  transition: transform 220ms var(--easing), box-shadow 220ms var(--easing);
}
.team-section .col-md-4:hover .founder-img {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(11, 57, 72, 0.18);
}
.team-section .team-details,
.team-section .team-details .hover,
.team-section .team-details .hover h3 {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.team-section .hover h3 {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.4;
}
.team-section .hover h3 span {
  display: block;
  font-weight: 500;
  color: #666;
}
.team-section .team-bio {
  text-align: center;
  max-width: 320px;
  margin: 0 auto 20px;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(11, 57, 72, 0.08);
  padding: 14px 16px;
  transition: box-shadow 220ms var(--easing), transform 220ms var(--easing);
}
.team-section .col-md-4:hover .team-bio {
  box-shadow: 0 10px 24px rgba(11, 57, 72, 0.15);
  transform: translateY(-2px);
}

/* Make the outer team section box smaller */
.team-section,
.team-section.padding {
  padding-top: 24px;
  padding-bottom: 24px;
}
.team-section .section-heading {
  margin-bottom: 16px;
}
.team-section .container {
  max-width: 1280px;
  padding-left: 16px;
  padding-right: 16px;
}
.team-section .sm-padding {
  padding: 6px;
}

/* Spread the three team cards across the width */
.team-section .team-wrapper.row {
  justify-content: space-between;
}
@media (min-width: 768px) {
  .team-section .col-md-4 {
    flex: 0 0 31%;
    max-width: 31%;
  }
}

@media (max-width: 768px) {
  .team-section .hover h3 {
    font-size: 18px;
  }
  .team-section .team-bio {
    font-size: 14px;
    max-width: 220px;
    padding: 12px 14px;
  }
  .team-section .team-details,
  .team-section .team-details .hover,
  .team-section .team-details .hover h3 {
    max-width: 220px;
  }

/* Section title: creative highlight for the word “Founders” */
.team-section .section-heading h2 {
  position: relative;
  display: inline-block;
}
/* Yellow oval behind the highlighted word */
.team-section .section-heading .highlight-oval {
  position: relative;
  display: inline;
  padding: 0 .08em .06em;
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 115% 0.9em;
  background-image:
    radial-gradient(100% 85% at 50% 90%, rgba(255, 212, 112, 0.78) 0%, rgba(255, 212, 112, 0.58) 55%, rgba(255, 212, 112, 0.00) 56%);
  border-radius: 2px;
}
@media (max-width: 767.98px) {
  .team-section .section-heading .highlight-oval::after {
    width: 118%;
    height: 0.75em;
    bottom: 0.08em;
  }
}

/* About cards: equal height and consistent image handling */
.about-wrap .about-card {
  display: flex;
  flex-direction: column;
  min-height: 360px; /* keeps cards uniform so titles/links align */
}
.about-wrap .about-card .about-thumb {
  /* Prevent upscaling: use intrinsic width when possible and cap height */
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 200px; /* visual cap for card layout */
  object-fit: cover;
  object-position: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.about-wrap .about-card h3 {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}
.about-wrap .about-card p {
  margin-bottom: 1rem;
}

}

/* -------------------------
   Hover dim + overlay tweaks
   Applies to the three founder images and the award overlay
   - on hover image opacity becomes 10%
   - a subtle overlay blends into image curves (uses border-radius + overflow:hidden)
   - text (team-bio) becomes higher contrast and slightly bolder for readability
   ------------------------- */
.team-section .team-details { overflow: visible; border-radius: 14px; position: relative; }
.team-section .team-details::after { display: none; } /* disable the decorative frames here; use .founder-wrap instead */

/* founder-wrap holds the image and hover overlay exactly matching image bounds */
.founder-wrap { position: relative; overflow: hidden; border-radius: 14px; }
.founder-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.22));
  opacity: 0;
  transition: opacity .28s ease;
  z-index: 2;
}
.founder-wrap:hover::after { opacity: 0.22; }

.founder-wrap .founder-img { transition: opacity .35s ease, transform .35s ease; display: block; width: 100%; height: auto; border-radius: inherit; position: relative; z-index: 1; }
.founder-wrap:hover .founder-img { opacity: 0.1; transform: none; }

.team-section .team-bio { transition: color .28s ease, font-weight .28s ease, text-shadow .28s ease; position: relative; z-index: 3; }
.team-section .team-details:hover .team-bio {
  color: #082B33; /* stronger contrast */
  font-weight: 600;
  text-shadow: none;
}

/* Make sure hover overlay fits award image curves too */

.about-right .about-award-photo-img.award-overlay { overflow: hidden; border-radius: 12px; position: relative; }
.about-right .about-award-photo-img.award-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0,0,0,0.14), rgba(0,0,0,0.14));
  opacity: 0;
  transition: opacity .32s ease;
  z-index: 2; /* sits over image but under any caption if present */
}
.about-right .about-award-photo-img.award-overlay:hover::after { opacity: 0.18; }
.about-right .about-award-photo-img.award-overlay:hover .square-img { opacity: 0.1; }

/* Ensure touch devices get readable text too: increase contrast always for small screens */
@media (max-width: 768px) {
  .team-section .team-bio { color: #0b3948; font-weight: 600; }
}

/* Fix: ensure preloader stays perfectly centered (overrides other rules) */
#preloader {
  background-color: #fff;
  height: 100% !important;
  width: 100% !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 9999 !important;
}

#preloader .loader-container {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 100px !important;
  height: 100px !important;
  border-radius: 50% !important;
}

#preloader .loader-icon {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 80px !important;
  text-align: center !important;
}

#preloader .loader-icon img {
  width: 40px !important;
  display: block !important;
  margin: 0 auto !important;
}

