.hero-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.hero-section {
    height: calc(100vh - var(--nav-height, 100px));
}

.team-overlay {
    background: linear-gradient(transparent 0%, transparent 60%, rgba(0, 0, 0, 0.8) 100%);
}

.image-tilt-right {
    transform: rotate(3deg);
}

.image-tilt-left {
    transform: rotate(-1deg);
}

.image-tilt-reverse {
    transform: rotate(1deg);
}

.image-tilt-reverse-left {
    transform: rotate(-3deg);
}

@keyframes mouseScroll {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.scroll-arrow {
    animation: mouseScroll 2s ease-in-out infinite;
}

/* Efeito de bounce para setas dos cards da equipe */
.team-scroll-indicator {
    animation: teamArrowBounce 2s ease-in-out infinite;
}

@keyframes teamArrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(3px);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.6s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.6s ease-out;
}

.slide-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.7s ease-out;
}

.team-card-animate {
    opacity: 0;
    transform: translateY(80px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-card-animate.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.news-card-animate {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card-animate.animate {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.calendar-card-animate {
    opacity: 0;
    transform: translateX(-100px) rotate(-15deg) scale(0.7);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.calendar-card-animate.animate {
    opacity: 1;
    transform: translateX(0) rotate(0deg) scale(1);
}

.expertise-card-animate {
    opacity: 0;
    transform: translateY(60px) scale(0.8) rotateX(10deg);
    transition: all 0.55s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.expertise-card-animate.animate {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
}

.slide-in-left.animate,
.slide-in-right.animate,
.slide-in-up.animate {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.fade-in.animate {
    opacity: 1;
}

.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

.animate-delay-4 {
    transition-delay: 0.4s;
}

.animate-delay-5 {
    transition-delay: 0.5s;
}

.animate-delay-6 {
    transition-delay: 0.6s;
}

.animate-delay-7 {
    transition-delay: 0.7s;
}

.animate-delay-8 {
    transition-delay: 0.8s;
}

.animate-delay-9 {
    transition-delay: 0.9s;
}

.animate-delay-10 {
    transition-delay: 1.0s;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-expanded-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.news-expanded-container {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.news-expanded-content {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.news-expanded-content::-webkit-scrollbar {
    width: 6px;
}

.news-expanded-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.news-expanded-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.news-expanded-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.news-close-btn:hover,
.news-share-btn:hover,
.news-print-btn:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.news-expanded-content {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .news-expanded-container {
        margin: 1rem;
        border-radius: 1rem;
    }
    
    .news-expanded-content {
        padding: 1rem;
        padding-top: 0;
    }
    
    .news-expanded-content h1 {
        font-size: 1.5rem;
    }
}

.news-expand-btn:focus,
.news-close-btn:focus,
.news-share-btn:focus,
.news-print-btn:focus {
    outline: 2px solid #0891b2;
    outline-offset: 2px;
}

.news-card img {
    transition: opacity 0.3s ease;
}

.news-card img[loading] {
    opacity: 0.7;
}

.prose {
    color: #374151;
}

.prose h3 {
    color: #1f2937;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.news-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
    transform: translateY(-4px);
}

.tag {
    transition: all 0.2s ease;
}

.tag:hover {
    transform: scale(1.05);
}

.share-button {
    transition: all 0.2s ease;
}

.share-button:hover {
    transform: scale(1.1);
}

.highlight {
    background: linear-gradient(120deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.news-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Sem animações de clique para desktop */

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.news-card:hover::before {
    opacity: 1;
}

.news-card:focus {
    outline: 2px solid #0891b2;
    outline-offset: 2px;
}

.news-card:focus:not(:focus-visible) {
    outline: none;
}

.news-card {
    position: relative;
    overflow: hidden;
}

.news-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(8, 145, 178, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

/* Animação de clique removida para desktop */

.news-card span:has(i) {
    position: relative;
    z-index: 3;
}

.news-card:hover .line-clamp-2,
.news-card:hover .line-clamp-3 {
    color: #1f2937;
}

.news-card img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.news-card img[loading] {
    opacity: 0.7;
}

.news-card:focus-within {
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.3);
}

.highlight {
    background: linear-gradient(120deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .news-card {
        transition: all 0.2s ease;
    }
    
    .news-card:hover {
        transform: translateY(-2px);
    }
    
    /* Sem animação de clique para desktop */
}

@media (hover: none) and (pointer: coarse) {
    .news-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Ajuste da logo do modal para telas pequenas */
@media (max-width: 420px) {
    .logo-mobile-adjust {
        transform: translateX(20px);
    }
    
    /* Ajustes para evitar corte lateral em telas pequenas */
    .modal-container {
        width: 100% !important;
        margin: 0 !important;
        max-width: 100vw !important;
    }
    
    .modal-header {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }
    
    .modal-body {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }
    
    /* Garantir que o conteúdo não transborde */
    .modal-content {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Ajustar elementos flex para não quebrar */
    .modal-header .flex {
        flex-wrap: nowrap !important;
        min-width: 0 !important;
    }
    
    .modal-header .flex > div {
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
}