@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    border: 0;

    font-family: "Raleway", sans-serif;

    box-sizing: border-box;
}

ul { list-style-type: none; }

a {
    text-decoration: none;
    color: white;
    transition: 0.1s all;
}

a:hover {
    text-decoration: none;
    color: rgb(192, 192, 192);
}

nav a {
    font-weight: 700;
}

#navbarTop {
    background-color: #2f3238;
    display: flex;
    justify-content: center;

    padding: 10px;
}

#navbarBottom {
    background-color: #16171a;
    display: flex;
    justify-content: center;

    gap: 20px;
    padding: 15px;
}


#importantBanner {
    height: 400px;
    width: 100%;

    background-size: cover;
    background-image: url(../png/bg.jpg);
    background-position: center calc(50% + 30px);

    color: white;

    display: flex;
    justify-content: center;
    align-items: center;
}

#importantBanner h1 {
    font-size: 60px;
    text-align: center;

    border-bottom: 1px solid white;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

#importantBanner p {
    font-size: 20px;
    text-align: center;
}

#blogPosts {
    margin: 30px 0px 40px 40px;
    max-width: 95vw;
    overflow-x: auto;
}

#postCard {
    display: flex;
    flex-direction: column;

    width: 250px;

    padding: 10px;

    color: white;

    background-color: #2f3238;
    border-radius: 5px;
}

#postCard img {
    width: 100%;
    height: 125px;

    background-color: white;

    padding: 10px;
    border-radius: 5px;

    
    object-fit: cover;
    
    margin-bottom: 10px;
}

#postCard h4 {
    padding-bottom: 2px;
    margin-bottom: 2px;
}

#postCard p {
    padding-bottom: 2px;
    color:#cacaca;

    font-size: 12px;
}

#postCard a {
    background-color: #3f4249;
    font-size: 12px;
    text-align: center;
    padding: 5px;
    margin-top: 5px;
    border-radius: 7px;

    transition: 0.2s all;
}

#postCard a:hover {
    background-color: #52555f;
    color: white;
}


#stationList {
    margin: 40px 0px 0px 40px;
}

#latestNewsItems {
    margin: 10px 0px 40px 40px;
    max-width: 95vw;
    overflow-x: auto;
}

#stationList div, #latestNewsItems div {
    display: flex;
    max-width: 70vw;
}

#stationList h1, #latestNewsItems h1 {
    margin-bottom: 10px;
}

#stationCard {
    display: flex;
    flex-direction: column;

    max-width: 250px;

    padding: 10px;

    color: white;

    background-color: #2f3238;
    border-radius: 5px;
}

#stationCard img {
    width: 100%;
    height: 125px;

    background-color: #3f4249;

    padding: 10px;
    border-radius: 5px;

    
    object-fit: cover;
    
    margin-bottom: 10px;
}

#stationCard h4 {
    padding-bottom: 2px;
    margin-bottom: 2px;
}

#stationCard p {
    padding-bottom: 2px;
    color:#cacaca;

    font-size: 12px;
}

#stationCard a {
    background-color: #3f4249;
    font-size: 12px;
    text-align: center;
    padding: 5px;
    margin-top: 5px;
    border-radius: 7px;

    transition: 0.2s all;
}

#stationCard a:hover {
    background-color: #52555f;
    color: white;
}

.newsArticle {
    margin-right: 10px;
    background-color: #2f3238;
    border-radius: 5px;
    min-height: 300px;

    display: flex;
    flex-direction: column;
}

.newsArticle img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    padding: 10px;
    border-radius: 5px;
}

.newsArticle h4 {
    color: white;
    padding: 10px;
    padding-bottom: 2px;
    margin-bottom: 2px;
}

.newsArticle p {
    padding-bottom: 2px;
    color:#cacaca;

    font-size: 12px;
}

.newsArticle a {
    margin-top: auto;
    background-color: #3f4249;
    font-size: 12px;
    text-align: center;
    padding: 5px;
    margin: 10px;
    margin-top: 5px;
    border-radius: 7px;

    transition: 0.2s all;
}

.newsArticle a:hover {
    background-color: #52555f;
    color: white;
}


footer {
    background-color: #2f3238;
    color: white;
}


#blogPost { 
    padding: 20px;
    border-radius: 10px;
    margin: 50px;
    background-color: #2f3238;

    color: white !important;
}

#blogPost img { 
    width: 100%;
    padding: 40px;
    height: 600px;

    object-fit: cover;
}

#blogPost h4, #blogpost p { 
    color: white;
}

#blogPost h4 { 
    font-size: 40px;
    border-bottom: 1px solid white;
    margin-bottom: 20px;
}

@media screen and (min-width: 1025px) {
    footer #footerGrid {
        display: grid;
        place-items: center;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        padding: 50px;
        width: 90%;
    }
}

@media screen and (max-width: 1025px) {
    footer {
        background-color: #2f3238;
        color: white;
    }

    #footerGrid {
        padding: 10vw;
    }
    
    #footerGrid img {
        width: 150px;
    }

    #footerGrid div {
        margin-bottom: 20px;
    }

    #navbarBottom {
        background-color: #16171a;
        display: flex;
        justify-content: center;

        gap: 15px;
        padding: 15px;
    }

    #importantBanner h1 {
        font-size: 40px;
        text-align: center;

        border-bottom: 1px solid white;
        padding-bottom: 5px;
        margin-bottom: 5px;
    }

    #importantBanner p {
        width: 300px;
        font-size: 15px;
        text-align: center;
    }

    
    #blogPost { 
        padding: 20px;
        border-radius: 10px;
        margin: 20px;
        background-color: #2f3238;

        color: white !important;
    }

    #blogPost img { 
        width: 100%;
        padding: 40px;
        height: 200px;

        object-fit: cover;
    }

    #blogPost h4, #blogpost p { 
        color: white;
    }

    #blogPost h4 { 
        font-size: 20px;
        border-bottom: 1px solid white;
        margin-bottom: 20px;
    }
    #blogPost h1, h2, h3, h4, h5{ 
        font-size: 20px;
    }
}
