body {
    background-color: var(--main-color);
}






section {
    margin-top: 70px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

section h1 {
    font-family: orbitron, sans-serif;
    font-size: 40px;
    position: relative;
    margin-bottom: 30px;
    text-shadow: var(--title-light);
    margin-top: 30px;
}

section h1::before {
    content: "";
    width: 100%;
    left: 0;
    bottom: -5px;
    height: 5px;
    background: linear-gradient(to right, white, black);
    position: absolute;
}

.news-field {
    background-image: var(--field-color);
    width: 1100px;
    height: auto;
    min-height: 60px;
    border: var(--border-color) 2px solid;
    margin: 15px auto;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 20px 15px;
    transition: all 0.3s ease;
    font-family: kanit, sans-serif;
    gap: 15px;
    color: white;
}

.news-field:hover {
    transform: scale(1.1);
}

.news-title {
    font-size: 25px;
}

.news-card {
    background-size: cover;
    background-position: center;
    width: 210px;
    height: 100px;
    border-radius: 20px;
    border: var(--border-color) 1px solid;
}

.news-info p:nth-child(2) {
    font-size: 25px;
}

#field-one .news-card {
    background-image: url(../imgs/laptop.jpg);
}

#field-two .news-card {
    background-image: url(../imgs/power-switch.png)
}

#field-three .news-card {
    background-image: url(../imgs/plans.jpg);
    background-size: 150%;
}

.scroll {
    display: flex;
    gap: 20px;
    margin: 12px;
    margin-bottom: 30px;
}

.scroll div {
    font-family: kanit, sans-serif;
    width: 40px;
    height: 40px;
    background-color: gray;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.scroll div:nth-child(2) {
    background-color: white;
    color: black;
}

/* News Page Media Queries */
@media (max-width: 1150px) {
    .news-field {
        width: 95%;
    }
}

@media (max-width: 768px) {
    section h1 {
        font-size: 30px;
    }

    .news-field {
        width: 95%;
        flex-direction: column;
        text-align: center;
    }

    .news-card {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    section h1 {
        font-size: 24px;
    }

    .news-info p {
        font-size: 14px;
    }

    .news-info p:nth-child(2) {
        font-size: 20px;
    }
}