/* ============================================
   GIỚI THIỆU F168 - GIOITHIEU.CSS (OPTIMIZED)
   Mobile-first, Performance
   ============================================ */

/* =========================
   INTRO HERO
   ========================= */

.intro-hero {
    position: relative;
    padding: 60px 40px;
    margin: 5% 0 32px 0;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, .66);
    border: 1px solid rgba(255, 255, 255, .58);
    box-shadow: var(--shadow);
    backdrop-filter: blur(3px) saturate(155%);
    -webkit-backdrop-filter: blur(28px) saturate(145%);
}

.intro-hero .eyebrow {
    animation: badgeFloat 3s ease-in-out infinite, badgeGlow 2.5s ease-in-out infinite alternate, giFadeIn .7s ease both;
}

.intro-hero h1 {
    max-width: 820px;
    margin: 16px 0 0;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -.04em;
    color: var(--ink);
    opacity: 0;
    animation: giFadeUp .8s ease .1s forwards;
}

.intro-hero p.lead {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(.9rem, 1.1vw, 1.06rem);
    line-height: 1.7;
    opacity: 0;
    animation: giFadeUp .8s ease .25s forwards;
}

/* =========================
   GIỚI THIỆU BLOCK
   ========================= */

.gi-block {
    padding: 32px 36px;
}

.gi-block .section-head {
    max-width: 780px;
    margin-bottom: 30px;
}

.gi-flex {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
    align-items: center;
}

.gi-flex p {
    color: var(--muted);
    margin: 0 0 14px;
    font-size: clamp(.9rem, 1vw, 1rem);
    line-height: 1.7;
}

.gi-flex p:last-child {
    margin-bottom: 0;
}

.gi-flex strong {
    color: #fb8c00;
    font-weight: 800;
}

.gi-media {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 220px;
    background: linear-gradient(135deg, rgba(251, 140, 0, .16), rgba(93, 114, 255, .16));
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 18px 45px rgba(14, 29, 72, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.gi-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-height: 200px;
}

.gi-media .gi-media-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(0deg, rgba(16, 32, 58, .78), transparent);
}

/* Reveal animation */
.gi-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.gi-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   LỢI THẾ VƯỢT TRỘI
   ========================= */

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.advantage-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 22px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .5);
    border: 1px solid rgba(255, 255, 255, .7);
    transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
    opacity: 0;
    transform: translateY(18px);
}

.advantage-item.is-visible {
    animation: giFadeUp .6s ease forwards;
}

.advantage-item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 16px 34px rgba(14, 29, 72, .12);
}

.advantage-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #fb8c00, #ffc107);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(251, 140, 0, .28);
}

.advantage-text {
    width: 100%;
}

.advantage-text h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: var(--ink);
}

.advantage-text p {
    margin: 0;
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.65;
}

/* =========================
   5 CHUYÊN MỤC CHỦ LỰC
   ========================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(180px, auto));
    grid-template-areas:
        "casino casino nohu banca"
        "casino casino thethao lode";
    gap: 16px;
}

.category-card:nth-child(1) {
    grid-area: casino;
}

.category-card:nth-child(2) {
    grid-area: nohu;
}

.category-card:nth-child(3) {
    grid-area: banca;
}

.category-card:nth-child(4) {
    grid-area: thethao;
}

.category-card:nth-child(5) {
    grid-area: lode;
}

.category-card {
    position: relative;
    padding: 24px 20px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: rgba(255, 255, 255, .52);
    border: 1px solid rgba(255, 255, 255, .72);
    transition: transform .35s ease, background .35s ease, box-shadow .35s ease;
    opacity: 0;
    transform: translateY(20px) scale(.98);
}

.category-card--featured {
    padding: 32px 28px;
    justify-content: center;
    background: linear-gradient(150deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .42));
}

.category-card--featured .csn-ic {
    margin-bottom: 16px;
}

.category-card--featured .csn-ic img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.category-card--featured h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.category-card--featured p {
    font-size: .9rem;
    max-width: 380px;
}

.category-card.is-visible {
    animation: giCardIn .6s cubic-bezier(.2, .8, .2, 1) forwards;
}

.category-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 22px 45px rgba(14, 29, 72, .16);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -50px;
    bottom: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 140, 0, .18), transparent 70%);
    pointer-events: none;
}

.category-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #5d72ff, #20b9e8);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 12px 26px rgba(93, 114, 255, .28);
    transition: transform .35s ease;
}

.category-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.category-card:hover .category-icon {
    transform: rotate(-6deg) scale(1.08);
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--ink);
}

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.65;
}

.category-tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(251, 140, 0, .12);
    color: #d87500;
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.box-ig {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(255, 255, 255, .85);
    margin-top: 18px;
    box-shadow: 0 14px 32px rgba(14, 29, 72, .12);
}

.box-ig img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(14, 29, 72, .12);
    transition: transform .25s ease, box-shadow .25s ease;
    max-height: 50px;
    object-fit: contain;
}

.box-ig img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(14, 29, 72, .18);
}

/* =========================
   KẾT LUẬN / CTA
   ========================= */

.gi-conclusion {
    padding: 50px 36px;
    text-align: center;
}

.gi-conclusion h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    letter-spacing: -.04em;
    margin: 0 0 14px;
    color: var(--ink);
}

.gi-conclusion p {
    max-width: 600px;
    margin: 0 auto 24px;
    color: var(--muted);
    font-size: clamp(.9rem, 1vw, 1rem);
    line-height: 1.7;
}

/* =========================
   SO SÁNH TABLE (NEW)
   ========================= */

.compare-table-wrap {
    overflow-x: auto;
    margin-top: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .5);
    border: 1px solid rgba(255, 255, 255, .7);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    min-width: 600px;
}

.compare-table th,
.compare-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(16, 32, 58, .08);
}

.compare-table th {
    background: rgba(251, 140, 0, .1);
    color: #d87500;
    font-weight: 800;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.compare-table td {
    color: var(--muted);
}

.compare-table tr:hover td {
    background: rgba(255, 255, 255, .3);
}

.compare-table .check-mark {
    color: #36d399;
    font-weight: 800;
}

.compare-table .cross-mark {
    color: #ef4444;
    font-weight: 800;
}

/* =========================
   ANIMATIONS
   ========================= */

@keyframes giFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes giFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes giCardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Stagger */
.category-grid .category-card:nth-child(1) {
    animation-delay: .05s;
}

.category-grid .category-card:nth-child(2) {
    animation-delay: .15s;
}

.category-grid .category-card:nth-child(3) {
    animation-delay: .25s;
}

.category-grid .category-card:nth-child(4) {
    animation-delay: .35s;
}

.category-grid .category-card:nth-child(5) {
    animation-delay: .45s;
}

.advantage-grid .advantage-item:nth-child(1) {
    animation-delay: .05s;
}

.advantage-grid .advantage-item:nth-child(2) {
    animation-delay: .12s;
}

.advantage-grid .advantage-item:nth-child(3) {
    animation-delay: .19s;
}

.advantage-grid .advantage-item:nth-child(4) {
    animation-delay: .26s;
}

.advantage-grid .advantage-item:nth-child(5) {
    animation-delay: .33s;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {

    .intro-hero,
    .gi-block,
    .gi-conclusion {
        padding: 36px 24px;
        margin: 3% 0 24px 0;
    }

    .gi-flex {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .gi-media {
        min-height: 180px;
        order: -1;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: none;
        grid-template-areas:
            "casino casino"
            "nohu banca"
            "thethao lode";
    }

    .category-card--featured {
        padding: 28px 22px;
    }

    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .intro-hero,
    .gi-block,
    .gi-conclusion {
        padding: 28px 16px;
        border-radius: 20px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "casino"
            "nohu"
            "banca"
            "thethao"
            "lode";
    }

    .category-card--featured {
        padding: 24px 18px;
    }

    .category-card--featured .csn-ic img {
        width: 48px;
        height: 48px;
    }

    .advantage-grid {
        grid-template-columns: 1fr;
    }

    .advantage-item {
        padding: 18px 16px;
    }

    .box-ig {
        padding: 14px 10px;
        gap: 8px;
    }

    .box-ig img {
        max-height: 40px;
    }
}