/* YE Sponsored Grid - İzole 3x2 Responsive Kart Tasarımı */
.ye-sg-section {
    margin: 28px 0;
    width: 100%;
    box-sizing: border-box;
}

.ye-sg-section *,
.ye-sg-section *::before,
.ye-sg-section *::after {
    box-sizing: border-box;
}

.ye-sg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ye-sg-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ye-sg-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

.ye-sg-card--sponsored {
    border: 2px solid var(--ye-sg-border-color, #00A651);
}

.ye-sg-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.ye-sg-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
    overflow: hidden;
}

.ye-sg-card--sponsored .ye-sg-card__media {
    border-bottom: 2px solid var(--ye-sg-border-color, #00A651);
}

.ye-sg-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ye-sg-card__placeholder {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
}

.ye-sg-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--ye-sg-border-color, #00A651);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 2px;
    letter-spacing: 0.02em;
}

.ye-sg-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.ye-sg-card__title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.32;
    color: #111827;
}

.ye-sg-card__excerpt {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.48;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ye-sg-card__logo {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.ye-sg-card__logo img {
    max-height: 30px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 900px) {
    .ye-sg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .ye-sg-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
