﻿/* Gedian Sports: isolated, compact homepage advertisement card */
.gedian-landing .gs-ad-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 10px;
    gap: 7px;
    border: 1px solid #dce7d7;
    border-radius: 12px;
    background: #fff;
    color: #27382b;
    text-align: right;
    box-shadow: 0 2px 12px #203b2109;
}

.gs-ad-card .gs-ad-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

    .gs-ad-card .gs-ad-heading span {
        font-size: 12px;
        font-weight: 800;
        color: #466f2d;
    }

    .gs-ad-card .gs-ad-heading small {
        font-size: 9.5px;
        color: #849181;
    }

.gs-ad-card .gs-ad-stack {
    min-width: 0;
}

.gs-ad-card .gs-ad-item {
    display: none;
    min-width: 0;
}

    .gs-ad-card .gs-ad-item.is-active {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

.gs-ad-card .gs-ad-title {
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    font-weight: 800;
    color: #203c25;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gs-ad-card .gs-ad-photos {
    position: relative;
    height: 145px;
    width: 100%;
    border-radius: 9px;
    overflow: hidden;
    background: #edf5e8;
}

.gs-ad-card .gs-ad-photo {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

    .gs-ad-card .gs-ad-photo.is-active {
        display: block;
    }

.gs-ad-card .gs-ad-photo-empty {
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 11px;
    color: #668060;
}

.gs-ad-card .gs-ad-detail {
    display: inline-flex;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    padding: 5px 10px;
    border-radius: 7px;
    background: #5b8c3b;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

    .gs-ad-card .gs-ad-detail:hover {
        background: #466f2d;
    }

.gs-ad-card .gs-ad-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .gs-ad-card .gs-ad-controls button {
        width: 25px;
        height: 25px;
        border: 1px solid #d7e3d2;
        border-radius: 7px;
        background: #f8fbf6;
        color: #466f2d;
        cursor: pointer;
        font-size: 11px;
    }

        .gs-ad-card .gs-ad-controls button:hover {
            background: #e9f3e4;
        }

    .gs-ad-card .gs-ad-controls [data-gs-ad-position] {
        font-size: 10px;
        color: #6b786c;
        min-width: 35px;
        text-align: center;
    }

.gs-ad-card .gs-ad-empty {
    text-align: center;
    padding: 12px 5px;
    font-size: 11px;
    color: #708070;
}

@media(max-width:600px) {
    .gs-ad-card .gs-ad-photos {
        height: 132px;
    }
}
