html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: #e8e8e8;
    color: #222;
}

/* Newspaper Container */
.newspaper {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.newspaper-title h1 a {
    color: inherit;
    text-decoration: none;
}

    .newspaper-title h1 a:hover,
    .newspaper-title h1 a:visited,
    .newspaper-title h1 a:active,
    .newspaper-title h1 a:focus {
        color: inherit;
        text-decoration: none;
    }

/* Masthead */
.newspaper-masthead {
    text-align: center;
    padding: 10px 0 15px;
    border-bottom: 3px double #000;
}

.masthead-top {
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.newspaper-title h1 {
    font-family: 'Old English Text MT', 'Blackletter', Georgia, serif;
    font-size: 3.5rem;
    font-weight: normal;
    margin: 10px 0;
    letter-spacing: 3px;
    color: #000;
}

.masthead-info {
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 600;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.volume-issue {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: left;
}

.date-info {
    text-align: center;
    grid-column: 2;
}

.edition-info {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.publication-date {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: right;
    font-size: 0.9rem;
}

.masthead-divider {
    border: 0;
    border-top: 1px solid #000;
    margin: 0 0 20px 0;
}

/* Front Page Layout */
.front-page-section {
    margin-bottom: 30px;
}

.above-fold {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Hero Story */
.hero-story {
    padding-right: 20px;
    border-right: 1px solid #ccc;
}

.hero-headline {
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    font-family: 'Arial Black', Arial, sans-serif;
}

    .hero-headline a {
        color: #000;
        text-decoration: none;
    }

        .hero-headline a:hover {
            color: #0056b3;
        }

.hero-description {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: justify;
}

/* Side Stories */
.side-stories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-story {
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

    .side-story:last-child {
        border-bottom: none;
    }

.side-headline {
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 8px;
}

    .side-headline a {
        color: #000;
        text-decoration: none;
    }

        .side-headline a:hover {
            color: #0056b3;
        }

.side-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
}

/* Below the Fold */
.section-break {
    border: 0;
    border-top: 2px solid #000;
    margin: 20px 0;
}

.below-fold {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    column-gap: 15px;
}

.column-story {
    padding: 0 10px;
    border-right: 1px solid #ddd;
}

    .column-story:last-child {
        border-right: none;
    }

.column-headline {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

    .column-headline a {
        color: #000;
        text-decoration: none;
    }

        .column-headline a:hover {
            color: #0056b3;
        }

.column-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #444;
}

/* Page Divider */
.page-divider {
    border: 0;
    border-top: 4px double #000;
    margin: 30px 0;
}

/* Section Pages */
.section-pages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-section-page {
    padding: 15px;
    border: 2px solid #000;
    background-color: #fafafa;
}

.section-header {
    background-color: #000;
    color: #fff;
    padding: 8px 15px;
    margin: -15px -15px 15px -15px;
}

.section-name {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* Section Lead Story */
.section-lead-story {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000;
}

.section-lead-headline {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 10px;
}

    .section-lead-headline a {
        color: #000;
        text-decoration: none;
    }

        .section-lead-headline a:hover {
            color: #0056b3;
        }

.section-lead-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
    text-align: justify;
}

/* Section Briefs */
.section-briefs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    column-gap: 10px;
}

.brief-story {
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
}

.brief-headline {
    font-size: 0.95rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 5px;
}

    .brief-headline a {
        color: #000;
        text-decoration: none;
    }

        .brief-headline a:hover {
            color: #0056b3;
        }

/* Story Meta */
.story-meta {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.brief-meta {
    font-size: 0.75rem;
    color: #888;
}

.story-byline {
    font-weight: 600;
}

.meta-separator {
    margin: 0 5px;
}

.story-date {
    color: #888;
}

/* Utility */
.no-stories {
    font-style: italic;
    color: #999;
    text-align: center;
    padding: 20px;
}

.loading-state {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: #666;
}

/* Weather Page Styles */
.weather-page {
    margin: 30px 0;
    padding: 20px;
    border: 3px solid #000;
    background-color: #f9f9f9;
}

.weather-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.weather-header h2 {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 0;
}

.weather-date {
    font-size: 0.9rem;
    margin: 5px 0 0 0;
    font-weight: 600;
}

.weather-forecast {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.weather-day {
    text-align: center;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ccc;
}

.day-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.weather-icon {
    font-size: 3rem;
    margin: 10px 0;
}

.temps {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 10px 0;
}

.temps .high {
    font-size: 1.1rem;
    font-weight: bold;
}

.temps .low {
    font-size: 0.95rem;
    color: #666;
}

.description {
    font-size: 0.85rem;
    margin: 10px 0;
    min-height: 40px;
    line-height: 1.3;
}

.weather-details {
    font-size: 0.75rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin: 3px 0;
}

.detail-row .label {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .newspaper-title h1 {
        font-size: 2.5rem;
    }

    .above-fold {
        grid-template-columns: 1fr;
    }

    .hero-story {
        border-right: none;
        border-bottom: 2px solid #000;
        padding-bottom: 20px;
        padding-right: 0;
    }

    .below-fold {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-pages {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .newspaper-title h1 {
        font-size: 2rem;
    }

    .below-fold {
        grid-template-columns: 1fr;
    }

    .section-briefs {
        grid-template-columns: 1fr;
    }

    .column-story {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-bottom: 15px;
    }
}

/* Image Styles */
.hero-image {
    width: 100%;
    margin-bottom: 15px;
}

    .hero-image img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: cover;
        border: 1px solid #ccc;
    }

.side-image {
    width: 100%;
    margin-bottom: 10px;
}

    .side-image img {
        width: 100%;
        height: auto;
        max-height: 150px;
        object-fit: cover;
        border: 1px solid #ddd;
    }

.section-lead-image {
    width: 100%;
    margin-bottom: 12px;
    float: left;
    margin-right: 15px;
    max-width: 300px;
}

    .section-lead-image img {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: cover;
        border: 1px solid #ddd;
    }

        /* Image loading placeholder */
        .hero-image img:not([src]),
        .side-image img:not([src]),
        .section-lead-image img:not([src]) {
            display: none;
        }

