/* header del listado de blog */
#list-page .list-intro h1 {
    color: var(--text-color) !important;
    opacity: 0.8;
    font-size: 40px;
}

#list-page .list-header-desc {
    font-size: 16px;
    color: var(--text-color) !important;
    opacity: 0.85;
}

#list-page .list-header-desc a {
    color: var(--primary-color) !important;
}

/* buscador */
#list-page .blog-search-wrap {
    position: relative;
    width: 100%;
    max-width: 260px;
}

#list-page .blog-search-input {
    width: 100%;
    max-width: 260px;
    padding-right: 2.2rem;
    border-radius: 8px;
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
    color: var(--text-color);
}

#list-page .blog-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 .2rem rgba(9, 88, 217, .15);
}

/* botón nativo "x" para borrar el texto del buscador: color verde de marca en vez del azul por defecto */
#list-page .blog-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    height: 14px;
    width: 14px;
    margin-right: 1.6rem;
    cursor: pointer;
    background-color: var(--brand-teal);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7A1 1 0 0 0 5.7 7.11L10.59 12l-4.89 4.89a1 1 0 1 0 1.41 1.41L12 13.41l4.89 4.89a1 1 0 0 0 1.41-1.41L13.41 12l4.89-4.89a1 1 0 0 0 0-1.4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7A1 1 0 0 0 5.7 7.11L10.59 12l-4.89 4.89a1 1 0 1 0 1.41 1.41L12 13.41l4.89 4.89a1 1 0 0 0 1.41-1.41L13.41 12l4.89-4.89a1 1 0 0 0 0-1.4z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

#list-page .blog-search-icon {
    position: absolute;
    top: 50%;
    right: .8rem;
    transform: translateY(-50%);
    color: var(--text-secondary-color);
    font-size: 14px;
    pointer-events: none;
}

#list-page .card {
    background-color: var(--secondary-color) !important;
    box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
    border-radius: .75rem;
    cursor: context-menu;
    overflow: hidden;
}

#list-page .card a {
    text-decoration: none;
}

#list-page .card a h5 {
    color: var(--text-color) !important;
}

#list-page .card:hover {
    border: 1px solid #0a6b73;
    transition: all 0.3s ease-out;
    transform: translateY(-7px);
}

#list-page .card-text * {
    background-color: var(--secondary-color) !important;
}

#list-page .post-footer {
    padding: .5rem 1rem;
    background-color: var(--secondary-color) !important;
    color: var(--text-color) !important;
    border-top: 1px solid rgba(15, 80, 100, 0.16);
    opacity: 0.9;
}

#list-page .post-footer a {
    background-color: var(--secondary-color) !important;
    color: var(--text-secondary-color) !important;
    border-color: var(--primary-color) !important;
    transition: none;
}

#list-page .post-footer a:focus {
    box-shadow: none !important;
}

#list-page .post-footer a:hover {
    color: var(--primary-color) !important;
}


/* pagination */
#list-page ul li a {
    transition: none;
    border-color: var(--secondary-color);
    background-color: var(--secondary-color) !important;
    color: var(--text-color) !important;
}

#list-page ul li a:focus {
    box-shadow: none;
}

#list-page .page-item.active .page-link {
    border-color: var(--brand-berry);
    background-color: var(--brand-berry) !important;
    color: var(--secondary-color) !important;
}

/* título del post en la lista */
#list-page .blog-title-link h4 {
    color: var(--brand-gray) !important;
    font-weight: 700 !important;
    transition: color 0.2s ease-out;
    font-size: 18px;
}

#list-page .blog-title-link:hover h4 {
    color: var(--brand-teal) !important;
}

/* modo oscuro: título del post en la lista */
body.dark #list-page .blog-title-link h4 {
    color: var(--brand-teal-light) !important;
}

/* modo oscuro: título del post en la lista, al pasar el ratón por encima */
body.dark #list-page .blog-title-link:hover h4 {
    color: var(--brand-teal) !important;
}

/* descripción del post en la lista */
#list-page .col-md-9 p.text-secondary {
    font-size: 13px;
}

/* hipervínculos dentro de la descripción (p. ej. "Fundapi", "MASAPP Ecuador") */
#list-page .col-md-9 p.text-secondary a {
    color: var(--brand-berry) !important;
}

/* modo oscuro: descripción del post */
body.dark #list-page .col-md-9 p.text-secondary {
    color: var(--brand-lilac) !important;
}

/* modo oscuro: hipervínculos dentro de la descripción */
body.dark #list-page .col-md-9 p.text-secondary a {
    color: var(--brand-lilac) !important;
    text-decoration: underline;
}

/* tags de cada post: berry sobre lila claro (modo día) */
#list-page .blog-item-tags {
    margin-bottom: .5rem;
}

#list-page .blog-item-tags .badge {
    background-color: var(--brand-lilac) !important;
    color: var(--brand-berry) !important;
    border-radius: .5rem;
    padding: .4em .7em;
    margin: 0 .3rem .3rem 0;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.2s ease-out;
}

#list-page .blog-item-tags .badge:hover {
    opacity: 0.75;
}

/* modo oscuro: tags de cada post */
body.dark #list-page .blog-item-tags .badge {
    background-color: rgba(var(--brand-berry-rgb), 0.5) !important;
    color: var(--brand-lilac) !important;
}

/* fecha de cada post */
#list-page .blog-item-date {
    font-size: 12px;
}

/* modo oscuro: fecha de cada post */
body.dark #list-page .blog-item-date {
    color: var(--brand-lilac) !important;
}

/* botón "Read more" */
#list-page .read-more-btn {
    color: var(--brand-berry) !important;
    border: 1px solid var(--brand-berry) !important;
    background-color: transparent !important;
    transition: all 0.2s ease-out;
}

#list-page .read-more-btn:hover,
#list-page .read-more-btn:focus {
    color: var(--brand-lilac) !important;
    background-color: var(--brand-berry) !important;
    opacity: 1;
    box-shadow: none !important;
}
