:root {
    --primary: #0F172A;
    --primary-light: #1E3A8A;
    --accent: #059669;
    --accent-hover: #047857;
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-main: #334155;
    --text-heading: #0F172A;
    --border-color: #E2E8F0;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Common Header */
header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

nav.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    flex: 1;
    width: 100%;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
}

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

/* Typography */
h1 {
    font-size: 2.25rem;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
    font-weight: 800;
}

h2 {
    font-size: 1.75rem;
    color: var(--text-heading);
    margin: 2rem 0 1rem;
    font-weight: 700;
}

h3 {
    font-size: 1.25rem;
    color: var(--text-heading);
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

p.lead {
    font-size: 1.15rem;
    color: #475569;
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1rem;
}

/* Calculator Widget Card */
.calculator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .calculator-card {
        grid-template-columns: 1fr;
    }
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-heading);
}

input, select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.calc-outputs {
    background: #F1F5F9;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.output-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #E2E8F0;
}

.output-row:last-child {
    border-bottom: none;
}

.output-label {
    font-weight: 500;
    color: #475569;
}

.output-value {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

/* FAQ Section */
.faq-section {
    margin: 3rem 0;
}

details {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
}

summary {
    font-weight: 600;
    color: var(--text-heading);
    outline: none;
}

details p {
    margin-top: 0.75rem;
    margin-bottom: 0;
    color: #475569;
}

/* Common Footer */
footer {
    background-color: var(--primary);
    color: #94A3B8;
    padding: 3rem 2rem 1.5rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid #1E293B;
    text-align: center;
    font-size: 0.85rem;
}
/* Content & FAQ Sections */
.info-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    margin-bottom: 2.5rem;
}

.info-section ul {
    margin: 0.75rem 0 1.25rem 1.5rem;
}

.info-section li {
    margin-bottom: 0.5rem;
}

.faq-section {
    margin: 2rem 0 0;
}

.faq-item {
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
}

.faq-item:last-child {
    padding-bottom: 0;
}

.faq-item h3 {
    margin: 0 0 0.4rem;
    font-size: 1.08rem;
}

.faq-item p {
    margin: 0;
    color: #475569;
}

.formula-box {
    background: #F8FAFC;
    border-left: 4px solid var(--accent);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
}

.formula-box h2 {
    margin-top: 0;
    font-size: 1.35rem;
}

.formula-box code {
    background: #E2E8F0;
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.92rem;
}

.guide-point {
    padding: 0.75rem 0;
    border-bottom: 1px solid #F1F5F9;
}

.guide-point:last-of-type {
    border-bottom: none;
}

.guide-point h3 {
    margin: 0.25rem 0 0.45rem;
    font-size: 1.15rem;
    color: var(--primary);
}
