












/* ================================
   KL RUBBER · BREADCRUMB · PRO+
   ================================ */

/* แถบ breadcrumb หลัก */
.klr-breadcrumb-bar.klr-breadcrumb-pro {
    background: #fffdf4;
    border-bottom: 1px solid #f3f4f6;
    box-shadow: 0 8px 20px rgba(0,0,0,.04);
    padding: 14px 0;
}

/* จำกัดความกว้างให้ align กับ content หลัก */
.klr-breadcrumb-bar.klr-breadcrumb-pro .elementor-widget-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ตัวอักษรใน breadcrumb */
.rank-math-breadcrumb,
.rank-math-breadcrumb p,
.rank-math-breadcrumb span {
    font-family: "Source Sans Pro", system-ui, sans-serif;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

/* ลิงก์ */
.rank-math-breadcrumb a {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-bottom: 1px;
    transition: color .18s ease, border-color .18s ease;
}

/* เส้น gradient ใต้ลิงก์ เวลา hover */
.rank-math-breadcrumb a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg,#f4b400,#f59e0b);
    transition: width .18s ease;
}

.rank-math-breadcrumb a:hover {
    color: #f4b400;
}

.rank-math-breadcrumb a:hover::after {
    width: 100%;
}

/* ตัวคั่น › */
.rank-math-breadcrumb .separator {
    margin: 0 6px;
    color: #9ca3af;
    font-weight: 400;
}

/* หน้า Active (ตัวสุดท้าย) */
.rank-math-breadcrumb span:last-child {
    color: #f4b400;
    font-weight: 700;
}

/* เพิ่มไอคอน Home ที่ลิงก์ตัวแรก */
.rank-math-breadcrumb a:first-child::before {
    content: "⌂";
    font-size: 15px;
    margin-right: 6px;
    color: #f4b400;
}

/* ========== Dark-on-hero Mode ========== */
/* ใช้เมื่อ breadcrumb วางบน Hero/รูปพื้นหลังสีเข้ม:
   ใส่ class `klr-breadcrumb-on-hero` เพิ่มใน Section เดียวกัน */
.klr-breadcrumb-bar.klr-breadcrumb-on-hero {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

.klr-breadcrumb-bar.klr-breadcrumb-on-hero .rank-math-breadcrumb,
.klr-breadcrumb-bar.klr-breadcrumb-on-hero .rank-math-breadcrumb span {
    color: #e5e7eb;
}

.klr-breadcrumb-bar.klr-breadcrumb-on-hero .rank-math-breadcrumb a {
    color: #f9fafb;
}

.klr-breadcrumb-bar.klr-breadcrumb-on-hero .rank-math-breadcrumb .separator {
    color: #9ca3af;
}

.klr-breadcrumb-bar.klr-breadcrumb-on-hero .rank-math-breadcrumb span:last-child {
    color: #fbbf24;
}

.klr-breadcrumb-bar.klr-breadcrumb-on-hero .rank-math-breadcrumb a::after {
    background: linear-gradient(90deg,#fde68a,#facc15);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .klr-breadcrumb-bar.klr-breadcrumb-pro {
        padding: 10px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,.04);
    }

    .rank-math-breadcrumb,
    .rank-math-breadcrumb p {
        font-size: 14px;
    }
}


/* ================================
   KL RUBBER · SEARCH RESULTS · PRO+
   ================================ */

/* พื้นหลัง + Layout หลักของหน้า Search */
.klr-search-page {
    background: #f9fafb;
    padding: 32px 0 60px;
}

/* จำกัดความกว้างให้ align กับ content หลัก */
.klr-search-page .elementor-container,
.klr-search-page .elementor-widget-container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* H1: Search Results for */
.klr-search-page .elementor-widget-archive-title h1 {
    font-family: "Source Sans Pro", system-ui, sans-serif;
    font-weight: 800;
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #111827;
}

/* ข้อความ H1 บนจอเล็ก */
@media (max-width: 768px) {
    .klr-search-page .elementor-widget-archive-title h1 {
        font-size: 26px;
    }
}


/* ========== SEARCH FORM ========== */

.klr-search-form .elementor-search-form {
    display: flex;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 24px;
}

.klr-search-form .elementor-search-form__input {
    font-family: "Source Sans Pro", system-ui, sans-serif;
    font-size: 15px;
    padding: 14px 20px;
    border-radius: 999px 0 0 999px;
    border: none;
    outline: none;
}

.klr-search-form .elementor-search-form__input::placeholder {
    color: #9ca3af;
}

.klr-search-form .elementor-search-form__submit {
    background: linear-gradient(135deg,#ff2a2a,#f97316);
    color: #ffffff;
    font-weight: 700;
    padding: 0 28px;
    border-radius: 0 999px 999px 0;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.klr-search-form .elementor-search-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0,0,0,.18);
    opacity: 0.96;
}

/* มือถือ: ใช้ full width */
@media (max-width: 768px) {
    .klr-search-form .elementor-search-form {
        border-radius: 16px;
        flex-direction: column;
        box-shadow: 0 8px 20px rgba(0,0,0,.06);
    }
    .klr-search-form .elementor-search-form__input {
        border-radius: 16px 16px 0 0;
    }
    .klr-search-form .elementor-search-form__submit {
        width: 100%;
        border-radius: 0 0 16px 16px;
        padding: 10px 18px;
    }
}


/* ========== RESULTS LIST / CARDS ========== */

.klr-search-list .elementor-posts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

/* แต่ละผลลัพธ์ = card */
.klr-search-list .elementor-post {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px 16px;
    box-shadow: 0 10px 24px rgba(15,23,42,.05);
    border: 1px solid #e5e7eb;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.klr-search-list .elementor-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15,23,42,.12);
    border-color: #f4b400;
}

/* หัวข้อผลลัพธ์ */
.klr-search-list .elementor-post__title a {
    font-family: "Source Sans Pro", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}

.klr-search-list .elementor-post__title a:hover {
    color: #f4b400;
}

/* meta (วันที่ ฯลฯ) */
.klr-search-list .elementor-post__meta-data {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0 8px;
}

/* excerpt */
.klr-search-list .elementor-post__excerpt p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

/* ========== PAGINATION ========== */

.klr-search-pagination .elementor-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 6px;
    font-family: "Source Sans Pro", system-ui, sans-serif;
}

.klr-search-pagination .page-numbers {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.klr-search-pagination .page-numbers.current,
.klr-search-pagination .page-numbers:hover {
    background: #f4b400;
    border-color: #f4b400;
    color: #111827;
}

/* Previous/Next icons */
.klr-search-pagination .page-numbers.prev,
.klr-search-pagination .page-numbers.next {
    padding: 0 14px;
}

.klr-links-group{
  margin-top:24px; padding:18px 20px;
  border-radius:16px; border:1px solid #ececec;
  background:#ffffff;
  font-family:"Source Sans Pro",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}
.klr-links-group h4{
  margin:0 0 10px; font-size:18px; font-weight:800; color:#111827;
}
.klr-links-group ul{
  margin:0; padding-left:18px;
}
.klr-links-group ul li{
  margin-bottom:4px; font-size:14px;
}
.klr-links-group a{
  color:#1d4ed8; text-decoration:none; border-bottom:1px dotted #cbd5f5;
}
.klr-links-group a:hover{
  color:#111827; border-bottom-color:#f4b400;
}








