/* General Styling & Variables */
:root {
    --primary-color: #005A9C;
    --secondary-color: #00A4E4;
    --background-color: #f4f7f6;
    --card-background: #ffffff;
    --text-color: #333;
    --heading-color: #1a202c;
    --border-color: #e2e8f0;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3 {
    color: var(--heading-color);
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Header & Footer */
.site-header, .site-footer {
    padding: 20px 0;
    background: var(--card-background);
    border-bottom: 1px solid var(--border-color);
}

.site-footer {
    border-bottom: none;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    font-size: 0.9em;
}

.site-header .container, .site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
}

.site-nav a, .footer-nav a {
    margin-left: 20px;
    font-weight: 600;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #eaf2f8;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}

/* Tool Categories */
.tool-category {
    padding: 50px 0;
}

.tool-category h2 {
    font-size: 2em;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.tool-category p {
    max-width: 800px;
    margin-bottom: 30px;
}

/* Tool Grid & Cards */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.tool-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block; /* Makes the whole card a clickable link area */
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.tool-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.tool-card p {
    margin-bottom: 0;
    font-size: 0.95em;
    color: #4a5568;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2em;
    }
    .site-header .container, .site-footer .container {
        flex-direction: column;
        gap: 15px;
    }
}

.site-title a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    height: 55px; /* Increased from 40px for better balance */
    width: auto;
}

.logo-text {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
}

.article-card {
    display: flex;
    flex-direction: column;
}

.article-card p {
    flex-grow: 1; /* Allows the text to take up space */
}

.read-more {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    align-self: flex-start; /* Aligns the link to the left */
}