/* base body styles moved into main CSS below */

.page-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.site-footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand h3 {
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-brand p {
    max-width: 300px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links h4 {
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-links a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #38bdf8;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    border-top: 1px solid #1e293b;
    padding-top: 15px;
    color: #94a3b8;
}

/* --- PAGE LAYOUT CSS (transferred from index.html) --- */
:root {
    --primary-brand: #2563eb; /* Kept blue for trust in text/buttons */
    --primary-orange: #f97316; /* Light Orange for Returns */
    --primary-light: #eff6ff;
    --chart-invested: #cbd5e1; 
    --chart-returns: var(--primary-orange);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-card: #ffffff;
    --border-light: #e2e8f0;
    --page-bg: #f8fafc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background-color: var(--page-bg);
    color: var(--text-main);
    line-height: 1.6;
}

header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    text-align: center;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-brand);
    letter-spacing: -0.5px;
}

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

main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.hero-text {
    text-align: center;
    margin-bottom: 40px;
}

.hero-text h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.hero-text p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- SEO CONTENT STYLING --- */
.article-content {
    margin-top: 60px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.article-content h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-brand);
}

.article-content h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text-main);
    font-size: 16px;
}

.article-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-main);
}

.article-content li {
    margin-bottom: 10px;
}

.affiliate-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary-orange);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.affiliate-box h3 {
    margin-bottom: 10px;
    margin-top: 0;
    color: var(--text-main);
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 40px;
    border-top: 1px solid var(--border-light);
}

/* --- CALCULATOR CSS --- */
.calculator-container {
    background-color: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03), 0 4px 10px rgba(0,0,0,0.02);
    width: 100%;
    padding: 35px;
    border: 1px solid #f1f5f9;
}
.tabs { display: flex; gap: 25px; margin-bottom: 35px; border-bottom: 2px solid var(--border-light); padding-bottom: 5px; }
.tab { padding: 8px 4px; cursor: pointer; font-weight: 600; font-size: 16px; color: var(--text-muted); position: relative; transition: color 0.2s ease; }
.tab.active { color: var(--primary-brand); }
.tab.active::after { content: ''; position: absolute; bottom: -7px; left: 0; width: 100%; height: 3px; background-color: var(--primary-brand); border-radius: 3px 3px 0 0; }
.grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 768px) { .grid-layout { grid-template-columns: 1fr; } }
.input-group { margin-bottom: 30px; }
.input-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.input-label { color: var(--text-main); font-weight: 500; font-size: 14px; }
.input-box-wrapper { display: flex; align-items: center; border-bottom: 2px solid var(--border-light); padding-bottom: 4px; width: 130px; transition: border-color 0.2s; }
.input-box-wrapper:focus-within { border-bottom-color: var(--primary-brand); }
.input-prefix, .input-suffix { color: var(--text-muted); font-weight: 500; font-size: 14px; }
.number-input { border: none; background: transparent; color: var(--text-main); font-weight: 700; font-size: 16px; width: 100%; outline: none; text-align: right; padding: 0 5px; -moz-appearance: textfield; appearance: textfield; }
.number-input::-webkit-outer-spin-button, .number-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.range-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; background: var(--border-light); border-radius: 3px; outline: none; }
.range-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 4px; background: var(--primary-brand); cursor: pointer; box-shadow: 0 2px 5px rgba(37, 99, 235, 0.4); transition: transform 0.1s; }
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.results-list { margin-top: 35px; background: var(--primary-light); padding: 20px; border-radius: 8px; display: flex; flex-direction: column; gap: 12px; }
.result-item { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 14px; }
.result-value { color: var(--text-main); font-weight: 700; font-size: 15px; }
.total-highlight { border-top: 1px solid rgba(37, 99, 235, 0.2); padding-top: 12px; margin-top: 4px; color: var(--primary-brand); }
.total-highlight .result-value { color: var(--primary-brand); font-size: 18px; }
.chart-section { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.chart-legend { display: flex; justify-content: center; gap: 25px; margin-bottom: 25px; width: 100%; }
.legend-item { display: flex; align-items: center; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.legend-color { width: 12px; height: 12px; border-radius: 2px; margin-right: 8px; }
.color-invested { background-color: var(--chart-invested); }
.color-returns { background-color: var(--chart-returns); }
.canvas-container { position: relative; width: 240px; height: 240px; margin: 0 auto 30px; }
.btn-invest { background-color: var(--primary-brand); color: white; border: none; padding: 14px 24px; border-radius: 8px; font-weight: 600; font-size: 15px; cursor: pointer; transition: all 0.2s; width: 100%; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); }
.btn-invest:hover { background-color: #1d4ed8; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3); }
.btn-affiliate { background: var(--primary-orange); color: white; text-decoration: none; padding: 10px 20px; border-radius: 6px; display: inline-block; font-weight: 600; margin-top: 10px; transition: background 0.2s;}
.btn-affiliate:hover { background: #ea580c; }

.blog-section {
  max-width: 900px;
  margin: 60px auto;
}

.blog-section h2 {
  margin-bottom: 20px;
}

.blog-section ul {
  list-style: none;
  padding: 0;
}

.blog-section li {
  margin-bottom: 12px;
}

.blog-section a {
  text-decoration: none;
  color: #2563eb;
  font-weight: 500;
}

.blog-section a:hover {
  text-decoration: underline;
}