/* ============================================================
   SPA Page View System
   ============================================================ */
.app-viewport {
  position: relative;
}
.page-view {
  display: none;
  animation: pageFadeIn 0.35s ease;
}
.page-view.active {
  display: block;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Topic Page Layout
   ============================================================ */
.topic-page {
  background: var(--bg-primary);
  min-height: calc(100vh - 68px);
  padding-top: 32px;
  padding-bottom: 64px;
}
.topic-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}
.topic-content {
  min-width: 0;
}

/* Breadcrumb */
.topic-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.topic-breadcrumb a {
  color: var(--aussie-blue);
  transition: color 0.2s ease;
  text-decoration: none;
}
.topic-breadcrumb a:hover {
  color: var(--navy);
  text-decoration: underline;
}
.topic-breadcrumb .sep {
  color: var(--border-strong);
}
.topic-breadcrumb .current {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Topic Hero Header */
.topic-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, var(--aussie-blue) 100%);
  border-radius: 20px;
  padding: 48px 48px 44px;
  color: #fff;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.topic-header::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(212,175,55,0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.topic-header::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: 60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.topic-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(212,175,55,0.2);
  color: var(--gold-light);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}
.topic-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.topic-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  position: relative;
  z-index: 1;
}
.topic-meta {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.topic-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.topic-meta-item strong {
  color: #fff;
  font-weight: 600;
}
.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}
.back-home-btn:hover {
  background: rgba(255,255,255,0.22);
  transform: translateX(-2px);
}

/* ============================================================
   Sidebar TOC (Table of Contents)
   ============================================================ */
.topic-toc {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.toc-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.toc-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--gold);
  border-radius: 2px;
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc-list > li > a {
  display: block;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.4;
  font-weight: 500;
  border-left: 2px solid transparent;
}
.toc-list > li > a:hover {
  color: var(--navy);
  background: var(--bg-soft);
}
.toc-list > li > a.active {
  color: var(--aussie-blue);
  background: rgba(29,111,184,0.06);
  border-left-color: var(--gold);
  font-weight: 600;
}
.toc-sub-list {
  list-style: none;
  margin: 2px 0 2px 14px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.toc-sub-list a {
  display: block;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text-muted);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.toc-sub-list a:hover {
  color: var(--text-secondary);
  background: var(--bg-soft);
}
.toc-sub-list a.active {
  color: var(--aussie-blue);
  font-weight: 600;
}

/* ============================================================
   Topic Content Typography
   ============================================================ */
.topic-section {
  margin-bottom: 40px;
  scroll-margin-top: 90px;
}
.topic-section h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}
.topic-section h2::before {
  content: '';
  width: 5px;
  height: 24px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 3px;
  flex-shrink: 0;
}
.topic-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topic-section h3::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.topic-section h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 10px;
}
.topic-section p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.topic-section ul,
.topic-section ol {
  margin: 10px 0 16px;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.topic-section ul li,
.topic-section ol li {
  margin-bottom: 6px;
}
.topic-section ul li::marker {
  color: var(--gold);
}
.topic-section strong {
  color: var(--navy);
  font-weight: 600;
}

/* Info Cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 16px 0 24px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition: all 0.2s ease;
}
.info-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 12px rgba(10,37,64,0.06);
  transform: translateY(-2px);
}
.info-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--aussie-blue), var(--aussie-blue-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.info-card h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.info-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
.info-card .stat-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 4px;
}
.info-card .stat-num .unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 2px;
}

/* Highlight / Alert Boxes */
.highlight-box {
  border-radius: 12px;
  padding: 18px 20px;
  margin: 16px 0 20px;
  font-size: 14px;
  line-height: 1.7;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.highlight-box .hb-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  margin-top: 2px;
}
.highlight-box .hb-content {
  flex: 1;
  min-width: 0;
}
.highlight-box .hb-title {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 14.5px;
}
.highlight-box.info {
  background: rgba(29,111,184,0.06);
  border: 1px solid rgba(29,111,184,0.15);
  color: var(--navy);
}
.highlight-box.info .hb-icon {
  background: var(--aussie-blue);
  color: #fff;
}
.highlight-box.warning {
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.25);
  color: var(--navy);
}
.highlight-box.warning .hb-icon {
  background: var(--gold);
  color: #fff;
}
.highlight-box.danger {
  background: rgba(220,53,69,0.06);
  border: 1px solid rgba(220,53,69,0.15);
  color: var(--navy);
}
.highlight-box.danger .hb-icon {
  background: #dc3545;
  color: #fff;
}
.highlight-box.success {
  background: rgba(31,138,91,0.06);
  border: 1px solid rgba(31,138,91,0.15);
  color: var(--navy);
}
.highlight-box.success .hb-icon {
  background: var(--success);
  color: #fff;
}

/* Comparison Tables */
.topic-table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.topic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: #fff;
}
.topic-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}
.topic-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.5;
}
.topic-table tr:last-child td {
  border-bottom: none;
}
.topic-table tr:nth-child(even) td {
  background: var(--bg-soft);
}
.topic-table td.emphasis {
  color: var(--navy);
  font-weight: 600;
}
.topic-table td.gold {
  color: var(--gold-dark);
  font-weight: 600;
}

/* Score badge */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 2px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
}

/* FAQ blocks in topic page */
.topic-faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.topic-faq-item:hover {
  border-color: var(--border-strong);
}
.topic-faq-q {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topic-faq-q .faq-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.topic-faq-item.open .topic-faq-q .faq-icon {
  background: var(--aussie-blue);
  color: #fff;
  transform: rotate(180deg);
}
.topic-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 18px;
}
.topic-faq-item.open .topic-faq-a {
  max-height: 500px;
  padding: 0 18px 16px;
}
.topic-faq-a p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}

/* Bottom: official link + related topics */
.topic-bottom-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.official-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 14px;
  padding: 24px 28px;
  color: #fff;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.official-link-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px;
}
.official-link-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.official-link-card .btn-official {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.official-link-card .btn-official:hover {
  background: var(--gold-light);
  transform: translateX(2px);
}

.related-topics h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

/* ---- Vocab Game Promo Card ---- */
.vocab-game-promo {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, var(--navy) 0%, #143A5C 100%);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.vocab-game-promo::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(232,168,56,0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.vocab-game-promo__icon {
  font-size: 36px;
  flex-shrink: 0;
}
.vocab-game-promo__content {
  flex: 1;
  min-width: 0;
}
.vocab-game-promo__content h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #fff;
}
.vocab-game-promo__content p {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.5;
}
.vocab-game-promo__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--gold);
  color: #5d3f00;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.vocab-game-promo__btn:hover {
  background: var(--gold-light);
  transform: translateX(2px);
}

@media (max-width: 640px) {
  .vocab-game-promo {
    flex-wrap: wrap;
    gap: 12px;
  }
  .vocab-game-promo__btn {
    width: 100%;
    justify-content: center;
  }
}
.related-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.related-topic-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.related-topic-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(212,175,55,0.12);
  transform: translateY(-2px);
}
.related-topic-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.related-topic-card h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 4px;
}
.related-topic-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   Nav Dropdown Menus
   ============================================================ */
.nav-links > li {
  position: relative;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(10,37,64,0.12);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.18s ease;
  z-index: 200;
}
.nav-links > li:hover .nav-dropdown,
.nav-links > li:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text-secondary);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  color: var(--navy);
  background: var(--bg-soft);
}
.nav-dropdown a .dd-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--aussie-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}
.nav-dropdown a:hover .dd-icon {
  background: rgba(29,111,184,0.1);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .topic-container {
    grid-template-columns: 1fr;
  }
  .topic-toc {
    display: none;
  }
  .topic-header {
    padding: 36px 28px;
  }
  .topic-title {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .topic-page {
    padding-top: 20px;
  }
  .topic-header {
    padding: 28px 20px;
    border-radius: 14px;
  }
  .topic-title {
    font-size: 22px;
  }
  .topic-subtitle {
    font-size: 13.5px;
  }
  .topic-section h2 {
    font-size: 20px;
  }
  .topic-section h3 {
    font-size: 16px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .topic-meta {
    gap: 14px;
  }
}

/* ============================================================
   SPA Page View Transitions
   ============================================================ */
#homeView.page-view {
  display: block;
}

#homeView.page-view.active {
  animation: fadeInPage 0.35s ease;
}

.topic-pages-root {
  animation: fadeInPage 0.35s ease;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Official link pill inside topic detail - "view guide" variant */
.official-link-pill[data-topic-link] {
  background: var(--gold-light);
  color: var(--gold-dark);
  border-color: transparent;
}
.official-link-pill[data-topic-link]:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ============================================================
   Contact Form & Info Page Extras
   ============================================================ */
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.contact-form .form-row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-form label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}
.contact-form label .required {
  color: var(--red);
  margin-left: 2px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--aussie-blue);
  box-shadow: 0 0 0 3px rgba(29, 111, 184, 0.12);
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234A5568' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: -8px 0 16px 0;
}
.contact-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
}

.contact-success {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  animation: fadeSlideUp 0.4s ease;
}
.contact-success .success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.contact-success h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px 0;
}
.contact-success p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}

/* Info page lists spacing */
.info-page .topic-content ul,
.info-page .topic-content ol {
  margin: 12px 0 12px 24px;
  line-height: 1.85;
  color: var(--text-secondary);
  font-size: 14.5px;
}
.info-page .topic-content li {
  margin-bottom: 8px;
}
.info-page .topic-content li strong {
  color: var(--text-primary);
}
.info-page .topic-content p {
  margin-bottom: 14px;
  line-height: 1.85;
}
.info-page .topic-content a {
  color: var(--aussie-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 111, 184, 0.3);
  transition: all 0.2s ease;
}
.info-page .topic-content a:hover {
  color: var(--aussie-blue-light);
  border-bottom-color: var(--aussie-blue-light);
}

/* ============================================================
   AdSense Placeholder
   ============================================================ */
.adsense-placeholder {
  min-height: 90px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #D9DCE3;
  border-radius: 8px;
  color: #A0A5B0;
  font-size: 12px;
  background: #F7F8FA;
  font-family: inherit;
  font-weight: 400;
  width: 100%;
}
.adsense-placeholder.flow {
  max-width: 300px;
  min-height: 250px;
  margin: 24px auto;
  float: none;
}
@media (max-width: 768px) {
  .adsense-placeholder.flow {
    max-width: 100%;
    min-height: 200px;
  }
}

/* ============================================================
   Blog / Latest Tips Section
   ============================================================ */
.blog-section {
  padding: 72px 0;
  background: #fff;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}
.blog-card-img {
  height: 140px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--aussie-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.blog-card-img::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.blog-card-img .icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  z-index: 1;
}
.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-card-category {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-card h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin: 0;
}
.blog-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.blog-card-read-more {
  color: var(--aussie-blue);
  font-weight: 500;
  font-size: 12.5px;
}

@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-section { padding: 48px 0; }
}

/* ===== Author & Source Card (E-E-A-T) ===== */
.topic-author-source-card {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  margin: 32px 0 16px;
  flex-wrap: wrap;
}
.tas-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.tas-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.tas-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tas-author-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary, #0f172a);
}
.tas-author-role {
  font-size: 13px;
  color: var(--text-secondary, #64748b);
}
.tas-right {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.tas-line {
  font-size: 13px;
  color: var(--text-secondary, #64748b);
  line-height: 1.5;
}
.tas-line strong {
  color: var(--text-primary, #475569);
  font-weight: 600;
}
.tas-sources {
  font-size: 12.5px;
}

.topic-editorial-note {
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  padding: 12px 0 24px;
  line-height: 1.6;
  border-bottom: 1px dashed var(--border-color, #e2e8f0);
  margin-bottom: 24px;
}
.topic-editorial-note a {
  color: var(--primary-color, #3b82f6);
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
}
.topic-editorial-note a:hover {
  text-decoration: underline;
}

/* ===== About page: author grid ===== */
.about-authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.about-author-card {
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.about-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 12px;
  font-size: 15px;
}
.about-author-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--text-primary, #0f172a);
}
.about-author-role {
  font-size: 13px;
  color: var(--primary-color, #3b82f6);
  font-weight: 500;
  margin: 0 0 10px;
}
.about-author-bio {
  font-size: 13.5px;
  color: var(--text-secondary, #64748b);
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

@media (max-width: 600px) {
  .topic-author-source-card { padding: 16px; gap: 14px; }
  .tas-avatar { width: 42px; height: 42px; font-size: 12px; }
  .about-authors-grid { grid-template-columns: 1fr; }
}

/* Experience disclaimer box */
.exp-disclaimer-box {
  padding: 16px 20px;
  background: var(--bg-soft, #f8fafc);
  border-left: 3px solid var(--primary-color, #3b82f6);
  border-radius: 8px;
  margin: 24px 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-secondary, #64748b);
}
.exp-disclaimer-box p { margin: 0 0 6px; }
.exp-disclaimer-box p:last-child { margin-bottom: 0; }
.exp-disclaimer-box strong { color: var(--text-primary, #334155); }

/* ============================================================
   Blog Module — List & Detail
   ============================================================ */

.blog-list-page, .blog-detail-page {
  padding: 60px 0 80px;
  background: var(--bg-page, #ffffff);
  min-height: 70vh;
}

.blog-hero {
  text-align: center;
  margin-bottom: 40px;
}
.blog-hero .section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--primary-gold, #d69e2e);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.blog-hero-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary, #1a202c);
  margin: 0 0 12px;
}
.blog-hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary, #64748b);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--bg-soft, #f8fafc);
  border-radius: 12px;
  border: 1px solid var(--border-color, #e2e8f0);
}
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color, #e2e8f0);
  background: #fff;
  color: var(--text-secondary, #64748b);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}
.blog-filter-btn:hover {
  border-color: var(--primary-color, #2c5282);
  color: var(--primary-color, #2c5282);
}
.blog-filter-btn.active {
  background: var(--primary-color, #2c5282);
  color: #fff;
  border-color: var(--primary-color, #2c5282);
}

.blog-search-wrap {
  flex-shrink: 0;
}
.blog-search-input {
  padding: 8px 14px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  font-size: 14px;
  width: 240px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.blog-search-input:focus {
  border-color: var(--primary-color, #2c5282);
}

.blog-grid-list {
  margin-bottom: 32px;
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card-list:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 54, 93, 0.12);
}

.blog-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary, #64748b);
  font-size: 15px;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.blog-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 6px;
  background: #fff;
  color: var(--text-secondary, #64748b);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.blog-page-btn:hover:not(.disabled):not(.active) {
  border-color: var(--primary-color, #2c5282);
  color: var(--primary-color, #2c5282);
}
.blog-page-btn.active {
  background: var(--primary-color, #2c5282);
  color: #fff;
  border-color: var(--primary-color, #2c5282);
}
.blog-page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Blog Detail ===== */
.breadcrumb {
  font-size: 13px;
  color: var(--text-secondary, #64748b);
  margin-bottom: 20px;
}
.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb a {
  color: var(--primary-color, #2c5282);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li.active { color: var(--text-primary, #1a202c); }

.blog-back-btn {
  display: inline-block;
  color: var(--primary-color, #2c5282);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 20px;
  font-weight: 500;
}
.blog-back-btn:hover { text-decoration: underline; }

.blog-article {
  max-width: 780px;
  margin: 0 auto;
}

.blog-article-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.blog-article-header .blog-card-category {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
}
.blog-article-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary, #1a202c);
  margin: 0 0 14px;
}
.blog-article-summary {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary, #64748b);
  margin: 0 0 20px;
}
.blog-article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary, #64748b);
  flex-wrap: wrap;
}
.blog-meta-dot { opacity: 0.5; }

.blog-article-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-primary, #1a202c);
}
.blog-h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary, #1a202c);
  margin: 40px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-gold, #d69e2e);
  line-height: 1.4;
}
.blog-h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary, #1a202c);
  margin: 28px 0 14px;
  line-height: 1.4;
}
.blog-p {
  margin: 0 0 16px;
}
.blog-ul {
  margin: 0 0 18px;
  padding-left: 24px;
}
.blog-ul li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.blog-article-body a {
  color: var(--primary-color, #2c5282);
  text-decoration: underline;
}
.blog-article-body a:hover {
  color: var(--primary-gold, #d69e2e);
}

.blog-callout {
  border-radius: 10px;
  padding: 18px 22px;
  margin: 24px 0;
  border-left: 4px solid;
  background: var(--bg-soft, #f8fafc);
  font-size: 15px;
  line-height: 1.7;
}
.blog-callout-info {
  border-left-color: var(--primary-color, #2c5282);
  background: #eef4fb;
}
.blog-callout-warning {
  border-left-color: #d69e2e;
  background: #fef9e9;
}
.blog-callout-success {
  border-left-color: #276749;
  background: #edf7f0;
}
.blog-callout-tip {
  border-left-color: #553c9a;
  background: #f5f1ff;
}
.blog-callout-body { color: var(--text-primary, #1a202c); }

.blog-code {
  background: #1a202c;
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.blog-faq-section {
  background: var(--bg-soft, #f8fafc);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
}
.blog-faq-item { margin-bottom: 18px; }
.blog-faq-item:last-child { margin-bottom: 0; }
.blog-faq-q {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, #1a202c);
  margin: 0 0 6px;
}
.blog-faq-a {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary, #64748b);
  margin: 0;
}

.blog-tags {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color, #e2e8f0);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.blog-tags-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #1a202c);
}
.blog-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 14px;
  font-size: 13px;
  color: var(--text-secondary, #64748b);
}

.blog-related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--border-color, #e2e8f0);
}
.blog-related-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #1a202c);
  margin: 0 0 24px;
  text-align: center;
}
.blog-grid-small .blog-card-img {
  height: 140px;
}
.blog-grid-small .blog-card h3 { font-size: 16px; }
.blog-grid-small .blog-card-excerpt { font-size: 13.5px; }

/* Topic page related articles */
.topic-related-articles {
  margin-top: 48px;
  padding: 32px;
  background: var(--bg-soft, #f8fafc);
  border-radius: 16px;
  border: 1px solid var(--border-color, #e2e8f0);
}
.topic-related-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #1a202c);
  margin: 0 0 6px;
}
.topic-related-desc {
  font-size: 14.5px;
  color: var(--text-secondary, #64748b);
  margin: 0 0 24px;
}
.topic-related-articles .blog-grid {
  gap: 20px;
}

@media (max-width: 768px) {
  .blog-hero-title { font-size: 28px; }
  .blog-article-title { font-size: 26px; }
  .blog-h2 { font-size: 22px; }
  .blog-h3 { font-size: 18px; }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .blog-search-input { width: 100%; }
  .blog-article-body { font-size: 15px; }
  .blog-faq-section { padding: 20px; }
}
