/* Start Variables */
:root {
  --main-color: #10cab7;
  --secondary-color: #2c4755;
  --section-padding: 60px;
  --section-background: #f6f6f6;
  --transition-duration: 0.3s;
}
/* End Variables */

/* Start Global Rules */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Work Sans", sans-serif;
}

.container {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

/* Small */
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}

/* Medium */
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}

/* Large */
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}
/* End Global Rules */

/* Start Special Components */
.special-heading {
  color: #cad5dd;
  font-size: 100px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -3px;
  margin: 0;
}

.special-heading + p {
  color: #706f6f;
  margin: -15px 0 0;
  font-size: 20px;
  text-align: center;
}

@media (max-width: 768px) {
  .special-heading {
    font-size: 50px;
  }
}
/* Start Special Components */

/* Start Header */
header {
  padding: 20px;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  width: 60px;
}

header .links {
  position: relative;
}

header .links:hover .icon span:nth-child(2) {
  width: 100%;
}

header .links .icon {
  width: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

header .links .icon span {
  background-color: #333;
  margin-bottom: 5px;
  height: 2px;
}

header .links .icon span:first-child {
  width: 100%;
}

header .links .icon span:nth-child(2) {
  width: 60%;
  transition: var(--transition-duration);
}

header .links .icon span:last-child {
  width: 100%;
}

header .links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #f6f6f6;
  position: absolute;
  right: 0;
  min-width: 200px;
  top: calc(100% + 15px);
  display: none;
  z-index: 1;
}

header .links:hover ul {
  display: block;
}

header .links ul::before {
  content: "";
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent #f6f6f6 transparent;
  position: absolute;
  right: 5px;
  top: -20px;
}

header .links ul li a {
  display: block;
  padding: 15px;
  text-decoration: none;
  color: #333;
  transition: var(--transition-duration);
}

header .links ul li a:hover {
  padding-left: 25px;
}

header .links ul li:not(:last-child) a {
  border-bottom: 1px solid #ddd;
}
/* End Header */

/* Start Landing */
main {
  background-image: url(../images/landing.jpg);
  background-size: cover;
  height: calc(100vh - 64px);
  position: relative;
}

main .welcome {
  position: absolute;
  left: 58%;
  top: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
  width: 320px;
  max-width: 100%;
}

main .welcome h1 {
  margin: 0;
  font-weight: bold;
  font-size: 50px;
  color: #004263;
}

main .welcome p {
  font-size: 19px;
  line-height: 1.8;
  color: #6e6e6e;
}
/* End Landing */

/* Start Branches */
.branches {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  background-color: var(--section-background);
}

.branches .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 20px;
}

.branches article {
  padding: 20px;
  text-align: center;
}

.branches article i {
  color: var(--main-color);
}

.branches article h3 {
  font-weight: 800;
  margin: 30px 0;
}

.branches article p {
  line-height: 1.8;
  color: #777;
  font-size: 17px;
}
/* End Branches */

/* Start Subjects */
.subjects {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  
}

.subjects .subjects-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 20px;
  margin-top: 100px;
}

.subjects .subjects-group .sub {
  display: flex;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .subjects .subjects-group .sub {
    flex-direction: column;
    text-align: center;
  }
}

.subjects .subjects-group .sub .sub-icons {
  color: var(--main-color);
  flex-basis: 60px;
}

.subjects .subjects-group .sub .description {
  flex: 1;
}

.subjects .subjects-group .sub .description h3 {
  margin: 0 0 20px;
}

.subjects .subjects-group .sub .description p {
  color: #444;
  font-weight: 300;
  line-height: 1.6;
}

.subjects .subjects-group .image {
  text-align: center;
  position: relative;
}

.subjects .subjects-group .image::before {
  content: "";
  background-color: var(--secondary-color);
  width: 100px;
  height: calc(100% + 100px);
  top: -50px;
  position: absolute;
  right: 0;
  z-index: -1;
}

.subjects .subjects-group .image img {
  width: 260px;
}

@media (max-width: 1199px) {
  .image-column {
    display: none;
  }
}
/* End Subjects */

/* Start Teachers */
.teachers {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  background-color: var(--section-background);
}

.teachers .teachers-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 20px;
  margin-top: 80px;
}

.teachers .teachers-group .card {
  background-color: white;
}

.teachers .teachers-group .card  img {
  max-width: 100%;
}

.teachers .teachers-group .card .info {
  padding: 20px;
}

.teachers .teachers-group .card .info h3 {
  margin: 0;
}

.teachers .teachers-group .card .info p {
  color: #777;
  line-height: 1.6;
  margin-bottom: 0;
}

.teachers .teachers-group .card {
  background-color: white;
}

@media (max-width: 768px) {
  .teachers .teachers-group .card {
    text-align: center;
  }
}
/* End Teachers */

/* Start Contact */
.contact {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  background-color: var(--section-background);
}

.contact .info {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  text-align: center;
}

.contact .info .label {
  color: var(--secondary-color);
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 15px;
}

.contact .info .mail {
  display: block;
  color: var(--main-color);
  font-size: 35px;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 15px;
}

.contact .info .social {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  font-size: 18px;
}

.contact .info .social i {
  margin-left: 10px;
  color: var(--secondary-color);
}

@media (max-width: 768px) {
  .contact .info .label,
  .contact .info .mail {
    font-size: 25px;
  }
}
/* End Contact */

/* Start Footer */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 30px;
  text-align: center;
  font-size: 18px;
}

footer span {
  color: var(--main-color);
  font-weight: bold;
}
/* End Footer */