
.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.affiliate-card {
    background: #fff;
    border: 1px solid #e9eef5;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(20, 40, 80, 0.04);
    transition: all 0.22s ease;
}

.affiliate-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(20, 40, 80, 0.08);
}

.affiliate-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.affiliate-card p {
    color: #4b5563;
    line-height: 1.7;
}

.affiliate-card ul {
    padding-left: 18px;
    margin: 18px 0;
}

.affiliate-card li {
    margin-bottom: 8px;
    color: #374151;
}

.affiliate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: #0f172a;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.22s ease;
}

.affiliate-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.affiliate-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;

    border: 1px solid #edf2f7;

    display: block;
}

.affiliate-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.22s ease;
}

.affiliate-card:hover .affiliate-image img {
    transform: scale(1.03);
}
