﻿.sa-c2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 10px;
}

.sa-c2 .toplabel {
    justify-content: space-around;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction:column;
    row-gap: 2.5em;
    align-items: center;
    background: #FFFFFF;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(218, 242, 255, 1) 100%);
}
.sa-c2 .toplabel .slogan {
    font-size: 7rem;
    font-weight: bold;
    color: #ff914d;
    display: flex;
    column-gap: 1rem;
}
.sa-c2 .toplabel .slogan div {
    text-shadow: 0px 10px 20px #c0c0c0;
    line-height: 1;
}
.sa-c2 .toplabel .title {
    margin-top: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
}
.sa-c2 .toplabel .label {
    text-align: center;
}

.sa-c2 .toplabel .info {
  padding: 10px;
  color: #333;
  text-align: center; 
}

/* หัวข้อหลัก (wi) */
.sa-c2 .toplabel .info .wi {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

/* จัดการข้อความทั่วไป (normal) */
.sa-c2 .toplabel .info .normal {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* สไตล์ข้อความ "คณะเศรษฐศาสตร์" */
.sa-c2 .toplabel .info .faculty {
  color: #ff6639;
  font-weight: bold;
  display: inline-block;
  margin-left: 6px;
}

/* สไตล์ข้อความ "มหาวิทยาลัยสงขลานครินทร์" */
.sa-c2 .toplabel .info .university {
  color: #143b6d;
  font-weight: bold;
  display: inline-block;
  margin-left: 6px;
}

/* ปรับสไตล์รูปภาพในกล่อง .info */
.sa-c2 .toplabel .econpsu {
  display: block;
  max-width: 150px;  /* กำหนดขนาดสูงสุดของรูป */
  margin: 20px auto 0;  /* จัดกึ่งกลาง */
}

.sa-c2 .toplabel .main-product {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sa-c2 .toplabel .main-product .mp-row{
    display: flex;
    column-gap: 15px;
    margin-top: 10px;
}
.sa-c2 .toplabel .main-product .mp-row img{
    flex: 1;
    width: 30%;
}
.sa-c2 .toplabel .identity {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sa-c2 .toplabel .identity .vecon {
    display: flex;
    flex-wrap:wrap;
    justify-content: center;
    gap: 15px;
}
.sa-c2 .toplabel .identity .vecon img{
    width: 25%;
}
.sa-c2 .toplabel .step-com {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    align-items: center;
}


.sa-c2 .toplabel .btn-evaluate {
  background: linear-gradient(to bottom, #ff7043 0%, #ff5722 100%);
  border: none;
  border-radius: 999px;

  padding: 14px 28px;

  /* สีและขนาดของข้อความ */
  color: #04184b;
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 
    -1px 0 #fff,
     0 1px #fff,
     1px 0 #fff,
     0 -1px #fff;

  /* เงาในและนอก ให้ปุ่มดู “นูน” */
  box-shadow:
    inset 0 4px 8px rgba(255, 255, 255, 0.3), /* เงาด้านในสีขาวใส */
    inset 0 -4px 8px rgba(0, 0, 0, 0.2),      /* เงาด้านในสีดำใส */
    0 4px 8px rgba(0, 0, 0, 0.2);            /* เงาด้านนอก */

  /* ตัวชี้เป็นรูปมือเมื่อเอาเมาส์ชี้ */
  cursor: pointer;
  /* ตัดเส้นกรอบเมื่อโฟกัสออก (รองรับการเข้าถึงหากต้องการ) */
  outline: none;

  z-index: 100;
  /* เพิ่ม Transition เอฟเฟกต์เวลา Hover */
  transition: transform 0.2s, box-shadow 0.2s;
}

/* เอฟเฟกต์เมื่อเอาเมาส์ชี้ปุ่ม */
.sa-c2 .btn-evaluate:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 4px 8px rgba(255, 255, 255, 0.4),
    inset 0 -4px 8px rgba(0, 0, 0, 0.3),
    0 6px 12px rgba(0, 0, 0, 0.3);
}

.sa-c2 .toplabel .about {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 10px;
    margin: auto;
    width: 100%;
    margin-bottom: 50px;
    z-index: 50;
}
    .sa-c2 .toplabel .about .more-info {
        display: flex;
        justify-content: space-between;
    }
.sa-c2 .toplabel .about a {
    border-radius: 10px;
    background-color: #16498b;
    color: white;
    font-weight: bold;
    padding: 5px 15px;
    flex: 1;
    display: flex;
    font-size: 0.8rem;
    align-items: center;
    justify-content: center;
}
.sa-c2 .toplabel .about a img {
    width: 25px;
    height: auto;
    padding-right: 10px;
}
.sa-c2 .toplabel .bottom {
    position: absolute;
    bottom: 0px;
    display: flex;
    justify-content: space-between;
    z-index: 0;
}
.sa-c2 .toplabel .bottom img {
    width: 30%;
}

.sa-c2 .modal-dialog .modal-body img{
    width: 100%;
    height: auto;
    overflow: scroll;
}

    .sa-c2 .modal-dialog .modal-body img {
        width: 100%;
        height: auto;
    }

    .sa-c2 .modal-dialog .modal-footer {
        justify-content: space-between !important;
    }
/* ปรับสไตล์ปุ่มกด */
.sa-c .submit-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

    .sa-c .submit-btn:hover {
        background: #0056b3;
    }

.sa-c2 .tabs-container {
    margin: 20px 0;
    width: 100%;
}

.sa-c2 .toplabel .com-label {
    font-size: 1.2rem;
    font-weight: bold;
}
.sa-c2 .nav-tabs {
    overflow-x: scroll;
    display: flex;
    list-style-type: none;
    padding: 5px;
    margin: 0;
    border-radius: 10px;
    background-color: #f1f5fb;
    column-gap: 5px;
    margin-bottom: 10px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
    .sa-c2 .nav-tabs::-webkit-scrollbar {
        display: none;
    }

/* Hide scrollbar for IE, Edge and Firefox */
.sa-c2 .nav-tabs {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.sa-c2 .nav-tabs li {
    min-width: fit-content;
    margin: 0;
    border-radius: 8px;
    flex: 1;
    overflow: hidden;
}

.sa-c2 .nav-tabs li.active{
    background-color: white;
}
.sa-c2 .nav-tabs li a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    text-decoration: none;
    color: #333;
    border: 1px solid transparent;
    border-bottom: none;
    cursor: pointer;
    text-align: center;
}
.sa-c2 .nav-tabs li a:hover {
    background-color: #e0e0e0;
}
.sa-c2 .nav-tabs li a img{
width: 25px;
height: 15px;
padding-right: 10px;
}

/* CSS สำหรับเนื้อหาในแท็บ */
.sa-c2 .tab-content {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    margin-top: -1px;
}

.sa-c2 .tab-content .level{
    font-size: 0.8rem;
    color: gray;
    display: flex;
    gap: 5px;
    align-items: end;
}

.sa-c2 .tab-content .data{
    margin-bottom: 10px;
}
.sa-c2 .tab-content .data .data-label{
    display: flex;
    font-weight: bold;
    align-items: center;
    column-gap: 5px;
    margin-bottom: 3px;
}
.sa-c2 .tab-content .data  ul {
    padding-left: 1.2rem !important;
}

.sa-c2 .tab-content .data .dataicon {
    width: 18px;
    height: 18px;

}

/* CSS สำหรับ Progress Bar */
.sa-c2 .progress-bar-container {
    background-color: #d1d1d1;
    overflow: hidden;
    width: 100%;
    height: 15px;
}

.sa-c2 .progress-bar {
    background-color: #007bff;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}
.sa-c2 .tab-content .percentid {
    text-align: end;
}
.sa-c2 .progress-label {
    font-size: 14px;
    margin-left: 8px;
}

/* ปรับสไตล์ radio ให้ดูเหมือน checkbox */
.sa-c2 .custom-radio {
    display: flex;
    cursor: pointer;
    border-radius: 5px;
    position: relative;
    transition: all 0.3s;
}

    .sa-c2 .custom-radio:hover {
        background: #e9ecef;
    }

    .sa-c2 .custom-radio input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

/* Wrapper for radio input to add padding */
.sa-c2 .radio-wrapper {
    padding-top: 4px; /* Add padding top here */
}

/* กล่อง checkbox ปลอม */
.sa-c2 .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid black;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

/* เมื่อเลือกแล้ว ให้เปลี่ยนสี */
.sa-c2 .custom-radio input:checked + .checkmark {
    background: white;
    border-color: black;
}

    /* เพิ่มเครื่องหมายถูกเมื่อเลือก */
    .sa-c2 .custom-radio input:checked + .checkmark::after {
        content: "✔";
        color: black;
        font-size: 14px;
        font-weight: bold;
    }

.testdiv {
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(218, 242, 255, 1) 100%);
}

.sa-c2 .toplabel .medal {
    width: 60%;
}

.sa-c2 .toplabel .radar {
    width: 40%;
    background: #FFFFFF;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(218, 242, 255, 1) 100%);
}

.sa-c2 .toplabel .medal {
    row-gap: 15px;
    padding: 15px;
    display: flex;
    flex-direction:column;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(218, 242, 255, 1) 100%);
}
.sa-c2 .toplabel .medal .medaltop {
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
}

.sa-c2 .toplabel .top {
    width: 100%;
    display: flex;
    gap: 15px;
}
.sa-c2 .toplabel .top .left{
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
}
.sa-c2 .toplabel .top .left .medalimg {
        width: 100%;
        height: auto;
        margin-top: 15px;
}

.sa-c2 .toplabel .top .right label{
    width: 100%;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}
.sa-c2 .toplabel .top .right span{
    width: 2px;
    background-color: black;
    border-radius: 3px;
}
.sa-c2 .top .totalscore{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sa-c2 .top .totalscore .scorelabel {
    font-weight: bold;
    border-radius: 10px;
    padding: 5px 10px;
    color: white;
    background-color: #00366b;
    margin-bottom: 10px;
}
.sa-c2 .top  .totalscore .score {
    font-size: 1.5rem;
    font-weight: bold;
}
.sa-c2 .top .meanscore {
    display:flex;
    flex-direction: column;
    align-items: center;
}
.sa-c2 .top .meanscore .scorelabel {
    font-size: 1.2rem;
}
.sa-c2 .top .meanscore .score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 3rem;
    width: 80%;
}
.sa-c2 .top .meanscore .score .status {
    background-color: #2678db;
    border-radius: 10px;
    padding: 5px;
    font-size: 0.8rem;
    color: white;
    width:fit-content;
    height: fit-content;
}
.sa-c2 .top .about-mean {
    background-color: #b9dffd;
    border-radius: 15px;
    padding: 10px;
}

.sa-c .intro-q{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.sa-c .intro-q label {
    font-size: 1.1rem;
    font-weight: bold;
}
.sa-c2 .intro-q .intro {
    padding: 20px;
    background-color: #f1f1f1;
    border-radius: 15px;
    text-align: center;
}

.sa-c .intro-q .intro .highlight-f {
    display: inline-block;
    font-family: psuStidi-Bold;
    font-weight: bold;
    margin: 0 2px;
}
.sa-c2 .thank-q {
    padding: 20px;
    background-color: #f1f1f1;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 90%;
    align-items: center;
}

.sa-c2 .thank-q label {
    font-weight: bold;
    font-size: 1.2rem;
}

.sa-c2 .thank-q .btn-nav {
    padding: 8px 25px;
    background-color: #003399;
    border-radius: 20px;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    width: fit-content;
}

.sa-c .introduce {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/*88888888888888888888888888888888888888888888888888  อันใหม่หน้าใหม่่ 888888888888888888888888888888888888*/
/*88888888888888888888888888888888888888888888888888  อันใหม่หน้าใหม่่ 888888888888888888888888888888888888*/
/*88888888888888888888888888888888888888888888888888  อันใหม่หน้าใหม่่ 888888888888888888888888888888888888*/
/*88888888888888888888888888888888888888888888888888  อันใหม่หน้าใหม่่ 888888888888888888888888888888888888*/

.crop {
    position: relative;
    margin-top: -120px;
    padding-top: 160px;
}
.sa-p {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Prompt', sans-serif;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFDCC3 100%);
}
    .sa-p .h-sa
    {
        min-height: calc(-160px + 100vh);
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: space-around;
    }
.sa-p .h-sa .trapezoidleft {
	width: 100%;
    height: 2.5em; /* ปรับได้ตามต้องการ */
    background: linear-gradient(to right, #ffffff, #ff6900);
    clip-path: polygon(0 0, 100% 0, calc(-3em + 100%) 100%, 0% 100%);
}
.sa-p .h-sa .trapezoidright  {
	width: 100%;
    height: 2.5em; /* ปรับได้ตามต้องการ */
    background: linear-gradient(to left, #ffffff, #ff6900);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 3em 100%);
}

.sa-p .h-sa .top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}
.sa-p .h-sa .left {
    flex: 1 1 0;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}
.sa-p .h-sa .right {
    flex: 1 1 0;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
}


.sa-p .h-sa .top  .bt {
    margin-top: -0.8rem;
    width: 60%;
}
.sa-p .h-sa  .left img,
.sa-p .h-sa  .right img {
    height: 40px; /* ✅ ความสูงคงที่ */
    width: 100%;
    max-width: 100%;
    object-fit: fill;
}

.sa-p .h-sa .center-text {
    flex-shrink: 0; /* ❗ ไม่ให้บีบ */
    white-space: nowrap; /* ❗ ห้ามขึ้นบรรทัดใหม่ */
    text-align: center;
    padding: 0 20px;
    font-family: 'Prompt', sans-serif;
}

   .sa-p .h-sa .center-text .first {
        font-weight: 700;
        font-size: 1.5rem;
    }

  .sa-p .h-sa  .center-text .second {
        font-weight: 500;
        font-size: 1.1rem;
    }

.sa-p .h-sa .slogan {
    display: flex;
}

    .sa-p .h-sa .slogan .char {
        font-weight: bold;
        font-size: 8rem;
        background: #FE6900;
        background: linear-gradient(0deg, rgba(254, 105, 0, 1) 43%, rgba(115, 48, 0, 1) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-fill-color: transparent;
        -webkit-text-stroke: 3px #FFA05D;
    }
.sa-p .h-sa .slogan .box{
    flex: 1;
    text-align: center;
}
.sa-p .slogan img {
    width: 30px;
}
.sa-p .h-sa .sloganimg {
    width: 100%;
    max-width: 1000px;
}
.sa-p .slogan .label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #6D6D6D;
    text-shadow: 0px 3px 5.1px rgba(0, 0, 0, 0.26);
}
.sa-p .slogan .detail1, .sa-p .slogan .detail2 {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: #6D6D6D;
    text-shadow: 0px 3px 5.1px rgba(0, 0, 0, 0.26);
}
.sa-p .h-sa .mid div {
    text-align: center;
    font-size: 1.4rem;
    text-shadow: 0px 10px 20px #c0c0c0;
}
.sa-p .arrowdown {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    cursor: pointer;
    text-align: center;
    color: #FE6900;
    text-shadow: 0px 1px 5px #bdb6b4;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
@keyframes floatUpDown {
    10%, 90% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

.sa-p .arrow-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: 50% 50%;
    transition: transform 0.3s ease-in-out;
}


.sa-p .arrow-icon-wrapper svg {
    width: 100%;
    height: 100%;
    animation: floatUpDown 1.5s ease-in-out infinite;
}

    .sa-p .arrow-icon-wrapper:hover svg {
        animation-play-state: paused;
        /* ถ้าอยากให้คืนสู่ตำแหน่งเดิมเสมอ */
        transform: translateX(0);
    }

.sa-p #arrowdown {
    transition: transform 0.3s ease-in-out;
}

.sa-p .m-sa {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: space-around;
    gap: 20px;
}
    .sa-p .m-sa .top {
        gap: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        text-shadow: 0px 1px 5px #bdb6b4;
    }
.sa-p .m-sa .top img{
    width: 200px;
}
.arrowdown-fixed {
    
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.sa-p .m-sa .top label {
    font-weight: 700;
        text-shadow: 0px 1px 5px #bdb6b4;
}
.sa-p .m-sa .top .normal {
    display: flex;
    justify-content: center;
}
.sa-p .m-sa .top .normal .faculty{
    color:     #E55F00;
    padding-right: 10px;
}
    .sa-p .m-sa .top .normal .university {
         color: #052A6E;
    }
.sa-p .m-sa .mid .main{
    font-weight: 600;
    text-shadow: 0px 1px 5px #bdb6b4;

}

.sa-p .m-sa .mid .core {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    font-size: 1rem;
}
.sa-p .m-sa .mid .core img{
    min-width:  160px;
    max-width: 60%;
}
.sa-p .m-sa .bottom {

}
.sa-p .m-sa .bottom .vecon {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
    .sa-p .m-sa .bottom .vecon img {
        max-width: 20%;
        min-width: 200px;
    }



.sa-p .b-sa {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: center;
    padding: 30px 0px;
    align-items: center;
}
.sa-p .b-sa label {
    font-size: 2.5rem;
    font-weight: 600;
}
.sa-p .b-sa .step {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.sa-p .b-sa .step img {
    height: 130px;
}

.sa-p .b-sa .value div{
    font-size: 2rem;
    font-weight: 600;
}
.sa-p .b-sa .btn-evaluate {
    font-size: 1.5rem;
    background: linear-gradient(to bottom, #ff7043 0%, #ff5722 100%);
    border: none;
    border-radius: 999px;
    padding: 1em 2em;
    /* สีและขนาดของข้อความ */
    color: #04184b;
    font-weight: 700;
    text-shadow: -1px 0 #fff, 0 1px #fff, 1px 0 #fff, 0 -1px #fff;
    /* เงาในและนอก ให้ปุ่มดู “นูน” */
    box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.3), /* เงาด้านในสีขาวใส */
    inset 0 -4px 8px rgba(0, 0, 0, 0.2), /* เงาด้านในสีดำใส */
    0 4px 8px rgba(0, 0, 0, 0.2); /* เงาด้านนอก */
    /* ตัวชี้เป็นรูปมือเมื่อเอาเมาส์ชี้ */
    cursor: pointer;
    /* ตัดเส้นกรอบเมื่อโฟกัสออก (รองรับการเข้าถึงหากต้องการ) */
    outline: none;
    z-index: 100;
    /* เพิ่ม Transition เอฟเฟกต์เวลา Hover */
    transition: transform 0.2s, box-shadow 0.2s;
    width: fit-content;
}


/* เอฟเฟกต์เมื่อเอาเมาส์ชี้ปุ่ม */
.sa-p .b-sa btn-evaluate:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.4), inset 0 -4px 8px rgba(0, 0, 0, 0.3), 0 6px 12px rgba(0, 0, 0, 0.3);
}

.sa-p .toplabel {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.sa-p .toplabel .medal {
    width: 60%;
}

.sa-p .toplabel .radar {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 40%;
    background: #FFFFFF;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(218, 242, 255, 1) 100%);
}

.sa-p .toplabel .medal {
    row-gap: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(218, 242, 255, 1) 100%);
}

.sa-p .toplabel .medal .medaltop {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.sa-p .toplabel .top {
    width: 100%;
    display: flex;
    gap: 15px;
}

.sa-p .toplabel .top .left {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
}

.sa-p .toplabel .top .left .medalimg {
    width: 100%;
    height: auto;
    margin-top: 15px;
}

.sa-p .toplabel .top .right label {
    width: 100%;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

.sa-p .toplabel .top .right span {
    width: 2px;
    background-color: black;
    border-radius: 3px;
}

.sa-p .top .right .totalscore {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .sa-p .top .right .totalscore .scorelabel {
        font-weight: bold;
        border-radius: 10px;
        padding: 5px 10px;
        color: white;
        background-color: #00366b;
        margin-bottom: 10px;
    }

    .sa-p .top .right .totalscore .score {
        font-size: 1.8rem;
        font-weight: bold;
    }

.sa-p .top .meanscore {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .sa-p .top .meanscore .scorelabel {
        font-size: 1.2rem;
    }

    .sa-p .top .meanscore .score {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 3rem;
        width: 80%;
    }

        .sa-p .top .meanscore .score .status {
            margin-left: 10px;
            background-color: #2678db;
            border-radius: 10px;
            padding: 5px;
            font-size: 0.8rem;
            color: white;
            width: fit-content;
            height: fit-content;
            text-align: center;
        }

.sa-p .top .about-mean {
    background-color: #b9dffd;
    border-radius: 15px;
    padding: 10px;
}

.sa-c .intro-q {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
    .sa-c .eheader-2 {
        font-size: 1.1rem;
        font-weight: bold;
    }
    .sa-c .intro-q label {
        font-size: 1.1rem;
        font-weight: bold;
    }

.sa-p .intro-q .intro {
    padding: 20px;
    background-color: #f1f1f1;
    border-radius: 15px;
    text-align: center;
}


.sa-p .thank-q {
    padding: 20px;
    background-color: #f1f1f1;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 90%;
    margin: auto;
    margin-top: 120px;
    align-items: center;
}

    .sa-p .thank-q label {
        font-weight: bold;
        font-size: 1.2rem;
    }

    .sa-p .thank-q a {
        padding: 5px 25px;
        background-color: #003399;
        border-radius: 20px;
        text-align: center;
        color: white;
        font-weight: bold;
        font-size: 0.9rem;
        width: fit-content;
    }

.sa-p .introduce {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-p .tabs-container {
    margin: 20px 0;
    width: 100%;
}

.sa-p .toplabel .com-label {
    font-size: 1.2rem;
    font-weight: bold;
}

.sa-p .nav-tabs {
    overflow-x: scroll;
    display: flex;
    list-style-type: none;
    padding: 5px;
    margin: 0;
    border-radius: 10px;
    background-color: #f1f5fb;
    column-gap: 5px;
    margin-bottom: 10px;
}

    /* Hide scrollbar for Chrome, Safari and Opera */
    .sa-p .nav-tabs::-webkit-scrollbar {
        display: none;
    }

/* Hide scrollbar for IE, Edge and Firefox */
.sa-p .nav-tabs {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

    .sa-p .nav-tabs li {
        min-width: fit-content;
        margin: 0;
        border-radius: 8px;
        flex: 1;
        overflow: hidden;
    }

        .sa-p .nav-tabs li.active {
            background-color: white;
        }

        .sa-p .nav-tabs li a {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            padding: 5px 10px;
            text-decoration: none;
            color: #333;
            border: 1px solid transparent;
            border-bottom: none;
            cursor: pointer;
            text-align: center;
        }

            .sa-p .nav-tabs li a:hover {
                background-color: #e0e0e0;
            }

            .sa-p .nav-tabs li a img {
                width: 25px;
                height: 15px;
                padding-right: 10px;
            }

/* CSS สำหรับเนื้อหาในแท็บ */
.sa-p .tab-content {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    margin-top: -1px;
}

    .sa-p .tab-content .level {
        font-size: 0.8rem;
        color: gray;
        display: flex;
        gap: 5px;
        align-items: center;
    }

    .sa-p .tab-content .level {
        display: flex;
        gap: 5px;
        /* ป้องกันไม่ให้ flex item ห่อตัว */
        flex-wrap: nowrap;
    }

    /* ห้ามห่อบรรทัดใน span ที่ห่อข้อความ */
    .sa-p .tab-content .level-label {
        white-space: nowrap;
    }


    .sa-p .tab-content .data {
        margin-bottom: 10px;
    }

        .sa-p .tab-content .data .data-label {
            display: flex;
            font-weight: bold;
            align-items: center;
            column-gap: 5px;
            margin-bottom: 3px;
        }

        .sa-p .tab-content .data ul {
            padding-left: 1.2rem !important;
        }

        .sa-p .tab-content .data .dataicon {
            width: 18px;
            height: 18px;
        }

/* CSS สำหรับ Progress Bar */
.sa-p .progress-bar-container {
    background-color: #d1d1d1;
    overflow: hidden;
    width: 100%;
    height: 15px;
}

.sa-p .progress-bar {
    background-color: #007bff;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.sa-p .tab-content .percentid {
    text-align: end;
}

.sa-p .progress-label {
    font-size: 14px;
    margin-left: 8px;
}
.sa-p .top2 {
    display: flex;
    flex-direction:column;
    width: 100%;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 15px 0px;
    position: relative;
}
.sa-p .button-8 {
    background-color: #e1ecf4;
    border-radius: 3px;
    border: 1px solid #7aa7c7;
    box-shadow: rgba(255, 255, 255, .7) 0 1px 0 0 inset;
    box-sizing: border-box;
    color: #39739d;
    cursor: pointer;
    display:flex;
    justify-content: end;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.15385;
    margin: 0;
    outline: none;
    padding: 8px .8em;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    white-space: nowrap;
}

.sa-p .button-8:hover,
.sa-p .button-8:focus {
    background-color: #b3d3ea;
    color: #2c5777;
}

.sa-p .button-8:focus {
    box-shadow: 0 0 0 4px rgba(0, 149, 255, .15);
}

.sa-p .button-8:active {
    background-color: #a0c7e4;
    box-shadow: none;
    color: #2c5777;
}

.sa-c .next-q {
    font-weight: bold;
    margin: 0px auto;
    width: fit-content;
    padding: 5px 50px;
    transition: all 0.3s ease-in-out;
    border-radius: 50px;
    background: #FE6900;
    background: linear-gradient(43deg, rgba(254, 105, 0, 1) 35%, rgba(115, 48, 0, 1) 90%);
    box-shadow: 0 5px 10px -6px rgba(115, 48, 0, 0.5);
    cursor: pointer;
    border: none;
    color: white;
}
.sa-c .next-q:hover {
  transform: translateY(1.5px);
  box-shadow: none;
}

.sa-c .next-q:active {
  opacity: 0.5;
}
@media only screen and (max-width: 770px) {
    .sa-p .toplabel .step-com .vecon {
        grid-template-columns: repeat(auto-fill, 30%);
    }

    .sa-p .toplabel .top {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .sa-p .toplabel .radar {
        width: 100%;
    }

    .sa-p .toplabel .medal {
        width: 100%;
    }

    .sa-p .b-sa .value div {
        font-size: 1.6rem;
        font-weight: 600;
    }
}

@media only screen and (max-width: 992px) {
    .crop {
        position: relative;
        margin-top: -50px;
        padding-top: 80px;
    }

    .sa-p .h-sa {
        min-height: calc(-80px + 100vh);
    }

    .sa-p .b-sa .value div {
        font-size: 1.8rem;
        font-weight: 600;
    }
}

@media (max-width: 576px) {
    .sa-p .h-sa .slogan {
        display: flex;
    }

    .sa-p .h-sa .slogan .char {
        letter-spacing: 0rem;
        font-size: 4rem;
        -webkit-text-stroke: 1px #FFA05D;
    }

    .sa-p .h-sa .slogan .box {
        flex: 1;
        text-align: center;
    }

    .sa-p .slogan img {
        width: 16px;
    }

    .sa-p .slogan .label {
        font-size: 0.6rem;
        font-weight: 500;
        letter-spacing: 0.03em;
        color: #6D6D6D;
        text-shadow: 0px 3px 5.1px rgba(0, 0, 0, 0.26);
    }

    .sa-p .slogan .detail1, .sa-p .slogan .detail2 {
        font-size: 0.5rem;
        font-weight: 400;
        letter-spacing: 0.03em;
        color: #6D6D6D;
        text-shadow: 0px 3px 5.1px rgba(0, 0, 0, 0.26);
    }
    .sa-p .b-sa .step div {
        flex: 1;
        min-width: 175px;
        max-width: 40%;
        display: flex;
        justify-content: flex-start;
    }

    .sa-p .b-sa .step img {
        height: 90px;
    }
    .sa-p .b-sa .value div {
        font-size: 1.2rem;
        font-weight: 600;
    }
}



@media (min-width: 576px) {
    .sa-p .modal-dialog {
        max-width: 750px;
        margin: 1.75rem auto;
    }

    .sa-p .toplabel .identity .vecon img {
        max-width: 18%;
    }

    .sa-c2 .modal-dialog {
        max-width: 650px;
        margin: 1.75rem auto;
    }
}