:root {
    --primary-color: #1a2a3a;
    --secondary-color: #33547f;
    --aside-color: #295da1c6;
    --accent-color: #6ab7e4;
    --text-color: #e0e1dd;
    --text-title: #ffffff;
    --background-color: #848c94;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--background-color));
    height: 100%;
}

footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;
}

nav li {
    float: left;
}

nav li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

nav li a:hover {
    background-color: #111;
}

main {
    max-width: 2000px;
    margin: 0 auto;
}
.news-filters {
    margin-bottom: 20px;
    text-align: center;
}

.news-filters label {
    margin-right: 10px;
    font-weight: bold;
}

.news-filters select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    cursor: pointer;
}

article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 40px;
    margin-bottom: 1em;
    margin-left: 1em;
    margin-right: 1em;
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

article img {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: auto;
    max-width: 740px;
    max-height: 520px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

article video {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    width: auto;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

article img:hover {
    transform: scale(1.2);
}

article h2 {
    font-size: 2.0em;
    color: #0d2a47;
}

article p {
    font-size: 1.5em;
    margin: 0 0 10px;
    line-height: 1.4;
    text-overflow: ellipsis;
}

article .date {
    text-align: right;
    font-size: 14px;
    margin-top: 1em;
    color: #777;
    margin: 0;

}

.history-button {
    text-align: center;
    margin-bottom: 40px;
}

.history-button select,
.history-button button {
    font-size: 16px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.history-button button {
    background-color: #333;
    color: white;
    border-color: #333;
    margin-left: 10px;
    cursor: pointer;
}

.read-more {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 40px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: absolute;
    bottom: 20px;
    right: 150px;
}

.read-more:hover {
    background-color: #555;
}

.return {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.return a {
    display: inline-block;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.return a:hover {
    background-color: #0056b3;
}


/* ******************************************************************
 ********************************************************************
 *************************    SMARTPHONE    *************************
 ********************************************************************
 ******************************************************************** */

@media screen and (max-width: 900px) {
    article {
        grid-template-columns: 1fr;
         overflow: hidden;
    }
      article img, article video {
        width: 100%; 
        max-width: 100%;
        height: auto; 
        object-fit: cover; 
        object-position: center; 
        border-radius: 8px;
    }
    article {
        grid-template-columns: 1fr;
        align-items: center;
        margin-bottom: 1em;
        margin-right: 0.4em;
        margin-left: 0.4em;
        background-color: #f4f4f4;
        padding: 0;
        border-radius: 8px;
        box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }
    article img {
        text-align: center;
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 0;
        border-radius: 8px;
    }
    article video {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }
    article img:hover {
        transform: scale(1);
    }
    article h2 {
        padding-left: 0.5em;
        margin-top: 0;
        font-size: 1.6em;
        color: #841075;
    }
    article p {
        font-size: 1.2em;
        padding-left: 1.1em;
        padding-right: 0.5em;
        margin: 0 0 10px;
    }
    article .date {
        width: 100%;
        text-align: right;
        font-size: 0.8em;
        padding-right: 1em;
        padding-bottom: 1em;
        color: #374c66;
    }
    .read-more {
        background-color: #333;
        color: white;
        border: none;
        margin-bottom: 0.5em;
        margin-left: 1em;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        position: static;
    }
    .return {
        display: none;
    }
}