* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #ffffff;
  line-height: 1.7;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--main);
  font-weight: 700;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.hero,.cta{
  padding:0;
}
section {
  padding: 70px 0;
}

.row {
  display: flex;
  align-items: center;
  gap: 60px;
}
.row.reverse {
  flex-direction: row-reverse;
}
.row .text {
  flex: 1;
}
.row .media {
  flex: 1;
}
.row img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0, 33, 71, 0.15);
}

h2 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}
h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: 12px;
}

p {
  margin: 0 0 16px;
  color: #3a3a3a;
}

/* Subjects */
.subjects-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}
.subjects-intro h2 {
  display: block;
}
.subjects-intro h2::after {
  margin-left: auto;
  margin-right: auto;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.subject-card {
  padding: 26px 24px;
  color: var(--text-light);
}
.subject-card:nth-child(odd) {
  background: var(--main);
}
.subject-card:nth-child(even) {
  background: var(--accent);
  color: var(--main);
}
.subject-card h3 {
  color: inherit;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 14px;
}
.subject-card ul {
  margin: 0;
  padding-left: 18px;
}
.subject-card li {
  margin-bottom: 6px;
}

.subjects-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gold);
  text-align: center;
  margin-top: 16px;
}
.subjects-footer {
  text-align: center;
  max-width: 820px;
  margin: 30px auto 0;
  font-size: 0.95rem;
  color: #555;
}

/* Compulsory */
.compulsory {
  background: var(--accent);
  padding: 60px 0;
}
.compulsory .row {
  align-items: center;
}
.compulsory h2 {
  display: block;
}
.compulsory ul {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}
.compulsory li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
  color: #3a2f00;
}
.compulsory li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--main);
  font-weight: bold;
}

/* CTA banner */
.cta-banner {
  background: var(--main);
  color: var(--text-light);
  text-align: center;
  padding: 55px 20px;
}
.cta-banner h3 {
  color: var(--text-light);
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 0 26px;
}
.cta-banner a {
  display: inline-block;
  background: var(--accent);
  color: var(--main);
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 14px 30px;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.85rem;
}

/* Teachers */
.teachers .media {
  background: var(--main-lighter);
  height: 340px;
  border-radius: 4px;
}
.teachers .note {
  font-style: italic;
  color: var(--gold);
}
.btn-dark {
  display: inline-block;
  margin-top: 10px;
  background: var(--main);
  color: var(--text-light);
  text-decoration: none;
  padding: 12px 26px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-radius: 2px;
  font-family: var(--sans);
}

@media (max-width: 800px) {
  .row,
  .row.reverse {
    flex-direction: column;
  }
  .subject-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 2.2rem;
  }
}
