
/* Spectra Modern Clean CSS for JCTest */
:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --secondary: #475569;
  --accent: #2563eb;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-w: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}
a:hover {
  color: var(--primary-hover);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}

.brand-area .brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4px 8px 4px 14px;
  position: relative;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.88rem;
  width: 180px;
  color: var(--text-main);
}

.search-box button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 4px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
}

.search-dropdown {
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  max-height: 360px;
  overflow-y: auto;
  z-index: 1100;
  padding: 8px 0;
}

.search-dropdown.hidden {
  display: none;
}

.search-item {
  padding: 8px 16px;
  display: block;
  font-size: 0.88rem;
  border-bottom: 1px solid #f8fafc;
}

.search-item:hover {
  background: #f0fdf4;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-tg {
  background: #229ed9;
  color: #ffffff !important;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
}
.btn-tg:hover {
  background: #1e87bb;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
}
.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #f1f5f9;
  color: #334155 !important;
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: #e2e8f0;
}

.highlight-btn {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}
.highlight-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
}

.header-nav {
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.nav-container {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 4px;
  padding: 4px 20px;
}
.nav-container::-webkit-scrollbar {
  display: none;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #475569;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 48px 0 40px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid #bae6fd;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-keywords-desc {
  max-width: 860px;
  margin: 0 auto 24px;
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.8;
  background: #ffffff;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-meta-notice {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Promoted Top 4 Box */
.promoted-top4-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
}

.box-header {
  margin-bottom: 24px;
  text-align: center;
}

.box-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: #2563eb;
  background: #eff6ff;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 8px;
}

.box-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.box-desc {
  font-size: 0.95rem;
  color: #475569;
  max-width: 800px;
  margin: 0 auto;
}

.primary-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.primary-rec-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.primary-rec-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #0284c7;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.rank-1 .card-rank-badge { background: #dc2626; }
.rank-2 .card-rank-badge { background: #ea580c; }
.rank-3 .card-rank-badge { background: #d97706; }
.rank-4 .card-rank-badge { background: #0284c7; }

.card-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  padding-right: 70px;
}

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

.card-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #dc2626;
}

.card-suit, .card-feature {
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 10px;
  line-height: 1.5;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

.badge-coupon {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.card-actions .btn {
  width: 100%;
}

.box-footnote {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Sections & Grids */
.section-title-wrap {
  margin-bottom: 28px;
  text-align: center;
}
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}
.section-sub {
  font-size: 0.98rem;
  color: #64748b;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.article-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #93c5fd;
}

.card-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
}
.card-title a {
  color: #0f172a;
}
.card-title a:hover {
  color: var(--primary);
}

.card-excerpt {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

/* Table styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.data-table th, .data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.data-table tr:hover {
  background: #f8fafc;
}

/* FAQ Styles - Always Expanded */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 40px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.faq-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.faq-q-badge {
  background: #0284c7;
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.faq-answer {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
}

.faq-checklist {
  margin: 12px 0 12px 20px;
  color: #475569;
  font-size: 0.9rem;
}

.faq-checklist li {
  margin-bottom: 4px;
}

.faq-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px dashed #f1f5f9;
  padding-top: 10px;
  margin-top: 10px;
}

/* Article Single View */
.article-header {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.article-header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #0f172a;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1e293b;
  max-width: 860px;
  margin: 0 auto 50px;
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 36px 0 16px;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: #1e293b;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: #f0f9ff;
  padding: 14px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.98rem;
  color: #0369a1;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 50px 0 24px;
  border-top: 1px solid #1e293b;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-keyword-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 14px;
}

.footer-disclosure {
  font-size: 0.8rem;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 14px;
}

.footer-tg-link {
  color: #38bdf8;
  font-size: 0.88rem;
  font-weight: 600;
}
.footer-tg-link:hover {
  text-decoration: underline;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.88rem;
}
.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-wrap: wrap;
  }
  .brand-sub {
    display: none;
  }
  .search-box input {
    width: 120px;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .promoted-top4-box {
    padding: 20px 16px;
  }
}
