@media only screen and (max-width: 1032px) and (min-width: 992px) {
    .link-menu.sec_navbar,
    
	.link-dropdown.sec_navbar {
        margin-right: 1.25rem;
    }
}

@media only screen and (max-width: 991px) {
    .container.of_page-content.relative.card,
    
  .single-content.card {
        padding: 2rem;
    }
}

@media only screen and (max-width: 767px) {
    .group-card.sec_conver {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .container.of_page-content.relative.card,
    
  .single-content.card {
        padding: 1.5rem;
    }
}

@media only screen and (max-width: 372px) {
    .block-navigaition.sec_navbar {
        inset: auto 20px 5.5rem 100px;
    }
}

@media only screen and (max-width: 339px) {
    .top-navbar.sec_navbar {
        padding-left: 10px;
        padding-right: 10px;
    }

    .icon.facebook,
    .icon-phone,
    .icon-email {
        margin-right: 5px;
    }

    .line-break {
        margin-left: 5px;
        margin-right: 5px;
    }
}

/* ####### ปุ่ม Subscribe ######## */
/* Keyframes กระดิ่งสั่น */
@keyframes bell-shake {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(-15deg);
    }

    20% {
        transform: rotate(10deg);
    }

    30% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.icon-bell svg {
    animation: bell-shake 0.7s ease infinite;
    animation-iteration-delay: 3s;
    transform-origin: top center;
}

.btn-gradient:hover .icon-bell svg {
    animation: bell-shake 0.8s ease;
    transform-origin: top center;
}

.btn-gradient {
    background-image: linear-gradient(90deg, #000046, #1cb5e0, #000046);
    background-size: 200% 100%;
    background-position: left center;
    transition: background-position 0.6s ease;
}

.btn-gradient:hover {
    background-position: right center;
}

.btn-submit {
    background-image: linear-gradient(90deg, #1CB5E0, #0F36B5, #1CB5E0);
    background-size: 200% 100%;
    background-position: left center;
    transition: background-position 0.6s ease;
}

.btn-submit:hover {
    background-position: right center;
}

/* ####### ปุ่ม Humberger Menu ######## */
.menu-button.w-nav-button.w--open .icon-humberger.w-icon-nav-menu,

.menu-button.w-nav-button .icon-close {
    visibility: hidden;
    opacity: 0;
    transform: translateX(-25px);
    transition: all 0.5s ease;
}

.menu-button.w-nav-button.w--open,

.menu-button.w-nav-button.w--open .icon-close {
    visibility: visible;
    opacity: 1;
    transition: all 0.3s ease;
}

.icon-humberger.w-icon-nav-menu {
    transform: translateX(25px);
}

/* ####### ปุ่ม text gradient ######## */
.text-gradient {
    background: linear-gradient(90deg, #1CB5E0, #0F36B5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn-gradient.btn-download.sec_news {
    background: transparent;
    transition: all 0.5s ease !important;
}

/* ####### icon ######## */
.icon-star svg {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.4));
}

.icon-contact.sec_contact svg {
    width: 25px;
    height: 25px;
}

/* ####### Logo Customer ######## */
.card.sec_customer {
    padding: 4px;

    /* ความหนาของ border */
    background: linear-gradient(135deg, #00c7ff, #085c93);
    border-radius: 12px;
    display: inline-block;
    width: 100%;
}
.card.sec_customer .logo {
    display: block;
    background: white;
    border-radius: 10px;
    padding: 8px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    object-fit: contain;
}
.card.sec_customer:last-child {
    margin-right: 0;
}
.div-lnc {
    background: white;
    border-radius: 10px;
    padding: 8px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    text-align: center;
}

/* ####### Default WP ######## */
/* ลบ underline ออกจากลิงก์ */
a,
a:visited,
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
}

/* ####### Navbar ######## */
/* โชว์ domain เฉพาะจอ ≥ 480px; มือถือซ่อน */
@media (max-width: 767px) {
    .email-domain {
        display: none;
    }
}
/* แก้ความสูง Hover ขีดเส้นใต้ให้อยู่ล่างสุด */
.block-navigaition.sec_navbar {
    align-items: stretch;
}
/* จับเมนูปัจจุบัน + ให้เหมือน hover */
.current-menu-item > .link-menu.sec_navbar,
.current-menu-parent > .link-menu.sec_navbar,
.current-menu-ancestor > .link-menu.sec_navbar,
.current-menu-item     > .w-dropdown-toggle,
.current-menu-parent   > .w-dropdown-toggle,
.current-menu-ancestor > .w-dropdown-toggle {
    text-shadow: 1px 1px 4px #0000004d;
    border-bottom: 2px solid #fff;
}

/* ####### Yoast SETO ######## */
.breadcrumb-nav .nav_bread .sep {
    margin: 0 8px;
    opacity: .6;
    color: white;
}

/* ####### Single Project ######## */
.block-image.of_product {
    margin-bottom: var(--_font-size---text-5xl);
}

/* ===== Reset style ของ Classic Editor ===== */
.xp-editor-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #111827;

    /* เทาเข้มอ่านง่าย */
}

.xp-editor-content p {
    margin: 1em 0;
}

.xp-editor-content h1,

.xp-editor-content h2,

.xp-editor-content h3,

.xp-editor-content h4,

.xp-editor-content h5,

.xp-editor-content h6 {
    font-weight: 600;
    line-height: 1.25;
    margin: 1.5em 0 0.75em;
}

.xp-editor-content h1 {
    font-size: 2em;
}

.xp-editor-content h2 {
    font-size: 1.75em;
}

.xp-editor-content h3 {
    font-size: 1.5em;
}

.xp-editor-content h4 {
    font-size: 1.25em;
}

.xp-editor-content h5 {
    font-size: 1.1em;
}

.xp-editor-content h6 {
    font-size: 1em;
}

/* ลิสต์ */
.xp-editor-content ul,

.xp-editor-content ol {
    margin: 1em 0 1em 1.5em;
    padding: 0;
}

.xp-editor-content ul {
    list-style: disc;
}

.xp-editor-content ol {
    list-style: decimal;
}

/* blockquote */
.xp-editor-content blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1em;
    margin: 1.5em 0;
    color: #555;
    font-style: italic;
}

/* ตาราง */
.xp-editor-content table {
    border-collapse: collapse;
    margin: 1.5em 0;
    width: 100%;
}

.xp-editor-content th,

.xp-editor-content td {
    border: 1px solid #ddd;
    padding: 0.5em 0.75em;
}

.xp-editor-content th {
    background: #f9fafb;
    font-weight: 600;
    text-align: left;
}

/* รูปภาพ */
.xp-editor-content img {
    max-width: 100%;
    width: auto;
    height: auto;
}

/* ลิงก์ */
.xp-editor-content a {
    color: #2563eb;

    /* ฟ้า */
    text-decoration: underline;
}

.xp-editor-content a:hover {
    color: #1d4ed8;

    /* ฟ้าเข้ม */
}

/* code */
.xp-editor-content pre,

.xp-editor-content code {
    font-family: monospace, monospace;
    background: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 4px;
}

.xp-editor-content pre {
    display: block;
    padding: 1em;
    overflow-x: auto;
}

/* Card Title */
.title.sec_news {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

.title.sec_news a {
    color: black;
}

.link-cate.sec_news {
    inset: 7% auto auto 7%;
}

@media screen and (max-width: 767px) {
    .card.sec_news.of_single.of_cate {
        min-width: 0;
    }
}

/* ####### Search ######## */
.box-search {
    position: relative;
    z-index: 2;
    margin-bottom: 3rem;
}

.box-search .card {
    max-width: 767px;
    width: 100%;
    margin: auto;
}

.box-search form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.box-search input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    outline: none;
}

.box-search button {
    padding: 0.75rem 1.25rem;
    border-radius: 5px;
}

@media only screen and (max-width: 479px) {
    .box-search form {
        flex-direction: column;
        align-items: stretch;
    }

    .box-search button {
        width: 100%;
    }
}

/* ####### CF7 ######## */
.block-form-contact.card.ani_fade.w-form input[type="time"] {
    width: 100%;
    background-color: #f2f2f2;
    border: 1px #000;
    border-radius: 3px;
    margin-bottom: 0;
    font-weight: 200;
    padding: 5px;
}

.block-form-contact.card.ani_fade.w-form .wpcf7-list-item,

.wpcf7 form .wpcf7-response-output {
    margin: 0;
}

.block-form-contact.card.ani_fade.w-form label {
    margin-bottom: 5px;
}

.wpcf7-spinner {
    margin: auto;
}

input.btn-submit {
    border: 0;
}

/* Submit Button */
.edit-submit {
    position: relative;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.btn-submit {
    width: 100%;
    padding-left: 40px;
}

.edit-submit .icon-bell-form {
    color: white;
    position: absolute;
    top: 15px;
    transform: translateX(-3  0px);
    -webkit-transform: translateX(-40px);
    -moz-transform: translateX(-40px);
    -ms-transform: translateX(-40px);
    -o-transform: translateX(-40px);
}

.w-checkbox.check-box.sec_sub label {
    display: flex;
    align-items: flex-start;
}

/* Submit Button Subscribe */
.submit-subs {
    position: relative;
}

@media only screen and (min-width: 480px) {
    .submit-subs {
        grid-area: span 1 / span 2 / span 1 / span 2;
    }
}

@media only screen and (max-width: 767px) {
    .form-div.sec_sub {
        rid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 479px) {
    .submit-subs {
        grid-area: span 1 / span 1 / span 1 / span 1;
    }
}

.form-subs span.wpcf7-list-item {
    margin: 0;
}

.form-subs span.wpcf7-list-item-label {
    margin-bottom: 0;
    margin-left: .5rem;
    font-weight: 200;
}

label.w-checkbox.check-box.sec_sub {
    margin-bottom: 15px;
}

.form-subs .w-checkbox.check-box.sec_sub label {
    display: flex;
}

.form-div.sec_sub {
    grid-template-rows: auto auto auto;
}

.form-subs .wpcf7-spinner,

.edit-submit span.wpcf7-spinner {
    position: absolute;
    bottom: 11px;
    left: 10px;
}

.form-block.sec_sub.w-form .wpcf7-response-output,

.block-form-contact.card.ani_fade.w-form .wpcf7-response-output {
    margin-top: 20px;
}

.submit-subs span.icon-bell-form {
    -webkit-transform: translateX(-55px);
    -moz-transform: translateX(-55px);
    -ms-transform: translateX(-55px);
    -o-transform: translateX(-55px);
    transform: translateX(-55px);
}

.submit-subs input[type="checkbox"] {
    margin-top: 6px;
}

/* ปรับแต่ง ความสูงของ Excerpt ใน Card Blog หน้าแรก */
/* กล่อง excerpt ครอบไว้ */
.block-excerpt-overlay {
  position: relative;
  overflow: hidden;
  min-height: 4.8em; /* กันความสูงไม่ให้การ์ดแกว่ง */
}
/* ข้อความ excerpt จำกัด 3 บรรทัด */
.excerpt-card.sec_news {
  display: -webkit-box;
  -webkit-line-clamp: 3;    /* จำนวนบรรทัด */
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  margin: 0;
}
/* เฉด fade ด้านล่าง */
.block-excerpt-overlay::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.2em; /* ความสูงของ gradient */
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  pointer-events: none;
}

/* ====== Lightbox base ====== */
.x-modal { 
  position: fixed; inset: 0; z-index: 9999;
  display: none; /* ปิดเริ่มต้น */
}
.x-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.x-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .2s ease;
}
.x-modal.is-open .x-modal__backdrop { opacity: 1; }

.x-modal__panel {
  position: relative;
  box-sizing: border-box;
  width: min(720px, 92vw);
  max-height: 90vh;
  margin: 6vh auto 0;
  background: transparent;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  padding: 0;
  overflow: auto;
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
  -webkit-transition: transform .2s ease, opacity .2s ease;
  -moz-transition: transform .2s ease, opacity .2s ease;
  -ms-transition: transform .2s ease, opacity .2s ease;
  -o-transition: transform .2s ease, opacity .2s ease;
}
.x-modal.is-open .x-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ปุ่มปิด */
.x-modal__close {
  position: absolute; top: 10px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: #f3f4f6; color: #111827;
  font-size: 22px; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
}
.x-modal__close:hover { background: #e5e7eb; }

/* ตัวเลือก: ปิดสกอร์ลเมื่อเปิดโมดัล */
body.x-modal-open { overflow: hidden; }


/* ====== แก้ความสูงรูปใน card convergence ====== */
.group-card.sec_conver.ani_fade:nth-child(3) .limit-cover.sec_conver {
    max-height: unset !important;
}

/* Pagination */
.pagination {
    flex-wrap: wrap;
}
.pagination .ellipsis {
  pointer-events: none;
  opacity: .6;
}

/* Form Search */
form[role=search] {
    flex-wrap: wrap;
}

/* Edit Layout Post Grid */
.grid.of_single.of_cate {
    align-items: stretch;
}
@media only screen and (min-width: 768px) {
    .grid.of_single.of_cate {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.card.sec_news.of_single.of_cate {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* date */
.link-date {
    padding: 0 !important;
    inset: 7% 7% auto auto !important;
}
.link-date-d {
    text-align: center;
    background: white;
    color: black;
    padding: 0.25rem;
    width: 100%;
    border-radius: .5rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.link-date-m {
    padding: 0 1rem;
    font-size: 14px;
}