/* Services Section */
.content-section {
    max-width: 1200px;
    margin: 120px auto 60px auto; /* เว้นที่ให้ navbar */
    padding: 0 20px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.service-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-icon-container {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #0077b6;
}

.service-item p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.service-detail-btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.service-detail-btn:hover {
    background-color: #0056b3;
}

/* Popup */
.service-popup {
    display: none; /* ซ่อนเริ่มต้น */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.service-popup.active {
    display: flex;
}

.popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    position: relative;
    text-align: center;
}

.popup-content h3 {
    color: #007bff;
    margin-bottom: 15px;
}

.popup-content p {
    margin-bottom: 15px;
    color: #444;
}

.popup-content ul {
    list-style: disc;
    padding-left: 20px;
    text-align: left;
    margin-bottom: 20px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.contact-btn {
    background-color: #28a745;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.contact-btn a {
    text-decoration: none;
    color: #fff;
}

.contact-btn:hover {
    background-color: #1e7e34;
}