@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Gupter:wght@400;500;700&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #a5a5a5;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    background-color: #333;
    color: white;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
}

header .search-login {
    display: flex;
    align-items: center;
    gap: 10px;
}

header input[type="text"], header button {
    padding: 5px;
}

header button {
    background-color: #444;
    color: white;
    border: none;
    cursor: pointer;
}

.button {
    background-color: #a5a5a5;
    color: white;
    padding: 15px 32px;
    text-align: center;
    font-size: 16px;
    margin: 4px 2px;
    border-radius: 5px;
}


.breaking-news iframe {
    width: 100%;
    height: 25px;
    border: none;
}

.social-media iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: none;
}

.advertisement iframe {
    width: 100%;
    height: 100%;
    border: none;

}

/* Grid System For Pages */
.head{grid-area:header;}
.featured-article { grid-area:f-article; }
.latest-news { grid-area: l-news; }
.popular-articles { grid-area: p-articles; }
.social-media { grid-area: s-media; }
.donate { grid-area: donate; }
.advertisement { grid-area: ads; }
.breaking-news { grid-area: b-news; }
footer {grid-area: footer}
.topnav { grid-area: nav; }
.grid-container {
    display: grid;
    grid-template-areas:
        'header header header header header header'
        'b-news b-news b-news b-news b-news b-news'
        'nav nav nav nav nav nav'
        'f-article f-article f-article f-article ads ads'
        'p-articles p-articles s-media s-media ads ads'
        'l-news l-news l-news l-news l-news donate'
        'footer footer footer footer footer footer';
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-areas:
            'header' 'b-news' 'nav' 'f-article' 'p-articles'
            's-media' 'ads' 'l-news' 'donate' 'footer';
        grid-template-columns: 1fr;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.icon {
    width: 25px;
}

.flex-article {
    display: flex;
    padding: 25px;
    flex-wrap: wrap;
}

/* Main Layout */
.container, main, .featured-article,
.latest-news, .donate, .popular-articles {
    margin: 20px;
    padding: 20px;
    background-color: rgb(219, 219, 219);
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.featured-article img, .latest-news img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.featured-article h1, .full-article h1 {
    font-size: 30px;
    color: #333;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}
footer nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

footer nav a:hover {
    text-decoration: underline;
}

/* Article Page Styles */
.full-article {
    margin-bottom: 20px;
}
.full-article img {
    width: 100%;
    height: auto;
    margin: 20px 0;
}
.full-article p {
    padding: 16px;
    font-family: "Gupter", serif;
    font-size: 20px;
}

/* Top Navigation */
.topnav {
    overflow: hidden;
    background-color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topnav a {
    color: #f2f2f2;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    flex: 1;
    text-align: center;
}
.topnav a:hover, .topnav a.active {
    background-color: #ddd;
    color: black;
}
.topnav .icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}
@media screen and (max-width: 600px) {
    .topnav {
        flex-wrap: wrap;
    }
    .topnav a {
        display: none;
        flex-basis: 100%;
    }
    .topnav a.icon {
        display: block;
        flex-basis: 100%;
    }
    .topnav.responsive a {
        display: block;
        text-align: left;
    }
}

/* Borders */
hr.dashed {border-top: 3px dashed #bbb;}
hr.dotted {border-top: 3px dotted #bbb;}
hr.solid {border-top: 3px solid #bbb;}
hr.rounded {border-top: 8px solid #bbb;border-radius: 5px;}
