/* Newspaper-style layout for Introduction page */

.intro {
    overflow-x: hidden;
    max-width: 100%;
}

.newspaper-header {
    border-bottom: 4px double #dc3545;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

.newspaper-masthead {
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #dc3545;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.newspaper-tagline {
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 1rem;
    margin-top: -0.5rem;
}

.newspaper-date {
    text-align: center;
    font-size: 0.875rem;
    color: #999;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.newspaper-column {
    column-count: 1;
    column-gap: 2rem;
    column-rule: 1px solid #dee2e6;
    max-width: 100%;
}

@media (min-width: 768px) {
    .newspaper-column {
        column-count: 2;
    }
}

@media (min-width: 992px) {
    .newspaper-column {
        column-count: 3;
    }
}

.newspaper-article {
    break-inside: avoid;
    margin-bottom: 2rem;
    page-break-inside: avoid;
    max-width: 100%;
}

.newspaper-article h2 {
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.newspaper-article h3 {
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.newspaper-article h4 {
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.newspaper-lead {
    font-weight: bold;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.newspaper-article p {
    text-align: justify;
    line-height: 1.8;
    hyphens: auto;
    margin-bottom: 1rem;
}

.newspaper-byline {
    font-style: italic;
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.newspaper-dropcap::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 3rem;
    padding-right: 0.5rem;
    font-weight: bold;
    color: #dc3545;
    font-family: Georgia, serif;
}

.newspaper-sidebar {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    padding: 1.5rem;
    margin-bottom: 2rem;
    break-inside: avoid;
    max-width: 100%;
    box-sizing: border-box;
}

.newspaper-sidebar h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #dc3545;
    text-transform: uppercase;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 0.5rem;
}

.newspaper-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border: 1px solid #dee2e6;
    box-sizing: border-box;
}

.newspaper-caption {
    font-size: 0.875rem;
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
}

.newspaper-ad {
    border: 3px solid #dc3545;
    padding: 1.5rem;
    text-align: center;
    background-color: #fff3cd;
    margin: 2rem 0;
    break-inside: avoid;
    max-width: 100%;
    box-sizing: border-box;
}

.newspaper-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #dc3545, transparent);
    margin: 2rem 0;
}

/* Notice carousel - subtle inline integration */
.newspaper-notices {
    margin-bottom: 2rem;
    break-inside: avoid;
    max-width: 100%;
}

.newspaper-notices .card {
    border-left: 5px solid #dc3545;
}

/* Ensure all images and content stay within bounds */
.newspaper-article img,
.newspaper-sidebar img,
.newspaper-ad img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* Fix button overflow on small screens */
#chooseLocationPromptBtn {
    white-space: nowrap;
    font-size: 0.875rem;
}

@media (max-width: 576px) {
    #chooseLocationPromptBtn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .newspaper-date {
        flex-direction: column;
        align-items: center;
    }
}
