/* Portal Traffic — Modern Responsive Design System */
:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --secondary: #0f172a;
  --accent: #10b981;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --header-bg: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: var(--bg); color: var(--text); line-height: 1.7; font-size: 16px; }

/* Header & Nav */
header.site-header { background: var(--header-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.header-container { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--secondary); font-weight: 800; font-size: 1.25rem; }
.brand-badge { background: linear-gradient(135deg, #0284c7, #10b981); color: white; width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: color 0.15s; }
.site-nav a:hover, .site-nav a.active { color: var(--primary); }

/* Layout Containers */
.container { max-width: 1200px; margin: 0 auto; padding: 32px 20px; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }

/* Ad Containers (AdSense Compliant) */
.ad-slot-header { max-width: 970px; margin: 20px auto; min-height: 90px; text-align: center; background: #f1f5f9; border: 1px dashed #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 8px; }
.ad-slot-inline { margin: 32px 0; min-height: 250px; text-align: center; background: #f1f5f9; border: 1px dashed #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 12px; }
.ad-slot-sidebar { margin-bottom: 24px; min-height: 600px; text-align: center; background: #f1f5f9; border: 1px dashed #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 12px; }
.ad-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #94a3b8; margin-bottom: 6px; font-weight: 600; display: block; }

/* Article Typography */
.article-main { background: var(--card-bg); padding: 40px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
@media (max-width: 600px) { .article-main { padding: 24px 18px; } }
.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--primary); text-decoration: none; }
h1.article-title { font-size: 2.25rem; line-height: 1.25; font-weight: 800; color: var(--secondary); margin-bottom: 16px; letter-spacing: -0.02em; }
@media (max-width: 600px) { h1.article-title { font-size: 1.75rem; } }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 0.875rem; color: var(--text-muted); padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.meta-tag { background: #e0f2fe; color: #0369a1; padding: 4px 10px; border-radius: 20px; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; }

.article-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--secondary); margin: 36px 0 16px 0; border-bottom: 2px solid #f1f5f9; padding-bottom: 8px; }
.article-content h3 { font-size: 1.2rem; font-weight: 600; color: var(--secondary); margin: 24px 0 12px 0; }
.article-content p { margin-bottom: 20px; color: #334155; }
.article-content ul, .article-content ol { margin-bottom: 24px; padding-left: 24px; color: #334155; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote { border-left: 4px solid var(--primary); background: #f0f9ff; padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 24px 0; font-style: italic; color: #0c4a6e; }

/* Callout Boxes */
.callout-box { background: #f8fafc; border: 1px solid var(--border); border-left: 4px solid var(--accent); padding: 20px; border-radius: 8px; margin: 28px 0; }
.callout-title { font-weight: 700; font-size: 1rem; color: var(--secondary); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }

/* Tables */
table.data-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.95rem; }
table.data-table th, table.data-table td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; }
table.data-table th { background: #f1f5f9; font-weight: 700; color: var(--secondary); }
table.data-table tr:nth-child(even) { background: #f8fafc; }

/* FAQ Section */
.faq-section { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--border); }
.faq-item { margin-bottom: 20px; background: #f8fafc; padding: 18px; border-radius: 8px; border: 1px solid var(--border); }
.faq-question { font-weight: 700; color: var(--secondary); margin-bottom: 8px; font-size: 1.05rem; }
.faq-answer { color: #475569; font-size: 0.95rem; margin-bottom: 0; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card { background: var(--card-bg); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.sidebar-card h4 { font-size: 1.1rem; font-weight: 700; color: var(--secondary); margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.sidebar-list { list-style: none; }
.sidebar-list li { margin-bottom: 12px; }
.sidebar-list a { text-decoration: none; color: #334155; font-size: 0.9rem; font-weight: 500; transition: color 0.15s; display: block; line-height: 1.4; }
.sidebar-list a:hover { color: var(--primary); }

/* Homepage Grid */
.hero-section { text-align: center; padding: 48px 20px; background: linear-gradient(180deg, #e0f2fe 0%, #f8fafc 100%); border-radius: var(--radius); margin-bottom: 40px; border: 1px solid #bae6fd; }
.hero-title { font-size: 2.75rem; font-weight: 900; color: var(--secondary); margin-bottom: 16px; letter-spacing: -0.03em; }
@media (max-width: 600px) { .hero-title { font-size: 2rem; } }
.hero-desc { font-size: 1.15rem; color: #475569; max-width: 750px; margin: 0 auto 28px auto; }
.search-bar { max-width: 550px; margin: 0 auto; display: flex; gap: 8px; }
.search-input { flex: 1; padding: 14px 18px; border-radius: 8px; border: 1px solid #cbd5e1; font-size: 1rem; outline: none; }
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.card { background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s; display: flex; flex-direction: column; justify-content: space-between; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; }
.card-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; display: inline-block; }
.card-title { font-size: 1.2rem; font-weight: 700; color: var(--secondary); margin-bottom: 10px; line-height: 1.35; }
.card-title a { text-decoration: none; color: inherit; }
.card-title a:hover { color: var(--primary); }
.card-desc { font-size: 0.9rem; color: #64748b; margin-bottom: 16px; line-height: 1.5; flex-grow: 1; }
.card-footer { font-size: 0.8rem; color: #94a3b8; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f1f5f9; pt: 12px; }

/* Footer */
footer.site-footer { background: var(--secondary); color: #94a3b8; margin-top: 60px; padding: 50px 20px 24px 20px; font-size: 0.9rem; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid #334155; }
.footer-col h5 { color: white; font-size: 1rem; margin-bottom: 16px; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: white; }
.footer-bottom { max-width: 1200px; margin: 24px auto 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 0.85rem; }
