@font-face {
    font-family: 'Rubik';
    src: url('/fonts/Rubik-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Rubik';
    src: url('/fonts/Rubik-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Rubik';
    src: url('/fonts/Rubik-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

:root {
    --color-primary: #e31e24;
    --color-primary-dark: #c3191e;
    --color-gray-light: #f7f7f7;
    --color-gray: #e0e0e0;
    --color-text: #111111;
    --color-subtext: #555555;
    --font-main: 'Rubik', sans-serif;
}

html {
    font-size: 62.5%;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: #fff;
    margin: 0;
    padding: 0;
}

/* HEADINGS */
h1, h2, h3 {
    color: var(--color-text);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.6rem;
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    font-weight: 600;
}

h3 {
    font-size: 2.2rem;
    font-weight: 500;
}

/* NAVBAR */

header {
    position: sticky;
    width: 100%;
    height: 7.2rem;
    z-index: 1000;
}

.logo {
    height: 6.4rem;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border: none;
    /*border-radius: 8px;*/
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

    .btn-primary:hover {
        background-color: var(--color-primary-dark);
    }

.btn-outline {
    background-color: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

    .btn-outline:hover {
        background-color: var(--color-primary);
        color: #fff;
    }

/* LINKS */
a {
    text-decoration: none;
    color: var(--color-primary);
}

    a:hover {
        color: var(--color-primary-dark);
    }

/* CONTAINERS */
.container {
    max-width: 1400px;
    margin: 0 auto;
    /*padding: 2.4rem;*/
}

/* CARDS */
.card {
    border: 1px solid var(--color-gray);
    /*border-radius: 8px;*/
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* SECTIONS */
section {
    padding: 6rem 0;
}

/* GRID */
.grid {
    display: grid;
    gap: 2.4rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

/*NEWS*/

.news-list {
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
}

.news-card {
    display: flex;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.news-image img {
    width: 240px;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 2.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    margin: 0 0 1.2rem;
    font-size: 2.2rem;
    font-weight: 700;
}

.news-date {
    color: #999;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.news-preview {
    margin-bottom: 2rem;
    font-size: 1.6rem;
    line-height: 1.5;
}
