@import url("root.css");

.about-section-head,
.authority-section-head {
    background-image: url("../images/home/AnyConv.com__Group 277.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* padding: 30px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 170px;
}

.title-about {
    text-align: center;
    color: var(--color-primary);
    font-size: 24px;
}

.about-descripsion {
    align-items: center;
    text-align: center;
    color: #616161;
    font-weight: 200;
    font-size: 14px;
}

.about-section-detail-row-first,
.vision-section-detail-row-first,
.structure-section-detail-row-first {
    display: flex;
    align-items: flex-start;
    margin: 2.15rem 0;
    gap: 40px;
}

.vision-section-detail-row-first,
.structure-section-detail-row-first {
    justify-content: center;
    text-align: center;
}

.about-section-detail-row-first .about-detail-img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 520 / 320;
    flex-shrink: 0;
}

.about-detail-img img,
.about-structure-detail-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.about-detail-text {
    flex: 1;
}

.about-detail-text ol,
.about-detail-text ul {
    padding-left: 20px;
}

.about-detail-text ol {
    list-style: decimal;
}

.about-detail-text ul {
    list-style: disc;
}

.about-detail-text ol>li,
.about-detail-text ul>li {
    margin-bottom: 10px;
}

.about-detail-text img {
    width: 40px;
    height: 40px;
}

.about-detail-text-title {
    display: flex;
    gap: 10px;
    align-items: center;
}

.about-detail-text-title h2 {
    margin-bottom: 0;
    font-size: 24px;
    font-weight: 600;
}

.about-detail-text-description,
.authority-detail-text-description {
    font-weight: 200;
    margin: 1rem 0 0 0;
    font-size: 14px;
    line-height: 2rem;
}

.authority-detail-text-description p {
    padding: 0 1rem;
    font-size: 16px;
}

/* 2 */
.about-detail-content-title {
    border-left: 8px solid var(--color-primary);
    padding: 0.25rem 0.5rem;
}

.about-detail-content-title h2,
.executive-title h2 {
    font-size: 24px;
    font-weight: 300;
}

.about-detail-content-description {
    margin: 1rem 0;
}

.about-detail-content-description p {
    font-weight: 200;
    font-size: 14px;
    line-height: 2rem;
}

.about-detail-content-items-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.about-detail-content-items {
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* padding: 1.5rem 0; */
    margin: 1.25rem 0;
}

/* .content-item-image{
    min-width: 320px;
    height: 320px;
    
} */

.content-item-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 2px;
}

.content-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* หัวข้อในการ์ด */
.content-item-detail {
    padding: 25px 25px 10px 25px;
    margin-bottom: 20px;
}

.content-item-detail-title {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 20px;
}

.content-item-detail-title img {
    height: 32px;
    width: 32px;
}

.content-item-detail-title h3 {
    color: var(--color-primary);
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.content-item-detail-description ul,
.about-detail-content-description ul,
.about-detail-content-description ol {
    padding-left: 20px;
    font-size: 14px;
    font-weight: 200;
    line-height: 2rem;
}

.about-detail-content-description p {
    font-size: 14px;
    font-weight: 200;
    line-height: 2rem;
}

.about-section-detail-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* pageVision */
.vision-detail-text {
    display: flex;
    justify-content: center;
}

.vision-detail-text-title {
    font-size: 24px;
    line-height: 2rem;
    font-weight: 600;
}

/* structure */
.about-structure-detail-img {
    max-width: 1200px;
    height: auto;
    flex-shrink: 0;
}

.structure-detail-text-title p {
    font-weight: 200;
    font-size: 12px;
    margin-top: 1rem;
}

/* executivePage */
/* .executive-section-detail-row{
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-content: space-between;
    margin: 2.15rem 0;

} */
.executive-section-detail-row {
    display: grid;
    /* คุมความกว้างที่คอลัมน์ ไม่ใช่ที่การ์ด ไม่งั้นการ์ดจะลอยกลางคอลัมน์ที่ยืดเต็มจอ แล้วช่องว่างถ่างเกิน gap */
    grid-template-columns: repeat(4, minmax(0, 280px));
    justify-content: center;
    align-items: stretch;
    gap: 1.25rem;
    margin: 2.15rem 0;
}

.executive-section-detail-row-head {
    display: flex;
    justify-content: center;
    margin: 2.15rem 0;
}

.executive-head-detail-content {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.executive-detail-content {
    width: 100%;
    height: 100%;
    max-width: 280px;
    margin-inline: auto;
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    align-self: stretch;
}

.executive-detail-content-image {
    width: 100%;
    aspect-ratio: 3 / 4;
}

.executive-detail-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    display: block;
    border-radius: 10px 10px 0 0;
}

.executive-detail-content-information {
    background-color: var(--color-secondary);
    padding: 13px;
    border-radius: 0 0 10px 10px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.executive-information-name {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.executive-information-position,
.executive-information-tel {
    font-weight: 200;
    font-size: 12px;
    line-height: 1.5;
}

.executive-information-position {
    min-height: calc(1.5em * 2);
}

.executive-information-tel {
    margin-top: auto;
    padding-top: 0.4rem;
}

.executive-title {
    margin: 6rem 0;
}

.executive-title h2 {
    text-align: center;
    font-weight: 700;
}

/* ส่วนรูปสไลด์ */
.swiper {
    width: 100%;
    height: 100%;
}

.text-des {
    border-left: 2px solid #B63D97;
    padding-left: 20px;

    font-weight: 700;
    margin: 40px 0 0 20px;
    font-size: 18px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;

}

.swiper-pagination {
    text-align: end;
    padding-right: 10px;
}

.swiper-pagination-bullet {
    background: var(--color-secondary);
    opacity: 1;
    margin: 0 2px !important;
}

.swiper-pagination-bullet-active {
    background: var(--color-primary);
}


@media (min-width: 769px) and (max-width: 1199px) {
    .executive-section-detail-row {
        grid-template-columns: repeat(3, minmax(0, 280px));
    }

}

@media (max-width: 768px) {
    .executive-section-detail-row {
        grid-template-columns: repeat(2, minmax(0, 280px));
        gap: 12px
    }
}

@media (max-width: 480px) {
    .executive-head-detail-content {
        max-width: 100%;
    }

    .executive-information-name {
        font-size: 14px;
    }

    .executive-information-position,
    .executive-information-tel {
        font-size: 12px;
    }

    .executive-head-detail-content {
        max-width: 250px !important;
    }

    .executive-section-detail-row-head {
        margin-top: 0;
    }
}


.video-section-wrapper {
    width: 100%;
    max-width: 700px;
    position: relative;
    /* margin-left: auto; */
    flex-shrink: 0;
}

.video-banner-img {
    width: 100%;
    max-width: 700px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
}


.video-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

/* .video__player{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    
}
.video__player:hover{
    transform: translate(-50%, -50%) scale(1.1);
} */


.video__player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    cursor: pointer;
}


.video__player i {
    color: #B63D97;
    font-size: 26px;
    margin-left: 5px;
    transition: color 0.3s ease;
}


.video__player::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #B63D97;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}


.video__player:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #B63D97;
}

.video__player:hover i {
    color: white;
}


.video__player:hover::after {
    animation: ring-pulse 1.2s infinite;
}


@keyframes ring-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {

        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

.video__player img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}


.video-popup-container.show {
    display: flex;
}


.video-popup-content {
    position: relative;
    width: 90%;
    max-width: 900px;
}


.video-popup-iframe-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: black;
}


.video-popup-iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


.video-popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 36px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.video-popup-close:hover {
    color: #ccc;
}

.about-detail-image img {
    margin-top: 20px;
    width: 100%;
    height: auto;
}

.about-detail-image-section-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.about-detail-image-section-2 img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .about-detail-image-section-2 {
        grid-template-columns: repeat(1, 1fr);
    }
}

.cms-content {
    font-family: 'Sarabun', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 1.0rem;
}

.cms-content h2 {
    border-left: 8px solid var(--color-primary);
    padding: 0.25rem 0.5rem;
    font-size: 24px;
    font-weight: 300;
    margin: 0;
}

.cms-content p {
    font-weight: 200;
    font-size: 14px;
    line-height: 2rem;
}

.cms-content p:last-child {
    margin-bottom: 0;
}

.cms-content ul,
.cms-content ol {
    padding-left: 20px;
    font-size: 14px;
    font-weight: 200;
    line-height: 2rem;
    margin: 0 0 1rem;
}

.cms-content li {
    margin-bottom: 0.25rem;
}

.cms-content a {
    color: var(--color-primary);
    text-decoration: none;
}

.cms-content a:hover {
    text-decoration: underline;
}

.cms-content ul ul,
.cms-content ol ol,
.cms-content ul ol,
.cms-content ol ul {
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.cms-content>h2:not(:first-child) {
    margin-top: 0.5rem;
}

/* related-laws: CMS ก้อนนี้ใช้ <p> เป็นหัวข้อ (พระราชบัญญัติ/กฎกระทรวง) ไม่ใช่เนื้อความ
   จึงต้องใหญ่กว่า .cms-content ปกติ — ผูก 2 class เพื่อกันไม่ให้ไปโดน about-structure */
.cms-content.laws-content p {
    font-weight: 400;
    font-size: 18px;
    line-height: 2rem;
}

.cms-content.laws-content ul,
.cms-content.laws-content ol {
    font-size: 16px;
}

.executive-senior-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2.5rem 2rem;
    margin: 2.15rem 0;
}

.executive-senior-section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    margin: 3.5rem 0 0;
}

.executive-senior-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 340px;
    max-width: 100%;
}

.executive-senior-photo {
    width: 240px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.25rem;
}

.executive-senior-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    display: block;
}

.executive-senior-name {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.6;
}

.executive-senior-position,
.executive-senior-tel,
.executive-senior-email {
    font-weight: 300;
    font-size: 15px;
    line-height: 1.8;
}

.executive-senior-units {
    background-color: var(--color-secondary);
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 1.25rem;
    text-align: left;
    flex: 1 1 auto;
}

.executive-senior-units-title {
    text-align: center;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 0.5rem;
}

.executive-senior-units ul,
.executive-senior-units ol {
    padding-left: 20px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.9;
    margin: 0;
}

@media (max-width: 768px) {
    .executive-senior-photo {
        width: 200px;
    }
}

.vision-hero-section {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.vision-content {
    flex: 1 1 500px;
}

.main-title {
    color: #1a2b4c;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.3;
}

.highlight-box {
    border-left: 4px solid #1a2b4c;
    padding-left: 20px;
    margin-bottom: 30px;
}

.highlight-box p {
    color: #1a2b4c;
    font-family: 'Kanit', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.description-text {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 20px;
}

.description-text h3 {
    color: #1a2b4c;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 500;
}

.vision-image-wrapper {
    flex: 1 1 400px;
    position: relative;
}

.vision-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #1a2b4c;
    margin-left: 5px;
}

.additional-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.content-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-top: 3px solid #1a2b4c;
}

.content-card h3 {
    color: #1a2b4c;
    font-size: 18px;
    margin-bottom: 15px;
}

.content-card p {
    color: #64748b;
    font-size: 15px;
}

.mission-card {
    background-color: #ffffff;
    border: 6px solid #f9eef6;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image-box {
    width: 100%;
    padding: 20px;
    background-color: #ffffff;
    text-align: center;
}

.card-image-box img {
    max-height: 200px;
    object-fit: contain;
}

.card-content {
    padding: 0 20px 30px 20px;
    flex-grow: 1;
}

.card-content p {
    font-family: 'Sarabun', sans-serif;
    color: #334155;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

.operation-image-list .operation-image-item {
    aspect-ratio: 3 / 4;
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.operation-image-list .operation-image-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 28px;
    }

    .highlight-box p {
        font-size: 18px;
    }

    .vision-hero-section {
        gap: 30px;
    }
}