/* ===================================================================================

* Theme Name: LCCTC theme Child
* Theme URI: 
* Author: LCCTC
* Author URI: 
* Description: LCCTC - Somos una organización cívica no gubernamental (ONG) que busca la garantía de la protección, información, educación, representación y respeto a los derechos de consumidores y consumidoras.
* Version: 1.1
* Template: xolio
* License: GNU General Public License version 3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
* Tags: one-column, right-sidebar, left-sidebar, custom-menu, featured-images, post-formats, sticky-post, translation-ready

* We encourage you to create Child theme for any modifications you will want to do.

* Why use Child theme?

* Because of future updates we may provide for this theme that will overwrite your
* modifications and all your custom work.

* If you are not familiar with Child Themes, you can read about it here:
* http://codex.wordpress.org/Child_Themes
* http://wp.tutsplus.com/tutorials/theme-development/child-themes-basics-and-creating-child-themes-in-wordpress/

====================================================================================== */


/* ===================================================================================
main area
====================================================================================== */
body {
    font-family: 'Aileron', sans-serif;
    font-size: 16px;
    color: #333;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hidden {
    visibility: hidden !important;
    display: none !important;
}

*.hide,
.hide {
    opacity: 0;
    pointer-events: none !important;
    transition: all 0.3s ease;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* line-clamp-2 */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* line-clamp-3 */

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.main-area {
    padding-top: 96px;
}

/* =======================================
Card post styles
=========================================== */

.card-post {

    &:hover {
        .card-content {
            transform: translateY(0);
            border-radius: unset;

            .card-description {
                -webkit-line-clamp: 3;
                line-clamp: 3;
            }
        }

    }

    .card-content {

        .card-title,
        .card-description {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        @media (max-width: 768px) {
            .card-description {
                -webkit-line-clamp: 3;
                line-clamp: 3;
            }
        }

    }
}

/* =======================================
Styles for Banner home carousel
=========================================== */

.banner-carousel {

    /* media querie min 1024px */
    @media (min-width: 1024px) {
        .swiper-pagination {
            display: none;
        }
    }


}

/* =======================================
Styles for policies carousel
=========================================== */

.navigation-custom {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 40px;

    .health-next,
    .health-prev {
        width: 50px;
        cursor: pointer;
        position: initial;
        height: 40px;


        svg {
            width: 100%;
            height: 100%;
            transition: all .3s ease;
        }

        &:hover svg {
            transform: scale(1.1);
        }

    }

    .health-prev::after,
    .health-next::after {
        content: unset;
    }


}

/* =======================================
Styles for Instagram feed
=========================================== */
[eapps-link="headerContainer"] {
    .eapps-instagram-feed-header {
        display: none;
    }
}

/* =======================================
Styles for Footer
=========================================== */
.footer {
    padding: 2.6rem 2rem;
    background: #000;
    font-family: 'Aileron-Light', sans-serif;
}

.footer-content {
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    min-width: 154px;
    width: 154px;
    height: 65px;

    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}


.footer-nav {
    display: flex;
    flex-wrap: wrap;
    column-gap: 2rem;
    row-gap: .5rem;
    flex: 1 1 auto;
    justify-content: center;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    color: #fff;

    a {
        color: inherit;
    }
}

.footer-bottom {
    max-width: 100%;
    margin: 2rem auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 0;
    border-top: 1px solid var(--e-global-color-2ee856a);
    gap: 2rem;
    background: inherit;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: #fff;
    text-decoration: underline;
    font-size: 0.875rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--e-global-color-2ee856a);
}

.testu .elementor-widget-container {
    columns: 2;
    column-gap: 3%;
}

@media (max-width: 768px) {
    .main-area {
        padding-top: 80px;
    }

    .footer {
        padding: 2rem 1rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 2rem;
    }

    .footer-nav {
        flex-direction: column;
        row-gap: 1.4rem;
        margin-bottom: 2rem;
        text-align: center;
    }



    .footer-social {
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .footer-social img {
        width: 32px;
        height: 32px;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
        margin-top: 0;
        padding-top: 1.5rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-legal a {
        text-decoration: underline;
    }

    .testu .elementor-widget-container {
        columns: 1;
        column-gap: 2%;
    }
}

/* =======================================
styles form modal posts
=========================================== */

.post-image-featured .blog-image {
    aspect-ratio: 2/1;

    img {
        border-radius: 16px;
    }
}

.no-more-posts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-more-posts__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.no-more-posts__modal {
    background: #fff;
    padding: 16px 24px;
    border-radius: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    font-family: 'Aileron semibold', sans-serif;

    h3 {
        font-size: 1.2rem;
        margin: 0;
        font-family: 'Aileron semibold', sans-serif;
    }

    i {
        font-size: 2rem;
        color: var(--tg-secondary-color);
    }

    p {
        font-size: 1rem;
        color: #333;
        margin: 0;
    }

}

/* =======================================
Styles for modal PDF
=========================================== */
.pdf-modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 16px;
}

.pdf-modal-content {
    width: 100%;
    max-width: 900px;
    height: 80vh;
    background: var(--tg-white);
    padding: 4px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.pdf-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 24px;
    cursor: pointer;
    background: var(--tg-secondary-color);
    width: 30px;
    height: 30px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tg-white);
}

iframe#pdfViewer {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: inherit;
}


.just-validate-error-label {
    font-size: 14px;
    position: absolute;
    left: 0;
    bottom: -20px;
    font-size: 13px;

}

/* =======================================
Styles for custom post content
=========================================== */

.custom-post-content {
    p {
        font-family: 'Aileron', sans-serif;
        font-size: 18px;
    }

    img {
        border-radius: 16px;
    }

    .wp-caption-text {
        text-align: left;
        font-style: normal;
        padding-left: 10px;
        position: relative;
        color: var(--tg-black);

        &::before {
            content: "";
            width: 2px;
            height: 100%;
            background: var(--tg-black);
            position: absolute;
            top: 0;
            left: 0;
        }
    }

    blockquote {
        padding-top: 0;
        padding-bottom: 0;
        margin: 30px 0;

        &::before {
            content: '';
            font-size: 40px;
            background: var(--tg-black);
            z-index: initial;
            top: 0;
            bottom: 0;
            margin: auto;
            width: 2px;
            height: 90%;
        }

        p {
            font-weight: 400;
            font-style: italic;
            font-size: 20px;
        }
    }
}

/* =======================================
Styles for custom input file
=========================================== */

.form-grp {
    .remove-file {
        background-color: var(--tg-primary-color);
        color: var(--tg-white);
        border: none;
        border-radius: 4px;
        padding: 3px 8px;
        width: 34px;
        height: 34px;
        cursor: pointer;
        float: right;
    }

}

.custom-file-upload {
    font-family: 'Aileron', sans-serif;
    position: relative;

    .just-validate-error-label {
        z-index: 1;
    }
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    position: relative;
}

.upload-area:hover {
    border-color: #999;
    background-color: #f0f0f0;
}

.upload-icon {
    font-size: 36px;
    color: #666;
    margin-bottom: 15px;
}

.upload-text {
    color: #666;
    margin-bottom: 10px;
}

.file-limit {
    color: #888;
    font-size: 14px;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    opacity: 0;
    cursor: pointer;
}

.selected-file {
    padding: 10px;
    border-radius: 15px;
    border: 2px dashed var(--tg-primary-color);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 50px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--e-global-color-2ee856a);
}

.file-name {
    color: var(--tg-secondary-color);
    display: inline-block;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}



@media (max-width: 768px) {
    .upload-area {
        padding: 20px;
    }
}