/* =========================================
   faculty.css - สำหรับหน้าแสดงรายชื่อคณาจารย์
   ========================================= */
.faculty-title { text-align: center; margin-bottom: 40px; color: #000000; font-size: 30px; font-weight: bold; }
.faculty-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.card {
    background-color: #fff; padding: 15px; width: 200px; border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); display: flex; flex-direction: column; align-items: center;
    transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; border: 1px solid #eee;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.15); border-color: #FF6F00; }
.profile-img { width: 170px; height: 170px; background-color: #eee; border-radius: 8px; margin-bottom: 15px; object-fit: cover; }
.card-info { text-align: center; width: 100%; }
.card-info .name { font-weight: 500; font-size: 1rem; margin: 5px 0; color: #000; }
.card-info .role { font-size: 0.85rem; color: #666; margin: 0; }

/* ================= Modal (Pop-up) Styles ================= */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6); z-index: 9999; justify-content: center; align-items: center;
}
.modal-content {
    background-color: #fff; padding: 30px; border-radius: 15px; width: 90%; max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); position: relative; text-align: left;
}
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; font-weight: bold; color: #888; cursor: pointer; }
.close-btn:hover { color: #dc3545; }
.modal-header { display: flex; align-items: center; gap: 20px; margin-bottom: 15px; }
.modal-header h3 { margin: 0; font-size: 1.3rem; color: #333; }
.modal-img { width: 90px; height: 90px; margin-bottom: 0; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.modal-scroll-area { max-height: 45vh; overflow-y: auto; padding-right: 15px; margin-bottom: 15px; }
.modal-scroll-area::-webkit-scrollbar { width: 6px; }
.modal-scroll-area::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.modal-scroll-area::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.modal-scroll-area::-webkit-scrollbar-thumb:hover { background: #FF6F00; }
.research-display { background-color: #f9f9f9; padding: 15px; border-radius: 8px; margin-bottom: 10px; border-left: 4px solid #FF6F00; }
.research-cover { max-height: 180px; width: auto; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); margin-top: 10px; transition: transform 0.2s; }
.research-cover:hover { transform: scale(1.02); }

/* สไตล์สำหรับส่วนคอมเมนต์ */
.comment-section { margin-top: 20px; }
.comment-box {
    width: 100%; height: 80px; padding: 10px; box-sizing: border-box; border-radius: 8px;
    border: 1px solid #ccc; font-family: 'Kanit', sans-serif; margin-bottom: 10px; resize: vertical;
}
.submit-btn {
    background-color: #FF6F00; color: white; border: none; padding: 10px 20px; border-radius: 5px;
    cursor: pointer; font-family: 'Kanit', sans-serif; font-size: 1rem; width: 100%; transition: 0.2s;
}
.submit-btn:hover { background-color: #e65c00; }
.swal2-container { font-family: 'Kanit', sans-serif; z-index: 10000 !important; }

@media (max-width: 992px) {
    .faculty-title { font-size: 20px; }
}