

/* Element selectors, HTML Web Development slide 68 */
body {
  margin: 0;
  color: #171717;
  /* A fallback font is listed after the one we want, slide 57 */
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 16px;
}

h1, h2, h3, h4, h5 {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
}

a {
  text-decoration: none;
}

/* Navbar */
/* border-collapse from slide 90, table width from slide 91 */
.navbar {
  width: 100%;
  border-collapse: collapse;
  background-color: #006093;
}

/* Cell padding, slide 92 */
.navbar td {
  padding-top: 16px;
  padding-bottom: 16px;
  padding-left: 24px;
  padding-right: 24px;
}

.navbar-logo {
  width: 240px;
}

/* Text alignment, slide 59 */
.navbar-links {
  text-align: center;
}

.navbar-links a {
  color: #ffffff;
  font-size: 17px;
  padding-left: 12px;
  padding-right: 12px;
}

.navbar-links a.active {
  text-decoration: underline;
}

.navbar-button {
  width: 240px;
  text-align: right;
}

/* Buttons */
/* Background colours, slide 55 */
.button-teal {
  background-color: #006093;
  color: #ffffff;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  padding: 14px 34px;
}

.button-sky {
  background-color: #6ac5e8;
  color: #ffffff;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  padding: 12px 28px;
  border-radius: 10px;
}

/* Page header */
.page-header {
  background-color: #6ac5e8;
  padding-top: 60px;
  padding-bottom: 60px;


}

.page-header-table {
  width: 100%;
}

.page-header-table td {
  padding-left: 40px;
  padding-right: 40px;
}

.page-header-left h1 {
  color: #006093;
  font-size: 62px;
  margin-top: 0;
  margin-bottom: 30px;
}

.page-header-right {
  width: 38%;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 22px;
}

/* Footer */
.footer {
  width: 100%;
  background-color: #ffffff;
  /* Border, slide 82 */
  border-top: 1px solid #eeeeee;
}

.footer td {
  padding: 50px 40px 20px 40px;
}

.footer-tagline {
  color: #006093;
  width: 280px;
}

.footer-contact h5 {
  font-size: 21px;
  margin-bottom: 22px;
}

.footer-contact p {
  margin-bottom: 18px;
}

.footer-bottom-bar {
  background-color: #006093;
  color: #ffffff;
  text-align: center;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* About page */
.about-top {
  padding: 50px 40px 30px 40px;
}

.about-top h1 {
  font-size: 40px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.about-top p {
  font-size: 19px;
  margin-top: 0;
  margin-bottom: 10px;
}

.who-we-are {
  padding-left: 40px;
  padding-right: 40px;
}

.who-we-are-box {
  background-color: #6ac5e8;
  border-radius: 20px;
  text-align: center;
  padding: 30px 60px 40px 60px;
}

.who-we-are-box h2 {
  font-size: 30px;
  margin-bottom: 30px;
}

.who-we-are-box p {
  margin-bottom: 22px;
}

/* Our approach */
.our-approach {
  width: 100%;
  margin-top: 60px;
  margin-bottom: 50px;
}

/* Cell padding, slide 92 */
.our-approach td {
  padding-left: 40px;
  padding-right: 40px;
}

.our-approach h2 {
  font-size: 34px;
  margin-top: 0;
  margin-bottom: 30px;
}

.our-approach h5 {
  font-size: 18px;
  margin-bottom: 6px;
}

.our-approach p {
  margin-top: 0;
  margin-bottom: 26px;
}

/* Column width, slide 91 */
.our-approach-photo {
  width: 340px;
  text-align: center;
}

/* Our courses */
.our-courses {
  padding: 50px 40px 20px 40px;
}

.our-courses h2 {
  color: #006093;
  font-size: 36px;
  text-align: center;
  margin-bottom: 10px;
}

.heading-line {
  width: 70px;
  border: 2px solid #6ac5e8;
  margin-bottom: 40px;
}

.course-table {
  width: 100%;
}

/* Each card takes half of the row, slide 91 */
.course-table td {
  width: 50%;
  vertical-align: top;
  padding: 10px;
}

.course-card {
  background-color: #006093;
  color: #ffffff;
  border-radius: 14px;
  padding: 25px 30px 20px 30px;
}

.course-card h3 {
  font-size: 26px;
  margin-top: 0;
  margin-bottom: 6px;
}

.course-card li {
  margin-bottom: 12px;
}

/* inline-block makes the padding of the two buttons push the lines apart.
   display is not in the slides. */
.course-card .button-sky {
  display: inline-block;
  margin-bottom: 8px;
}

.course-level {
  font-weight: bold;
  margin-top: 0;
}

/* Why choose us */
.why-choose {
  padding: 30px 40px 60px 40px;
}

.why-choose h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
}

.why-choose-table {
  width: 100%;
}

.why-choose-table td {
  width: 25%;
  vertical-align: top;
  text-align: center;
  padding-left: 15px;
  padding-right: 15px;
}

.why-choose-table h4 {
  margin-top: 14px;
  margin-bottom: 8px;
}

/* this box has no icon so the heading is pushed down to line up */
.why-choose-table .no-icon h4 {
  margin-top: 62px;
}

/* Course pages */
.breadcrumb {
  padding: 18px 40px 0 40px;
}

.breadcrumb a {
  color: #006093;
}

.course-top {
  width: 100%;
}

.course-top td {
  padding: 30px 40px;
  vertical-align: middle;
}

.course-top-text h1 {
  font-size: 44px;
  margin-bottom: 10px;
}

.course-top-badge {
  width: 38%;
  text-align: center;
}

.info-strip {
  padding-left: 40px;
  padding-right: 40px;
}

.info-table {
  width: 100%;
  background-color: #6ac5e8;
  border-radius: 16px;
}

.info-table td {
  width: 25%;
  vertical-align: top;
  text-align: center;
  padding: 30px 15px 25px 15px;
}

.info-table h4 {
  margin-top: 14px;
  margin-bottom: 6px;
}

.info-table p {
  margin-top: 0;
}

.learn-table {
  width: 100%;
  margin-top: 30px;
  margin-bottom: 50px;
}

.learn-table td {
  padding: 20px 40px;
  vertical-align: middle;
}

.learn-text h2 {
  font-size: 34px;
  margin-bottom: 25px;
}

.learn-text li {
  margin-bottom: 10px;
}

.learn-photo {
  width: 40%;
  text-align: center;
}

/* Contact page */
.contact-top {
  text-align: center;
  padding: 45px 40px 10px 40px;
}

.contact-top h1 {
  color: #006093;
  font-size: 48px;
  margin-bottom: 15px;
}

.contact-table {
  width: 100%;
  margin-bottom: 50px;
}

.contact-table td {
  padding: 20px 40px;
  vertical-align: top;
}

.contact-details {
  width: 38%;
}

.get-in-touch {
  background-color: #6ac5e8;
  border-radius: 16px;
  padding: 25px 30px 30px 30px;
}

.get-in-touch h3 {
  font-size: 26px;
  margin-top: 0;
}

.contact-form h3 {
  font-size: 26px;
  margin-top: 0;
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

/* box-sizing keeps the padding inside the box so the fields do not
   grow wider than the cell. It is not in the slides. */
.contact-form input,
.contact-form select,
.contact-form textarea,
.enquiry-form input,
.enquiry-form select {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  margin-bottom: 18px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 15px;
}

.contact-form button,
.enquiry-form button {
  border: 0;
  font-size: 16px;
}

/* Enquiry page */
/* Text alignment, slide 59 */
.enquiry-top {
  text-align: center;
  padding: 45px 40px 5px 40px;
}

/* Text colour, slide 46 */
.enquiry-top h1 {
  color: #006093;
  font-size: 48px;
  margin-bottom: 15px;
}

/* Padding, slide 80 */
.enquiry-form {
  padding: 10px 60px 50px 60px;
}

.enquiry-form h3 {
  color: #006093;
  font-size: 20px;
  margin-top: 34px;
  margin-bottom: 14px;
}

.enquiry-form label {
  display: block;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 6px;
}

.enquiry-button {
  text-align: center;
  margin-top: 35px;
}

/* Message shown after a form is saved to the database.
   Padding slide 80, border slide 82, background colour slide 55 */
.form-message {
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-weight: bold;
}

.form-message-success {
  background-color: #e3f4e8;
  border: 1px solid #2f8f4e;
  color: #1f6b39;
}

.form-message-error {
  background-color: #fdeaea;
  border: 1px solid #c0392b;
  color: #a32c20;
}

/* Mobile screens. */
@media (max-width: 768px) {

  /* every table stacks into a single column. The browser puts a tbody
     around the rows so that has to stack as well. */
  table,
  tbody,
  tr,
  td {
    display: block;
    width: auto;
    text-align: center;
  }

  /* the cells that were given a width for the laptop layout go back
     to full width once they are stacked */
  .navbar-logo,
  .navbar-button,
  .page-header-right,
  .course-table td,
  .why-choose-table td,
  .course-top-badge,
  .info-table td,
  .learn-photo,
  .contact-details,
  .our-approach-photo {
    width: auto;
  }

  .navbar td {
    padding-top: 10px;
    padding-bottom: 15px;
  }

  .navbar-links a {
    font-size: 16px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .page-header {
    padding-top: 35px;
    padding-bottom: 35px;
  }

  .page-header-table td {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-header-left h1 {
    font-size: 38px;
    margin-bottom: 24px;
  }

  .page-header-right {
    font-size: 18px;
    padding-top: 30px;
  }

  .footer td {
    padding: 25px 20px 5px 20px;
  }

  .footer-contact h5 {
    margin-top: 5px;
  }

  .footer-tagline {
    width: auto;
  }

  .about-top {
    padding: 30px 20px 20px 20px;
  }

  .about-top h1 {
    font-size: 28px;
  }

  .about-top p {
    font-size: 17px;
  }

  .who-we-are {
    padding-left: 20px;
    padding-right: 20px;
  }

  .who-we-are-box {
    padding: 25px 20px 30px 20px;
  }

  .our-approach,
  .our-approach tr,
  .our-approach td {
    display: block;
    width: auto;
    text-align: center;
  }

  .navbar-button {
    text-align: center;
  }

  /* the boxes are stacked now so the heading does not need pushing down */
  .why-choose-table .no-icon h4 {
    margin-top: 14px;
  }

  .our-approach td {
    padding-left: 20px;
    padding-right: 20px;
  }

  .our-courses,
  .why-choose {
    padding-left: 20px;
    padding-right: 20px;
  }

  .our-courses h2,
  .why-choose h2 {
    font-size: 28px;
  }

  .why-choose-table td,
  .info-table td {
    padding-bottom: 25px;
  }

  .course-card,
  .course-card ul {
    text-align: left;
  }

  .breadcrumb,
  .info-strip {
    padding-left: 20px;
    padding-right: 20px;
  }

  .course-top td,
  .learn-table td,
  .contact-table td {
    padding-left: 20px;
    padding-right: 20px;
  }

  .course-top-text h1 {
    font-size: 32px;
  }

  .learn-text ul {
    text-align: left;
  }

  .contact-top,
  .enquiry-top {
    padding-left: 20px;
    padding-right: 20px;
  }

  .enquiry-top h1 {
    font-size: 34px;
  }

  .enquiry-form {
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-top h1 {
    font-size: 34px;
  }

  .contact-table .contact-form {
    text-align: left;
  }
}
