/* Base Section Styles */
section.ocio {
    padding: 20px;
}

section.ocioPublications {
    margin: 20px;
}

section.ocioPublications h2,
h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #454F57;
    width: max-content;
}

/* Button Wrapper */
section.ocioPublications .button-wrapper {
    text-align: right;
}

section.ocioPublications .button-wrapper a {
    margin-left: 10px;
    display: inline-block;
    color: #0D2C6C;
    font-size: 0.875rem;
    letter-spacing: 2px;
    background: #F2F2F2;
    padding: 20px 45px;
}

section.ocioPublications .button-wrapper a:hover {
    background: #d9d9d9;
}

/* Breadcrumb */
.ocio-breadcrumb {
    background:#0D2C6C;
    color:#fff;
    position:absolute;
    top:0;
    left:0;
    width:100%;
    padding:20px 0;
    font-size:.75rem;
    z-index:999;
    text-transform:uppercase;
}

.ocio-breadcrumb a {
    color:inherit;
    border-bottom:2px solid transparent;
    padding:5px 0;
}

.ocio-breadcrumb a:hover {
    border-color:#FFF;
}

/* SECTION HEADERS */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

.section-header .see-all {
    margin-left: auto;
}

.section-header h3 {
    margin: 0;
}

.see-all {
    white-space: nowrap;
}

/* Latest News */
section.ocioPublications .news-latest {
    position: relative;
    height: 100%;
    margin-bottom: 8px;
}

section.ocioPublications .news-latest .btn,
section.ocioPublications .news-latest .btn-all {

    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    min-height: 40px;

    background: transparent;
    border-bottom: 2px solid darkgray;
    color: #4A4A4A;

    padding: 6px 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

section.ocioPublications .news-latest .btn-all {
    justify-content: center;
    color: #8C959B;
}

section.ocioPublications .news-latest .btn::after,
section.ocioPublications .news-latest .btn-all::after {
    content: "\f105";
    font-family: FontAwesome;
    margin-left: 10px;
}

section.ocioPublications .news-latest .btn:hover,
section.ocioPublications .news-latest .btn-all:hover {
    color: white;
    background: #98CA3C;
}

/* FEATURED */
section.ocioPublications .news-thumb {
    position: relative;
    height: 20rem;
    display: block;

    background-size: cover;
    background-position: center;

    box-shadow: 0px 1px 5px rgba(0,0,0,0.1);

    text-decoration: none;
    color: inherit;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

section.ocioPublications .news-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

section.ocioPublications .news-thumb h5 {
    position: absolute;
    top: auto;
    bottom: 60px;
    left: 20px;

    margin: 0;
    padding: 8px 10px;

    color: white;
    background: rgba(0,0,0,0.6);

    font-size: 1.5rem;
    font-weight: 600;

    display: inline-block;
    max-width: 60%;
}

/* Read More */
section.ocioPublications .news-thumb .btn {
    position: absolute;
    bottom: 15px;
    right: 20px;

    color: white;
    background: rgba(0,0,0,0.5);

    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
}

section.ocioPublications .news-thumb:hover .btn {
    background: #98CA3C;
}

/* LAYOUT SPACING */
section.ocioPublications .col-md-4,
section.ocioPublications .col-md-6 {
    padding-left: 20px;
}

/* THUMB IMAGE */
.ocioThumbImage {
    max-width: 50%;
    float: right;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .column.col-md-3 {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .column.col-md-3 {
        width: 100%;
    }
}

/* MAIN PAGE TILES */
.ocio-button {
    background-color: #0D2C6C;
    color: white;

    padding: 10px;
    font-size: 1.2rem;
    margin-bottom: 30px;

    cursor: pointer;
    border-radius: 4px;

    height: 12rem;

    display: flex;
    justify-content: center;
    align-items: center;

    background-size: cover;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ocio-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.ocio-box {
    color: white;
    font-weight: 600;

    padding: 8px 12px;
    border-radius: 4px;

    background: rgba(0,0,0,0.5);

    display: inline-block;
    transition: all 0.3s ease;

    max-width: 70%;
}

.ocio-button:hover .ocio-box {
    background: #98CA3C;
}

/* ARCHIVE TILES */
.im-archive-tile {
    background-color: #0D2C6C;
    color: white;

    height: 240px;
    padding: 15px;

    display: flex;
    align-items: flex-end;
    justify-content: flex-start;

    text-align: left;

    background-size: cover;
    background-position: center;

    border-radius: 4px;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.im-archive-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
    color: white;
}

.im-archive-tile-body {
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 600;

    display: inline-block;

    max-width: 75%;
    min-width: 120px;

    padding: 8px 12px;
    border-radius: 4px;

    background: rgba(0,0,0,0.6);

    color: white;

    transition: all 0.3s ease;
}

.im-archive-tile:hover .im-archive-tile-body {
    background: #98CA3C;
}

/* PAGINATION STYLING */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 8px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    border-radius: 4px;

    background: #f5f5f5;
    color: #0D2C6C;

    font-weight: 600;
    text-decoration: none;

    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #98CA3C;
    color: white;
}

.pagination span.current {
    background: #0D2C6C;
    color: white;
}

.pagination span {
    opacity: 0.7;
}

/* MOBILE IMPROVEMENTS */
@media (max-width: 768px) {

    section.ocioPublications {
        margin: 15px;
    }

    section.ocioPublications .news-latest .btn,
    section.ocioPublications .news-latest .btn-all {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.4;
    }

    .pagination {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
    }

    .pagination a,
    .pagination span {
        white-space: nowrap;
        flex-shrink: 0;
    }

    section.ocioPublications .news-thumb {
        height: 16rem;
    }

    section.ocioPublications .news-thumb h5 {
        font-size: 1.2rem;
        max-width: 80%;
    }

    section.ocioPublications .news-thumb .btn {
        bottom: 10px;
        right: 15px;
        padding: 6px 10px;
    }

    .ocio-button {
        height: 10rem;
    }

    .ocio-box {
        font-size: 1rem;
        max-width: 85%;
    }

    .im-archive-tile {
        height: 200px;
    }

    .im-archive-tile-body {
        font-size: 0.95rem;
        max-width: 85%;
    }
}

@media (max-width: 480px) {

    section.ocioPublications .news-thumb {
        height: 14rem;
    }

    .ocio-button {
        height: 9rem;
    }

    .im-archive-tile {
        height: 180px;
    }
}

/* Misc */
.column {
    margin-bottom: 25px;
}

.question-button {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.question-button.visible {
    opacity: 1;
}