.toefl__footer {
  margin-top: 60px;
  padding: 40px 0 20px 0;
  border-top: solid 1px var(--border-grey-color);
}

/************** Primary Footer TOP *****************/

.toefl__footer__primary {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.toefl__footer__link__ul {
  list-style-type: none;
  margin: 20px 0 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.toefl__footer__left {
  height: 100%;
  max-width: 70%;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 65px;
  justify-content: space-between;
}

.toefl__footer__left a,
.toefl__footer__left p {
  display: block;
}

.toefl__footer__left p {
  font-size: 16px;
  color: var(--black-color);
}

.toefl__footer__right {
  display: flex;
  align-items: start;
  gap: 50px;
  max-width: 30%;
  flex-shrink: 0;
}

/*********** Accordion ****************/

.toefl__footer__accordion {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.toefl__footer__accordionItem h3 {
  font-size: 18px;
  font-weight: 600;
  padding: 0px 16px;
  line-height: 1;
  text-align: center;
  color: var(--black-color);
  margin-bottom: 10px;
}

.toefl__footer__accordionContent {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.toefl__footer__accordionContent a {
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  padding: 8px 16px;
  flex-shrink: 0;
  border-radius: 50px;
  color: var(--black-color);
  margin-bottom: 5px;
}

.toefl__footer__accordionContent a:hover {
  color: #ffbc1a;
  background-color: var(--text-field-shade-color);
}

/************** Secondary Footer BOTTOM *****************/

.toefl__footer__secondary {
  margin-top: 30px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-grey-color);
}

.toefl__footer__secondary p {
  font-size: 14px;
  line-height: 1;
  text-align: left;
  color: var(--black-color);
}

.toefl__footer__secondary__txt a {
  padding: 8px;
  color: var(--black-color);
  text-decoration: none;
  border-radius: 50px;
}

.toefl__footer__secondary__txt a:hover {
  color: var(--selection-yellow-color);
  background-color: var(--text-field-shade-color);
}

/************************ TOEFL FAQ CSS **************************/

.toefl__faq:has(+ .container) {
  padding: 0;
}

.toefl__faq {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.toefl__faq h2 {
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 600;
}
.toefl__faq__answer {
  display: none;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05);
  border-left: solid 1px var(--border-grey-color);
  border-right: solid 1px var(--border-grey-color);
  border-bottom: solid 1px var(--border-grey-color);
  background-color: var(--white-color);
  font-size: 16px;
  font-weight: 400;
  color: var(--black-color);
  padding: 20px;
}
.toefl__faq__answer.active {
  display: block;
}
.toefl__faq__question {
  padding: 16px;
  font-size: 16px;
  font-weight: 400;
  color: var(--black-color);
  border: solid 1px var(--border-grey-color);
  background-color: var(--primary-light-shade-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.toefl__faq__question::after {
  content: " ";
  display: inline-block;
  background-image: url(/images/sprite/master-sprite.webp);
  background-position: -450px -22px;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.toefl__faq__question.active::after {
  background-position: -479px -27px;
  width: 14px;
  height: 2px;
  flex-shrink: 0;
}

.toefl__faq__answer p {
  margin: 0;
  max-width: 860px;
}

.toefl__faq__answer ul {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.toefl__faq__answer ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 5px;
}

.toefl__faq__answer ul li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0px;
  background: url(/images/sprite/master-sprite.webp) no-repeat -198px -72px;
  width: 9px;
  height: 12px;
}

/************************* TOEFL Location CSS ***************************/

.toefl__location {
  margin-top: 80px;
  display: flex;
}
.toefl__location__row {
  display: flex;
  gap: 10px;
}
.toefl__location__column {
  flex: 0 0 auto;
  width: 50%;
  font-size: 16px;
}
.toefl__location__column span {
  font-size: 16px;
}
.toefl__location .locationTab {
  padding: 30px;
  padding-right: 42px;
  max-width: 552px;
  background-color: rgba(181, 212, 241, 0.4);
  border-radius: 8px 0 0 8px;
  border-left: solid 1px var(--border-grey-color);
  border-top: solid 1px var(--border-grey-color);
  border-bottom: solid 1px var(--border-grey-color);
}
.toefl__location .locationTab h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.22;
  color: var(--black-color);
  margin-bottom: 22px;
}
.toefl__location .locationTab .locationTabCities {
  list-style-type: none;
  display: flex;
  row-gap: 12px;
  column-gap: 10px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-grey-color);
  margin-bottom: 20px;
}
.toefl__location .locationTab .locationTabCities li {
  flex-basis: 48%;
  flex-grow: 1;
  max-width: 235px;
  border-radius: 4px;
  border: solid 1px var(--border-grey-color);
  background-color: var(--white-color);
  padding: 6px 16px;
  position: relative;
}
.toefl__location .locationTab .locationTabCities li label {
  font-size: 16px;
  font-weight: normal;
  line-height: 1.33;
  text-align: left;
  color: var(--black-color);
}
.toefl__location .locationTab .locationTabCities li input {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.toefl__location .locationTab .locationTabCities li:has(input:checked) {
  border-left: 4px solid var(--primary-color);
  background-color: var(--primary-light-shade-color);
}
.toefl__location .locationTab .locationTabCities li input:checked + label {
  font-size: 16px;
  font-weight: 600;
  color: var(--black-color);
}
.toefl__location .locationTab .selectedCityArea .cityLocationAddress {
  display: none;
}
.toefl__location .locationTab .selectedCityArea .cityLocationAddress h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
}
.phoneIcon {
  background-position: -327px -174px;
  width: 18px;
  height: 18px;
  transform: scale(0.9);
}
.emailIcon {
  background-position: -339px -26px;
  width: 17px;
  height: 12px;
}
.toefl__location
  .locationTab
  .selectedCityArea
  .cityLocationAddress
  .locationPhone {
  margin-bottom: 5px;
}
.toefl__location .locationTab .selectedCityArea .selectedCity {
  display: block;
}
.toefl__location .mapTab {
  padding: 0px;
}
.toefl__location .mapTab .selectedCityMap {
  display: none;
  height: 100%;
}
.toefl__location .mapTab .selectedCityMap iframe {
  border-radius: 0 8px 8px 0;
  border: 1px solid var(--border-grey-color);
  height: 100% !important;
}
.toefl__location .mapTab .selectedCityMap iframe .review-box {
  display: none;
}
.toefl__location .mapTab .selectedCity {
  display: block;
}
.toefl__location__desktop {
  display: flex;
  margin-bottom: 60px;
}
.toefl__location__mobile {
  display: none;
}
.top-margin {
  margin-top: 60px;
}
@media (max-width: 1023px) {
  .toefl__footer {
    margin-top: 40px;
    padding: 16px 0;
  }

  /************** Primary Footer TOP *****************/

  .toefl__footer__primary {
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: start;
  }

  .toefl__footer__link__ul {
    margin: 16px 0 0 0;
    align-items: center;
    gap: 10px;
  }

  .toefl__footer__left {
    width: 100%;
    max-width: 100%;
    display: flex;
    gap: 16px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .toefl__footer__left p {
    font-size: 15px;
  }

  .toefl__footer__right {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-grey-color);
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 16px;
  }
  /*********** Accordion ****************/

  .toefl__footer__accordion {
    flex-direction: column;
    justify-content: start;
    align-items: start;
    width: 100%;
  }

  .toefl__footer__accordionItem {
    width: 100%;
  }

  .toefl__footer__accordionItem h3 {
    width: 100%;
    flex-shrink: 0;
    text-align: start;
    position: relative;
    padding: 5px 0;
    margin-bottom: 5px;
  }

  .toefl__footer__accordionTrigger::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    background-image: url(/images/sprite/master-sprite.webp);
    background-position: -249px -70px;
    width: 14px;
    height: 8px;
    transition-property: transform;
    transition-duration: 0.5s;
    transition-timing-function: linear;
  }

  .toefl__footer__accordionTrigger.active::before {
    transform: rotate(360deg);
  }

  .toefl__footer__accordionContent {
    width: 100%;
    flex-direction: column;
    justify-content: start;
    align-items: start;
  }

  .toefl__footer__accordionContent a {
    width: 100%;
    padding: 8px 0px;
    flex-shrink: 0;
    color: var(--black-color);
    margin-bottom: 5px;
  }

  .toefl__footer__accordionContent a:hover {
    color: var(--selection-yellow-color);
    background-color: transparent;
  }

  /************** Secondary Footer BOTTOM *****************/

  .toefl__footer__secondary {
    margin-top: 16px;
    padding-top: 20px;
    flex-direction: column;
    display: flex;
    align-items: start;
    gap: 10px;
    justify-content: space-between;
  }

  .toefl__footer__secondary p {
    display: flex;
    gap: 10px;
    flex-direction: column;
  }

  .toefl__footer__secondary p span:nth-child(2) span:nth-child(1) a {
    padding: 16px 0px 16px 0;
  }

  .toefl__footer__secondary__txt a {
    padding: 8px 0px;
  }

  .toefl__footer__secondary p span a:hover {
    background-color: transparent;
  }

  /************************ TOEFL FAQ CSS **************************/
  .toefl__faq {
    gap: 16px;
  }
  .toefl__faq h2 {
    font-size: 24px;
    margin-bottom: 4px;
  }
  .toefl__faq__answer {
    margin-top: 0;
    border-top: 0;
  }

  /******************** TOEFL Location CSS *****************/

  .toefl__mobile__container {
    padding: 0 16px;
  }
  .toefl__location {
    margin-top: 40px;
    margin-left: -16px;
    margin-right: -16px;
    background-color: #e1eef9;
    padding: 40px 16px;
  }
  .toefl__location_container {
    background-color: var(--white-color);
    padding: 16px;
    border-radius: 6px;
  }
  .toefl__location_container h2 {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--black-color);
  }
  .toefl__location .locationAccordion {
    margin: 0px;
    flex-wrap: wrap;
    gap: 0;
  }
  .toefl__location .accordion {
    position: relative;
    background-color: var(--white-color);
    border-radius: 4px;
    border: solid 1px var(--border-grey-color);
    color: var(--black-color);
    cursor: pointer;
    padding: 6px 16px;
    width: 100%;
    height: 36px;
    text-align: left;
    outline: none;
    font-size: 16px;
    line-height: 24px;
    transition: 0.4s;
  }
  .toefl__location .active,
  .toefl__location .accordion.active:hover {
    font-weight: 600;
    color: var(--black-color);
    border-left: 3px solid var(--primary-color);
    background-color: var(--primary-light-shade-color);
  }
  .toefl__location .accordion:after {
    content: "";
    position: absolute;
    right: 10px;
    top: 12px;
    background-image: url(/images/sprite/master-sprite.webp);
    background-position: -248px -123px;
    width: 14px;
    height: 9px;
    float: right;
    margin-left: 5px;
    transition-property: rotate;
    transition-duration: 0.5s;
    transition-timing-function: linear;
  }
  .toefl__location .accordion.active:after {
    transform: rotate(180deg);
  }
  .toefl__location .panel {
    background-color: var(--white-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    margin-bottom: 15px;
  }
  .toefl__location .panel .innerPanel h3 {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 8px;
    margin-top: 16px;
  }
  .toefl__location .panel .innerPanel .col-md-6 {
    font-size: 14px;
    font-weight: normal;
    line-height: 1.71;
    color: var(--black-color);
    margin-bottom: 8px;
  }
  .toefl__location .panel .innerPanel .col-md-6:last-child {
    margin-bottom: 16px;
  }
  .toefl__location .panel .selectedCityMap iframe {
    width: 100%;
    height: 296px !important;
  }
  .toefl__location__detail {
    font-size: 14px;
    font-weight: 400;
    color: var(--black-color);
  }
  .toefl__location__contact {
    margin-top: 8px;
    margin-bottom: 16px;
  }
  .locationPhone {
    margin-bottom: 5px;
  }
  .phoneIcon {
    margin-right: 16px;
  }
  .emailIcon {
    margin-right: 10px;
  }
  .toefl__location__desktop {
    display: none;
  }
  .toefl__location__mobile {
    display: block;
  }
}
