/* ======================================= */
/* (*** V5: แก้ไข Responsive มือถือ ***) */
/* ======================================= */

.contact-page-wrapper-clean {
    background-color: #f9f9f9;
    padding: 60px 24px; 
    min-height: 70vh; 
}

.contact-header-clean {
    text-align: center;
    margin-bottom: 50px;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}
.contact-header-clean h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a2c3f; /* (สีน้ำเงินเข้ม) */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.contact-header-clean h1 i {
    color: #2563eb; /* (สีน้ำเงิน) */
}
.contact-header-clean p {
    font-size: 1.3rem;
    color: #6c757d;
    margin-top: 5px;
}

/* (V4: Grid 3 คอลัมน์) */
.contact-grid-clean {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1140px;
    margin: 0 auto;
}

.contact-card-clean {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card-clean:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-card-clean .card-icon {
    font-size: 2.5rem;
    color: #2563eb; /* (สีน้ำเงินหลัก) */
    margin-bottom: 20px;
}

.contact-card-clean h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a2c3f;
    margin-bottom: 15px;
}

/* (สำหรับปุ่มที่เป็นลิงก์) */
.contact-card-clean .contact-link-btn {
    display: inline-block;
    background-color: #f4f8fc;
    color: #2563eb;
    border: 1px solid #dbeafe;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.25rem;
    text-decoration: none;
    transition: background-color 0.2s;
    word-break: break-all; 
}
.contact-card-clean .contact-link-btn:hover {
    background-color: #eef2ff;
}

/* (สำหรับ Text ธรรมดา) */
.contact-card-clean .contact-text-static {
    font-size: 1.35rem;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin: 0;
    padding: 10px 0; 
    word-break: break-word; /* (V5: เพิ่ม) */
}

/* (V4: Responsive) */
@media (max-width: 992px) {
    .contact-grid-clean {
        grid-template-columns: repeat(2, 1fr); /* 2 คอลัมน์ */
    }
}

/* ======================================= */
/* (*** START: V5 แก้ไข Responsive มือถือ ***) */
/* ======================================= */
@media (max-width: 768px) {
    .contact-grid-clean {
        grid-template-columns: repeat(2, 1fr); /* (V5: แก้ไขเป็น 2 คอลัมน์) */
        gap: 15px; /* (V5: ลดช่องว่าง) */
    }
    .contact-page-wrapper-clean {
        padding: 40px 15px;
    }
    .contact-header-clean {
        margin-bottom: 30px;
    }
    .contact-header-clean h1 {
        font-size: 2.2rem;
    }
    /* (V5: ลด padding ในการ์ดเพื่อให้พอดี) */
    .contact-card-clean {
        padding: 20px 15px; 
    }
    /* (V5: ปรับขนาด Font ในปุ่มและ Text) */
    .contact-card-clean .contact-link-btn,
    .contact-card-clean .contact-text-static {
        font-size: 1.1rem;
        padding: 10px;
    }
    .contact-card-clean h3 {
        font-size: 1.3rem;
    }
}
/* ======================================= */
/* (*** END: V5 แก้ไข Responsive มือถือ ***) */
/* ======================================= */