/* =========================================================
   BLOG + BLOG DETAILS
   Dr. Suboor Website
========================================================= */

:root {
  --blog-navy: #111a4a;
  --blog-navy-dark: #0a123d;

  --blog-purple: #7139a6;
  --blog-purple-dark: #5d238d;

  --blog-bg: #f8f6fb;
  --blog-soft: #f4eff9;
  --blog-soft-2: #faf8fc;

  --blog-text: #343a4f;
  --blog-muted: #667087;

  --blog-border: #e7e1ed;
  --blog-white: #ffffff;

  --blog-shadow: 0 12px 35px rgba(17, 26, 74, 0.08);
}


/* =========================================================
   COMMON
========================================================= */

.blog-page,
.blog-details-page {
  width: 100%;
  overflow-x: hidden;
  background: var(--blog-bg);
  color: var(--blog-text);
}


.blog-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}


/* =========================================================
   BLOG PAGE - INTRO
========================================================= */

.blog-intro {
  padding: 58px 0 48px;

  background:
    linear-gradient(
      180deg,
      #f7f3fa 0%,
      #f8f6fb 100%
    );

  text-align: center;
}


.blog-intro-inner {
  max-width: 900px;
}


.blog-eyebrow {
  display: inline-block;

  margin-bottom: 10px;

  color: var(--blog-purple);

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 1.5px;
  text-transform: uppercase;
}


.blog-intro h1 {
  margin: 0 0 14px;

  color: var(--blog-navy);

  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.2;

  font-weight: 750;
}


.blog-intro h1 span {
  color: var(--blog-purple);
}


.blog-intro p {
  max-width: 700px;

  margin: 0 auto;

  color: var(--blog-muted);

  font-size: 16px;
  line-height: 1.7;
}


/* =========================================================
   BLOG LIST SECTION

   SAME BACKGROUND AS INTRO
   This removes the visible different-color gap.
========================================================= */

.blog-posts-section {
  padding: 48px 0 80px;

  background:
    linear-gradient(
      180deg,
      #f8f6fb 0%,
      #ffffff 100%
    );
}


.blog-grid {
  display: grid;
  grid-template-columns: 1fr;

  gap: 28px;
}


/* =========================================================
   BLOG CARD
========================================================= */

.blog-card {
  display: grid;

  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);

  width: 100%;
  max-width: 1080px;

  margin: 0 auto;

  overflow: hidden;

  background: var(--blog-white);

  border: 1px solid var(--blog-border);
  border-radius: 16px;

  box-shadow: var(--blog-shadow);
}


/* IMAGE */

.blog-card-image {
  display: block;

  width: 100%;
  min-width: 0;
  min-height: 380px;

  overflow: hidden;

  background: var(--blog-soft);
}


.blog-card-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform 0.35s ease;
}


.blog-card:hover .blog-card-image img {
  transform: scale(1.025);
}


/* CARD CONTENT */

.blog-card-content {
  min-width: 0;

  padding: 38px 40px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}


.blog-category {
  display: inline-flex;
  align-items: center;

  width: fit-content;

  margin-bottom: 14px;

  padding: 7px 13px;

  border-radius: 30px;

  background: var(--blog-soft);

  color: var(--blog-purple);

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 1.2px;
  text-transform: uppercase;
}


.blog-card h2 {
  margin: 0 0 14px;

  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.32;

  font-weight: 750;
}


.blog-card h2 a {
  color: var(--blog-navy);

  text-decoration: none;

  transition: color 0.25s ease;
}


.blog-card h2 a:hover {
  color: var(--blog-purple);
}


.blog-card p {
  margin: 0 0 22px;

  color: var(--blog-muted);

  font-size: 15.5px;
  line-height: 1.75;
}


/* =========================================================
   READ ARTICLE BUTTON
========================================================= */

.blog-read-btn {
  width: fit-content;

  display: inline-flex;
  align-items: center;

  gap: 9px;

  padding: 11px 18px;

  border-radius: 7px;

  background: var(--blog-purple);

  color: var(--blog-white);

  text-decoration: none;

  font-size: 14px;
  font-weight: 700;

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


.blog-read-btn i {
  font-size: 12px;

  transition: transform 0.25s ease;
}


.blog-read-btn:hover {
  background: var(--blog-purple-dark);

  transform: translateY(-1px);

  box-shadow:
    0 7px 18px rgba(113, 57, 166, 0.2);
}


.blog-read-btn:hover i {
  transform: translateX(3px);
}


/* =========================================================
   BLOG DETAILS SHARED HERO

   shared-components.js creates this.
========================================================= */

.blog-details-hero .shared-breadcrumb-inner {
  max-width: 1180px;
}


.blog-details-hero .shared-breadcrumb {
  margin-bottom: 22px;
}


/*
  LUNG CANCER heading
*/

.blog-details-hero h1 {
  margin-top: 0;
  margin-bottom: 12px;

  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;

  letter-spacing: 0.3px;
}


/*
  Hero description
*/

.blog-details-hero p {
  max-width: 720px;

  margin-bottom: 0;

  font-size: 15.5px;
  line-height: 1.7;
}


/* =========================================================
   BLOG DETAILS PAGE
========================================================= */

.blog-detail-section {
  padding: 52px 0 82px;

  background:
    linear-gradient(
      180deg,
      #f8f6fb 0,
      #ffffff 180px
    );
}


.blog-details-page .blog-container {
  max-width: 1040px;
}


/* =========================================================
   ARTICLE CARD
========================================================= */

.blog-article {
  width: 100%;

  overflow: hidden;

  background: var(--blog-white);

  border: 1px solid var(--blog-border);
  border-radius: 16px;

  box-shadow:
    0 12px 36px rgba(17, 26, 74, 0.07);
}


.blog-article-full {
  width: 100%;
}


/* =========================================================
   MAIN ARTICLE IMAGE
========================================================= */

.blog-main-image {
  width: 100%;
  height: 440px;

  margin: 0;

  overflow: hidden;

  background: var(--blog-soft);
}


.blog-main-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}


/* =========================================================
   ARTICLE CONTENT
========================================================= */

.blog-article-content {
  width: 100%;

  padding: 42px 52px 50px;

  color: var(--blog-text);

  font-size: 15.5px;
  line-height: 1.8;
}


.blog-article-content > p {
  margin: 0 0 17px;

  color: #525b70;
}


/* First paragraph */

.blog-article-content > p:first-child {
  color: #3f485f;

  font-size: 16.5px;
  line-height: 1.8;
}


/* =========================================================
   ARTICLE SECTION HEADINGS
========================================================= */

.blog-article-content h2 {
  position: relative;

  margin: 38px 0 17px;

  padding: 13px 16px 13px 20px;

  overflow: hidden;

  border: 1px solid #ebe4f1;
  border-radius: 8px;

  background:
    linear-gradient(
      90deg,
      #f4eff9,
      #faf8fc
    );

  color: var(--blog-navy);

  font-size: 22px;
  line-height: 1.35;

  font-weight: 750;
}


.blog-article-content h2::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 4px;
  height: 100%;

  background: var(--blog-purple);
}


/* =========================================================
   SUB HEADINGS
   1. Smoking
   2. Passive smoking
   etc.
========================================================= */

.blog-article-content h3 {
  position: relative;

  margin: 25px 0 9px;

  padding-left: 17px;

  color: var(--blog-navy);

  font-size: 18px;
  line-height: 1.4;

  font-weight: 700;
}


.blog-article-content h3::before {
  content: "";

  position: absolute;

  top: 8px;
  left: 0;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--blog-purple);
}


/* =========================================================
   ARTICLE LISTS
========================================================= */

.blog-article-content ul {
  margin: 14px 0 24px;

  padding: 18px 22px 12px 45px;

  border: 1px solid #ece7f1;
  border-radius: 10px;

  background: #faf9fc;
}


.blog-article-content li {
  margin-bottom: 9px;

  padding-left: 3px;

  color: #525b70;

  line-height: 1.7;
}


.blog-article-content li::marker {
  color: var(--blog-purple);
}


/* =========================================================
   LAST MESSAGE
========================================================= */

.blog-article-content h2:last-of-type {
  background:
    linear-gradient(
      90deg,
      #f2edf8,
      #faf8fc
    );
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

  .blog-container {
    width: min(100% - 36px, 920px);
  }


  /* BLOG */

  .blog-intro {
    padding: 50px 0 42px;
  }

  .blog-posts-section {
    padding: 42px 0 65px;
  }

  .blog-card {
    grid-template-columns:
      minmax(0, 0.9fr)
      minmax(0, 1.1fr);
  }

  .blog-card-image {
    min-height: 330px;
  }

  .blog-card-content {
    padding: 30px;
  }


  /* DETAILS */

  .blog-detail-section {
    padding: 42px 0 65px;
  }

  .blog-main-image {
    height: 360px;
  }

  .blog-article-content {
    padding: 36px 38px 42px;
  }

  .blog-article-content h2 {
    font-size: 21px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

  .blog-container {
    width: calc(100% - 30px);
  }


  /* BLOG INTRO */

  .blog-intro {
    padding: 42px 0 36px;
  }

  .blog-intro h1 {
    font-size: 29px;
  }

  .blog-intro p {
    font-size: 15px;
    line-height: 1.65;
  }


  /* BLOG CARD */

  .blog-posts-section {
    padding: 36px 0 55px;
  }

  .blog-card {
    grid-template-columns: 1fr;

    border-radius: 13px;
  }

  .blog-card-image {
    min-height: 0;
    height: 250px;
  }

  .blog-card-content {
    padding: 25px 22px 28px;
  }

  .blog-card h2 {
    font-size: 23px;
  }

  .blog-card p {
    font-size: 15px;
  }


  /* DETAILS HERO */

  .blog-details-hero .shared-breadcrumb {
    margin-bottom: 18px;
  }

  .blog-details-hero h1 {
    font-size: 27px;
  }

  .blog-details-hero p {
    font-size: 14.5px;
  }


  /* DETAILS ARTICLE */

  .blog-detail-section {
    padding: 32px 0 52px;
  }

  .blog-article {
    border-radius: 12px;
  }

  .blog-main-image {
    height: 270px;
  }

  .blog-article-content {
    padding: 28px 22px 34px;

    font-size: 15px;
    line-height: 1.75;
  }

  .blog-article-content > p:first-child {
    font-size: 15.5px;
  }

  .blog-article-content h2 {
    margin-top: 31px;

    padding: 12px 13px 12px 17px;

    font-size: 20px;
  }

  .blog-article-content h3 {
    margin-top: 22px;

    font-size: 17px;
  }

  .blog-article-content ul {
    padding:
      16px
      15px
      9px
      37px;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

  .blog-container {
    width: calc(100% - 24px);
  }

  .blog-intro h1 {
    font-size: 27px;
  }

  .blog-card-image {
    height: 215px;
  }

  .blog-card-content {
    padding: 22px 18px 25px;
  }

  .blog-card h2 {
    font-size: 21px;
  }

  .blog-main-image {
    height: 225px;
  }

  .blog-article-content {
    padding: 24px 17px 30px;
  }

  .blog-article-content h2 {
    font-size: 18px;
  }

}
/* =========================================================
   PREVENTION ICON LIST
========================================================= */

.blog-article-content .blog-prevention-list {
  padding: 18px 20px;
  list-style: none;
}


.blog-prevention-list li {
  display: flex;
  align-items: flex-start;

  gap: 12px;

  padding: 9px 0;

  margin: 0;

  border-bottom: 1px solid #eeeaf2;
}


.blog-prevention-list li:last-child {
  border-bottom: 0;
}


.blog-prevention-list li i {
  width: 28px;
  height: 28px;

  flex: 0 0 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 1px;

  border-radius: 7px;

  background: #f1eaf7;

  color: var(--blog-purple);

  font-size: 12px;
}


.blog-prevention-list li span {
  flex: 1;
}