/* ------------------------------
   GLOBAL BLOG CONTAINER
------------------------------ */

.blog-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 25px;
  font-family: "Inter", "Poppins", sans-serif;
  color: #d8d8d8;
  line-height: 1.75;
}

/* ------------------------------
   TYPOGRAPHY BASE
------------------------------ */

.blog-container p {
  margin: 14px 0 22px;
  font-size: 17px;
  color: #c9c9c9;
  font-weight: 300;
}

.blog-container strong {
  color: #fff;
  font-weight: 600;
}

/* ------------------------------
   HEADINGS
------------------------------ */

.blog-container h1.blog-title {
  font-size: 36px;
  font-weight: 700;
  margin: 15px 0 25px;
  color: #ffffff;
  line-height: 1.3;
}

.blog-container h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 45px 0 15px;
  color: #ffffff;
  line-height: 1.35;
}

.blog-container h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 30px 0 12px;
  color: #ffffff;
}

/* ------------------------------
   META ROW (author + date)
------------------------------ */

.blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b3b3b3;
  font-size: 14px;
  margin-bottom: 20px;
}

.blog-meta .meta-icon {
  font-size: 18px;
}

.blog-meta .dot {
  font-size: 22px;
  line-height: 0;
}

/* ------------------------------
   TABLE OF CONTENTS
------------------------------ */

.blog-toc {
  background: #1f1f1f;
  padding: 22px 25px;
  border-left: 4px solid #d4a053;
  border-radius: 6px;
  margin-bottom: 40px;
}

.blog-toc h3 {
  margin-bottom: 12px;
  font-size: 20px;
  color: #ffffff;
}

.blog-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-toc ul li {
  margin-bottom: 10px;
}

.blog-toc a {
  text-decoration: none;
  color: #d4a053;
  font-size: 16px;
}

.blog-toc a:hover {
  text-decoration: underline;
}

/* ------------------------------
   LISTS (BULLETS + ORDERED)
------------------------------ */

.blog-container ul,
.blog-container ol {
  margin: 10px 0 25px 20px;
  padding-left: 20px;
  color: #cfcfcf;
}

.blog-container li {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.7;
}

/* ------------------------------
   LINKS
------------------------------ */

.blog-container a {
  color: #B19777;
  text-decoration: none;
  font-weight: 400;
}

.blog-container a:hover {
  text-decoration: underline;
  color: #B19777;
}

/* ------------------------------
   QUOTE BOX
------------------------------ */

.blog-quote {
  background: #151515;
  padding: 25px 28px;
  border-left: 4px solid #d4a053;
  margin: 40px 0;
  border-radius: 6px;
}

.blog-quote p {
  font-size: 18px;
  color: #e3e3e3;
  margin: 0 0 8px;
  font-weight: 300;
  line-height: 1.6;
}

.blog-quote .quote-author {
  display: block;
  color: #b78b4a;
  font-size: 16px;
  margin-top: 8px;
}

/* ------------------------------
   SPACING FIXES
------------------------------ */

.blog-container section {
  margin-bottom: 40px;
}

.blog-container h2 + p {
  margin-top: 5px;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */

@media (max-width: 768px) {
  .blog-container {
    padding: 25px 0px;
  }

  .blog-container h1.blog-title {
    font-size: 29px;
  }

  .blog-container h2 {
    font-size: 24px;
  }

  .blog-container h3 {
    font-size: 20px;
  }

  .blog-quote {
    padding: 20px;
  }

  .blog-quote p {
    font-size: 17px;
  }
}


/* ------------------------------------------
   MOBILE RESPONSIVE FIXES
------------------------------------------- */

@media (max-width: 768px) {

  .blog-container {
    padding: 20px 1px !important;
    max-width: 100% !important;
  }

  /* Fix heading wrapping */
  .blog-container h1.blog-title {
    font-size: 26px !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
  }

  .blog-container h2 {
    font-size: 23px !important;
    margin-top: 30px !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
  }

  .blog-container h3 {
    font-size: 19px !important;
    margin-top: 22px !important;
    line-height: 1.4 !important;
  }

  /* Paragraphs spacing + wrapping fix */
  .blog-container p {
    font-size: 16px !important;
    line-height: 1.65 !important;
    margin: 12px 0 18px !important;
    word-break: break-word !important;
  }

  /* Fix list spacing */
  .blog-container ul,
  .blog-container ol {
    margin: 8px 0 20px 15px !important;
    padding-left: 18px !important;
  }

  .blog-container li {
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin-bottom: 6px !important;
    word-break: break-word !important;
  }

  /* Fix quotation box */
  .blog-quote {
    padding: 18px 20px !important;
    margin: 28px 0 !important;
  }

  .blog-quote p {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  /* Table of contents mobile layout */
  .blog-toc {
    padding: 18px 18px !important;
    margin-bottom: 30px !important;
  }

  .blog-toc h3 {
    font-size: 18px !important;
  }

  .blog-toc ul li {
    margin-bottom: 8px !important;
  }

  .blog-toc a {
    font-size: 15px !important;
  }

  /* Fix section spacing */
  .blog-container section {
    margin-bottom: 28px !important;
  }

  /* Ensure no element shifts left-right */
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

}

/* Premium list styling */
.blog-container ul {
  list-style: none;
  margin: 12px 0 25px 0;
  padding-left: 0;
}

.blog-container ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 17px;
  color: #d0d0d0;
  line-height: 1.65;
}

/* Custom elegant bullet */
.blog-container ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  background-color: #d4a053; /* premium gold tone */
  border-radius: 50%;
}




/* ===============================
   TOC BOX (FINAL PERFECT VERSION)
=============================== */

.toc-final {
  background: #1c1c1c;
  border-left: 4px solid #d4a053;
  border-radius: 10px;
  padding: 0;
  margin: 40px 0;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

/* ===============================
   HEADER
=============================== */

.toc-final-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 28px 30px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.toc-final-header:focus {
  outline: none;
}

.toc-final-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

/* Toggle icon */
.toc-final-toggle {
  font-size: 24px;
  font-weight: 400;
  color: #ffffff;
  user-select: none;
  transition: transform 0.25s ease;
}

/* ===============================
   BODY + OPEN/CLOSE LOGIC
=============================== */

.toc-final-body {
  overflow: hidden;
  max-height: 900px;
  transition: max-height 0.35s ease;
  padding: 0 30px 30px;
}

.toc-final.collapsed .toc-final-body {
  max-height: 0;
  padding-bottom: 0;
}

.toc-final.collapsed .toc-final-toggle {
  transform: rotate(180deg);
  content: "+";
}

/* ===============================
   BULLET LIST (MATCH DESIGN)
=============================== */

.toc-final-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-final-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
}

/* GOLD BULLET */
.toc-final-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 22px;
  color: #d4a053;
  line-height: 1;
}

/* LINK STYLE */
.toc-final-list a {
  font-size: 17px;
  color: #d7c2a4;
  text-decoration: none;
  font-weight: 400;
}

.toc-final-list a:hover {
  color: #f1d4aa;
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 768px) {

  .toc-final-header {
    padding: 22px 20px 10px;
  }

  .toc-final-title {
    font-size: 20px;
  }

  .toc-final-body {
    padding: 0 20px 20px;
  }

  .toc-final-list li {
    padding-left: 20px;
    margin-bottom: 14px;
  }

  .toc-final-list li::before {
    font-size: 18px;
  }

  .toc-final-list a {
    font-size: 15.5px;
  }
}



/* === SECTION ISOLATION === */
.author-fix-section {
  clear: both;
  position: relative;
  z-index: 1;
  margin: 60px 0;
}

/* === CARD === */
.author-fix-card {
  display: flex;
  gap: 26px;
  background: #1c1c1c;
  border-left: 4px solid #d4a053;
  border-radius: 10px;
  padding: 26px;
  max-width: 100%;
  box-sizing: border-box;
}

/* === IMAGE === */
.author-fix-image {
  flex: 0 0 130px;
}

.author-fix-image img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #d4a053;
  display: block;
}

/* === CONTENT === */
.author-fix-content {
  flex: 1;
  min-width: 0;
}

.author-fix-label {
  font-size: 14px;
  color: #aaa;
}

.author-fix-name {
  font-size: 24px;
  color: #fff;
  margin: 6px 0 12px;
}

.author-fix-bio {
  font-size: 16px;
  color: #d0d0d0;
  line-height: 1.65;
}

/* === SOCIAL ICONS === */
.author-fix-socials {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.author-fix-socials svg {
  width: 24px;
  height: 24px;
  fill: #d4a053;
}

/* === MOBILE FIX === */
@media (max-width: 768px) {
  .author-fix-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-fix-image {
    margin-bottom: 14px;
  }

  .author-fix-socials {
    justify-content: center;
  }
}

