:root {
--primary: #ff4444;
--secondary: #333;
--bg-light: #f9f9f9;
--text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    background: linear-gradient(135deg, var(--primary), #ff6666);
    color: #fff;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    letter-spacing: 1px;
    opacity: 0;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    opacity: 0;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 1.1em;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background 0.3s, transform 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--secondary);
    transform: scale(1.05);
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    opacity: 0;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h2 {
    font-size: 1.8em;
    margin-bottom: 12px;
    color: var(--secondary);
}

.news-content p {
    font-size: 1em;
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
}

.read-more:hover {
    background-color: #e03535;
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.85em;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

footer {
    background-color: var(--secondary);
    color: #fff;
    text-align: center;
    padding: 25px 10px;
    margin-top: 50px;
}

footer p {
    font-size: 1em;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2em;
    }
    nav ul li {
        margin: 0 10px;
    }
    .news-content h2 {
        font-size: 1.5em;
    }
}