* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    background: linear-gradient(180deg, #ffffff 70%, #f2fadc 120%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 200px;
    padding: 20px;
}

.header {
    text-align: center;
    top: 0;
    padding-top: 15px;
    color: rgb(0, 0, 0);
    position: fixed;
    width: 100%;
    margin: auto;
    background-color: #fff;
    background: linear-gradient(180deg, #fff6f6 60%, transparent 100%);

}

.header h1 {
    font-size: 4em;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2em;
    opacity: 0.9;
}
.header img{
    width: 50vh;
    height: auto;
    max-width: 100%;
}

.footer {
    margin-top: 100px;
    text-align: center;
    color: grey;
    margin-bottom: 100px;
}
.footer #hearts {
    margin: 20px;
}

.refresh-info {
    text-align: center;
    color: grey;
    margin-bottom: 30px;
    opacity: 0.8;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* .news-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
} */

.news-card.with-image {
    padding: 0;
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.news-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 1;
}

.news-card.with-image::before {
    top: 200px;
}

.news-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
    line-height: 1.4;
}

.news-content {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.news-date {
    font-weight: 500;
}

.news-author {
    /* display: none; */
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
}

.loading {
    text-align: center;
    color: white;
    font-size: 1.5em;
    margin: 50px 0;
    font-weight: 600;
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    border-left: 5px solid #c62828;
}

.setup-instructions {
    text-align: center;
}

.setup-instructions h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.setup-instructions ol {
    margin-left: 20px;
    line-height: 1.8;
}

.setup-instructions code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.print-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: black;
    border: solid 1px;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1.1em;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;

}

.print-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.print-button:active {
    transform: translateY(-1px);
}

.print-content {
    display: none;
}

.participate-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: yellow;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: black;
    border: solid 1px;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1.1em;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    font-family: comic sans ms;
}

.participate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.participate-button:active {
    transform: translateY(-1px);
}

.participate-content {
    display: none;
}


@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2em;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 15px;
    }
}


