* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-image: url("https://ctfassets.ksldigital.com/0wjmk6wgfops/4KuzJkBNRjvK7qaiGdpY3I/e15f4f172dec7e80c4130cedf6b61ec0/95baf54302_60236543-90f9-4198-a748-327ddd0d3840.jpg?w=1280&h=800&fit=fill&f=center&q=80");
  background-size: cover;
  background-attachment: fixed;
}

/* ===== HEADER ===== */
header h1 {
  margin: 0;
  padding: 1rem;
  background-color: darkgray;
  text-align: center;
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #333;
  display: flex;
}

nav li {
  padding: 14px 16px;
  color: white;
  cursor: pointer;
}

nav li:hover {
  background-color: #111;
}

nav li:last-child {
  margin-left: auto;
}

/* ===== MAIN LAYOUT ===== */
main {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(3px);
  padding-bottom: 3rem;
}

.page {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  background: #d8d8d8;
  border-radius: 10px;
}

/* ===== SHARED GRID ===== */
.archive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* ===== WEATHER SUMMARY ===== */
.article-weather {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 20px;
  padding: 1.5rem;
  background: rgba(200, 200, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.weather-text h2 {
  margin-bottom: 0.5rem;
}

.weather-text h3 {
  margin-bottom: 1rem;
}

.weather-text div {
  margin-bottom: 0.3rem;
}

.weatherIcon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  justify-self: center;
}

/* ===== 5 DAY FORECAST ===== */
.article-five-day {
  grid-column: 1 / -1;
  padding: 1.5rem;
  background: rgba(200, 200, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.forecast-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 1rem;
}

.card {
  background-color: #c9d6d8;
  border-radius: 12px;
  padding: 1rem;
  min-width: 140px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.col-head {
  font-size: 1.1rem;
  font-weight: bold;
}

.temp-data {
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

/* ===== NEWS SECTION ===== */
.news-section .archive {
  grid-template-columns: repeat(4, 1fr);
}

.news-section .article:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.featured-article {
  display: block;
  margin-bottom: 1rem;
}

.smaller-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.article-link {
  display: block;
  background: rgba(200, 200, 255, 0.3);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-link .article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.article-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.article-link img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;}

  /* ===== FOOTER ===== */
  footer{
    text-align: center;
    padding: 1rem;
    background-color: #b1c4c5cc;
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 900px) {
    .forecast-row {
      flex-wrap: wrap;
      justify-content: center;
    }

    .news-section .archive {
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .news-section .article:first-child {
      grid-template-columns: 1fr;
    }
  }

