.coupon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: stretch;
}

.coupon {
    height: auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.coupon:hover {
    cursor: pointer;
}

.coupon-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 1;
}

.coupon-media img {
    margin-top: 40px;
    padding: 40px;
    width: 80%;
    height: auto;
    object-fit: cover;
    transition: transform 0.8 cubic-bezier(0.16, 1, 0.3, 1), filter 0.6 ease;
}

.coupon-body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.coupon-text {
    color: rgb(149, 149, 149);
    font-size: 0.95rem;
}

.coupon-footer {
    position: relative;
    color: #fff;
    background: var(--accent-2);
    border-radius: 0 0 12px 12px;
    text-align: center;
    overflow: hidden;
}

.footer-coupon-text {
    padding: 25px;
}

.coupon-footer::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 16px;
    width: 100%;
    height: 12px;
    background: radial-gradient(circle at 6px 6px, white 6px, transparent 6px);
    background-size: 20px 20px;
    background-repeat: repeat-x;
    z-index: 2;
}

.coupon-footer::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -4px;
    width: 100%;
    height: 12px;
    background: radial-gradient(circle at 6px 6px, white 6px, transparent 6px);
    background-size: 20px 20px;
    background-repeat: repeat-x;
    z-index: 2;
}

@media (max-width: 1100px) {
    .coupon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .coupon-grid {
        grid-template-columns: 1fr;
    }
}

.title-n {
    display: flex;
    align-items: center;
}

.pagination-controls {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-info {
    color: #888;
    font-size: 14px;
}

.pagination-nav select,
.pagination-nav button {
    padding: 8px 26px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
}

.pagination-nav button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.dropdown-custom {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    padding: 8px 35px 8px 14px;
    font-size: 14px;
    border: 1px solid #dcdcdc;
    border-radius: 25px;
    background: #fff;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
}

.dropdown-btn::after {
    content: "";
    position: absolute;
    right: 9px;
    top: 50%;
    width: 9px;
    height: 9px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='25' viewBox='0 0 24 24' width='25' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
}

.dropdown-list {
    display: none;
    position: absolute;
    left: 0;
    top: 45px;
    background: #fff;
    list-style: none;
    padding: 8px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 100;
}

.dropdown-list li {
    padding: 8px 14px;
    cursor: pointer;
    white-space: nowrap;
}

.dropdown-list li:hover {
    background: #f5f5f5;
}

