/* ═══════════════════════════════════════════════════════
   MES Event Categories — Luxury Arched Carousel
   ═══════════════════════════════════════════════════════ */

.mes-categories-wrap {
  position: relative;
  padding: 50px 0 50px;
  background-color: #fbf7f0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Gentle ambient overlay so background floral image is clear and beautiful */
.mes-categories-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 253, 248, 0.65) 0%,
    rgba(255, 253, 248, 0.25) 45%,
    rgba(255, 253, 248, 0.6) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.mes-categories-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ════════════════════════════════
   HEADER
   ════════════════════════════════ */
.mes-cat-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}

.mes-cat-ornament {
  margin-bottom: 8px;
}

.mes-cat-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #a37a28;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.mes-cat-dash {
  font-size: 9px;
  color: #c59b27;
}

.mes-cat-main-title {
  font-family: Georgia, "Playfair Display", "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.mes-cat-title-dark {
  color: #0e1f38;
}

.mes-cat-title-gold {
  color: #c59b27;
}

.mes-cat-flourish {
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
}

.mes-cat-description {
  font-size: 15px;
  color: #5d6773;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 520px;
}

/* ════════════════════════════════
   CAROUSEL WRAP & NAVIGATION
   ════════════════════════════════ */
.mes-cat-carousel-wrap {
  position: relative;
  padding: 0 10px;
}

/* Nav Arrow Buttons (Desktop floating) */
.mes-cat-nav-btn {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #ecd8a5;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  color: #8c6e28;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.mes-cat-nav-btn:hover {
  background: #c59b27;
  color: #ffffff;
  border-color: #c59b27;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(197, 155, 39, 0.35);
}

.mes-cat-prev {
  left: -18px;
}

.mes-cat-next {
  right: -18px;
}

/* Swiper Container & Track */
.mes-cat-swiper {
  width: 100%;
  overflow: hidden;
  padding: 36px 10px 36px !important;
}

.mes-cat-track {
  display: flex;
  align-items: stretch;
  padding: 0;
  margin: 0;
}

.mes-cat-slide {
  height: auto;
  display: flex;
}

.mes-cat-slide .mes-cat-card {
  width: 100%;
  transform: scale(0.93);
  opacity: 0.88;
}

.mes-cat-slide.swiper-slide-active .mes-cat-card {
  transform: scale(1.05) translateY(-6px);
  opacity: 1;
  border-color: #c59b27;
  box-shadow:
    0 18px 40px rgba(184, 134, 40, 0.24),
    0 6px 16px rgba(0, 0, 0, 0.08);
  z-index: 4;
}

/* ════════════════════════════════
   ARCHED CARD
   ════════════════════════════════ */
.mes-cat-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 150px 150px 22px 22px;
  border: 1.8px solid #ecd8a5;
  box-shadow:
    0 10px 28px rgba(184, 134, 40, 0.1),
    0 3px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  padding-bottom: 22px;
}

.mes-cat-card:hover {
  transform: translateY(-8px);
  border-color: #c59b27;
  box-shadow:
    0 18px 40px rgba(184, 134, 40, 0.22),
    0 6px 16px rgba(0, 0, 0, 0.06);
}

/* Arched Image Header */
.mes-cat-img-wrap {
  position: relative;
  width: 100%;
  height: 205px;
  border-radius: 148px 148px 0 0;
  overflow: hidden;
  background: #f0e6d2;
}

.mes-cat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s ease;
  display: block;
}

.mes-cat-card:hover .mes-cat-img-wrap img {
  transform: scale(1.08);
}

/* Overlapping Icon Badge */
.mes-cat-icon-badge {
  position: absolute;
  top: 178px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.8px solid #ecd8a5;
  box-shadow: 0 4px 14px rgba(138, 102, 30, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.mes-cat-card:hover .mes-cat-icon-badge {
  transform: translateX(-50%) scale(1.1);
  border-color: #c59b27;
}

/* Card Body */
.mes-cat-body {
  padding: 34px 14px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.mes-cat-card-title {
  font-family: Georgia, "Playfair Display", "Times New Roman", serif;
  font-size: 16.5px;
  font-weight: 700;
  color: #0e1f38;
  line-height: 1.3;
  margin: 0 0 6px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s;
}

.mes-cat-card:hover .mes-cat-card-title {
  color: #c59b27;
}

.mes-cat-count {
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #8c734b;
  margin-bottom: 16px;
  display: block;
}

/* Circular Arrow Action Button */
.mes-cat-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c59b27;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.mes-cat-card:hover .mes-cat-arrow-btn {
  background: #a47b15;
  transform: scale(1.14);
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.4);
}

/* ════════════════════════════════
   PAGINATION DOTS
   ════════════════════════════════ */
.mes-cat-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.mes-cat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dfcb9f;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  padding: 0;
}

.mes-cat-dot.is-active {
  background: #c59b27;
  transform: scale(1.3);
}

/* ════════════════════════════════
   RESPONSIVE DESIGN
   ════════════════════════════════ */
@media (max-width: 1240px) {
  .mes-cat-swiper {
    padding: 20px 4px 26px !important;
  }
}

@media (max-width: 900px) {
  .mes-categories-wrap {
    padding: 48px 0 54px;
  }
  .mes-cat-prev {
    left: 4px;
  }
  .mes-cat-next {
    right: 4px;
  }
  .mes-cat-img-wrap {
    height: 180px;
  }
  .mes-cat-icon-badge {
    top: 155px;
    width: 48px;
    height: 48px;
  }
  .mes-cat-card-title {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .mes-cat-carousel-wrap {
    padding: 0;
  }
  .mes-cat-nav-btn {
    display: none;
  }
  .mes-cat-swiper {
    padding: 20px 12px 26px !important;
  }
  .mes-cat-slide .mes-cat-card,
  .mes-cat-slide.swiper-slide-active .mes-cat-card {
    max-width: 300px;
    margin: 0 auto;
    transform: none;
    opacity: 1;
  }
  .mes-cat-header {
    margin-bottom: 24px;
  }
}
