/* เพิ่มสไตล์เฉพาะสำหรับหน้านี้ */
.policies-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/img/bg/bg.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-top: 59.2px;
}

.policies-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #60cb30;
}

.policies-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.search-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    padding-right: 50px;
    font-family: inherit;
}

.search-input:focus {
    border-color: #60cb30;
    box-shadow: 0 0 10px rgba(96, 203, 48, 0.3);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.search-result-item {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-result-item h4 {
    margin: 0 0 5px;
    color: #333;
}

.search-result-item p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #666;
}

.policies-section {
    padding: 60px 0;
}

.policy-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.category-btn {
    padding: 8px 20px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category-btn.active {
    background-color: #60cb30;
    color: white;
}

.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.policy-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.policy-card:hover {
    transform: translateY(-5px);
}

.policy-image {
    height: 200px;
    overflow: hidden;
}

.policy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.policy-card:hover .policy-image img {
    transform: scale(1.05);
}

.policy-content {
    padding: 20px;
}

.policy-category {
    display: inline-block;
    background-color: #ff014f;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.policy-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.policy-excerpt {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: #60cb30;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #4da826;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

@media (max-width: 768px) {
    .policies-hero {
        padding: 80px 0;
    }

    .policies-hero h1 {
        font-size: 2rem;
    }

    .policies-grid {
        grid-template-columns: 1fr;
    }
}
