:root {
    --primary: #1a5276;
    --primary-light: #2980b9;
    --secondary: #27ae60;
    --accent: #e67e22;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #666;
    --light: #f8f9fa;
    --border: #dee2e6;
    --white: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 8px;
    --max-width: 1200px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); background: var(--light); line-height: 1.6; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

/* Header */
.site-header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; max-width: var(--max-width); margin: 0 auto; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; }
.logo:hover { color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav > a { color: var(--text); font-weight: 500; padding: 0.5rem 0; border-bottom: 2px solid transparent; transition: all 0.2s; }
.main-nav > a:hover, .main-nav > a.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 0.25rem; }
.nav-dropdown-content { display: none; position: absolute; top: 100%; left: 0; background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); min-width: 200px; padding: 0.5rem 0; z-index: 200; }
.nav-dropdown:hover .nav-dropdown-content { display: block; }
.nav-dropdown-content a { display: block; padding: 0.5rem 1rem; color: var(--text); font-size: 0.9rem; }
.nav-dropdown-content a:hover { background: var(--light); color: var(--primary); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: var(--white); padding: 4rem 0; text-align: center; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto 2rem; }
.hero .btn { background: var(--secondary); color: white; padding: 0.75rem 2rem; border-radius: 50px; font-weight: 600; display: inline-block; }
.hero .btn:hover { background: #219a52; color: white; }

/* Sections */
.section { padding: 3rem 0; }
.section-title { text-align: center; font-size: 1.75rem; margin-bottom: 0.5rem; color: var(--dark); }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 2rem; }

/* Tools Grid */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.tool-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); transition: all 0.2s; border: 1px solid transparent; display: block; color: var(--text); }
.tool-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); border-color: var(--primary-light); color: var(--text); }
.tool-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.tool-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--dark); }
.tool-card p { font-size: 0.875rem; color: var(--text-light); }

/* Article List */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.article-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.2s; display: block; color: var(--text); }
.article-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); color: var(--text); }
.article-image { width: 100%; height: 160px; object-fit: cover; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: white; }
.article-card-content { padding: 1.25rem; }
.article-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--dark); }
.article-card p { font-size: 0.875rem; color: var(--text-light); }

/* Breadcrumb */
.breadcrumb { padding: 1rem 0; font-size: 0.875rem; color: var(--text-light); }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 0.5rem; }

/* Tool Detail */
.tool-detail { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); margin-bottom: 2rem; }
.tool-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.tool-icon { width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: white; flex-shrink: 0; }
.tool-info h1 { font-size: 1.5rem; color: var(--dark); }
.tool-category { display: inline-block; background: var(--light); color: var(--primary); padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.8rem; margin-top: 0.5rem; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: var(--dark); font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; font-family: inherit; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.btn-primary { background: var(--primary); color: white; padding: 0.75rem 1.5rem; border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s; display: inline-block; }
.btn-primary:hover { background: var(--primary-light); color: white; }

/* Callout */
.callout { background: #eaf2f8; border-left: 4px solid var(--primary); padding: 1rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.callout h4 { margin-bottom: 0.5rem; color: var(--primary); }

/* Related Articles */
.related-articles { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-top: 2rem; }
.related-articles h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--dark); }
.related-list { display: flex; flex-direction: column; gap: 0.75rem; }
.related-item a { color: var(--primary); font-weight: 500; display: flex; align-items: center; gap: 0.5rem; }
.related-item a::before { content: "→"; color: var(--secondary); }

/* Article Detail */
.article-detail { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); }
.article-detail h1 { font-size: 1.75rem; margin-bottom: 0.5rem; color: var(--dark); line-height: 1.3; }
.article-meta { color: var(--text-light); font-size: 0.875rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.article-detail h2 { font-size: 1.3rem; margin: 2rem 0 1rem; color: var(--dark); padding-top: 1rem; border-top: 1px solid var(--border); }
.article-detail h3 { font-size: 1.1rem; margin: 1.5rem 0 0.75rem; color: var(--dark); }
.article-detail p { margin-bottom: 1rem; color: var(--text); line-height: 1.8; }
.article-detail ul, .article-detail ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-detail li { margin-bottom: 0.5rem; line-height: 1.7; }
.article-image-placeholder { background: linear-gradient(135deg, #1a5276 0%, #5dade2 100%); border-radius: var(--radius); padding: 3rem 2rem; text-align: center; color: white; margin: 1.5rem 0; font-size: 1rem; }
.article-image-placeholder span { display: block; font-size: 2rem; margin-bottom: 0.5rem; opacity: 0.8; }
.internal-link { color: var(--secondary); font-weight: 500; border-bottom: 1px dashed var(--secondary); }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: var(--white); margin-bottom: 1rem; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; font-size: 0.85rem; }

/* Page Headers */
.page-header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: white; padding: 3rem 0; text-align: center; }
.page-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.page-header p { opacity: 0.9; font-size: 1.05rem; }

/* Content Pages (About, Contact, Legal) */
.content-page { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); margin: 2rem 0; }
.content-page h2 { font-size: 1.3rem; margin: 2rem 0 1rem; color: var(--dark); border-top: 1px solid var(--border); padding-top: 1rem; }
.content-page h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.content-page p { margin-bottom: 1rem; line-height: 1.8; color: var(--text); }
.content-page ul { margin: 1rem 0 1.5rem 1.5rem; }
.content-page li { margin-bottom: 0.5rem; line-height: 1.7; }

/* Feature Box */
.feature-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.feature-item { background: var(--light); padding: 1.5rem; border-radius: var(--radius); text-align: center; }
.feature-item .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--dark); }

/* Contact Form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-form { background: var(--light); padding: 1.5rem; border-radius: var(--radius); }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info-item .icon { font-size: 1.5rem; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; margin: 2rem 0; }
.stat-item { background: var(--white); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { color: var(--text-light); font-size: 0.875rem; margin-top: 0.25rem; }

/* Legal pages */
.legal-content h2 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; color: var(--dark); }
.legal-content p { margin-bottom: 1rem; line-height: 1.8; }

/* Mobile */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; gap: 0.5rem; }
    .main-nav { display: none; flex-direction: column; width: 100%; padding: 1rem 0; gap: 0.5rem; }
    .main-nav.open { display: flex; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 1.75rem; }
    .hero { padding: 2.5rem 0; }
    .tool-header { flex-direction: column; text-align: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .article-detail { padding: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
