/*==============================================================
  blog-style.css
  Self-contained premium theme for the blog article pages.
  Matches the index.php / location-page design language
  (teal palette, Poppins/Open Sans, soft cards). Scoped under
  #main.blog-page so it never leaks into other templates.
  Hero = content (left) + top_form (right). Content sections
  are restyled from the existing .container-fluid > .bg-light
  panels - no markup rewrite of the body required.
  Loads independently of style1.css; relies only on Bootstrap
  grid + bootstrap-icons.
==============================================================*/
#main.blog-page {
  --bc-teal: #2bbf9f;
  --bc-teal-soft: #59d4b9;
  --bc-teal-dark: #1a8f80;
  --bc-teal-deep: #143a34;
  --bc-ink: #112e2a;
  --bc-body: #51635e;
  --bc-muted: #66756f;
  --bc-line: #e8f1ee;
  --bc-bg-soft: #f6fefc;
  --bc-ease: cubic-bezier(0.22, 1, 0.36, 1);

  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--bc-body);
  background: #fff;
  /* clear the fixed header (topbar + header) */
  padding-top: 117px;
}

#main.blog-page h1,
#main.blog-page h2,
#main.blog-page h3,
#main.blog-page h4 {
  font-family: "Poppins", sans-serif;
  color: var(--bc-ink);
  line-height: 1.28;
}

#main.blog-page p {
  margin: 0 0 16px;
  color: var(--bc-body);
}

#main.blog-page a {
  color: var(--bc-teal-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

#main.blog-page a:hover {
  color: var(--bc-ink);
}

#main.blog-page img {
  max-width: 100%;
  height: auto;
}

#main.blog-page section,
#main.blog-page .container-fluid {
  overflow: clip;
}

/*───────────────────────────────────────────────
  HERO  (#about) - content left + top_form right
───────────────────────────────────────────────*/
#main.blog-page #about {
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin-top: -117px;
  padding: calc(117px + 46px) 0 60px !important;
  background:
    radial-gradient(ellipse 55% 50% at 0% 0%, rgba(89, 212, 185, 0.14), transparent 60%),
    radial-gradient(ellipse 45% 55% at 100% 100%, rgba(53, 177, 164, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f4fdfa 55%, #effdf8 100%);
}

#main.blog-page #about .about-container {
  align-items: center;
}

/* breathing room between the form (left) and the article content (right) */
#main.blog-page #about .content {
  padding: 8px 6px 8px 40px;
}

@media (max-width: 991px) {
  #main.blog-page #about .content {
    padding: 8px 6px;
  }
}

#main.blog-page #about h1 {
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  letter-spacing: -0.7px;
  line-height: 1.15;
  margin: 0 0 18px;
  background: linear-gradient(100deg, var(--bc-ink) 0%, #1a8f80 55%, #35b1a4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#main.blog-page #about .content p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--bc-body);
}

/* phone button */
#main.blog-page .custom-btn {
  margin-top: 8px;
}

#main.blog-page .btn-get-started {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff !important;
  text-decoration: none;
  background: linear-gradient(135deg, var(--bc-teal), var(--bc-teal-dark));
  padding: 13px 28px;
  border-radius: 50px;
  box-shadow: 0 16px 30px -12px rgba(26, 143, 128, 0.55);
  transition: transform 0.3s var(--bc-ease), box-shadow 0.3s var(--bc-ease);
}

#main.blog-page .btn-get-started::before {
  content: "\F5C1";
  font-family: "bootstrap-icons";
  font-size: 17px;
}

#main.blog-page .btn-get-started:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -14px rgba(26, 143, 128, 0.65);
  color: #fff !important;
}

/* form card (right) - wrap the included top_form in a premium shell.
   NOTE: do NOT set width on .background itself - it's a Bootstrap
   .col-lg-6 and forcing width breaks the 2-column hero layout. */
#main.blog-page #about .background {
  background: #fff;
  border: 1px solid var(--bc-line);
  border-radius: 22px;
  padding: 28px 26px;
  box-shadow: 0 30px 70px -34px rgba(18, 46, 42, 0.4), 0 0 0 1px rgba(26, 59, 54, 0.04);
  position: relative;
  overflow: hidden;
}

#main.blog-page #about .background .tf-form-wrap,
#main.blog-page #about .background>form {
  width: 100%;
}

#main.blog-page #about .background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--bc-teal), var(--bc-teal-dark));
}

/*───────────────────────────────────────────────
  ARTICLE BODY  (the .container-fluid .py-5 blocks)
───────────────────────────────────────────────*/
#main.blog-page .container-fluid.py-5 {
  padding: 30px 0 !important;
}

#main.blog-page .container-fluid.py-5:first-of-type {
  padding-top: 56px !important;
}

/* section H2 - gradient, left aligned, accent underline */
#main.blog-page .container-fluid .display-5,
#main.blog-page .container-fluid .h2-gradient {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem) !important;
  font-weight: 700 !important;
  text-align: left !important;
  margin: 0 0 4px;
  position: relative;
  padding-bottom: 14px;
  /* themed gradient ink->teal (wiki uses .h2-gradient) */
  background: linear-gradient(100deg, var(--bc-ink) 0%, #1a8f80 55%, #35b1a4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

#main.blog-page .container-fluid .display-5::after,
#main.blog-page .container-fluid .h2-gradient::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bc-teal), var(--bc-teal-dark));
}

/* the content panel - clean white card with soft border */
#main.blog-page .bg-light {
  background: var(--bc-bg-soft) !important;
  border: 1px solid var(--bc-line);
  border-radius: 18px;
  padding: 30px 32px !important;
  box-shadow: 0 16px 40px -28px rgba(18, 46, 42, 0.32);
}

#main.blog-page .bg-light h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--bc-teal-dark);
  margin: 22px 0 8px;
}

#main.blog-page .bg-light h3:first-child {
  margin-top: 0;
}

#main.blog-page .bg-light p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--bc-body);
}

#main.blog-page .bg-light p.mt-4 {
  margin-top: 8px !important;
}

/* image blocks in the body */
#main.blog-page .container-fluid img.img-fluid {
  border-radius: 18px;
  box-shadow: 0 24px 54px -26px rgba(18, 46, 42, 0.4);
}

/* in-body phone button stays themed (rule above covers .btn-get-started) */

/*───────────────────────────────────────────────
  RESPONSIVE
───────────────────────────────────────────────*/
@media (max-width: 991px) {
  #main.blog-page {
    padding-top: 102px;
  }

  #main.blog-page #about {
    margin-top: -102px;
    padding: calc(102px + 28px) 0 40px !important;
  }

  #main.blog-page #about .background {
    margin-top: 22px;
  }

  #main.blog-page .container-fluid .display-5 {
    text-align: left !important;
  }

  #main.blog-page .bg-light {
    padding: 24px 20px !important;
  }
}

@media (max-width: 575px) {
  #main.blog-page #about .background {
    padding: 22px 16px;
  }
}