.content-section {
    max-width: 1440px;
    background: #fff;
    margin: 50px auto 0;
}

@media (max-width: 768px) {
    .content-section {
        margin: 20px auto 0;
    }
}

.content-section h2 {
    font-size: 28px;
    font-family: var(--encode-font);
    color: var(--text-color);
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
}

@media (max-width: 768px) {
    .content-section h2 {
        font-size: 22px;
        padding-top: 0;
    }
}

/*--------------------CYCLE-------------------*/
.cycle {
    margin-top: 50px;
    background: linear-gradient(to right, rgba(45, 122, 62, 0.4), rgba(255, 169, 77, 0.2), #e3f1e5);
}

.cycle .cycle-wrapper {
    padding: 40px;
}

.cycle .cycle-wrapper .cycle-content h1 {
    font-size: 48px;
    font-family: var(--encode-font);
    color: #ffa94d;
    font-weight: 700;
    text-align: center;
}

.cycle .cycle-wrapper .cycle-content h1 span {
    color: var(--text-color);
}

.cycle .cycle-wrapper .cycle-content p {
    text-align: center;
    font-size: 24px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.cycle-group {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .cycle-group {
        gap: 20px;
    }
}

.btn {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
}

@media (max-width: 768px) {
    .btn {
        gap: 10px;
        padding: 10px 10px;
    }
}

.btn-cycle {
    border-radius: 5px;
    background: var(--text-color);
    color: #fff;
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    .btn-cycle {
        width: 100%;
    }
}

.btn-cycle:hover {
    color: var(--text-color);
    transform: scale(1.08);
    border: 1px solid var(--text-color);
    background: #fff;
}

.btn-cycle-2 {
    border-radius: 5px;
    border: 1px solid var(--text-color);
    background: #fff;
    color: var(--text-color);
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    .btn-cycle-2 {
        width: 100%;
    }
}

.btn-cycle-2:hover {
    color: var(--header-bg);
    transform: scale(1.08);
    background: var(--text-color);
}

@media (max-width: 768px) {
    .cycle {
        margin-top: 20px;
        background: linear-gradient(to right, rgba(45, 122, 62, 0.4), rgba(255, 169, 77, 0.2), #e3f1e5);
    }

    .cycle .cycle-wrapper {
        padding: 40px 20px;
    }

    .cycle .cycle-wrapper .cycle-content h1 {
        font-size: 32px;
    }

    .cycle .cycle-wrapper .cycle-content p {
        font-size: 18px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .cycle-group {
        flex-direction: column;
    }
}

/*--------------------RANKING-----------------*/
.ranking {
    background: var(--header-bg);
    border-radius: 20px;
}

.ranking-wrapper {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    .ranking-wrapper {
        padding-top: 30px;
    }
}

.ranking-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .ranking-content {
        flex-direction: column;
        gap: 30px;
        align-items: unset;
    }
}

.ranking-left,
.ranking-right {
    flex: 1;
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px 15px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff;
}

.ranking-item:last-child {
    margin-bottom: 0;
}

.ranking-item:has(.top1) {
    background: rgba(255, 225, 70, 0.5);
}

.ranking-item:has(.top2) {
    background: rgba(192, 192, 192, 0.8);
}

.ranking-item:has(.top3) {
    background: rgba(181, 139, 83, 0.47);
}

.ranking-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ranking-user-img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .ranking-user-img img {
        width: 50px;
        height: 50px;
    }
}

.ranking-user {
    display: flex;
    gap: 20px;
    align-items: center;
}

@media (max-width: 768px) {
    .ranking-user {
        gap: 10px;
    }
}

.ranking-number {
    font-size: 20px;
    font-weight: 700;
}

.ranking-number.top1 {
    font-size: 28px;
}

.ranking-number.top2 {
    font-size: 24px;
}

.ranking-number.top3 {
    font-size: 20px;
}

.ranking-point {
    min-width: 100px;
}

.ranking-point .tag {
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: 500;
    color: #fff;
}

.ranking-point-number {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .ranking-point-number {
        font-size: 20px;
        margin-bottom: 5px;
    }
}

.commitment {
    border-radius: 10px;
    background: #283140;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 35px;
    color: #fff;
    height: 100%;
}

@media (max-width: 768px) {
    .commitment {
        gap: 15px;
        padding: 20px;
        height: unset;
    }
}

.commitment svg {
    width: 80px;
    height: 80px;
}

@media (max-width: 768px) {
    .commitment svg {
        width: 50px;
        height: 50px;
    }
}

.commitment h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.commitment ul {
    list-style: none;
}

.commitment ul li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    .commitment ul li {
        font-size: 12px;
        padding-bottom: 5px;
    }
}

.commitment ul li:last-child {
    padding-bottom: 0;
}

.commitment ul li i {
    color: #94F8C3;
}

.commitment a {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    background: #94F8C3;
    color: #283140;
    font-size: 18px;
    padding: 20px;
    margin-top: 100px;
    border-radius: 5px;
    transition: color 0.2s ease;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 768px) {
    .commitment a {
        font-size: 16px;
        padding: 15px;
        margin-top: 50px;
    }
}

.commitment a:hover {
    background: #ffffff;
}


/*-----------------------------CAMPAIGN----------------------------*/

.campaign {
    margin-top: 50px;
    padding: 20px 20px 60px;
    position: relative;
    background-image: url('/assets/image/banner/bnr2.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.campaign::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: inherit;
}

.campaign > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .campaign {
        margin-top: 20px;
        border-radius: 20px;
    }
}

.campaign h2 {
    font-size: 48px;
    font-family: var(--encode-font);
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding-top: 30px;
    padding-bottom: 70px;
    text-shadow: 0 8px 15px var(--text-color);
}

@media (max-width: 768px) {
    .campaign h2 {
        font-size: 22px;
        padding-top: 0;
        padding-bottom: 30px;
    }
}

.campaign-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 988px) {
    .campaign-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .campaign-content {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 35px;
    }
}

.campaign-content .campaign-item {
    border-radius: 10px;
    background: #fff;
    transition: all 0.3s ease;
}

.campaign-content .campaign-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px #fff;
}

.campaign-content .campaign-item .campaign-group {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 768px) {
    .campaign-content .campaign-item .campaign-group {
        gap: 10px;
    }
}

.campaign-content .campaign-item .campaign-group .campaign-title {
    color: #283140;
    font-size: 18px;
    font-weight: 700;
    min-height: 55px;
}

@media (max-width: 768px) {
    .campaign-content .campaign-item .campaign-group .campaign-title {
        font-size: 16px;
        min-height: unset;
    }
}

.campaign-content .campaign-item .campaign-group .campaign-range p {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.campaign-content .campaign-item .campaign-group .campaign-desc {
    min-height: 74px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.campaign-content .campaign-item .campaign-group .campaign-range input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 20px;
    outline: none;
    pointer-events: none;
    background: linear-gradient(
        to right,
        #24754a var(--percent, 0%),
        #e6edf8 var(--percent, 0%)
    );
}


.campaign-content .campaign-item .campaign-group .campaign-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 0;
    opacity: 0;
}

.campaign-content .campaign-item .campaign-group .campaign-range input[type="range"]::-moz-range-thumb {
    width: 0;
    height: 0;
    opacity: 0;
    border: none;
}

.campaign-content .campaign-item .campaign-img img {
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    aspect-ratio: 20 / 15;
    object-fit: cover;
}

.campaign-content .campaign-item .campaign-group a {
    background: #fff;
    color: var(--text-color);
    font-weight: 700;
    font-size: 16px;
    padding: 14px;
    text-align: center;
    border-radius: 5px;
    border: 2px solid var(--text-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.campaign-content .campaign-item .campaign-group a:hover {
    background: var(--text-color);
    color: #fff;
}

@media (max-width: 768px) {
    .product-new{
        padding-left: 20px;
        padding-right: 20px;
    }
}

.product-new-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 45px 30px;
}

@media (max-width: 1300px) {
    .product-new-wrapper {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 1024px) {
    .product-new-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 20px;
    }
}

@media (max-width: 768px) {
    .product-new-wrapper {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
}

.product-new-wrapper .product-img {
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.product-new-wrapper .product-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-new-wrapper .product-img img:hover {
    cursor: pointer;
    transform: scale(1.05);
    overflow: hidden;
}

.product-new-wrapper .product-new-item {
    position: relative;

}

.product-new-wrapper .product-new-item .product-new-info {
    border: 1px solid #e6edf8;
    padding: 20px;
    padding-top: 0;
    border-top: 0;
    border-end-end-radius: 10px;
    border-end-start-radius: 10px;
}

.product-new-wrapper .product-new-item .tag {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.product-new-wrapper .product-new-item .tag span {
    background: var(--text-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
}

.product-new-wrapper .product-new-item .product-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    margin-top: 10px;
    min-height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .product-new-wrapper .product-new-item .product-title {
        font-size: 16px;
        margin-top: 0;
    }
}

.product-new-wrapper .product-new-item .product-desc {
    margin-bottom: 10px;
     display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-new-wrapper .product-new-item .pruduct-status {
    margin-bottom: 10px;
}

.product-new-wrapper .product-new-item .pruduct-status span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.product-new-wrapper .product-new-item .product-price {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    min-height: 43px;
}

@media (max-width: 768px) {
    .product-new-wrapper .product-new-item .product-price span:first-child {
        font-size: 20px;
    }
}

.product-new-wrapper .product-new-item .product-price span:last-child{
    font-size: 12px;
    color: #ffa94d;
}

.product-new-wrapper .product-new-item .product-new-info a {
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid var(--text-color);
}

@media (max-width: 768px) {
    .product-new-wrapper .product-new-item .product-new-info {
        padding: 20px;
    }
}

.product-new-wrapper .product-new-item .product-new-info a:hover {
    background: var(--text-color);
    color: #fff;
}
