:root {
    --primary-color: #108c67;
    --gradient-color: linear-gradient(115deg, rgb(110, 255, 206) -44.52%, rgb(0, 175, 87) 86.11%);
}

body {
    font-family: "Open Sans", sans-serif;
    background-color: #f8f9fa;
    scroll-behavior: smooth;
}

.text-gradient {
    background-image: var(--gradient-color);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-title { font-size: 2.8rem; font-weight: 700; }
@media (max-width: 575.98px) { .page-title { font-size: 2rem; } }

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}
.header .navbar-brand img { height: 40px; width: auto; }
.header .nav-link {
    color: #333;
    font-weight: 550;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.header .nav-link:hover, .header .nav-link:focus-visible {
    background: rgba(40, 167, 69, 0.1);
    color: var(--primary-color);
}
.header .dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
.header .dropdown-item { padding: 0.7rem 1.5rem; transition: padding 0.3s ease, color 0.3s ease; }
.header .dropdown-item:hover { color: var(--primary-color); padding-left: 2rem; background: #f8f9fa; }
@media (min-width: 992px) {
    .hover-dropdown:hover > .dropdown-menu,
    .hover-dropdown:focus-within > .dropdown-menu { display: block; margin-top: 0; }
}

.lang-switch {
    display: inline-flex;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}
.lang-switch a {
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    text-decoration: none;
}
.lang-switch a.active { background: var(--primary-color); color: #fff; }

.btn-login {
    background: #28a745;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.btn-login:hover { background: #218838; color: #fff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3); }

/* Filters */
.filter-sidebar {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 90px;
}
.form-check-input:checked { background-color: var(--primary-color); border-color: var(--primary-color); }
#search-name::-webkit-search-cancel-button { display: none; }

/* Cards */
.card { transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #e9ecef; }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); }
.card-img-top { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: #eef1f3; }

.shake-hover { display: inline-block; transition: color 0.2s, text-shadow 0.2s; }
.shake-hover:hover { animation: shake 0.3s; color: #0a684d !important; font-weight: 600; text-shadow: 0 2px 8px #b2f5ea; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-2px); }
    40%, 80% { transform: translateX(2px); }
}
@media (prefers-reduced-motion: reduce) {
    .shake-hover:hover { animation: none; }
    .card, .card:hover { transition: none; transform: none; }
}

.pagination .page-link { color: var(--primary-color); }
.pagination .page-item.active .page-link { background-color: var(--primary-color); border-color: var(--primary-color); color: #fff; }

/* Fancybox caption link */
.fancybox__caption { text-align: center; }
.fancybox__caption .landing-fancybox-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(16, 140, 103, 0.35);
}
.fancybox__caption .landing-fancybox-detail:hover { background: #0a684d; color: #fff; }

/* CTA + footer */
.cta-section {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.cta-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.cta-lead { font-size: 1.2rem; margin-bottom: 2.5rem; opacity: 0.9; }
.btn-cta {
    background: #fff;
    color: #28a745;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); color: #28a745; }

/* Footer (same look as eapp.vn) */
.site-footer { background: #232323; color: #f3f4f4; font-size: 16px; }
.site-footer a { color: #fff; text-decoration: none; transition: color 0.3s ease; }
.site-footer a:hover, .site-footer a:focus-visible { color: #28a745; }
.footer-brand { display: inline-block; margin-bottom: 1.5rem; }
.footer-brand img { height: 60px; width: auto; transition: transform 0.3s ease; }
.footer-brand:hover img { transform: scale(1.05); }
.footer-info-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #28a745;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}
.footer-info-label i { font-size: 1.1rem; }
.footer-info-value { font-size: 0.9rem; margin-left: 1.6rem; line-height: 1.7; }
.footer-zalo { margin: 0 0.25rem 0.2rem; vertical-align: middle; }
.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.site-footer .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.site-footer .social-link:hover, .site-footer .social-link:focus-visible { background: #28a745; color: #fff; transform: translateY(-2px); }
.footer-title { font-size: 1.1rem; font-weight: 700; color: #28a745; margin-bottom: 1rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 0.5rem; }
.footer-list a { font-size: 0.9rem; }
.footer-divider { border-color: rgba(255, 255, 255, 0.2); opacity: 1; margin: 1.5rem 0; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}
.site-footer .footer-bottom a { color: #6c757d; }
/* keep "Designed by" clear of the floating buttons when the container nearly fills the screen */
@media (min-width: 768px) and (max-width: 1499.98px) { .footer-bottom { padding-right: 72px; } }
.site-footer .footer-bottom a:hover { color: #28a745; }
.footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.15fr) minmax(0, 2fr);
    gap: 36px 48px;
    align-items: start;
}
.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
    align-items: start;
}
.footer-nav-stack { display: contents; }
@media (max-width: 991.98px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-nav { order: 1; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
    .footer-brand-col { order: 2; }
    .footer-nav-stack { display: grid; gap: 22px; align-content: start; }
    .site-footer .container { padding-bottom: 96px !important; }
}
@media (max-width: 767.98px) {
    .footer-info-value { margin-left: 0; margin-top: 0.25rem; }
    .social-links { justify-content: center; }
    .footer-title { font-size: 1rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* Floating contact button (same as eapp.vn) + back-to-top above it */
.fab-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1049;
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.fab-backdrop.visible { opacity: 1; pointer-events: auto; }
.fab-container {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* The box also spans the hidden menu items: let clicks through to the back-to-top
       button and the page underneath; only the button and open items take clicks. */
    pointer-events: none;
}
.fab-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 14px;
    pointer-events: none;
}
.fab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(16px) scale(0.88);
    transition: opacity 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.28s;
    visibility: hidden;
    pointer-events: none;
}
.fab-actions.is-open .fab-item { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
.fab-actions.is-open .fab-item:nth-child(1) { transition-delay: 0.12s; }
.fab-actions.is-open .fab-item:nth-child(2) { transition-delay: 0.08s; }
.fab-actions.is-open .fab-item:nth-child(3) { transition-delay: 0.04s; }
.fab-label {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #f8fafc;
    font-size: 0.775rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 24px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    gap: 6px;
}
.fab-label-icon { width: 16px; height: 16px; object-fit: contain; }
.fab-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 19px;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
}
.fab-item:hover .fab-btn, .fab-item:focus-visible .fab-btn { transform: scale(1.13); filter: brightness(1.12); }
.fab-item:hover .fab-label, .fab-item:focus-visible .fab-label { background: rgba(2, 132, 199, 0.92); }
.fab-btn-messenger { background: linear-gradient(145deg, #7c3aed, #a855f7); box-shadow: 0 5px 18px rgba(124, 58, 237, 0.38); }
.fab-btn-phone { background: linear-gradient(145deg, #16a34a, #22c55e); box-shadow: 0 5px 18px rgba(22, 163, 74, 0.38); animation: phone-ring 3s ease-in-out infinite; }
.fab-item:hover .fab-btn-phone { animation: none; }
.fab-btn-zalo { background: linear-gradient(145deg, #0068ff, #0099ff); box-shadow: 0 5px 18px rgba(0, 104, 255, 0.38); }
.fab-btn-zalo img { filter: brightness(0) invert(1); }
.fab-btn-email { background: linear-gradient(145deg, #0284c7, #0ea5e9); box-shadow: 0 5px 18px rgba(2, 132, 199, 0.38); }
@keyframes phone-ring {
    0%, 85%, 100% { transform: rotate(0deg); }
    88% { transform: rotate(-14deg); }
    91% { transform: rotate(14deg); }
    94% { transform: rotate(-10deg); }
    97% { transform: rotate(8deg); }
}
.fab-main {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(145deg, #0284c7, #0ea5e9);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 26px rgba(2, 132, 199, 0.48), 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.35s ease;
    position: relative;
    pointer-events: auto;
}
.fab-main:hover { transform: scale(1.09); box-shadow: 0 10px 32px rgba(2, 132, 199, 0.58); }
.fab-main.is-open { background: linear-gradient(145deg, #b91c1c, #ef4444); box-shadow: 0 6px 24px rgba(185, 28, 28, 0.42); }
.fab-icon-open, .fab-icon-close {
    position: absolute;
    display: flex;
    font-size: 23px;
    transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fab-icon-close { font-size: 21px; opacity: 0; transform: rotate(-45deg) scale(0.5); }
.fab-main.is-open .fab-icon-open { opacity: 0; transform: rotate(45deg) scale(0.5); }
.fab-main.is-open .fab-icon-close { opacity: 1; transform: none; }
.fab-main::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.4);
    animation: fab-pulse 2.4s ease-out infinite;
    z-index: -1;
}
.fab-main.is-open::before { animation: none; opacity: 0; }
@keyframes fab-pulse {
    0% { transform: scale(1); opacity: 0.75; }
    70%, 100% { transform: scale(1.7); opacity: 0; }
}
.fab-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 12px;
    height: 12px;
    background: #f43f5e;
    border: 2px solid #fff;
    border-radius: 50%;
    animation: dot-bounce 1.8s ease-in-out infinite;
    transition: opacity 0.2s ease;
}
.fab-main.is-open .fab-dot { opacity: 0; }
@keyframes dot-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 96px;
    z-index: 1040;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--primary-color);
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover, .back-to-top:focus-visible { background: var(--primary-color); color: #fff; }
body.fab-open .back-to-top { opacity: 0; visibility: hidden; }

@media (max-width: 480px) {
    .fab-container { bottom: 16px; right: 14px; }
    .fab-main { width: 52px; height: 52px; }
    .fab-btn { width: 42px; height: 42px; }
    .fab-label { font-size: 0.72rem; padding: 5px 11px; }
    .back-to-top { right: 18px; bottom: 82px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .fab-item, .fab-main, .fab-btn, .back-to-top { transition: none; }
    .fab-btn-phone, .fab-main::before, .fab-dot { animation: none; }
}
