/* =========================================================
   FONT
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

body, h1, h2, h3, h4, h5, h6, p, a, div, span, li, button, input, textarea {
    font-family: 'Prompt', Tahoma, sans-serif !important;
}



/* =========================================================
   OJS SIMPLE ANIMATED BANNER
   Clean / Simple / Professional
   ========================================================= */

.pkp_structure_footer_wrapper {
    background-image: url("https://lh3.googleusercontent.com/d/1VW-0ddamlGpUHx-QwSsYpJQZ38stQ4BV") !important;

    background-size: 100% 100% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    min-height: 200px !important;
}





.pkp_site_name_wrapper {
    position: relative !important;

    min-height: 360px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;

    background: #111827 !important;

    border-radius: 0 0 0 0 !important;

    isolation: isolate !important;
}


 /* =========================================================
   BANNER IMAGE
   ========================================================= */

.pkp_site_name_wrapper::before {
    content: "" !important;

    position: absolute !important;

    top: -20px !important;
    left: -20px !important;

    width: calc(100% + 40px) !important;
    height: calc(100% + 40px) !important;

    background-image:
        url("https://lh3.googleusercontent.com/d/1A_TuJugTTWbYRpmEdhZdVJqAbZzuwFTf") !important;

    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    border-radius: 0 !important;

    z-index: 0 !important;

    animation: simpleBanner 18s ease-in-out infinite alternate !important;
}



/* =========================================================
   LIGHT OVERLAY
   ========================================================= */

.pkp_site_name_wrapper::after {
    content: "" !important;

    position: absolute !important;
    inset: 0 !important;

    background:
        rgba(0, 0, 0, 0.25) !important;

    z-index: -1 !important;

    pointer-events: none !important;
}


/* =========================================================
   SIMPLE IMAGE MOTION
   ========================================================= */

@keyframes simpleBanner {

    0% {
        transform:
            scale(1.03)
            translateX(-1%);
    }

    50% {
        transform:
            scale(1.07)
            translateX(1%);
    }

    100% {
        transform:
            scale(1.04)
            translateX(-1%);
    }
}


/* =========================================================
   JOURNAL NAME
   ========================================================= */

.pkp_site_name {
   
    display: none !important;
}


.pkp_site_name a {
    color: #ffffff !important;

    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.7) !important;
}


/* =========================================================
   LOGO
   ========================================================= */

.pkp_site_name img {
    max-height: 140px !important;

    width: auto !important;

    border: none !important;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.35) !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .pkp_site_name_wrapper {
        min-height: 240px !important;
    }

    .pkp_site_name img {
        max-height: 100px !important;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .pkp_site_name_wrapper::before {
        animation: none !important;
    }
}


/* =========================================================
   EDITORIAL BOARD
   Modern / Clean / Professional / OJS
   ========================================================= */

.editorial-board {
    max-width: 1100px !important;
    margin: 50px auto !important;
    padding: 0 20px !important;

    font-family:
        "Noto Sans Thai",
        "Sarabun",
        "Tahoma",
        sans-serif !important;

    color: #1f2937 !important;
}


/* =========================================================
   MAIN TITLE
   ========================================================= */

.editorial-board > h1 {
    position: relative !important;

    margin: 0 0 40px !important;
    padding: 0 0 18px !important;

    text-align: center !important;

    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;

    color: #0f766e !important;
}


/* เส้นตกแต่งใต้หัวข้อ */

.editorial-board > h1::after {
    content: "" !important;

    display: block !important;

    width: 70px !important;
    height: 4px !important;

    margin: 14px auto 0 !important;

    border-radius: 999px !important;

    background:
        linear-gradient(
            90deg,
            #0f766e,
            #14b8a6
        ) !important;
}


/* =========================================================
   SECTION
   ========================================================= */

.editorial-section {
    position: relative !important;

    margin-bottom: 28px !important;
    padding: 0 !important;

    background: #ffffff !important;

    border: 1px solid #e5e7eb !important;
    border-radius: 18px !important;

    overflow: hidden !important;

    box-shadow:
        0 8px 25px rgba(15, 118, 110, 0.08) !important;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease !important;
}


/* Hover */

.editorial-section:hover {
    transform: translateY(-3px) !important;

    box-shadow:
        0 14px 35px rgba(15, 118, 110, 0.14) !important;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.section-title {
    position: relative !important;

    padding: 15px 24px !important;

    color: #ffffff !important;

    font-size: 18px !important;
    font-weight: 700 !important;

    line-height: 1.5 !important;

    background:
        linear-gradient(
            135deg,
            #0f766e 0%,
            #0d9488 55%,
            #14b8a6 100%
        ) !important;
}


/* Decorative line */

.section-title::before {
    content: "" !important;

    display: inline-block !important;

    width: 5px !important;
    height: 22px !important;

    margin-right: 12px !important;

    vertical-align: -5px !important;

    border-radius: 10px !important;

    background: rgba(255,255,255,0.8) !important;
}


/* =========================================================
   EDITORIAL ROW
   ========================================================= */

.editorial-row {
    display: grid !important;

    grid-template-columns:
        minmax(220px, 0.8fr)
        minmax(0, 1.8fr) !important;

    gap: 20px !important;

    align-items: center !important;

    padding: 18px 24px !important;

    border-bottom: 1px solid #eef2f2 !important;

    background: #ffffff !important;

    transition:
        background 0.25s ease,
        padding-left 0.25s ease !important;
}


/* ลบเส้นแถวสุดท้าย */

.editorial-row:last-child {
    border-bottom: none !important;
}


/* Hover แต่ละคน */

.editorial-row:hover {
    background:
        linear-gradient(
            90deg,
            #f0fdfa 0%,
            #ffffff 70%
        ) !important;

    padding-left: 30px !important;
}


/* =========================================================
   NAME
   ========================================================= */

.editorial-name {
    position: relative !important;

    color: #0f766e !important;

    font-size: 17px !important;
    font-weight: 700 !important;

    line-height: 1.6 !important;
}


/* จุดตกแต่งหน้าชื่อ */

.editorial-name::before {
    content: "" !important;

    display: inline-block !important;

    width: 8px !important;
    height: 8px !important;

    margin-right: 10px !important;

    vertical-align: 2px !important;

    border-radius: 50% !important;

    background: #14b8a6 !important;

    box-shadow:
        0 0 0 4px rgba(20, 184, 166, 0.12) !important;
}


/* =========================================================
   DETAILS
   ========================================================= */

.editorial-details {
    color: #4b5563 !important;

    font-size: 15px !important;

    line-height: 1.8 !important;
}


/* =========================================================
   SPECIAL CARD ACCENT
   ========================================================= */

.editorial-section::before {
    content: "" !important;

    position: absolute !important;

    left: 0 !important;
    top: 0 !important;

    width: 4px !important;
    height: 100% !important;

    background:
        linear-gradient(
            180deg,
            #0f766e,
            #14b8a6
        ) !important;

    z-index: 2 !important;
}


/* =========================================================
   FIRST SECTION - EDITOR
   ========================================================= */

.editorial-section:first-of-type .editorial-row {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}


/* =========================================================
   SOFT BACKGROUND
   ========================================================= */

.editorial-board {
    position: relative !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .editorial-board {
        margin: 30px auto !important;
        padding: 0 14px !important;
    }

    .editorial-board > h1 {
        margin-bottom: 28px !important;

        font-size: 27px !important;
    }

    .editorial-section {
        margin-bottom: 20px !important;

        border-radius: 14px !important;
    }

    .section-title {
        padding: 13px 18px !important;

        font-size: 17px !important;
    }

    .editorial-row {
        display: block !important;

        padding: 16px 18px !important;
    }

    .editorial-row:hover {
        padding-left: 22px !important;
    }

    .editorial-name {
        margin-bottom: 5px !important;

        font-size: 16px !important;
    }

    .editorial-details {
        padding-left: 18px !important;

        font-size: 14px !important;
        line-height: 1.7 !important;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .editorial-board {
        padding: 0 10px !important;
    }

    .editorial-board > h1 {
        font-size: 24px !important;
    }

    .section-title {
        font-size: 16px !important;
    }

    .editorial-row {
        padding: 14px 15px !important;
    }

    .editorial-name {
        font-size: 15px !important;
    }

    .editorial-details {
        font-size: 13.5px !important;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .editorial-section,
    .editorial-row {
        transition: none !important;
    }
}

/* =========================================================
   EDITORIAL BOARD
   Minimal Academic Style
   ========================================================= */

.editorial-board {
    width: 100% !important;
    max-width: 900px !important;

    margin: 45px auto !important;
    padding: 28px 24px 0 !important;

    box-sizing: border-box !important;

    background: #ffffff !important;

    border-radius: 6px !important;

    border-top: 4px solid #059669 !important;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.06) !important;

    font-family:
        "Sarabun",
        "Noto Sans Thai",
        Tahoma,
        sans-serif !important;

    color: #1f2937 !important;
}


/* =========================================================
   TITLE
   ========================================================= */

.editorial-board > h1 {
    margin: 0 !important;
    padding: 0 0 12px !important;

    font-size: 25px !important;
    font-weight: 700 !important;

    line-height: 1.5 !important;

    color: #111827 !important;

    border-bottom: 1px solid #e5e7eb !important;

    position: relative !important;
}


/* เส้นเขียวสั้นใต้หัวข้อ */

.editorial-board > h1::after {
    content: "" !important;

    position: absolute !important;

    left: 0 !important;
    bottom: -1px !important;

    width: 34px !important;
    height: 2px !important;

    background: #059669 !important;
}


/* =========================================================
   SECTION
   ========================================================= */

.editorial-section {
    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: none !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    overflow: visible !important;
}


/* ปิด accent เดิม */

.editorial-section::before {
    display: none !important;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.section-title {
    margin: 0 !important;

    padding: 13px 0 8px !important;

    background: transparent !important;

    color: #008c72 !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    line-height: 1.5 !important;

    border-bottom: 1px solid #e5e7eb !important;
}


/* เอาขีดหน้าหัวข้อออก */

.section-title::before {
    display: none !important;
}


/* =========================================================
   ROW
   ========================================================= */

.editorial-row {
    display: grid !important;

    grid-template-columns:
        180px
        minmax(0, 1fr) !important;

    gap: 20px !important;

    align-items: center !important;

    margin: 0 !important;

    padding: 8px 0 !important;

    background: transparent !important;

    border-bottom: 1px dashed #eeeeee !important;

    transition: none !important;
}


/* แถวสุดท้ายของแต่ละ section */

.editorial-row:last-child {
    border-bottom: none !important;
}


/* =========================================================
   NAME
   ========================================================= */

.editorial-name {
    margin: 0 !important;

    color: #1f2937 !important;

    font-size: 12px !important;
    font-weight: 500 !important;

    line-height: 1.6 !important;
}


/* เอาจุดหน้าชื่อออก */

.editorial-name::before {
    display: none !important;
}


/* =========================================================
   DETAILS
   ========================================================= */

.editorial-details {
    margin: 0 !important;

    color: #6b7280 !important;

    font-size: 11px !important;
    font-weight: 400 !important;

    line-height: 1.7 !important;
}


/* =========================================================
   HOVER
   ========================================================= */

.editorial-row:hover {
    padding-left: 0 !important;

    background: transparent !important;
}


/* =========================================================
   FIRST SECTION SPACING
   ========================================================= */

.editorial-board > .editorial-section:first-of-type {
    padding-top: 2px !important;
}


/* =========================================================
   LAST SECTION
   ========================================================= */

.editorial-board > .editorial-section:last-child {
    padding-bottom: 20px !important;
}


/* =========================================================
   SUBTLE BOTTOM AREA
   ========================================================= */

.editorial-board::after {
    content: "© สำนักงานสาธารณสุขจังหวัดอุตรดิตถ์";

    display: block !important;

    margin: 0 -24px !important;
    padding: 9px 24px !important;

    text-align: right !important;

    background: #f8fafc !important;

    border-top: 1px solid #f0f0f0 !important;

    color: #9ca3af !important;

    font-size: 9px !important;

    line-height: 1.5 !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

    .editorial-board {
        max-width: calc(100% - 30px) !important;

        margin: 30px auto !important;

        padding: 24px 20px 0 !important;
    }


    .editorial-board > h1 {
        font-size: 23px !important;
    }


    .editorial-row {
        grid-template-columns:
            145px
            minmax(0, 1fr) !important;

        gap: 15px !important;
    }


    .editorial-name {
        font-size: 11.5px !important;
    }


    .editorial-details {
        font-size: 10.5px !important;
    }


    .editorial-board::after {
        margin: 0 -20px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .editorial-board {
        max-width: calc(100% - 20px) !important;

        margin: 25px auto !important;

        padding: 22px 16px 0 !important;

        border-top-width: 3px !important;
    }


    .editorial-board > h1 {
        font-size: 21px !important;

        padding-bottom: 10px !important;
    }


    .section-title {
        padding-top: 12px !important;
        padding-bottom: 7px !important;

        font-size: 13px !important;
    }


    .editorial-row {
        display: block !important;

        padding: 8px 0 !important;
    }


    .editorial-name {
        margin-bottom: 2px !important;

        font-size: 11.5px !important;

        font-weight: 600 !important;
    }


    .editorial-details {
        font-size: 10px !important;

        line-height: 1.6 !important;
    }


    .editorial-board::after {
        margin: 0 -16px !important;

        padding: 8px 16px !important;

        font-size: 8px !important;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .editorial-board {
        max-width: calc(100% - 14px) !important;

        padding-left: 13px !important;
        padding-right: 13px !important;
    }


    .editorial-board > h1 {
        font-size: 20px !important;
    }


    .editorial-name {
        font-size: 11px !important;
    }


    .editorial-details {
        font-size: 9.5px !important;
    }


    .editorial-board::after {
        margin-left: -13px !important;
        margin-right: -13px !important;

        padding-left: 13px !important;
        padding-right: 13px !important;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .editorial-row {
        transition: none !important;
    }
}
/* =========================================================
   EDITORIAL BOARD - FONT & SIZE FIX
   ========================================================= */

/* ฟอนต์หลัก */
.editorial-board,
.editorial-board * {
    font-family:
        "Sarabun",
        "Noto Sans Thai",
        "Arial",
        sans-serif !important;
}


/* =========================================================
   TITLE
   ========================================================= */

.editorial-board > h1 {
    font-size: 30px !important;
    font-weight: 700 !important;

    line-height: 1.5 !important;

    color: #111827 !important;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.editorial-board .section-title {
    font-size: 16px !important;
    font-weight: 700 !important;

    line-height: 1.6 !important;

    color: #008f72 !important;
}


/* =========================================================
   PERSON NAME
   ========================================================= */

.editorial-board .editorial-name {
    font-size: 14px !important;
    font-weight: 500 !important;

    line-height: 1.7 !important;

    color: #1f2937 !important;
}


/* =========================================================
   POSITION / DETAILS
   ========================================================= */

.editorial-board .editorial-details {
    font-size: 13px !important;
    font-weight: 400 !important;

    line-height: 1.8 !important;

    color: #6b7280 !important;
}


/* =========================================================
   ROW SPACING
   ========================================================= */

.editorial-board .editorial-row {
    grid-template-columns:
        170px
        minmax(0, 1fr) !important;

    gap: 20px !important;

    padding: 10px 0 !important;
}


/* =========================================================
   SECTION TITLE SPACING
   ========================================================= */

.editorial-board .section-title {
    padding-top: 15px !important;
    padding-bottom: 9px !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .editorial-board > h1 {
        font-size: 27px !important;
    }

    .editorial-board .section-title {
        font-size: 15px !important;
    }

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

    .editorial-board .editorial-details {
        font-size: 13px !important;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .editorial-board > h1 {
        font-size: 25px !important;
    }

    .editorial-board .section-title {
        font-size: 15px !important;
    }

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

    .editorial-board .editorial-details {
        font-size: 12.5px !important;
    }

    .editorial-board .editorial-row {
        padding: 9px 0 !important;
    }

}
/* =========================================================
   EDITORIAL BOARD
   NO HOVER / NO MOVEMENT / STATIC
   ========================================================= */

/* ปิดการขยับของกล่อง */
.editorial-section {
    transform: none !important;
    transition: none !important;
}


/* ปิด effect ตอนเอาเมาส์วาง */
.editorial-section:hover {
    transform: none !important;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.06) !important;
}


/* ปิดการขยับของแต่ละแถว */
.editorial-row {
    transform: none !important;
    transition: none !important;
}


/* ตอนแตะ/เอาเมาส์วาง ไม่เปลี่ยนตำแหน่ง */
.editorial-row:hover {
    transform: none !important;

    padding-left: 0 !important;

    background: transparent !important;
}


/* ป้องกัน effect จาก element ลูก */
.editorial-board *,
.editorial-board *:hover,
.editorial-board *:active,
.editorial-board *:focus {
    transform: none !important;
}


/* =========================================================
   MOBILE - NO TOUCH EFFECT
   ========================================================= */

@media (max-width: 768px) {

    .editorial-section,
    .editorial-row {
        transform: none !important;
        transition: none !important;
    }

    .editorial-section:active,
    .editorial-row:active {
        transform: none !important;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .editorial-board *,
    .editorial-board *::before,
    .editorial-board *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

