/* =========================================================
   MIGARA CARE
   BLOG DETAIL PAGE
   CLEAN VERSION
========================================================= */

:root {
  --blog-gold: #bd8b18;
  --blog-gold-dark: #a6760f;
  --blog-navy: #0b2748;
  --blog-heading: #172238;
  --blog-text: #667085;
  --blog-light: #fbf8f1;
  --blog-soft: #f6f0df;
  --blog-border: #e8e3d8;
  --blog-white: #ffffff;
  --blog-shadow: 0 20px 55px rgba(11, 39, 72, 0.08);
}

/* =========================================================
   PAGE BOX SIZING
========================================================= */

.blog-detail-hero *,
.blog-article *,
.key-takeaways *,
.related-blogs *,
.author-section * {
  box-sizing: border-box;
}

/* =========================================================
   BLOG DETAIL HERO
========================================================= */

.blog-detail-hero {
  position: relative;
  padding: 42px 0 80px;
  background:
    radial-gradient(
      circle at 90% 85%,
      rgba(189, 139, 24, 0.1),
      transparent 30%
    ),
    linear-gradient(135deg, #ffffff 0%, #fcf8ef 100%);
  overflow: hidden;
}

/* Decorative circle */

.blog-detail-hero::before {
  content: "";
  position: absolute;

  width: 520px;
  height: 520px;

  right: -300px;
  bottom: -300px;

  border-radius: 50%;

  border: 1px solid rgba(189, 139, 24, 0.14);

  pointer-events: none;
}

/* =========================================================
   CONTAINER
========================================================= */

.blog-detail-hero > .container {
  position: relative;
  z-index: 2;
}

/* =========================================================
   BREADCRUMB
========================================================= */

.blog-detail-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 34px;

  color: #7c8491;

  font-size: 14px;
  line-height: 1.5;
}

.blog-detail-breadcrumb a {
  color: var(--blog-gold);

  text-decoration: none;

  font-weight: 600;

  transition: 0.3s ease;
}

.blog-detail-breadcrumb a:hover {
  color: var(--blog-gold-dark);
}

.blog-detail-breadcrumb span {
  color: #858c98;
}

/* =========================================================
   MAIN BLOG BANNER
========================================================= */

.blog-detail-banner {
  position: relative;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(420px, 0.9fr);

  min-height: 500px;

  width: 100%;

  overflow: hidden;

  background: var(--blog-white);

  border-radius: 30px;

  box-shadow: 0 25px 65px rgba(11, 39, 72, 0.11);
}

/* =========================================================
   LEFT TEXT AREA
========================================================= */

.blog-detail-banner-content {
  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 65px;

  background: linear-gradient(145deg, #ffffff 0%, #fbf8f0 100%);

  order: 1;
}

/* =========================================================
   CATEGORY
========================================================= */

.blog-detail-category {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  width: fit-content;

  margin-bottom: 24px;

  padding: 10px 18px;

  border-radius: 50px;

  background: rgba(189, 139, 24, 0.1);

  color: var(--blog-gold);

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 1.7px;

  text-transform: uppercase;
}

.blog-detail-category::before {
  content: "";

  width: 26px;
  height: 2px;

  background: var(--blog-gold);
}

/* =========================================================
   BLOG TITLE
========================================================= */

.blog-detail-banner-content h1 {
  max-width: 700px;

  margin: 0 0 24px;

  color: var(--blog-navy);

  font-size: clamp(40px, 4vw, 60px);

  font-weight: 800;

  line-height: 1.08;

  letter-spacing: -1.5px;
}

/* =========================================================
   DESCRIPTION
========================================================= */

.blog-detail-description {
  max-width: 650px;

  margin: 0 0 30px;

  color: var(--blog-text);

  font-size: 17px;

  line-height: 1.8;
}

/* =========================================================
   META
========================================================= */

.blog-detail-meta {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 14px 25px;

  padding-top: 22px;

  border-top: 1px solid var(--blog-border);
}

.blog-detail-meta span {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  color: #6c7480;

  font-size: 14px;

  font-weight: 500;
}

.blog-detail-meta i {
  color: var(--blog-gold);

  font-size: 15px;
}

/* =========================================================
   RIGHT BLOG IMAGE
========================================================= */

.blog-detail-banner-image {
  position: relative;

  width: 100%;
  height: 100%;

  min-height: 500px;

  overflow: hidden;

  order: 2;
}

.blog-detail-banner-image img {
  display: block;

  width: 100%;
  height: 100%;

  min-height: 500px;

  object-fit: cover;

  object-position: center;

  transition: transform 0.6s ease;
}

.blog-detail-banner:hover .blog-detail-banner-image img {
  transform: scale(1.025);
}

/* Image overlay */

.blog-detail-banner-image::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(90deg, rgba(11, 39, 72, 0.08), transparent 30%);

  pointer-events: none;
}

/* =========================================================
   BLOG ARTICLE
========================================================= */

.blog-article {
  position: relative;

  padding: 90px 0 100px;

  background: #ffffff;
}

/* =========================================================
   ARTICLE LAYOUT
========================================================= */

.blog-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    320px;

  gap: 65px;

  align-items: start;
}

/* =========================================================
   ARTICLE CONTENT
========================================================= */

.article-content {
  min-width: 0;

  color: var(--blog-text);

  font-size: 17px;

  line-height: 1.9;
}

.article-content p {
  margin: 0 0 24px;
}

.article-content h2 {
  margin: 58px 0 22px;

  color: var(--blog-navy);

  font-size: 36px;

  font-weight: 800;

  line-height: 1.25;
}

.article-content h3 {
  margin: 40px 0 18px;

  color: var(--blog-navy);

  font-size: 26px;

  font-weight: 700;
}

/* =========================================================
   ARTICLE INTRO
========================================================= */

.article-intro {
  margin: 0 0 40px !important;

  padding: 28px 30px;

  background: linear-gradient(135deg, #fffdf8, #faf5e9);

  border-left: 4px solid var(--blog-gold);

  border-radius: 0 18px 18px 0;

  color: var(--blog-navy) !important;

  font-size: 18px;

  font-weight: 500;

  line-height: 1.85;
}

/* =========================================================
   ARTICLE IMAGE
========================================================= */

.article-content > img {
  display: block;

  width: 100%;
  height: auto;

  margin: 45px 0;

  border-radius: 22px;

  box-shadow: var(--blog-shadow);
}

/* =========================================================
   ARTICLE LIST
========================================================= */

.article-content ul {
  margin: 30px 0;

  padding: 0;

  list-style: none;
}

.article-content ul li {
  position: relative;

  margin-bottom: 14px;

  padding-left: 32px;
}

.article-content ul li::before {
  content: "\f058";

  position: absolute;

  left: 0;
  top: 4px;

  font-family: "Font Awesome 6 Free";

  font-weight: 900;

  color: var(--blog-gold);
}

/* =========================================================
   HIGHLIGHT
========================================================= */

.article-highlight {
  margin: 42px 0;

  padding: 30px;

  background: #fcfaf4;

  border: 1px solid var(--blog-border);

  border-left: 5px solid var(--blog-gold);

  border-radius: 20px;
}

.article-highlight h3 {
  margin-top: 0;
}

/* =========================================================
   BLOCKQUOTE
========================================================= */

.article-content blockquote {
  position: relative;

  margin: 45px 0;

  padding: 38px 42px;

  background: linear-gradient(135deg, #fffdf8, #f8f1df);

  border-radius: 22px;

  color: var(--blog-navy);

  font-size: 21px;

  font-style: italic;

  line-height: 1.7;
}

/* =========================================================
   SIDEBAR
========================================================= */

.blog-sidebar {
  position: sticky;

  top: 110px;

  align-self: start;
}

.sidebar-widget,
.sidebar-contact {
  margin-bottom: 24px;

  padding: 27px;

  background: #ffffff;

  border: 1px solid var(--blog-border);

  border-radius: 20px;

  box-shadow: 0 12px 35px rgba(11, 39, 72, 0.06);
}

.sidebar-widget h3,
.sidebar-contact h3 {
  margin: 0 0 20px;

  color: var(--blog-navy) !important;

  font-size: 20px;

  font-weight: 700;
}

/* =========================================================
   SHARE
========================================================= */

.share-links {
  display: flex;

  gap: 10px;
}

.share-links a {
  width: 44px;
  height: 44px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(189, 139, 24, 0.1);

  color: var(--blog-gold);

  text-decoration: none;

  transition: 0.3s ease;
}

.share-links a:hover {
  background: var(--blog-gold);

  color: #ffffff;

  transform: translateY(-3px);
}

/* =========================================================
   QUICK LINKS
========================================================= */

.sidebar-links {
  margin: 0;

  padding: 0;

  list-style: none;
}

.sidebar-links li {
  margin-bottom: 12px;
}

.sidebar-links li:last-child {
  margin-bottom: 0;
}

.sidebar-links a {
  color: var(--blog-text);

  text-decoration: none;

  transition: 0.3s ease;
}

.sidebar-links a:hover {
  color: var(--blog-gold);
}

/* =========================================================
   CONTACT CARD
========================================================= */

.sidebar-contact {
  background: var(--primary-light);

  border: none;
}

.sidebar-contact h3 {
  color: #ffffff;
}

.sidebar-contact p {
  margin-bottom: 22px;

  line-height: 1.7;
}

.sidebar-contact .btn {
  width: 100%;
}

/* =========================================================
   KEY TAKEAWAYS
========================================================= */

.key-takeaways {
  padding: 95px 0;

  background: var(--blog-light);
}

.takeaway-box {
  padding: 60px;

  background: #ffffff;

  border-radius: 28px;

  box-shadow: var(--blog-shadow);
}

.takeaway-header {
  margin-bottom: 50px;

  text-align: center;
}

.takeaway-header .section-tag {
  display: inline-block;

  margin-bottom: 15px;

  color: var(--blog-gold);

  font-size: 13px;

  font-weight: 700;

  letter-spacing: 1.6px;

  text-transform: uppercase;
}

.takeaway-header h2 {
  margin: 0;

  color: var(--blog-navy);

  font-size: 42px;

  line-height: 1.2;
}

.takeaway-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 22px;
}

.takeaway-item {
  display: flex;

  gap: 18px;

  padding: 25px;

  background: #fcfaf4;

  border: 1px solid #eee7d8;

  border-radius: 18px;
}

.takeaway-icon {
  flex: 0 0 46px;

  width: 46px;
  height: 46px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--blog-gold);

  color: #ffffff;
}

.takeaway-item h4 {
  margin: 0 0 8px;

  color: var(--blog-navy);

  font-size: 19px;
}

.takeaway-item p {
  margin: 0;

  color: var(--blog-text);

  line-height: 1.7;
}

/* =========================================================
   RELATED BLOGS
========================================================= */

.related-blogs {
  padding: 95px 0;

  background: #ffffff;
}

.related-blogs .section-header {
  max-width: 700px;

  margin: 0 auto 50px;

  text-align: center;
}

.related-blogs .section-tag {
  display: inline-block;

  margin-bottom: 15px;

  color: var(--blog-gold);

  font-size: 13px;

  font-weight: 700;

  letter-spacing: 1.5px;

  text-transform: uppercase;
}

.related-blogs .section-header h2 {
  margin: 0 0 14px;

  color: var(--blog-navy);

  font-size: 42px;
}

.related-blogs .section-header p {
  margin: 0;

  color: var(--blog-text);

  line-height: 1.8;
}

/* =========================================================
   RELATED GRID
========================================================= */

.related-blogs .blogs-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 28px;
}

.related-blogs .blog-card {
  overflow: hidden;

  background: #ffffff;

  border: 1px solid var(--blog-border);

  border-radius: 20px;

  box-shadow: 0 10px 35px rgba(11, 39, 72, 0.05);

  transition: 0.35s ease;
}

.related-blogs .blog-card:hover {
  transform: translateY(-6px);

  box-shadow: 0 20px 45px rgba(11, 39, 72, 0.1);
}

.related-blogs .blog-image {
  height: 220px;

  overflow: hidden;
}

.related-blogs .blog-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: 0.5s ease;
}

.related-blogs .blog-card:hover img {
  transform: scale(1.05);
}

.related-blogs .blog-content {
  padding: 25px;
}

.related-blogs .blog-category {
  color: var(--blog-gold);

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 1.2px;

  text-transform: uppercase;
}

.related-blogs .blog-content h3 {
  margin: 13px 0;

  color: var(--blog-navy);

  font-size: 21px;

  line-height: 1.4;
}

.related-blogs .blog-content p {
  margin-bottom: 18px;

  color: var(--blog-text);

  font-size: 15px;

  line-height: 1.7;
}

.related-blogs .blog-content a {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  color: var(--blog-gold);

  font-weight: 700;

  text-decoration: none;
}

/* =========================================================
   AUTHOR
========================================================= */

.author-section {
  padding: 0 0 95px;

  background: #ffffff;
}

.author-box {
  display: grid;

  grid-template-columns: 140px 1fr;

  align-items: center;

  gap: 32px;

  padding: 42px;

  background: linear-gradient(135deg, #fbf8f1, #ffffff);

  border: 1px solid var(--blog-border);

  border-radius: 24px;
}

.author-image {
  width: 140px;
  height: 140px;

  overflow: hidden;

  border-radius: 50%;

  border: 5px solid #ffffff;

  box-shadow: 0 10px 30px rgba(11, 39, 72, 0.12);
}

.author-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.author-content > span {
  display: block;

  margin-bottom: 7px;

  color: var(--blog-gold);

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 1.5px;

  text-transform: uppercase;
}

.author-content h3 {
  margin: 0 0 12px;

  color: var(--blog-navy);

  font-size: 28px;
}

.author-content p {
  max-width: 760px;

  margin: 0 0 18px;

  color: var(--blog-text);

  line-height: 1.8;
}

.author-social {
  display: flex;

  gap: 10px;
}

.author-social a {
  width: 40px;
  height: 40px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(189, 139, 24, 0.1);

  color: var(--blog-gold);

  text-decoration: none;

  transition: 0.3s ease;
}

.author-social a:hover {
  background: var(--blog-gold);

  color: #ffffff;
}

/* =========================================================
   NOT FOUND
========================================================= */

.blog-not-found {
  min-height: 55vh;

  display: flex;

  align-items: center;

  padding: 100px 0;

  text-align: center;
}

.blog-not-found h1 {
  margin-bottom: 18px;

  color: var(--blog-navy);

  font-size: 52px;
}

.blog-not-found p {
  margin-bottom: 30px;

  color: var(--blog-text);
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1100px) {
  .blog-detail-banner {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(360px, 0.85fr);
  }

  .blog-detail-banner-content {
    padding: 50px;
  }

  .blog-detail-banner-content h1 {
    font-size: 48px;
  }

  .blog-layout {
    grid-template-columns:
      minmax(0, 1fr)
      290px;

    gap: 45px;
  }
}

/* =========================================================
   RESPONSIVE — 991
========================================================= */

@media (max-width: 991px) {
  .blog-detail-banner {
    grid-template-columns: 1fr;
  }

  .blog-detail-banner-content {
    order: 1;

    padding: 50px;
  }

  .blog-detail-banner-image {
    order: 2;

    height: 420px;

    min-height: 420px;
  }

  .blog-detail-banner-image img {
    min-height: 420px;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .related-blogs .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   RESPONSIVE — 768
========================================================= */

@media (max-width: 768px) {
  .blog-detail-hero {
    padding: 28px 0 60px;
  }

  .blog-detail-breadcrumb {
    justify-content: flex-start;

    margin-bottom: 25px;

    font-size: 13px;
  }

  .blog-detail-banner {
    border-radius: 22px;
  }

  .blog-detail-banner-content {
    padding: 38px 28px;
  }

  .blog-detail-banner-content h1 {
    font-size: 38px;

    line-height: 1.12;
  }

  .blog-detail-description {
    font-size: 15px;

    line-height: 1.7;
  }

  .blog-detail-banner-image {
    height: 330px;

    min-height: 330px;
  }

  .blog-detail-banner-image img {
    min-height: 330px;
  }

  .blog-article {
    padding: 65px 0 75px;
  }

  .article-content {
    font-size: 16px;
  }

  .article-content h2 {
    font-size: 30px;
  }

  .takeaway-box {
    padding: 40px 28px;
  }

  .takeaway-grid {
    grid-template-columns: 1fr;
  }

  .related-blogs {
    padding: 75px 0;
  }

  .related-blogs .blogs-grid {
    grid-template-columns: 1fr;
  }

  .author-box {
    grid-template-columns: 1fr;

    text-align: center;

    padding: 35px 25px;
  }

  .author-image {
    margin: 0 auto;
  }

  .author-social {
    justify-content: center;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 480px) {
  .blog-detail-banner-content {
    padding: 30px 22px;
  }

  .blog-detail-banner-content h1 {
    font-size: 31px;
  }

  .blog-detail-banner-image {
    height: 250px;

    min-height: 250px;
  }

  .blog-detail-banner-image img {
    min-height: 250px;
  }

  .blog-detail-meta {
    flex-direction: column;

    align-items: flex-start;
  }

  .blog-detail-meta span {
    font-size: 13px;
  }

  .article-content h2 {
    font-size: 27px;
  }

  .article-intro {
    padding: 22px;

    font-size: 16px;
  }

  .takeaway-box {
    padding: 28px 20px;
  }

  .takeaway-header h2,
  .related-blogs .section-header h2 {
    font-size: 30px;
  }

  .author-image {
    width: 120px;
    height: 120px;
  }
}
