﻿/* new */
.promotion-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
}

.promotion-card-item {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 10px;
    border: 1px solid #f2f2f2 !important;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promotion-card-item h6 {
    color: #0d233e !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promotion-card-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.promotion-card-item .promotion-img {
    position: relative;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.promotion-card-item .promotion-img img {
    object-fit: contain;
    height: 170px;
    width: 100%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px 5px 0px 0px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.promotion-card-item .btn-coupon {
    position: relative;
    margin: 3px 0px;
    font-size: small;
    border-radius: 5px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    height: 50px;
}

.promotion-card-item .btn-coupon input {
    font-weight: 600;
    cursor: pointer;
    margin: 55px 0px 10px 0px;
    width: 100%;
    font-family: "Arial", sans-serif;
    bottom: 10px;
    color: var(--theme-primary);
    border-radius: 5px;
    border: 1px solid var(--theme-primary);
}

.promotion-card-item .btn-coupon i {
    position: absolute;
    font-size: 14px;
    bottom: -29px;
    right: 10px;
    cursor: pointer;
}

.btn-coupon {
    bottom: 50px;
    position: fixed;
    margin: 3px 0px;
    font-size: small;
    border-radius: 5px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    height: 50px;
}

.btn-coupon input {
    font-weight: 600;
    cursor: pointer;
    margin: 10px 0px;
    width: 100%;
    color: var(--theme-primary);
    border-radius: 5px;
    border: 3px solid #e0e0e0;
    transition: all 0.3s ease;
}

.btn-coupon input:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--theme-primary);
}

.btn-coupon i {
    position: absolute;
    font-size: 14px;
    bottom: 15px;
    right: 10px;
    cursor: pointer;
}

.promotion-message-copy {
    position: absolute;
    display: none;
    padding: 0px 10px;
    background-color: #1abc9c;
    color: white;
    border-radius: 3px;
    font-size: 14px;
    top: -40px;
    left: 40%;
    text-transform: lowercase;
    z-index: 1000;
    white-space: nowrap;
}

.promotion-message-copy::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #1abc9c transparent transparent transparent;
}

.promotion-message-copy.show {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promotion-priode {
    display: flex;
    flex-direction: column;
}

.promotion-priode span {
    color: #5d646d;
}

.promotion-priode h3 {
    font-size: 15px;
    font-weight: 500;
    color: #0d233e;
}

.promotion-card {
    align-items: center;
    padding: 5px 5px;
    margin: 10px 0px;
    border-radius: 10px;
    border: 1px solid rgba(128, 137, 150, 0.2);
    background-color: #fff;
    box-shadow: 0 0 20px rgba(8, 21, 66, 0.05);
}

.promotion-card .promotion-details {
    margin: 10px 25px;
}

.promotion-card .img-promotion {
    width: 100%;
    margin: 10px 230px 25px 230px;
    justify-content: center;
    align-items: center;
    text-align: center;
    display: flex;
}

.promotion-card .img-promotion img {
    width: 100%;
}

.promotion-card .promotion-details .title-promo {
    width: 100%;
    height: auto;
    margin: 25px 0px;
    text-align: left;
}

.promotion-card .promotion-details .title-promo h3 {
    margin: 5px 0px;
    padding-top: 10px;
    font-size: 35px;
    display: block;
    font-weight: bold;
}

.promotion-card .promotion-details .title-promo h3 span {
    background-color: var(--theme-primary);
}

.promotion-card .promotion-details .title-promo h4 {
    margin: 5px 0px;
    font-size: 25px;
    display: block;
    font-weight: bold;
}

.promotion-card .promotion-details .title-promo h5 {
    margin: 5px 0px;
    font-size: 20px;
    display: block;
    font-weight: bold;
}

.promotion-card .promotion-details .title-promo h6 {
    margin: 5px 0px;
    font-size: 18px;
    display: block;
    font-weight: bold;
}

.promotion-card .promotion-details .title-promo p {
    color: #333333;
    margin: 5px 0px;
    font-size: medium;
    display: block;
}

.promotion-card .promotion-details .title-promo ul li {
    color: #333333;
    font-size: medium;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.promotion-card .promotion-details .voucher {
    width: 100%;
    /* padding: 40px 240px; */
}

.promotion-card .promotion-details .voucher .title-kode-voucher {
    width: 100%;
    height: auto;
    font-size: larger;
    color: #333333;
    font-weight: bold;
}

.promotion-card .promotion-details .bgkodevoucher {
    width: 100%;
    background-color: #ebebeb;
    justify-content: center;
    align-items: center;
    text-align: center;
    display: flex;
}

.promotion-card .promotion-details .bgkodevoucher .label-voucher {
    font-size: larger;
    padding: 15px 10px;
    text-align: left;
    justify-content: left;
    align-items: center;
    display: flex;
    font-weight: 500;
}

.promotion-card .promotion-details .bgkodevoucher i {
    margin-left: 35px;
}

.promotion-card .promotion-details .bgkodevoucher i:hover {
    color: var(--theme-primary);
}

.promotion-card .promotion-details .bgkodevoucher img {
    margin-left: 35px;
}

.voucher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    color: gray;
    border: none;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    z-index: 9999999999;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.left-arrow {
    left: -20px;
}

.right-arrow {
    right: -20px;
}

.voucher:active {
    background-color: var(--theme-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.promotion-details-page {
    display: flex;
    flex-direction: column;
    padding: 20px 60px 60px 60px;
    align-items: start;
    margin: 40px 0px;
    border-radius: 10px;
    border: 1px solid rgba(128, 137, 150, 0.2);
    background-color: #fff;
    box-shadow: 0 0 20px rgba(8, 21, 66, 0.05);
    color: #333333;
    line-height: 23px;
}

.promotion-details-page h2 {
    font-size: 35px;
    font-weight: bold;
}

.promotion-detail-page-image {
    border-radius: 5px;
    width: 80%;
    height: 40%;
    margin: 20px 0px;
}

.promotion-detail-page-list h3 {
    margin-bottom: 0px;
    font-size: 15px;
    width: 100%;
}

.promotion-detail-page-list ul {
    list-style-type: disc;
}

.promotion-detail-page-voucher-code-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 30px 0px 20px 0px;
}

.promotion-detail-page-voucher-code-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
}

.promotion-detail-page-voucher-code {
    cursor: pointer;
    margin-top: 10px;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    border-radius: 5px;
    background-color: #ebebeb;
    font-weight: bold;
    width: 100%;
}

.promotion-detail-page-voucher-code input {
    width: 80%;
    border: none;
    background-color: transparent;
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    font-size: 20px;
    color: var(--theme-primary);
}

.promotion-detail-page-voucher-code:hover i {
    color: var(--theme-primary);
}

@media only screen and (max-width: 1024px) {
    .promotion-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Responsive styling */
@media (max-width: 768px) {
    .voucher {
        width: 35px;
        height: 35px;
    }

    .promotion-details-page {
        padding: 10px 20px;
        margin-top: 10px;
    }

    .promotion-detail-page-image {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .promotion-row {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 15px;
    }

    .promotion-details-page h2 {
        font-size: 25px;
    }

    .voucher {
        width: 40px;
        height: 40px;
    }
}

/* End Page Promotion */
