/**
 * Home “Events / services” carousel — NEFSA dark treatment + cards.
 * Scoped to .nefsa-service-home
 */

.nefsa-service-home.service-page {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 3.5vw, 48px) 0 clamp(36px, 4vw, 52px);
  overflow: hidden;
}

@media (max-width: 767px) {
  .nefsa-service-home.service-page {
    padding: 28px 0 36px;
  }
}

.nefsa-service-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    155deg,
    #2a2d2f 0%,
    #232728 50%,
    #1a1c1d 100%
  );
  pointer-events: none;
}

.nefsa-service-home .service-page__bg {
  z-index: -1;
  opacity: 0.2;
  mix-blend-mode: overlay;
  filter: saturate(0.9);
}

.nefsa-service-home .container {
  position: relative;
  z-index: 1;
}

/* Headline — tighter rhythm */
.nefsa-service-home .sec-title {
  margin-bottom: 0;
  padding-bottom: 0;
  max-width: 640px;
}

.nefsa-service-home .sec-title__tagline {
  display: inline-flex;
  align-items: center;
  padding-left: 18px;
  position: relative;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 201, 106, 0.95);
  line-height: 1.4;
}

.nefsa-service-home .sec-title__tagline .sec-title__img {
  display: none;
}

.nefsa-service-home .sec-title__tagline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    #e8c96a 0%,
    var(--firdip-base, #ca4445) 100%
  );
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.nefsa-service-home .sec-title__title {
  font-family: "Oswald", var(--firdip-font, "Roboto", sans-serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2.15rem);
  line-height: 1.1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  margin-top: 4px;
}

.nefsa-service-home .sec-title__title::after {
  content: "";
  display: block;
  width: 2.75rem;
  max-width: 38%;
  height: 2px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #e8c96a 0%,
    rgba(255, 255, 255, 0.75) 48%,
    var(--firdip-base, #ca4445) 100%
  );
  opacity: 0.95;
}

.nefsa-service-home .row:first-of-type {
  margin-bottom: 0;
  --bs-gutter-y: 0;
}

/* Carousel — snug under heading */
.nefsa-service-home .service-page__carousel {
  position: relative;
  margin-top: 4px;
}

.nefsa-service-home .service-page__carousel .owl-nav {
  top: -52px;
  right: 0;
  left: auto;
  display: flex;
  gap: 8px;
}

@media (max-width: 991px) {
  .nefsa-service-home .service-page__carousel .owl-nav {
    top: -48px;
  }
}

@media (max-width: 767px) {
  .nefsa-service-home .service-page__carousel .owl-nav {
    display: none !important;
  }
}

.nefsa-service-home.service-page
  .service-page__carousel.firdip-owl__carousel--basic-nav.owl-carousel
  .owl-nav
  button
  span {
  width: 44px;
  height: 44px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nefsa-service-home.service-page
  .service-page__carousel.firdip-owl__carousel--basic-nav.owl-carousel
  .owl-nav
  button
  span:hover {
  background: var(--firdip-base, #ca4445);
  color: var(--firdip-white, #fff);
  border-color: var(--firdip-base, #ca4445);
}

/* Service cards — cleaner, flatter modern panels */
.nefsa-service-home .service-card--two .service-card__inner {
  padding: 18px 18px 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #faf9f7;
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  filter: none;
}

.nefsa-service-home .service-card--two .service-card__inner::after {
  opacity: 0.55;
}

.nefsa-service-home .service-card--two .service-card__icon {
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 14px;
  font-size: 28px;
  background: #f0ebe6;
  box-shadow: none;
  border: 1px solid rgba(35, 39, 40, 0.06);
}

.nefsa-service-home .service-card--two .service-card__content {
  margin-bottom: 14px;
}

.nefsa-service-home .service-card--two .service-card__content__title {
  font-family: "Oswald", var(--firdip-font, "Roboto", sans-serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.nefsa-service-home .service-card--two .service-card__content__text {
  font-size: 14px;
  line-height: 1.55;
  color: #5a5d5f;
}

.nefsa-service-home .service-card--two .service-card__thumb {
  border-radius: 0 0 15px 15px;
  margin: 0 -18px;
  width: calc(100% + 36px);
}

.nefsa-service-home .service-card--two .service-card__thumb__item img {
  border-radius: 0;
}

/* Only the corner arrow — not the full-bleed image link (firdip styles all .service-card__thumb a as a small absolute box) */
.nefsa-service-home .service-card--two .service-card__thumb a.voldor-btn {
  width: 44px;
  height: 44px;
  border-radius: 0 14px 0 0;
  background: #fff;
  border: 1px solid rgba(35, 39, 40, 0.06);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
}

/* Home events carousel — title, date, image; uniform card height */
.nefsa-service-home .service-page__carousel .service-page__item {
  height: 100%;
}

.nefsa-service-home .service-card--event-compact {
  height: 100%;
}

.nefsa-service-home .service-card--event-compact .service-card__inner {
  display: flex;
  flex-direction: column;
  min-height: 400px;
  height: 100%;
}

.nefsa-service-home .service-card--event-compact .service-card__content--event-title-only {
  flex: 0 0 auto;
  margin-bottom: 8px;
}

.nefsa-service-home .service-card--event-compact .service-card__content__title {
  margin-bottom: 6px;
}

.nefsa-service-home .service-card--event-compact .service-card__content__date {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a7d80;
  line-height: 1.35;
  min-height: 1.35em;
}

.nefsa-service-home .service-card--event-compact .service-card__content__date time {
  font: inherit;
  color: inherit;
}

.nefsa-service-home .service-card--event-compact .service-card__content__date--empty {
  visibility: hidden;
}

.nefsa-service-home .service-card--event-compact .service-card__thumb {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin-top: auto;
  min-height: 0;
}

/* Undo firdip .service-card__thumb a (absolute, ~58×58) on the image wrapper */
.nefsa-service-home
  .service-card--event-compact
  .service-card__thumb
  a.service-card__thumb__link--cover {
  position: relative;
  inset: auto;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 220px;
  flex: 1 1 auto;
  display: block;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  z-index: 0;
  font-size: inherit;
  justify-content: initial;
  align-items: initial;
  text-decoration: none !important;
  color: inherit !important;
}

.nefsa-service-home .service-card--event-compact .service-card__thumb a.voldor-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  left: auto;
  top: auto;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nefsa-service-home .service-card--event-compact .service-card__thumb__item {
  height: 100%;
  min-height: 220px;
  overflow: hidden;
}

.nefsa-service-home .service-card--event-compact .service-card__thumb__item img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}
