/* BLOG TITLE
---------------------------------------------------------------------------------------------------- */
.blog-title-content {
    display: block;
    margin-top: 3rem;
}

.blog-title-h1 {
    color: #333;
    font-weight: 600;
    font-size: 36px;
    line-height: 60px;
    text-align: center;
}

.blog-title-plain {
    color: #333;
    font-size: 16px;
    margin-bottom: 3rem;
    text-align: center;
}

.blog-pagination-content {
    display: flex;
    justify-content: center;
}

.blog-pagination-content-btn {
    background-color: #397e8f !important;
    border: 1px solid #397e8f !important;
    padding: 0.5rem 1rem !important;
    color: #fff !important;
    text-decoration: none !important;
    margin-right: 1rem !important;
}

.blog-pagination-content-btn-unactive {
    background-color: #FFF !important;
    border: 1px solid #397e8f !important;
    padding: 0.5rem 1rem !important;
    color: #397e8f !important;
    text-decoration: none !important;
    margin-right: 1rem !important;
}

/* BLOG DETIAL
---------------------------------------------------------------------------------------------------- */

/* ----------- MEDIA - MOBILE TABLETS IPADS -----------*/
@media (max-width: 1024px) {
    .blog-detail-content {
        margin: 1rem;
    }

    .blog-detail-content-plain img {
        object-fit: cover !important;
        height: 300px !important;
        width: 100% !important;
    }
}

/* ------------- MEDIA - LAPTOPS DESKTOPS -------------*/
@media (min-width: 1025px) {
    .blog-detail-content {
        margin: 4rem;
    }
}

.blog-detail-content-h1 {
    color: #333;
    font-weight: 600;
    font-size: 36px;
    line-height: 60px;
}

.blog-detail-content-h2 {
    color: #333;
    font-weight: 600;
    font-size: 22px;
}

.blog-detail-content-h3 {
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.blog-detail-content-plain {
    color: #333;
    font-size: 16px;
    margin-bottom: 1rem;
}

.blog-detail-content-plain-sm {
    color: #333;
    font-size: 14px !important;
}

.blog-detail-content-plain-light {
    color: #333;
    font-size: 14px;
    font-weight: 200 !important;
}

.blog-detail-content-span {
    text-decoration: none !important;
}

.blog-content-col {
    margin-bottom: 4rem;
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}

.tiktok-content-col {
    margin-bottom: 4rem;
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}

.blog-content-col-content {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px,
        rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    border-radius: 9px;
}

.blog-content-list-card-img {
    min-width: 250px;
    width: 100%;
    border-radius: 9px 9px 0px 0px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px,
        rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
}

.blog-detail-content-list-card-img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 9px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px,
        rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    margin-right: 15px;
}

.blog-content-title {
    margin-top: 5rem !important;
    justify-content: center;
}

.blog-content-title-line {
    border-bottom: 1px solid #c9c9c9;
    width: 5rem;
    margin: 0rem 1rem 0.9rem 2rem;
}

.blog-detail-social-icon-face {
    width: 23px;
    height: 23px;
    margin-right: 7px;
}

.blog-detail-social-icon {
    width: 25px;
    height: 25px;
    margin-right: 7px;
}

.blog-tag-btn {
    /* background-color: transparent !important;
    border: 1px solid #585858 !important;
    text-align: center !important;
    padding: 0.3rem 0.7rem !important;
    color: #585858 !important;
    display: block;
    margin-left: 10px;
    margin-bottom: 10px;
    font-size: 14px; */
    /* background-color: transparent !important; */
    /* border: 1px solid #aaaaaa !important; */
    /* padding: 0.3rem 1.2rem !important; */
    text-align: center !important;
    color: #333 !important;
    display: block;
    margin-right: 8px;
    font-size: 14px;
    border-radius: 20px;
    /* color: #101010 !important; */
    border-radius: 0.4rem;
    border: solid 0.1rem #e0e0e0;
    background-color: #ffffff;
    padding: 0.3rem 1.2rem;
    height: 2.4rem;
    height: max-content;
    text-decoration: none !important;
    margin-bottom: 0.5rem;
}

.testtimonial-title-content {
    display: block;
    padding: 3rem 5rem;
}



.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}



.testtimonial-text-h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 24px;
}


.testtimonial-text-plain-title {
    color: #333;
}


/* ----------- MEDIA - MOBILE TABLETS IPADS -----------*/
@media (max-width: 1024px) {
    .testtimonial-text-plain-title {
        color: #333;
        font-size: 16px;
        margin-bottom: 3rem;
        text-align: center !important;
    }

    .testtimonial-row {
        margin-bottom: 3rem;
        padding: 0rem 0rem 0rem 0rem;
    }

    .testtimonial-text-content {
        padding: 3rem 0rem 0rem 0rem;
    }

    .testtimonial-img {
        object-fit: cover;
        height: 480px;
        width: 100%;
    }

    .event-home-img {
        object-fit: cover;
        height: 480px;
        width: 100%;
    }
}

/* ------------- MEDIA - LAPTOPS DESKTOPS -------------*/
@media (min-width: 1025px) {
    .testtimonial-text-plain-title {
        color: #333;
        font-size: 16px;
        margin-bottom: 7rem;
        text-align: center !important;
    }

    .testtimonial-row {
        margin-bottom: 3rem;
        padding: 0rem 3rem 0rem 3rem;
    }

    .testtimonial-text-content {
        padding: 3rem 0rem 0rem 6rem;
    }

    .testtimonial-img {
        object-fit: cover;
        height: 380px;
        width: 100%;
    }

    .event-home-img {
        width: 100%;
        height: auto;
        /* ให้คำนวณจาก aspect-ratio */
        aspect-ratio: 9 / 9;
        /* บังคับอัตราส่วน 8:9 */
        object-fit: cover;
        /* หรือใช้ contain ถ้าอยากให้เห็นครบไม่ถูกครอป */
    }
}

/* =====================================================
   BLOG CTA BUTTONS - RESPONSIVE STYLES
   ===================================================== */

/* Base styles for CTA buttons from database content */
.blog-detail-content-plain .bg-btn-lf,
.blog-detail-content-plain .bg-btn-rt,
.blog-detail-content-plain #bg-btn-lf,
.blog-detail-content-plain #bg-btn-rt,
.blog-detail-content-plain a[id="bg-btn-lf"],
.blog-detail-content-plain a[id="bg-btn-rt"] {
    box-sizing: border-box;
}

/* ------------- MEDIA - LAPTOPS DESKTOPS (จอใหญ่: ปุ่มอยู่คู่กัน) -------------*/
@media (min-width: 769px) {

    /* Keep buttons side by side on desktop */
    .blog-detail-content-plain div[style*="display: flex"],
    .blog-detail-content-plain div[style*="display:flex"] {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
    }

    /* CTA button wrapper - the div with display:grid */
    .blog-detail-content-plain div[style*="display: grid"],
    .blog-detail-content-plain div[style*="display:grid"] {
        display: grid !important;
        justify-content: center;
    }
}

/* ----------- MEDIA - MOBILE TABLETS (จอเล็ก: ปุ่มเคาะบรรทัด) -----------*/
@media (max-width: 768px) {

    /* Make the flex container stack vertically on mobile */
    .blog-detail-content-plain div[style*="display: flex"],
    .blog-detail-content-plain div[style*="display:flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    /* Make buttons full width on mobile */
    .blog-detail-content-plain .bg-btn-lf,
    .blog-detail-content-plain .bg-btn-rt,
    .blog-detail-content-plain #bg-btn-lf,
    .blog-detail-content-plain #bg-btn-rt,
    .blog-detail-content-plain a[id="bg-btn-lf"],
    .blog-detail-content-plain a[id="bg-btn-rt"] {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 10px !important;
        text-align: center !important;
    }

    /* Fix for the design button (green CTA button) */
    .blog-detail-content-plain #bg-btn-design,
    .blog-detail-content-plain .bg-btn-design,
    .blog-detail-content-plain a[id="bg-btn-design"] {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center !important;
    }

    /* Override inline width:100% with proper alignment for grid container */
    .blog-detail-content-plain div[style*="display: grid"],
    .blog-detail-content-plain div[style*="display:grid"] {
        width: 100% !important;
    }
}