:root { --primary: #002395; --secondary: #ed2939; --accent: #ffd700; --dark: #1a237e; --light: #f5f5f5; --text: #333; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Georgia, serif; background: var(--light); color: var(--text); line-height: 1.7; }
.navbar { background: linear-gradient(135deg, var(--primary), var(--dark)); padding: 15px 0; box-shadow: 0 2px 10px rgba(0,35,149,0.2); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo { font-size: 1.5rem; font-weight: bold; color: white; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-links { list-style: none; display: flex; gap: 25px; }
.nav-links a { color: white; text-decoration: none; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.hero { background: linear-gradient(135deg, rgba(0,35,149,0.85), rgba(237,41,57,0.75)), url('https://images.unsplash.com/photo-1502602898657-3e91760cbb34?w=1200') center/cover; padding: 80px 20px; text-align: center; color: white; }
.hero h1 { font-size: 2.5rem; margin-bottom: 15px; }
.hero p { font-size: 1.2rem; opacity: 0.95; }
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.tool-card, .article-card { background: white; border-radius: 10px; padding: 25px; box-shadow: 0 4px 15px rgba(0,35,149,0.1); transition: transform 0.3s, box-shadow 0.3s; text-decoration: none; display: block; border-top: 4px solid var(--secondary); }
.tool-card:hover, .article-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,35,149,0.2); }
.tool-card h3 { color: var(--primary); margin-bottom: 10px; }
.tool-card p, .article-card p { color: #666; font-size: 0.95rem; }
.article-card h2 { font-size: 1.3rem; margin-bottom: 10px; }
.article-card h2 a { color: var(--primary); text-decoration: none; }
.content { max-width: 800px; margin: 0 auto; padding: 40px; background: white; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,35,149,0.1); }
.content h1 { color: var(--primary); font-size: 2rem; margin-bottom: 20px; border-bottom: 3px solid var(--secondary); padding-bottom: 15px; }
.content h2 { color: var(--dark); margin: 35px 0 15px; font-size: 1.4rem; }
.content img { max-width: 100%; border-radius: 8px; margin: 20px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.content p { margin-bottom: 18px; font-size: 1.05rem; }
.tool-page { max-width: 800px; margin: 0 auto; padding: 40px; background: white; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,35,149,0.1); text-align: center; }
.tool-page h1 { color: var(--primary); margin-bottom: 10px; }
.tool-buttons { margin: 30px 0; display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 12px 30px; border-radius: 8px; border: none; cursor: pointer; font-size: 1rem; text-decoration: none; display: inline-block; transition: all 0.3s; font-weight: bold; }
.btn-accent { background: var(--secondary); color: white; }
.btn-accent:hover { background: #c41e2c; }
.btn-secondary { background: var(--primary); color: white; }
.btn-secondary:hover { background: var(--dark); }
.result-box { background: #f8f8ff; border: 2px dashed var(--primary); border-radius: 8px; padding: 25px; min-height: 200px; text-align: left; white-space: pre-wrap; font-family: monospace; font-size: 1rem; margin-top: 20px; }
footer { background: var(--primary); color: white; text-align: center; padding: 30px 20px; margin-top: 60px; }
footer a { color: var(--accent); text-decoration: none; }
.related-content { background: #f8f8ff; padding: 20px; border-radius: 8px; margin-top: 30px; border-left: 4px solid var(--secondary); }
.related-content h3 { color: var(--primary); margin-bottom: 15px; }
.related-content ul { list-style: none; }
.related-content li { margin: 8px 0; }
.articles-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 25px; }
@media (max-width: 768px) { .nav-container { flex-direction: column; gap: 15px; } .hero h1 { font-size: 1.8rem; } .articles-list { grid-template-columns: 1fr; } }
