/* ===== BASE STYLES ===== */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom right, #e3f2fd, #ffffff);
  color: #222;
  margin: 0;
}

header {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(to right, #1976d2, #64b5f6);
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ===== YELLOW ASSIGNMENT BUTTONS AT TOP ===== */
.assignment-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  background-color: #34495e; /* dark blue like Module 7 example */
  padding: 1rem;
  border-bottom: 3px solid #222;
}

.assign-box {
  background: yellow;
  color: black;
  text-decoration: none;
  padding: 0.7rem 1rem;
  font-weight: bold;
  border-radius: 6px;
  display: block;
  text-align: center;
  min-width: 150px;
  transition: transform 0.2s;
}

.assign-box:hover {
  transform: scale(1.05);
}

/* ===== MAIN CONTENT ===== */
.content-wrapper {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

section {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.left-column,
.right-column {
  flex: 1 1 48%;
}

figure {
  text-align: center;
}

figure img {
  width: 260px;
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
footer {
  background: #1976d2;
  text-align: center;
  padding: 1.2rem;
  color: white;
  margin-top: 3rem;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* MOBILE — SINGLE column + stacked yellow buttons */
@media (max-width: 599px) {
  .assign-box {
    width: 100%;
  }

  .content-wrapper {
    flex-direction: column;
  }

  .left-column,
  .right-column {
    flex: 1 1 100%;
  }

  body {
    font-size: 1.05rem;
    line-height: 1.6;
  }
}

/* TABLET — stacked content but buttons spread horizontally */
@media (min-width: 600px) and (max-width: 899px) {
  .assign-box {
    width: auto;
  }

  .content-wrapper {
    flex-direction: column;
  }

  .left-column,
  .right-column {
    flex: 1 1 100%;
  }
}

/* DESKTOP — two column main layout + wide assignment row */
@media (min-width: 900px) {
  .assignment-nav {
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
  }

  .left-column,
  .right-column {
    flex: 1 1 50%;
  }
}
