/* Basic Reset & Defaults */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif; /* Basic font */
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; color: #555; }
h3 { font-size: 1.5rem; color: #0056b3; } /* Example accent color */
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout Container */
.container {
    width: 90%;
    max-width: 1100px; /* Max width for content */
    margin: 0 auto; /* Center the container */
    padding: 0 15px; /* Padding inside container */
}

/* Utility Classes */
.section-padding {
    padding: 60px 0; /* Vertical padding for sections */
}

.bg-light {
    background-color: #f4f4f4; /* Light background for contrast */
}

.bg-dark {
    background-color: #333;
    color: #fff;
}

.bg-dark h2, .bg-dark p {
    color: #fff;
}

.text-center {
    text-align: center;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 2rem auto; /* Center intro text */
    text-align: center;
    font-size: 1.1rem;
    color: #666;
}

/* Header */
.site-header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.site-header .container {
    display: flex; /* Use Flexbox for header layout */
    justify-content: space-between; /* Pushes logo and nav apart */
    align-items: center; /* Vertically align items */
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0; /* Override default p margin */
}

.site-header nav a {
    margin-left: 15px; /* Space between nav links */
}

/* Hero Section */
.hero {
    background-color: #0056b3; /* Example primary color */
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    color: #fff;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: #ffc107; /* Example accent color */
    color: #333;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e0a800;
    text-decoration: none;
}

.cta-button-light {
    background: #fff;
    color: #0056b3;
}

.cta-button-light:hover {
    background-color: #eee;
}

/* Flexbox Container Base */
.flex-container {
    display: flex; /* Enable Flexbox */
    gap: 30px; /* Space between flex items */
    flex-wrap: wrap; /* Allow items to wrap to the next line on smaller screens [6][8] */
}

/* Card Styling */
.card {
    background: #fff;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    /* Flex item sizing - adaptable [2][8] */
    flex: 1; /* Allows cards to grow equally */
    min-width: 280px; /* Minimum width before wrapping */
}

/* Specific Section Layouts using Flexbox */

/* How it Works Section */
.steps-container .step-card {
    text-align: center;
}

/* Features Section - Grid Layout */
.features-grid .feature-card {
    /* Adjust flex-basis for a grid-like feel */
    flex-basis: calc(33.333% - 20px); /* Aim for 3 columns, accounting for gap */
    /* min-width still applies for wrapping */
}

/* E-E-A-T Section */
.eeat-container .eeat-item {
    flex: 1; /* Equal width */
    min-width: 280px;
    padding: 15px;
}

.link-styled {
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

/* CTA Section */
.cta-section p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
    background: #333;
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

.site-footer .container {
    /* No flex needed here for simple centering */
}

.site-footer p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.site-footer a {
    color: #fff; /* Make footer links white */
}

/* Responsive Adjustments using Media Queries */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .flex-container {
        flex-direction: column; /* Stack items vertically on smaller screens [8] */
        gap: 20px; /* Adjust gap for vertical stacking */
    }

    .features-grid .feature-card {
        /* Override basis for stacking */
        flex-basis: 100%;
    }

    .site-header .container {
        flex-direction: column; /* Stack logo and nav */
        gap: 10px;
    }

    .site-header nav {
        text-align: center;
    }

     .site-header nav a {
        margin: 0 8px; /* Adjust spacing */
    }
}

@media (max-width: 480px) {
     h1 { font-size: 1.8rem; }
     .hero p { font-size: 1rem; }
     .cta-button { padding: 10px 20px; font-size: 1rem; }
}

