:root {   
    --wsp_gold: #a8925f;
	--wsp_primary-blue: #0072e7;
	--wsp_primary-blue-darken: #005bb5;
	--wsp_subtle-grey-bg: #ececee;
}

.wsp-search-box {
    display: flex;
    margin: 40px auto;
    overflow: hidden;
    width:100%;
    max-width: 600px;
}

.wsp-search-box--input {
    all: unset;
    flex:1;
    border:1px solid #000000;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    border-right:0;
    padding:10px;
    background-color: #fff;
    text-align: center;
}

.wsp-search-box--input:focus {
    border-color: #000000;
    background-color: #fff;
}

.wsp-search-box--btn {
    all: unset;
    background-color: var(--wsp_primary-blue);
    color:#fff;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    font-weight: 800;
    padding:10px 50px;
    cursor: pointer;
}

.wsp-search-box--btn:hover {
    background-color: var(--wsp_primary-blue-darken);
}

@media (max-width: 650px) {
    .wsp-search-box--btn {
        padding:10px 25px;
    }
}


/* Category Stuff */

.wsp-cat-title__categories {
    display:none;
}

@media (max-width: 850px) {
    .wsp-cat-title__categories {
        display:block;
        text-align: center;
        font-size: 1.2rem;
        margin-bottom:0;
    }
}

.wsp-categories-horizontal-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 40px auto 20px auto;
    overflow: hidden;
    width:100%;
    gap:20px;
}

@media (max-width: 850px) {
    .wsp-categories-horizontal-list {
        border-bottom:1px solid #d9d9d9;
        padding-bottom:20px;
        margin-top:15px;
    }

}

.wsp-categories-horizontal-list > li > * {
    text-transform: uppercase;
    font-weight:900;
}

.wsp-recent-articles-list-container {
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom:1px solid #d9d9d9;
    padding-bottom: 20px;
}

@media (max-width: 850px) {
    .wsp-header-group-articles-page .wsp-recent-articles-list-container {
       display: none;
    }

    .latest-posts-mob-only {
        display: block !important;
    }
}

.wsp-recent-horizontal-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    overflow: hidden;
    column-gap:20px;
    row-gap:10px;
    justify-content: center;
    padding-left:5px;
}

.wsp-recent-articles-list-title {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-right:5px;
}

.wsp-recent-horizontal-list > li > * {
    
}

.wsp-articles-row-title {
    text-align: left;
    margin:40px 0 10px 0;
}

@media (max-width:1000px) {
    .wsp-articles-row-title {
        margin-bottom:0;
        /* margin-top:50px; */
        transform: translateY(10px);
    }
}

.wsp-articles-row {
    display:flex;
    gap:30px;
}

@media (max-width: 1200px) {
    .wsp-articles-row {
        gap:16px;
    }
}

.wsp-articles-row__is-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1000px) {
    .wsp-articles-row__is-grid {
        display: flex;
        gap:16px;
    }
}


@media (max-width: 1000px) {
    .wsp-articles-row-wrapper {
        position: relative;
    }
    .wsp-articles-row-wrapper:after {
        content:'';
        display:block;
        position: absolute;         /* Keeps it fixed in the container */
        right: 0;                 /* Anchors it to the right edge */
        top: 0;
        bottom:0;
        width: 5px;              /* Adjust width for desired shadow thickness */
        pointer-events: none;     /* Allows clicks to pass through */
        box-shadow: inset -14px 0 10px -15px rgba(0, 0, 0, 0.5);
        z-index: 10;
    }
    .wsp-articles-row-wrapper.hide-shadow::after {
        opacity: 0; /* Hides the shadow when at the end */
    }
    .wsp-articles-row {
        overflow: auto;
        padding-right:20px;
        position: relative;
        z-index: 9;
        margin-top: 20px;
        padding-bottom:20px;
        padding-top:20px;
    }

    .wsp-cat-title.wsp-articles-row-title {
        margin-bottom:-20px;
    }
}

.wsp-article-card {
    padding:20px;
    border-radius: 20px;
    background-color: #fff;
    /* flex:1; */
    width: calc(20% - 24px);
    transition: all 0.2s ease-in;
    box-shadow:0 2px 4px 0 rgba(0,0,0,0.1);
}

.wsp-article-card:hover {
    box-shadow:0 4px 8px 0 rgba(0,0,0,0.25);
    transform:translateY(-1px);
}

@media (max-width: 1200px) {
    .wsp-article-card {
        width:calc(20% - 12px);
    }
}

@media (max-width: 1000px) {
    .wsp-articles-row .wsp-article-card {
        min-width: 200px;
        flex-shrink:0;
        /* margin-bottom:20px;
        margin-top:20px; */
        z-index: 99;
        position: relative;
    }
}

@media (max-width: 650px) {
    .wsp-article-card {
        padding:10px;
    }
}

.wsp-articles-row__is-grid .wsp-article-card {
    grid-column:span 1;
    width:auto;
}
.wsp-articles-row__is-grid .wsp-article-card:first-of-type {
    grid-column:span 2;
    grid-row:span 2;
    width:auto;
}

@media (max-width:1000px) {
    .wsp-articles-row__is-grid .wsp-article-card {
        width:100%;
        max-width:200px;
    }
}

@media screen and (max-width: 1000px) {
    .wsp-articles-row__is-grid .wsp-article-card:first-of-type {
        grid-column:span 1;
        grid-row:span 1;
    }
    
}



.wsp-article-card__thumbnail img {
    aspect-ratio: 1200 / 800;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 650px) {
    .wsp-article-card__thumbnail img {
        border-radius: 10px;
    }
}


.wsp-article-card__cat {
    text-transform: uppercase;
    color:#000;
    font-size:0.75rem;
    text-align: left;
    margin-top:5px;
}

.wsp-article-card__title {
    font-weight: 900;
}

.wsp-article-card__enhance .wsp-article-card__title  {
    font-size:2rem;
}

@media (max-width: 900px) {
    .wsp-article-card__enhance .wsp-article-card__title  {
        font-size:1.2rem;
    }
}

@media (max-width:1000px) {
   .wsp-articles-row__is-grid .wsp-article-card__enhance .wsp-article-card__title  {
        font-size:1rem;
    }
    .wsp-articles-row__is-grid .wsp-article-card__enhance .wsp-article-card__excerpt {
        font-size:0.8rem;
        line-height: 1.2rem;
    }

    .wsp-articles-row__is-grid .wsp-article-card__enhance .wsp-article-card__excerpt .enhanced-remaining-part {
        display:none;
    }
}

.wsp-article-card__excerpt {
    font-size: 0.8rem;
    color:#000;
    line-height: 1.2rem;
    text-align: left;
}

.wsp-article-card__enhance .wsp-article-card__excerpt {
    font-size:1rem;
}

@media (max-width: 900px) {
    .wsp-article-card__enhance .wsp-article-card__excerpt {
        font-size:0.9rem;
    }
}

.wsp-articles-view-all-link-wrapper {
    display: flex;
    justify-content: flex-end;
    margin: 15px auto 0 auto;
    width:100%;
}

.wsp-articles-view-all-link {
    text-transform: uppercase;
    font-weight: 900;
}

.wsp-category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin:0 0 40px 0;
}


.wsp-category-grid__fluid {
    grid-template-rows: auto;
    grid-template-columns: repeat(5, 1fr);
}


@media (max-width: 1020px) {
    .wsp-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .wsp-category-grid {
        gap:10px;
    }
}



.wsp-category-grid  .wsp-article-card {
    max-width: 100%;
    width:auto;

}

.wsp-category-grid:not(.wsp-category-grid__fluid) .wsp-article-card:first-of-type {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
}

@media (max-width: 1200px) {
    .wsp-category-grid:not(.wsp-category-grid__fluid) .wsp-article-card:first-of-type {
    grid-column: span 3;
    grid-row: span 2;
    }
}

@media (max-width: 1020px) {
    .wsp-category-grid:not(.wsp-category-grid__fluid) .wsp-article-card:first-of-type, .wsp-category-grid:not(.wsp-category-grid__fluid) .wsp-article-card:nth-child(even):last-child { 
        grid-column: span 2;
        grid-row: span 1;
    }
}

.wsp-article-single-post {

}

.wsp-single-post--categories {
    display:flex;
}

.wsp-single-post--categories > * {
    margin-right:10px;
}

.wsp-single-post--categories > *:last-of-type {
    margin-right:0;
}

.wsp-article-back-link {
    font-weight: 900;
}

.wsp-back-link {

}

.wsp-back-link--link {
    text-transform: uppercase;
    font-weight: 900;
    font-size: 1.2rem;
    color: #333;
}

.wsp-pagination-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 10px auto;
}

.wsp-view-more {
    margin-left:auto;
}
