body {
    font-family: Georgia, serif;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #000000;
    overflow-x: hidden;
}

.top-link {
    padding: 10px 20px;
    font-size: 14px;
}

.top-link a {
    text-decoration: none;
    color: #000000;
}

.main-header {
    border-bottom: 1px solid #ccc;
    padding: 10px 20px;
}

.logo-social-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
}

.social-icons img {
    height: 24px;
    margin-left: 10px;
    vertical-align: middle;
}

.main-nav {
    text-align: center;
    margin-top: 10px;
    border-top: 1px solid #ccc; /* NEW: top border */
    padding-top: 10px; /* NEW: spacing above the nav text */
    padding-bottom: 1px; /* Keeps spacing consistent */
}

.main-nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.articles {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}
.logo-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    position: relative;
    left: 20px; /* Shift logo visually right */
}

.logo {
    height: 120px;
    max-width: 100%;
    position: relative;
    top: -20px; /* moves the logo UP */
}
.social-icons a img {
    height: 24px;
    margin-left: 10px;
    vertical-align: middle;
    border: none;
    outline: none;
}

.social-icons a {
    text-decoration: none;
    outline: none;
}

.social-icons a:focus,
.social-icons a:active,
.social-icons a:hover {
    outline: none;
    border: none;
}
.floating-social-icons {
    position: fixed;
    top: 20px;         /* Distance from top of page */
    right: 10px;       /* Distance from right edge */
    display: flex;
    flex-direction: column;
    gap: 10px;         /* Space between icons */
    z-index: 1000;     /* Make sure it stays on top */
}

.floating-social-icons a img {
    height: 24px;
    width: 24px;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
    transition: transform 0.2s ease;
}

.floating-social-icons a:hover img {
    transform: scale(1.1);
}
.subscribe-link {
    padding: 0 20px;
    margin-top: -10px;
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: 18px; /* 2 sizes larger than 14px */
}

.subscribe-link a {
    color: black;
    text-decoration: none;
}
.subscribe-title {
    font-family: Georgia, serif;
    font-size: 28px;
    text-align: center;
    margin-top: 40px;
    color: #000;
}

.subscribe-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
    flex-direction: column;
}

.subscribe-form-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 300px;
}

.subscribe-form-container input[type="email"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.subscribe-form-container button {
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    background-color: #002147;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.subscribe-form-container button:hover {
    background-color: #001530;
}
.news-heading {
    font-family: Georgia, serif;
    font-size: 42px;
    font-weight: bold;
    text-align: center;
    margin-top: 30px;
}

.news-grid-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.news-box {
    position: relative;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.news-box a {
    display: block;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    font-family: Georgia, serif;
    text-decoration: none;
    padding: 10px;
    text-align: left;
}
.category-page {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.category-box {
    width: 250px;
    height: 150px;
    border: 2px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: #000;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.category-box:hover {
    background-color: #eee;
    transform: translateY(-3px);
}
/* === Homepage Sections: Editor's Picks & The Latest === */

.homepage-section {
  margin: 40px 20px;
}

.homepage-section h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
}

.article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Individual article cards */
.homepage-article-card {
  flex: 1 1 calc(50% - 20px);
  background-color: #f8f8f8;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: box-shadow 0.3s;
}

.homepage-article-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.homepage-article-card img.thumb {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}

.homepage-article-card h3 {
  margin: 10px 0 5px;
  font-size: 1.2em;
}

.homepage-article-card p {
  margin: 0;
  color: #555;
}

.homepage-sections-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.homepage-section {
  flex: 1 1 48%;
}
/* === Responsive: Stack on small screens === */
@media (max-width: 600px) {
  .homepage-section {
    flex: 1 1 100%;
  }
}
