/* Here are some starter styles
You can edit these or replace them entirely 
It's showing you a common way to organise CSS 
And includes solutions to common problems 
As well as useful links to learn more */

/* ====== Design Palette ======
 This is our "design palette".
 It sets out the colours, fonts, styles etc to be used in this design 
 At work, a designer will give these to you based on the corporate brand, but while you are learning
 You can design it yourself if you like
 Inspect the starter design with Devtools
 Click on the colour swatches to see what is happening
 I've put some useful CSS you won't have learned yet
 For you to explore and play with if you are interested
 https://web.dev/articles/min-max-clamp
 https://scrimba.com/learn-css-variables-c026
====== Design Palette ====== */
/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background: #fff;
  color: #000;
  line-height: 1.5;
}

/* Header */
.page-header {
  text-align: center;
  padding: 2rem 1rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1rem;
  color: #555;
}

/* Main content */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

/* Featured article */
.featured {
  border: 2px solid #000;
  margin-bottom: 2rem;
}

.featured .image {
  height: 250px;
  border-bottom: 2px solid #000;
}
.image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}}

.featured .text {
  padding: 1rem;
}

.featured h2 {
  margin-bottom: 0.5rem;
}

/* Article grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Article cards */
.card {
  border: 2px solid #000;
}

.card .image {
  height: 200px; /* Keep this or adjust as needed */
  width: 100%; /* Added to make the image fit the container */
  border-bottom: 2px solid #000;
}

.card .text {
  padding: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

/* Buttons */
button {
  margin-top: 0.75rem;
  padding: 0.4rem 0.8rem;
  border: 2px solid #000;
  background: #fff;
  cursor: pointer;
}

button:hover {
  background: #000;
  color: #fff;
}

/* Footer */
.footer {
  margin-top: 3rem;
  padding: 1.5rem;
  text-align: center;
  border-top: 2px solid #000;
  font-size: 0.9rem;
  color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .featured .image {
    height: 220px;
  }
}
