/**
 * UIP Noticias Carousel - CSS
 * Medidas exactas do Figma
 */

.uip-nc-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.uip-nc-container {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 839px;
    overflow: visible;
}

.uip-nc-arrows {
    display: flex;
    gap: 0;
    margin-top: 24px;
}

.uip-nc-arrow {
    width: 40px;
    height: 11px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.uip-nc-arrow:hover {
    opacity: 1;
}

.uip-nc-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 35px;
    height: 1px;
    background-color: #cba545;
}

.uip-nc-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border: 1px solid #cba545;
    border-width: 1px 1px 0 0;
}

.uip-nc-arrow-prev::before {
    right: 0;
}

.uip-nc-arrow-prev::after {
    left: 0;
    transform: translateY(-50%) rotate(-135deg);
}

.uip-nc-arrow-next::before {
    left: 0;
}

.uip-nc-arrow-next::after {
    right: 0;
    transform: translateY(-50%) rotate(45deg);
}

.uip-nc-card {
    position: absolute;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.uip-nc-link {
    display: block;
    width: 100%;
    height: 100%;
}

.uip-nc-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}



.uip-nc-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.uip-nc-card-left {
    left: 43px;
    top: 239px;
    width: 600px;
    height: 600px;
    z-index: 1;
}

.uip-nc-card-center {
    left: calc(41.67% + 13px);
    top: 0;
    width: 600px;
    height: 600px;
    z-index: 3;
    background: #ffffff;


    position: absolute;
    overflow: visible;
}

.uip-nc-card-center .uip-nc-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.uip-nc-card-center .uip-nc-image .uip-nc-link {
    display: block;
    width: 100%;
    height: 100%;
}

.uip-nc-card-center .uip-nc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uip-nc-info {
    position: absolute;
    bottom: -1px;
    left: 0;
    padding: 40px;
    padding-bottom: 64px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 400px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    text-decoration: none;
    cursor: pointer;
}

.uip-nc-card-center:hover .uip-nc-info {
    padding: 56px;
    padding-bottom: 64px;
    width: 432px;
}

.uip-nc-date {
    font-family: 'Figtree', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: normal;
    color: #cba545;
    transition: color 0.3s ease;
}

.uip-nc-title {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 26px;
    margin: 0;
    color: #000000;
    transition: color 0.4s ease;
}



.uip-nc-card-center:hover .uip-nc-title,
.uip-nc-card-center .uip-nc-info:hover .uip-nc-title,
.uip-nc-info:hover .uip-nc-title {
    color: #cba545 !important;
}

.uip-nc-card-right {
    left: calc(83.33% - 13px);
    top: 118px;
    width: 333px;
    height: 600px;
    z-index: 2;
    overflow: hidden;
}

.uip-nc-card-right .uip-nc-link {
    width: 600px;
    height: 600px;
}

.uip-nc-card-right .uip-nc-img {
    width: 600px;
    height: 600px;
    max-width: none;
}

.uip-nc-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.uip-nc-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cccccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.uip-nc-bullet:hover {
    transform: scale(1.2);
}

.uip-nc-bullet.active {
    background-color: #000000;
}

.uip-nc-error {
    text-align: center;
    padding: 40px;
    color: #666;
    font-family: 'Figtree', sans-serif;
}

@media (min-width: 2400px) {
    .uip-nc-container {
        height: 1000px;
    }

    .uip-nc-card-left {
        left: 100px;
        top: 280px;
        width: 700px;
        height: 700px;
    }

    .uip-nc-card-center {
        width: 700px;
        height: 700px;
    }

    .uip-nc-info {
        width: 470px;
        padding: 48px;
        padding-bottom: 72px;
    }

    .uip-nc-card-center:hover .uip-nc-info {
        width: 510px;
        padding: 64px;
        padding-bottom: 72px;
    }

    .uip-nc-card-right {
        top: 140px;
        width: 390px;
        height: 700px;
    }

    .uip-nc-card-right .uip-nc-link,
    .uip-nc-card-right .uip-nc-img {
        width: 700px;
        height: 700px;
    }
}

@media (min-width: 1600px) and (max-width: 2399px) {
    .uip-nc-container {
        height: 900px;
    }

    .uip-nc-card-left {
        left: 60px;
        top: 260px;
        width: 650px;
        height: 650px;
    }

    .uip-nc-card-center {
        width: 650px;
        height: 650px;
    }

    .uip-nc-info {
        width: 430px;
        padding: 44px;
        padding-bottom: 68px;
    }

    .uip-nc-card-center:hover .uip-nc-info {
        width: 470px;
        padding: 60px;
        padding-bottom: 68px;
    }

    .uip-nc-card-right {
        top: 130px;
        width: 360px;
        height: 650px;
    }

    .uip-nc-card-right .uip-nc-link,
    .uip-nc-card-right .uip-nc-img {
        width: 650px;
        height: 650px;
    }
}

@media (max-width: 1599px) and (min-width: 1367px) {
    .uip-nc-container {
        width: 117vw;
        height: 800px;
    }

    .uip-nc-card-left {
        left: 35px;
        top: 220px;
        width: 550px;
        height: 550px;
    }

    .uip-nc-card-center {
        width: 550px;
        height: 550px;
    }

    .uip-nc-info {
        width: 365px;
        padding: 36px;
        padding-bottom: 58px;
    }

    .uip-nc-card-center:hover .uip-nc-info {
        width: 396px;
        padding: 50px;
        padding-bottom: 58px;
    }

    .uip-nc-card-right {
        top: 108px;
        width: 305px;
        height: 550px;
    }

    .uip-nc-card-right .uip-nc-link,
    .uip-nc-card-right .uip-nc-img {
        width: 550px;
        height: 550px;
    }
}

@media (max-width: 1366px) and (min-width: 1025px) {
    .uip-nc-wrapper {
        padding: 0 40px;
    }

    .uip-nc-container {
        position: relative;
        width: 100%;
        margin-left: 0;
        height: auto;
        min-height: 600px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .uip-nc-card-left {
        display: none !important;
    }

    .uip-nc-card-center {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: 49% !important;
        height: auto !important;
        margin: 0 !important;
        max-width: none !important;
        background: none;
    }

    .uip-nc-card-center .uip-nc-image {
        width: 100%;
        height: 500px;
        position: relative;
    }

    .uip-nc-card-center .uip-nc-image .uip-nc-link,
    .uip-nc-card-center .uip-nc-img {
        height: 500px;
    }

    .uip-nc-card-right {
        position: relative !important;
        display: block !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        width: 49% !important;
        height: auto !important;
        margin: 0 !important;
        opacity: 1;
        z-index: 2;
        overflow: hidden;
    }

    .uip-nc-card-right .uip-nc-link,
    .uip-nc-card-right .uip-nc-img {
        width: 100%;
        height: 500px;
    }

    /* Info ajustes para 2 colunas */
    .uip-nc-info {
        position: absolute !important;
        bottom: -1px !important;
        left: 0 !important;
        width: auto !important;
        right: 40px !important;
        padding: 32px !important;
        padding-bottom: 48px !important;
    }

    .uip-nc-card-center:hover .uip-nc-info {
        width: auto !important;
        right: 20px !important;
        padding: 40px !important;
        padding-bottom: 48px !important;
    }

    .uip-nc-title {
        font-size: 20px;
        line-height: 28px;
    }

    .uip-nc-date {
        font-size: 14px;
    }

    .uip-nc-nav {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        justify-content: center;
        margin-top: 32px;
    }

    .uip-nc-arrows {
        justify-content: center;
        margin-top: 24px;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .uip-nc-wrapper {
        padding: 0 40px;
    }

    .uip-nc-container {
        position: relative;
        width: 100%;
        margin-left: 0;
        height: auto;
        min-height: 500px;
    }

    .uip-nc-card-left {
        display: none !important;
    }

    .uip-nc-card-right {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 48% !important;
        height: auto !important;
        opacity: 1;
        z-index: 2;
    }

    .uip-nc-card-right .uip-nc-link,
    .uip-nc-card-right .uip-nc-img {
        width: 100%;
        height: 420px;
    }

    .uip-nc-card-center {
        position: relative !important;
        left: 0 !important;
        top: auto !important;
        transform: none !important;
        width: 48% !important;
        max-width: none !important;
        height: auto !important;
        margin: 0 !important;


    }

    .uip-nc-card-center .uip-nc-image {
        width: 100%;
        height: 420px;
        position: relative;
    }

    .uip-nc-card-center .uip-nc-image .uip-nc-link,
    .uip-nc-card-center .uip-nc-img {
        height: 420px;
    }

    /* Info Default - Tablet */
    .uip-nc-info {
        position: absolute !important;
        bottom: -1px !important;
        left: 0 !important;
        right: 80px !important;
        width: auto !important;
        padding-top: 24px !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        padding-bottom: 36px !important;
        background: #ffffff;
        transition: padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            padding-left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            padding-right 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Info Hover - Tablet (só expande para cima e lados) */
    .uip-nc-card-center:hover .uip-nc-info {
        padding-top: 32px !important;
        padding-left: 32px !important;
        padding-right: 32px !important;
        padding-bottom: 36px !important;
        right: 60px !important;
        bottom: 0 !important;
    }

    .uip-nc-title {
        font-size: 18px;
        line-height: 24px;
    }

    .uip-nc-date {
        font-size: 13px;
    }

    .uip-nc-nav {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        justify-content: center;
        margin-top: 24px;
    }

    .uip-nc-arrows {
        justify-content: center;
        margin-top: 16px;
    }
}

@media (max-width: 767px) {
    .uip-nc-wrapper {
        padding: 0 16px;
    }

    .uip-nc-container {
        position: relative;
        width: 100%;
        margin-left: 0;
        height: auto;
        min-height: 368px;
    }

    .uip-nc-card-left,
    .uip-nc-card-right {
        display: none !important;
    }

    .uip-nc-card-center {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        height: 368px !important;


    }

    .uip-nc-card-center .uip-nc-image {
        width: 100%;
        height: 368px;
        position: relative;
    }

    .uip-nc-card-center .uip-nc-image .uip-nc-link,
    .uip-nc-card-center .uip-nc-img {
        height: 368px;
    }

    /* Info Default - Mobile */
    .uip-nc-info {
        position: absolute !important;
        bottom: -1px !important;
        left: 0 !important;
        right: 64px !important;
        width: auto !important;
        padding-top: 20px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-bottom: 32px !important;
        background: #ffffff;
        transition: padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            padding-left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            padding-right 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Info Hover - Mobile (só expande para cima e lados) */
    .uip-nc-card-center:hover .uip-nc-info {
        padding-top: 28px !important;
        padding-left: 28px !important;
        padding-right: 28px !important;
        padding-bottom: 32px !important;
        right: 48px !important;
        bottom: 0 !important;
    }

    .uip-nc-date {
        font-size: 12px;
    }

    .uip-nc-title {
        font-size: 16px;
        line-height: 24px;
    }

    .uip-nc-nav {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        justify-content: center;
        margin-top: 24px;
    }

    .uip-nc-arrows {
        justify-content: center;
        margin-top: 16px;
    }
}

@media (max-width: 480px) {
    .uip-nc-wrapper {
        padding: 0 12px;
    }

    .uip-nc-card-center {
        height: 368px !important;
    }

    .uip-nc-card-center .uip-nc-image,
    .uip-nc-card-center .uip-nc-image .uip-nc-link,
    .uip-nc-card-center .uip-nc-img {
        height: 368px;
    }

    /* Info Default - Mobile Pequeno */
    .uip-nc-info {
        right: 40px !important;
        padding-top: 16px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-bottom: 28px !important;
    }

    /* Info Hover - Mobile Pequeno (só expande para cima e lados) */
    .uip-nc-card-center:hover .uip-nc-info {
        right: 24px !important;
        padding-top: 22px !important;
        padding-left: 22px !important;
        padding-right: 22px !important;
        padding-bottom: 28px !important;
        bottom: 0 !important;
    }

    .uip-nc-title {
        font-size: 15px;
        line-height: 22px;
    }
}

.uip-nc-card.transitioning {
    opacity: 0.8;
}

.uip-nc-card.transitioning .uip-nc-img {
    transform: scale(0.98);
}

.uip-nc-bullet:focus {
    outline: 2px solid #cba545;
    outline-offset: 2px;
}

.uip-nc-link:focus {
    outline: 2px solid #cba545;
    outline-offset: -2px;
}

.uip-nc-external-prev,
.uip-nc-external-next {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.uip-nc-external-prev:hover,
.uip-nc-external-next:hover {
    opacity: 0.7;
}

/* Estado Desativado (Adicionado via JS) */
html body .uip-nc-arrow.uip-nc-disabled,
html body .uip-nc-external-prev.uip-nc-disabled,
html body .uip-nc-external-next.uip-nc-disabled {
    opacity: 0.3 !important;
    cursor: default !important;
    pointer-events: none !important;
}

.elementor-editor-active .uip-nc-container {
    min-height: 400px;
}