/* =========================================================
       LAYOUT
    ========================================================= */

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

/* =========================================================
       HERO
    ========================================================= */

.hero {
    padding: 110px 0 82px;

    border-bottom: 1px solid var(--border);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 24px;

    color: #777;

    font-size: 12px;
    font-weight: 650;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #555;
    animation: pulse-gray 2s infinite;
}

.hero h1 {
    max-width: 760px;

    font-size: clamp(48px, 7vw, 82px);
    line-height: 0.98;

    letter-spacing: -0.06em;
    font-weight: 700;
}

.hero-description {
    max-width: 650px;

    margin-top: 28px;

    color: var(--text-secondary);

    font-size: 18px;
    line-height: 1.7;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 32px;

    margin-top: 42px;

    color: var(--text-muted);

    font-size: 13px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-number {
    color: #222;

    font-size: 18px;
    font-weight: 650;
}

/* =========================================================
       LAB SECTION
    ========================================================= */

.labs-section {
    padding: 70px 0 120px;
}

/* =========================================================
       TABS
    ========================================================= */

.tabs-wrapper {
    margin-bottom: 52px;

    border-bottom: 1px solid var(--border);
}

.tabs {
    display: flex;
    align-items: center;
    gap: 34px;

    overflow-x: auto;
    /* Ẩn thanh cuộn ngang nhưng vẫn cho phép cuộn */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.tabs::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.tab {
    position: relative;

    padding: 0 0 17px;

    border: none;
    background: none;

    color: #888;

    cursor: pointer;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    transition: color 0.2s ease;
}

.tab:hover {
    color: #444;
}

.tab.active {
    color: var(--text);
}

.tab.active::after {
    content: "";

    position: absolute;

    bottom: -1px;
    left: 0;
    right: 0;

    height: 1px;

    background: #171717;
}

.tab-count {
    margin-left: 5px;

    color: #aaa;

    font-size: 11px;
    font-weight: 500;
}

.tab.active .tab-count {
    color: #666;
}

/* =========================================================
       TAB CONTENT
    ========================================================= */

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;

    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.section-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 28px;
}

.section-intro h2 {
    font-size: 20px;

    letter-spacing: -0.025em;
}

.section-intro p {
    max-width: 520px;

    color: #777;

    font-size: 14px;
}

/* =========================================================
       GRID
    ========================================================= */

.labs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* =========================================================
       CARD
    ========================================================= */

.lab-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lab-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-color: #cfcfcb;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    display: inline-block;
    text-decoration: none;
}

.card-title:hover {
    text-decoration: underline;
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag {
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    border: none;
    font-family: Inter, sans-serif;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    margin-top: auto;
}

.card-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.card-meta svg {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

.meta-separator {
    margin: 0 8px;
    color: #d0d0d0;
}

.card-btn {
    padding: 6px 20px;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    font-size: 13px;
    font-weight: 650;
    border-radius: 20px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.card-btn:hover {
    background: var(--glow-blue);
}

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

@media (max-width: 760px) {

    .container {
        width: min(100% - 28px, 1120px);
    }

    .navbar {
        height: 64px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a:nth-child(1),
    .nav-links a:nth-child(4) {
        display: none;
    }

    .hero {
        padding: 75px 0 60px;
    }

    .hero h1 {
        font-size: 54px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-meta {
        gap: 20px;
    }

    .labs-section {
        padding: 50px 0 80px;
    }

    .tabs {
        gap: 25px;
    }

    .labs-grid {
        grid-template-columns: 1fr;
    }

    .section-intro {
        display: block;
    }

    .section-intro p {
        margin-top: 10px;
    }

    .lab-card {
        min-height: 330px;
    }

    .footer-inner {
        display: block;
    }

    .footer-right {
        margin-top: 10px;
    }
}

@keyframes pulse-gray {
    0% {
        box-shadow: 0 0 0 0 rgba(85, 85, 85, 0.6);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(85, 85, 85, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(85, 85, 85, 0);
    }
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 185, 97, 0.6);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(15, 185, 97, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(15, 185, 97, 0);
    }
}