/* RESET & BASE */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.6; color: #1e293b; background: #f8fafc; }
/* LAYOUT */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.page-grid { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; }
@media (max-width: 1024px) { .page-grid { grid-template-columns: 1fr; } }
.main-content { min-width: 0; }
.sidebar { min-width: 0; }
/* HEADER / NAV */
.site-header { position: sticky; top: 0; z-index: 100; background: #ffffff; border-bottom: 2px solid #2563eb; box-shadow: 0 2px 8px rgba(0,0,0,0.08); height: 64px; display: flex; align-items: center; }
.header-container { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-weight: 800; color: #2563eb; font-size: 1.4rem; text-decoration: none; }
.nav-menu { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-item > a, .nav-item > button { background: none; border: none; font-size: 1rem; color: #1e293b; cursor: pointer; text-decoration: none; font-weight: 500; }
.nav-dropdown { position: absolute; top: 100%; left: 0; min-width: 280px; background: white; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); display: none; z-index: 200; }
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; padding: 1rem; }
.nav-dropdown a { padding: 0.5rem; display: block; text-decoration: none; color: #475569; font-size: 0.9rem; border-radius: 4px; }
.nav-dropdown a:hover { background: #eff6ff; color: #2563eb; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 0; }
.hamburger span { width: 24px; height: 3px; background: #1e293b; border-radius: 2px; }
@media (max-width: 768px) {
    .site-header { height: auto; padding: 1rem 0; }
    .nav-menu { display: none; width: 100%; position: absolute; top: 100%; left: 0; background: white; border-top: 1px solid #e2e8f0; padding: 1rem; box-shadow: 0 8px 16px rgba(0,0,0,0.1); flex-direction: column; }
    .nav-menu.open { display: flex; }
    .hamburger { display: flex; }
    .nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { position: static; box-shadow: none; display: grid; grid-template-columns: 1fr; border-left: 2px solid #e2e8f0; margin-left: 0.5rem; padding: 0.5rem; }
}
/* BREADCRUMB */
.breadcrumb { font-size: 0.85rem; color: #64748b; padding: 0.75rem 0; margin-bottom: 1.5rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumb li { display: inline; }
.breadcrumb a { color: #2563eb; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
/* ANSWER BOX */
.answer-box { background: #eff6ff; border-left: 4px solid #2563eb; border-radius: 8px; padding: 1.5rem 2rem; margin: 1.5rem 0; }
.answer-value { font-size: 2.5rem; font-weight: 800; color: #2563eb; line-height: 1.1; display: block; margin-bottom: 0.5rem; }
.answer-label { font-size: 1rem; color: #475569; }
/* TABLES */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; border: 1px solid #e2e8f0; margin: 1.5rem 0; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 400px; }
.data-table thead th { background: #2563eb; color: #ffffff; padding: 0.75rem 1rem; text-align: left; font-weight: 600; white-space: nowrap; }
.data-table tbody tr:nth-child(even) { background: #f8fafc; }
.data-table tbody tr:hover { background: #eff6ff; }
.data-table td { padding: 0.65rem 1rem; border-bottom: 1px solid #e2e8f0; color: #334155; }
.data-table td:first-child { font-weight: 600; color: #1e293b; }
@media (max-width: 640px) { .table-wrapper::after { content: "← Scroll to see more →"; display: block; text-align: center; font-size: 0.75rem; color: #94a3b8; padding: 0.4rem; background: #f1f5f9; } }
/* SVG VISUAL */
.chart-container { background: white; border-radius: 8px; border: 1px solid #e2e8f0; padding: 1.5rem; margin: 1.5rem 0; }
svg { max-width: 100%; height: auto; }
/* FAQ ACCORDION */
.faq-item { border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 0.75rem; overflow: hidden; background: white; }
.faq-item summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; color: #1e293b; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: #2563eb; }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { background: #eff6ff; color: #2563eb; border-bottom: 1px solid #e2e8f0; }
.faq-content { padding: 1rem 1.25rem; color: #475569; line-height: 1.7; }
/* SHARE BAR */
.share-bar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 1.5rem 0; padding: 1rem; background: #f1f5f9; border-radius: 8px; }
.share-label { font-weight: 600; color: #64748b; margin-right: 0.5rem; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; text-decoration: none; border: none; cursor: pointer; transition: transform 0.15s; background: #cbd5e1; color: white; }
.share-btn:hover { transform: scale(1.1); }
.share-twitter { background: #000; } .share-facebook { background: #1877f2; } .share-linkedin { background: #0077b5; } .share-reddit { background: #ff4500; } .share-whatsapp { background: #25d366; } .share-email { background: #64748b; } .share-bookmark { background: #f59e0b; }
/* CTA BUTTON */
.cta-button { display: inline-block; background: #2563eb; color: white; padding: 0.875rem 2rem; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 1.05rem; transition: background 0.2s; margin: 1.5rem 0; }
.cta-button:hover { background: #1d4ed8; }
/* SIDEBAR WIDGETS */
.sidebar-widget { background: white; border: 1px solid #e2e8f0; border-radius: 8px; padding: 1.25rem; margin-bottom: 1.5rem; }
.widget-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; margin-bottom: 1rem; }
/* RELATED CARDS GRID */
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { border: 1px solid #e2e8f0; border-radius: 8px; padding: 1rem; background: white; text-decoration: none; color: inherit; display: block; transition: all 0.2s; }
.related-card:hover { border-color: #2563eb; box-shadow: 0 2px 8px rgba(37,99,235,0.1); }
.related-card h4 { margin: 0 0 0.5rem 0; color: #2563eb; }
.related-card p { margin: 0; font-size: 0.9rem; color: #64748b; }
/* AD CONTAINERS */
.ad-container { min-height: 250px; margin: 1.5rem 0; display: block; overflow: hidden; }
/* AUTHOR BOX */
.author-box { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; background: white; border: 1px solid #e2e8f0; border-radius: 8px; margin: 2rem 0; }
.author-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: #cbd5e1; }
.author-info h4 { margin: 0 0 0.25rem 0; color: #1e293b; font-size: 1.05rem; }
.author-info p { margin: 0; font-size: 0.9rem; color: #64748b; }
/* FOOTER */
.site-footer-top { background: #1e293b; color: #e2e8f0; padding: 3rem 2rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col-heading { color: #f8fafc; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: #93c5fd; text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: white; text-decoration: underline; }
.footer-divider { background: #334155; height: 1px; margin: 0; border: none; }
.footer-bottom { background: #0f172a; color: #94a3b8; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; max-width: 1200px; margin: 0 auto; }
.footer-bottom a { color: #60a5fa; text-decoration: none; }
@media (max-width: 480px) { .footer-bottom { flex-direction: column; text-align: center; } }
/* HOMEPAGE SPECIFIC */
.hero { background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); color: white; padding: 4rem 2rem; text-align: center; margin-bottom: 3rem; }
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; color: white; line-height: 1.2; }
.hero p { font-size: 1.25rem; max-width: 700px; margin: 0 auto 2rem auto; opacity: 0.9; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.tool-card { background: white; border: 1px solid #e2e8f0; border-radius: 8px; padding: 1.5rem; text-decoration: none; color: inherit; transition: all 0.2s; display: flex; flex-direction: column; align-items: flex-start; text-align: left; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.tool-card:hover { transform: translateY(-5px); border-color: #2563eb; box-shadow: 0 12px 20px -5px rgba(37,99,235,0.15); }
.tool-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.tool-card h3 { margin: 0 0 0.5rem 0; color: #1e293b; font-size: 1.3rem; }
.tool-card p { margin: 0; font-size: 0.95rem; color: #64748b; line-height: 1.5; }
.section-title { text-align: center; margin-bottom: 2.5rem; font-size: 2.25rem; color: #0f172a; margin-top: 4rem; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 4rem; }

/* SKIP LINK */
.skip-link { position: absolute; left: -9999px; z-index: 999; }
.skip-link:focus { left: 1rem; top: 1rem; background: #2563eb; color: white; padding: 0.5rem 1rem; border-radius: 4px; outline: 2px solid white; }
/* TYPOGRAPHY */
h1 { font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: 0.5rem; }
@media (max-width: 640px) { h1 { font-size: 1.5rem; } }
h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 1rem; color: #0f172a; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 0.75rem; color: #1e293b; }
p { margin-bottom: 1rem; max-width: 68ch; }
strong { font-weight: 700; color: #1e293b; }
/* PRINT */
@media print {
    .site-header, .share-bar, .ad-container, .sidebar, .site-footer-top, .footer-bottom, .breadcrumb { display: none !important; }
    .page-grid { display: block; }
    .main-content { width: 100%; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #64748b; }
}