:root {
    --bg-header-top: #820018;
    --bg-footer: #ffffff;
    --bg-copyright: #ebebeb;
    --bg-body: #EBEBEB;
    --bg-menu: #ffffff;
    --color-red: #D30000;
    --color-body: #343a40;
}

.container_custom {
    max-width: 1200px;
    margin: 60px auto;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.flex {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.banner {
    width: 100%;
}


.banner>img {
    width: 100%;
    border-radius: 30px;
}

.absolute-custom {
    top: 40%;
    left: 37%;
    transform: translate(-50%, -50%);
}

.absolute-custom .title>h1 {
    font-size: 48px;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--bg-menu);
}

.service-section {
    background-color: #f1f1f1;
    padding: 60px 20px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.sub-title {
    color: red;
    font-size: 16px;
    margin-bottom: 5px;
}

.main-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
}

.main-title span {
    color: var(--color-red);
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 20px;
}

.service-item {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: left;
    transition: all 0.3s ease-in-out;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 15px;
}

.service-content {
    padding: 20px;
}

.service-number {
    position: relative;
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.service-number .number-text {
    position: relative;
    z-index: 1;
}

.service-number::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160%;
    height: 170%;
    background-color: black;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center;
    transition: transform 0.4s ease, background-color 0.3s ease;
    z-index: 0;
}

.service-content:hover .service-number::before {
    background-color: var(--color-red);
    transform: translate(-50%, -50%) rotate(45deg);
}

.service-content .text {
    line-height: 1.4;
    min-height: 200px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-content h3 {
    margin: 15px 0 15px 0;
    font-size: 18px;
}

.service-content ul {
    padding-left: 20px;
    margin: 0;
    list-style: disc;
    font-size: 14px;
    line-height: 1.6;
}

.service-button {
    margin-top: 40px;
}

.btn-contact {
    background-color: red;
    color: white;
    padding: 12px 28px;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-contact:hover {
    background-color: darkred;
}

.project-section {
    text-align: center;
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-menu);
    padding: 60px 0px;
}

.section-header .sub-title {
    color: red;
    font-size: 18px;
    margin-bottom: 0;
}

.section-header .main-title {
    font-size: 36px;
    color: #d60000;
    font-weight: bold;
    margin-top: 5px;
}

.project-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.project-tabs .tab {
    padding: 10px 25px;
    border: none;
    border-radius: 999px;
    background-color: transparent;
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-tabs .tab.active {
    background-color: #d60000;
    color: white;
    border-color: #d60000;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.project-item {
    text-align: left;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
}

.project-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;
}

.project-item p {
    margin-top: auto;
}

.project-item h3 {
    font-size: 16px;
    margin: 15px 10px 5px;
    font-weight: bold;
}

.project-item p {
    font-size: 14px;
    color: #333;
    margin: 0 10px 15px;
}

.project-item i {
    color: red;
    margin-right: 5px;
}

.project-footer {
    padding-bottom: 40px;
}

.view-all-btn {
    background-color: red;
    color: white;
    padding: 10px 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    border-radius: 4px;
    transition: background 0.3s;
}

.view-all-btn:hover {
    background-color: darkred;
}


.cart-empty {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 60px 0px;
    min-height: calc(100vh - 800px);
}

.cart-empty>h3 {
    text-transform: uppercase;
    font-size: 36px;
}

.cart-empty>a {
    background-color: var(--color-red);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
}

@media (max-width:576px) {

    .absolute-custom .title>h1 {
        font-size: 24px;
    }

    .project-section {
        padding: 10px
    }

    .section-header .main-title {
        font-size: 24px !important;
    }

    .project-category {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .service-section {
        padding: 30px 10px;
    }

    .container_custom {
        margin: 30px auto;
    }

    .service-item {
        max-width: 100%;
    }

    .main-title {
        font-size: 24px;
    }

    .main-title strong {
        font-size: 16px;
    }
}


.news-nav {
    position: absolute;
    left: 0;
    top: 35%;
    transform: translateY(-50px);
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.product-hot-nav-btn {
    border-radius: 50%;
}

@media (max-width:991px) {
    .news-nav {
        display: none;
    }
}