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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9; /* Light background color */
    background-image: url('../images/background.jpg'); /* We'll add this image later */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Add a semi-transparent overlay for better text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85); /* White with 85% opacity */
    z-index: -1;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

h1 {
    margin-bottom: 20px;
    color: #2c3e50;
}

h2 {
    margin: 20px 0;
    color: #2c3e50;
}

/* Navigation and language selector */
.language-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.language-selector a {
    padding: 8px 16px;
    margin: 0 5px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-selector a:hover {
    background-color: #e0e0e0;
}

.language-selector a.active {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
}

/* Main content sections */
main {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

section {
    margin-bottom: 40px;
}

/* Article preview styles */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.preview {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.preview h3 {
    margin-bottom: 10px;
}

.preview h3 a {
    color: #3498db;
    text-decoration: none;
}

.preview h3 a:hover {
    text-decoration: underline;
}

.date {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.view-all {
    display: inline-block;
    margin-top: 10px;
    color: #3498db;
    text-decoration: none;
}

.view-all:hover {
    text-decoration: underline;
}

/* Newsletter form */
.newsletter {
    background-color: #f5f7fa;
    padding: 25px;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.newsletter form {
    display: flex;
    margin-bottom: 10px;
}

.newsletter input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.newsletter button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.newsletter button:hover {
    background-color: #2980b9;
}

#form-message {
    margin-top: 10px;
    color: green;
}


/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #777;
    border-top: 1px solid #eee;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-list {
        grid-template-columns: 1fr;
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter button {
        border-radius: 4px;
    }
}