.card a {
  gap: 10px;
  height: auto !important;
}
/* ========= NEW TOC DESIGN ========= */
/* ------------------------- */
/*  Clean Modern TOC Sidebar */
/* ------------------------- */
.toc-sidebar {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 14px 18px;
  border-radius: 10px;
  margin: 24px 0;

  /* soft shadow for premium card */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Title */
.toc-sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;

  letter-spacing: 0.3px;

  border-left: 4px solid #2563eb;
  padding-left: 8px;
}

/* List */
.toc-sidebar-list {
  list-style: none;
  padding: 0;
  font-size: 14.5px;
  margin-left: 35px;
  font-weight: 700;
}

/* Each Item */
.toc-sidebar-list li {
  margin: 4px 0;
  line-height: 1.5;
}

/* Links */
.toc-sidebar-list li a {
  color: #1e40af;
  text-decoration: none;
  display: block;
  font-size: 12.5 !important;
  /*     font-family: verdana, geneva, sans-serif; */
  /* padding: 6px 8px; */

  border-radius: 5px;
  transition: all 0.25s ease;
}

/* Hover Effect */
.toc-sidebar-list li a:hover {
  background: #eff6ff;
  border-left-color: #2563eb;
  padding-left: 12px;
  color: #1d4ed8;
}

/* Active Link (if needed) */
.toc-sidebar-list li a.active {
  background: #dbeafe;
  border-left-color: #1d4ed8;
  font-weight: 600;
  color: #1d4ed8;
}

.heading-wrapper {
  position: relative;
  scroll-margin-top: 120px;
}

.heading-anchor {
  position: absolute;
  top: -120px;
  visibility: hidden;
}

/* 🌐 Global Reset */

.html-content-main {
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* 📄 News Main Content */
.html-content-main {
  color: #333;
  line-height: 1.5;
  margin: 15px 0;
  font-size: 15px;
  overflow-x: hidden;
  text-align: justify;
  text-justify: inter-word;
}

.html-content-main p {
  margin: 12px 0;
  text-align: justify;
  /*  text-justify: inter-word; */
  font-size: 15px;
  line-height: 1.5;
}

/* Heading Styles - Fixed font sizes */
.html-content-main h1 {
  color: #333333;
  font-weight: 600;
  margin: 30px 0 15px;
  /*   border-left: 4px solid #0d47a1; */

  font-size: 18px !important;
  line-height: 1.3;
}

.html-content-main h2 {
  color: #333333;
  font-weight: 600;
  margin: 25px 0 12px;
  /* border-left: 4px solid #0d47a1; */

  font-size: 18px;
  line-height: 1.3;
}

.html-content-main h3 {
  color: #333333;
  font-weight: 600;
  margin: 22px 0 12px;
  /* border-left: 4px solid #0d47a1; */

  font-size: 18px;
  line-height: 1.4;
}

.html-content-main h4 {
  color: #333333;
  font-weight: 600;
  margin: 20px 0 10px;
  /*  border-left: 4px solid #0d47a1;
          padding-left: 10px; */
  font-size: 18px;
  line-height: 1.4;
}

.html-content-main h5 {
  color: #333333;
  font-weight: 600;
  margin: 18px 0 10px;
  /* border-left: 4px solid #0d47a1;
          padding-left: 10px; */
  font-size: 18px;
  line-height: 1.4;
}

/* 🧾 Clean & Modern Table Design */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0px auto !important;
  background: #fff;
  /*    border-radius: 10px; */
  /*    padding: 10px; */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: block;
}

.html-content-main table {
  width: 100% !important;
  min-width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: #ffffff;
  text-align: left;
  border: 1.1px solid #3f4c62 !important;
  table-layout: auto;
}

.html-content-main table p {
  margin: 4px 0;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
}

/* 🧱 Table Header - Fixed selector issue */
.html-content-main table thead th {
  background-color: #cfddf6 !important;
  font-weight: 600;
  /*   color: #11111133 !important; */
  padding: 12px 14px;
  border: 1px solid #cfddf6;
  font-size: 15px !important;
  text-align: left;
  vertical-align: middle;
  border: 1px solid #b2c8eb;
}

/* 🧱 Table Body */
.html-content-main table tbody td {
  padding: 10px 14px;
  border: 1px solid #e3e8f0;
  color: #333;
  font-size: 15px;
  vertical-align: middle;
  white-space: normal;
  word-break: break-word;
  min-width: 120px;
  text-align: left;
  line-height: 1.5;
}

.html-content-main table thead tr {
  background-color: #cfddf6 !important;
}

.html-content-main table tbody tr:nth-child(even) {
  background-color: #f8faff;
}

.html-content-main table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.html-content-main table tbody tr:hover {
  background-color: #e8f0fe;
  transition: 0.2s ease;
}

/* 🖼 Media Elements */
.html-content-main img,
.html-content-main iframe,
.html-content-main video {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px;
  display: block;
  margin: 18px auto;
}

.html-content-main figure {
  margin: 20px 0;
  text-align: center;
}

.html-content-main figcaption {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  font-style: italic;
  line-height: 1.5;
}

/* 📋 Lists */
.html-content-main ul,
.html-content-main ol {
  margin: 15px 0 15px 25px;
  padding-left: 15px;
}

.html-content-main li {
  margin-bottom: 10px;
  line-height: 1.5;
  text-align: left;
  font-size: 15px;
}

.html-content-main ul li {
  list-style-type: disc;
}

.html-content-main ol li {
  list-style-type: decimal;
}

/* Blockquotes */
.html-content-main blockquote {
  border-left: 4px solid #1a73e8;
  background: #f8faff;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #444;
  font-size: 15px;
  line-height: 1.5;
}

.html-content-main blockquote p {
  margin: 0;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
}

/* Code and pre elements */
.html-content-main code {
  background: #f1f3f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.5;
}

.html-content-main pre {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 15px 0;
  border-left: 4px solid #1a73e8;
  font-size: 14px;
  line-height: 1.5;
}

/* Horizontal Rule */
.html-content-main hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #1a73e8, transparent);
  margin: 30px 0;
}

/* 📱 Responsive Tables */
@media (max-width: 768px) {
  .html-content-main {
    font-size: 15px;
    overflow-x: hidden;
    line-height: 1.5;
  }

  .html-content-main p {
    text-align: justify;
    /*      text-justify: auto; */
    font-size: 15px;
    line-height: 1.5;
  }

  /* Mobile heading sizes */
  .html-content-main h1,
  .html-content-main h2,
  .html-content-main h3,
  .html-content-main h4,
  .html-content-main h5 {
    font-size: 18px;
    line-height: 1.3;
  }

  .html-content-main h1 {
    margin: 25px 0 12px;
  }

  .html-content-main h2 {
    margin: 22px 0 12px;
  }

  .html-content-main h3 {
    margin: 20px 0 10px;
  }

  .html-content-main h4 {
    margin: 18px 0 10px;
  }

  .html-content-main h5 {
    margin: 16px 0 10px;
  }
}

@media (max-width: 576px) {
  .toc-sidebar {
    padding: 0px !important;
  }
  .card a {
    gap: 10px;
    height: auto !important;
  }

  /* Smaller heading sizes for mobile */
  .html-content-main h1,
  .html-content-main h2,
  .html-content-main h3,
  .html-content-main h4,
  .html-content-main h5 {
    font-size: 18px;
    line-height: 1.3;
  }
}

/* Extra small devices */
@media (max-width: 400px) {
  .html-content-main table {
    min-width: 400px;
  }
  .toc-sidebar {
    padding: 0px !important;
  }
  .card a {
    gap: 10px;
    height: auto !important;
  }
  .html-content-main table thead th,
  .html-content-main table tbody td {
    padding: 5px 5px;
    font-size: 12px;
    line-height: 1.5;
  }

  .summary-text {
    font-size: 12px;
    line-height: 1.5;
  }

  /* Extra small heading sizes */
  .html-content-main h1,
  .html-content-main h2,
  .html-content-main h3,
  .html-content-main h4,
  .html-content-main h5 {
    font-size: 18px;
    line-height: 1.3;
  }
}

/* Large screens - improve readability */
@media (min-width: 1200px) {
  .html-content-main {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
    line-height: 1.5;
  }

  .html-content-main p {
    margin: 7px 0;
    text-align: justify;
    font-size: 15px;
    line-height: 1.5;
  }

  .html-content-main table thead th {
    font-size: 15px;
    padding: 10px 12px;
    line-height: 1.5;
    border: 1px solid #b2c8eb;
  }

  .html-content-main table tbody td {
    font-size: 14px;
    padding: 6px 9px;
    line-height: 1.5;
  }

  /* Larger heading sizes for desktop */
  .html-content-main h1,
  .html-content-main h2,
  .html-content-main h3,
  .html-content-main h4,
  .html-content-main h5 {
    font-size: 18px;
    line-height: 1.3;
  }
}

/* Print styles */
@media print {
  .html-content-main {
    text-align: justify;
    font-size: 15px;
    line-height: 1.5;
  }

  .html-content-main p {
    text-align: justify;
    font-size: 15px;
    line-height: 1.5;
  }
}

@media (max-width: 768px) {
  /* Scroll wrapper */
  .table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block;
    margin: 10px 0;
  }

  /* Table behavior */
  .html-content-main table {
    min-width: 100% !important;
    border-collapse: collapse;
  }

  /* Cell wrapping */
  .html-content-main table th,
  .html-content-main table td {
    white-space: nowrap;
    /* Prevent forced wrap */
    padding: 8px;
    font-size: 14px;
  }
}
#seo_and_ad {
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Show only 4 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* When expanded */
#seo_and_ad.expanded {
  -webkit-line-clamp: unset;
}

/* Button styling */
#showMoreBtn {
  display: flex;
  align-items: center;
  justify-content: center;

  margin: 10px auto;
  padding: 6px 14px;
  cursor: pointer;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  color: #333;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
}
