/* Styles for the Sponsors Shortcode */
.sponsors-heading {
    text-align: center;
    margin-bottom: 20px;
}

.sponsors-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: 40px;
}

.sponsor-item {
    text-align: center;
    display: flex;
    flex-direction: column; /* Ensures content stacks vertically */
    align-items: center; /* Centers the image and title */
}

/* Ensure consistent spacing around images */
.sponsor-link {
    display: inline-block;
    margin: 0 auto; /* Center the image within its container */
}

.sponsor-logo {
    width: 200px;
    height: auto;
    display: block; /* Removes inline spacing issues */
    margin: 0 auto;
}

/* Ensure consistent spacing for titles */
.sponsor-title {
    font-size: 1.2em;
    margin-top: 0px; /* Consistent spacing above the title */
}

.sponsor-title-link {
    color: inherit; /* Inherits text color from title */
    text-decoration: none;
}

.sponsor-title-link:hover {
    text-decoration: underline; /* Optional hover effect for better UX */
}

/* Tablet View */
@media screen and (max-width: 768px) {
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile View */
@media screen and (max-width: 480px) {
    .sponsors-grid {
        grid-template-columns: 1fr;
    }
}
