/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure the body and html take up full height */
html, body {
    height: 100%;
    margin: 0;
    background-color: #f7f8f9;
}

/* Flex container that takes full height */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content should grow to take up available space */
main {
    flex: 1;
}

/* Basic resets and layout styles */
body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Container for both top-bar and content */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Homepage header */
header {
    background-color: #fff;
}

header .logo img {
    max-width: 100%;
}

/* Flex layout for the top-bar */
.top-bar {
    background: #1976d2;
    color: #007BFF;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo styles */
.logo {
    display: flex;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 2em;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
}

/* Navbar styles */
.navbar {
    width: 100%;
    background-color: #1976d2 !important;
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.navbar ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.navbar li {
    margin: 0;
}

.navbar a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 0 8px;
    line-height: 1.5;
}

.navbar ul li a {
    color: #ffffff;
    font-family: 'Arial', sans-serif;
}

.navbar ul li a.active,
.navbar ul li a:hover {
    background: #F0F0F0;
    border-radius: 3px;
    color: #FF4500;
}

/* Menu toggle button */
.menu-toggle {
    width: 40px;
    height: 30px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: transparent;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Link styles */
a {
    color: #1e73be;
    text-decoration: none;
}

a:hover {
    color: #FF4500;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    background: #005cb2;
}

.mobile-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.mobile-menu ul li {
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    padding: 15px;
}

.mobile-menu ul li:last-child {
    border-bottom: none;
}

.mobile-menu ul li a {
    color: #fff;
    text-decoration: none;
    display: block;
}

.mobile-menu ul li a:hover {
    color: #FF4500;
}

/* Responsive styles for small screens */
@media (max-width: 768px) {
    .top-bar {
        background-color: #1976d2 !important;
        justify-content: space-between;
        padding: 0;
    }

    .top-bar .container {
        justify-content: space-between;
        padding: 0;
    }

    .logo {
        margin-left: 10px;
    }

    .menu-toggle {
        display: flex;
        margin-right: 5px;
    }

    .menu-toggle span {
		background-color: #333;
        height: 2px;
        margin: 4px 0;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    .mobile-menu.active {
        display: block;
    }

    .navbar {
        display: none;
    }
}

/* Main Content */
main {
    padding: 20px 0;
}

h2 {
    font-size: 1.5em;
    margin: 5px 0;
    color: #333;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 0;
}

article {
    margin-bottom: 20px;
}

article h3 {
    font-size: 1.2em;
}

article p {
    margin: 10px 0;
}

.news-image {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Footer */
footer {
    background: #fff;
    color: #1e73be;
    text-align: center;
    padding: 10px 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.pagination li {
    margin: 0 5px;
}

.pagination a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #007bff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
    cursor: not-allowed;
    border: 1px solid #007bff;
}

.pagination a.disabled {
    color: #ccc;
    pointer-events: none;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: #1e73be;
}

.footer-links a:hover {
    text-decoration: underline;
}
