/* ===============================
   HERO SECTION
   =============================== */
#madHeroContent,
#madFormContainer {
  width: 50%;
  float: left;
}

div#madHero {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
}

/* ===============================
   MAIN TITLES AND CONTENT
   =============================== */
.madTitle {
  font-size: 44px;
  color: #000;
  text-align: left;
}

.madContent {
  font-size: 24px;
  color: #f34297;
  text-align: left;
}

/* ===============================
   BUTTONS
   =============================== */
.madButton {
  color: #fff;
  background-color: #f34297;
  border-color: #f34297;
  border-radius: 200px;
  padding: 10px 30px;
  display: inline-block;
  margin-top: 20px;
  margin-bottom: 20px;
}

a.madButton {
  color: #fff !important;
}

.madButton:hover {
  background-color: #d43984;
  border-color: #d43984;
}

/* ===============================
   GLOBAL SAFETY
   =============================== */
* {
  box-sizing: border-box;
}

/* ===============================
   ACCORDION (CHECKLIST CLEAN)
   =============================== */
.accordion-section {
  margin: 14px 0;
  clear: both;
}

.accordion-toggle {
  background-color: #ed4c9d;
  color: #ffffff;
  padding: 14px 18px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  border-radius: 12px;
}

.accordion-toggle:hover {
  background-color: #d8448f;
}

.accordion-toggle::after {
  content: "+";
  float: right;
  font-size: 18px;
}

.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 260ms ease;
  background-color: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  margin-top: 10px;
  padding: 0 16px;
}

.accordion-content-inner {
  padding: 14px 0;
}

/* ===============================
   MW ACCORDION FIX
   =============================== */
.mwd-accordion [data-accordion-content] {
  overflow: hidden;
  height: 0;
  transition: height 260ms ease;
}

.mwd-accordion [data-accordion-trigger] {
  cursor: pointer;
}

/* ===============================
   SERVICE TILES
   =============================== */
.madServiceTiles {
  margin: 40px 0;
  text-align: center;
}

.madServiceTilesGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.madServiceTile {
  display: block;
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 22px;
  text-align: left;
  text-decoration: none;
  color: #111;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.madServiceTile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.madServiceTile h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.madServiceTile p {
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 14px;
}

.madServiceTile span {
  font-weight: 800;
  color: #ed4c9d;
}

/* ===============================
   RESPONSIVE GRID
   =============================== */
@media (max-width: 1024px) {
  .madServiceTilesGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ===============================
   HOME PAGE ONLY
   REMOVE AUTO-GENERATED PAGE TITLE (DUPLICATE H1)
   =============================== */
.isHomepage .pageTitleContainer,
.isHomepage .pageTitleContent,
.isHomepage h1.pageTitle {
  display: none !important;
}

/* Remove empty spacing left behind */
.isHomepage .pageTitleContainer + div {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ===============================
   SERVICE CARD MOBILE POLISH
   =============================== */
@media (max-width: 900px) {
  .service-tiles {
    flex-wrap: wrap !important;
  }

  .service-card {
    width: 100% !important;
    max-width: 360px !important;
  }

  .service-card img {
    object-position: 50% 20% !important;
  }
}