@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700;800&display=swap');



:root {
    --bpi-orange: #ff6600;
    --bpi-dark-blue: #002855;
    --top-bg: #f5f5f5;
    --border-gray: #e5e5e5;
    --text-color: #555555;
    --font-barlow-regular: 'Barlow', sans-serif;
    --font-size-base: 14px;
    --color-primary: #ff6600;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #fff;
    font-family: var(--font-barlow-regular), sans-serif;
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    color: #333;
}


.Is_scroll{
    overflow: hidden;

}


.container {
    max-width: 1152px; 
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Navigation Styles (Keep as is) --- */
.top-nav { background: var(--top-bg); border-bottom: 1px solid var(--border-gray); height: 38px; }

.left-segments a, 
.right-utility a { 
    text-decoration: none; 
    font-size: 12px; 
    color: var(--text-color);     
    margin-right: 14px; 
    line-height: 38px; 
    display: inline-block; 
    position: relative; 
    transition: color 0.3s ease; 
}


.left-segments a:hover, 
.left-segments a.active,
.right-utility a:hover { 
    color: var(--bpi-orange); 
}


.left-segments a::after,
.right-utility a::after { 
    content: ""; 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    transform: translateX(-50%); 
    width: 0; 
    height: 2px; 
    background: var(--bpi-orange); 
    transition: width 0.3s ease-in-out; 
}

.left-segments a:hover::after, 
.left-segments a.active::after,
.right-utility a:hover::after { 
    width: 30px; 
}


.left-segments a.active { 
    font-weight: 700; 
}
.lang { font-size: 13px; color: var(--bpi-orange); font-weight: 700; margin-left: 14px; cursor: pointer; }
.main-nav { padding: 24px 0; }
.logo-section { display: flex; align-items: center; }
.bpi-brand { display: flex; align-items: center;  padding-right: 22px; }
.flower-icon { height: 48px; }
.bpi-logo-text { font-size: 44px; font-weight: 800; color: var(--bpi-dark-blue); margin-left: 10px; letter-spacing: -2px; line-height: 0.8; }
.caixa-group { display: flex; align-items: center; margin-left: 22px; }
.caixa-group .label { font-size: 11px; color: var(--bpi-dark-blue); margin-right: 8px; }
.caixabank-logo { height: 20px; }
.action-buttons { display: flex; gap: 12px; }
.btn-outline { text-decoration: none; border: 1px solid var(--bpi-orange); color: var(--bpi-orange); padding: 6px 18px; border-radius: 4px; font-weight: 700; font-size: 14px; }
.btn-filled { text-decoration: none; background: var(--bpi-orange); color: #fff; padding: 6px 24px; border-radius: 4px; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.btn-outline:hover{
    background: var(--bpi-orange);
    color: #fff;
}
.btn-filled:hover{
    color: var(--bpi-orange);
    background-color: #ffffff;
    border: 1px solid var(--bpi-orange);
}
.product-nav { background: #fff; border-bottom: 1px solid #f2f2f2; }
.nav-items {     padding: 0px 0 24px 0; }
.nav-items a {     text-decoration: none;
    color: #444;
    font-size: 14px;
    margin-right: 15px; }
.login-box-container {
    width: 446px;
    height: 420px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 5px;
}

.bpi-login-card {
    width: 100%;
    max-width: 322px; 
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.login-title {
    color: #f26522; /* BPI Orange */
    font-size: 16px;
    font-weight: 700;
}

.aderir-link {
    color: #f26522;
    text-decoration: none;
    font-size: 16px;
}

.input-group {
    margin-bottom: 25px;
}

.bpi-input {
    width: 100%;
    height: 46px;
    background-color: #f0f0f0; /* Light grey background */
    border: none;
    border-bottom: 2px solid #f26522; /* Orange bottom border */
    padding: 0 10px 0 10px;
    font-size: 15px;
    color: #666;
    outline: none;
}

.bpi-input::placeholder {
    color: #888;
}

.btn-row {
    display: flex;
    justify-content: flex-end;  
    margin-top: 20px;
}

.btn-entrar {
    background-color: #ff6600; /* Solid Orange */
    color: #fff;
    border: none;
    padding: 10px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-entrar:hover {
    background-color: #e65c00;
}

.login-footer {
    margin-top: 40px;
}

.security-link {
    color: #333399; /* Deep blue/purple link */
    text-decoration: none;
    font-size: 14px;
}

.security-link:hover {
    text-decoration: underline;
}



.bpi-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    background: #fff;
}


.header-up {
    transform: translateY(-39px); /* top-nav  */
}


body {
    padding-top: 150px; 
}


.login-box-container {
    position: fixed;
    top: 150px;
    right: calc((100vw - 1450px) / 2);
    z-index: 999;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: top 0.3s ease-in-out;
}

/* Small screens: keep at edge */
@media (max-width: 1200px) {
    .login-box-container {
        right: 10px;
    }
}

.header-up + .login-box-container,
.header-up ~ .login-box-container {
    top: 110px;
}


.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--bpi-orange);
    border-radius: 50%;
    width: 20px;
    height: 20px;
   
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bpi-login-card {
    position: relative;
    overflow: hidden; 
}


.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    background: rgb(255, 255, 255);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 99999;
}


.loader-img {
    width: 60px; 
    height: 60px;
}

@keyframes loader-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.login-footer {
    position: relative;
    z-index: 11;
}

/* --- Slider Section (Updated to 1056x286) --- */
.hero-slider {
    width: 100%;
    padding: 30px 0;
    margin-top: 20px;
    display: flex;         
    justify-content: center;
}

.slider-container {
    max-width: 1056px; 
    width: 100%;         
    height: 286px;    
    position: relative;
    overflow: hidden;      
    padding: 0;
}

.slides-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;         
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
}

.slide {
    /* position: fixed; */ 
    min-width: 100%;       
    height: 100%;
    opacity: 1;            
    flex-shrink: 0;        
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    position: fixed;
    bottom: 12px;          
    left: 0;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 99999;
}

.dot {
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 4px 2px #eeeeee;
    height: 3.2px;
    padding: 0;
    margin: 0 4px;
    width: 30px;
    cursor: pointer;       
    transition: background 0.3s;
}

.dot.active {
    background: var(--bpi-orange, #f39200); 
}






.sector-section {
    padding: 5px 0;
    background: #fff;
}

.container.column {
    max-width: 1056px;
    margin: 0 auto;
    flex-direction: column;
    align-items: flex-start;
}

.section-title {
    color: var(--bpi-orange);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
   
}

.sector-carousel-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.sector-track-container {
    width: 100%;
    overflow: hidden;
}

.sector-track {
    display: flex;
    transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.sector-card {
    min-width: 176px;
    height: 108px;
    margin: 0 24px; 
    background: #fff;
    border: 1px solid #f2f2f2;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    
    
    transform: scale(1) translateZ(0);
    transition: 400ms ease-out;
}

.sector-card:hover {
    transform: scale(0.95) translateZ(0);
    transition: 400ms ease-in;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.icon-box {
    height: 35px;
    margin-bottom: 10px;
}

.icon-box img {
    height: 100%;
}

.sector-card span {
  color: #4D4D4D;
    font-size: 16px;
}


.sector-nav {
    background: none;
    border: none;
    color: var(--bpi-orange);
    cursor: pointer;
    z-index: 5;
}

.sector-nav:disabled {
    color: #e0e0e0;
    cursor: not-allowed;
}

#sectorTrack > div > div > span.icon{
    font-size: 40px;
    color: var(--color-primary);
}





.grid-card-section {
    padding: 40px 0;
    background-color: #ffffff;
}

.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 488px); 
    justify-content: space-between;
    gap: 32px; 
    max-width: 1056px;
    margin: 0 auto;
}

/* Card Total Size: 488x307px */
.bpi-grid-card {
    width: 488px;
    height: 307px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

/* Image Size: 488x176px */
.card-img-box {
    width: 488px;
    height: 176px;
    overflow: hidden; 
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease; 
}

/* Hover Zoom Effect */
.bpi-grid-card:hover .card-img-box img {
    transform: scale(1.1);
}

.card-info-box {
    width: 488px;
    height: 131px; 
    padding: 20px 24px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-title {
    color: var(--bpi-orange);
    font-size: 16px;
    font-weight: 700;
   
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-sm {
    display: inline-block;
    width: fit-content;
    background: var(--bpi-orange);
    color: #fff;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

/* Responsive Logic */
@media (max-width: 1024px) {
    .grid-wrapper {
        grid-template-columns: 1fr; 
        justify-items: center;
    }
    .bpi-grid-card {
        max-width: 100%; 
    }
}



.action-slider-section {
    padding: 5px 0;
    background: #fff;
}

.section-title.underline {
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.section-title.underline::after {
    content: '';
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: var(--bpi-orange);
}

.action-card {
    min-width: 176px;
    margin: 0 30px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transform: scale(1) translateZ(0);
    transition: 400ms ease-out;
    will-change: transform;
}

.action-card:hover {
    transform: scale(0.95) translateZ(0);
    transition: 400ms ease-in;
}

.action-illustration {
    width: 167px;
    height: 150px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-illustration img {
    max-width: 100%;
    max-height: 100%;
}

.action-card span {
    font-size: 16px;
    color: #555;
    font-weight: 500;
    line-height: 1.3;
}




.news-section {
    padding: 50px 0;
    background: #fff;
}

.news-header-left {
    width: 100%;
    margin-bottom: 20px;
    text-align: left; 
}

.news-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 316px);
    gap: 24px;
    width: 100%;
    margin-bottom: 15px;
}

.news-bpi-card {
    width: 316px;
    height: 152px;
    background: #fff;
    border: 1px solid #f2f2f2;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.news-bpi-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.news-card-body p {
    font-size: 15px;
    color: #444;
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
}

.news-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-date {
    font-size: 13px;
    color: var(--bpi-orange);
    font-weight: 500;
}

.news-icon-arrow {
    color: var(--bpi-orange);
    font-size: 18px;
}

.view-all-container {
width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    padding-left: 5px;
}

.ver-tudo-btn {
    color: var(--bpi-orange);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.ver-tudo-btn:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .news-grid-layout {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}



.bpi-footer-wrapper {
    width: 100%;
    background-color: #ffffff; 
    display: flex;
    justify-content: center;
    padding: 20px 0; 
}

.footer-grey-box {
    width: 1152px;
    background-color: #e6e6e6; 
    padding: 60px 0;
    display: flex;
    justify-content: center;
    border-radius: 4px;
}

.footer-inner-data {
    width: 832px;
    display: flex;
    flex-direction: column;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-col {
    flex: 1;
}

.footer-header {
    color: #f26522; 
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 8px;
}

.footer-list li a {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
}

.footer-list li a:hover {
    color: #f26522;
}

.social-box-container {
    display: flex;
    gap: 0px;
    margin-top: 20px;
}

.orange-sq {
    width: 24px;
    height: 24px;
    display: inline-block;
    border-radius: 2px;
}

.footer-legal-section {
    border-top: 1px solid #d4d4d4;
    padding-top: 30px;
}

.legal-info {
    font-size: 12px; 
    color: #888888;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: left;
}

.orange-link {
    color: #1B0DAB;
    text-decoration: none;
    font-weight: normal;
}

.footer__links-social_icon_orange {
    font-size: 1.5em;
    color: var(--color-primary) !important;
}
.orange-link:hover {
    text-decoration: underline;
}




.custom-error-overlay {
    background-color: white;
    border: 1px solid #E60000;
    height: 300px;
    overflow: hidden;
    margin: 0;
    position: fixed;
    top: 50%; transform: translate(-50%, -50%);
    left: 0;
    
    z-index: 999999; width: 90%; max-width: 400px; box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: none; 
}

.custom-error-msg-wrap {
    align-items: center;
    display: flex;
    padding: 9px 26px 9px 11px;
    height: 100%; 
}

.custom-error-txt {
    color: #E60000;
    font-size: 14px;
    font-family: var(--font-barlow-regular);
}

.custom-error-btn-wrapper {
    cursor: pointer;
    color: #4d4d4d;
    display: inline-block;
    width: 30px;
    height: 30px;
    overflow: hidden;
    position: fixed;
    right: 36px; 
    text-align: center;
    top: 26px;   
    z-index: 101;
}

.custom-close-trigger {
    background-color: transparent;
    color: transparent !important;
    border: none;
    width: 100%;
    height: 100%;
    cursor: pointer;
    position: relative;
    display: block;
}

.custom-close-trigger:after {
    font-family: 'fwicons';
    content: "\e9b3";
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    position: fixed;
    top: 0;
    left: 0;
    color: #4d4d4d;
    font-size: 20px;
    visibility: visible;

}




/* Header Fixed - No hiding on scroll */
.mobile-bpi-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    display: none;
}

.mobile-container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    height: 80px;
}

/* Menu & Icons */
.mobile-nav-trigger, 
.mobile-acesso-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.mobile-menu-icon {
    width: 25px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu-icon span {
    height: 3px;
    background: var(--mobile-orange);
    width: 100%;
}

.mobile-icon-label {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}

/* Logo Styles */
.mobile-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-bpi-main-logo { 
    height: 56px; 
}




/* Media Query */
@media only screen and (max-width: 1280px) {
    .bpi-header {
        display: none;
    }
    .mobile-bpi-header {
        display: block;
    }

    .mobile-login-box-container {
        display: block !important;
    }
}

/* Login Box Container */
.mobile-login-box-container {
    position: fixed;
    top: 0;
    
    width: 100%;
    height: 120%;
    background: #fff;
    display: none;
    z-index: 1001;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.mobile-bpi-login-card {
    padding: 20px 40px;
    position: relative;
}

/* Header: Logo & Fechar */
.mobile-card-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    margin-top: 10px;
}

.mobile-img-bpi { 
    height: 31px; 
}

.mobile-close-action {
    text-align: center;
    color: var(--bpi-orange);
    cursor: pointer;
}

.mobile-close-icon { 
    font-size: 2rem; 
    display: block; 
    line-height: 1; 
}

.mobile-close-label { 
    font-size: 18px; 
    color: #666;
}

/* Title Row */
.mobile-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 45px;
}

.mobile-net-title { 
    color: #f60; 
    font-size: 18px; 
    font-weight: 700; 
}

.mobile-link-aderir { 
    color: var(--bpi-orange); 
    text-decoration: none; 
    font-size: 16px; 
}

/* Inputs - DUPLICATES REMOVED */
.mobile-input-style {
width: 100%;
    height: 46px;
    background: #eee;
    border: none;
    border-bottom: 1px solid var(--bpi-orange);
    padding: 0 10px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
    outline: none;
}

/* Orange Line */
.mobile-orange-line {
    height: 5px;
    background: var(--bpi-orange);
    width: 100px;
    margin-left: auto;
    margin-top: 5px;
}

/* Security Link */
.mobile-security-box { 
    margin: 20px 0; 
}

.mobile-security-text { 
    color: #333399;
    text-decoration: none;
    font-size: 16px;
    margin-top: 30px;
    display: block;
}

/* Buttons */
.mobile-btn-bpi-net {
    width: 100%;
    background: #fff;
    border: 1px solid var(--bpi-orange);
    color: var(--bpi-orange);
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
        margin-top: 50px;
}

.mobile-entrar-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.mobile-btn-entrar-small {
    background: var(--bpi-orange);
    color: #fff;
    border: none;
    padding: 10px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
}

/* Loader Overlay */
.mobile-login-overlay {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: 48%;
    background: rgba(255,255,255,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.mobile-loader-img { 
    width: 50px; 
}

.mobile-login-form{
position: relative;
}
.mobileError{
height: 242px;
    display: none;
    top: -60px;
    width: 100%;
    margin: auto;
}

.mobileError > div.custom-error-msg-wrap > span{
    color: #E60000;
    font-size: 14px;
}

/* BPI Error Block — matches real BPI site */
.ErrorBlock {
    background-color: #fff;
    border: 2px solid #E60000;
    margin: 10px 0 15px 0;
    padding: 0;
    position: relative;
}

.ErrorBlock .ErrorButtonContainer {
    padding: 5px 8px 0 0;
}

.ErrorBlock .Button.ErrorButton {
    background: none;
    border: none;
    color: #E60000;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 2px 8px;
}

.ErrorBlock .ErrorMessageContainer {
    padding: 15px 20px 20px 15px;
}

.ErrorBlock .ErrorMessage {
    color: #E60000;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.newdata{
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    -webkit-box-shadow: 0 0 10px #eee;
    box-shadow: 0 0 10px #eee;
    width: 176px;
    height: 148px;
}
.newdata > span:first-child{
        font-size: 40px !important;
        color: #ff6600 !important;
}

.newdata span:hover{
     color: #ff6600 !important;
}





.newcard2 {
    width: 364px;
    height: 324px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

/* Image Size: 488x176px */
.card-img-box {
    width: 364px;
    height: 176px;
    overflow: hidden; 
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease; 
}

/* Hover Zoom Effect */
.bpi-grid-card:hover .card-img-box img {
    transform: scale(1.1);
}

.newcard2 .card-info-box {
    width: 364px;
    height: 131px;
    padding: 20px 24px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grid-wrapper2{
        grid-template-columns: repeat(2, 364px);
}
/* Fix para mostrar erro */
.custom-error-overlay.show {
    display: flex !important;
}
