/* GENERAL ABOUT PAGE SECTION STYLING */
main {
  background: linear-gradient(#003366, rgba(35, 131, 226, 0.6), #003366);
  padding: 40px 20px;
  width:100%;
  margin: auto;
  overflow-x: hidden;
}

/* Clean container style for readability */
.section-1, .section-2, .section-4, .section-5, .section-6, .section-7, .section-8{
  background: white;
  padding: 40px;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 1000px;
  color: #222;
  text-align: left;
}

/* Headings with KOILS purple */
.content h2 {
  color: #4b0082;
  font-size: 28px;
  margin-bottom: 20px;
}

/* Paragraphs and list tweaks */
.content p {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.content ul {
  padding-left: 20px;
  margin-top: 10px;
}

.content ul li {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* WHO WE ARE WITH IMAGE SIDE BY SIDE */
.section-4 {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.section-4 .content {
  flex: 1 1 60%;
}

/* Add photo next to text */
.section-4::after {
  content: "";
  flex: 1 1 35%;
  background-image: url("../css/pictures/WomanInWheelchair.png");
  background-size: cover;
  background-position: center;
  height: 300px;
  border-radius: 12px;
}

.section-5 {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.section-5 .content {
  flex: 1 1 60%;
}

.section-5 .img {
  flex: 1 1 35%;
  background-image: url("../css/pictures/koils_pic1.jpg");
  background-size: cover;
  background-position: center;
  height: 300px;
  border-radius: 12px;
}

/* Home Page Button */
.section-5 .content .learn-more{
  display: inline-block;
  margin-left: auto;      /* pushes it to the right */
  background: #4151e3;
  color: white !important;
  font-weight: bold;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-align: center;
  transition: all 0.3s ease;
}

.section-5 .content .learn-more:hover{
  background: rgb(57, 136, 220);
  color: white !important;
  transition: 0.25s;
}

/* WHO WE ARE WITH IMAGE SIDE BY SIDE */
.section-6 {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.section-6 .content {
  flex: 1 1 60%;
}

/* Add photo next to text */
.section-6::after {
  content: "";
  flex: 1 1 35%;
  background-image: url("../css/pictures/koils_pic2.jpg");
  background-size: cover;
  background-position: center;
  height: 300px;
  border-radius: 12px;
}

.section-7 {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  text-align: center;
  padding: 12px;
}

.section-7 .content {
  flex: 1 1 60%;
}

.section-7 img {
  max-width: 100%;   /* shrink down to fit parent container */
  height: 400px;      /* maintain aspect ratio */
  border-radius: 10px;
  display: block;    /* removes little gaps */
  margin: 0 auto;    /* center image */
}

.section-7 .content .learn-more{
  display: inline-block;
  margin-left: auto;      /* pushes it to the right */
  background: #4151e3;
  color: white !important;
  font-weight: bold;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-align: center;
  transition: all 0.3s ease;
}

.section-7 .content .learn-more:hover{
  background: rgb(57, 136, 220);
  color: white !important;
  transition: 0.25s;
}

/* Wrapper around both section-2 blocks */
.section-8 {
  display: inline-block;
  vertical-align: top;
  width: 48%;         /* two sections side by side */
  margin: 1%;         /* space between them */
  box-sizing: border-box;
}


/* Make them stack on smaller screens */
@media (max-width: 900px) {
  .section-8 {
    display: block;
    width: 100%;
    margin: 10px auto;
  }
  .section-7 {
    display: block;
    width: 100%;
  }

  .section-7 .content .learn-more {
    display: block;        /* ensures it takes full width behavior */
    margin: 20px auto 0;   /* auto left/right centers it */
    text-align: center;    /* aligns text inside button */
  }
}

/* Make mobile friendly */
@media (max-width: 768px) {
  .section-4 {
    flex-direction: column;
  }

  .section-4::after {
    order: -1;
    width: 100%;
    height: 200px;
  }
  .section-5 {
    display: flex;
  }

  .section-5 .img {
    order:2;
    width: 100%;
    height: 400px;
  }

  .section-5 .content {
    order: 3;
  }

  .section-5 a{
    order:;
  }

  .section-5 .content .learn-more {
    order: 3;
    display: block;
    margin: 20px auto 0 auto;
  }
}