/* Mục Lĩnh Vực Ứng Dụng (tab 2 dòng sản phẩm) */

/* Advantages Section */
.advantages {
    padding: 80px 0;
    background-color: #ffffff;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64"><path d="M 64 0 L 0 0 0 64" fill="none" stroke="%23eef0f3" stroke-width="1"/></svg>');
    background-size: 64px 64px;
    position: relative;
}

.app-intro {
    max-width: 760px;
    margin: -25px auto 40px;
    text-align: center;
    font-size: 17px;
    color: #6b7280;
}

/* Tab chọn dòng sản phẩm */
.app-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.app-tab {
    padding: 12px 30px;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    background: white;
    color: var(--dark-gray);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.app-tab:hover:not(.active) {
    border-color: #9ca3af;
}

.app-tab.active {
    background: linear-gradient(135deg, #111827, #4b5563);
    color: white;
    border-color: transparent;
}

.app-panel {
    display: none;
}

.app-panel.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* Dải định vị dòng sản phẩm */
.app-positioning {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background: white;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--dark-gray);
    border-radius: 0 12px 12px 0;
    padding: 20px 26px;
    margin-bottom: 30px;
}

.app-positioning.premium {
    border-left-color: var(--accent-color);
    background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.app-positioning p {
    margin: 0;
    font-size: 15px;
    color: #4b5563;
    flex: 1;
    min-width: 260px;
}

.app-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.app-badge.premium {
    background: linear-gradient(135deg, var(--accent-color), #f97316);
}

/* Lưới thẻ ứng dụng */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.app-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.app-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--dark-gray);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s;
}

.app-card.premium::after {
    background: linear-gradient(90deg, var(--accent-color), #f97316);
}

.app-card:hover {
    transform: translateY(-6px);
    border-color: #d1d5db;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09);
}

.app-card:hover::after {
    transform: scaleX(1);
}

.app-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}

.app-card.premium .app-icon {
    background: #fef3c7;
}

.app-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.35;
}

.app-card p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* Chân mục ứng dụng */
.app-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 40px;
    font-size: 16px;
    color: #6b7280;
}

.app-foot p {
    margin: 0;
}

.app-foot-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2px;
    transition: all 0.3s;
}

.app-foot-link:hover {
    color: var(--accent-color);
}

/* Ứng dụng responsive */
@media (max-width: 768px) {
    .app-intro {
        font-size: 15px;
    }

    .app-tab {
        padding: 10px 20px;
        font-size: 14px;
    }

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

    .app-positioning {
        padding: 18px 20px;
    }

    .app-foot {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
