/* --- Hero Section --- */
.physics-talk-hero {
    height: 60vh;
    /* Fundo escuro com gradiente azul/roxo inspirado no ícone */
    background: linear-gradient(135deg, #0a0e29 0%, #1e1b4b 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    width: 100vw; 
    
    /* 2. Posiciona o elemento para ignorar o pai centralizado */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Efeito de brilho de fundo (Glow) */
.hero-bg-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Cores extraídas do ícone: Azul elétrico e Roxo */
    background: radial-gradient(circle, rgba(60, 20, 255, 0.15) 0%, rgba(120, 50, 255, 0.1) 40%, transparent 70%);
    animation: rotate-glow 25s linear infinite;
    z-index: 0;
}

@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Estilo do Ícone no Hero */
.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(60, 20, 255, 0.4);
    /* Brilho Azul */
    margin-bottom: 25px;
    animation: float-icon 7s ease-in-out infinite;
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-size: 4.5rem;
    margin-bottom: 15px;
    /* Gradiente no texto */
    background: linear-gradient(to right, #ffffff, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.3rem;
    color: #cbd5e1;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* --- Talks Feed Section --- */
.talks-feed-section {
    max-width: 1000px;
    margin: 60px auto 100px;
    padding: 0 20px;
}

.talks-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- Horizontal Talk Card --- */
.talk-card-horizontal {
    display: flex;
    background: #f4f4f4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 350px;
    /* Um pouco mais alto para caber as infos extras */
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.talk-card-horizontal:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #f4f4f4(60, 20, 255, 0.1);
    /* Borda azul sutil */
}

.card-image-wrapper {
    flex: 0 0 40%;
    /* Imagem um pouco menor que no Post */
    overflow: hidden;
    position: relative;
}

.talk-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.talk-card-horizontal:hover .talk-img {
    transform: scale(1.1);
}

/* Overlay azulado na imagem */
.card-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.talk-card-horizontal:hover .card-image-wrapper::after {
    opacity: 1;
}

.card-content-horizontal {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Badges (Tipo e Data) */
.talk-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.badge-type {
    background-color: #eef0ff;
    color: #007bff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-date {
    background-color: #f4f4f4;
    color: #64748b;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-content-horizontal h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.3s ease;
}


.speaker-name {
    font-family: 'Google Sans', sans-serif;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
    font-size: 1rem;
}

.talk-desc {
    font-family: 'Google Sans', sans-serif;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.meta-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #007bff;
    font-size: 0.85rem;
    font-weight: 500;
}

.view-details {
    text-decoration: none;
    color: #999;
    /* Azul vibrante */
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-details:hover {
    color: #333;
    transform: translateX(5px);
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    .physics-talk-hero {
        height: 50vh;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-icon {
        width: 80px;
        height: 80px;
    }

    .talk-card-horizontal {
        flex-direction: column;
        height: auto;
    }

    .card-image-wrapper {
        flex: none;
        height: 200px;
        width: 100%;
    }

    .card-content-horizontal {
        padding: 25px;
    }

    .card-content-horizontal h3 {
        font-size: 1.3rem;
    }
}