/*
  Project: Cataloguethisweek Blog
  Theme: Minimalist Clean
  Font: Inter
  Primary Color: #007BFF (Blue)
*/

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- Reset and Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #343A40;
    background-color: #FFFFFF;
    font-size: 16px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #212529;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem 0;
}

@media (min-width: 992px) {
    .main-layout {
        grid-template-columns: 3fr 1fr;
    }
}

/* --- Header --- */
.site-header {
    background-color: #FFFFFF;
    padding: 1rem 0;
    border-bottom: 1px solid #DEE2E6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #343A40;
}

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

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 500;
    color: #495057;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:hover {
    color: #007BFF;
    text-decoration: none;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007BFF;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}


/* --- Hero Section (Homepage) --- */
.hero {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background-color: #F8F9FA;
    border-radius: 8px;
    margin: 2rem 0;
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero p {
    max-width: 750px;
    margin: 0 auto;
    color: #6C757D;
    font-size: 1.1rem;
}

/* --- Blog Post Grid (Homepage) --- */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


.post-card {
    border: 1px solid #DEE2E6;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

.post-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.post-card-content p {
    color: #6C757D;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    display: inline-block;
    font-weight: 600;
    align-self: flex-start;
}

/* --- Sidebar --- */
.sidebar {
    padding: 1.5rem;
    background-color: #F8F9FA;
    border: 1px solid #DEE2E6;
    border-radius: 8px;
    height: fit-content;
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    border-bottom: 2px solid #DEE2E6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    margin-bottom: 0.75rem;
}

.promo-text {
    line-height: 1.5;
    color: #495057;
    text-align: center;
    padding: 1rem;
    background-color: #E9ECEF;
    border-radius: 4px;
}

/* --- Article Page --- */
.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #DEE2E6;
    padding-bottom: 1rem;
}

.article-meta {
    font-size: 0.9rem;
    color: #6C757D;
    margin-top: 0.5rem;
}

.article-content {
    font-size: 1.1rem;
}

.article-content h2 {
    margin-top: 2.5rem;
}

.article-content h3 {
    margin-top: 1.75rem;
}

.cta-section {
    background-color: #e9f2ff;
    border-left: 5px solid #007BFF;
    padding: 1.5rem;
    margin: 2.5rem 0;
    border-radius: 4px;
}
.cta-section p {
    margin: 0;
}

/* --- Footer --- */
.site-footer {
    background-color: #343A40;
    color: #adb5bd;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 3rem;
}
.site-footer a {
    color: #FFFFFF;
}
.site-footer a:hover {
    color: #DEE2E6;
}

/* --- Simple Page Layout --- */
.simple-page-content {
    padding: 2rem 0;
    min-height: 60vh;
}

.simple-page-content h1 {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.contact-info p {
    font-size: 1.1rem;
}
