/* =============== Base Reset =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.7;
    background-color: #f8fafc;
    color: #222;
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

header, footer {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2rem;
    color: #1a2a44;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2a5885;
}

/* =============== Article Page =============== */
.article-page .article-image {
    text-align: center;
    margin-bottom: 20px;
}

.article-page .article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.article-page article {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    line-height: 1.8;
    font-size: 1.05em;
}

.article-page article p {
    margin-bottom: 15px;
}

/* =============== Catalog Page =============== */
.catalog-page .catalog {
    margin-top: 30px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
}

.article-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
}

.article-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background-color: #ddd;
}

.article-card h3 {
    font-size: 1.05rem;
    padding: 10px;
    text-align: center;
    color: #2a5885;
}

.article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* =============== Footer =============== */
footer {
    font-size: 0.9em;
    color: #888;
    margin-top: 40px;
}

/* =============== Responsive =============== */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    .article-card img {
        height: 140px;
    }

    h1 {
        font-size: 1.5rem;
    }
}
