/* =========================================================
   LIÊN HỆ CHO TRANG KHÁCH (login / register / quên mật khẩu)
   Các trang này không nạp home.css nên chép lại style
   icon mạng xã hội + nút Zalo/Phone nổi.
   ========================================================= */

/* ICON MẠNG XÃ HỘI */
.guest-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.guest-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s;
}

.guest-social a:hover {
    transform: translateY(-2px) scale(1.06);
    color: #fff;
}

.social-fb { background: #1877f2; }
.social-yt { background: #ff0000; }
.social-tt { background: #111; }
.social-zalo {
    background: #0068ff;
    overflow: hidden;
}

.social-zalo svg {
    width: 100%;
    height: 100%;
}

/* FLOATING ZALO + PHONE */
.floating-actions {
    position: fixed;
    right: 18px;
    bottom: 20px;
    display: grid;
    gap: 12px;
    z-index: 999;
    animation: float-slide-up 0.6s ease-out;
}

@keyframes float-slide-up {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s;
}

.float-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.zalo-btn {
    background: #1e88ff;
    animation: pulse-blue 2s infinite;
}

.phone-btn {
    background: #4caf50;
    animation: pulse-green 2s infinite;
}

.phone-btn i {
    animation: phone-shake 1.5s infinite;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(30, 136, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(30, 136, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(30, 136, 255, 0); }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

@keyframes phone-shake {
    0% { transform: rotate(0); }
    10% { transform: rotate(-25deg); }
    20% { transform: rotate(25deg); }
    30% { transform: rotate(-25deg); }
    40% { transform: rotate(25deg); }
    50% { transform: rotate(0); }
    100% { transform: rotate(0); }
}

/* ── FOOTER TRANG KHÁCH (login / register / quên mật khẩu / OTP) ── */
.home-footer {
    margin-top: 0;
    background: #f6faf8;
    color: #364940;
    border-top: 3px solid #246946;
}

.home-footer > .container {
    padding-top: 36px !important;
    padding-bottom: 28px !important;
}

.footer-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--green, #246946);
    margin-bottom: 16px;
    letter-spacing: 0.6px;
}

/* Thông tin chủ sở hữu website (cột LIÊN HỆ ở footer) */
.footer-owner {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-owner p {
    margin: 0 0 4px;
}

.footer-owner__name {
    font-weight: 700;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    font-size: 14px;
    line-height: 1.65;
    color: #364940;
}

.footer-list i {
    margin-right: 8px;
    color: var(--green, #246946);
    opacity: 0.85;
}

.footer-list a,
.footer-list a.text-white {
    color: #364940 !important;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-list a:hover,
.footer-list a.text-white:hover {
    color: var(--green, #246946) !important;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.footer-social a:hover {
    transform: translateY(-2px) scale(1.06);
    color: #fff;
}

.footer-badge {
    max-width: 180px;
    height: auto;
}

.footer-bottom {
    text-align: center;
    padding: 14px 16px;
    border-top: 1px solid #d6e4dc;
    font-size: 13.5px;
    color: #466053;
    background: #eaf2ee;
}

@media (max-width: 991.98px) {
    .float-btn {
        width: 44px;
        height: 44px;
    }

    /* Chừa khoảng dưới khối danh sách kỳ thi để khi cuộn xuống hết trang,
       nút Zalo/Phone nổi (cao ~100px, cách đáy 20px) không che các mục cuối. */
    .feature-box {
        padding-bottom: 136px;
    }

    /* Khi trang có .home-footer bên dưới (login.php): bỏ khoảng đệm thừa dưới .feature-box
       và chuyển khoảng chừa nút Zalo/Phone nổi xuống cuối footer. */
    body.has-footer .feature-box {
        padding-bottom: 36px;
    }

    body.has-footer .home-footer > .container {
        padding-bottom: 28px !important;
    }

    body.has-footer .home-footer .footer-bottom {
        padding-bottom: 76px;
    }
}

/* ── Bố cục desktop trang login / quên mật khẩu ───────────────
   - Cột trái: bớt khoảng trắng để bù hàng icon mạng xã hội, và ẩn
     thanh cuộn (màn hình quá thấp vẫn cuộn được bằng chuột).
   - Cột phải: chừa lề phải cho lưới thẻ để nút Zalo/Phone (rộng 50px,
     cách mép 18px) không đè lên thẻ. */
@media (min-width: 992px) {
    .left-inner {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .left-panel {
        scrollbar-width: none;
    }

    .left-panel::-webkit-scrollbar {
        display: none;
    }

    .feature-grid {
        margin-right: 50px;
    }
}
