/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #fff9e6;
}

/* Container Styles */
.container,
.content {
  width: 90%;
  margin: 20px auto;
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header Section */
.header {
  display: flex;
  justify-content: space-between;
  background-color: #f9c929;
  padding: 15px;
  border-bottom: 2px solid #ddd;
}

/* Unit Section */
.unit-section {
  width: 50%;
}

.unit-section h1 {
  font-size: 24px;
  color: #0056b3;
}

.unit-section h2,
.unit-section h3 {
  color: #0056b3;
}

.unit-section h2 {
  font-size: 18px;
  color: #333;
}

.unit-section h3 {
  font-size: 16px;
}

/* Outcomes Section */
.outcomes-section {
  width: 45%;
}

.outcomes-section h4 {
  font-size: 18px;
  color: #333;
  text-transform: uppercase;
}

.outcomes-section ul {
  list-style-type: disc;
  margin-left: 20px;
}

/* Instructions */
.instructions h4,
.after-you-read h4,
.grammar-notes h4,
.reading-section h4,
.focused-practice h4,
.communication-practice h4,
.grammar-writing h4,
.review h4 {
  font-size: 18px;
  color: #0056b3;
}

.instructions h5,
.exercise h5 {
  font-size: 16px;
  color: #333;
  margin: 10px 0;
}

.instructions p,
.exercise p,
.example p,
.reading-section p,
.conversation p,
.questions p,
.example-conversation p,
.review ol li,
.review ul li {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

/* Example Section */
.example {
  background-color: #e0f7fa;
  padding: 10px;
  border-left: 4px solid #00796b;
  margin-bottom: 10px;
}

.example p {
  color: #00796b;
}

/* Images Section */
.images-section,
.image-section {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 20px;
}

.image-container {
  text-align: center;
  margin-bottom: 15px;
}

.image-container img,
.image-placeholder {
  width: 220px;
  height: auto;
  border: 1px solid #ddd;
  background-color: #ddd;
  color: #666;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder-1 {
    width: 90%;
    height: auto;
    margin: 20px;
}

.image-placeholder-2 {
    float: right;
    width: 50%;
    height: auto;
    margin: 20px;
}

/* Grammar and Exercise Tables */
.grammar-table,
.grammar-table-1,
.interview-chart table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.grammar-table th,
.interview-chart th,
.interview-chart td,
.grammar-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.grammar-table th,
.interview-chart th {
  background-color: #f2f2f2;
  color: #333;
}

/* Exercise Section */
.exercise-title h3,
.main-heading h3 {
  background-color: #147900;
  color: whitesmoke;
  padding: 4px;
}

.exercise-title h4 {
  margin: 18px 0;
  color: black;
}

.exercise1 {
  padding: 5px;
  margin: 10px;
}

/* Lists and Checklists */
ol,
ul {
  margin-top: 10px;
  padding-left: 20px;
}

ol li,
ul li {
  font-size: 14px;
  margin-bottom: 10px;
  color: #333;
}

.checklist h6 {
  font-size: 14px;
  margin-bottom: 10px;
  color: #333;
}

.checklist ul,
.answers ul {
  list-style-type: none;
  padding-left: 0;
}

.checklist ul li {
  font-size: 14px;
  margin-bottom: 5px;
}

/* Matching Container */
.matching-container {
  display: flex;
  margin-bottom: 20px;
}

.match-input,
.input-ex3 {
  max-width: 25px;
  border: none;
  border-bottom: 1px solid;
  margin-right: 10px;
}

/* Submit Button */
.submit-button {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

/* Media Queries */
@media (max-width: 1024px) {
  .unit-section,
  .outcomes-section {
    width: 100%;
  }

  .images-section,
  .image-section {
    flex-direction: column;
    align-items: center;
  }

  .container,
  .content {
    width: 95%;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: center;
  }

  .exercise-title h3 {
    font-size: 20px;
  }

  .exercise p,
  .instructions p,
  .reading-section p,
  .conversation p {
    font-size: 13px;
  }

  .image-placeholder {
    width: 80%;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .header,
  .instructions,
  .exercise1 {
    padding: 10px;
  }

  .unit-section h1,
  .unit-section h2,
  .unit-section h3 {
    font-size: 18px;
  }

  .exercise-title h4,
  .reading-section h4,
  .instructions h4 {
    font-size: 16px;
  }

  .image-placeholder {
    width: 80%;
    height: auto;
  }

  .image-placeholder-1,
  .image-placeholder-2 {
    width: 100%;
    height: auto;
  }

  .matching-container {
    flex-direction: column;
  }
}
