/* FILE: style.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --ferrari-red: #ff2800;
    --ferrari-yellow: #fff200;
    --dark-bg: #1a1a1a;
    --text-color: #333;
    --light-bg: #f4f4f4;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header */
header {
    background-color: var(--dark-bg);
    color: white;
    padding: 15px 0;
    border-bottom: 4px solid var(--ferrari-red);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-area img {
    height: 60px;
    width: auto;
    border-radius: 5px;
}

.title-area h1 {
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
}

.domain {
    color: var(--ferrari-red);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Team Banner */
.team-banner {
    background-color: var(--ferrari-red);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 200px;
    background-color: #eee;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.date {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 10px;
}

.card-content h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-content h2 a {
    text-decoration: none;
    color: var(--dark-bg);
}

.card-content h2 a:hover {
    color: var(--ferrari-red);
}

.card-content p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    padding: 8px 0;
    color: var(--ferrari-red);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background: var(--dark-bg);
    color: #777;
    margin-top: 50px;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
}