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

body {
    font-family: 'Source Serif Pro', serif;
    background-color: #f0e6d2;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
}

.newspaper {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    padding: 30px;
    border: 1px solid #ddd;
    background-image: url('https://www.transparenttextures.com/patterns/old-paper.png');
    background-color: #fffef0;
}

/* Header styles */
header {
    text-align: center;
    border-bottom: 5px double #000;
    padding-bottom: 15px;
    margin-bottom: 20px;
    background-image: url('https://www.transparenttextures.com/patterns/white-paperboard.png');
    padding: 20px;
    border-radius: 2px;
}

.date-edition {
    font-family: 'Special Elite', cursive;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #444;
    letter-spacing: 1px;
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin: 10px 0;
    letter-spacing: -2px;
    color: #000;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
    transform: scaleY(1.2);
}

.subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #555;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 5px 0;
    width: 80%;
    margin: 10px auto 20px;
}

.breaking-banner {
    background-color: #e63946;
    color: white;
    padding: 10px;
    font-family: 'Special Elite', cursive;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 1px;
    transform: rotate(-1deg);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    width: 95%;
    margin: 0 auto;
}

/* Main content styles */
main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Editorial styles */
.editorial {
    background-color: rgba(248, 245, 240, 0.9);
    border: 1px solid #d3c6a6;
    padding: 25px 30px;
    margin-bottom: 25px;
    position: relative;
    font-family: 'Source Serif Pro', serif;
    border-left: 5px solid #e63946;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.editorial h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #333;
    text-align: center;
    letter-spacing: 1px;
}

.editor-signature {
    font-style: italic;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d3c6a6;
}

.editorial p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.editorial p:last-child {
    margin-bottom: 0;
}

.editorial-highlight {
    font-weight: 600;
    font-style: italic;
    color: #e63946;
}

.lead-story {
    border-bottom: 1px solid #ddd;
    padding-bottom: 30px;
    margin-bottom: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 2px;
    transition: background-color 0.3s;
}

.lead-story:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.headline {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 8px;
    color: #000;
}

.subheadline {
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 10px;
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    column-count: 2;
    column-gap: 25px;
}

.lead-image {
    float: right;
    margin: 0 0 10px 20px;
    max-width: 90%;
    border: 8px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: rotate(1deg);
}

.lead-image img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    display: block;
}

.caption {
    font-size: 0.8rem;
    font-style: italic;
    text-align: center;
    margin-top: 5px;
    padding: 5px;
    background-color: white;
}

.first-paragraph {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.drop-cap {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    line-height: 0.8;
    padding-top: 0.1rem;
    padding-right: 8px;
    padding-left: 3px;
    font-weight: bold;
    color: #e63946;
}

.column-container {
    display: flex;
    gap: 30px;
}

.left-column, .right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.story {
    padding: 20px;
    border: 1px solid #ddd;
    background-color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.story:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
}

.story::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background-image: linear-gradient(135deg, transparent 65%, rgba(255, 254, 240, 0.5) 65.5%, rgba(255, 254, 240, 0.8) 75%);
    border-radius: 0 0 5px 0;
}

.highlighted {
    background-color: rgba(255, 249, 230, 0.7);
    border: 1px solid #e9c46a;
    position: relative;
}

.highlighted:hover {
    background-color: rgba(255, 249, 230, 0.95);
}

.exclusive-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: #e63946;
    color: white;
    padding: 3px 10px;
    font-family: 'Special Elite', cursive;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(2deg);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
    z-index: 2;
    overflow: visible;
}

.story-image {
    margin-bottom: 15px;
    border: 5px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
}

.read-more {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 8px 14px;
    font-family: 'Special Elite', cursive;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 15px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.read-more:hover {
    background-color: #e63946;
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.1);
}

/* Advertisement styles */
.advertisement {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
    background-image: url('https://www.transparenttextures.com/patterns/cream-paper.png');
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    position: relative;
}

.advertisement::before {
    content: "ADVERTISEMENT";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e9c46a;
    color: #333;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.ad-content h3 {
    font-family: 'Special Elite', cursive;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-decoration: underline;
}

.download-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.download-button {
    display: inline-block;
    background-color: #2a9d8f;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 0;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
    font-family: 'Special Elite', cursive;
}

.download-button:hover {
    background-color: #1f7d73;
    transform: translateY(-3px);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.2);
}

/* Footer styles */
footer {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 3px double #ddd;
    font-family: 'Special Elite', cursive;
    letter-spacing: 1px;
}

footer p {
    opacity: 0.7;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modal-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    max-height: 85vh;
    margin: 5% auto;
    padding: 40px;
    overflow-y: auto;
    background-color: #fffef0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease-in-out;
    transform-origin: center right;
    transform: perspective(1200px) rotateY(-90deg);
    opacity: 0;
    background-image: url('https://www.transparenttextures.com/patterns/old-paper.png');
    border: 1px solid #000;
}

.modal.show .modal-background {
    opacity: 1;
}

.modal.show .modal-content {
    transform: perspective(1200px) rotateY(0deg);
    opacity: 1;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    color: #333;
    transition: color 0.2s, transform 0.2s;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #e63946;
    transform: rotate(90deg);
}

#modal-headline {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    border-bottom: 3px double #000;
    padding-bottom: 15px;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.2;
}

.modal-section {
    margin-bottom: 25px;
    column-count: 2;
    column-gap: 30px;
    text-align: justify;
    hyphens: auto;
}

.modal-section p {
    margin-bottom: 15px;
}

.modal-quote {
    font-style: italic;
    border-left: 4px solid #e63946;
    padding: 15px;
    margin: 20px 0;
    color: #444;
    background-color: rgba(255,255,255,0.5);
    column-span: all;
    font-size: 1.1rem;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.05);
}

.discussion-points {
    column-span: all;
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(42, 157, 143, 0.1);
    border: 1px solid rgba(42, 157, 143, 0.3);
}

.discussion-points h4 {
    margin-bottom: 15px;
    color: #2a9d8f;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Special Elite', cursive;
}

.discussion-points ul {
    margin-left: 20px;
}

.discussion-points li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 5px;
}

.discussion-points li::before {
    content: "•";
    color: #2a9d8f;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.ref-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 3px double #ddd;
    text-align: center;
    column-span: all;
}

.ref-links .download-button {
    padding: 12px 25px;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .column-container {
        flex-direction: column;
    }
    
    .title {
        font-size: 3rem;
    }
    
    .headline {
        font-size: 1.8rem;
    }
    
    .lead-image {
        float: none;
        max-width: 100%;
        margin: 0 0 15px 0;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
        padding: 25px;
    }
    
    .story-content {
        column-count: 1;
    }
    
    .modal-section {
        column-count: 1;
    }
}

/* Print-style texture overlays */
.newspaper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/noise-pattern-with-subtle-cross-lines.png');
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.story, .lead-story {
    position: relative;
}

.story::before, .lead-story::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/printer-texture.png');
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}