.home-title {
    position: relative;
    padding: 30px 45px 100px 45px;
    text-align: center;
    background: -webkit-gradient(linear,left top,right top,color-stop(0,#882e27),color-stop(50%,#6d869a),to(#231641)) #44287d;
    background: -webkit-linear-gradient(left,#882e27,#6d869a 50%,#231641) #44287d;
    background: -o-linear-gradient(left,#882e27 0,#6d869a 50%,#231641 100%) #44287d;
    background: linear-gradient(90deg,#882e27,#484a4e 50%,#231641) #44287d;
}
.subtitle {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0;
    margin-bottom: 8px;
    line-height: 32px;
    color: #fff;
}

/*Begin css tools*/
.tools {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 0 68px 42px;
}
@media (max-width: 960px) {
    .tools {
        padding: 0 24px 24px;
    }
}
.tools__container {
    margin-top: -80px;
    background: #fff;
    border-left: 1px solid #f6f6f8;
    border-top: 1px solid #f6f6f8;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    position: relative;
    -webkit-box-shadow: 0 2px 10px 0 rgba(0,0,0,.1);
    box-shadow: 0 2px 10px 0 rgba(0,0,0,.1);
}
.home .tools__container {
    margin-top: -80px;
}
.tools__item {
    -ms-flex: 0 0 16.666%;
    flex: 0 0 16.666%;
    color: #383e45;
    border-right: 1px solid #f6f6f8;
    border-bottom: 1px solid #f6f6f8;
    position: relative;
    overflow: hidden;
    -webkit-transition: all .4s ease-out;
    -o-transition: all .4s ease-out;
    transition: all .4s ease-out;
    z-index: 1;
}
.tools__item:hover .tools__item__icon img {
    transform: scale(1.1)
}
.tools__item:hover {
    z-index: 999;
    background: #f5f5fa;
}
@media (max-width: 90em) {
    .home-title .subtitle {
        margin-bottom: 12px;
    }
    .tools__item {
        font-size: 36px;
        line-height: 38px;
    }
    .tools__item a {
        padding: 24px;
    }
    .tools {
        padding: 0 32px 32px;
    }
}

@media (max-width: 1300px) {
    .tools__item {
        -ms-flex: 0 0 20%;
        flex: 0 0 20%;
    }
}
@media (max-width: 1280px) {
    .tools__item {
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
    }
}
@media (max-width: 990px) {
    .tools__item {
        -ms-flex: 0 0 33.333%;
        flex: 0 0 33.333%;
    }
}
.tools__item a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 32px;
    color: #383e45;
    position: relative;
    z-index: 2;
}
.tools__item a:hover{
    text-decoration: none;
}
.tools__item__icon svg {
    transition: all .3s;
}
.tools__item a:hover .tools__item__icon svg {
    transform: scale(1.15);
}

.tools__item h3 {
    font-size: 18px;
    font-weight: 540;
    line-height: 24px;
    letter-spacing: 0;
    color: #33333b;
    margin-bottom: 9px;
}
.tools__item__icon, .tools__item h3 {
    margin-bottom: 12px;
}
.tools__item__icon, .tools__item h3 {
    margin-bottom: 12px;
}
.tools__item svg {
    width: 50px;
    height: 50px;
}
.tools__item__content {
    font-size: 12px;
    line-height: 16px;
    color: #626870;
}
.tools__item__content p {
    line-height: 18px;
    font-weight: 500;
    letter-spacing: .3px;
    font-size: 13px;
    color: #707078;
}
.block_container {
    max-width: 80%;
}
.tools {
    background-color: #f9fafb;
    padding: 60px 40px; /* tăng padding ngang cho đẹp */
    /*font-family: "Inter", "Helvetica Neue", sans-serif;*/
}

/* Container rộng hơn và cân giữa */
.tools__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 25px;
}

/* Force 6 columns on large screens */
@media (min-width: 1400px) {
    .tools__container {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Laptop ~4 columns */
@media (min-width: 1024px) and (max-width: 1399px) {
    .tools__container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet ~3 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .tools__container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile ~2 columns */
@media (max-width: 767px) {
    .tools__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Each card */
.tools__item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
    overflow: hidden;
}

.tools__item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px;
    text-decoration: none;
    color: #1f2937;
    height: 100%;
}

.tools__item__icon {
    background: #f3f4f6;
    border-radius: 12px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.tools__item__icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.tools__item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.tools__item__content p {
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.45;
}

.tools__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.tools__item:hover .tools__item__icon {
    background: #e0e7ff;
    transform: scale(1.05);
}

/* Title section */
.home-title {
    text-align: center;
    padding: 60px 20px 40px;
    color: white;
    /*background: linear-gradient(120deg, #1e1b4b, #312e81, #4338ca);*/
    background-size: 400% 400%;
    animation: change 6s ease-in-out infinite;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #e5e7eb;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

@keyframes change {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

