/* Base styles - Mobile First */
:root {
  --primary-color: #1a2744; /* Dark Navy Header */
  --secondary-color: #d7263d; /* Patriotic Red */
  --text-color: #333333; /* Readable dark grey */
  --bg-color: #ffffff; /* Crisp white background */
  --link-color: #1b3f8b; /* Deep blue links */
  --hover-color: #111e36;
}

body {
  font-family: Georgia, 'Times New Roman', Times, serif; /* Readable serif body */
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Arial, Helvetica, sans-serif; /* Clean sans-serif headers */
  color: var(--primary-color);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  color: var(--hover-color);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
header {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 1rem 0;
}

header h1 {
  color: #ffffff;
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px;
}

header a {
  color: #ffffff;
  text-decoration: none;
}

nav {
  margin-top: 1rem;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

nav ul li a {
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
}

nav ul li a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Breaking News Banner */
.breaking-news {
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 10px 0;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-align: center;
}

.breaking-news a {
  color: #ffffff;
  text-decoration: underline;
}

/* Ad Placements */
.ad-top {
  margin: 20px auto;
  text-align: center;
  width: 100%;
  max-width: 728px;
  height: 90px;
  background-color: #f4f4f4; /* Placeholder visual for loading */
}

.ad-sidebar {
  margin: 20px auto;
  text-align: center;
  width: 300px;
  height: 250px;
  background-color: #f4f4f4; /* Placeholder visual for loading */
}

/* Main Layout */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 2rem 0;
}

main {
  flex: 1;
}

aside {
  width: 100%;
}

/* Articles */
article {
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

article h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

article .meta {
  font-size: 0.85rem;
  color: #666;
  font-family: Arial, sans-serif;
  margin-bottom: 1rem;
}

/* Grid Layout for Index */
.stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.story-card {
  border: 1px solid #ddd;
  padding: 15px;
  background: #fdfdfd;
}

.story-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  font-family: Arial, sans-serif;
}

footer a {
  color: #ffffff;
}

footer a:hover {
  color: var(--secondary-color);
}

.footer-links {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  padding: 0;
}

.disclaimer-lock {
  font-size: 0.8rem;
  color: #ccc;
  margin-top: 1.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: #666;
  margin: 15px 0;
}

.breadcrumbs a {
  color: var(--link-color);
}

/* Responsive Desktops */
@media (min-width: 768px) {
  .main-content {
    flex-direction: row;
  }

  aside {
    width: 300px;
    flex-shrink: 0;
  }

  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Gear Box (Memory specific) */
.gear-box {
  border: 2px solid var(--primary-color);
  padding: 15px;
  margin: 20px 0;
  background-color: #f9f9f9;
}
