.navbar {
  background: var(--primary);
  background: linear-gradient(95deg, var(--primary) 40%, var(--yellow) 100%) !important;
  box-shadow: 0 0 7px 1px rgba(0, 0, 0, 0.1);
}

.testimonials .row {
  width: 100%;
}

.testimonial {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  color: #9e9e9e;
  display: inline-block;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  position: relative;
  text-align: center;
  background-color: #ffffff;
  border-radius: 5px;
  border-top: 5px solid var(--yellow);
  margin-top: 2rem;
}

.testimonial *,
.testimonial *:before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.1s ease-out;
  transition: all 0.1s ease-out;
}

.testimonial figcaption {
  padding: 2rem;
}

.testimonial figcaption:before {
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  color: var(--yellow);
  content: '"';
  font-size: 32px;
  font-style: normal;
  left: 50%;
  line-height: 60px;
  position: absolute;
  top: -30px;
  width: 60px;
}

.testimonial h3 {
  color: #3c3c3c;
  font-size: 20px;
  font-weight: 300;
  line-height: 24px;
  margin: 10px 0 5px;
}

.testimonial h4 {
  font-weight: 400;
  margin: 0;
  opacity: 0.5;
}

.testimonial blockquote {
  font-style: italic;
  font-weight: 300;
  margin: 0 0 20px;
}

/* Header Section */
.header {
  background: url("/static/images/young-student-sitting-university-library-break-from-studying.webp");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;

  color: #fff;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-section h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero-section p {
  font-size: 18px;
}

.header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-section h1,
.hero-section p {
  position: relative;
  z-index: 2;
  width: 100%;
  color: #fff !important;
}

/* Why Stand Out Section */
.why-stand-out {
  text-align: center;
}

.feature-image {
  flex-wrap: wrap;
  flex: 1;
  padding: 20px;
}

.feature-image img {
  width: 100%;
  max-width: 400px !important;
}

.feature-text {
  flex: 1;
  padding: 20px;
}

.reverse {
  flex-direction: row-reverse;
}

/* use grid 1 col on small, 2 on medium, 3 on lg and 4 or xl */
.subject-offerings,
.testimonials {
  background: #eef1f5;
  text-align: center;
}

.subjects-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  flex-wrap: wrap;
}

main ul {
  margin: 0;
  padding-left: 1.2rem;
  text-align: start;
}

main ul li {
  position: relative;
  list-style-type: none;
  padding-left: 2.5rem;
  margin-bottom: 0.5rem;
}

main ul li:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: -2px;
  width: 5px;
  height: 11px;
  border-width: 0 2px 2px 0;
  border-style: solid;
  border-color: #00a8a8;
  transform-origin: bottom left;
  transform: rotate(45deg);
}

/* Past Papers Section Styles */
.past-papers .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.past-papers .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.past-papers .card-header {
  border-bottom: none;
}

.past-papers .list-unstyled li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.past-papers .list-unstyled li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.past-papers .btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  transition: all 0.3s ease;
}

.past-papers .btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
}

/* Subject Cards Enhancements */
.subject-card {
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.subject-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.subject-card h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* List Styles for Summary Section */
.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.list-unstyled li {
  padding: 0.25rem 0;
}

@media (max-width: 601px) {
  .why-stand-out .row {
    display: block !important;
  }
}

/* Tablet styles - 601px to 900px */
@media (min-width: 601px) and (max-width: 900px) {
  .subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop and Laptop styles - above 900px */
@media (min-width: 901px) {
  .subjects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

section{
  padding: 4rem 0;
}

h2{
  margin-bottom: 2rem;
}