:root {
    --ut-orange: #FF8200; 
    --slate: #333d47;
    --slate-tint: #5c666f;
    --subText: #4f4f4fda;
    --white: #ffffff;
    --background-grey: #e1e1e1;
    --dark-background-grey: #919191;
}

.solutions-series-resource {
    padding: 3rem 0; 
    
}

.solutions-series-resource .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px;
    position: relative;
    justify-items: center;
    border-radius: 10px;
}

.solutions-series-resource .section-header {
    text-align: center;
    width: 100%;
    background-color: var(--slate);
    color: var(--white);
    padding: 30px;
    border-radius: 15px 15px 0 0;
}

.solutions-series-resource .section-title {
    font-size: 2.2rem;
    font-weight: 600;
    padding: 0px;
    margin: 0px;
    color: var(--white);
}

.solutions-series-resource .subtitle {
    font-size: 2.2rem;
    margin: 5px auto;
    line-height: 1.2;
    color: var(--white);
    font-weight: 400;
}

.solutions-series-resource .pub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 50px 40px 80px 40px;
    border: 2px solid var(--ut-orange);
    border-top: none;
    border-radius: 0 0 15px 15px;
    justify-content: center; 
    width: 100%;
} 

/* Dynamically adjust columns and cap width so fewer items don't stretch too wide */
.solutions-series-resource .pub-grid:has(> :last-child:nth-child(1)) {
    grid-template-columns: repeat(1, minmax(0, 280px));
}
.solutions-series-resource .pub-grid:has(> :last-child:nth-child(2)) {
    grid-template-columns: repeat(2, minmax(0, 280px));
}
.solutions-series-resource .pub-grid:has(> :last-child:nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 280px));
}


.solutions-series-resource .pub-link {
    text-decoration: none;
    border-bottom: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin: 0 !important;
}

.solutions-series-resource .pub-link:hover {
    text-decoration: none;
    border-bottom: none;
    transform: scale(1.025);
}

.solutions-series-resource a.pub-link:visited {
    text-decoration: none;
}

.solutions-series-resource .pub-card {
    background-color: #e1e1e1;
    padding-bottom: 5px;
    border-radius: 10px;
    position: relative;
}
.solutions-series-resource .show-1150-1040 {
    display: none;
}

.solutions-series-resource .img-placeholder.default-image {
    background-color: var(--dark-background-grey);
    border-radius: 10px 10px 0 0;
}

.solutions-series-resource .solutions-series-resource-img {
    width: 100%;
    max-height: 275px !important;
    border-radius: 10px 10px 0 0;
    display: block;
    object-position: top center;
    object-fit: cover;
    min-height: 250px;
}

.solutions-series-resource .img-placeholder.default-image img.solutions-series-resource-img {
    object-position: center;
}

.solutions-series-resource .img-placeholder {
    background-color: #919191;
    border-radius: 10px 10px 0 0;
}

.solutions-series-resource .card-meta {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 5px 0; 
    width: 100%;
}

.flex-1 {
    flex: 1;
}

.solutions-series-resource .pub-label {
    color: var(--subText);
    font-size: 1rem;
    font-weight: 400;
    padding: 0 10px;
}

.solutions-series-resource .pub-card h3 {
    padding: 0 10px 5px;
    margin: 5px 0;
    font-size: 1.2rem;
    line-height: normal;
    text-transform: none;
    color: #333d47;
    font-weight: 600;
    text-align: left;
}

.solutions-series-resource .center-btn {
    position: absolute;
    bottom: 0; 
    left: 50%;
    transform: translate(-50%, 50%);
    z-index: 10;
}


.solutions-series-resource .btn-secondary2 {
    background-color: var(--slate);
    color: white;
    padding: 10px 40px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-radius: 10px;
    border: none;
    font-size: 1.2rem;
    display: inline-block; 
    text-decoration: none; 
    text-align: center;
}

.solutions-series-resource .btn-secondary2:hover {
    transform: scale(1.05);
}

.solutions-series-resource a.btn-secondary2:visited {
    color: white !important;
    text-decoration: none;
}

.solutions-series-resource .solutionsRibbon {
    position: absolute;
    top: 0;
    right: 0;
    overflow: hidden;
    width: 80px;
    height: 80px;
    text-align: right;
    z-index: 2;
}

.solutions-series-resource .solutionsRibbon span {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
    line-height: 25px;
    transform: rotate(45deg);
    width: 125px;
    display: block;
    background: #333d47;
    /* box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1); */
    position: absolute;
    top: 15px;
    right: -35px;
}

.solutions-series-resource .solutionsRibbon::before,
.solutions-series-resource .solutionsRibbon::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: none !important;
}

.solutions-series-resource .solutionsRibbon::before {
    top: 0;
    left: 0;
    border-top: 3px solid #333d47;
    border-left: 3px solid #333d47;
}

.solutions-series-resource .solutionsRibbon::after {
    bottom: 0;
    right: 0;
    border-bottom: 3px solid #333d47;
    border-right: 3px solid #333d47;
}

@media screen and (min-width: 1600px), (max-width: 2300px) { }

@media screen and (max-width: 2100px) { }

@media screen and (min-width: 1801px), (max-width: 2099px) { }

@media screen and (max-width: 1800px) { }

@media screen and (max-width: 1650px) { }

@media screen and (max-width: 1500px) { }

@media screen and (max-width: 1400px) {
    .solutions-series-resource .container {
        width: 90%;
    }

    .solutions-series-resource .pub-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 300px));
        gap: 20px;
        padding: 50px 10px 80px 10px;
        width: 100%;
        justify-content: center;
    }

    .solutions-series-resource .show-1150-1040 {
        display: block;
    }
}

@media screen and (max-width: 1150px) { }

@media (max-width: 1087px) {
    .solutions-series-resource .show-1150-1040 {
        display: none;
    }
}

@media (max-width: 950px) {
    .solutions-series-resource .pub-grid { gap: 20px; }
    .solutions-series-resource .pub-grid,
    .solutions-series-resource .pub-grid:has(> :last-child:nth-child(-n+3)) {
        grid-template-columns: repeat(auto-fit, minmax(0, 250px));
    }
}

@media (max-width: 760px) {
    .solutions-series-resource .pub-grid { 
        padding: 30px 10px 50px 10px;
        gap: 10px; }
}

@media (max-width: 550px) { 
    .solutions-series-resource .section-title {
        font-size: 1.8rem;
    }
    .solutions-series-resource .subtitle {
        font-size: 1.2rem;
    }
    .solutions-series-resource .btn-secondary2 {
        padding: 10px 10px;
    }
}

@media (max-width: 399px) {
    .solutions-series-resource .section-title {
        font-size: 1.4rem;
    }
    .solutions-series-resource .subtitle {
        font-size: 1rem;
    }
    .solutions-series-resource .btn-secondary2 {
        font-size: 1rem;
    }
}

.solutions-series-resource a.pub-link::after {
    content: "" !important;
}