/* Magazine Style Sheet */
:root {
    --bg-color: #f4f7f6;
    --text-color: #1a1a1a;
    --meta-color: #555;
    --card-border-color: #e9ecef;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
    --footer-bg: #e9ecef;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Page Header */
.page-header {
    padding: 3em 2em;
    max-width: 1800px;
    margin: 0 auto;
    text-align: center;
}

.page-header h1 {
    font-family: "Georgia", serif;
    font-size: 3.5rem;
    margin: 0 0 0.25em;
    color: #222;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--meta-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Main Article Grid Container */
.magazine-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-auto-rows: auto;
    grid-gap: 2.5em;
    max-width: 1800px;
    margin: 0 auto;
    padding: 1em 2em 3em;
}

/* Article Card Styling */
.article-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 300ms ease-in-out;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.article-card .image-link {
    display: block;
    overflow: hidden;
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover img {
    transform: scale(1.05);
}

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

.article-card-content h3 {
    font-family: "Georgia", serif;
    font-size: 1.3rem;
    margin: 0 0 0.75em;
    line-height: 1.4;
}

.article-card-content h3 a {
    text-decoration: none;
    color: inherit;
}

.article-card-content .summary {
    font-size: 0.95rem;
    color: var(--meta-color);
    flex-grow: 1;
    margin-bottom: 1rem;
}

.article-card-content .date {
    font-size: 0.85rem;
    color: #888;
    align-self: flex-start;
}


/* Footer Styles (from previous implementation) */
.load-more-container { text-align: center; padding: 2em 0 4em; }
#load-more-btn { font-size: 1rem; font-weight: 600; color: #fff; background-color: #212529; border: none; padding: 0.8em 2.5em; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; }
#load-more-btn:hover { background-color: #007bff; transform: translateY(-3px); box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); }
.main-footer { background-color: var(--footer-bg); color: var(--meta-color); padding: 3em 2em 1em; }
.main-footer .footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2em; }
.main-footer .footer-section h3 { font-family: "Georgia", serif; color: var(--text-color); margin-bottom: 1em; }
.main-footer .footer-section.about .logo-text { font-family: "Georgia", serif; font-size: 1.5rem; font-weight: bold; }
.main-footer .footer-section p { line-height: 1.7; }
.main-footer .footer-section.links ul { list-style: none; padding: 0; margin: 0; }
.main-footer .footer-section.links ul li a { text-decoration: none; color: var(--meta-color); transition: color 0.3s; display: block; padding: 0.4em 0; }
.main-footer .footer-section.links ul li a:hover { color: #007bff; }
.main-footer .footer-bottom { text-align: center; margin-top: 3em; padding-top: 1.5em; border-top: 1px solid #dcdcdc; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 768px) {
    .main-footer .footer-content { text-align: center; }
}
