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

body {
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
}

.solutions-single-resource.singleResource-container {
    width: 100%;
    border-radius: 8px;
    box-sizing: border-box;
}

.solutions-single-resource.singleResource-container a.pub-link {
    text-decoration: none !important;
    border-bottom: none !important;
    color: inherit;
    display: block;
    margin: 0 !important;
}

.solutions-single-resource.singleResource-container a.pub-link:hover {
    text-decoration: none;
    border-bottom: none;
}

.solutions-single-resource .pub-card {
    background: #ffffff;
    border: 1px solid #c7c7c7;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-sizing: border-box;
    padding: 0;
}


.h-100 { height: 100%; }

.solutions-single-resource .img-placeholder {
    background-color: var(--background-grey);
    /* border-radius: 10px 10px 0 0; */
    overflow: hidden;
    flex-shrink: 0;
}

.solutions-single-resource .img-placeholder.default-image {
    background-color: var(--dark-background-grey);
}


.solutions-single-resource .solutions-single-resource-img {
    width: 100%;
    height: auto !important;
    object-fit: cover;
    object-position: top center;
    display: block;
    min-height: 225px;
}


.solutions-single-resource.singleResource-container.layout2 .img-placeholder.default-image .solutions-single-resource-img {
    min-height: 250px;

}

.solutions-single-resource .img-placeholder.default-image .solutions-single-resource-img {
   object-fit: contain;
   object-position: center;
}

.solutions-single-resource .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    width: 100%;
    box-sizing: border-box;
}

.solutions-single-resource .pub-label {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--subText);
    white-space: nowrap;
    padding: 0;
}

.flex-1 { flex: 1; }

.solutions-single-resource .pub-content .pub-title {
    padding: 0 10px;
    margin: 5px 0;
    font-size: 1rem;
    line-height: normal;
    text-transform: none;
    color: var(--slate);
    font-weight: 600;
    text-align: left;
}

.solutions-single-resource.singleResource-container.layout1 {
    min-width: 560px;
    max-width: 100%;
}

.solutions-single-resource.singleResource-container.layout1 .card-meta {
    display: flex;
    justify-content: unset;
    align-items: center;
    padding: 5px 10px;
    width: 100%;
    box-sizing: border-box;
}

.solutions-single-resource .pub-card.pub-card-horizontal {
    flex-direction: column;
}

.solutions-single-resource .pub-top-row {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
}

.solutions-single-resource .pub-top-row .img-placeholder {
    width: 300px;
    min-width: 280px;
    max-width: 360px;
    /* border-radius: 10px 0 0 0; */
    align-self: stretch;
    /* height: 250px; */
}

.solutions-single-resource .pub-top-row .img-placeholder.default-image {
    height: 250px;
}

.solutions-single-resource .pub-top-row .img-placeholder .solutions-single-resource-img {
    width: 100%;
    /* max-height: 275px; */
    height: 100% !important;
    /* object-position: top center; */
    border-radius: 0;
}

.solutions-single-resource .pub-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    /* background-color: #e1e1e1; */
}

.solutions-single-resource.singleResource-container.layout1 .pub-link-button {
    background-color: var(--slate);
    color: white;
    padding: 5px 15px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    align-self: flex-start;
    margin: auto 10px 10px;
}

.solutions-single-resource .pub-authors {
    padding: 0 12px;
    margin: 4px 0;
    font-size: 1rem;
    color: var(--subText);
    line-height: 1.4;
}

.solutions-single-resource .pub-authors b {
    color: var(--slate);
}

.solutions-single-resource .pub-abstract-row {
    padding: 8px 12px;
    /* background-color: #e1e1e1; */
    border-top: 1px solid var(--border);
    box-sizing: border-box;
}

.solutions-single-resource .pub-abstract {
    margin: 0;
    font-size: 1rem;
    color: var(--subText);
    line-height: 1.5;
}

.solutions-single-resource .pub-abstract b {
    color: var(--slate);
}

.solutions-single-resource.singleResource-container.layout2 {
    min-width: 200px;
    max-width: 325px;
}


.solutions-single-resource.singleResource-container.layout2 .pub-card {
    flex-direction: column;
    border-radius: 10px;
}

.solutions-single-resource.singleResource-container.layout2 .img-placeholder {
    width: 100%;
    border-radius: 10px 10px 0 0;
}

.solutions-single-resource.singleResource-container.layout2 .solutions-single-resource-img {
    width: 100%;
    /* max-height: 220px; */
    /* object-fit: cover; */
    /* object-position: top center; */
    border-radius: 0;
}

.solutions-single-resource.singleResource-container.layout2 .solutions-single-resource-img.oldimage {
    object-position: top center;
    max-height: 225px !important;
    object-fit: cover;
}

.solutions-single-resource.singleResource-container.layout2 .pub-content {
    padding: 0;
}

.solutions-single-resource .card-singleResource.res-all {
    position: relative;
    padding: 3px;
    border-radius: 4px;
    box-sizing: border-box;
    border: 1px solid #c3c4c7;
    background: #4b4b4b;
    transition: transform 0.3s ease-in-out;
}

.solutions-single-resource .card-singleResource.res-all:hover {
    transform: scale(1.02);
}

.solutions-single-resource .card-singleResource.res-all img {
    width: 100%;
    border-radius: 4px 4px 0 0;
}

.solutions-single-resource .card-singleResource.res-all .resource-details {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background-color: #e1e1e1;
    margin-bottom: 2px;
    border-radius: 2px;
}

.solutions-single-resource .card-singleResource.res-all .resource-type {
    padding: 0 3px;
    font-size: 1rem;
    color: #ffffff;
}

.solutions-single-resource .card-singleResource.res-all .card-body {
    padding: 0.5rem;
}

.solutions-single-resource .card-singleResource.res-all .card-title {
    color: #ffffff;
    margin-bottom: 5px;
    line-height: 1.2rem;
    font-size: 1rem;
}


/* Force layout2 card to center on narrow viewports */
@media screen and (max-width: 782px) {
    .solutions-single-resource.singleResource-container.layout2 {
        margin: 0 auto;
        width: 250px !important;
    }

    /* Layout 1 drops the fixed min-width so it can stack */
    .solutions-single-resource.singleResource-container.layout1 {
        min-width: unset;
        width: 100% !important;
    }

    .solutions-single-resource .pub-top-row {
        flex-direction: column;
    }

    .solutions-single-resource .pub-top-row .img-placeholder {
        width: 100%;
        max-width: 100%;
        border-radius: 10px 10px 0 0;
    }

    .solutions-single-resource .pub-top-row .img-placeholder .solutions-single-resource-img {
        width: 100%;
        max-height: 220px;
    }
}

@media screen and (max-width: 500px) {
    .solutions-single-resource.singleResource-container.layout2 {
        width: 100% !important;
        max-width: 100%;
    }
}


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


:not(.kt-inside-inner-col) > .solutions-single-resource.singleResource-container {
    margin-top: 20px;
    margin-bottom: 20px;
}
