/* =========================
   ARTICLE PAGE HEADER FIX
   (local override – does NOT affect categories)
========================= */
html {
  scroll-behavior: smooth;
}


header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  height: 80px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 60px;
}

nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav a {
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  position: relative;
  padding: 10px 0;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #0f766e;
  transition: 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile header (article pages only) */
@media (max-width: 768px) {
  header {
    padding: 0 20px;
    height: 70px;
  }

  .logo img {
    height: 48px;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    display: none;
    border-top: 1px solid #e5e7eb;
    padding: 15px 0;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 12px 0;
    font-size: 16px;
  }
}


/* =========================
   ARTICLE LAYOUT
========================= */

.content-wrapper {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/*.article-container {
  max-width: 800px;
  margin: auto;
  line-height: 1.7;
}*/

.article-container {
  max-width: 760px;
  margin: auto;
  line-height: 1.8;
  font-size: 18px;
}

.article-header h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 12px;
  word-wrap: break-word;
  overflow-wrap: break-word;
   }

@media (max-width: 768px) {
  .article-header h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
}

.article-header {
  margin-bottom: 20px;
}

.article-intro {
  font-size: 1.1rem;
  color: #555;
}

/* =========================
   ARTICLE TEXT
========================= */

.article-container p {
  line-height: 1.8;
  color: #475569;
  margin-bottom: 18px;
}

.article-container h2 {
  color: #0f766e;
  margin-top: 40px;
 margin-bottom: 12px;
  line-height: 1.3;
}


.article-container h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.article-container a {
  color: #0f766e;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 600;
}

.article-container a:hover {
  color: #0a5cff;
}



/* =========================
   ARTICLE BOXES
===========================*/

.budget-image-box,
.budget-rule-box {
  margin: 40px 0;
  padding: 20px;
  background: #f8fafc;
  border-left: 5px solid #0f766e;
  border-radius: 12px;
  text-align: center;
}

.budget-image-box img,
.budget-rule-box img {
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}



/* =========================
   ARTICLE PAGE FOOTER FIX
========================= */

footer {
  background: #020617;
  color: #94a3b8;
  padding: 50px 40px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

footer h4 {
  color: #e2e8f0;
  margin-bottom: 10px;
}

footer a {
  display: block;
  color: #94a3b8;
  margin-bottom: 8px;
  font-size: 14px;
}

footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #64748b;
   }


/* Universal article tables */
.income-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
}

/* Main table */
.income-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

/* Header row */
.income-table thead {
  background: #0f766e;
  color: #ffffff;
}

.income-table th {
  padding: 14px;
  text-align: left;
  font-weight: 600;
}

/* Body cells */
.income-table td {
  padding: 14px;
  border-bottom: 1px solid #e5e7eb;
}

/* Zebra striping */
.income-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

/* Hover highlight */
.income-table tbody tr:hover {
  background: #ecfeff;
}

/* Optional note under tables */
.table-note {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #475569;
  font-style: italic;
}


/* ===============================
   ARTICLE HEADER – LOGO SCALE FIX
================================ */

@media (min-width: 769px) {
  .logo img {
    height: 100px;
    max-height: 100px;
    object-fit: contain;
  }
}


/* ------FAQ-------*/
.faq-section {
  margin-top: 40px;
}

.faq-section h2 {
  margin-bottom: 20px;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}

.faq-question {
  width: 100%;
  background: #f9fafb;
  border: none;
  padding: 15px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #eef2f7;
}

.faq-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 15px;
}

.faq-answer p {
  padding: 10px 0;
  margin: 0;
}


.article-hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0 30px 0;
}

.content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 6px;
}


.author-box {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  padding: 30px;
  margin: 50px 0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.author-box h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #111;
}

.author-box p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}


.toc {
  background: #f7f9fc;
  border-left: 4px solid #0a5cff;
  padding: 20px;
  margin: 25px 0;
  border-radius: 6px;
}

.toc summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 18px;
  margin-bottom: 10px;
  list-style: none;
  display: flex;
  align-items: center;
}

.toc ul {
  margin-top: 10px;
  padding-left: 20px;
}

.toc li {
  margin-bottom: 8px;
}

/* Remove default arrow */
.toc summary::-webkit-details-marker {
  display: none;
}

/* Custom arrow */
.toc summary::before {
  content: "▶";
  font-size: 14px;
  margin-right: 8px;
  transition: transform 0.25s ease;
}

/* Rotate arrow when open */
.toc[open] summary::before {
  transform: rotate(90deg);
}

.article-container h2,
.article-container h3,
.article-container h4,
.article-container h5 {
  scroll-margin-top: 100px;
}

.article-container a {
  color: #2563eb;
  text-decoration: underline;
}

.article-container a:hover {
  color: #1d4ed8;
}



.related-posts{
margin-top:40px;
padding:20px;
background:#f8fafc;
border-radius:8px;
}

.related-posts h2{
margin-bottom:15px;
font-size:22px;
}

.related-list{
list-style:none;
padding:0;
margin:0;
}

.related-list li{
margin-bottom:10px;
}

.related-list a{
display:block;
padding:12px 14px;
background:white;
border-radius:6px;
text-decoration:none;
color:#1e293b;
font-weight:500;
border:1px solid #e2e8f0;
transition:all 0.2s ease;
}

.related-list a:hover{
background:#2563eb;
color:white;
border-color:#2563eb;
transform:translateY(-2px);
   }

.key-takeaways{
background:#f8fafc;
border-left:5px solid #0f766e;
padding:20px;
margin:25px 0;
border-radius:6px;
}

.key-takeaways h2{
margin-top:0;
}
