﻿:root {
    --search-green: 21,              128,              61;
    --search-red: 185,              28,              28;
    --search-blue: 29,              78,              216;
    --search-purple: 126,              34,              206;
    --search-orange: 194,              65,              12;
    --search-gold: 202,              138,              4;
    --search-gray: 202,              138,              4;
}

a:hover { text-decoration: none; }

/* PAGINATION */

.ais-Pagination {
    margin-top: 1em;
    font-size: 0.75em;
}

.section-title-pagination {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: start;
    align-items: end;
    margin: 5rem 0 2rem 0;
}

.ais-Pagination-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.ais-Pagination-item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.ais-Pagination-link {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 16px;
    width: 12px;
    padding: 1.5rem 1.5rem 1.45rem 1.5rem;
    border: 1px solid transparent;
}

.ais-Pagination-link:hover {
    border: 1px solid rgb(155, 155, 155);
    border-radius: 0.5rem;
    text-decoration: none;
}

.ais-Pagination-item--selected {
    border: 1px solid rgb(155, 155, 155);
    border-radius: 0.5rem;
}

.ais-Pagination-item--firstPage, .ais-Pagination-item--previousPage, .ais-Pagination-item--nextPage, .ais-Pagination-item--lastPage { font-size: 2rem; }

@media (max-width: 768px) {
    .section-title-pagination {
        display: flex;
        flex-direction: row;
        gap: 2rem;
        justify-content: start;
        align-items: end;
        margin: 3rem 0 2rem 0;
    }

    .ais-Pagination-item--page { display: none; }
}

/* Page and Searchbox */

.algolia-header {
    position: relative;
    margin: 2rem 0 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.algolia-nav-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

.algolia-nav-container button {
    color: #0f347d;
    text-transform: uppercase;
    font-weight: 700;
    font-size: .75em;
    letter-spacing: .025em;
    background: none;
    border: 2px solid transparent;
    padding: .5rem;
}

.algolia-nav-container button:hover {
    text-decoration: none;
    border-bottom: 2px solid #0f347d;
    transition: all 300ms ease-out;
}

.algolia-nav-container a {
    color: #EA232C;
    text-transform: uppercase;
    font-weight: 700;
    font-size: .75em;
    letter-spacing: .025em;
    background: none;
    border: 2px solid transparent;
    padding: .5rem;
}

.algolia-nav-container a:hover {
    text-decoration: none;
    border-bottom: 2px solid #EA232C;
    transition: all 300ms ease-out;
}

.nav-selected { border-bottom: 2px solid #0f347d !important; }

#algolia-stats {
    display: none;
    position: fixed;
    top: 200px;
    right: 50px;
    z-index: 1000;
    background: rgba(240, 240, 245, 1.0);
    padding: 10px;
    font-size: .75em;
}

.searchbox-container {
    background: rgba(240, 240, 245, 1);
    border: 0px;
    width: 100%;
    display: flex;
    flex-direction: row;
    margin: 0px 0px 12px 0px;
    position: sticky;
    z-index: 100;
    top: 7.2em;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

#searchbox {
    width: 100%;
    padding: 0px 12px;
    outline: 1px solid rgb(200, 200, 200);
}

#searchbox:has(input:focus) { outline: 1px solid rgba(15, 52, 125, 1.0); }

#searchbox input {
    background: none;
    appearance: none;
    border: none;
    width: 100%;
    height: auto;
    font-size: 0.7em;
}

#searchbox input:focus {
    background: none;
    appearance: none;
    border: none !important;
    inset: none;
    outline: none;
    border-radius: 2px;
}

.ais-SearchBox { margin: 0.5em; }

.ais-SearchBox-form {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.ais-SearchBox-submitIcon {
    height: 16px;
    width: 16px;
}

.ais-InstantSearch {
    max-width: 960px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .searchbox-container { top: 5.85em; }

    .algolia-header { margin: 0 0 3rem 0; }
}

/* HITS */

.hit-card {
    width: 100%;
    background: white;
    position: relative;
}

.hit-card:hover { transition: all 300ms ease-out; }

.hit-link-guardian {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: transparent;
}

.hit-link-guardian:hover ~ .hit-title { text-decoration: underline; }

/* HITS WEBPAGES */

.hits-webpages-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 6rem;
    row-gap: 4rem;
    margin-bottom: 20px;
}

.hit-webpages-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 225px;
}

@media (max-width: 768px) {
    .hits-webpages-list {
        grid-template-columns: repeat(1, 1fr);
        row-gap: 2rem;
    }

    .hit-webpages-container {
        height: fit-content;
        padding-bottom: 2rem;
    }
}

/* HITS HORSES */

.hits-horses-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 6rem;
    row-gap: 4rem;
}

.hit-horses-container {
    width: 100%;
    height: 150px;
    display: grid;
    grid-template-columns: 1fr fit-content(100%);
    gap: 1rem;
    background: white;
    position: relative;
    font-size: 0.8;
}

.hit-horses-body {
    color: #4c4c4c !important;
    font-weight: normal;
}

.hit-link-guardian:hover + div > div > .hit-title { text-decoration: underline; }

@media (max-width: 768px) {
    .hits-horses-list {
        grid-template-columns: repeat(1, 1fr);
        row-gap: 2rem;
        margin-bottom: 20px;
    }

    .hit-horses-container {
        height: fit-content;
        padding-bottom: 2rem;
    }
}

/* HITS PEOPLE */

.hits-people-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 6rem;
    row-gap: 4rem;
}

.hit-people-container {
    width: 100%;
    height: 150px;
    display: grid;
    grid-template-columns: 1fr fit-content(100%);
    gap: 2rem;
    background: white;
    position: relative;
}

.hits-people-container a:hover { transition: all 300ms ease-out; }

.people-info-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
    align-items: start;
    position: relative;
}

.hit-people-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hit-link-guardian:hover + div > .hit-title { text-decoration: underline; }

@media (max-width: 768px) {
    .hits-people-list {
        grid-template-columns: repeat(1, 1fr);
        row-gap: 2rem;
    }

    .hit-people-container {
        grid-template-columns: 1fr;
        justify-content: start;
        height: fit-content;
        padding-bottom: 2rem;
    }
}

/* HITS COMPETITION */

.hits-competition-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 6rem;
    row-gap: 4rem;
}

.hit-competition-container {
    width: 100%;
    min-height: 200px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: white;
    position: relative;
}

.hit-competition-body { font-weight: normal; }

.hit-link-guardian:hover + div > .hit-title { text-decoration: underline; }

@media (max-width: 768px) {
    .hits-competition-list {
        grid-template-columns: repeat(1, 1fr);
        row-gap: 2rem;
    }

    .hit-competition-container {
        min-height: 0;
        padding-bottom: 2rem;
    }
}

/* HITS NEWS */

.hits-news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 6rem;
    row-gap: 4rem;
}

.hit-news-container {
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: white;
    position: relative;
}

.hit-news-link-area {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hit-news-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: top;
    border-radius: 1rem;
}

@media (max-width: 768px) {
    .hits-news-list {
        grid-template-columns: repeat(1, 1fr);
        row-gap: 2rem;
    }

    .hit-news-container {
        height: fit-content;
        padding-bottom: 2rem;
    }
}

/* HITS FORMS */

.hits-forms-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 6rem;
    row-gap: 4rem;
}

.hit-forms-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 200px;
    overflow: hidden;
}

.hit-link-guardian:hover ~ .hit-title { text-decoration: underline; }

@media (max-width: 768px) {
    .hits-forms-list {
        grid-template-columns: repeat(1, 1fr);
        row-gap: 2rem;
    }

    .hit-forms-container {
        height: fit-content;
        padding-bottom: 2rem;
    }
}

/* HITS VIDEOS */

.hits-videos-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 6rem;
    row-gap: 4rem;
}

.hit-videos-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 550px;
    overflow: hidden;
}

.hit-videos-link-area {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hit-video-image {
    width: 100%;
    height: 225px;
    object-fit: cover;
    object-position: center;
    border-radius: 1rem;
    background: black;
}

@media (max-width: 768px) {
    .hits-videos-list {
        grid-template-columns: repeat(1, 1fr);
        row-gap: 2rem;
    }

    .hit-videos-container {
        height: fit-content;
        padding-bottom: 2rem;
    }
}


/* HITS FARM */

.hits-farms-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 6rem;
    row-gap: 4rem;
}

.hits-farm-container {
    width: 100%;
    min-height: 135px;
    height: fit-content;
    display: grid;
    grid-template-columns: 1fr fit-content(100%);
    gap: 1rem;
    background: white;
    position: relative;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .hits-farms-list {
        grid-template-columns: repeat(1, 1fr);
        row-gap: 2rem;
    }

    .hits-farm-container { padding-bottom: 2rem; }
}

/* TAGS */

.tag-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: end;
    gap: 1rem;
    font-size: 0.75em;
    width: 100%;
    height: 100%;
    padding: 0;
}

@media (max-width: 768px) {
    .tag-container { align-items: start; }
}

.hit-tag {
    font-size: 0.9em;
    width: fit-content;
    height: fit-content;
    color: inherit;
    padding: 4.5px 16px 4px 16.5px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border-radius: 3rem;
}

.tag-danger {
    border: 1px solid #666666;
    background: white;
    color: #666666 !important;
}

.lo-tag {
    border: 1px solid rgb(var(--search-blue));
    background: rgba(var(--search-blue), 0.1);
    color: rgb(var(--search-blue)) !important;
}

.manager-tag {
    border: 1px solid rgb(var(--search-gold));
    background: rgba(var(--search-gold), 0.1);
    color: rgb(var(--search-gold)) !important;
}

.secretary-tag {
    border: 1px solid rgb(var(--search-orange));
    background: rgba(var(--search-orange), 0.1);
    color: rgb(var(--search-orange)) !important;
}

.cm-tag {
    border: 1px solid rgb(var(--search-purple));
    background: rgba(var(--search-purple), 0.1);
    color: rgb(var(--search-purple)) !important;
}

.ais-Hits-item img { margin-right: 1em; }

.hit-name { margin-bottom: 0.5em; }

.hit-description {
    color: #888;
    font-size: 14px;
    margin-bottom: 0.5em;
}

#search-hits h2 {
    text-align: left;
    font-size: 1.5em;
    font-weight: normal;
    margin: 0;
}

.hit-header-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: space-between;
    align-items: start;
}

.hit-title-id-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: start;
    align-items: start;
}

.hit-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #EA232C;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 0.75rem;
}

.hit-title:hover span {
    text-decoration: underline;
}

.hit-title > i { font-size: 0.75em; }

.hit-title:hover i { text-decoration: none !important; }

.hit-title-id {
    font-size: 0.7em;
    font-weight: inherit;
    margin-top: .5rem;
}

.hit-action {
    align-self: end;
    justify-self: end;
}

.hit-body {
    font-size: 0.85em;
    line-height: 1.5em;
    color: #4c4c4c !important;
    font-weight: normal;
    padding-right: 1rem;
}

/*Utilities*/

.overflow-auto { overflow: auto; }

.custom-scrollbar::-webkit-scrollbar { width: 4px; }

.custom-scrollbar::-webkit-scrollbar-track { background: #f1f1f1; }

.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(15, 52, 125, 0.25); }

.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #555; }

.text-sm { font-size: 0.5em; }