.english-phonetics__header {
  display: flex;
  justify-content: center;
}

.english-phonetics__header img {
  max-width: 1000px;
  width:100%;
}

section:not(:first-of-type) {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0 auto;
  padding: 4.5rem 0;
}

section:nth(6) {
  padding-bottom: 0;
}

section:last-of-type {
  padding-top: 0;
  padding-bottom: 3rem;
  margin-bottom: 0;
}

section {
  background-color: #ffffff;
}

section:nth-child(odd){
  background-color:#F0EEF6;
}

.english-phonetics__cta{
  background-color:#FDF1D8 !important;
}

.english-phonetics__header__wrapper{
  background-color:#69447B !important;
}


.english-phonetics__wrapper > div {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.english-phonetics__cta-title {
  margin-top: 0;
  padding: 1rem 2rem;
  font-size: 2rem;
  font-weight: 900;
}

.english-phonetics__title {
  margin-top: 0;
  border-bottom: solid 1px #6b00bd;
  font-size: 2.25rem;
  text-align: center;
  color: #707070;
}

.english-phonetics__sub-title {
  margin-top: 0;
  font-size: 2rem;
  text-align: center;
  color: #707070;
}

.english-phonetics__wrapper {
  max-width: 60rem;
  color: #707070;
}

.english-phonetics__wrapper > span {
  font-size: 1rem;
  color: #707070;
  text-align: center;
  display: block;
}

.english-phonetics__description {
  display: flex;
  flex-direction: row;
}

.english-phonetics__description > span {
  font-size: 1rem;
}

.english-phonetics__description > span{
  width: 50%;
}
.english-phonetics__description > img {
  max-height: 180px;
  height:100%;
  object-fit:contain;
}

.english-phonetics__proficiency__container {
  display: flex;
}

.english-phonetics__proficiency__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 33%;
}

.english-phonetics__proficiency__item > img {
  height: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.english-phonetics__proficiency__item > span {
  font-size: 1rem;
}

.english-phonetics__curriculum__structure__container {
  display: flex;
  justify-content: center !important;
  margin: 4rem 0;
}

.english-phonetics__curriculum__structure__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  max-width: 33%;
  width: 15rem;
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
}

.english-phonetics__curriculum__structure__item > span {
  width: 100%;
  border-radius: 0.5rem;
  text-align: center;
  display: block;
}

.english-phonetics__curriculum__structure__item > span:first-child {
  padding: 0.5rem 2rem;
}

.english-phonetics__curriculum__structure__item > span:nth-child(2) {
  padding: 1.5rem 2rem;
  margin-top: 0.5rem;
}

.english-phonetics__curriculum__structure__item:first-child > span {
  background-color: #500dd4;
}

.english-phonetics__curriculum__structure__item:nth-child(2) > span {
  background-color: #14016d;
}

.english-phonetics__curriculum__structure__item:nth-child(2)
  > span:first-child {
  padding: 1.5rem 2rem;
}

.english-phonetics__curriculum__structure__item:nth-child(3) > span {
  background-color: #4f8139;
}

.english-phonetics__curriculum__structure__item:nth-child(3)
  > span:first-child {
  padding: 2rem 2rem;
}

.english-phonetics__tab__item > h4 {
  font-size: 2.25rem;
  color: #500dd4 !important;
}

.english-phonetics__tab__item.book2 > h4 {
  color: #14016d !important;
}

.english-phonetics__tab__item.book3 > h4 {
  color: #4f8139 !important;
}

.english-phonetics__tab__item > ul {
  font-size: 1rem;
  color: #707070;
  list-style: none;
}

.english-phonetics__box {
  margin: 2em 0.5rem;
  background: #f1f1f1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
  border-radius: 1rem;
  width: 50%;
}

.english-phonetics__box .english-phonetics__box-title > h4 {
  font-size: 1.5rem;
  font-weight: bold;
  background: #241a19;
  padding: 0.5rem;
  text-align: center;
  color: #fff;
  letter-spacing: 0.05em;
  margin: 0;
  border-radius: 1rem 1rem 0 0;
}

.english-phonetics__box-description {
  padding: 1rem;
}

.english-phonetics__box-description > span {
  margin: 0;
  font-size: 1rem;
}

.tab-contents > div {
  margin-bottom: 1.5rem;
}
.tab-contents > div > div {
  padding: 0 1rem 1rem 1rem;
}

.tab-contents > div > div > span,
.tab-contents > div > div > ul {
  font-size: 1rem;
}
.tab-contents > div > div > ul {
  margin-top: 0;
}

.tab-contents > div > h4 {
  font-size: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  margin-bottom: 1rem;
}

.tab-contents > div > img {
  width: 100%;
  padding: 0 1rem;
}

.tab-contents > div > span {
  font-size: 0.875rem;
  padding: 0 1rem;
}

.tab {
  max-width: 67.5rem;
  width:100%;
  margin: 0 auto;
  margin-top: 1rem;
  flex-direction: column;
  justify-content: center;
  gap: 0 !important;
}

.tab-list {
  display: flex;
  padding: 0 12.5%;
  margin-top: 1rem;
  justify-content:space-between;
  width:60rem;
}

.tab-list-item {
  width: 208px;
  text-align: center;
  cursor: pointer;
  border: none;
  background-color: #fff;
}

.tab-list-item > img {
  filter: contrast(0.4);
  transition: 0.2s ease;
}
.is-btn-active > img {
  filter: contrast(1);
}

.tab-list-item > img:hover {
  filter: contrast(1);
}

.tab-contents-wrap {
  border: 1px solid #2c2b2d;
  width:100%;
}

.tab-contents {
  display: none;
  padding: 20px;
}

.is-btn-active {
  opacity: 1;
  transition: 0.3s ease;
  margin-bottom: 1rem;
}

.is-contents-active {
  display: block;
}

table {
  width: auto;
  border-spacing: 0;
  font-size: 14px;
}
table th {
  padding: 8px 1rem;
  font-weight: bold;
  border-left: 1px solid #258;
  border-top: 1px solid #258;
  border-bottom: 1px solid #258;
  line-height: 120%;
  text-align: center;
  box-shadow: 0px 1px 1px rgba(255, 255, 255, 0.3) inset;
}
table th:nth-child(1) {
  border-top: none;
  border-left: none;
  background-color: #fff;
}
table th:nth-child(2) {
  background-color: #d6dce4;
}
table th:nth-child(3) {
  background-color: #fce4d6;
}
table th:nth-child(4) {
  background-color: #ffe699;
}
table th:nth-child(5) {
  background-color: #b4c6e7;
}
table th:nth-child(6) {
  background-color: #c6e0b4;
}
table th:first-child {
  border-radius: 5px 0 0 0;
}
table th:last-child {
  border-radius: 0 5px 0 0;
  border-right: 1px solid #258;
  box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.1),
    0px 1px 1px rgba(255, 255, 255, 0.3) inset;
}

table tr td {
  padding: 8px 1rem;
  border-bottom: 1px solid #84b2e0;
  border-left: 1px solid #84b2e0;
  text-align: center;
}
table tr td:last-child {
  border-right: 1px solid #84b2e0;
  box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.1);
}

table tr:nth-child(1n + 1) {
  background: #fff;
}

table tr:nth-child(2n + 1) {
  background: #f1f6fc;
}

tbody tr:first-child {
  background: #898889;
  color: #fff;
}
tbody tr:first-child > td {
  padding: 0.25rem 1rem;
}

table tr:last-child td {
  box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.1);
}
table tr:last-child td:first-child {
  border-radius: 0 0 0 5px;
}
table tr:last-child td:last-child {
  border-radius: 0 0 5px 0;
}

.english-phonetics__wrapper > div > dl {
  width: 50%;
}

.english-phonetics__wrapper > div > dl > dt {
  padding: 10px 10px 10px 35px;
  border-radius: 5px;
  background: #241a19;
  color: #fff;
  text-indent: -25px;
  font-size: 1rem;
  font-weight: bold;
}

.english-phonetics__wrapper > div > dl > dt:before {
  content: "Q.";
  font-weight: bold;
  margin-right: 7px;
}

.english-phonetics__wrapper > div > dl > dd {
  margin: 0.5rem;
  font-size: 1rem;
}

.line-break {
  display: none;
}

.english-phonetics__slider {
  max-width: 80rem;
  gap: 2.5rem;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.english-phonetics {
  text-align: center;
  margin-top: 5rem;
  max-width: 60rem;
}
.english-phonetics > div {
  margin-top: 1.5rem;
}

#mainSwiper {
  width: 100%;
  height: 166px;
}

#mainSwiper .swiper-slide {
  cursor: zoom-in;
  height: 100%;
}

.swiper-slide img {
  height: 100%;
  width: 100%;
}

.swiper-container {
  position: relative;
  width: 70%;
  margin: 0 auto;
}
.swiper-container .swiper-button-prev {
  left: -40px;
}
.swiper-container .swiper-button-next {
  right: -40px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-bg {
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}

.modal-content {
  max-width: 90%;
  width: 800px;
  margin: 0 auto;
}

.english-phonetics__faq {
  font-size: 1.25rem;
  color: #707070;
}

.english-phonetics__faq dt {
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.5rem;
}
.english-phonetics__faq dt:last-child {
  margin-bottom: 0px;
}

.english-phonetics__faq dt::before,
.english-phonetics__faq dd::before {
  margin-right: 0.4em;
}

.english-phonetics__faq dt::before {
  content: "Q";
  color: #707070;
  font-weight: bold;
}

.english-phonetics__faq dd {
  margin: 0 0 2.5em;
  padding: 0.5rem 1.5em 1.5em 0;
  font-size: 1.125rem;
  border-radius: 0.25rem;
}
.english-phonetics__faq dd:last-child {
  margin-bottom: 0px;
}

.english-phonetics__faq dd::before {
  content: "A";
  color: #707070;
  font-weight: bold;
  font-size:1.5rem;
}

@media screen and (max-width: 767px) {
  .english-phonetics__header > img {
    width: 100%;
  }

  .english-phonetics__title {
    font-size: 1.75rem;
  }
  .english-phonetics__sub-title {
    font-size: 1.25rem;
  }

  section:not(:first-of-type) {
    padding: 1.5rem 1rem;
  }

  .english-phonetics__wrapper {
    width: 100%;
  }
  .tab-list{
    width:100%;
  }
  .tab-list-item > img {
    width: 100%;
  }

  .table-wrapper {
    width: 100%;
    overflow-x: scroll;
  }
  .table-wrapper::-webkit-scrollbar {
    background: #fff;
    border-radius: 5px;
    height: 4px;
    border: 1px solid #000;
  }
  .table-wrapper::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 5px;
  }
}

@media screen and (max-width: 480px) {
  .english-phonetics__title {
    font-size: 1.625rem;
  }
  .english-phonetics__wrapper {
    padding: 0 0.5rem;
  }

  .english-phonetics__wrapper > div {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .english-phonetics__wrapper > span {
    text-align: left;
  }

  .english-phonetics__description {
    flex-direction: column-reverse !important;
  }

  .english-phonetics__description > span,
  .english-phonetics__description > img {
    width: 100%;
  }

  .english-phonetics__proficiency__container {
    flex-wrap: nowrap;
    overflow: auto;
    flex-direction: row !important;
    align-items: center;
    height: 342px !important;
  }

  .english-phonetics__proficiency__item {
    width: 275px;
    max-width: 300px;
    margin-right: 1rem;
  }

  .english-phonetics__proficiency__item > img {
    width: 275px;
    max-width: 300px;
    object-fit: contain;
  }

  .english-phonetics__curriculum__structure__container {
    flex-wrap: nowrap;
    overflow: auto;
    flex-direction: row !important;
    align-items: center;
  }

  .english-phonetics__curriculum__structure__item {
    width: 275px;
    max-width: 300px;
    margin-right: 1rem;
  }
  .english-phonetics__curriculum__structure__item:first-child{
    margin-top:3rem;
  }
  .english-phonetics__curriculum__structure__item:nth-child(2){
    margin-top:1rem;
  }

  .english-phonetics__proficiency__item:not(:last-child),
  .english-phonetics__curriculum__structure__item:not(:last-child) {
    margin-bottom: 2rem;
  }

  .english-phonetics__tab__item > ul {
    padding-left: 0;
  }
  .tab-contents > div > img {
    padding: 0;
  }

  .english-phonetics__wrapper > div > dl {
    width: 100%;
  }

  .english-phonetics__sub-title {
    text-align: center;
  }

  .line-break {
    display: block;
  }

  .english-phonetics__box {
    width: 100%;
  }
  .tab-list {
    padding: 0;
  }
  .tab-list-item {
    padding: 0 2px;
  }
  .tab-contents-wrap {
    width: 100%;
  }
  .tab-contents > div > h4,
  .english-phonetics__box .english-phonetics__box-title > h4 {
    font-size: 1.25rem;
  }
  #modal-container {
    display: none;
    position: fixed;
    background: rgba(0, 0, 0, 0.6);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
  }

  #modal-container > div {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
  }

  #modal-container > div > img {
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 30px);
  }

  img.is-img-active {
    cursor: pointer;
  }

  .english-phonetics__cta-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .english-phonetics__faq dd {
    padding: 0.5rem 0;
  }

  .english-phonetics__faq dt {
    font-size: 1.125rem;
  }
  .english-phonetics__faq dd {
    font-size: 1rem;
  }
}
