@charset "UTF-8";

/***** Base & Core Layout Rules *****/
* {
  box-sizing: border-box;
}

html, body {
  background-color: #FFFFFF;
  color: #333333;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  margin-top: 0;
  color: #111111;
}

h1 { font-size: 38px; font-weight: 700; margin-bottom: 4px; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 800; }

a {
  color: #666666 !important;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #000000 !important;
}

/* Forces the absolute highest parent template container to break open */
main, body > main, main#main-content, .main-layout {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Targets the specific parent element enclosing the hero component */
main > div:first-of-type, main > section:first-of-type {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/***** Fixed MoneyMatch Hero Area Settings (Full Screen Breakout) *****/
.hero, section.hero, .hero-section {
  background-image: url(/hc/theming_assets/01HZKS1EW44DV9T7DRKMBJ58FF) !important;
  background-size: 100% 100% !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  padding: 85px 20px 95px 20px !important;
  text-align: center;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  margin: 0 auto !important;
}

.hero h1 {
  color: #333333;
  font-size: 44px;
  margin-top: 15px;
}

.hero p {
  font-size: 20px;
  color: #555555;
  margin-top: 5px;
  margin-bottom: 20px;
}

/***** Fixed Search Bar Controls *****/
.search, .search-box, form[role="search"] {
  position: relative;
  max-width: 550px;
  margin: 20px auto 0 auto;
}

.hero input[type="search"], .hero input[type="text"], .search input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 10px 20px 10px 50px !important;
  font-size: 16px;
  border: none !important;
  border-radius: 26px !important;
  background-color: #FFFFFF !important;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.06) !important;
  outline: none;
}

/* Restores Search icon styling if present */
.search::before, form[role="search"]::before {
  content: "🔍";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #999999;
  z-index: 2;
}

/***** Section Headers *****/
.homepage-title, main h2, .explore-title, h2.explore-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin: 50px 0 35px 0;
  color: #222222;
}

/***** Fully Responsive Categories Grid *****/
.blocks-list, .category-grid, .promoted-articles ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 30px auto;
  padding: 0 20px;
  list-style: none;
  max-width: 1160px;
}

/* Category Grid Block Box Panels */
.blocks-item, .category-item, .blocks-list li {
  background: #F9F9F9;
  border: none;
  border-radius: 24px;
  padding: 40px 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blocks-item:hover, .category-item:hover {
  transform: translateY(-4px);
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.05);
}

/* Circular Icon Adjustments */
.blocks-item img, .category-item img, .blocks-list img {
  max-width: 180px;
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
  display: inline-block;
}

.blocks-item-title, .category-item-title, .blocks-list li a {
  font-size: 18px;
  font-weight: 700;
  color: #333333 !important;
  margin-top: 10px;
  display: block;
}

/***** Header Logo Adjustments *****/
header.header, .nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #FFFFFF;
}

.logo img {
  max-height: 35px;
}

.login-btn, .button-secondary {
  border: 1px solid #333333;
  border-radius: 24px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  color: #333333 !important;
}

/***** Mobile Media Breakpoint Responsive Rules *****/
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .blocks-list { grid-template-columns: 1fr; gap: 20px; }
}
