body {
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    padding-top: 120px; /* assuming the header height is 90px */
}

header {
    padding: 20px;
    background-color: #000000ee;
    text-align: left;
    display: flex;
    align-items: center;
    height: 30px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

nav a {
    color: #fff;
    padding: 14px 20px;
    text-decoration: none;
    text-transform: uppercase;
}

nav a:hover {
    background-color: #ff6600;
    transition: 0.3s;
}

header img {
    max-width: 100%;
    width: auto;
    height: 80px;
    margin: 0;
    vertical-align: middle;
    display: inline-block;
    
}
main {
    padding: 2rem;
}


.featured {
    background-color: #222;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.featured h1 {
    font-size: 2rem;
    color: #ff6600;
}

.featured p {
    font-size: 1.2rem;
    color: #ffffff;
}

.news-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-articles a {
    text-decoration: none;
    color: inherit;
}

.news-articles article:hover {
    background-color: #ff6600;
    cursor: pointer;
    transform: scale(1.05);
    transition: 0.3s;
}

article {
    background-color: #222;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

article h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ff6600;
}

article p {
    color: #ffffff;
}

.news-articles img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    object-fit: cover;
}

.footer1 {
    background-color: #111;
    color: white;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0px -2px 10px rgba(255, 255, 255, 0.1);
  }

  /* Vertical Footer links */
  .footer1 a {
    color: #ccc;
    display: block;
    margin: 15px 0;
    text-decoration: none;
  }

  .footer1 a:hover {
    color: #fff;
  }

  /* Footer container */
  .footer-container1 {
    max-width: 1200px;
    margin: 0 auto;
  }

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
    clear: both;
}

footer p {
    margin-bottom: 10px;
}

@media (max-width: 1024px) {
    .news-articles {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        display: none;}

    .news-articles {
        grid-template-columns: 1fr;
    }

    .news-articles img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        margin-bottom: 1rem;
    }
}
