/* ======================================================
   Se Habla Media - Directory (Directorio)
   Compiled CSS (no SCSS required)
   ====================================================== */

/* ======================================================
   HERO / SWIPER
   ====================================================== */
#main-carrousel-interview {
  max-width: 920px;
  margin: 0 auto 14px auto;
}

#main-carrousel-interview .banner {
  position: relative;
  background: #f6f7f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Support both Swiper classnames */
#main-carrousel-interview .swiper,
#main-carrousel-interview .swiper-container {
  width: 100%;
  height: 320px;
}

#main-carrousel-interview .swiper-wrapper,
#main-carrousel-interview .swiper-slide {
  height: 100%;
}

#main-carrousel-interview .swiper-slide {
  position: relative;
  display: flex;
  align-items: center;          /* vertical center */
  justify-content: center;      /* horizontal center */
  background: #f3f4f6;
  padding: 0;
}

/* Ensure inner wrappers fill height so centering is real */
#main-carrousel-interview .slide-inner,
#main-carrousel-interview .template {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* MAIN HERO IMAGE – FULL BLEED */
#main-carrousel-interview .template-photo,
#main-carrousel-interview .swiper-slide img:not(.template-logo) {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain; /* logo-style images stay readable */
  object-position: center;
  display: block;
}

/* Se Habla Media “mosca” watermark */
#main-carrousel-interview .template-logo {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: auto;
  top: auto;

  width: 74px;
  max-width: none;
  height: auto;

  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;

  opacity: 0.35;
  filter: grayscale(100%);
  pointer-events: none;
}

/* Arrows: force rounded dark buttons (avoid default squares) */
#main-carrousel-interview .swiper-button-next,
#main-carrousel-interview .swiper-button-prev {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.60);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  border: 0;
  top: 50%;
  transform: translateY(-50%);
}

#main-carrousel-interview .swiper-button-next:after,
#main-carrousel-interview .swiper-button-prev:after {
  font-size: 16px;
  font-weight: 900;
}

#main-carrousel-interview .swiper-button-next:hover,
#main-carrousel-interview .swiper-button-prev:hover {
  background: rgba(17, 17, 17, 0.75);
}

/* Hide pagination dots – cleaner hero */
#main-carrousel-interview .swiper-pagination {
  display: none !important;
}

@media (max-width: 767px) {
  #main-carrousel-interview {
    margin-bottom: 12px;
  }

  #main-carrousel-interview .swiper,
  #main-carrousel-interview .swiper-container {
    height: 220px;
  }

  #main-carrousel-interview .swiper-slide {
    padding: 0;
  }

  #main-carrousel-interview .template-photo,
  #main-carrousel-interview .swiper-slide img:not(.template-logo) {
    max-width: 94% !important;
    max-height: 94% !important;
  }

  #main-carrousel-interview .template-logo {
    width: 64px;
    right: 12px;
    bottom: 12px;
    left: auto;
    top: auto;
    opacity: 0.33;
  }

  #main-carrousel-interview .swiper-button-next,
  #main-carrousel-interview .swiper-button-prev {
    width: 40px;
    height: 40px;
  }

  #main-carrousel-interview .swiper-button-next:after,
  #main-carrousel-interview .swiper-button-prev:after {
    font-size: 14px;
  }
}

/* ======================================================
   DIRECTORY DETAIL CARD (selected directory item)
   ====================================================== */
.template-name {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  padding: 18px;
  overflow: hidden;
}

#dir-name {
  margin: 0 0 10px 0;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  line-height: 1.15;
  color: #111;
}

#dir-description {
  margin: 0 0 14px 0;
  color: rgba(0, 0, 0, 0.72);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#dir-phone,
#dir-mail,
#dir-web {
  margin: 12px 0 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: #444;
  font-weight: 700;
}

#dir-phone strong,
#dir-mail strong,
#dir-web strong {
  font-weight: 900;
  color: #444;
}

#dir-phone a,
#dir-mail a,
#dir-web a {
  color: #1f73c9;
  text-decoration: none;
  font-weight: 900;
}

#dir-phone a:hover,
#dir-mail a:hover,
#dir-web a:hover {
  text-decoration: underline;
}

/* ======================================================
   SUGGESTED DIRECTORY CARDS (grid list)
   Template style: .template-1
   ====================================================== */
.template-1 {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.template-1 .template-image {
  position: relative;
  width: 100%;
  min-height: 220px;
  background: #f3f4f6;
}

.template-1 .template-image .template-photo {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.template-1 .template-image .template-logo {
  position: absolute;
  left: 14px;
  top: 14px;
  max-width: 78px;
  width: auto;
  height: auto;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.template-1 .template-name,
.template-1 .template-description,
.template-1 .template-info,
.template-1 .template-web {
  position: static;
  width: 100%;
}

.template-1 .template-name {
  margin: 14px 16px 8px 16px;
  color: #1A3F73;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0.2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-1 .template-description {
  margin: 0 16px 12px 16px;
  color: rgba(0, 0, 0, 0.74);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-1 .template-info {
  margin: 0 16px 12px 16px;
  padding: 12px;
  background: rgba(26, 63, 115, 0.08);
  border: 1px solid rgba(26, 63, 115, 0.16);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.template-1 .template-info .template-phone,
.template-1 .template-info .template-email {
  font-size: 13.5px;
  color: rgba(0, 0, 0, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-1 .template-info .template-phone a,
.template-1 .template-info .template-email a {
  color: #1f73c9;
  text-decoration: none;
  font-weight: 800;
}

.template-1 .template-info .template-phone a:hover,
.template-1 .template-info .template-email a:hover {
  text-decoration: underline;
}

.template-1 .template-web {
  margin: 0 16px 16px 16px;
  font-size: 13.5px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.75);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-1 .template-web a {
  color: #1f73c9;
  text-decoration: none;
  font-weight: 900;
}

.template-1 .template-web a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .template-1 {
    grid-template-columns: 1fr;
  }

  .template-1 .template-image {
    min-height: 210px;
  }

  .template-1 .template-image .template-photo {
    min-height: 210px;
  }

  .template-1 .template-image .template-logo {
    max-width: 72px;
    left: 12px;
    top: 12px;
  }

  .template-1 .template-name {
    margin: 14px 14px 8px 14px;
    font-size: 18px;
  }

  .template-1 .template-description {
    margin: 0 14px 12px 14px;
    -webkit-line-clamp: 7;
  }

  .template-1 .template-info {
    margin: 0 14px 12px 14px;
    grid-template-columns: 1fr;
  }

  .template-1 .template-web {
    margin: 0 14px 16px 14px;
  }
}

/* ======================================================
   HERO OVERRIDES: if JS injects .template-1 into the swiper
   Force it to be full-image (no 2-column grid)
   ====================================================== */
#main-carrousel-interview .swiper-wrapper {
  height: 100%;
}

#main-carrousel-interview .swiper-slide {
  width: 100%;
}

#main-carrousel-interview img {
  margin: 0 !important;
  vertical-align: middle;
}

.our-team{
    padding-top:0px;
}

.bg-grey{
    background:none !important;
}

.about-us1:before{
    background: none !important;
}

#main-carrousel-interview .template-1 {
  display: block !important;          /* kill the 2-col grid in hero */
  grid-template-columns: none !important;
  width: 100% !important;
  height: 100% !important;
}

#main-carrousel-interview .template-1 .template-image {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
}

/* Hide the right-side text blocks inside the hero */
#main-carrousel-interview .template-1 .template-name,
#main-carrousel-interview .template-1 .template-description,
#main-carrousel-interview .template-1 .template-info,
#main-carrousel-interview .template-1 .template-web {
  display: none !important;
}

/* =============================
   ASSOCIATES – unified info style
   ============================= */
#associates-list .associate-links {
  background: transparent;
  border: 0;
  padding: 0;
}

#associates-list .associate-links div {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.5;
  color: #444;
  font-weight: 700;
}

#associates-list .associate-links strong {
  font-weight: 900;
  color: #444;
}

#associates-list .associate-links a {
  color: #1f73c9;
  font-weight: 900;
  text-decoration: none;
}

#associates-list .associate-links a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  #dir-phone,
  #dir-mail,
  #dir-web,
  #associates-list .associate-links div {
    font-size: 15px;
  }
}