.org-chart-section {
                    /* ใช้ 'background' แทน 'background-color' */
                    background: linear-gradient(to bottom, #ffe195, #2c3e50);
                    padding: 30px 0;
                }

                h1,
                h3 {
                    font-family: 'Arial', sans-serif;
                }

                h1 {
                    font-size: 2.5rem;
                    margin-bottom: 20px;
                }

                h3 {
                    font-size: 1.8rem;
                    margin-bottom: 15px;
                }

                p {
                    margin: 0 !important;
                    font-size: 1rem !important;
                }


                .card1 {
                    border: none;
                    /* เอาขอบการ์ดออก */
                    border-radius: 10px;
                    /* มุมของการ์ด */
                    transition: transform 0.3s;
                    /* เอฟเฟกต์การเคลื่อนไหว */
                    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
                    text-align: center;
                    width: 100%;
                    padding: 10px;
                }

                .card1:hover {
                    transform: scale(1.05);
                    /* ขยายการ์ดเมื่อเมาส์อยู่เหนือ */
                }

                .card1-img-top {
                    border-radius: 10px 10px 0 0;
                    /* ทำมุมบนของการ์ดให้โค้ง */
                }

                .card {
                    background: linear-gradient(to bottom, #ffffffff, #e9e9e9ff);
                    border: none;
                    /* เอาขอบการ์ดออก */
                    border-radius: 10px;
                    /* มุมของการ์ด */
                    transition: transform 0.3s;
                    /* เอฟเฟกต์การเคลื่อนไหว */
                    cursor: pointer;
                }

                .card:hover {
                    transform: scale(1.05);
                    /* ขยายการ์ดเมื่อเมาส์อยู่เหนือ */
                    cursor: pointer;
                }

                /* การ์ดสมาชิก */
                .member-card {
                    border: 2px solid #f0e95fff;
                    /* สีขอบการ์ด */

                    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
                    transition: transform 0.3s;
                }

                .member-card:hover {
                    cursor: pointer;
                    transform: translateY(-5px);
                    /* เพิ่มเอฟเฟกต์การ์ดยกขึ้นเล็กน้อย */
                    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
                    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
                }

                .member-card .more-info {
                    max-height: 0;
                    opacity: 0;
                    overflow: hidden;
                    transition: max-height 0.6s ease-out, opacity 0.5s ease-out;
                    /* ใช้ค่าสูงมาก เช่น 500px หรือ 1000px */
                }

                .member-card:hover .more-info {
                    max-height: 800px;
                    /* ใหญ่กว่าความสูงจริงแน่นอน */
                    opacity: 1;
                }

                .card-img-top {
                    border-radius: 10px;
                    /* ทำมุมของการ์ดให้โค้ง */
                }

                .position {
                    font-size: 1rem;
                    background: #000;
                    /* สีเฟด */
                    -webkit-background-clip: text;
                    /* ใช้ clip background สำหรับข้อความ */
                    -webkit-text-fill-color: transparent;
                    /* ทำให้สีพื้นหลังเป็นสีข้อความ */

                }


                .text-white {
                    color: #ffffff;
                    /* สีตัวอักษรขาว */
                }

                .card-container {
                    display: flex;
                    flex-wrap: wrap;
                    margin-top: 10px;
                    justify-content: center;
                }

                .reviews-wrapper {
                    margin-top: 10px;
                    margin-left: 10px;
                    margin-right: 10px;
                    gap: 10px;
                    display: flex;
                }

                .card {
                    text-align: center;
                    width: 100%;
                    padding: 10px
                }

                .image-text-wrapper,
                .image-text-wrapper1 {
                    display: flex;
                    align-items: center;
                    gap: 60px;
                    padding: 20px;
                    max-width: 90%;
                    margin: 0 auto 50px;
                    border-radius: 8px;
                    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
                }

                .image-text-wrapper1 {
                    justify-content: space-around;
                    margin-top: 30px;
                    margin-bottom: 30px;
                }

                .image-container img {
                    width: 100%;
                    max-width: 440px;
                    height: auto;
                }

                .text-container {
                    height: 100%;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                }

                .text-container p {
                    text-align: justify;
                    /* ยืดข้อความให้เต็มบรรทัด */
                    text-align-last: justify;
                    /* ทำให้บรรทัดสุดท้ายยืดออก */
                    line-height: 1.8;
                    /* ปรับระยะห่างระหว่างบรรทัด */
                    word-break: break-word;
                    /* ป้องกันคำหลุดออกจากกรอบ */
                    hyphens: auto;
                    /* ให้คำสามารถตัดพยางค์ได้ */
                }

                .Allbody h1 {
                    text-align: center;
                    padding: 20px;
                }

                .Allbody {
                    margin-top: 50px;
                }

                @media (max-width: 767px) {
                    .card-container {
                        width: 100%;
                    }

                    .reviews-wrapper {
                        margin-top: 10px;
                        margin-left: 10px;
                        margin-right: 10px;
                        gap: 5px;
                        display: flex;
                        flex-direction: column;
                        width: 90%;
                        align-items: center;
                    }

                    .card {
                        text-align: center;
                        width: 100%;
                        padding: 10px;
                        font-size: 10px;
                    }

                    .image-text-wrapper,
                    .image-text-wrapper1 {
                        display: flex;
                        flex-direction: column;
                        gap: 20px;
                        text-align: left;
                        padding: 20px 16px;
                        margin: 0 auto 36px;
                        border-radius: 0;
                        box-shadow: none;
                        background: transparent;
                    }

                    .image-container {
                        justify-content: center;
                        padding: 14px;
                        background: #ffffff;
                        border-radius: 14px;
                        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
                        order: 0;
                    }

                    .image-text-wrapper1 .image-container {
                        order: -1;
                    }

                    .image-container img {
                        width: 100%;
                        max-width: 360px;
                        height: auto;
                    }

                    .text-container p {
                        font-size: 0.95rem;
                        line-height: 1.7;
                        text-align: left;
                        text-align-last: auto;
                        word-break: break-word;
                        hyphens: auto;
                        word-spacing: normal;
                    }

                    .text-container {
                        display: block;
                        padding: 18px 20px;
                        background: #ffffff;
                        border-radius: 14px;
                        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
                    }

                    .Allbody h1 {
                        font-size: 1.75rem;
                        margin-bottom: 12px;
                    }
                }

                .chart-level {
                    position: relative;
                    padding-bottom: 30px;
                    /* เว้นระยะด้านล่างสำหรับเส้นเชื่อมโยง */
                }



                .card-body {
                    padding: 10px;
                }

                .card-body h5 {
                    color: #343a40;
                    font-weight: bold;
                    margin-bottom: 5px;
                }

                .card-body .position {
                    color: #6c757d;
                    font-size: 0.9em;
                }


                /* เส้นแนวนอน (เชื่อมระหว่างการ์ดในระดับเดียวกัน) - ใช้ Grid Gap/Flexbox spacing แทนเส้นจริง ๆ เพื่อความสะอาด */
                .level-group {
                    position: relative;
                    display: flex;
                    justify-content: center;
                    align-items: flex-start;
                    flex-wrap: wrap;
                    gap: 30px;
                    /* ระยะห่างระหว่างการ์ด */
                    padding-top: 30px;
                    padding-bottom: 30px;
                }



                /* ปรับให้การ์ดอยู่ตรงกลางเสมอ */
                .member-card-wrapper {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    min-width: 250px;
                    /* เพื่อให้มีการ์ดที่ความกว้างคงที่ */
                }

                /* ปรับสีพื้นหลังเฉพาะส่วนหัว */
                .org-chart-header {
                    /* background-color: #FADD93; */
                    color: white;
                    padding: 20px;
                    margin-bottom: 0;
                }

                .org-chart-header h1 {
                    margin-bottom: 0;
                }

                /* FAQ styles moved to css/faq-shared.css */
                /* ========== Organization Chart Filter Buttons ========== */
                .filter-buttons {
                    display: flex;
                    justify-content: center;
                    flex-wrap: wrap;
                    gap: 10px;
                    margin: 30px 0;
                    padding: 0 20px;
                }

                .filter-btn {
                    background: #ffffff;
                    border: 2px solid #e0e0e0;
                    border-radius: 25px;
                    padding: 10px 25px;
                    font-size: 14px;
                    font-weight: 500;
                    color: #333;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    white-space: nowrap;
                }

                .filter-btn:hover {
                    background: #f5f5f5;
                    border-color: #d0d0d0;
                    transform: translateY(-2px);
                }

                .filter-btn.active {
                    background: linear-gradient(135deg, #1e3a8a 0%, #d4af37 100% );
                    border-color: #d4af37;
                    color: #ffffff;
                    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
                    font:bold;
                }

                /* ========== Members Grid Layout ========== */
                .members-grid {
                    display: grid;
                    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                    gap: 20px;
                    padding: 30px 20px;
                    max-width: 1400px;
                    margin: 0 auto;
                }

                .member-card-item {
                    display: block;
                    opacity: 0;
                    transform: translateY(20px);
                    transition: opacity 0.3s ease, transform 0.3s ease;
                    perspective: 1000px;
                }

                .member-card-item.fade-in {
                    opacity: 1;
                    transform: translateY(0);
                }

                /* ========== 3D Flip Container ========== */
                /* ========== 3D Flip Container ========== */
                .member-flip-container {
                    width: 100%;
                    position: relative;
                    transition: transform 0.8s;
                    transform-style: preserve-3d;
                    cursor: pointer;
                }

                .member-flip-container.flipped {
                    transform: rotateY(180deg);
                }

                /* ========== Member Photo Card (Card Side Base) ========== */
                .member-photo-card {
                    backface-visibility: hidden;
                    -webkit-backface-visibility: hidden;
                    border-radius: 12px;
                    overflow: hidden;
                    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
                    border: 2px solid #d4af37;
                    display: flex;
                    flex-direction: column;
                }

                /* Front Side (Relative to set the container height) */
                .member-card-front {
                    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
                    z-index: 2;
                    transform: rotateY(0deg);
                    transition: transform 0.3s ease, box-shadow 0.3s ease;
                    position: relative;
                    /* Master of height */
                    width: 100%;
                }

                /* Back Side (Absolute to match front height) */
                .member-card-back {
                    background: linear-gradient(135deg, #d4af37 0%, #f4e4c1 50%, #ffffff 100%);
                    transform: rotateY(180deg);
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    text-align: center;
                    position: absolute;
                    /* Follows parent container height */
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                }

                .member-flip-container:not(.flipped):hover .member-card-front {
                    transform: translateY(-8px);
                    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
                    border-color: #ffd700;
                }

                .member-photo-card img {
                    width: 100%;
                    height: 250px;
                    object-fit: cover;
                    display: block;
                }

                .member-info {
                    background: linear-gradient(to bottom, #fef3c7, #fde68a);
                    padding: 15px;
                    text-align: center;
                    flex-grow: 1;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                }

                .member-department {
                    font-size: 10px;
                    color: #1e3a8a;
                    text-transform: uppercase;
                    letter-spacing: 1px;
                    margin-bottom: 6px;
                    font-weight: 700;
                }

                .member-name {
                    font-size: 16px;
                    font-weight: bold;
                    color: #1e3a8a;
                    margin: 4px 0 !important;
                }

                .member-position {
                    font-size: 12px !important;
                    color: #92400e;
                    margin: 4px 0 0 0 !important;
                }

                /* ========== Card Back side content & animations ========== */
                .card-back-content {
                    position: relative;
                    z-index: 2;
                    width: 100%;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                }

                .member-card-back .member-name,
                .member-card-back .member-department {
                    color: #1e3a8a;
                }

                .member-task {
                    color: #92400e;
                    font-size: 13px;
                    line-height: 1.6;
                    margin-top: 15px;
                    opacity: 0;
                    padding: 0 10px;
                    max-height: 180px;
                    overflow-y: auto;
                }

                .member-flip-container.flipped .member-task {
                    animation: fadeInTask 0.8s ease-out 0.4s forwards;
                }

                @keyframes fadeInTask {
                    from {
                        opacity: 0;
                        transform: translateY(10px);
                    }

                    to {
                        opacity: 1;
                        transform: translateY(0);
                    }
                }

                /* Diagonal Shadow Shadow for Back Side */
                .diagonal-shadow {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background: linear-gradient(45deg,
                            rgba(255, 255, 255, 0.8) 0%,
                            rgba(255, 255, 255, 0.5) 30%,
                            rgba(212, 175, 55, 0.3) 60%,
                            rgba(255, 255, 255, 0) 100%);
                    pointer-events: none;
                    opacity: 0;
                    z-index: 1;
                }

                .member-flip-container.flipped .diagonal-shadow {
                    animation: diagonalSweep 1s ease-in-out forwards;
                }

                @keyframes diagonalSweep {
                    0% {
                        opacity: 0;
                        transform: translate(-100%, 100%);
                    }

                    50% {
                        opacity: 1;
                    }

                    100% {
                        opacity: 0.6;
                        transform: translate(0%, 0%);
                    }
                }

                /* ========== Responsive Design ========== */
                @media (max-width: 768px) {
                    .members-grid {
                        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
                        gap: 15px;
                        padding: 20px 10px;
                    }

                    .filter-buttons {
                        gap: 8px;
                        margin: 20px 0;
                    }

                    .filter-btn {
                        padding: 8px 18px;
                        font-size: 12px;
                    }

                    .member-photo-card img {
                        height: 200px;
                    }

                    .member-name {
                        font-size: 14px !important;
                    }

                    .member-position {
                        font-size: 11px !important;
                    }
                }

                @media (max-width: 480px) {
                    .members-grid {
                        grid-template-columns: repeat(2, 1fr);
                        gap: 12px;
                    }

                    .filter-btn {
                        padding: 6px 15px;
                        font-size: 11px;
                    }

                    .member-photo-card img {
                        height: 180px;
                    }
                }