#custom-home-section {
  padding: 30px 20px;
  background: #111;
  color: #fff;
  clear: both;
  overflow: hidden;
}

#custom-home-section .custom-home-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: nowrap;
}

#custom-home-section .custom-home-text {
  flex: 0 1 48%;
}

#custom-home-section .custom-home-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ccc;
}

#custom-home-section h2 {
  margin: 0 0 14px;
  font-size: 42px;
  line-height: 1.15;
  color: #fff;
}

#custom-home-section p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  color: #ddd;
}

#custom-home-section .custom-home-btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  background: #ea4c89;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

#custom-home-section .custom-home-image {
  flex: 0 1 42%;
  text-align: right;
}

#custom-home-section .custom-home-image img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  margin-left: auto;
}

#main-search {
  background-image:
    linear-gradient(360deg, rgba(44, 44, 45, 0.18) 2%, rgba(44, 44, 45, 0.54) 30%, rgba(44, 44, 45, 0.54) 60%, rgba(44, 44, 45, 0.28) 98%),
    url("../images/home-search-bg.jpg") !important;
}

/* HOME ACTIONS */
body#home > .content > section.home-action {
  padding: 20px 0 32px 0;
}

.home-action .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hide top illustration completely */
.home-action .head-line .h-img {
  display: none !important;
}

/* Center text block and remove extra spacing */
.home-action .head-line {
  display: block;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.home-action .head-line .h-text {
  margin: 0 auto;
  text-align: center;
}

body#home .home-action .head-line .h-text h2 {
  max-width: 900px;
  margin: 0 auto 12px auto;
  text-align: center;
}

.home-action .head-line .h-text .row {
  max-width: 900px;
  margin: 0 auto 20px auto;
  text-align: center;
}

.home-action .head-line .h-text strong.row {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Tighten card spacing */
.home-action .actions {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  margin: 18px 0 0 0;
}

.home-action .actions a .action-icon {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 12px auto;
  object-fit: contain;
}

.home-action .actions a span {
  max-width: 100px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* MOBILE FIXES */
@media (max-width: 768px) {
  #custom-home-section .custom-home-wrap {
    flex-wrap: wrap;
  }

  #custom-home-section .custom-home-text,
  #custom-home-section .custom-home-image {
    flex: 1 1 100%;
    text-align: left;
  }

  #custom-home-section .custom-home-image img {
    max-height: 320px;
    margin: 20px auto 0;
  }

  #custom-home-section h2 {
    font-size: 32px;
  }

  /* Keep homepage search disabled on mobile */
  body#home > .content > section#home-search-box {
    display: none !important;
  }

  /* Keep actions above categories on mobile */
  body#home > .content > section.home-action {
    order: 5 !important;
    padding: 18px 0 28px 0 !important;
  }

  body#home > .content > section.home-cat {
    order: 6 !important;
    padding: 20px 0 15px 0 !important;
  }

  .home-action .actions {
    margin-top: 16px;
  }

  .home-action .actions a .action-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
  }
}