/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ===== Variables ===== */
:root {
  --primary: #1a2744;
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --accent-dark: #1d4ed8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #1a2744;
  --text: #1f2937;
  --text-light: #6b7280;
  --border: #e2e8f0;
  --success: #059669;
  --warning: #d97706;
  --gold: #f59e0b;
  --radius: 10px;
  --radius-sm: 6px;
  --max-width: 1140px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
}

/* ===== Base ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Layout ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.article-width { max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* ===== Typography ===== */
h1, h2, h3, h4 { line-height: 1.3; color: var(--primary); font-weight: 700; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.9rem); margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin: 2rem 0 0.75rem; }
h4 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }
strong { font-weight: 600; }

/* ===== Header/Nav ===== */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; max-width: var(--max-width); margin: 0 auto; flex-wrap: wrap; gap: 8px; }
.logo { font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.logo a { color: var(--primary); }
.nav-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.nav-links a { font-size: 0.85rem; color: var(--text); padding: 4px 8px; border-radius: 4px; }
.nav-links a:hover { background: var(--bg-alt); color: var(--accent); text-decoration: none; }
.lang-flag { font-size: 1rem; }

/* ===== Hero ===== */
.hero { padding: 3rem 0 2rem; background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%); }
.hero h1 { margin-bottom: 0.75rem; }
.hero-meta { color: var(--text-light); font-size: 0.875rem; margin-bottom: 1.5rem; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 4px; }
.hero img { border-radius: var(--radius); box-shadow: var(--shadow-lg); margin: 1.5rem 0; }

/* ===== Quick Answer ===== */
.quick-answer { background: var(--accent-light); border-left: 4px solid var(--accent); padding: 1.25rem 1.5rem; border-radius: var(--radius-sm); margin: 1.5rem 0; }
.quick-answer h2 { border: none; margin: 0 0 0.75rem; font-size: 1.15rem; padding: 0; }
.quick-answer ul { margin-bottom: 0; }
.quick-answer li { margin-bottom: 0.4rem; }

/* ===== CTA Block ===== */
.cta-block { background: linear-gradient(135deg, var(--primary) 0%, #2d3d6b 100%); color: #fff; padding: 2rem; border-radius: var(--radius); margin: 2rem 0; text-align: center; }
.cta-block h3 { color: #fff; margin-top: 0; }
.cta-block p { color: rgba(255,255,255,0.9); }
.cta-btn { display: inline-block; background: var(--accent); color: #fff; padding: 0.75rem 2rem; border-radius: 50px; font-weight: 600; font-size: 1rem; margin: 0.5rem; transition: background 0.2s, transform 0.15s; }
.cta-btn:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }
.cta-block-alt { background: var(--accent-light); border: 2px solid var(--accent); padding: 1.5rem; border-radius: var(--radius); margin: 2rem 0; text-align: center; }
.cta-block-alt h3 { color: var(--primary); }
.cta-block-alt .cta-btn { background: var(--accent); }

/* ===== Service Cards ===== */
.service-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; background: var(--bg); box-shadow: var(--shadow); }
.service-card.top-pick { border-color: var(--gold); border-width: 2px; position: relative; }
.service-card.top-pick::before { content: '🥇 Top Pick'; position: absolute; top: -12px; left: 1.5rem; background: var(--gold); color: #fff; padding: 2px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.service-card h3 { margin-top: 0.5rem; }
.service-card .service-link { font-size: 1.1rem; font-weight: 600; }
.badge { display: inline-block; background: var(--accent-light); color: var(--accent); padding: 2px 10px; border-radius: 20px; font-size: 0.8rem; margin: 0 4px 4px 0; }
.badge-best { background: #fef3c7; color: #92400e; }
.badge-fast { background: #d1fae5; color: #065f46; }

/* ===== Table ===== */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 500px; }
th { background: var(--primary); color: #fff; padding: 0.75rem 1rem; text-align: left; font-weight: 600; }
td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
tr:nth-child(even) { background: var(--bg-alt); }
.table-caption { font-size: 0.85rem; color: var(--text-light); margin-top: 0.5rem; text-align: center; }

/* ===== Checklist ===== */
.checklist { background: var(--bg-alt); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }
.checklist h3 { margin-top: 0; }
.checklist ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.checklist li { padding-left: 1.75rem; position: relative; margin-bottom: 0.6rem; }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: bold; }

/* ===== Tips ===== */
.tips { margin: 1.5rem 0; }
.tip { display: flex; gap: 1rem; margin-bottom: 1rem; padding: 1rem 1.25rem; background: var(--bg-alt); border-radius: var(--radius-sm); align-items: flex-start; }
.tip-num { background: var(--accent); color: #fff; min-width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-size: 0.9rem; }
.tip-content { flex: 1; }
.tip-content p { margin: 0; }

/* ===== Stats ===== */
.stats { background: var(--bg-dark); color: #fff; padding: 2rem; border-radius: var(--radius); margin: 2rem 0; }
.stats h3 { color: #fff; margin-top: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 700; color: #93c5fd; display: block; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; }
.stats-source { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 1rem; }

/* ===== FAQ ===== */
.faq-section { margin: 2rem 0; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.75rem; overflow: hidden; }
.faq-item summary { padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 2.5rem; color: var(--primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.25rem; color: var(--accent); }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-answer { padding: 0 1.25rem 1rem; }

/* ===== Brainstorming ===== */
.brainstorming { background: var(--bg-alt); border-left: 4px solid var(--accent); padding: 1.5rem; border-radius: var(--radius-sm); margin: 2rem 0; }
.brainstorming h3 { margin-top: 0; }
.brainstorming ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.brainstorming li { padding-left: 1.5rem; position: relative; margin-bottom: 0.75rem; }
.brainstorming li::before { content: '?'; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

/* ===== Insider Section ===== */
.insider-section { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0; }
.insider-section h3 { color: var(--warning); margin-top: 0; }

/* ===== Pinterest Pin ===== */
.pinterest-pin { position: relative; border-radius: var(--radius); overflow: hidden; margin: 2rem 0; max-width: 500px; }
.pinterest-pin img { width: 100%; }
.pin-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; background: rgba(26, 39, 68, 0.75); color: #fff; text-align: center; padding: 2rem; }
.pin-overlay h2 { color: #fff; border: none; font-size: clamp(1.4rem, 4vw, 2.2rem); margin: 0; padding: 0; }
.pin-overlay p { color: rgba(255,255,255,0.85); margin-top: 0.5rem; font-size: 0.9rem; }

/* ===== Section Divider ===== */
.section-divider { height: 1px; background: var(--border); margin: 2.5rem 0; border: none; }

/* ===== Article Meta ===== */
.article-meta { color: var(--text-light); font-size: 0.85rem; margin-bottom: 1.5rem; }
.article-meta span { margin-right: 12px; }

/* ===== Footer ===== */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.8); padding: 3rem 0 2rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.footer-grid h4 { color: #fff; margin-bottom: 0.75rem; font-size: 1rem; }
.footer-grid a { color: rgba(255,255,255,0.7); font-size: 0.875rem; display: block; margin-bottom: 0.4rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { text-align: center; padding: 1.5rem 20px 0; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ===== Disclosure ===== */
.disclosure { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.85rem; color: var(--text-light); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav { flex-direction: column; gap: 0.5rem; align-items: center; }
  .nav-links { justify-content: center; }
  .hero { padding: 2rem 0 1.5rem; }
  .cta-block { padding: 1.5rem; }
  .stat-grid { grid-template-columns: 1fr; }
  .tip { flex-direction: column; gap: 0.5rem; }
  table { font-size: 0.8rem; }
}

/* ===== RTL ===== */
[dir="rtl"] { text-align: right; }
[dir="rtl"] ul, [dir="rtl"] ol { padding-left: 0; padding-right: 1.5rem; }
[dir="rtl"] .quick-answer { border-left: none; border-right: 4px solid var(--accent); }
[dir="rtl"] .checklist li { padding-left: 0; padding-right: 1.75rem; }
[dir="rtl"] .checklist li::before { left: auto; right: 0; }
[dir="rtl"] .brainstorming { border-left: none; border-right: 4px solid var(--accent); }
[dir="rtl"] .brainstorming li { padding-left: 0; padding-right: 1.5rem; }
[dir="rtl"] .brainstorming li::before { left: auto; right: 0; }
[dir="rtl"] .faq-item summary { padding-right: 1.25rem; padding-left: 2.5rem; }
[dir="rtl"] .faq-item summary::after { right: auto; left: 1.25rem; }

/* ===== Print ===== */
@media print {
  .site-header, .nav, .cta-block, .site-footer, .pinterest-pin .pin-overlay { display: none; }
}

/* ===== Tailwind Preflight Override ===== */
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif !important; line-height: 1.65 !important; color: #1f2937 !important; background: #fff !important; margin: 0 !important; }
h1, h2, h3, h4 { font-weight: 700 !important; line-height: 1.3 !important; color: #1a2744 !important; margin: revert !important; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem) !important; margin-bottom: 1rem !important; }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.9rem) !important; margin: 2.5rem 0 1rem !important; padding-bottom: 0.5rem !important; border-bottom: 2px solid #e2e8f0 !important; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem) !important; margin: 2rem 0 0.75rem !important; }
h4 { font-size: 1.05rem !important; margin: 1.5rem 0 0.5rem !important; }
p { margin-bottom: 1rem !important; }
a { color: #2563eb !important; text-decoration: none !important; }
a:hover { text-decoration: underline !important; }
ul, ol { margin-bottom: 1rem !important; padding-left: 1.5rem !important; }
li { margin-bottom: 0.5rem !important; }
img { max-width: 100% !important; height: auto !important; display: block !important; }
strong { font-weight: 600 !important; }
table { border-collapse: collapse !important; }
th, td { padding: 0.75rem 1rem !important; }
details > summary { list-style: none !important; cursor: pointer !important; }
details > summary::-webkit-details-marker { display: none !important; }
