:root {
    --primary-color: #0A2A43;
    /* Dark Blue */
    --secondary-color: #1FBF75;
    /* Green */
    --background-color: #F5F7FA;
    /* Light Grey */
    --text-color: #333333;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links a {
    margin-left: 20px;
    color: var(--primary-color);
    font-weight: 500;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background-color: var(--white);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #1aa665;
}

/* Tool Cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.tool-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s;
    border: 1px solid var(--border-color);
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.tool-link {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

footer a {
    color: #ddd;
    margin: 0 10px;
    font-size: 0.9rem;
}

/* Forms & Tools */
.tool-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

/* PDF Preview Area (Hidden by default or shown) */
#pdf-preview {
    margin-top: 2rem;
    padding: 0;
    /* Let inline padding handle it */
    background: white;
}

/* --- Homepage New Sections --- */

/* Trust Strip */
.trust-strip {
    background-color: #eef2f7;
    /* Very light blue/grey */
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
}

.trust-item span {
    color: var(--secondary-color);
    margin-right: 5px;
}

/* SEO Content Section */
.seo-section {
    max-width: 800px;
    margin: 4rem auto;
    text-align: left;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
}

.seo-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.seo-section p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.8;
}

/* Internal Linking Grid */
.internal-links {
    margin: 4rem 0;
}

.internal-links h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.link-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.link-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.2s;
}

.link-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.faq-question {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.faq-answer {
    color: #666;
}

/* CTA Repeat */
.cta-repeat {
    text-align: center;
    padding: 4rem 0;
    background: #f0f8ff;
    border-radius: 8px;
    margin: 2rem 0;
}

.cta-repeat .small-text {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .btn-group {
        flex-direction: column;
    }
}

/* Print Styles */
/* Print Styles */
@media print {
    @page {
        margin: 0;
        size: auto;
    }

    /* Hide everything by default */
    body * {
        visibility: hidden;
    }

    body {
        margin: 0;
        padding: 0;
        background-color: white;
    }

    /* Hide header, footer, etc specifically if needed */
    header,
    footer,
    .tool-container,
    .hero,
    .trust-strip,
    .seo-section,
    .faq-section,
    .internal-links,
    .cta-repeat {
        display: none !important;
    }

    /* Show only the PDF preview */
    #pdf-preview,
    #pdf-preview * {
        visibility: visible;
    }

    #pdf-preview {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 20mm !important;
        /* Add padding here for better print layout */
        border: none;
        box-shadow: none;
    }

    /* Hide the download/print buttons area if it's inside pdf-preview or separate */
    #download-area {
        display: none !important;
    }
}