body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
  color: #222;
}

/* Main Layout */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}
@media (max-width: 768px) {
  .page-layout {
    padding: unset;
    grid-template-columns: 1fr;

  }
}
/* Article Card */
.article-container {
  background: #ffffff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Article Title */
.article-container h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 15px;
}

/* Article Meta */
.article-meta {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 25px;
}

/* Featured Image */
.featured-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 30px;
}

/* TOC as Accordion */
.toc-box {
  border-radius: 14px;
  border: 1px solid #e4e7eb;
  background: #fff;
  padding: 5px;
}

/* Top line */
.toc-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #0c5e81, #1fa5df);
}

/* Summary (clickable header) */
/* Summary */
.toc-box summary {
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: #27ae60;
  padding: 12px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  transition: background 0.25s ease;
}

/* Hover */
.toc-box summary:hover {
  background: #eef7fb;
}

/* Remove default marker */
.toc-box summary::marker {
  display: none;
}

/* NEW ARROW (chevron style) */
.toc-box summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #0c5e81;
  border-bottom: 2px solid #0c5e81;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-left: 10px;
}

/* Rotate when open */
.toc-box[open] summary::after {
  transform: rotate(-135deg);
}

/* List */
.toc-box ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}



.toc-box a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f8fafc;
  margin-bottom: 6px;
  text-decoration: none;
  color: #333;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle slide + lift */
.toc-box a:hover {
  background: #b6dec7;
  color: #000;
  font-weight: 600;
  transform: translateX(6px);
}

/* Typography */
.article-container p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333;
}

.article-container h2 {
  margin-top: 40px;
  font-size: 1.6rem;
}

.article-container h3 {
  margin-top: 30px;
  font-size: 1.25rem;
}
.article-container li {
 margin: 0 0 0 15px;
 border-radius: 5px;

}
/* Sidebar */
.sidebar-wrapper {
  position: sticky;
  top: 20px;
  height: fit-content;
}

/* Sidebar Cards */
.sidebar-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* Related Links */
.related-links a {
  display: block;
  text-decoration: none;
  color: #0056b3;
  margin-bottom: 12px;
}

.related-links a:hover {
  text-decoration: underline;
}

/* Ad Slot */
.ad-slot {
  border: 1px dashed #cccccc;
  border-radius: 8px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999999;
}

/* FAQ Box */
/* FAQ Box */
.faq-box {
  background: #f9fafb;
  padding: 25px;
  border-radius: 12px;
  border: solid #a0d6b8 2px; /* optional border */
  max-width: 1000px;
  font-family: Arial, sans-serif;
}
.faq-box h2{
  margin-top: unset;
  font-size: 1.6rem;
}
/* FAQ question styling */
.faq-box .faq-question {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 8px;
  background: #e0f3e6;
  margin-bottom: 8px;
  position: relative;
  transition: all 0.25s ease;
  list-style: none;
}

/* Hover effect: lift + colour */
.faq-box .faq-question:hover {
  background: #b6dec7;
  transform: translateX(4px) translateY(-1px);
}

/* Answer text */
.faq-box .faq-item p {
  margin: 8px 0 12px 16px; /* left margin for indent */
  padding: 10px 12px;
  font-size: 14px;
  color: #333;
  background: #f0f9f4; /* light greenish background */
  border-left: 3px solid #a0d6b8; /* subtle accent line */
  border-radius: 4px;
}

/* Arrow indicator */
.faq-box .faq-question::after {
  content: "▲"; 
  position: absolute;
  right: 12px;
  font-size: 14px;
  color: #555;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Rotate caret when open */
.faq-box details:not([open]) .faq-question::after {
  transform: rotate(180deg); 
}
.faq-box details[open] .faq-question::after {
  transform: rotate(0deg); 
}

 /* Professional Link Styling */
    .article-container a {
      color: #27ae60; /* Uses your existing variable */
      text-decoration: none;
      font-weight: 600;
      border-bottom: 1.5px solid #27ae60; /* Subtle underline */
      transition: all 0.3s ease-in-out;
    }

    .article-container a:hover {
      color: #4be68c; /* Slightly darker blue */
      border-bottom-color: #4be68c; /* Solidifies the underline */
      background-color: rgba(0, 123, 255, 0.05); /* Very faint highlight */
      border-radius: 2px;
    }

    /* Accessibility: Focus state for keyboard users */
    .article-container a:focus {
      outline: 2px dashed var(--primary-blue);
      outline-offset: 3px;
    }
    #ProductItemrecommend a:not(.cta-small):not(.btn-primary):not(.btn-outline) {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 51, 102, 0.2); /* Subtle blue underline */
    transition: var(--transition);
}

#ProductItemrecommend a:not(.cta-small):not(.btn-primary):not(.btn-outline):hover {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
    background-color: rgba(39, 174, 96, 0.05); /* Very light green highlight */
}