/* FindCoreInsight - Professional Financial Tools Theme */
:root {
  --primary: #0d4f8b;
  --primary-dark: #083a6a;
  --secondary: #1a8a6e;
  --accent: #f5a623;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', -apple-system, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Navigation */
.navbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 3px 0;
  border-radius: 2px;
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 12px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 72px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 680px;
  margin: 0 auto 28px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 32px;
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-stats .stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Sections */
.section {
  padding: 56px 24px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

/* Tool Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.25s;
  text-decoration: none;
  color: var(--text-dark);
  display: block;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  border-color: var(--primary);
}

.tool-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.tool-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Article Cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.25s;
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.article-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #e8f4f8, #d4e8ec);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.article-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

.article-meta {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Feature Boxes */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.feature-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}

.feature-box .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.feature-box h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Tool Page */
.tool-page {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin: 32px auto;
  max-width: 800px;
}

.tool-page h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.tool-page .tool-desc {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13,79,139,0.3);
}

.btn-secondary {
  background: var(--secondary);
}

.result-box {
  background: linear-gradient(135deg, #f0f9ff, #e8f4f8);
  border: 1px solid #b3d9f2;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

.result-box .result-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.result-box .result-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

/* Article Page */
.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px;
}

.article-page header {
  margin-bottom: 32px;
}

.article-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-page .article-info {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-page img {
  width: 100%;
  border-radius: var(--radius);
  margin: 20px 0;
}

.article-page .article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.article-page .article-body h2 {
  font-size: 1.4rem;
  margin: 28px 0 12px;
  color: var(--primary);
}

.article-page .article-body p {
  margin-bottom: 16px;
}

.article-page .article-body ul,
.article-page .article-body ol {
  margin: 12px 0 16px 24px;
}

.article-page .article-body li {
  margin-bottom: 6px;
}

.article-page .article-body strong {
  color: var(--primary-dark);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Content Box */
.content-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 800px;
  margin: 32px auto;
}

.content-box h2 {
  font-size: 1.4rem;
  margin: 24px 0 12px;
  color: var(--primary);
}

.content-box h2:first-child { margin-top: 0; }

.content-box p {
  margin-bottom: 14px;
  line-height: 1.7;
}

.content-box ul, .content-box ol {
  margin: 12px 0 16px 24px;
}

.content-box li { margin-bottom: 6px; }

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
  padding: 48px 24px 24px;
  margin-top: 48px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1280px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 24px; }
  .hero-stats .stat-number { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 16px; }
  .section { padding: 40px 16px; }
}

/* Breadcrumb */
.breadcrumb {
  padding: 12px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

/* Ad placeholder */
.ad-placeholder {
  background: #f0f0f0;
  border: 1px dashed #ccc;
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 0.85rem;
  border-radius: var(--radius);
  margin: 20px 0;
}

/* Sidebar */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
}

@media (max-width: 900px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
}

.sidebar-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.sidebar-box h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.sidebar-box ul {
  list-style: none;
}

.sidebar-box li {
  margin-bottom: 8px;
}

.sidebar-box a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.sidebar-box a:hover { color: var(--primary); }
