/* Widget tổng thể */
.feature-widget {
    background: #f5f5f5;
    color: #333;
    padding: 60px 0;
    font-family: 'Arial', sans-serif;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Title */
.widget-title {
    font-size: 1.8rem;
    margin-bottom: 16px;
    font-weight: 600;
}

/* Button */
.widget-button {
    display: inline-block;
    padding: 10px 24px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.widget-button:hover {
    background: #e0e0e0;
    border-color: #999;
}

/* ================================
   GRID DESKTOP 3x2 – SÁT NHAU
================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid #ccc; /* border ngoài */
}

/* CARD */
.feature-card {
    background: #fff;
    color: #333;
    padding: 30px 20px;
    border: 1px solid #ccc;
    border-left: none;
    border-top: none;
    transition: 0.3s;
}

/* Hoàn thiện border dạng bảng 3×2 */
.feature-card:nth-child(3n+1) { border-left: 1px solid #ccc; } /* Cột đầu */
.feature-card:nth-child(-n+3) { border-top: 1px solid #ccc; }  /* Hàng đầu */

/* ================================
   MOBILE: 2 cột – vẫn sát nhau
================================ */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        border: 1px solid #ccc;
    }

    .feature-card {
        border: 1px solid #ccc;
        border-left: none;
        border-top: none;
    }

    /* Cột đầu tiên trên mobile */
    .feature-card:nth-child(2n+1) {
        border-left: 1px solid #ccc;
    }

    /* Hàng đầu tiên mobile (2 ô đầu) */
    .feature-card:nth-child(-n+2) {
        border-top: 1px solid #ccc;
    }
}

/* Extra small */
@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
    
/* Icon */
.feature-card .icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Title */
.feature-card h5 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Text */
.feature-card p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Hover */
.feature-card:hover {
    background: #f8f8f8;
}
