/* ============================================
   VARIÁVEIS CSS
   ============================================ */
:root {
    /* Cores principais */
    --primary-purple: #8b5cf6;
    --primary-blue: #3b82f6;
    --primary-cyan: #06b6d4;
    --primary-pink: #ec4899;
    
    /* Cores de texto */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    
    /* Cores de borda */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-hover: rgba(139, 92, 246, 0.5);
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 50%, #60a5fa 100%);
    --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* ============================================
   RESET E BASE
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: #000000;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   LOGO LOADER
   ============================================ */
.logo-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.logo-loader.fade-out {
    opacity: 0;
}

.logo-loader-image {
    max-width: 500px;
    width: 80vw;
    max-height: 80vh;
    height: auto;
    object-fit: contain;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* ============================================
   HEADER E NAVEGAÇÃO
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background 0.3s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.nav {
    padding: 0.5rem 0;
    width: 100%;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    gap: 1rem;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-image {
    max-height: 120px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #d4af37 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
    font-size: 1.8rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.logo {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

/* Barra separadora entre os itens do menu */
.nav-link:not(:last-child)::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.4), rgba(139, 92, 246, 0.4), transparent);
    opacity: 0.5;
    transition: all 0.3s ease;
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.3);
}

.nav-link:not(:last-child):hover::before {
    opacity: 1;
    height: 85%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.8), rgba(236, 72, 153, 0.8), rgba(139, 92, 246, 0.8), transparent);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.8), 0 0 25px rgba(236, 72, 153, 0.5), 0 0 35px rgba(139, 92, 246, 0.3);
}

.nav-link:hover {
    color: #60a5fa;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
    transform: translateY(-2px);
}

/* Linha inferior animada no hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

.nav-link:hover::after {
    width: 80%;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.8), 0 4px 20px rgba(236, 72, 153, 0.4);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0.5rem 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.mobile-nav-link:hover {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
}

.mobile-dropdown {
    display: none;
    flex-direction: column;
    padding-left: 1rem;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.mobile-dropdown.active {
    display: flex;
}

.mobile-dropdown-item {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-dropdown-item:hover {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
}

/* ============================================
   GLASS EFFECT
   ============================================ */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.glass:hover::before {
    left: 100%;
}

.glass:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2),
                0 0 20px rgba(236, 72, 153, 0.1);
    transform: translateY(-2px);
}

.glass > * {
    position: relative;
    z-index: 1;
}

/* Garantir que links dentro de .glass sejam clicáveis */
a.glass {
    position: relative;
    z-index: 1;
    cursor: pointer;
    pointer-events: auto;
}

a.glass::before {
    z-index: 0;
    pointer-events: none;
}

a.glass > * {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

/* ============================================
   GRADIENT TEXT
   ============================================ */
.gradient-text {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   SECTIONS
   ============================================ */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #3b82f6 100%);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    filter: brightness(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* ============================================
   TESTIMONIALS CAROUSEL
   ============================================ */
.testimonial-carousel-item {
    padding: 1.5rem;
}

.testimonial-carousel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-carousel-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.testimonial-carousel-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgb(196, 181, 253);
    margin: 0;
}

.testimonial-carousel-text {
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary-purple);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(139, 92, 246, 0.6);
}

/* Responsividade para grid de depoimentos */
@media (max-width: 768px) {
    #testimonialsCarousel {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #testimonialsCarousel {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1025px) {
    #testimonialsCarousel {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .desktop-menu {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-content {
        flex-wrap: wrap;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .glass {
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn-primary {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-secondary {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   SCROLLBAR CUSTOMIZADA
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000000;
    border-left: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 6px;
    border: 2px solid #000000;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* ============================================
   UTILITÁRIOS
   ============================================ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ============================================
   EVENT CAROUSEL
   ============================================ */
.event-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 300px;
    min-height: 300px;
}

.event-carousel {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    height: 100%;
}

.event-carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    height: 100%;
    position: relative;
}

.event-carousel-slide img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.event-carousel-slide img:hover {
    transform: scale(1.05);
}

.event-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.event-carousel-btn:hover {
    background: rgba(139, 92, 246, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.event-carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.event-carousel-prev {
    left: 10px;
}

.event-carousel-next {
    right: 10px;
}

.event-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.event-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.event-carousel-dot.active {
    background: rgba(139, 92, 246, 0.9);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

.event-carousel-dot:hover {
    background: rgba(139, 92, 246, 0.7);
    transform: scale(1.1);
}

/* Responsividade para grid de imagens dos eventos */
@media (max-width: 768px) {
    .event-images-grid {
        grid-template-columns: 1fr !important;
    }
    
    .event-images-grid > div {
        height: 250px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .event-images-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1025px) {
    .event-images-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Estilos para layout de notícias dos eventos */
#eventsList article {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#eventsList article:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

/* Estilos para iframes de vídeo - evitar piscar */
#eventsList iframe {
    will-change: auto;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

#eventsList [data-video-url] {
    contain: layout style paint;
}

/* ============================================
   BARRAS SEPARADORAS DE SEÇÕES
   ============================================ */
.section-divider {
    position: relative;
    width: 100%;
    height: 2px;
    margin: 4rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.3) 20%,
        rgba(139, 92, 246, 0.8) 50%,
        rgba(59, 130, 246, 0.8) 50%,
        rgba(59, 130, 246, 0.3) 80%,
        transparent 100%
    );
    position: relative;
    animation: divider-flow 3s ease-in-out infinite;
}

.divider-glow {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.6) 20%,
        rgba(139, 92, 246, 1) 50%,
        rgba(59, 130, 246, 1) 50%,
        rgba(59, 130, 246, 0.6) 80%,
        transparent 100%
    );
    filter: blur(8px);
    animation: divider-glow-pulse 2s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes divider-flow {
    0%, 100% {
        background-position: 0% 50%;
        transform: scaleX(1);
    }
    50% {
        background-position: 100% 50%;
        transform: scaleX(1.05);
    }
}

@keyframes divider-glow-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scaleX(1);
    }
    50% {
        opacity: 0.9;
        transform: scaleX(1.1);
    }
}

/* Efeito adicional de brilho que se move */
.section-divider::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    animation: divider-shine 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes divider-shine {
    0% {
        left: -200px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: calc(100% + 200px);
        opacity: 0;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .section-divider {
        margin: 3rem 0;
        height: 1.5px;
    }
    
    .divider-line {
        height: 1.5px;
    }
    
    .divider-glow {
        height: 3px;
        filter: blur(6px);
    }
}

/* ============================================
   FOTO DO AUTOR
   ============================================ */
.author-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
    border-color: rgba(139, 92, 246, 0.8);
}

@media (max-width: 768px) {
    .author-photo {
        width: 100px;
        height: 100px;
    }
}

/* ============================================
   IMAGENS DE LIVROS E CURSOS
   ============================================ */
.book-cover {
    width: 150px;
    height: 225px; /* Proporção 2:3 típica de capas de livro */
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
    object-position: center;
    display: block;
}

.book-cover:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}

@media (max-width: 768px) {
    .book-cover {
        width: 120px;
        height: 180px; /* Mantém a proporção 2:3 */
    }
    
    /* Em mobile, imagem pode ficar acima do texto */
    .book-item {
        flex-direction: column !important;
    }
}

/* ============================================
   IMAGE MODAL / LIGHTBOX
   ============================================ */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.image-modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.image-modal-close:hover {
    background: rgba(220, 38, 38, 0.8);
    border-color: rgba(220, 38, 38, 1);
    transform: scale(1.1);
}

.image-modal-prev,
.image-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.image-modal-prev {
    left: -70px;
}

.image-modal-next {
    right: -70px;
}

@media (min-width: 769px) {
    .image-modal-prev {
        left: -70px;
    }
    
    .image-modal-next {
        right: -70px;
    }
}

.image-modal-prev:hover,
.image-modal-next:hover {
    background: rgba(139, 92, 246, 0.8);
    border-color: rgba(139, 92, 246, 1);
    transform: translateY(-50%) scale(1.1);
}

.image-modal-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .image-modal-content {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .image-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .image-modal-prev,
    .image-modal-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .image-modal-prev {
        left: 10px;
    }
    
    .image-modal-next {
        right: 10px;
    }
    
    .image-modal-counter {
        bottom: 10px;
        font-size: 0.875rem;
    }
}

/* ============================================
   HIGHLIGHTS GRID - 3 COLUNAS
   ============================================ */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-card {
    padding: 2rem;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-purple);
}

.highlight-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

@media (max-width: 1024px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESPONSIVE: IMAGEM AO LADO DO TEXTO
   ============================================ */
@media (max-width: 768px) {
    .book-cover {
        width: 120px !important;
        height: 180px !important;
        margin: 0 auto 1.5rem !important;
    }
    
    section.glass > div[style*="display: flex"] {
        flex-direction: column !important;
    }
    
    section.glass > div[style*="display: flex"] > div[style*="flex: 1"] {
        min-width: 100% !important;
    }
}

/* ============================================
   ESTILOS DO BLOG - LAYOUT ESTILO NOTÍCIAS
   ============================================ */
#blogHeroPost a {
    transition: all 0.3s ease;
}

#blogHeroPost a:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

#blogPostsContainer a.glass {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

#blogPostsContainer a.glass:hover {
    border-color: rgba(139, 92, 246, 0.5) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.15) !important;
}

/* Estilos para imagens do blog - garantir que apareçam completas */
#blogHeroPost img,
#blogPostsContainer img,
#articleContainer img,
article.glass img {
    object-fit: contain !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
}

/* Cards do blog com mesmo estilo dos cards de livros */
#blogPostsContainer a.glass {
    padding: 2rem !important;
    display: block !important;
    text-decoration: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

#blogPostsContainer a.glass:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5) !important;
}

#blogPostsContainer a.glass h2 {
    font-size: 1.8rem !important;
    font-weight: bold !important;
    margin-bottom: 1rem !important;
    color: var(--primary-purple) !important;
}

#blogPostsContainer a.glass p {
    color: var(--text-secondary) !important;
    line-height: 1.8 !important;
}

#blogPostsContainer a.glass > div:last-child {
    margin-top: 1.5rem !important;
    color: var(--primary-purple) !important;
    font-weight: 600 !important;
}

/* Responsivo para blog */
@media (max-width: 768px) {
    #blogHeroPost h2 {
        font-size: 2rem !important;
    }
    
    #blogPostsContainer {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}
