/* Add your CSS file here */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

header {
    background: #333;
    color: #fff;
    padding-top: 30px;
    min-height: 70px;
    border-bottom: #77aaff 3px solid;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header ul {
    padding: 0;
    list-style: none;
}

header li {
    display: inline;
    padding: 0 20px 0 20px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .tagline {
    font-size: 14px;
    font-style: italic;
}

/* Search Bar */
.search-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.search-bar input[type="text"] {
    padding: 5px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
}

.search-bar button {
    padding: 5px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-left: none;
    background-color: #007BFF;
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-bar button:hover {
    background-color: #0056b3;
}

.hero {
    background: #e0e0e0;
    padding: 30px 0;
    text-align: center;
}

.hero h2 {
    margin: 0;
    padding: 0;
}

.featured-post {
    background: #fff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
}

.main-content {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.content {
    flex: 3;
}

.headlines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.headline-card {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.headline-card:hover {
    background: #e0e0e0;
}

/* Ensure the image fits within the headline card */
.headline-card .featured-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.sidebar {
    flex: 1;
    margin-right: 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.category-card {
    background-color: #f4f4f4;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.category-card a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.category-card:hover {
    background-color: #e0e0e0;
}

/* Newsletter Signup */
.newsletter-signup {
    background-color: #333;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.newsletter-signup h2 {
    margin-bottom: 10px;
}

.newsletter-signup form {
    display: flex;
    flex-direction: column;
}

.newsletter-signup input[type="email"] {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.newsletter-signup button {
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.newsletter-signup button:hover {
    background-color: #0056b3;
}

/* Tags/Keywords */
.tags {
    margin-top: 20px;
}

.tags h2 {
    margin-bottom: 10px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-list a {
    padding: 5px 10px;
    background-color: #007BFF;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.tags-list a:hover {
    background-color: #0056b3;
}

footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-item {
    flex: 1;
    margin: 10px;
}

.newsletter-signup {
    flex: 1;
    max-width: 200px;
}

.newsletter-signup h2 {
    font-size: 16px;
    margin-bottom: 10px;
}

.newsletter-signup form {
    display: flex;
    flex-direction: column;
}

.newsletter-signup input[type="email"] {
    padding: 5px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.newsletter-signup button {
    padding: 5px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.newsletter-signup button:hover {
    background-color: #0056b3;
}

.tags {
    flex: 2;
    text-align: center;
}

.tags h2 {
    margin-bottom: 10px;
}

.tags-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-list a {
    padding: 5px 10px;
    background-color: #007BFF;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.tags-list a:hover {
    background-color: #0056b3;
}

.copyright-social {
    flex: 1;
    text-align: right;
}

.social-media {
    display: inline-block;
    margin-left: 10px;
}

.social-media a {
    margin: 0 5px;
}

.social-media img {
    width: 20px;
}

.copyright-social {
    flex: 1;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.icons {
    list-style: none;
    display: flex;
    margin-left: 10px;
    padding: 0;
}

.icons li {
    margin: 0 5px;
}

.icons a {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
}

.icons a:hover {
    color: #007BFF;
}

.centered-header {
    text-align: center;
}

/* Modal styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
  }
  
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
  }
  
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  