/********** Template CSS **********/
:root {
    --primary: #0369B0;
    --secondary: #F6F6F6;
    --light: #FFFFFF;
    --dark: #152440;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

.btn {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -17px;
    background: var(--primary);
    transform: skew(40deg);
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Barlow', sans-serif;
    padding: 35px 15px;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Navbar Brand - Desktop Styles */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 1rem;
}

.navbar-brand img {
    max-height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    flex-shrink: 0;
}

.navbar-brand-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        padding: 10px 0;
    }
    
    /* Mobile Menu Fix - Alinhamento Perfeito */
    .navbar-collapse {
        background: #FFFFFF;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
        width: 100%;
    }
    
    .navbar-nav {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .navbar-nav .nav-link {
        text-align: center;
        justify-content: center;
        display: flex !important;
    }
    
    .navbar-nav.ms-auto,
    .navbar-nav.me-auto {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .navbar-light .navbar-nav .nav-link {
        padding: 12px 15px;
        font-size: 16px;
        text-transform: uppercase;
        color: #152440 !important;
        text-align: center;
        width: auto;
        min-width: 200px;
        max-width: 100%;
        border-radius: 5px;
        margin: 4px 0;
        background: transparent;
    }
    
    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-light .navbar-nav .nav-link.active {
        color: #0369B0 !important;
        background-color: rgba(3, 105, 176, 0.1);
    }
    
    .navbar-toggler {
        border: 2px solid #0369B0;
        border-radius: 5px;
        padding: 8px 10px;
        margin-left: auto;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(3, 105, 176, 0.25);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28243, 82, 90, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    /* Navbar brand and toggler alignment */
    .navbar-brand-container {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
    }
    
    .navbar-brand {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }
    
    .navbar-brand img {
        max-height: 50px;
        width: auto;
        max-width: 180px;
        object-fit: contain;
        flex-shrink: 0;
    }
    
    .navbar-brand h1 {
        font-size: 22px;
        margin: 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(21, 36, 64, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.service-item {
    position: relative;
    overflow: hidden;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-item p {
    transition: .3s;
}

.service-item i {
    color: #FFFFFF;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Partners Section Styles */
.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: .3s;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.partner-item img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/* Mobile - Partners: 1 per row */
@media (max-width: 991.98px) {
    .partner-item {
        height: 100px;
    }
    
    .partner-item img {
        max-height: 50px;
        max-width: 80%;
    }
}

/* Mobile specific fix for icons visibility */
@media (max-width: 991.98px) {
    .service-item {
        height: auto;
        padding: 30px 20px;
    }
    
    .service-icon {
        display: flex !important;
        visibility: visible !important;
    }
    
    .service-icon i {
        color: #FFFFFF !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Team Carousel Styles */
.team-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
    margin: 0 auto;
    max-width: 400px;
}

.team-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: .5s;
}

.team-item .team-text {
    padding: 20px;
    background: var(--primary);
    transition: .5s;
}

.team-item .team-text h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.team-item .team-text p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

/* Team Carousel Styles */
.team-cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 40px;
}

.team-card {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}

.team-card:nth-child(2) {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}

.team-card:nth-child(3) {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}

.team-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.team-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.team-item .team-text {
    padding: 20px;
    background: var(--primary);
}

.team-item .team-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.team-item .team-text p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
}

/* Navigation Buttons */
.team-nav-btn {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    margin: 0 -20px;
}

.team-nav-btn:hover {
    background: #0284c7;
}

.team-nav-btn .carousel-control-prev-icon,
.team-nav-btn .carousel-control-next-icon {
    width: 18px;
    height: 18px;
    background-size: 100%;
    filter: brightness(0) invert(1);
}

/* Dots Indicators */
.team-dots {
    margin-top: 25px;
    position: relative;
    bottom: 0;
}

.team-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.4;
    margin: 0 6px;
    border: none;
}

.team-dots button.active {
    opacity: 1;
    transform: scale(1.2);
}

/* Desktop - Show all cards in each slide */
@media (min-width: 992px) {
    .team-card {
        display: block !important;
    }
    
    .team-item {
        max-width: 100%;
    }
    
    .team-item img {
        height: 280px;
    }
}

/* Mobile - Show only 1 card per slide */
@media (max-width: 991.98px) {
    .team-cards-container {
        display: block !important;
        padding: 0 15px;
    }
    
    .team-card {
        flex: 0 0 100%;
        max-width: 100%;
        display: none !important;
    }
    
    .team-card:first-child {
        display: block !important;
    }
    
    .team-item {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
    
    .team-item img {
        height: 280px;
        width: 100%;
    }
    
    .team-item .team-text {
        padding: 20px;
    }
    
    .team-nav-btn {
        width: 45px;
        height: 45px;
        margin: 0 -5px;
    }
}

@media (max-width: 576px) {
    .team-cards-container {
        padding: 0 10px;
    }
    
    .team-item {
        max-width: 100%;
        width: 100%;
    }
    
    .team-item img {
        height: 260px;
        width: 100%;
    }
    
    .team-item .team-text {
        padding: 18px;
    }
    
    .team-item .team-text h3 {
        font-size: 1.1rem;
    }
    
    .team-item .team-text p {
        font-size: 0.85rem;
    }
    
    .team-nav-btn {
        width: 40px;
        height: 40px;
        margin: 0 -3px;
    }
}

/* Desktop - Show 3 cards per slide with carousel */
@media (min-width: 992px) {
    .team-cards-container {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding: 0 60px;
    }
    
    .team-card {
        flex: 0 0 calc(33.333% - 14px);
        max-width: calc(33.333% - 14px);
        display: block !important;
    }
    
    .team-item {
        max-width: 100%;
    }
    
    .team-item img {
        height: 280px;
    }
    
    .team-nav-btn {
        width: 50px;
        height: 50px;
        margin: 0 -30px;
    }
}

/* Mobile - Show one card at a time with carousel */
@media (max-width: 991.98px) {
    .team-item {
        max-width: 100%;
    }
    
    .team-item img {
        height: 280px;
    }
    
    .team-carousel-control {
        width: 40px;
        height: 40px;
        top: 40%;
    }
    
    .carousel-item .row {
        margin: 0;
        display: flex;
    }
    
    .carousel-item .col-lg-4,
    .carousel-item .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .carousel-item .team-item {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .team-item img {
        height: 250px;
    }
    
    .team-item .team-text {
        padding: 15px;
    }
    
    .team-item .team-text h3 {
        font-size: 1.1rem;
    }
    
    .team-item .team-text p {
        font-size: 0.8rem;
    }
    
    .team-carousel-control {
        width: 35px;
        height: 35px;
    }
}

.blog-item img {
    transition: .5s;
}

.blog-item:hover img {
    transform: scale(1.1);
}

/* Override Bootstrap Primary Color to #0369B0 */
:root {
    --bs-primary: #0369B0 !important;
    --bs-primary-rgb: 3, 105, 176 !important;
}

.text-primary {
    color: #0369B0 !important;
}

.bg-primary {
    background-color: #0369B0 !important;
}

.btn-primary {
    background-color: #0369B0 !important;
    border-color: #0369B0 !important;
    color: #FFFFFF !important;
}

.btn-primary:hover {
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #FFFFFF !important;
}

.btn-outline-primary {
    color: #0369B0 !important;
    border-color: #0369B0 !important;
}

.btn-outline-primary:hover {
    background-color: #0369B0 !important;
    border-color: #0369B0 !important;
    color: #FFFFFF !important;
}

.form-check-input:checked {
    background-color: #0369B0 !important;
    border-color: #0369B0 !important;
}

.form-check-input:focus {
    border-color: #0369B0 !important;
    box-shadow: 0 0 0 0.25rem rgba(3, 105, 176, 0.25) !important;
}

.form-control:focus {
    border-color: #0369B0 !important;
    box-shadow: 0 0 0 0.25rem rgba(3, 105, 176, 0.25) !important;
}

.form-select:focus {
    border-color: #0369B0 !important;
    box-shadow: 0 0 0 0.25rem rgba(3, 105, 176, 0.25) !important;
}

.navbar-light .navbar-nav .nav-link.active {
    color: #0369B0 !important;
}

a {
    color: #0369B0 !important;
}

a:hover {
    color: #0284c7 !important;
}

.table-primary {
    --bs-table-bg: #e0f2fe !important;
    --bs-table-striped-bg: #d4e8fc !important;
    --bs-table-active-bg: #c8ddfa !important;
    --bs-table-hover-bg: #ccddf8 !important;
    color: #000 !important;
    border-color: #c8ddfa !important;
}

.nav-pills .nav-link.active {
    background-color: #0369B0 !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #0369B0 !important;
}

.list-group-item.active {
    background-color: #0369B0 !important;
    border-color: #0369B0 !important;
}

.link-primary {
    color: #0369B0 !important;
}

.link-primary:hover,
.link-primary:focus {
    color: #0284c7 !important;
}

.form-range::-webkit-slider-thumb {
    background-color: #0369B0 !important;
}

.form-range::-moz-range-thumb {
    background-color: #0369B0 !important;
}

.form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(3, 105, 176, 0.25) !important;
}

.form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(3, 105, 176, 0.25) !important;
}

.btn-check:focus + .btn-primary,
.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(3, 105, 176, 0.5) !important;
}

.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) grayscale(100) contrast(2) hue-rotate(180deg);
}

.top-shape::before {
    background: #0369B0;
}