/**
 * How It Works Section Styles
 * Matches 3-Step Process with Navy Rounded Cards & Golden Step Badges
 */

.mes-how-section {
  position: relative;
  background-color: #fffdf9;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  padding: 75px 0 95px;
  overflow: hidden;
}

.mes-how-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ─────────────────────────────────────────────
   HEADER
───────────────────────────────────────────── */
.mes-how-header {
  text-align: center;
  margin-bottom: 55px;
}

/* Top Emblem / Calendar Badge */
.mes-how-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.mes-how-emblem-line {
  width: 50px;
  height: 1.5px;
  background: #e5a932;
}

.mes-how-emblem-line:first-child {
  background: linear-gradient(90deg, transparent, #e5a932);
}

.mes-how-emblem-line:last-child {
  background: linear-gradient(90deg, #e5a932, transparent);
}

.mes-how-emblem-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d9961e;
  filter: drop-shadow(0 2px 4px rgba(217, 150, 30, 0.3));
}

/* Section Title */
.mes-how-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  color: #07152b;
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}

.mes-how-title .mes-title-gold {
  color: #e5b358;
  background: linear-gradient(135deg, #f5d47a 0%, #d89b34 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Subtitle Description */
.mes-how-desc-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
  max-width: 580px;
}

.mes-how-desc-line {
  flex: 1;
  max-width: 55px;
  height: 1px;
  background: #e5c98d;
}

.mes-how-desc {
  font-size: 15px;
  color: #475467;
  margin: 0;
  font-weight: 400;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   CARDS FLOW & CONNECTING ARROWS
───────────────────────────────────────────── */
.mes-how-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 55px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.mes-how-card-wrap {
  flex: 1;
  min-width: 0;
  max-width: 320px;
  display: flex;
  align-items: stretch;
  position: relative;
}

/* Individual Card */
.mes-how-card {
  flex: 1;
  background: #ffffff;
  border: 2.5px solid #07152b;
  border-radius: 24px;
  padding: 42px 24px 34px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 28px rgba(7, 21, 43, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.mes-how-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(7, 21, 43, 0.12);
}

/* Floating Step Number Badge */
.mes-how-badge {
  position: absolute;
  top: -21px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5c762 0%, #d8961e 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: 0.5px;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(216, 150, 30, 0.4);
  z-index: 3;
}

/* Card Icon / Graphic */
.mes-how-icon {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.mes-how-icon svg {
  display: block;
  max-height: 68px;
  width: auto;
}

.mes-how-icon img {
  max-height: 70px;
  max-width: 80px;
  object-fit: contain;
  display: block;
}

/* Card Title */
.mes-how-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: #07152b;
  margin: 0 0 10px;
  line-height: 1.3;
}

/* Card Description */
.mes-how-card-desc {
  font-size: 13.5px;
  color: #475467;
  line-height: 1.6;
  margin: 0;
}

/* Connecting Curved Dashed Arrow */
.mes-how-arrow {
  position: absolute;
  right: -58px;
  top: 48%;
  transform: translateY(-50%);
  width: 65px;
  height: 32px;
  z-index: 5;
  pointer-events: none;
}

.mes-how-arrow svg {
  display: block;
}

/* ─────────────────────────────────────────────
   RESPONSIVE DESIGN
───────────────────────────────────────────── */
@media (max-width: 991px) {
  .mes-how-flow {
    gap: 40px;
  }
  .mes-how-arrow {
    right: -45px;
    width: 50px;
  }
  .mes-how-title {
    font-size: 32px;
  }
}

@media (max-width: 820px) {
  .mes-how-section {
    padding: 60px 0 70px;
  }
  .mes-how-flow {
    flex-direction: column;
    align-items: center;
    gap: 45px;
  }
  .mes-how-card-wrap {
    width: 100%;
    max-width: 360px;
  }
  .mes-how-arrow {
    display: none;
  }
  .mes-how-title {
    font-size: 28px;
  }
  .mes-how-desc {
    font-size: 13.5px;
  }
}

@media (max-width: 480px) {
  .mes-how-section {
    padding: 50px 0 60px;
  }
  .mes-how-title {
    font-size: 25px;
  }
  .mes-how-card {
    padding: 38px 20px 28px;
  }
}
