@media (max-width: 768px) {
    .image.left {
        margin: 0 0 2rem 0;
        max-width: none;
    }

    .image.right {
        margin: 0 0 2rem 0;
        max-width: none;
    }
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px;
}

.grid-container > .dog-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    justify-self: center;
}

.dog-card {
    background: white;
    padding: 16px 16px 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.img-container {
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f8f8f8;
    position: relative;
}

.img-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.03);
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.dog-name {
    text-align: center;
    font-size: 18px;
    color: #333;
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    transition: transform 0.3s ease;
}

.dog-card a {
    border: none;
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Hover Effects */
.dog-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.dog-card:hover img {
    transform: scale(1.05);
}

.dog-card:hover .dog-name {
    transform: translateY(-3px);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 8px;
        max-width: 400px;
    }

    .grid-container > .dog-card:last-child:nth-child(odd) {
        max-width: none;
    }

    .dog-card {
        padding: 12px 12px 36px;
    }

    .dog-name {
        font-size: 16px;
        bottom: 12px;
    }
}

/* Medium screens */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-container {
        gap: 20px;
        padding: 16px;
        max-width: 800px;
    }
}

/* Subtle film grain texture */
.img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.partners-section {
    max-width: 1200px;
    margin: 0 auto;
}

.partner-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.8;
}

.partner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.partner-card.reverse {
    grid-template-columns: 1fr 300px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.partner-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-content p {
    font-size: 1.1rem;
    color: #4b5563;
    margin: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {

    .partner-card,
    .partner-card.reverse {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .partner-logo {
        padding: 1rem;
        order: 1;
    }

    .partner-content {
        order: 2;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.partner-card {
    animation: fadeInUp 0.6s ease forwards;
}

.partner-card:nth-child(2) {
    animation-delay: 0.2s;
}

.partner-card:nth-child(3) {
    animation-delay: 0.4s;
}

.geloren-products {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
}

.geloren-products img {
    max-width: 45%;
    min-width: 200px;
    height: auto;
    border-radius: 8px;
    flex: 1 1 200px;
}

@media (max-width: 768px) {
    .geloren-products {
        flex-direction: column;
    }

    .geloren-products img {
        max-width: 100%;
    }
}