/* ====================================================================== */
/* Section */

.section-header{
    padding: var(--standard-pad) var(--standard-pad) var(--standard-pad) var(--standard-pad);
    background-color: var(--green-color);
    text-transform: uppercase;
    font-weight: bold;
}

.section-header h3{
    color: white !important;
}




/* ====================================================================== */
/* Story Items */

.story-grid{
    display: grid;
    grid-template-columns: 24% 24% 24% 24%;
    row-gap: 2em;
    justify-content: space-between;
    padding: var(--standard-pad) var(--standard-pad) var(--standard-pad) var(--standard-pad);
}

.story-list{
    display: flex;
    flex-direction: column;
    row-gap: 1em;
}


.story-tile{
    display: flex;
    flex-direction: column;
    row-gap: 0.5em;
}

.story-tile img{
    aspect-ratio: 4/3;
    width: 100%;
    object-fit: cover;
    border-top-right-radius: 0.5em;
    border-top-left-radius: 0.5em;
}

.story-tile-category{
    border-top-right-radius: 0.5em;
    border-bottom-right-radius: 0.5em;
    background-color: var(--green-color);
    padding: 0.2em 0.6em 0.2em 0.6em;
    width: fit-content;
    text-transform: uppercase;
    color: #fff;
}


.story-tile-category span{
    font-size:0.8em;
    font-weight: 600;
}


.story-tile-date span{
    font-size:0.9em;
    font-weight: 300;
    color: #333;
}

.story-tile-date a{
    font-size:0.9em !important;
    font-weight: 300 !important;
    color: #333 !important;
}

.story-tile-date sup{
    font-size:0.6em;
    font-weight: 300;
    color: #333;
}

.story-tile h4{
    font-size: var(--text-normal);
}

.story-tile p{
    font-size: var(--text-small);
}

.story-tile a{
    font-size: var(--text-normal);
    color: black;
    font-weight: bold;
    text-decoration: none;
}

.story-tile a:hover{
    opacity: 0.7;
}


.entry-list{
    display: grid;
    grid-template-columns: 25% auto;

    column-gap: 1em;
    margin-top: var(--half-pad);
    margin-bottom: var(--half-pad);
    overflow: auto;
    cursor: pointer;
}

.entry-list:hover{
    opacity: 0.9;
}

.entry-list-img-holder{
    height: 100%;
    width: 100%;
    aspect-ratio: 3/2;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.entry-list img{
    aspect-ratio: 3/2;
    flex-shrink: 0;
    margin-right: var(--half-pad);
}

.entry-list-details{
    display: flex;
    flex-direction: column;
    row-gap: var(--standard-pad);
}

.entry-list-details h4{
    font-size: var(--text-normal);
}

.entry-list-details p{
    font-size: var(--text-normal);
}

.entry-list-details a:not(.div-link) {
    font-size: var(--text-small);
    color: var(--global-color);
    font-weight: bold;
}

.tags{
    width: 100%;
    background-color: var(--green-color);
    margin-top: auto;

    color: white;
    font-size: var(--text-small);
    padding: var(--standard-pad) var(--standard-pad) var(--standard-pad) var(--standard-pad);
}

.tag-link{
    color: white !important;;
    font-weight: 300 !important;
    text-decoration: none;
}

.tag-link:hover{
    text-decoration: underline;
}




/* ====================================================================== */
/* Product Entry */

.product-listings, #more_product_listings{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    row-gap: 1em;
    width: 100%;

}

.product-listings h2{
    font-size: var(--text-heading);
}

.product-entry{
    display: grid;
    grid-template-columns: 15% auto;
    width: 100%;
    background-color: white;

    border-color: #cccccc;
    border-radius: var(--standard-radius);
    border-style: solid;
    border-width: 1px;
    padding: var(--standard-pad) var(--standard-pad) var(--standard-pad) var(--standard-pad);
}

.img-holder{
    display: flex;
    flex-direction: column;
    margin: var(--standard-pad) var(--standard-pad) var(--standard-pad) var(--standard-pad);
    background-size: cover;
    aspect-ratio: 1/1;
}

.img-holder img{
    max-width: 100%;
    max-height: 100%;
    margin-top: auto;
    margin-bottom: auto;
}

.product-details{
    display: flex;
    flex-direction: column;
    row-gap: var(--standard-pad);
    width: 100%;
}

.main-details{
    display: grid;
    grid-template-columns: 30% 30% 30% ;
    width: 100%;
    row-gap: var(--half-pad);
}

.main-details h4, .description h4{
    font-size: var(--text-normal);
}

.description h4{
    margin-bottom: 0.5em;
}

.main-details span{
    font-size: var(--text-normal);
}

.description p{
    font-size: var(--text-small);
}

.product-button-options{
    display: flex;
    flex-direction: row;
    column-gap: 1em;

}

.item-nav{
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row;
    column-gap: 0.5rem;
    justify-content: center;
}


/* ====================== Pagination ====================== */
.pagination-wrapper {
  display: flex;
  margin-top: 1rem;
  gap: 1rem;
  justify-content: center;
}

.pagination-link {
    background-color: var(--primary-color);
    width:3rem;
    padding: 0.5rem;
    color: white;
    text-align: center;
    border-radius: 0.5rem;
}




/* ====================== Mobile Responsive ====================== */
@media (max-width: 1000px) {

    /* Section Header */
    .section-header {
        padding: var(--half-pad);
        text-align: center;
    }

    .section-header h3 {
        font-size: var(--text-normal);
    }

    /* Story Grid */
    .story-grid {
        grid-template-columns: 100%;
        row-gap: 1.5em;
        padding: 1rem 10px !important;
    }

    /* Story Tile */
    .story-tile img {
        aspect-ratio: auto;
        width: 100%;
        border-radius: 0.5em;
    }

    .story-tile-category {
        padding: 0.3em 0.5em;
        font-size: 0.9em;
    }

    .story-tile-date span,
    .story-tile-date a,
    .story-tile-date sup {
        font-size: 0.8em;
    }

    .story-tile h4 {
        font-size: var(--text-normal);
    }

    .story-tile p {
        font-size: var(--text-small);
    }

    .story-tile a {
        font-size: var(--text-normal);
    }

    /* Entry List */
    .entry-list {
        grid-template-columns: 100%;
        column-gap: 0;
        row-gap: 1rem;
    }

    .entry-list img,
    .entry-list-img-holder {
        width: 100%;
    }

    .entry-list-details {
        row-gap: 0.5rem;
    }

    .entry-list-details h4,
    .entry-list-details p {
        font-size: var(--text-normal);
    }

    .entry-list-details a {
        font-size: var(--text-small);
    }

    /* Tags */
    .tags {
        font-size: var(--text-small);
        padding: var(--half-pad);
    }

    /* Product Listings */
    .product-listings,
    #more_product_listings {
    row-gap: 1.5rem;
    }

    .product-entry {
        grid-template-columns: 100%;
        padding: var(--standard-pad);
    }

    .img-holder {
        aspect-ratio: auto;
        margin: 0 auto 1rem;
    }

    .img-holder img {
        max-width: 100%;
        max-height: auto;
    }

    .product-details {
        row-gap: 1rem;
    }

    .main-details {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .main-details h4 {
        grid-row: 1;
    }

    .main-details span {
        grid-row: 2;
    }

    .main-details h4,
    .description h4,
    .main-details span,
    .description p {
        font-size: var(--text-normal);
    }

    .product-button-options {
        flex-direction: column;
        row-gap: 0.5rem;
    }

    .item-nav {
        flex-direction: column;
        row-gap: 0.5rem;
        justify-content: center;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}
