/* Basic Reset / Defaults */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* General Section Styling */
.content-section, .tool-section {
    background-color: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 960px; /* Max width for content readability */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.content-section h2, .tool-section h2 {
    color: #0056b3; /* Darker blue */
    margin-bottom: 1rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.content-section ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    border-bottom: 4px solid #007bff; /* Accent color */
}

header h1 {
    margin-bottom: 0.2rem;
}

main {
    flex-grow: 1; /* Ensures footer stays at bottom */
    padding: 2rem 1rem; /* Padding around main content */
}

/* Footer Styles */
footer {
    background: #333;
    color: #ccc;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: auto; /* Pushes footer to bottom */
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.footer-nav li {
    display: inline-block;
    margin: 0 10px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: #fff;
    text-decoration: underline;
}

.footer-buttons {
    margin-bottom: 1rem;
}

/* General Button Styles (Apply to footer and potentially tool buttons if needed) */
.btn {
    margin: 0.5rem;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0056b3;
    color: #fff;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #5a6268;
     color: #fff;
}

footer p {
    font-size: 0.9rem;
}

footer a {
    color: #00aaff; /* Link color in footer text */
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}


/* Form Styling (Contact Page) */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* General Button (used in contact form) */
#contactForm .btn-primary { /* More specific selector for form button */
     padding: 12px 25px;
}

/* SEO Text Styling */
.seo-text {
    margin-top: 2rem;
    font-size: 0.9em;
    color: #666;
    background-color: #f0f0f0;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 1.5rem 0.5rem;
    }
    .content-section, .tool-section {
        padding: 1.5rem;
    }
    header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
     .footer-nav li {
        display: block; /* Stack footer links */
        margin: 5px 0;
    }
    .footer-buttons .btn {
         display: block; /* Stack footer buttons */
         width: 80%;
         margin: 0.5rem auto; /* Center stacked buttons */
    }
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        font-size: 0.9rem;
    }
    .btn { /* Slightly smaller buttons on mobile */
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}