/* 
Theme Name: Hello Elementor M2I
Theme URI: https://m2i-srl.it/
Description: Hello Elementor M2I is a child theme of Hello Elementor, created by M2I team
Author: M2I Team
Author URI: https://m2i-srl.it/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-m2i
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* WRAPPER */
.archive-resources-wrapper {
    width: 100%;
}

/* FILTERS */
.archive-resources-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.resource-filter {
    border: 1px solid #dcdcdc;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    transition: all .25s ease;
    font-size: 14px;
    font-weight: 600;
    color:#111!important;
}

.resource-filter:hover,
.resource-filter.active {
    background: #111;
    color: #fff!important;
    border-color: #111;
}

/* SEARCH */
.archive-resources-search {
    margin-bottom: 50px;
}

#resource-search {
    width: 100%;
    height: 55px;
    border: 1px solid #dcdcdc;
    border-radius: 16px;
    padding: 0 20px;
    font-size: 16px;
    outline: none;
}

#resource-search:focus {
    border-color: #111;
}

/* CATEGORY TITLE */
.resource-category-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* CARD */
.resource-card {
    display: flex;
    gap: 30px;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #ececec;
    background: #fff;
    transition: all .3s ease;
    position: relative;
    margin-bottom: 25px;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,.06);
}

/* IMAGE */
.resource-card-image {
    width: 100px;
    min-width: 100px;
}

.resource-card-image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 18px;
}

/* CONTENT */
.resource-card-content {
    flex: 1;
}

/* META */
.resource-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.resource-tag {
    background: #f3f3f3;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.resource-date {
    font-size: 13px;
    color: #fff;
    background: #000;
    border-radius: 20px;
    padding: 1px 10px;
}

/* TITLE */
.resource-card-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 18px;
    font-weight: 700;
}

/* TEXT */
.resource-card-text {
    color: #000;
    line-height: 1.7;
}

.resource-card-text p:last-child {
    margin-bottom: 0;
}

/* PDF ICON */
.resource-card-file {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.resource-file-icon {
    width: 70px;
    height: 70px;
    border-radius: 0px;
    background: #ffffff;
    color: #000000!important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all .25s ease;
    display:flex;
    flex-direction: column;
}

.resource-file-icon:hover {
    color: #D1C5AF!important;
    transform: scale(1.05);
}
.resource-file-icon svg{
    fill:#000000;
}
.resource-file-icon:hover svg{
    fill:#D1C5AF;
}
/* AUDIO */
.resource-audio {
    margin-top: 25px;
}

.resource-audio audio {
    width: 100%;
}

/* VIDEO */
.resource-video {
    margin-top: 25px;
    border-radius: 20px;
    overflow: hidden;
}

.resource-video iframe,
.resource-video video {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    display: block;
}

/* LINKS */
.resource-links {
    margin-top: 25px;
}

.resource-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.resource-links li + li {
    margin-top: 10px;
}

.resource-external-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    transition: opacity .25s ease;
}

.resource-external-link:hover {
    opacity: .7;
}
.resource-search-wrapper {
    position: relative;
}

#resource-search {
    padding-right: 50px;
}

#resource-search-clear {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transition: all .2s ease;
}

#resource-search-clear.visible {
    opacity: 1;
    visibility: visible;
}

#resource-search-clear:hover {
    transform: translateY(-50%) scale(1.08);
}
/* MOBILE */
@media (max-width: 768px) {

    .resource-card {
        flex-direction: column;
        gap: 20px;
        padding: 22px;
    }

    .resource-card-image {
        width: 80px;
        min-width: 80px;
    }

    .resource-card-title {
        font-size: 22px;
    }

    .resource-category-title {
        font-size: 26px;
    }

    .resource-card-file {
        justify-content: flex-start;
    }

}