/* ============================================================
   SPONSORED
   ============================================================ */

.sponsored-page {
    width: 100%;

    padding: 24px 0 60px;
}

.sponsored-container {
    width: 100%;
}


/* ============================================================
   LIST
   ============================================================ */

.sponsored-list {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;

    width: 100%;
}


/* ============================================================
   CARD
   ============================================================ */

.sponsored-card {
    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #fff;

    border: 1px solid #eee8eb;

    border-radius: 14px;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.sponsored-card:hover {
    transform: translateY(-2px);

    border-color: #e9dfe3;

    box-shadow:
        0 8px 24px rgba(32, 33, 36, .07);
}


/* ============================================================
   IMAGE
   ============================================================ */

.sponsored-card-image {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #f5f5f6;

    text-decoration: none;
}

.sponsored-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .3s ease;
}

.sponsored-card:hover
.sponsored-card-image img {
    transform: scale(1.025);
}


/* ============================================================
   LABEL
   ============================================================ */

.sponsored-card-label {
    position: absolute;

    top: 10px;
    left: 10px;

    padding: 4px 9px;

    border-radius: 6px;

    background:
        rgba(32, 33, 36, .72);

    color: #fff;

    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
}


/* ============================================================
   BODY
   ============================================================ */

.sponsored-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;

    min-width: 0;

    padding: 16px 17px 17px;
}


/* ============================================================
   TITLE
   1 DÒNG + ELLIPSIS
   ============================================================ */

.sponsored-card-title {
    display: block;

    width: 100%;

    margin: 0;

    overflow: hidden;

    color: var(--ink);

    font-size: 16px;
    line-height: 1.45;
    font-weight: 650;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/* ============================================================
   DESCRIPTION
   2 DÒNG + ELLIPSIS
   ============================================================ */

.sponsored-card-excerpt {
    display: -webkit-box;

    width: 100%;

    margin: 8px 0 0;

    overflow: hidden;

    color: #70737a;

    font-size: 13px;
    line-height: 1.6;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* ============================================================
   CARD FOOTER
   ============================================================ */

.sponsored-card-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: auto;

    padding-top: 15px;
}

.sponsored-card-date {
    color: #9a9da3;

    font-size: 12px;
}

.sponsored-card-link {
    flex-shrink: 0;

    color: var(--pink);

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
}

.sponsored-card-link:hover {
    color: var(--pink2);
}


/* ============================================================
   LOADING
   ============================================================ */

.sponsored-loading {
    min-height: 90px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #858990;

    font-size: 13px;
}

.sponsored-loading::before {
    content: "";

    width: 22px;
    height: 22px;

    margin-right: 10px;

    border: 3px solid #f3d9e3;

    border-top-color: var(--pink);

    border-radius: 50%;

    animation:
        sponsoredSpinner .7s linear infinite;
}

@keyframes sponsoredSpinner {

    to {
        transform: rotate(360deg);
    }

}


/* ============================================================
   EMPTY
   ============================================================ */

.sponsored-empty {
    width: 100%;

    padding: 40px 20px;

    text-align: center;

    color: #70737a;

    font-size: 14px;

    background: #fff;

    border: 1px solid #eee8eb;

    border-radius: 12px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {

    .sponsored-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

}


@media (max-width: 800px) {

    .sponsored-page {
        padding: 18px 0 40px;
    }

    .sponsored-list {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 16px;
    }

    .sponsored-card-body {
        padding: 14px 15px 15px;
    }

}


@media (max-width: 480px) {

    .sponsored-page {
        padding-top: 14px;
    }

}