.contest-card {
    position: relative;
    color: inherit;
    display: block;
    text-decoration: none;
}

.contest-card:hover {
    color: inherit;
    text-decoration: none;
}

.contest-card img {
    width: 100%;
    min-height: 500px;
    object-fit: cover;
    border-radius: 1.5rem;
}

.contest-card .finished-badge {
    width: max-content;
    position: absolute;
    border-radius: 0.5rem;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #DD0417;
    color: var(--white-1);
    padding: 0.5rem 1rem;
}

.contest-card .content-wrapper {
    width: 100%;
    position: absolute;
    bottom: 1rem;
    padding: 1rem .75rem;
}

.contest-card .content-wrapper .content {
    background: var(--white-1);
    padding: 1rem;
    border: 1px solid #E1EFFD;
    box-shadow: 0px 3px 8px 0px #191E220A;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contest-card .content-wrapper .content .title {
    background: var(--wb-theme-secondary);
    padding: 1rem .75rem;
    border-radius: 0.75rem;
}

.contest-card .content-wrapper .content .title span {
    color: white;
    font-weight: bold;
    line-height: 1.7 !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.contest-card .content-wrapper .date {
    color: var(--wb-theme-text);
    font-size: 12px !important;
    font-weight: 600;
}

.contest-card .content-wrapper .btn.outline {
    width: 100%;
    margin-top: 0.5rem;
}

.contest-details-page {
    color: var(--wb-theme-text);
}

.contest-details-layout {
    row-gap: 1.5rem;
}

.contest-details-content,
.contest-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contest-details-cover {
    width: 100%;
    aspect-ratio: 780 / 354;
    min-height: 16rem;
    object-fit: cover;
    border-radius: 1.5rem;
    display: block;
}

.contest-details-body {
    color: #606060;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.95;
}

.contest-details-body p:last-child {
    margin-bottom: 0;
}

.contest-gallery-section,
.contest-subscribe-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contest-gallery-section h2,
.contest-subscribe-card h2,
.related-contests-card h2,
.contest-info-card h2 {
    color: var(--wb-theme-text);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.7;
    margin: 0;
}

.contest-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.contest-gallery-item {
    border: 2px solid color-mix(in srgb, var(--wb-theme-primary) 28%, transparent);
    border-radius: 1rem;
    min-height: 12.5rem;
    overflow: hidden;
    display: block;
    background: var(--white-1);
}

.contest-gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 12.5rem;
    object-fit: cover;
    display: block;
}

.contest-subscribe-card,
.contest-info-card,
.related-contests-card {
    background: var(--white-1);
    border: 1px solid #EAEAEA;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px 0 #191E2208;
    padding: 1rem;
}

.contest-subscribe-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.contest-subscribe-head p {
    color: #606060;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.contest-question {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contest-question h3 {
    color: var(--wb-theme-text);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.7;
    margin: 0;
}

.contest-question h3 i {
    color: var(--wb-theme-primary);
}

.contest-choices {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contest-choice {
    background: var(--white-1);
    border: 1px solid #EAEAEA;
    border-radius: 0.75rem;
    box-shadow: 0 3px 4px 0 #191E220A;
    color: #606060;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
    line-height: 1.7;
    padding: 0.5rem 0.75rem;
}

.contest-choice input {
    order: -1;
}

.contest-choice span {
    min-width: 0;
    flex: 1 1 auto;
    text-align: start;
}

.contest-choice input {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    accent-color: var(--wb-theme-primary);
}

.contest-subscribe-button {
    width: 100%;
    min-height: 2.5rem;
    border-color: var(--wb-theme-primary);
    background: var(--wb-theme-primary);
    font-weight: 800;
}

.contest-answer-error {
    color: #dd0417;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.7;
}

.contest-answer-success-modal .modal-dialog {
    max-width: 600px;
}

.contest-answer-success-modal .modal-content {
    background: var(--white-1);
    border: 1px solid #eaeaea;
    border-radius: 1.5rem;
    box-shadow: 0 2px 11px rgb(0 0 0 / 2%);
    max-height: none;
    overflow: visible;
    padding: 2rem;
}

.contest-answer-success-modal .modal-header {
    border: 0;
    height: 2rem;
    justify-content: flex-start;
    padding: 0;
}

.contest-answer-modal-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--wb-theme-primary);
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    padding: 0;
    width: 2rem;
}

.contest-answer-modal-close i {
    align-items: center;
    border: 3px solid currentColor;
    border-radius: 50%;
    display: inline-flex;
    font-size: 1rem;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.contest-answer-success-modal .modal-body {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-height: none;
    overflow-y: hidden !important;
    padding: 2rem 0 0;
    text-align: center;
}

.contest-answer-success-icon {
    align-items: center;
    border: 4px solid #10b864;
    border-left-color: transparent;
    border-radius: 50%;
    color: var(--white-1);
    display: flex;
    height: 11.5rem;
    justify-content: center;
    position: relative;
    width: 11.5rem;
}

.contest-answer-success-icon span {
    background: #10b864;
    border-radius: 50%;
    height: 7.4rem;
    width: 7.4rem;
}

.contest-answer-success-icon i {
    font-size: 3.9rem;
    position: absolute;
}

.contest-answer-success-modal h2 {
    color: var(--wb-theme-text);
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.5;
    margin: 0;
    max-width: 31rem;
}

.contest-info-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contest-info-card dl {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
}

.contest-info-card dl > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.contest-info-card dt,
.contest-info-card dd {
    margin: 0;
}

.contest-info-card dt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wb-theme-text);
    font-weight: 800;
}

.contest-info-card dt svg,
.related-contest-content span svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.contest-info-card dt svg path {
    fill: var(--wb-theme-primary);
   
}

.contest-info-card dd {
    color: #6B7280;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: end;
}

.contest-status-alert {
    align-items: center;
    border-radius: 0.5rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    line-height: 1.8;
    min-height: 3.5rem;
    padding: 0.75rem 1rem;
    text-align: center;
    width: 100%;
}

.contest-status-alert i {
    flex: 0 0 auto;
}

.contest-status-alert span {
    font-size: 0.875rem;
    font-weight: 700;
}

.contest-status-alert-expired {
    background: #fff2f2;
    border: 1px solid #ff9ca3;
    color: #dd0417;
}

.contest-status-alert-winner {
    background: #eafff3;
    border: 1px solid #9fe7bd;
    color: #008f4d;
}

.related-contests-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-contests-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.related-contest-item {
    min-height: 8.5rem;
    border: 1px solid #EAEAEA;
    border-radius: 0.75rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: 9.25rem minmax(0, 1fr);
    background: var(--white-1);
}

.related-contest-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-contest-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.related-contest-content h3 {
    margin: 0;
    min-height: 2.5rem;
    padding: 0.25rem 1rem;
    background: var(--wb-theme-secondary);
    color: white;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
}

.related-contest-content span {
    margin: 0.5rem 1rem 0;
    color: #727272;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    line-height: 1.7;
}

.related-contest-content span svg {
    width: 16px;
    height: 16px;
}

.related-contest-content span svg path {
    stroke: #727272;
}

.related-contest-content .btn {
    margin: auto 1rem 0.75rem;
    width: calc(100% - 2rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    font-weight: 600;
}

.related-contest-content .btn-primary-outline {
    border-color: var(--wb-theme-primary);
    color: var(--wb-theme-primary);
}

.related-contest-content .btn-primary-outline:hover {
    border-color: var(--wb-theme-primary);
    background: var(--wb-theme-primary);
    color: var(--white-1);
}

.contest-empty-state {
    color: #6B7280;
    background: var(--white-1);
    border: 1px dashed #D5DCE1;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .contest-details-cover {
        min-height: 13rem;
    }

    .contest-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .contest-gallery-grid,
    .related-contest-item {
        grid-template-columns: 1fr;
    }

    .related-contest-item img {
        height: 12rem;
        order: -1;
    }

    .contest-info-card dl > div {
        align-items: flex-start;
        flex-direction: column;
    }

    .contest-info-card dd {
        text-align: start;
    }
}
