:root {
    --font-base: ibm_plex_sans_thai_looped;
    --font-headings: prachasonneue;
}
@font-face {
    font-family:'ibm_plex_sans_thai_looped';
    src:url('https://www.ptp.or.th/wp-content/uploads/2025/01/IBMPlexSansThaiLooped-Regular.ttf') format('truetype');}@font-face {font-family:'prachasonneue';src:url('https://www.ptp.or.th/wp-content/uploads/2025/01/PrachasonNeue-Bold.otf') format('truetype');}body, #content, .entry-content, .post-content, .page-content, .post-excerpt, .entry-summary, .entry-excerpt, .widget-area, .widget, .sidebar, #sidebar, footer, .footer, #footer, .site-footer {
    font-family: "ibm_plex_sans_thai_looped" !important;
 }
#site-title, .site-title, #site-title a, .site-title a, .entry-title, .entry-title a, h1, h2, h3, h4, h5, h6, .widget-title, .elementor-heading-title {
    font-family: "prachasonneue" !important;
 }


/* รีเซ็ตค่าเริ่มต้น */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Loader */
#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 100px;
    height: 100px;
    border: 10px solid lightgray;
    border-top: 10px solid #DC143C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
header {
    height: 75px;
    background: #fff;
    color: #21409A;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 1px 5px 0px;
    display: flex !important;
    align-items: center;
    padding: 0 1em;
    z-index: 999;
    position: fixed;
    width: 100%;
}

.container {
    padding-top: 75px;
}

header h3 {margin:0;}
.logo {
    width: 50px;
    margin-right: 10px;
}

/* ส่วนของ Row-Column */
.list-section {
    padding: 20px;
}

h2 {
    color: #21409A;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

h3 {
    margin: 0;
}

/* จังหวัด */
.province {
    margin-bottom: 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Style for each column */
.column {
    background: #f4f4f4;
    padding: 10px;
    text-align: center;
    max-width: 200px;
    flex: 1 1 200px;  /* Allow columns to grow/shrink but with a base width of 200px */
    margin: 10px;
}

/* Make the columns responsive on smaller screens */
@media screen and (max-width: 768px) {
    .column {
        flex: 1 1 150px;  /* Columns can shrink to 150px */
    }
}

/* For very small screens (e.g., mobile) */
@media screen and (max-width: 480px) {
    .column {
        flex: 1 1 100%;  /* Columns take up full width */
        max-width: 100%;  /* Ensure no columns are wider than the container */
    }
}

.column img {
    width: 100%;
    max-width: 120px;
    height: auto;
    margin-bottom: 5px;
}

/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}

#member-list-container {
    padding: 10px;
}
