/* =====================================================================================================
   Article body styles (#div-article / .articleDetail) - moved out of Views/Article/Detail.cshtml unchanged
   (Ohm 2026-11-24) so the admin article editor can show the same look (front /editor-css/article).
   Linked by the article page right before Central CSS (Article), exactly where the inline <style> was.
   ===================================================================================================== */
#div-article {
}

    #div-article p {
        font-family: "IBM Plex Sans Thai Looped", sans-serif;
        font-size: 16px;
        line-height: 26px;
    }

    #div-article ul li, #div-article ol li {
        font-family: "IBM Plex Sans Thai Looped", sans-serif;
        font-size: 16px;
        line-height: 26px;
        list-style: none;
    }

    #div-article ul, #div-article ol {
        padding-left: 0;
    }

        #div-article ul li a, #div-article ol li a {
            color: #3b7169 !important;
        }

    #div-article h2 {
        font-family: "IBM Plex Sans Thai Looped", sans-serif;
        color: #3b7169;
        font-size: 1.875rem;
        line-height: 28rem;
        font-weight: 700;
    }

    #div-article h3, #div-article span {
        font-family: "IBM Plex Sans Thai Looped", sans-serif;
        font-size: 18px;
        line-height: 2.2rem;
        font-weight: 600;
    }

p#backtoindex a {
    color: #3b7169;
    font-weight: 600;
}

.bContainer {
    width: 100%;
    margin: 15px auto;
    text-align: center;
}

    .bContainer button {
        margin: 10px;
    }

.button4 {
    font-family: "IBM Plex Sans Thai Looped", sans-serif;
    color: #F78026;
    background: #ffffff;
    border-color: #F78026;
    padding: 10px;
    line-height: 1.1;
    border-radius: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s linear;
    positin: relative;
    display: inline-block;
    outline: none;
    font-size: 38px;
    border-style: solid;
}

@media screen and (max-width: 767px) {
    #doc-img-desc {
        display: none;
        width: 50%;
    }

    #doc-img-mobi {
        display: block;
        width: 60%;
    }

    #cont-img {
        display: none;
        width: 70%;
        margin-left: auto;
        margin-right: auto;
    }

    #cont-img-mobi {
        display: block;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    #THContent p {
        text-indent: 5%;
    }
}

@media screen and (min-width: 768px) {
    #doc-img-desc {
        display: block;
        width: 50%;
    }

    #doc-img-mobi {
        display: none;
        width: 60%;
    }

    #cont-img {
        display: block;
        width: 50%;
        margin-left: auto;
        margin-right: auto;
    }

    #cont-img-mobi {
        display: none;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ---- Social icons pasted inside the article content -------------------------
   Old content has markup like
     <button class="button4">สอบถามรายละเอียดเพิ่มเติม<br>
       <a href="line://..."><img src="line.png" width="40px"></a>
       <a href="https://www.facebook.com/..."><img src="facebook.png" width="40px"></a>
     </button>
   width="40px" is not a valid HTML width attribute (it must be a bare number), so the
   browser ignores it and the content image rules blow the icons up to full width - with
   a border and a radius on top. Pin them to 40x40 and strip the content-image styling.
   !important because the admin Central CSS is emitted after this block.            */
.articleDetail a[href^="line:"] img,
.articleDetail a[href*="line.me"] img,
.articleDetail a[href*="facebook.com"] img,
.articleDetail a[href*="instagram.com"] img,
.articleDetail a[href*="youtube.com"] img,
.articleDetail a[href*="tiktok.com"] img,
.articleDetail a[href*="twitter.com"] img,
.articleDetail a[href*="x.com"] img,
.articleDetail a[href^="tel:"] img,
.articleDetail .nkt-ico img {
    display: inline-block !important;
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    float: none !important;
    clear: none !important;
    object-fit: contain;
    vertical-align: middle;
}

.articleDetail a[href^="line:"],
.articleDetail a[href*="line.me"],
.articleDetail a[href*="facebook.com"],
.articleDetail a[href*="instagram.com"],
.articleDetail a[href*="youtube.com"],
.articleDetail a[href*="tiktok.com"] {
    display: inline-block;
    margin: 6px 5px 0;
    line-height: 0;
}

/* The pasted <button> is only a call-to-action box, never a real control. */
.articleDetail button.button4,
.articleDetail button[class^="button"] {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: auto;
    padding: 14px 22px;
    background: #fff;
    border: 1.6px solid #f78026;
    border-radius: 10px;
    color: #f78026;
    font-size: 20px;
    line-height: 1.6;
    font-weight: 600;
    text-align: center;
    cursor: default;
}

@media (max-width: 575px) {
    .articleDetail button.button4,
    .articleDetail button[class^="button"] { font-size: 17px; padding: 12px 16px; }
}
