:root {
    --primary-color: #0b9a52; /* Green for main actions */
    --primary-hover: #087a41;
    --secondary-color: #004b87; /* Dark blue for footer and accents */
    --bg-color: #f4f6f9; /* Light background like the screenshot */
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --alert-bg: #e8f5e9;
    --alert-border: #4caf50;
    --alert-text: #2e7d32;
    --danger: #dc3545;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.2s;
}

.logo-img:hover {
    opacity: 0.9;
}

.main-nav {
    display: flex;
    gap: 20px;
}

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

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

/* Main Content */
.main-content {
    padding: 40px 15px;
}

.content-box {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 40px;
}

.page-title {
    font-size: 2rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Calculator Section */
.calculator-container {
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.calc-form {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #444;
}

.text-danger {
    color: var(--danger);
}

.form-group input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 154, 82, 0.1);
}

.submit-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 6px rgba(11, 154, 82, 0.2);
    width: 100%;
    max-width: 300px;
}

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

.btn-submit:active {
    transform: translateY(1px);
}

.info-alert {
    background-color: var(--alert-bg);
    border-left: 4px solid var(--alert-border);
    color: var(--alert-text);
    padding: 15px;
    border-radius: 0 4px 4px 0;
    font-size: 0.9rem;
}

/* Results Section */
.results-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed var(--border-color);
}

.results-title {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.result-card {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

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

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.highlight-card {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.highlight-card .result-label {
    color: rgba(255, 255, 255, 0.8);
}

.highlight-card .result-value {
    color: var(--white);
    font-size: 1.8rem;
}

/* Info Section - SEO & Readability Optimized */
.info-section {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 40px;
    color: #4a5568; /* Softer text color for long reading */
    font-size: 1.05rem;
    line-height: 1.8;
}

.info-section h2 {
    color: var(--secondary-color);
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.info-section h3 {
    color: var(--text-color);
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.info-section h4 {
    color: var(--text-color);
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 600;
}

.info-section strong {
    color: #2d3748;
    font-weight: 600;
}

.section-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 50px 0;
}

.info-section p {
    margin-bottom: 20px;
}

.custom-list {
    margin-left: 25px;
    margin-bottom: 25px;
}

.custom-list li {
    margin-bottom: 12px;
    padding-left: 5px;
}

.stats-boxes {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    flex: 1;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* FAQ */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--white);
}

.faq-item summary {
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: #444;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-content {
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
}

/* Footer Redesign */
.footer {
    margin-top: 60px;
    font-family: 'Inter', sans-serif;
}

.footer-newsletter {
    background-color: #0b4e96; /* Deep blue from screenshot */
    padding: 50px 15px;
    color: #ffffff;
}

.footer-newsletter-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.newsletter-text {
    flex: 1;
    min-width: 300px;
}

.newsletter-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.newsletter-text h3 svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.newsletter-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.newsletter-form-wrapper {
    flex: 1;
    min-width: 350px;
}

.subscribe-form {
    display: flex;
    background: #ffffff;
    border-radius: 30px;
    padding: 6px;
    margin-bottom: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.subscribe-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 0.95rem;
    color: #333;
    outline: none;
    border-radius: 30px 0 0 30px;
}

.subscribe-form button {
    background-color: #f39c12; /* Yellow-orange button */
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.subscribe-form button:hover {
    background-color: #e67e22;
}

.subscribe-form button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.privacy-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 15px;
}

.privacy-note svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.footer-bottom-nav {
    background-color: #0d1b2a; /* Dark navy */
    padding: 40px 15px 30px 15px;
}

.footer-links-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links-row a {
    color: #a0aec0;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links-row a:hover {
    color: #ffffff;
}

.footer-copyright {
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
}

/* Box Layouts & Grids */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.feature-card h3 {
    margin-top: 0 !important;
    color: var(--primary-color);
    font-size: 1.25rem !important;
    margin-bottom: 15px;
}

.feature-card p {
    margin-bottom: 0 !important;
    font-size: 1rem;
    color: var(--text-muted);
}

.animated-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Example Box Layout */
.example-box {
    display: flex;
    flex-wrap: wrap;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin: 30px 0 20px 0;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.example-content {
    flex: 1 1 300px;
    padding: 30px;
    background-color: var(--white);
}

.example-explanation {
    flex: 1 1 300px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f1f5f9;
}

.example-explanation p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.example-explanation p:last-child {
    margin-bottom: 0;
}

.highlight-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #a5d6a7;
    border-left: 5px solid var(--primary-color);
    margin-bottom: 40px;
}

.highlight-box h3 {
    color: var(--alert-text) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-boxes {
        flex-direction: column;
    }
    
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    
    .content-box {
        padding: 20px;
    }
}
