/* Reset and base */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #fff; /* Pure white background */
    padding-top: 80px; /* space for fixed header */
    min-height: 100vh;
    color: #292b32;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header styles omitted for brevity: keep your existing ones */

/* Page wrapper: centers content and enforces max-width with white bg */
.page-wrapper {
    max-width: 680px;  /* Control narrow max width */
    margin: 0 auto;
    padding: 0 15px 60px; /* horizontal padding + bottom space */
    background-color: #fff; /* white background behind everything */
}

/* Hero image container: same width as wrapper */
.hero-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 13px;
    box-shadow: 0 6px 20px rgb(184 51 46 / 0.15);
}

/* Image scales to container width, fixed height */
.hero-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.9);
    border-radius: 13px;
}

/* Article card overlaps hero by about 60px */
.article-card {
    position: relative;
    top: -60px;  
    background-color: #fff;
    box-shadow: 0 10px 30px rgb(23 26 44 / 0.18), 0 1.5px 7px rgba(30,47,77,0.11);
    border-radius: 12px;
    padding: 38px 36px 36px 36px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Title */
.article-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #23292e;
    line-height: 1.15;
}

/* Article content */
.article-content {
    font-size: 1.14rem;
    word-break: break-word;
}

/* Back button */
.back-button {
    background: #b8332e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    padding: 9px 22px;
    cursor: pointer;
    font-weight: 600;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}
.back-button:hover {
    background: #903027;
}

/* Responsive */
@media (max-width: 768px) {
    .page-wrapper {
        max-width: 95vw;
        padding: 0 10px 40px;
    }
    .hero-image {
        height: 180px;
    }
    .article-card {
        top: -40px;
        padding: 24px 20px 24px 20px;
    }
    .article-title {
        font-size: 1.6rem;
    }
    .article-content {
        font-size: 1rem;
    }
}

@media (max-width: 430px) {
    .hero-image {
        height: 140px;
    }
    .article-card {
        top: -30px;
        padding: 16px 14px 16px 14px;
    }
    .article-title {
        font-size: 1.35rem;
    }
    .back-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
