/*
 * WRAPPER: .tuv-tool-wrapper
 * Đảm bảo CSS chỉ ảnh hưởng đến các phần tử bên trong, tránh xung đột với theme WordPress.
 */
.tuv-tool-wrapper {
    /* Reset một số thuộc tính cơ bản để cách ly khỏi theme */
    all: initial;
    display: block;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif, system-ui; /* Font hiện đại */
    color: #1f2937; /* Màu chữ tối, dễ đọc */
    line-height: 1.6;
}

/* Kế thừa box-sizing cho các phần tử con */
.tuv-tool-wrapper *,
.tuv-tool-wrapper *::before,
.tuv-tool-wrapper *::after {
    box-sizing: border-box;
    /* Thiết lập lại margin/padding cho đồng bộ */
    margin: 0;
    padding: 0;
}

/* Styles cho body và layout chính */
.tuv-tool-wrapper .tuv-body {
    background: #f4f5f7; /* Nền nhẹ nhàng */
    min-height: 100vh;
}

/* Header - High Impact */
.tuv-tool-wrapper .tuv-header {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6); /* Gradient xanh dương đậm */
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tuv-tool-wrapper .tuv-header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
}

.tuv-tool-wrapper .tuv-header p {
    font-size: 1.1em;
    opacity: 0.9;
    margin-top: 5px;
}

/* Vùng nội dung chính */
.tuv-tool-wrapper .main-content {
 /*   max-width: 1200px;*/
    margin: 0 auto;
    padding: 1px 20px;
}

/* Tiêu đề nhóm công cụ */
.tuv-tool-wrapper .tool-group h2 {
    color: #1d4ed8; /* Màu xanh đậm */
    border-bottom: 3px solid #60a5fa; /* Đường viền nổi bật */
    padding-bottom: 8px;
    margin-top: 40px;
    margin-bottom: 25px;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* GRID LAYOUT - Tối đa 3 cột, Responsive */
.tuv-tool-wrapper .tools {
    display: grid;
    /* Mặc định 1 cột cho mobile, 2 cột cho tablet, 3 cột cho desktop */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Thẻ công cụ - High Impact, Colorful */
.tuv-tool-wrapper .tool {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px; /* Đảm bảo chiều cao đồng nhất */
    border: 1px solid #e5e7eb;
}

/* Hiệu ứng Hover nổi bật */
.tuv-tool-wrapper .tool:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: #f8fafc; /* Nền hơi sáng khi hover */
}

.tuv-tool-wrapper .tool h3 {
    margin-top: 0;
    font-size: 1.35em;
    color: #1d4ed8; /* Màu tiêu đề công cụ */
    margin-bottom: 10px;
    font-weight: 600;
}

.tuv-tool-wrapper .tool p {
    flex-grow: 1;
    color: #4b5563; /* Màu mô tả */
    margin-bottom: 15px;
    font-size: 0.95em;
}

/* Button - Colorful */
.tuv-tool-wrapper a.button {
    display: inline-block;
    padding: 12px 25px;
    background: #1d4ed8; /* Màu đỏ rực rỡ (ví dụ: Tailwind red-500) */
    color: #fff !important; /* Đảm bảo màu chữ trắng */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: auto; /* Đẩy xuống dưới cùng */
    border: none;
    box-shadow: 0 3px 6px rgba(239, 68, 68, 0.3);
}

.tuv-tool-wrapper a.button:hover {
    background: #dc2626; /* Màu đỏ đậm hơn khi hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(239, 68, 68, 0.4);
}

/* Footer */
.tuv-tool-wrapper .tuv-footer {
    text-align: center;
    padding: 20px;
    background: #e5e7eb;
    margin-top: 40px;
    color: #6b7280;
    font-size: 0.9em;
}
