
        .search-header-bar {
            border-bottom: 1px solid #dadce0;
            padding: 12px 0;
        }

        .search-header-inner {
            display: flex;
            align-items: center;
            gap: 24px;
        }

        .search-header-logo {
            font-size: 26px;
            font-weight: 700;
            letter-spacing: 1px;
            color: #4285f4;
            white-space: nowrap;
        }

        .search-header-logo span:nth-child(2) {
            color: #ea4335;
        }

        .search-header-logo span:nth-child(3) {
            color: #fbbc05;
        }

        .search-header-logo span:nth-child(4) {
            color: #4285f4;
        }

        .search-header-logo span:nth-child(5) {
            color: #34a853;
        }

        .search-header-logo span:nth-child(6) {
            color: #ea4335;
        }

        .search-header-form-wrapper {
            flex: 1;
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 8px 40px 8px 40px;
            border-radius: 999px;
            border: 1px solid #dadce0;
            font-size: 14px;
            outline: none;
        }

        .search-input:focus {
            border-color: #dadce0;
            box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
        }

        .search-icon-left {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 16px;
            color: #9aa0a6;
        }

        .search-icon-right {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 16px;
            color: #9aa0a6;
            cursor: pointer;
        }

        .search-results-wrapper {
            padding: 24px 0 40px;
        }

        .search-info {
            font-size: 13px;
            color: #454545;
            margin-bottom: 12px;
        }

        .search-result-item {
            margin-bottom: 24px;
            max-width: 800px;
        }

        .search-result-url {
            font-size: 12px;
            color: #16610b;
            margin-bottom: 4px;
        }

        .search-result-title {
            font-size: 18px;
            margin-bottom: 4px;
        }

        .search-result-title a {
            color: #1a0dab;
            text-decoration: none;
        }

        .search-result-title a:hover {
            text-decoration: underline;
        }

        .search-result-snippet {
            font-size: 14px;
            color: #000000;
        }

        .search-result-meta {
            font-size: 12px;
            color: #70757a;
            /* margin-top: 4px; */
        }

        .search-result-thumb {
            float: right;
            margin-left: 16px;
            width: 120px;
            height: 80px;
            object-fit: cover;
            border-radius: 8px;
        }

        .search-suggestions {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            margin-top: 4px;
            background: #fff;
            border-radius: 16px;
            border: 1px solid #dadce0;
            box-shadow: 0 4px 6px rgba(32, 33, 36, 0.28);
            z-index: 20;
            max-height: 320px;
            overflow-y: auto;
        }

        .suggestion-item {
            padding: 6px 16px 6px 40px;
            font-size: 13px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .suggestion-item-type {
            font-size: 11px;
            color: #5f6368;
            padding: 2px 6px;
            border-radius: 999px;
            background: #f1f3f4;
        }

        .suggestion-item:hover {
            background: #f8f9fa;
        }

        .suggestion-empty {
            padding: 8px 16px;
            font-size: 13px;
            color: #9aa0a6;
        }

        .suggest {
            font-size: 13px;
            margin-bottom: 8px;
        }

        .suggest a {
            color: #1a0dab;
            text-decoration: none;
        }

        .suggest a:hover {
            text-decoration: underline;
        }

        .loading-more {
            text-align: center;
            font-size: 13px;
            color: #70757a;
            padding: 10px 0;
            display: none;
        }

        .no-more {
            text-align: center;
            font-size: 13px;
            color: #9aa0a6;
            padding: 10px 0;
            display: none;
        }

        @media (max-width: 768px) {
            .search-header-inner {
                flex-wrap: wrap;
                gap: 12px;
            }
        }


        .search-page-wrapper {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .search-main {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 40px 15px;
        }

        .search-box-container {
            width: 100%;
            max-width: 600px;
            text-align: center;
        }

        .search-logo-text {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 24px;
            letter-spacing: 1px;
            color: #2e2e2e;
        }

        .search-logo-text span:nth-child(2) {
            color: #ea4335;
        }

        .search-logo-text span:nth-child(3) {
            color: #fbbc05;
        }

        .search-logo-text span:nth-child(4) {
            color: #4285f4;
        }

        .search-logo-text span:nth-child(5) {
            color: #34a853;
        }

        .search-logo-text span:nth-child(6) {
            color: #ea4335;
        }

        .search-box-wrapper {
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 12px 48px 12px 48px;
            border-radius: 999px;
            border: 1px solid #dadce0;
            font-size: 16px;
            outline: none;
            box-shadow: none;
            transition: box-shadow 0.15s ease, border-color 0.15s ease;
        }

        .search-input:focus {
            border-color: #dadce0;
            box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
        }

        .search-icon-left {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
            color: #9aa0a6;
        }

        .search-icon-right {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
            color: #9aa0a6;
            cursor: pointer;
        }
 
 
        /* Suggestions dropdown */
        .search-suggestions {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            margin-top: 4px;
            background: #fff;
            border-radius: 16px;
            border: 1px solid #dadce0;
            box-shadow: 0 4px 6px rgba(32, 33, 36, 0.28);
            z-index: 20;
            max-height: 320px;
            overflow-y: auto;
        }

        .suggestion-item {
            padding: 8px 16px 8px 48px;
            font-size: 14px;
            text-align: left;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .suggestion-item-type {
            font-size: 11px;
            color: #5f6368;
            padding: 2px 6px;
            border-radius: 999px;
            background: #f1f3f4;
        }

        .suggestion-item:hover {
            background: #f8f9fa;
        }

        .suggestion-empty {
            padding: 8px 16px;
            font-size: 13px;
            color: #9aa0a6;
            text-align: left;
        }

        @media (max-width: 576px) {
            .search-logo-text {
                font-size: 36px;
            }
        }

        /* -----------------------------------------------------------
   GOOGLE LOGO COLORS
----------------------------------------------------------- */
.google-logo {
    font-size: 30px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -1px;
    user-select: none;
}

.g-blue { color: #4285f4; }
.g-red { color: #ea4335; }
.g-yellow { color: #fbbc05; }
.g-green { color: #34a853; }

/* -----------------------------------------------------------
   HEADER (เหมือน Google 100%)
----------------------------------------------------------- */
.google-search-header {
    background: var(--theme_main_color);
    padding: 30px 0 30px;
    border-bottom: 1px solid #e5e5e5;
}

.google-search-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.google-search-form {
    flex: 1;
}

/* -----------------------------------------------------------
   SEARCH BOX (PIXEL-PERFECT)
----------------------------------------------------------- */
.tpg-search-box {
    position: relative;
    width: 100%;
    max-width: 650px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 0 50px;
    height: 44px;
    transition: background 0.2s, box-shadow 0.2s;
}

.tpg-search-box:hover {
    background: #fff;
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
    border-color: #dfe1e5;
}

/* Left icon */
.g-icon-left {
    position: absolute;
    left: 16px;
    top: 8px;
    width: 20px;
    opacity: .45;
}

/* Input */
.g-input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    font-size: 16px;
}

.g-input:focus {
    outline: none;
}

/* Clear button */
#gClear,
.g-clear {
    position: absolute;
    right: 16px;
    top: 12px;
    cursor: pointer;
    color: #777;
    opacity: 0;
    transition: opacity 0.2s;
}

.g-input:not(:placeholder-shown) ~ .g-clear {
    opacity: 1;
}

/* -----------------------------------------------------------
   SUGGESTIONS DROPDOWN
----------------------------------------------------------- */
.g-suggestions {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dfe1e5;
    border-top: none;
    border-radius: 0 0 24px 24px;
    max-height: 380px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
    z-index: 9999;
    padding: 8px 0;
}

.g-suggestion-item {
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
}

.g-suggestion-item:hover {
    background: #f8f9fa;
}

.g-suggestion-title {
    flex: 1;
}

.g-suggestion-title mark {
    background: #fff59d;
    padding: 0 2px;
    border-radius: 2px;
}

/* Label ด้านขวา */
.g-type-label {
    background: #f1f3f4;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    color: #555;
}

/* Headline "คำที่ใกล้เคียงที่สุด" */
.g-suggest-head {
    font-size: 12px;
    font-weight: bold;
    padding: 6px 18px;
    color: #5f6368;
    background: #f1f3f4;
    border-bottom: 1px solid #e0e0e0;
}

/* -----------------------------------------------------------
   SEARCH RESULTS (เหมือน Google)
----------------------------------------------------------- */
.search-results-wrapper {
    padding: 24px 0 40px;
}

.search-info {
    font-size: 13px;
    color: #70757a;
    margin-bottom: 20px;
}

.search-result-item {
    margin-bottom: 32px;
    max-width: 700px;
}

.search-result-url {
    font-size: 12px;
    color: #16610b;
    margin-bottom: 4px;
}

.search-result-title {
    font-size: 20px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.search-result-title a {
    color: #1a0dab;
    text-decoration: none;
}

.search-result-title a:hover {
    text-decoration: underline;
}

.search-result-snippet {
    font-size: 14px;
    color: #3c4043;
    line-height: 1.5;
}

.search-result-thumb {
    float: right;
    margin-left: 16px;
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* “Loading…” */
.loading-more {
    text-align: center;
    font-size: 13px;
    color: #70757a;
    padding: 10px 0;
    display: none;
}

.no-more {
    text-align: center;
    font-size: 13px;
    color: #9aa0a6;
    padding: 10px 0;
    display: none;
}

/* -----------------------------------------------------------
   MOBILE RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 768px) {
    .google-search-inner {
        flex-wrap: wrap;
        gap: 12px;
    }

    .tpg-search-box {
        max-width: 100%;
    }
}
/* กล่อง Search */
.g-search-box {
    position: relative;
    width: 100%;
    max-width: 650px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding-left: 50px;
    padding-right: 90px; /* เผื่อปุ่ม */
    height: 48px;
    transition: box-shadow 0.2s;
}

.g-search-box:hover,
.g-search-box:focus-within {
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
}

/* Input */
.g-input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    font-size: 16px;
}
 
/* ปุ่ม Clear (X) */
.g-clear {
    position: absolute;
    right: 16px;
    cursor: pointer;
    color: #f92d35;
    font-size: 18px;
    display: none;
    top: 8px;
}

.g-input:not(:placeholder-shown) ~ .g-clear {
    display: block;
}

/* ปุ่มค้นหา */
.g-search-btn {
    position: absolute;
    right: 40px;
    height: 70%;
    padding: 0 16px;
    border: 1px solid #198754;
    background: #198754;
    border-radius: 20px;
    font-size: 14px;
    color: #fafafa;
    cursor: pointer;
    transition: 0.2s;
}

.g-search-btn:hover {
    background: #f1f3f4;
    border-color: #198754;
    color: #198754;
}


.loading-more {
    display: none;
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 14px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 4px solid #ddd;
    border-top-color: #4285f4;
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ปุ่มโหลดเพิ่มเติม */
.load-more-btn {
    display: none;
    width: 100%;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    font-size: 16px;
    margin: 20px 0;
}

/* แสดงเฉพาะมือถือ */
@media (max-width:768px) {
    .load-more-btn { display:block; }
}
