/* Anatole Inspired Clean Minimalist CSS for 梯子view */
:root {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-sidebar: #1e293b;
  --text-sidebar: #e2e8f0;
  --text-sidebar-muted: #94a3b8;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-primary: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-gold: #f59e0b;
  --border-color: #e2e8f0;
  --border-sidebar: #334155;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --sidebar-width: 280px;
  --content-max-width: 1180px;
  --article-max-width: 860px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Layout Architecture */
.app-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Left Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  color: var(--text-sidebar);
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
  border-right: 1px solid var(--border-sidebar);
}

.sidebar-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.sidebar-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid #38bdf8;
  background: #0f172a;
  padding: 8px;
}

.sidebar-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
}

.sidebar-tagline {
  font-size: 0.88rem;
  color: var(--text-sidebar-muted);
  line-height: 1.4;
}

.sidebar-nav {
  margin-bottom: 2rem;
}

.nav-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
  font-weight: 600;
}

.nav-list {
  list-style: none;
}

.nav-item {
  margin-bottom: 0.35rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  color: var(--text-sidebar);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.sidebar-promo {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e1b4b 100%);
  border: 1px solid #3b82f6;
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  margin-top: auto;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.sidebar-promo-badge {
  display: inline-block;
  background: #f59e0b;
  color: #000000;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.sidebar-promo h4 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.sidebar-promo p {
  font-size: 0.8rem;
  color: #bfdbfe;
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.sidebar-promo .btn-cta {
  display: block;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s;
}

.sidebar-promo .btn-cta:hover {
  background: #1d4ed8;
  color: #ffffff;
  text-decoration: none;
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.content-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs span.current {
  color: var(--text-primary);
  font-weight: 500;
}

/* Typography & Content */
h1.page-title {
  font-size: 2.2rem;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--card-shadow);
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.hero-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #e2e8f0;
  text-decoration: none;
}

/* Post and Article */
.article-header {
  margin-bottom: 2rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1e293b;
}

.article-body h2 {
  font-size: 1.55rem;
  margin: 2.25rem 0 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
}

.article-body h3 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.article-body th, .article-body td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.article-body th {
  background: #f1f5f9;
  font-weight: 600;
  color: var(--text-primary);
}

/* Transparent Recommendation Card */
.promo-card {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.promo-card-content h4 {
  font-size: 1.05rem;
  color: #166534;
  margin-bottom: 0.25rem;
}

.promo-card-content p {
  font-size: 0.88rem;
  color: #15803d;
  margin-bottom: 0;
  line-height: 1.4;
}

.promo-card .btn {
  white-space: nowrap;
}

/* Provider Ranking Cards */
.provider-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.provider-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.provider-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.provider-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
}

.rank-1 { background: #f59e0b; }
.rank-2 { background: #0284c7; }
.rank-3 { background: #7c3aed; }
.rank-4 { background: #059669; }

.provider-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.provider-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e11d48;
}

.provider-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.feature-tag {
  background: #f1f5f9;
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.provider-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.provider-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.coupon-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fffbeb;
  border: 1px dashed #fcd34d;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.coupon-code {
  font-weight: 700;
  color: #b45309;
  font-family: monospace;
}

.btn-copy {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.78rem;
}

.btn-copy:hover {
  background: #fde68a;
}

/* Post Cards in Lists */
.post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s;
}

.post-card:hover {
  transform: translateY(-2px);
}

.post-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.post-card h3 a {
  color: var(--text-primary);
}

.post-card h3 a:hover {
  color: var(--accent-primary);
}

.post-card-summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

/* FAQ Section - Fully Expanded by Default */
.faq-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 2rem;
}

.faq-status-pill {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-btn-group {
  display: flex;
  gap: 0.5rem;
}

.btn-faq-action {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-faq-action:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-faq-action.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.faq-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
}

.faq-question {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: #0f172a;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-badge-expanded {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  margin-left: 0.75rem;
}

.faq-answer {
  display: block !important; /* All FAQs are fully expanded! */
  padding: 1.25rem;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.75;
  background: #ffffff;
}

.faq-item.collapsed .faq-answer {
  display: none !important;
}

.faq-item.collapsed .faq-question {
  border-bottom: none;
}

.faq-item.collapsed .faq-badge-expanded {
  color: #64748b;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem 2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.footer-narrative {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-copy {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
}

/* Mobile Toggle, Overlay and Responsive */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 150;
  transition: opacity 0.25s ease;
}

.mobile-overlay.active {
  display: block;
}

body.sidebar-open {
  overflow: hidden;
}

.mobile-header {
  display: none;
  background: var(--bg-sidebar);
  color: #ffffff;
  padding: 0.85rem 1.15rem;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.mobile-brand:hover {
  color: #ffffff;
  text-decoration: none;
}

.mobile-menu-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-mobile-close {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: -1.75rem -1.75rem 1.25rem;
}

.mobile-close-title {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-close-sidebar {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-close-sidebar:hover {
  background: rgba(255, 255, 255, 0.25);
}

.mobile-table-hint {
  display: none;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

@media (max-width: 960px) {
  body {
    flex-direction: column;
  }
  .app-container {
    flex-direction: column;
  }
  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 290px;
    height: 100vh;
    z-index: 200;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar.open {
    display: flex;
    flex-direction: column;
  }
  .sidebar-mobile-close {
    display: flex;
  }
  .mobile-header {
    display: flex;
  }
  .content-container {
    padding: 1.75rem 1.15rem;
  }
  h1.page-title {
    font-size: 1.65rem;
  }
  .mobile-table-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .comparison-grid-table {
    min-width: 650px !important;
  }
  .comparison-table-wrapper {
    margin: 1rem -0.5rem !important;
    padding: 0 0.5rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

@media (max-width: 640px) {
  .content-container {
    padding: 1.25rem 0.85rem !important;
  }
  h1.page-title {
    font-size: 1.4rem !important;
    line-height: 1.35 !important;
  }
  .hero-box {
    padding: 1.25rem 1rem !important;
    margin-bottom: 1.5rem !important;
  }
  .hero-text {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }
  .hero-actions .btn {
    width: 100% !important;
    text-align: center !important;
    padding: 0.6rem 1rem !important;
  }
  
  /* Provider Card on Home */
  .provider-card {
    padding: 1.15rem 1rem !important;
  }
  .provider-card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
  }
  .provider-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  .provider-actions > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .provider-actions .btn {
    width: 100% !important;
    text-align: center !important;
  }
  .coupon-box {
    width: 100% !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
  }

  /* Top 4 Cards in Tutorial Articles */
  .top4-box {
    padding: 1.1rem 0.95rem !important;
  }
  .top4-box-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
  }
  .top4-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  .top4-footer > div:last-child {
    display: flex !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .top4-footer .btn-detail, .top4-footer .btn-register {
    flex: 1 !important;
    text-align: center !important;
    padding: 0.6rem 0.4rem !important;
    font-size: 0.85rem !important;
  }

  /* Footer & General Content on Mobile */
  .footer-content {
    padding: 1.5rem 1rem !important;
  }
  .footer-links {
    gap: 0.5rem 0.85rem !important;
    font-size: 0.82rem !important;
  }
  
  /* Contact page / TG cards */
  .tg-box {
    padding: 1.25rem 1rem !important;
  }
}

/* Enhancements for Sidebar Navigation and Grid Table */
.nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  color: #ffffff !important; /* All nav items are bright white */
  text-decoration: none !important;
  padding: 0.55rem 0.85rem !important;
  border-radius: 6px !important;
  font-size: 0.95rem !important;
  transition: all 0.2s ease !important;
}

.nav-link .nav-icon {
  font-size: 1.15rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
}

.nav-link .nav-text {
  color: #ffffff !important; /* Pure white text */
  font-weight: 600 !important;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.nav-link.active, .nav-link-home {
  color: #ffffff !important;
}

.nav-link.active .nav-text, .nav-link-home .nav-text {
  color: #ffffff !important;
}

/* Explicit Grid Table with clear cell borders and full frame fitting */
.comparison-table-wrapper {
  width: 100%;
  margin: 1.75rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-grid-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04) !important;
}

.comparison-grid-table th, .comparison-grid-table td {
  border: 1px solid #cbd5e1 !important;
  padding: 8px 8px !important;
  font-size: 0.84rem !important;
  vertical-align: middle !important;
  line-height: 1.35 !important;
  text-align: left;
}

.comparison-grid-table th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #94a3b8 !important;
  white-space: nowrap !important;
  padding: 9px 8px !important;
}

.comparison-grid-table td.col-center, .comparison-grid-table th.col-center {
  text-align: center !important;
}

.comparison-grid-table td.col-nowrap, .comparison-grid-table th.col-nowrap {
  white-space: nowrap !important;
}

.comparison-grid-table tr:nth-child(even) {
  background: #f8fafc !important;
}

.comparison-grid-table tr:hover {
  background: #f1f5f9 !important;
}

.comparison-grid-table .btn-detail {
  display: inline-block;
  background: #f1f5f9;
  color: #1e293b !important;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 3px 6px !important;
  font-size: 0.78rem !important;
  white-space: nowrap !important;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.15s ease;
}

.comparison-grid-table .btn-detail:hover {
  background: #e2e8f0;
}

.comparison-grid-table .btn-register {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  border-radius: 4px;
  padding: 3px 7px !important;
  font-size: 0.78rem !important;
  white-space: nowrap !important;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
  transition: all 0.15s ease;
}

.comparison-grid-table .btn-register:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.single-article, .article-content {
  max-width: var(--article-max-width);
}

/* 4 Distinct Separated Airport Cards in Tutorial Articles */
.top4-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.75rem 0 2.25rem;
}

.top4-box {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.top4-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.top4-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #e2e8f0;
}

.top4-box-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.top4-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
}

.badge-rank-1 { background: #f59e0b; }
.badge-rank-2 { background: #0284c7; }
.badge-rank-3 { background: #7c3aed; }
.badge-rank-4 { background: #059669; }

.top4-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e11d48;
}

.top4-desc {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.top4-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(37,99,235,0.25);
  transition: background 0.2s;
}

.btn-register:hover {
  background: #1d4ed8;
  color: #ffffff !important;
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #1e293b !important;
  border: 1px solid #cbd5e1;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  text-decoration: none !important;
}

.btn-detail:hover {
  background: #e2e8f0;
}

/* ==========================================================================
   27-Airport Responsive Grid & Cards Layout
   ========================================================================== */
.airport-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.75rem 0 2.5rem 0;
}

.airport-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.airport-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  border-color: #3b82f6;
}

.airport-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

.airport-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.airport-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.airport-badge.badge-top1 {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.airport-badge.badge-top2 {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.airport-badge.badge-top3 {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}
.airport-badge.badge-top4 {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.airport-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.airport-price-tag {
  font-size: 0.92rem;
  font-weight: 700;
  color: #e11d48;
  background: #fff1f2;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #ffe4e6;
  white-space: nowrap;
}

.airport-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.airport-field {
  display: flex;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #334155;
}

.airport-field-label {
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 0.35rem;
}

.airport-field-val {
  color: #1e293b;
  word-break: break-word;
}

.airport-field-val code {
  background: #f1f5f9;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-weight: 700;
  color: #2563eb;
  font-size: 0.85rem;
}

.airport-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #f1f5f9;
}

.airport-card-footer .btn-detail {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155 !important;
  border: 1px solid #cbd5e1;
  text-decoration: none !important;
  font-weight: 600;
  transition: all 0.2s;
}

.airport-card-footer .btn-detail:hover {
  background: #e2e8f0;
  color: #0f172a !important;
}

.airport-card-footer .btn-register {
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  border-radius: 6px;
  background: #2563eb;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  transition: all 0.2s;
}

.airport-card-footer .btn-register:hover {
  background: #1d4ed8;
  color: #ffffff !important;
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
  .airport-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .airport-card-footer {
    justify-content: space-between;
  }
  .airport-card-footer a {
    flex: 1;
    text-align: center;
  }
}

