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

.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: #ff5900;
}

/* 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;
  border-radius: 10px;
}

.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: 2em 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;
}

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

.วัตถุประสงค์-underline {
  width: 72%;
}

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

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

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

/* จุดแข็งของหลักสูตร */
#section-4 {
  padding: 6vh 24vh;
}

.course {
  text-align: center;
  margin: 1vh 0;
  width: auto;
  border: none;
}

.course h2 {
  font-size: 30px;
  color: #a72c32;
  font-weight: 700;
  display: inline-block;
  padding-bottom: 0.3em;
  width: auto;
}

.strength-layout {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 6vh;
  align-items: start;
}

.strength-images {
  display: flex;
  flex-direction: column;
  gap: 20vh;
}

.strength-images img {
  width: 45vh;
  height: 45vh;
  object-fit: cover;
}

.strength-boxes {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.course-box h4 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.course-box {
  background: #a72c32;
  color: #fff;
  padding: 2vh 1em;
  min-height: 22vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.year-box:not(:last-child) {
  border-bottom: 2px solid #f0f0f0;
}

/* PLO */
.plo-section {
  width: 100%;
  background: #f0f0f0;
  padding: 2vh 2vh;
}

.plo-section {
  position: relative;
  z-index: 1;
}

.plo-title {
  text-align: center;
  margin-bottom: 4vh;
}

.plo-title h1 {
  color: #a72c32;
  font-size: 36px;
  font-weight: 700;
}

.plo-title h3 {
  color: #a72c32;
  font-size: 30px;
  font-weight: 500;
  margin-top: 1vh;
}

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

.plo-section .container.swiper {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

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

.card-list {
  padding: 0;
  justify-self: center;
}

.plo-box {
  height: 430px;
}

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

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

.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;
  border-radius: 50%;
}

/* 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;
}

.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: 60vh;
  margin-top: 5em;
  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;
  font-weight: 600;
  margin-bottom: 3vh;
  color: #a72c32;
}

.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;
}

.papers-box:hover {
  color: #434343;
}
