/* =========================================================================
   GKG – CSS dùng chung toàn site (handle: gkg-hotline)
   1. Nút Zalo / hotline nổi (footer.php)
   2. Footer v2
   ========================================================================= */

/* =========================
   FLOATING CONTACT
========================= */

.floating-contact{
    position:fixed;
    left:15px;
    bottom:15px;
    z-index:999;
}

/* =========================
   ZALO
========================= */

.floating-zalo{
    display:block;
    width:56px;
    height:56px;
    margin-bottom:16px;
	margin-left: 10px;
    border-radius:50%;

    background:
        url('../../images/icon-zalo.webp')
        center/34px no-repeat,
        #0068ff;

    box-shadow:
        0 8px 24px rgba(0,104,255,.25);

    animation:zaloPulse 2.5s infinite;
}

.floating-zalo:hover{
    animation-play-state:paused; /* animation ghi đè transform, nên dừng nó khi hover */
    transform:scale(1.08);
}

/* =========================
   HOTLINE
========================= */

.hotline-wrap{
    position:relative;
    height:80px;
    width:220px;
}

.hotline-ring{
    position:relative;

    width:80px;
    height:80px;

    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;
    z-index:2;
}

/* vòng ngoài */

.hotline-circle{
    position:absolute;
    inset:0;

    border-radius:50%;
    border:2px solid rgba(255,59,48,.5);

    animation:ringCircle 2s infinite;
}

/* vòng giữa */

.hotline-circle-fill{
    position:absolute;
    inset:10px;

    border-radius:50%;
    background:rgba(255,59,48,.15);

    animation:ringFill 2s infinite;
}

/* icon chính */

.hotline-icon{
    position:relative;

    width:56px;
    height:56px;

    border-radius:50%;

    background:
        url('../../images/icon-phone.webp')
        center/28px no-repeat,
        linear-gradient(135deg,#ff4d4f,#d70015);

    box-shadow:
        0 8px 24px rgba(215,0,21,.28);

    animation:phoneShake 2.5s infinite;
}

/* thanh số điện thoại */

.hotline-bar{
    position:absolute;

    left:25px;
    top:16px;

    height:48px;
    padding:0 22px 0 48px;

    display:flex;
    align-items:center;

    border-radius:999px;

    background:
        linear-gradient(
            135deg,
            #ff4d4f,
            #d70015
        );

    color:#fff;
    font-size:16px;
    font-weight:700;
    text-decoration:none;
    white-space:nowrap;

    box-shadow:
        0 8px 24px rgba(215,0,21,.22);

    transition:transform .2s ease;
}

.hotline-bar:hover{
    transform:translateX(3px);
}

/* =========================
   ANIMATION
========================= */

@keyframes ringCircle{
    0%{
        transform:scale(.8);
        opacity:.8;
    }

    100%{
        transform:scale(1.4);
        opacity:0;
    }
}

@keyframes ringFill{
    0%,100%{
        transform:scale(.9);
    }

    50%{
        transform:scale(1);
    }
}

@keyframes phoneShake{

    0%,100%{
        transform:rotate(0);
    }

    5%{
        transform:rotate(-15deg);
    }

    10%{
        transform:rotate(15deg);
    }

    15%{
        transform:rotate(-15deg);
    }

    20%{
        transform:rotate(15deg);
    }

    25%{
        transform:rotate(0);
    }
}

@keyframes zaloPulse{

    0%,100%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.08);
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width:768px){

    .floating-contact{
        left:10px;
        bottom:10px;
    }

    .floating-zalo{
        width:50px;
        height:50px;
        background-size:30px;
    }

    .hotline-wrap{
        width:80px;
    }

    .hotline-bar{
        display:none;
    }

    .hotline-ring{
        width:72px;
        height:72px;
    }

    .hotline-icon{
        width:52px;
        height:52px;
        background-size:24px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce){

    .floating-zalo,
    .hotline-circle,
    .hotline-circle-fill,
    .hotline-icon{
        animation:none !important;
    }
}

/* =========================================================================
   FOOTER v2 (UX Block "Footer GKG" – inc/content/footer.txt)
   Mọi selector đều nằm trong .gkg-ft nên không ảnh hưởng footer cũ.
   ========================================================================= */
.gkg-ft {
	--ft-bg: #0b1f33;
	--ft-bg-2: #0f2a44;
	--ft-gold: #c9a45c;
	--ft-gold-soft: #e9cf98;
	--ft-text: rgba(255, 255, 255, .72);
	--ft-dim: rgba(255, 255, 255, .5);
	--ft-line: rgba(255, 255, 255, .1);
	color: var(--ft-text);
	font-size: 15px;
}
.gkg-ft a { color: inherit; text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }

/* ---------- Dải liên hệ ---------- */
.gkg-ft-cta .section-bg,
.gkg-ft-cta.gkg-preview-bg {
	background: radial-gradient(600px 220px at 100% 0%, rgba(201, 164, 92, .3), transparent 60%), var(--ft-bg-2, #0f2a44) !important;
}
.gkg-ft-cta { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.gkg-ft__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gkg-ft__cta-title { margin: 0 0 4px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; color: #fff; line-height: 1.3; }
.gkg-ft__cta-text { color: var(--ft-text); }
.gkg-ft__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.gkg-ft__btn {
	display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px;
	border: 1.5px solid transparent; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.gkg-ft__btn svg { width: 18px; height: 18px; }
.gkg-ft__btn--gold { background: var(--ft-gold); color: #1d1608 !important; }
.gkg-ft__btn--gold:hover { background: var(--ft-gold-soft); }
.gkg-ft__btn--line { border-color: rgba(255, 255, 255, .4); color: #fff !important; }
.gkg-ft__btn--line:hover { background: #fff; color: #0f2a44 !important; }

/* ---------- Phần chính ---------- */
.gkg-ft-main .section-bg,
.gkg-ft-main.gkg-preview-bg { background: var(--ft-bg, #0b1f33) !important; }

.gkg-ft__logo { display: inline-block; margin-bottom: 18px; }
.gkg-ft .gkg-ft__logo { color: #fff; }
.gkg-ft__logo img,
.gkg-ft__logo svg { display: block; height: 44px; width: auto; }
.gkg-ft__wordmark { font-size: 30px; font-weight: 800; letter-spacing: .04em; color: #fff; }
.gkg-ft__wordmark b { color: var(--ft-gold-soft); }
.gkg-ft__about { margin: 0 0 22px; line-height: 1.7; color: var(--ft-text); max-width: 380px; }

.gkg-ft__contact { margin: 0 !important; padding: 0; list-style: none; display: grid; gap: 14px; }
.gkg-ft__contact li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; margin: 0; }
.gkg-ft__ico {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
	background: rgba(255, 255, 255, .06); color: var(--ft-gold-soft);
}
.gkg-ft__ico svg { width: 17px; height: 17px; }
.gkg-ft__contact small { display: block; font-size: 12px; color: var(--ft-dim); letter-spacing: .04em; text-transform: uppercase; }
.gkg-ft__contact a, .gkg-ft__contact span { color: #fff; line-height: 1.5; }
.gkg-ft__contact a:hover { color: var(--ft-gold-soft); }
.gkg-ft__hotline { font-size: 18px; font-weight: 700; }

.gkg-ft__h {
	position: relative; margin: 6px 0 18px; padding-bottom: 12px;
	font-size: 14px; font-weight: 700; letter-spacing: .05em; line-height: 1.4; text-transform: uppercase; color: #fff;
}
.gkg-ft__h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--ft-gold); }
.gkg-ft__links { margin: 0 !important; padding: 0; list-style: none; display: grid; gap: 10px; }
.gkg-ft__links li { margin: 0; }
.gkg-ft__links a { display: inline-flex; align-items: center; color: var(--ft-text); line-height: 1.5; }
.gkg-ft__links a::before { content: ""; flex: none; width: 0; height: 1px; margin-right: 0; background: var(--ft-gold); transition: width .2s, margin-right .2s; }
.gkg-ft__links a:hover { color: #fff; }
.gkg-ft__links a:hover::before { width: 10px; margin-right: 8px; }

/* ---------- Dòng bản quyền ---------- */
.gkg-ft-bottom .section-bg,
.gkg-ft-bottom.gkg-preview-bg { background: #081828 !important; }
.gkg-ft__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ft-dim); }
.gkg-ft__bottom a:hover { color: #fff; }
.gkg-ft__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.gkg-ft__top {
	display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	border: 1px solid var(--ft-line); color: #fff;
}
.gkg-ft__top:hover { background: var(--ft-gold); border-color: var(--ft-gold); color: #1d1608; }
.gkg-ft__top svg { width: 16px; height: 16px; }

/* Ẩn footer mặc định của Flatsome khi đã dùng block này (bỏ nếu muốn giữ) */
.gkg-footer-v2 .footer-wrapper .absolute-footer { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
	.gkg-ft__h { font-size: 13px; letter-spacing: .03em; }
	.gkg-ft__links a { font-size: 14px; }
}
@media (max-width: 849px) {
	.gkg-ft__cta { flex-direction: column; align-items: flex-start; }
	.gkg-ft__about { max-width: none; }
	.gkg-ft__contact { margin-bottom: 28px !important; }
}
@media (max-width: 549px) {
	.gkg-ft__btns { width: 100%; }
	.gkg-ft__btn { flex: 1; justify-content: center; padding: 0 14px; font-size: 14px; }
	.gkg-ft__cta-title { font-size: 20px; }
	.gkg-ft__contact span,
	.gkg-ft__contact a { font-size: 14px; word-break: break-word; }
	.gkg-ft__links { gap: 8px; }
	.gkg-ft__h { margin-top: 0; }
	.gkg-ft__bottom { flex-direction: column; align-items: flex-start; }
	.gkg-ft__legal { gap: 16px; }
	/* Chừa chỗ cho nút Zalo / hotline nổi ở góc trái dưới */
	.gkg-ft__bottom { padding: 0 0 22px 84px; }
}
