/* ================================
   Custom Overrides (OyHeart site)
   ================================ */

/* 1. HERO SECTION (About & Blog) */
.hero-section {
  padding-top: 190px;
  padding-bottom: 150px;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
}

/* Default: hide inline portrait */
.hero-mobile-img {
  display: none;
}

@media (max-width: 991px) {
  /* Remove hero background for mobile */
  .hero-section {
    background: none !important;
    padding-top: 120px !important;
    padding-bottom: 40px !important;
    text-align: center;
  }

  /* Show portrait image */
  .hero-mobile-img {
    display: block !important;
    margin-top: 20px;
  }

  .hero-mobile-img img {
    max-width: 70%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  /* Center hero text */
  .hero-section h1,
  .hero-section h5 {
    text-align: center !important;
  }

  /* Increase line-height for subtitle (h5) */
  .hero-section h5 {
    line-height: 1.6 !important;
  }
}

/* 2. BLOG PAGE */
.post-side-img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .post-first-para {
    padding-right: 12px;
  }
  .post-first-img {
    padding-left: 12px;
    text-align: right;
  }
  .post-side-img {
    max-width: 150px; /* smaller on desktop */
  }
}

@media (max-width: 991px) {
  .post-first-img {
    text-align: center !important;
    margin-top: 20px;
  }
}

/* 3. GENERAL MOBILE TYPOGRAPHY FIXES */
@media (max-width: 991px) {
  h1 {
    font-size: 26px !important;
    line-height: 1.4 !important;
  }
  h5 {
    font-size: 20px !important;
    line-height: 1.6 !important;
  }
}

/* Default: hide inline hero image */
.hero-mobile-img { display: none; }

/* Mobile override */
/* Mobile: remove blog hero background, center text */
/* Mobile: kill hero background, show inline image */
@media (max-width: 991px) {
  .hero-section {
    background: none !important;
    background-image: none !important;
    padding-top: 120px !important;
    padding-bottom: 40px !important;
    text-align: center;
  }

  .hero-mobile-img {
    display: block !important;
    margin-top: 20px;
  }

  .hero-mobile-img img {
    max-width: 70%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .hero-section h1,
  .hero-section h5 {
    text-align: center !important;
  }
}


