.haiwode_case_list {
    padding: 80px 0 100px;
    background: #f3f3f3;
}

.haiwode_case_list_nav_wrapper {
    overflow-x: auto;
    padding-bottom: 10px;
    border-bottom: 1px solid #dddddd;
}

.haiwode_case_list_nav_wrapper::-webkit-scrollbar {
    display: none;
}

.haiwode_case_list_nav {
    width: max-content;
    min-width: 100%;
    display: flex;
    align-items: center;
    gap: 30px;
}

.haiwode_case_list_nav a {
    position: relative;
    color: #333;
    text-transform: capitalize;
    padding-bottom: 8px;
    white-space: nowrap;
    font-size: var(--font-20);
    font-weight: 600;
    line-height: 45px;
}

.haiwode_case_list_nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -11px;
    height: 4px;
    background: #C52316;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.haiwode_case_list_nav a.active {
    color: #003365;
    font-size: var(--font-24);
    font-weight: 600;
}

.haiwode_case_list_nav a.active::after,
.haiwode_case_list_nav a:hover::after {
    transform: scaleX(1);
}

.haiwode_case_list_content_list {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 29px;
}

.haiwode_case_list_content_item {
    width: calc((100% - 58px) / 3);
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.haiwode_case_list_content_item_img {
    position: relative;
  }
  
  .haiwode_case_list_content_item_img_main {
    width: 100%;
    aspect-ratio: 514 / 292;
    object-fit: cover;
  }
  
  .haiwode_case_list_content_item_img_logo {
    position: absolute;
    bottom: calc(15 / 300 * 100%);
    left: calc(15 / 520 * 100%);
    width: calc(120 / 520 * 100%);
    max-width: 120px;
    aspect-ratio: 3 / 1;
    border-radius: 8px;
    background: #FFF;
    object-fit: cover;
    text-align: center;
  }
  
  .haiwode_case_list_content_item_img_logo img {
    width: calc(96 / 120 * 100%);
    max-width: 96px;
    aspect-ratio: 96/37;
    object-fit: cover;
  }

.haiwode_case_list_content_item_content {
    padding: 30px 35px 36px 30px;
}

.haiwode_case_list_content_item_content_title {
    color: #313131;
    font-family: Inter;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 137.5%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* min-height: calc(32px * 1.375 * 2); */
}

.haiwode_case_list_content_item_content_desc {
    color: #666;
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    margin-top: 24px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.haiwode_case_list_content_item_content_more {
    color: #313131;
    font-family: Inter;
    font-size: var(--font-20);
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    margin-top: 52px;
}


.haiwode_case_list_content_item:hover{
    filter: drop-shadow(0 6px 12px rgba(48, 73, 91, 0.15));
}

.haiwode_case_list_content_item:hover .haiwode_case_list_content_item_content_title{
    color: #003365;
}

.haiwode_case_list_content_item:hover .haiwode_case_list_content_item_content_more{
    color: #0b2d7a;
}


.haiwode_case_list .pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.haiwode_case_list .pagination-btn,
.haiwode_case_list .pagination-number {
    padding: 4px 8px;
    min-width: 26px;
    line-height: 1.2;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    color: #7d7d7d;
    background: #ffffff;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
}

.haiwode_case_list .pagination-number.active,
.haiwode_case_list .pagination-btn:hover,
.haiwode_case_list .pagination-number:hover {
    border-color: #ff5b5b;
    color: #ff5b5b;
}

.haiwode_case_list .pagination-btn.disabled,
.haiwode_case_list .pagination-btn:disabled {
    color: #b7b7b7;
    border-color: #e4e4e4;
    cursor: not-allowed;
}

.haiwode_case_list .pagination-dots {
    color: #b3b3b3;
    font-size: 12px;
    line-height: 1;
}

.haiwode_case_list #pagesize {
    margin: 36px 0 0 !important;
}

.haiwode_case_list #pagesize ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.haiwode_case_list #pagesize ul li {
    margin: 0;
}

.haiwode_case_list #pagesize ul li a {
    padding: 4px 8px;
    min-width: 26px;
    line-height: 1.2;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    color: #7d7d7d !important;
    background: #ffffff;
    font-size: 12px;
    font-weight: 400;
}

.haiwode_case_list #pagesize ul li a.active {
    border-color: #ff5b5b;
    background: #ffffff;
    color: #ff5b5b !important;
}

.haiwode_case_list #pagesize ul li a:hover {
    border-color: #ff5b5b;
    color: #ff5b5b !important;
    background: #ffffff;
}

@media screen and (max-width: 1400px) {
    .haiwode_case_list_content_item_content_title {
        font-size: 30px;
    }

    .haiwode_case_list_content_item_content_desc,
    .haiwode_case_list_content_item_content_more {
        font-size: 18px;
    }

    .haiwode_case_list_content_item_content_desc {
        min-height: calc(18px * 1.65 * 3);
    }
}

@media screen and (max-width: 1200px) {
    .haiwode_case_list {
        padding: 60px 0;
    }

    .haiwode_case_list_content_list {
        gap: 16px;
    }

    .haiwode_case_list_content_item {
        width: calc((100% - 16px) / 2);
    }
}

@media screen and (max-width: 992px) {
    .haiwode_case_list_nav {
        gap: 22px;
    }

    .haiwode_case_list_nav a {
        font-size: 13px;
    }
}

@media screen and (max-width: 768px) {
    .haiwode_case_list {
        padding: 42px 0;
    }

    .haiwode_case_list_content_list {
        margin-top: 24px;
        gap: 14px;
    }

    .haiwode_case_list_content_item {
        width: 100%;
    }

    .haiwode_case_list_content_item_content {
        padding: 12px 14px 14px;
    }

    .haiwode_case_list_content_item_content_title {
        font-size: 24px;
        /* height: calc(24px * 1.25 * 2); */
    }

    .haiwode_case_list_content_item_content_desc,
    .haiwode_case_list_content_item_content_more {
        font-size: 16px;
    }

    .haiwode_case_list_content_item_content_desc {
        min-height: calc(16px * 1.6 * 3);
    }

    .haiwode_case_list .pagination {
        margin-top: 28px;
    }
}