/*
 Theme Name:   Eduma Child
 Theme URI:    http://educationwp.thimpress.com/
 Description:  Eduma Child Theme
 Author:       ThimPress
 Author URI:   http://thimpress.com
 Template:     eduma
 Version:      1.0.0
 Text Domain:  eduma-child
*/
/* CSS cho nút Gọi và Zalo nổi */
.floating-contact-buttons {
    position: fixed;
    bottom: 80px;
    left: 20px; /* Muốn nằm bên phải thì đổi left thành right */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
/* Hiển thị chữ khi hover (chỉ trên Desktop) */
.contact-btn span {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.4s ease;
    font-size: 18px;
    font-weight: bold;
    margin-left: 0;
    color: #fff;
}
.contact-btn:hover {
    width: auto;
    padding-right: 15px;
    border-radius: 30px;
}
.contact-btn:hover span {
    max-width: 100px;
    opacity: 1;
    margin-left: 15px;
}
/* Màu sắc cho nút */
.btn-zalo {
    background-color: #0068FF;
}
.btn-phone {
    background-color: #4CAF50;
    animation: phone-pulse 2s infinite; /* Hiệu ứng rung */
}
.contact-btn img, .contact-btn svg {
    width: 40px;
    height: 40px;
    fill: white;
}
/* Hiệu ứng rung nhẹ cho nút gọi */
@keyframes phone-pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}
/* Tùy chỉnh trên Mobile: Nút nhỏ hơn một chút nếu cần */
@media (max-width: 768px) {
    .floating-contact-buttons {
        bottom: 15px;
        left: 15px;
    }
    /* Trên mobile không cần hiệu ứng hover kéo dài ra để tránh vướng */
    .contact-btn:hover {
        width: 50px;
        padding-right: 0;
        border-radius: 50%;
    }
    .contact-btn:hover span {
        display: none;
    }
}