@import url("https://fonts.googleapis.com/css2?family=Spartan:wght@100;200;300;400;500;600;700;800;900&display=swap");

:root {
    --color: #ffbb00;
    --hover: #ffea00;
    --footer-color: #ffbb00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Spartan", sans-serif;
    color: #fff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: #000;
    height: 100vh;
    background-position: relative;
    background-repeat: repeat;
    background-size: cover;
    background-attachment: fixed;
    width: 100%;
}

#logo {
    margin: 0 auto;
    height: 25px;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: white;
}

.section-p1 {
    padding: 40px 80px;
}

button.normal {
    font-size: 14px;
    font-weight: 600;
    padding: 15px 30px;
    color: #000;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: 0.2s;
}

#navbar {
    display: flex;
    align-items: center;
    justify-content: center;
}

#navbar li {
    list-style: none;
    padding: 0 20px;
    position: relative;
}

#navbar li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    transition: 0.3s ease;
}

#navbar li a:hover,
#navbar li a.active {
    color: var(--hover);
}

#navbar li a.active:after,
#navbar li a:hover::after {
    content: "";
    width: 30%;
    height: 2px;
    background-color: var(--hover);
    position: absolute;
    bottom: -3px;
    left: 22px;
}

#mobile {
    display: none;
    align-items: center;
}


#news-hero {
    background-image: url("../media/hero-background.jpg");
    width: 100%;
    height: 40vh;
    background-size: cover;
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    margin-top: 90px;
}

#news-hero h2 {
    letter-spacing: 15px;
}

#news-hero p {
    letter-spacing: 5px;
    font-size: 12px;
}

#news-hero p a:hover {
    color: var(--hover);
}

#news-hero h2,
#news-hero p {
    color: #fff;
    margin-bottom: 30px;
}


#news {
    padding: 150px 150px 0 150px;
}

#news .news-box {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    margin-bottom: 90px;
    background-color: #1b1b1b;
    border-radius: 10px;
    
}

#news .news-img {
    width: 50%;
    margin-right: 40px;
}

#news img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

#news .news-details {
    width: 50%;
}

#news .news-details h4,
#news .news-details p {
    margin-bottom: 20px;
}

#news .news-details h4 {
    line-height: 25px;
}

#news .news-details p {
    line-height: 25px;
}

#news .news-details a {
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    position: relative;
    transition: 0.3s;
}

#news .news-details a::after {
    content: "";
    width: 50px;
    height: 1px;
    background-color: #ffffff;
    position: absolute;
    top: 4px;
    right: -60px;
    transition: 0.3s;
}

#news .news-details a:hover {
    color: var(--hover);
}

#news .news-details a:hover::after {
    background-color: var(--hover);
}

#news .news-box h1 {
    position: absolute;
    top: -50px;
    left: 0px;
    font-size: 70px;
    font-weight: 700;
    color: #c9cbce;
    z-index: -9;
}

#pagination {
    text-align: center;
}

#pagination a {
    text-decoration: none;
    background-color: var(--color);
    padding: 15px 20px;
    border-radius: 4px;
    color: #000;
    font-weight: 600;
}

#pagination a i {
    font-size: 16px;
    font-weight: 600;
}

#newsletter {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    background-image: url("../media/newsletter-background.jpg");
    background-size: cover;
    background-position: 20% 30%;
    margin-top: 50px;
}

#newsletter .form {
    display: flex;
    width: 40%;
}

#newsletter h4 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

#newsletter p {
    font-size: 14px;
    font-weight: 600;
    color: #818ea0;
}

#newsletter p span {
    color: #ffbd27;
}

#newsletter input {
    height: 3.125rem;
    color: #000;
    padding: 0 1.25em;
    font-size: 14px;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 4px;
    outline: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#newsletter button {
    background-color: var(--footer-color);
    color: #000;
    white-space: nowrap;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

@media (max-width: 477px) {
    .section-p1 {
        padding: 20px;
    }

    #blog {
        padding: 100px 20px 0 20px;
    }

    #blog .blog-box {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    #blog .blog-img {
        width: 100%;
        margin-right: 0px;
        margin-bottom: 30px;
    }

    #blog .blog-details {
        width: 100%;
    }
}