* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #242729;
}

.divider{
    height: 1px;
    background-color: rgb(128, 128, 128);
    border-color: rgb(128, 128, 128);
}

.news {
    display: flex;
    flex-direction: column;
    padding: 20px;
    width: 70%;
    margin: 20px auto 0 auto;
    align-items: center;
}

.news-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 105%;
}

.news-nav h2 {
    color: white;
}

.allNewsContainer {
    display: grid;
    grid-template-columns: 1fr 1fr; /* dve kolone 50% - 50% */
    gap: 10px; 
    padding: 10px; 
    background-color: #181a1b;
    border-radius: 5px;
    color: #dddddd;
    width: 100%;
    margin-top: 20px;
}

.newsContainer2 {
    display: flex;
    padding: 10px;
    background-color: #242729;
    border-radius: 5px;
    color: #dddddd;
    transition: transform 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.news-image-container {
    width: 130px; 
    height: 100px; 
    overflow: hidden; 
    border-radius: 5px; 
    margin-right: 15px;
    flex-shrink: 0; 
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.news-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.newsContainer2:hover {
    transform: translateY(-5px);
}

.news-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.2em;
    color: #00b1dd;
    margin: 0;
}

.news-date {
    font-size: 0.9em;
    color: #888;
}

.news-bottom {
    color: #ddd;
}

.news-summary {
    margin: 0;
    font-size: 0.95em;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.see-more-news-btn {
    background-color: #00b1dd;
    color: black;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.see-more-news-btn:hover {
    background-color: #0089a9;
    transform: translateY(-2px);
}

.see-more-news-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.advice{
    display: flex;
    flex-direction: column;
    padding: 20px;
    width: 70%;
    margin: 20px auto 0 auto;
    align-items: center;
}

.advice-nav {
    width: 105%;
}

.advice-nav h2 {
    color: white;
}

.advice-section {
    padding: 10px;
    background-color: #181a1b;
    margin: 25px auto;
    border-radius: 5px;
    width: 100%;
}

.advice-container {
    display: flex;
    flex-direction: column; 
    gap: 10px; 
}

.advice-item {
    background-color: #242729;
    padding: 15px;
    border-radius: 5px;
    color: #ddd;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.advice-title {
    font-size: 1.2em;
    color: #00b1dd;
    margin: 0;
}

.advice-text {
    font-size: 1em;
    color: #ddd;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .news{
        width: 95%;
        padding: 0;
    }

    .news-nav{
        width: 100%;
    }

    .news-nav h2{
        margin-left: 5px;
    }

    .news-bottom{
        font-size: 14px;
    }
    .allNewsContainer{
        grid-template-columns: 1fr;
    }
    .button-container{
        margin-right: 5px;
    }

    .newsContainer2{
        height: auto;
    }

    .news-top h3{
        font-size: 16px;
    }

    .advice{
        margin-top: 30px;
        width: 95%;
        padding: 0;
    }

    .advice-nav{
        width: 100%;
        margin-left: 5px;
    }

    .advice-title{
        font-size: 17px;
    }

    .advice-text{
        font-size: 14px;
    }
}

@media (min-width: 601px) and (max-width: 850px) {
    .news{
        width: 90%;
        padding: 0;
    }

    .news-nav{
        width: 100%;
    }

    .advice{
        width: 90%;
        padding: 0;
    }

    .advice-nav{
        width: 100%;
        margin-left: 5px;
    }

    .allNewsContainer{
        grid-template-columns: 1fr;
    }
}

@media (min-width: 851px) and (max-width: 1000px) {
    .news{
        width: 90%;
        padding: 0;
    }

    .news-nav{
        width: 100%;
    }

    .advice{
        width: 90%;
    }
}

@media (min-width: 1001px) and (max-width: 1200px) {
    .news{
        width: 90%;
    }

    .advice{
        width: 90%;
    }
}

@media (min-width: 1201px) and (max-width: 1500px) {
    .news{
        width: 75%;
    }

    .advice{
        width: 75%;
    }

    .news-image-container{
        max-height: auto;
    }
}