/* Container หลัก: แบ่งเป็น 2 คอลัมน์ */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 คอลัมน์เท่าๆ กัน */
    gap: 20px; /* ระยะห่างระหว่าง Card */
    margin-top: 20px;
}

/* ตัว Card Box */
.search-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column; /* เรียงรูปบน-ข้อความล่าง */
    transition: box-shadow 0.3s ease;
}

.search-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-image img {
    width: 100%; /* ให้รูปกว้างเต็ม Card */
    height: 200px; /* ความสูงคงที่ */
    object-fit: cover; /* ป้องกันรูปเพี้ยน */
    border-radius: 4px;
    margin-bottom: 15px;
}

.card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

/* ปรับสำหรับมือถือ: ให้เหลือ 1 คอลัมน์ */
@media (max-width: 768px) {
    .search-results-grid {
        grid-template-columns: 1fr;
    }
}

.modern-search-wrapper {
    max-width: 800px;
    margin: 30px auto;
}

.modern-search-form {
    display: flex;
    background: #ffffff;
    padding: 5px;
    border-radius: 50px; /* ทำให้ช่องมนเป็นแคปซูล */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* เงาฟุ้งๆ ดูทันสมัย */
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.modern-search-form:focus-within {
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.2); /* มีแสงเรืองๆ เมื่อคลิกพิมพ์ */
    border-color: #007bff;
}

.modern-search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #333;
}

.modern-search-btn {
    border: none;
    background: #007bff; /* สีน้ำเงินมาตรฐาน */
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.modern-search-btn:hover {
    background: #0056b3;
}