/* ================================================================
   home.css  –  Chỉ dùng cho trang chủ (index.html)
   ================================================================ */

body {
    background: #ffffff;
}

/* ── SWIPER PAGINATION ── */
.blog-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: .3;
}

.blog-swiper .swiper-pagination-bullet-active {
    background: #dfb667;
    opacity: 1;
}

.dynamic-cat-container .sp-pagination.swiper-pagination-bullets .swiper-pagination-bullet {
    background: #fff;
    opacity: .3;
}

.dynamic-cat-container .sp-pagination.swiper-pagination-bullets .swiper-pagination-bullet-active {
    background: #dfb667;
    opacity: 1;
}

/* ── PRODUCT SWIPER EQUAL-HEIGHT ── */
.dynamic-cat-swiper {
    padding-block: 12px 20px !important;
    padding-inline: 4px !important;
}

.dynamic-cat-swiper .swiper-slide {
    height: auto !important;
    display: flex;
    flex-direction: column;
}

.dynamic-cat-swiper .swiper-slide>div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dynamic-cat-swiper .swiper-slide>div .p-4 {
    flex: 1;
    display: flex;
    align-items: flex-start;
}

/* ── HERO v2 (Dark Split) ── */
.hero-v2 {
    background: #ffffff;
}

.hero-float-card {
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    border: 1px solid #eee;
    border-radius: 16px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.phone-glow {
    box-shadow: 0 0 0 0 rgba(223, 182, 103, .6);
    animation: phoneGlowRed 2.2s ease infinite;
}

@keyframes phoneGlowRed {
    0% {
        box-shadow: 0 0 0 0 rgba(223, 182, 103, .6);
    }

    50% {
        box-shadow: 0 0 0 18px rgba(223, 182, 103, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(223, 182, 103, 0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-left {
    animation: slideInLeft .8s ease both;
}

.hero-right {
    animation: slideInRight .8s ease .2s both;
}

/* ── SERVICE CARD ── */
.svc-card {
    transition: transform .28s, box-shadow .28s;
}

.svc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(223, 182, 103, .12);
}

/* ── GALLERY ── */
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform .4s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, transparent 60%);
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .3s;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ── FAQ (homepage) ── */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.faq-content.open {
    max-height: 400px;
}

.faq-icon {
    transition: transform .3s;
}

.faq-icon.rotated {
    transform: rotate(45deg);
}

/* ── BLOG CARD ── */
.blog-card img {
    transition: transform .35s;
}

.blog-card:hover img {
    transform: scale(1.05);
}

/* ── TABLE ── */
table tr:nth-child(even) td {
    background: #f9f9f9;
}

/* ── CÔNG TRÌNH TABS ── */
.ct-tab {
    display: inline-flex;
    align-items: center;
    padding: .55rem 1.25rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 800;
    border: 2px solid #ddd;
    color: #333;
    background: #f5f5f5;
    cursor: pointer;
    transition: all .2s;
}

.ct-tab:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.ct-tab.active {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.ct-panel {
    animation: fadeTab .3s ease;
}

@keyframes fadeTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}