/**
 * =========================================
 * SECTION: COMMUNITY - HOẠT ĐỘNG CỘNG ĐỒNG
 * =========================================
 * File: assets/css/culture-community.css
 * Dùng cho: Section 7 của page "Văn hóa – Giá trị Tabcom"
 * Scope: .tabcom-community
 * =========================================
 */

.tabcom-community {
    --comm-primary: #2563eb;
    --comm-cyan: #06b6d4;
    --comm-dark: #0f172a;
    --comm-gray: #64748b;
    --comm-bg-light: #f8fafc;
    --comm-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --comm-radius: 24px;
}

.tabcom-community {
    font-family: 'Inter', sans-serif;
    background-color: var(--comm-bg-light);
    color: var(--comm-dark);
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.tabcom-community * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.tabcom-community .container {
    max-width: 1200px;
    width: 100%;
}

/* --- HEADER SECTION --- */
.tabcom-community .header-section {
    margin-bottom: 40px;
    max-width: 800px;
}

.tabcom-community .sub-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--comm-cyan);
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
}

.tabcom-community .main-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    background: -webkit-linear-gradient(0deg, var(--comm-dark), var(--comm-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tabcom-community .description {
    color: var(--comm-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}


/* --- CTA BUTTONS GROUP --- */
.tabcom-community .cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tabcom-community .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.tabcom-community .btn-primary {
    background: var(--comm-gradient);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
    border: 1px solid transparent;
}

.tabcom-community .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.6);
}

.tabcom-community .btn-secondary {
    background: white;
    color: var(--comm-primary);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.tabcom-community .btn-secondary:hover {
    border-color: var(--comm-primary);
    transform: translateY(-3px);
    background: #eff6ff;
    color: var(--comm-primary);
}

/* --- BENTO GRID LAYOUT --- */
.tabcom-community .bento-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 20px;
    margin-top: 40px;
}

.tabcom-community .grid-item {
    position: relative;
    border-radius: var(--comm-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tabcom-community .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tabcom-community .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.tabcom-community .item-tag {
    font-size: 0.75rem;
    color: #fff;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 8px;
    width: fit-content;
}

.tabcom-community .overlay h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.tabcom-community .overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.tabcom-community .grid-item:hover img {
    transform: scale(1.08);
}

.tabcom-community .grid-item:hover .overlay p {
    transform: translateY(0);
    opacity: 1;
}


/* --- GRID AREA POSITIONS --- */
.tabcom-community .item-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.tabcom-community .item-tall {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
}

.tabcom-community .item-small-top {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.tabcom-community .item-small-bottom {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .tabcom-community .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .tabcom-community .item-large {
        grid-column: 1 / 3;
        height: 350px;
    }

    .tabcom-community .item-tall {
        grid-column: 1 / 2;
        height: 300px;
    }

    .tabcom-community .item-small-top {
        grid-column: 2 / 3;
        height: 300px;
    }

    .tabcom-community .item-small-bottom {
        grid-column: 1 / 3;
        height: 250px;
    }
}

@media (max-width: 600px) {
    .tabcom-community .main-title {
        font-size: 1.8rem;
    }

    .tabcom-community .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .tabcom-community .btn {
        width: 100%;
        justify-content: center;
    }

    .tabcom-community .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .tabcom-community .grid-item {
        height: 280px !important;
    }
}
