* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans Thai", sans-serif;
}

.pre-layout {
  display: flex;
  align-items: stretch;
  width: 100%;
}

/* LEFT */
.pre-left {
  width: 400px;
  padding: 2em 5em;
}

.navigation-tab {
  margin-top: 5em;
  margin-left: 0em;
}

.navigation-tab a,
.navigation-tab span {
  padding-right: 0.5em;
  font-size: 20px;
  text-decoration: none;
  color: #000;
}

.navigation-tab a:hover {
  color: #a72c32;
  transition: 0.5s;
  font-weight: 600;
}
/* left-navigation */
.primary-navigation {
  font-size: 14px;
}

.primary-navigation .Anchor {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 1vh;
}

.primary-navigation ul {
  padding-left: 18px;
}

.primary-navigation li {
  list-style: disc;
  margin-bottom: 2vh;
  font-size: 18px;
}

.primary-navigation a {
  color: #000;
  text-decoration: none;
}

.primary-navigation a:hover {
  text-decoration: underline;
  color: #a72c32;
}

/* RIGHT */
.pre-right {
  position: relative;
  flex: 1;
}

.carousel-wrapper {
  height: 85vh;
  overflow: hidden;
}

.carousel-inner img {
  width: 100%;
  height: 85vh;
  object-fit: cover;
  object-position: center;
  background: black;
  opacity: 0.8;
}

.carousel-item img {
  width: 100%;
  height: 85vh;
}

/* overlay */
.overlay-main {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  opacity: 0.95;
  background: #eeeeee;
  padding: 28px 32px;
  max-width: 520px;
}

.overlay-main h3:first-child {
  color: #a72c32;
  opacity: 1;
  font-size: 28px;
  font-weight: 800;
}

.overlay-main h3:nth-child(2) {
  color: #a72c32;
  opacity: 1;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
}

.overlay-main p {
  font-size: 18px;
  font-weight: 500;
  opacity: 1;
  line-height: 1.7;
  color: #000000;
}

/* name section */
.namebox {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding: 1em 20em;
  background: #a72c32;
  color: #fff;
}

.namebox span {
  width: 50%;
}

.name1-underline h4,
.name2-underline h4 {
  border-bottom: 2px solid #fff;
  display: inline-block;
  font-size: 30px;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.namebox p,
.namebox h5 {
  font-size: 18px;
  margin-bottom: 6px;
}

/* วัตถุประสงค์ */
.วัตถุประสงค์ {
  display: flex;
  align-items: flex-start;
  gap: 4em;
  padding: 8vh 8em;
  background: #f0f0f0;
}

.วัตถุประสงค์-container {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.วัตถุประสงค์ img {
  width: 28%;
  max-height: 59vh;
  object-fit: cover;
}

.วัตถุประสงค์ h2 {
  width: 40vh;
  font-size: 2em;
  font-weight: 700;
  color: #434343;
  display: inline-block;
  padding-bottom: 0.1em;
  margin-bottom: 2vh;
}

.วัตถุประสงค์-box {
  background: #ffffff;
  padding: 3vh 4em;
}

.วัตถุประสงค์-box li {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 1em;
  padding-left: 0.3em;
}

/* แนวทางการเรียนรู้แต่ละชั้นปี */
#section-4 {
  padding: 2em 40vh;
  margin: 0;
}

.แนวทาง {
  text-align: center;
  justify-content: center;
  margin-bottom: 3vh;
  width: 100%;
  border: none;
}

.แนวทาง h2 {
  font-size: 32px;
  color: #434343;
  font-weight: 700;
  display: inline-block;
  width: 80vh;
}

.year-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2vh;
}

.year-row.reverse {
  flex-direction: row-reverse;
}

.year-row img {
  width: 45vh;
  height: 45vh;
  object-fit: cover;
}

.year-box {
  width: 50%;
  text-align: left;
  height: 45vh;
  background: #a72c32;
  color: #fff;
  padding: 3em;
}

.year-box h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 2vh;
}

.year-box p {
  font-size: 18px;
  line-height: 1.9;
}

/* PLO */
.card-list,
.swiper-wrapper {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.card-plo {
  margin: 0 auto;
}

#section-5.plo-section {
  padding: 1vh;
  background: #f0f0f0;
}

.plo-head {
  color: #a72c32;
  margin: 1em;
  font-weight: 600;
  text-align: center;
}

.plo-underline {
  display: inline-block;
  padding-bottom: 1vh;
  border-bottom: 4px solid #a72c32;
}

.container.swiper {
  display: flex;
  justify-content: center;
}

.card-wrapper {
  margin: 1vh auto 6vh;
  width: 80%;
}

.card-plo {
  height: 400px !important;
}

.card-wrapper .swiper-slide-button {
  color: #5d5d5d;
}

.card-wrapper:hover .swiper-slide-button:hover {
  color: #000;
}

.card-wrapper .swiper-pagination-bullet {
  height: 13px;
  width: 13px;
  opacity: 0.5;
  background: #000;
}

.card-wrapper .swiper-pagination-bullet-active {
  opacity: 1;
}

.swiper-slide-button {
  width: 44px;
  height: 44px;
}

/* Work */
#section-6.work {
  width: 100%;
  padding: 0 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4em;
}

.work h4 {
  width: auto;
  font-size: 32px;
  font-weight: 600;
  color: #434343;
  display: inline-block;
  padding: 0.5em 0;
}

.work-box {
  display: flex;
  flex-direction: flex-start;
  max-width: 540px;
  background: #5d5d5d;
  padding: 3vh 3em;
  list-style: decimal;
  box-shadow: 0 1em 1em rgba(0, 0, 0, 0);
}

.work-box ul {
  padding-left: 1.2em;
  line-height: 2em;
}

.work-box li {
  font-size: 16px;
  color: #fff;
  margin-bottom: 0.6em;
}

#section-6 img {
  width: 100%;
  max-width: 700px;
  margin-top: 5vw;
  height: auto;
  object-fit: cover;
}

/* เอกสาร */
#section-7.papers {
  width: 100%;
  padding: 6vh 8vw;
  display: flex;
  justify-content: center;
}

#section-7.papers > div {
  width: 100%;
  max-width: 1000px;
}

.papers h4 {
  width: 80vh;
  font-size: 28px;
  margin-bottom: 3vh;
  color: #434343;
}

.papers-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 80px;
  margin-right: 1.5em;
  margin-bottom: 1.5em;
  background: #5d5d5d;
  border: none;

  cursor: pointer;
}

.papers-box a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}
