/* Basic Resets & Global Styles */
:root {
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #007bff; /* A nice blue for links/hovers */
    --background-color: #f8f8f8;
    --card-background: #fff;
    --border-color: #eee;
    --text-color: #333;
    --light-text-color: #999;
}

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

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

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    background-color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.site-title {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: white;
    text-decoration: none;
}

/* Homepage Main Content */
.homepage-main {
    padding-top: 50px;
    padding-bottom: 50px;
    text-align: center;
}

.tiles-section h2 {
    font-size: 2.2em;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.tile {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block; /* Make the whole tile clickable */
    color: var(--text-color); /* Ensure text color is inherited */
}

.tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none; /* Remove underline on hover for the tile itself */
}

.tile-content h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tile-content p {
    color: var(--secondary-color);
    font-size: 0.95em;
    margin-bottom: 0;
}

/* Blog List Page Main Content */
.blog-list-main {
    padding-top: 50px;
    padding-bottom: 50px;
}

.category-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
}

.blog-post-list {
    display: grid;
    gap: 30px;
}

.blog-post-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-post-card h3 {
    margin-top: 0;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.blog-post-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-post-card h3 a:hover {
    text-decoration: underline;
}

.post-meta {
    font-size: 0.9em;
    color: var(--light-text-color);
    margin-bottom: 15px;
}

.post-meta span {
    margin-right: 15px;
}

.post-excerpt {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Aligns button to the left */
}

.read-more-btn:hover {
    background-color: #0056b3;
    text-decoration: none;
}


/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

.site-footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }

    .site-title {
        margin-bottom: 15px;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li {
        margin: 0 0 10px 0;
    }

    .tiles-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }

    .tile {
        padding: 20px;
    }

    .blog-post-card {
        padding: 20px;
    }
}
