/**
 * Custom Styles for Santos & Gusmão Advocacia
 */

/* Additional Styles */
.post-item,
.service-card,
.team-member {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.post-item.animate-in,
.service-card.animate-in,
.team-member.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Header Scrolled State */
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Page Loader com Ícone de Balança */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loader.active {
    opacity: 1;
    visibility: visible;
}

.loader-content {
    text-align: center;
}

.balance-loader-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: balanceLoaderSwing 2s ease-in-out infinite;
    transform-origin: center top;
    display: inline-block;
}

@keyframes balanceLoaderSwing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-12deg);
    }
    75% {
        transform: rotate(12deg);
    }
}

.loader-text {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
    animation: loaderTextPulse 1.5s ease-in-out infinite;
}

@keyframes loaderTextPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive Loader */
@media (max-width: 767px) {
    .balance-loader-icon {
        font-size: 3rem;
    }
    
    .loader-text {
        font-size: 1rem;
    }
}

/* Modern Mobile Menu */
.modern-menu-toggle {
    border: none;
    background: transparent;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1002;
    cursor: pointer;
}

.modern-menu-toggle:focus {
    box-shadow: none;
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    position: relative;
    z-index: 100;
}

.hamburger-line {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.modern-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.modern-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.modern-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.navbar-collapse {
    position: relative;
}

/* Mobile Menu Overlay Background */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 61, 77, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 991.98px) {
    /* Hamburger: mantém cor padrão no mobile e muda para branco apenas quando aberto */
    .modern-menu-toggle[aria-expanded="true"] .hamburger-line {
        background: #ffffff;
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
        padding: 5rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1000;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }
    
    .navbar-collapse.show {
        right: 0;
    }
    
    /* Mobile Menu Items */
    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-item {
        opacity: 0;
        transform: translateX(30px);
    }
    
    .navbar-collapse.show .nav-item {
        animation: slideInRight 0.4s ease forwards;
    }
    
    .navbar-collapse.show .nav-item:nth-child(1) {
        animation-delay: 0.1s;
    }
    
    .navbar-collapse.show .nav-item:nth-child(2) {
        animation-delay: 0.15s;
    }
    
    .navbar-collapse.show .nav-item:nth-child(3) {
        animation-delay: 0.2s;
    }
    
    .navbar-collapse.show .nav-item:nth-child(4) {
        animation-delay: 0.25s;
    }
    
    .navbar-collapse.show .nav-item:nth-child(5) {
        animation-delay: 0.3s;
    }
    
    .navbar-collapse.show .nav-item:nth-child(6) {
        animation-delay: 0.35s;
    }
    
    @keyframes slideInRight {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-link {
        color: rgba(255, 255, 255, 0.95) !important;
        font-size: 1.05rem;
        font-weight: 500;
        padding: 0.875rem 2.75rem 0.875rem 1.25rem !important; /* espaço extra para o ícone à direita */
        border-radius: 10px;
        transition: background-color 0.25s ease, color 0.25s ease, padding 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-height: 48px;
        flex-wrap: nowrap;
        line-height: 1.5;
        text-align: left;
        gap: 0.75rem;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 0;
        background: var(--secondary-color);
        border-radius: 0 4px 4px 0;
        transition: width 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link:focus,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.12);
        color: white !important;
        padding-left: 1.75rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
        transform: translateX(2px);
    }
    
    .nav-link:hover::before,
    .nav-link:focus::before,
    .nav-link.active::before {
        width: 4px;
    }
    
    .nav-link:hover::after,
    .nav-link:focus::after,
    .nav-link.active::after {
        opacity: 1;
    }
    
    /* Close button for mobile menu */
    .btn-close-menu {
        display: none !important; /* Usamos apenas o hambúrguer como botão de fechar no mobile */
    }
    
    .btn-close-menu:hover,
    .btn-close-menu:focus {
        opacity: 1;
        transform: rotate(90deg);
        outline: none;
    }
    
    .btn-close-menu i {
        font-size: 1.5rem;
    }
    
    /* Remove duplicate close button from ::after */
    .navbar-collapse::after {
        display: none !important;
    }
    
    /* Menu icon indicators - Aligned to the right */
    .nav-link[href*="servicos"]::after,
    .nav-link[href*="equipe"]::after,
    .nav-link[href*="contato"]::after,
    .nav-link[href*="sobre"]::after,
    .nav-link[href*="home"]::after,
    .nav-link[href="/"]::after {
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: 1.25rem;
        top: 50%;
        transform: translateY(-50%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        line-height: 1;
        opacity: 0.75;
        transition: opacity 0.25s ease, transform 0.25s ease;
        transform: translateY(-50%); /* ajuste fino para alinhar com o texto */
    }
    
    .nav-link[href*="servicos"]::after {
        content: '\f0b1';
    }
    
    .nav-link[href*="equipe"]::after {
        content: '\f0c0';
    }
    
    .nav-link[href*="contato"]::after {
        content: '\f0e0';
    }
    
    .nav-link[href*="sobre"]::after {
        content: '\f2bb';
    }
    
    .nav-link[href*="home"]::after,
    .nav-link[href="/"]::after {
        content: '\f015';
    }

    /* Hover/active effect específico nos ícones do menu mobile */
    .nav-link:hover::after,
    .nav-link:focus::after,
    .nav-link.active::after {
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
    }
}

/* Desktop Menu - Keep original style */
@media (min-width: 992px) {

    .modern-menu-toggle {
        display: none;
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        color: var(--text-dark) !important;
        font-weight: 500;
        padding: 0.5rem 1rem !important;
        transition: all 0.3s ease;
        position: relative;
    }
    
    /* Remove menu icons on desktop */
    .nav-link[href*="servicos"]::after,
    .nav-link[href*="equipe"]::after,
    .nav-link[href*="contato"]::after,
    .nav-link[href*="sobre"]::after,
    .nav-link[href*="home"]::after,
    .nav-link[href="/"]::after {
        content: '';
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: var(--secondary-color);
        transition: width 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link:focus,
    .nav-link.active {
        color: var(--primary-color) !important;
    }
    
    .nav-link:hover::after,
    .nav-link:focus::after,
    .nav-link.active::after {
        width: 80%;
    }
}

/* Form Errors - Bootstrap já tem classes is-invalid */

/* Posts Container - Usa Bootstrap grid */
.post-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.post-thumbnail {
    width: 100%;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 2rem;
}

.entry-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.entry-meta span {
    display: flex;
    align-items: center;
}

/* Page Content */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0;
}

.page-thumbnail {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.page-thumbnail img {
    width: 100%;
    height: auto;
}

.entry-content {
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Single Post */
.single-post {
    max-width: 100%;
    margin: 0 auto;
    padding: 3rem 0;
}

.single-post .entry-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.single-post .entry-content {
    margin-bottom: 2rem;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-links a {
    background-color: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.tags-links a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Post Navigation */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    background-color: var(--border-color);
}

.nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
}

/* Pagination - Bootstrap já tem estilos, apenas customização */
.pagination .page-numbers {
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Comments */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.comments-area {
    margin-top: 2rem;
}

.comments-header {
    border-bottom: 2px solid var(--border-color);
}

.comments-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    padding: 0;
    margin-bottom: 2rem;
}

.comment-wrapper {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.comment-wrapper:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.comment-avatar img {
    border: 3px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-author-name {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.comment-author-name a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-author-name a:hover {
    color: var(--accent-color);
}

.comment-meta {
    font-size: 0.875rem;
}

.comment-text {
    color: var(--text-color);
    line-height: 1.7;
    margin-top: 0.5rem;
}

.comment-text p {
    margin-bottom: 0.75rem;
}

.comment-awaiting-moderation {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0;
}

.comment-actions {
    margin-top: 1rem;
}

.comment-actions .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Nested Comments (Replies) */
.comment-item .children {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 3rem;
}

.comment-item .children .comment-wrapper {
    background: white;
    border-left: 3px solid var(--secondary-color);
    padding-left: 1.25rem;
}

.comment-item .children .comment-avatar img {
    border-color: var(--accent-color);
}

/* Comment Form */
.comment-form-wrapper {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.comment-form-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.comment-form .form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.comment-form .form-control {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.comment-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(10, 61, 77, 0.1);
}

.comment-notes {
    background: rgba(10, 61, 77, 0.05);
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.comment-form .form-submit {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.comment-submit-btn {
    padding: 0.875rem 2rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    background-color: var(--primary-color) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(10, 61, 77, 0.25) !important;
    min-width: 180px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.comment-submit-btn:hover {
    background-color: var(--accent-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(10, 61, 77, 0.35) !important;
    color: white !important;
}

.comment-submit-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(10, 61, 77, 0.25) !important;
}

.comment-submit-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(10, 61, 77, 0.25) !important;
}

.comment-submit-btn i {
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

/* Comment Pagination */
.comments-pagination {
    margin-top: 2rem;
}

.comments-pagination .page-numbers {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.comments-pagination .page-numbers li {
    margin: 0;
}

.comments-pagination .page-numbers a,
.comments-pagination .page-numbers span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.comments-pagination .page-numbers a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.comments-pagination .page-numbers .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}

/* Responsive Comments */
@media (max-width: 767px) {
    .comment-wrapper {
        padding: 1rem;
    }
    
    .comment-avatar {
        margin-right: 1rem !important;
    }
    
    .comment-avatar img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .comment-item .children {
        margin-left: 1.5rem;
    }
    
    .comment-form-wrapper {
        padding: 1.5rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .comment-meta {
        margin-top: 0.5rem;
    }
    
    .comment-form .form-submit {
        text-align: center !important;
    }
    
    .comment-submit-btn {
        width: 100% !important;
        min-width: auto !important;
        padding: 0.875rem 1.5rem !important;
    }
}

/* Load More Posts Button */
.load-more-wrapper {
    margin-top: 3rem;
    padding-top: 2rem;
}

.load-more-btn {
    position: relative;
    padding: 1rem 2.5rem !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    border-radius: 50px !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(10, 61, 77, 0.3) !important;
    transition: all 0.3s ease !important;
    min-width: 250px;
    overflow: hidden;
}

.load-more-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(10, 61, 77, 0.4) !important;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%) !important;
    color: white !important;
}

.load-more-btn:active {
    transform: translateY(-1px) !important;
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Balance Icon Animation */
.balance-icon-wrapper {
    display: inline-block;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.balance-icon {
    font-size: 1.5rem;
    display: inline-block;
    animation: balanceSwing 2s ease-in-out infinite;
    transform-origin: center top;
}

@keyframes balanceSwing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-8deg);
    }
    75% {
        transform: rotate(8deg);
    }
}

.load-more-btn:hover .balance-icon {
    animation-duration: 1s;
}

.load-more-btn:disabled .balance-icon {
    animation: none;
}

.loading-spinner {
    display: inline-flex;
    align-items: center;
}

/* Responsive Load More */
@media (max-width: 767px) {
    .load-more-btn {
        width: 100%;
        min-width: auto;
        padding: 0.875rem 1.5rem !important;
    }
    
    .balance-icon {
        font-size: 1.25rem;
    }
}

/* Error 404 */
.error-404 {
    text-align: center;
    padding: 5rem 0;
}

.error-404 .page-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.error-404 .page-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-404 ul {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.error-404 ul li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.error-404 ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Archive */
.page-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.archive-description {
    margin-top: 1rem;
    color: var(--text-light);
}

/* Search */
.search-form {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.search-form button {
    padding: 0.75rem 2rem;
}

/* Service Thumbnail */
.service-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.service-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.service-card:hover .service-thumbnail img {
    transform: scale(1.05);
}

/* Single Serviço */
/* Single Service styles - max-width removed to use Bootstrap container */

.servico-thumbnail {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.servico-thumbnail img {
    width: 100%;
    height: auto;
}

/* Service Card Enhanced */
.service-card {
    transition: all 0.3s ease;
    border: none !important;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-card-header {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-image-link {
    display: block;
    height: 100%;
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-icon-header {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.service-icon-large {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon-large {
    transform: scale(1.1) rotate(5deg);
}

.service-icon-small {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(201, 169, 97, 0.1);
    border-radius: 50%;
    color: var(--secondary-color);
    font-size: 1.75rem;
    margin: 0 auto;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 61, 77, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card-header:hover .service-overlay {
    opacity: 1;
}

.service-card .card-title a:hover {
    color: var(--primary-color) !important;
}

/* Single Service Enhanced */
.service-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    margin-bottom: 0;
}

.service-hero-content {
    position: relative;
    z-index: 1;
}

.service-icon-badge {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    backdrop-filter: blur(10px);
}

.service-hero-image img {
    max-height: 400px;
    object-fit: cover;
}

.service-icon-hero-large {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 5rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.service-meta-bar {
    font-size: 0.9rem;
}

.service-meta-bar i {
    font-size: 1rem;
}

.single-servico .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 100%;
}

.single-servico .entry-content h2 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.single-servico .entry-content h3 {
    color: var(--accent-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-servico .entry-content ul,
.single-servico .entry-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.single-servico .entry-content ul li,
.single-servico .entry-content ol li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

/* Service CTA Cards */
.service-cta-card {
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary-color) !important;
}

.service-cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.service-cta-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
}

/* Related Services */
.related-services {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    margin-bottom: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.25rem 0;
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
    font-weight: 600;
    padding-left: 0.5rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
    content: "›";
    padding: 0 0.75rem;
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* Espaçamento extra antes do último item */
.breadcrumb-item.active::before {
    padding-right: 0.75rem;
}

/* Single Equipe - mantido para compatibilidade */
.equipe-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.equipe-photo {
    flex-shrink: 0;
}

.equipe-info {
    flex: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .posts-container {
        grid-template-columns: 1fr;
    }

    .nav-links {
        grid-template-columns: 1fr;
    }

    .single-post,
    .page-content,
    .single-servico,
    .single-equipe {
        padding: 2rem 0;
    }

    .error-404 .page-title {
        font-size: 3rem;
    }

    .equipe-header {
        flex-direction: column;
        text-align: center;
    }

    .equipe-photo {
        margin: 0 auto;
    }
    
    .team-photo,
    .team-photo-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .team-overlay {
        width: 150px;
        height: 150px;
    }
    
    .equipe-photo-single img,
    .team-photo-placeholder-large {
        width: 200px;
        height: 200px;
    }
    
    .team-photo-placeholder-large {
        font-size: 4rem;
    }
    
    .service-card-header {
        height: 180px;
    }
    
    .service-icon-large {
        font-size: 3.5rem;
    }
    
    .service-icon-hero {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }
    
    .service-hero {
        text-align: center;
    }
    
    .service-hero-content h1 {
        font-size: 2rem;
    }
    
    .service-hero-content .lead {
        font-size: 1rem;
    }
    
    .service-icon-hero-large {
        width: 150px;
        height: 150px;
        font-size: 3.5rem;
    }
    
    .service-icon-badge {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .service-hero-actions {
        justify-content: center;
    }
    
    .service-hero-actions .btn {
        width: 100%;
    }
    
    .service-meta-bar {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .single-servico .entry-content {
        font-size: 1rem;
    }
    
    .service-cta-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .single-servico .card-body {
        padding: 1.5rem !important;
    }
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-light);
}

.contact-info {
    padding: 1rem 0;
}

.contact-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-item-icon {
    font-size: 1.25rem;
    color: var(--secondary-color);
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(201, 169, 97, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-item-icon {
    background-color: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

/* Contact Form Styles */
.contact-form {
    background: var(--bg-white);
    border: none;
}

.contact-form h3 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 6px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(201, 169, 97, 0.25);
    outline: none;
}


.contact-form .form-control.is-valid,
.contact-form .form-select.is-valid {
    border-color: #198754;
}

.contact-form .form-control.is-invalid,
.contact-form .form-select.is-invalid {
    border-color: #dc3545;
}

.contact-form .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 61, 77, 0.3);
}

.contact-form .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-form .alert {
    border-radius: 8px;
    border: none;
}

.contact-form .form-check-label a {
    color: var(--accent-color);
    text-decoration: underline;
}

.contact-form .form-check-label a:hover {
    color: var(--secondary-color);
}

/* Team Section Enhanced */
.team-section {
    background-color: var(--bg-light);
}

/* Latest News Section */
.latest-news-section {
    background-color: var(--bg-white);
}

.latest-news-section .section-title {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.latest-news-section .lead {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Swiper carrosséis - Serviços e Equipe */
.services-carousel,
.team-carousel {
    position: relative;
}

/* Estilos do Swiper apenas em mobile - carrossel horizontal */
@media (max-width: 767.98px) {
    /* Remove comportamento de grid Bootstrap em mobile */
    .services-carousel .swiper-wrapper.row,
    .team-carousel .swiper-wrapper.row {
        display: flex !important;
        flex-wrap: nowrap !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-bottom: 0.5rem;
    }

    /* Slides com largura fixa para carrossel horizontal */
    .services-carousel .swiper-slide,
    .team-carousel .swiper-slide {
        height: auto;
        width: 85% !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Garante que o container tenha overflow para o carrossel funcionar */
    .services-carousel.swiper,
    .team-carousel.swiper {
        overflow: hidden !important;
    }
}

.services-carousel .swiper-button-prev,
.services-carousel .swiper-button-next,
.team-carousel .swiper-button-prev,
.team-carousel .swiper-button-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
}

.services-carousel .swiper-button-prev::after,
.services-carousel .swiper-button-next::after,
.team-carousel .swiper-button-prev::after,
.team-carousel .swiper-button-next::after {
    font-size: 1.1rem;
    font-weight: 700;
}

.services-carousel .swiper-button-prev,
.team-carousel .swiper-button-prev {
    left: -10px;
}

.services-carousel .swiper-button-next,
.team-carousel .swiper-button-next {
    right: -10px;
}

/* Estilos da paginação (dots) do carrossel */
.services-carousel .swiper-pagination,
.team-carousel .swiper-pagination {
    position: relative !important;
    margin-top: 2rem !important;
    margin-bottom: 0 !important;
    bottom: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.services-carousel .swiper-pagination-bullet,
.team-carousel .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(10, 61, 77, 0.3) !important;
    opacity: 1 !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
    border-radius: 50% !important;
}

.services-carousel .swiper-pagination-bullet-active,
.team-carousel .swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    width: 14px !important;
    height: 14px !important;
    transform: scale(1.2) !important;
}

.services-carousel .swiper-pagination-bullet:hover,
.team-carousel .swiper-pagination-bullet:hover {
    background: var(--secondary-color) !important;
    transform: scale(1.1) !important;
}

/* Em desktop (≥768px): Swiper não interfere, grid Bootstrap funciona normalmente */
@media (min-width: 768px) {
    /* Esconde controles do carrossel */
    .services-carousel .swiper-button-prev,
    .services-carousel .swiper-button-next,
    .team-carousel .swiper-button-prev,
    .team-carousel .swiper-button-next,
    .services-carousel .swiper-pagination,
    .team-carousel .swiper-pagination {
        display: none !important;
    }
    
    /* Remove qualquer interferência do Swiper no layout */
    .services-carousel.swiper,
    .team-carousel.swiper {
        overflow: visible !important;
    }
    
    /* Garante que swiper-wrapper se comporte como row do Bootstrap */
    .services-carousel .swiper-wrapper.row,
    .team-carousel .swiper-wrapper.row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: calc(var(--bs-gutter-x) * -.5) !important;
        margin-right: calc(var(--bs-gutter-x) * -.5) !important;
    }
    
    /* Garante que swiper-slide se comporte como col do Bootstrap */
    .services-carousel .swiper-slide.col-md-6,
    .services-carousel .swiper-slide.col-lg-4,
    .team-carousel .swiper-slide.col-md-6,
    .team-carousel .swiper-slide.col-lg-3 {
        width: 100% !important;
        flex: 0 0 auto !important;
        padding-left: calc(var(--bs-gutter-x) * .5) !important;
        padding-right: calc(var(--bs-gutter-x) * .5) !important;
    }
    
    /* Aplica larguras Bootstrap corretas */
    @media (min-width: 768px) {
        .services-carousel .swiper-slide.col-md-6 {
            flex: 0 0 auto;
            width: 50% !important;
        }
        .team-carousel .swiper-slide.col-md-6 {
            flex: 0 0 auto;
            width: 50% !important;
        }
    }
    
    @media (min-width: 992px) {
        .services-carousel .swiper-slide.col-lg-4 {
            flex: 0 0 auto;
            width: 33.33333333% !important;
        }
        .team-carousel .swiper-slide.col-lg-3 {
            flex: 0 0 auto;
            width: 25% !important;
        }
    }
}

/* Team Member Card */
.team-member {
    transition: all 0.3s ease;
    overflow: hidden;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.team-member-photo-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.team-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 5px solid var(--secondary-color);
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.team-photo-link {
    display: block;
    position: relative;
}

.team-photo-placeholder {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    border: 5px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.team-photo-placeholder-large {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 6rem;
    border: 6px solid var(--secondary-color);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 61, 77, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    margin: 0 auto;
    width: 180px;
    height: 180px;
}

.team-member-photo-wrapper:hover .team-overlay {
    opacity: 1;
}

.team-member-photo-wrapper:hover .team-photo,
.team-member-photo-wrapper:hover .team-photo-placeholder {
    transform: scale(1.05);
}

.team-member .card-title a:hover {
    color: var(--primary-color) !important;
}

/* Single Team Member */
.single-equipe {
    padding: 2rem 0;
}

.equipe-photo-single img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 6px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.equipe-role {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Ajustes para tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .single-equipe .card-body .row {
        align-items: flex-start !important;
    }
    
    .single-equipe .col-md-4 {
        text-align: center;
        margin-bottom: 2rem !important;
    }
    
    .single-equipe .col-md-8 {
        text-align: left !important;
    }
    
    .single-equipe .entry-title {
        text-align: left !important;
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .single-equipe .equipe-role {
        text-align: left !important;
        margin-bottom: 1.5rem;
    }
    
    .single-equipe .team-contact-info {
        text-align: left !important;
    }
    
    .single-equipe .equipe-photo-single img,
    .single-equipe .team-photo-placeholder-large {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }
    
    .single-equipe .entry-content {
        text-align: left;
        line-height: 1.8;
    }
    
    .single-equipe .entry-content p {
        margin-bottom: 1.25rem;
    }
}

/* Alinhamento e espaçamento do formulário */
.contact-form .row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.contact-form .row > [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.contact-form .mb-3:last-of-type {
    margin-bottom: 1.5rem !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .contact-form {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .contact-form .row > [class*="col-md-"] {
        margin-bottom: 1rem;
    }
    
    .contact-form h3 {
        font-size: 1.5rem;
    }
    
    .contact-item {
        margin-bottom: 1.5rem !important;
    }
}

/* Privacy Policy Page Styles */
.privacy-policy-content section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.privacy-policy-content section:last-child {
    border-bottom: none;
}

.privacy-policy-content h2 {
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.privacy-policy-content ul {
    padding-left: 1.5rem;
}

.privacy-policy-content ul li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.contact-info-box {
    border-left: 4px solid var(--secondary-color);
}

.contact-info-box a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-info-box a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Blog Styles */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
}

.blog-hero h1 {
    color: white;
}

.blog-hero .lead {
    color: rgba(255, 255, 255, 0.9);
}

/* Blog Post Cards */
.post-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.post-thumbnail-wrapper {
    height: 200px;
    overflow: hidden;
}

.post-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-overlay {
    background: rgba(10, 61, 77, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-item:hover .post-overlay {
    opacity: 1;
}

.post-icon-header {
    background: linear-gradient(135deg, rgba(10, 61, 77, 0.1) 0%, rgba(21, 107, 122, 0.1) 100%);
}

/* Post Hero Section */
.post-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.post-hero .container {
    position: relative;
    z-index: 1;
}

.post-hero-content h1 {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.post-category-badge .badge {
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.post-category-badge .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-hero-image img {
    max-height: 400px;
    width: auto;
    object-fit: cover;
}

.post-icon-hero-large {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.post-icon-hero-large i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.8);
}

.post-meta-bar {
    font-size: 0.9rem;
}

.post-meta-bar i {
    font-size: 1rem;
}

.post-share .btn {
    transition: all 0.3s ease;
}

.post-share .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Single Post Styles */
.single-post .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-post .entry-content h2 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.single-post .entry-content h3 {
    color: var(--accent-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.single-post .entry-content ul li,
.single-post .entry-content ol li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.single-post .entry-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.single-post .tags-links a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.single-post .tags-links a:hover {
    background: var(--primary-color);
    color: white;
}

/* Post Navigation */
.post-navigation .card {
    transition: all 0.3s ease;
}

.post-navigation .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.post-navigation a {
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: var(--primary-color) !important;
}

/* Related Posts */
.related-posts .card {
    transition: all 0.3s ease;
}

.related-posts .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.related-posts .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-posts .card:hover .card-img-top {
    transform: scale(1.05);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-light);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.25rem 0;
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-light);
    font-weight: 600;
    padding-left: 0.5rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-light);
    padding: 0 0.75rem;
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* Espaçamento extra antes do último item */
.breadcrumb-item.active::before {
    padding-right: 0.75rem;
}

/* Responsive Breadcrumb */
@media (max-width: 767px) {
    .breadcrumb {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .breadcrumb-item {
        font-size: 0.85rem;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 0.5rem;
        font-size: 1rem;
    }
    
    .breadcrumb-item.active {
        padding-left: 0.25rem;
        max-width: 200px; /* Limita largura em mobile */
        white-space: normal; /* Permite quebra de linha em mobile */
        word-break: break-word;
    }
}

/* Responsive Blog */
@media (max-width: 767px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .single-post .entry-content {
        font-size: 1rem;
    }
    
    .post-thumbnail-wrapper {
        height: 180px;
    }
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a2d3a 100%);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="footer-grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-grid)"/></svg>');
    opacity: 0.5;
}

.footer-main {
    position: relative;
    z-index: 1;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Footer Social Links */
.footer-social h5 {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--secondary-color);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-link:hover i {
    color: white !important;
}

.social-link i {
    font-size: 1.1rem;
    color: inherit;
    transition: color 0.3s ease;
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu li:nth-last-child(2) {
    margin-bottom: 1.5rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-menu a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-link-more {
    color: var(--secondary-color) !important;
    font-weight: 500;
}

.footer-link-more:hover {
    color: white !important;
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-item {
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.footer-contact-item strong {
    color: white;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.footer-contact-item p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--secondary-color);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--secondary-color);
}

/* Footer Custom Logo */
.footer-about .custom-logo {
    max-height: 60px;
    width: auto;
}

/* Responsive Footer */
@media (max-width: 767px) {
    .footer-main {
        padding: 3rem 0 !important;
    }
    
    .footer-widget {
        margin-bottom: 2.5rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center !important;
    }
    
    .footer-bottom .col-md-6 {
        text-align: center !important;
    }
    
    .post-hero {
        padding: 3rem 0;
    }
    
    .post-hero-content h1 {
        font-size: 2rem;
    }
    
    .post-hero-image {
        margin-top: 2rem;
    }
    
    .post-hero-image img {
        max-height: 250px;
    }
    
    .post-icon-hero-large {
        width: 150px;
        height: 150px;
    }
    
    .post-icon-hero-large i {
        font-size: 3.5rem;
    }
    
    .post-hero-meta {
        font-size: 0.85rem;
        gap: 1rem !important;
    }
    
    .post-meta-bar {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
}

/* VLibras - Acessibilidade em Libras */
div[vw] {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
}

div[vw] .vw-access-button {
    background-color: var(--primary-color) !important;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

div[vw] .vw-access-button:hover {
    background-color: var(--accent-color) !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

div[vw] .vw-access-button::before {
    content: '👋';
    font-size: 28px;
}

@media (max-width: 767.98px) {
    div[vw] {
        bottom: 15px;
        right: 15px;
    }
    
    div[vw] .vw-access-button {
        width: 50px;
        height: 50px;
    }
    
    div[vw] .vw-access-button::before {
        font-size: 24px;
    }
}

/* Acessibilidade - Skip Link e Screen Reader */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    color: #fff;
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    clip: auto !important;
    display: block;
    height: auto;
    left: 5px;
    top: 5px;
    width: auto;
    z-index: 100000;
    background: #fff;
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Melhorias de Acessibilidade - Foco visível */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Remover outline em elementos interativos quando clicados (mas manter no foco) */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* Contraste melhorado para links */
a {
    color: var(--primary-color);
    text-decoration: underline;
}

a:hover,
a:focus {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Acessibilidade - Navegação por teclado */
.nav-link:focus,
.btn:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Acessibilidade - Formulários */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(10, 61, 77, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Acessibilidade - Imagens */
img {
    max-width: 100%;
    height: auto;
}

img[alt=""] {
    border: 2px dashed #ccc;
}

/* Acessibilidade - Landmarks */
[role="banner"],
[role="navigation"],
[role="main"],
[role="contentinfo"] {
    position: relative;
}

/* Acessibilidade - Estados de loading */
[aria-busy="true"] {
    cursor: wait;
}

/* Acessibilidade - Texto oculto mas acessível */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Acessibilidade - Contraste mínimo WCAG AA */
.text-muted {
    color: #495057 !important; /* Contraste melhorado */
}

/* Acessibilidade - Botões com ícones */
.btn i[aria-hidden="true"] {
    pointer-events: none;
}

/* Acessibilidade - Links externos */
a[target="_blank"]::after {
    content: " (abre em nova aba)";
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

a[target="_blank"]:focus::after {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

