:root {
    --company-red: #ad2b43;
}
#resource-page {
    font-family: Rubik;
}
.w-container {
    max-width: 940px;
}
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.card {
    flex: 0 0 32%;
    height: 37vh;
    box-sizing: border-box;
    max-height: 2000px;
    max-width: 2000px;
    min-width: 500px;
    padding: 1vh;
    margin: 0.9vh;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}
.card-img-top-container {
    width: 100%;
    height: 50%;
    position: relative;
    overflow: hidden;
}

.card-img-top {
    min-width: 100%;
    min-height: 100%;
}
.category-tag {
    position: absolute;
    color: white;
    font-weight: 300;
    font-size: 1.4vh;
    right: 0;
    margin: 1vh;
    padding-left: 2vh;
    padding-right: 2vh;
    background-color: rgba(173, 43, 67, 0.85);
    border-radius: 20px;
}
.card-body {
    padding: 5px;
    width: 100%;
    height: 50%;
    position: relative;
    overflow: clip;
}
.card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}
.card-info {
    position: absolute;
    padding-right: 3px;
    bottom: 0;
    width: 100%;
    height: 3vh;
    padding-right: 1vh;
}
.card-author {
    font-size: 1.2vh;
    line-height: 1.2;
    font-weight: 300;
    float: left;
}
.card-date {
    font-size: 1.2vh;
    line-height: 1.2;
    font-weight: 700;
    color: var(--company-red);
    float: right;
    min-height: 48px;
}
.carousel-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}
.carousel-button {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    margin: 10px;
    border: none;
    color: var(--company-red);
    padding: 10px;
    cursor: pointer;
    font-size: 4vh;
}
.section-header {
    display: flex;
    justify-content: space-between;
}
.dashed-line {
    border-style: dotted;
}
.see-button-container {
    background-color: gray;
    position: relative;
    text-align: center;
}
#big-recent {
    display: none;
}
#small-cards {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 10px;
    margin-top: 11px;
}
.dashed-line-split {
    display: none;
}
#recents-title:before {
    content: "Recent Work";
}
.recent-small-desc {
    display: none;
}

@media screen and (min-width: 1000px) {
    .dashed-line-split {
        display: block;
    }
    #recents-title::before {
        content: "Resource Hub - Recent Work";
    }
    .recent-small-desc {
        display: grid;
    }
    #see-publications-button::before {
        content: "See All Publications";
    }
}
@media screen and (min-width: 500px) {
    #recents_block {
        display: grid;
        grid-template-columns: 50% 50%;
        gap: 2rem;
        margin-bottom: 3vh;
    }

    #big-recent {
        display: block;
    }
    .card-title {
        font-size: 24px;
        line-height: 1.4;
        font-weight: 600;
    }
}
@media screen and (max-width: 500px) {
    .recents-button {
        margin-top: 2.6rem;
    }
}
.see-more-button {
    float: right;
    margin-top: 1.75%;
    border-radius: 30px;
    margin-left: 20px;
    border-color: var(--company-red);
    border-width: 2px;
    border-style: solid;
    font-family: Rubik;
    background-color: #f7f7f7;
    color: var(--company-red);
    font-weight: 300;
}
#see-publications-button::before {
    content: "Publications";
}
