@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: linear-gradient(135deg, #0a1f0a 0%, #1a3a1a 40%, #2d5a2d 70%, #1a3a1a 100%);
    min-height: 100vh;
    color: #ffffff;
    padding: 40px 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.container.narrow { max-width: 850px; }

.badge {
    display: inline-block;
    background: #ffffff;
    color: #0a1f0a;
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #a8d5a8;
    margin-bottom: 30px;
    line-height: 1.4;
}

.info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.info-item strong {
    color: #90EE90;
    font-weight: 700;
}

/* ---------- Botão de inscrição (CTA) ---------- */
.cta-wrap {
    text-align: center;
    margin: 0 0 40px 0;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50, #81C784);
    color: #0a1f0a;
    font-weight: 800;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: 16px 42px;
    border-radius: 40px;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(76, 175, 80, 0.55);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 35px 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
    display: inline-block;
}

/* ---------- Timeline vertical ---------- */
.timeline {
    position: relative;
    padding-left: 10px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 29px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: linear-gradient(180deg, #4CAF50, #2d5a2d);
    border-radius: 2px;
}

.tl-item {
    position: relative;
    padding-left: 78px;
    margin-bottom: 22px;
}

.tl-node {
    position: absolute;
    left: 0;
    top: 4px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    border: 4px solid #0f2a0f;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    z-index: 2;
}

.tl-item:nth-of-type(odd) .tl-node {
    background: linear-gradient(135deg, #4CAF50, #81C784);
}
.tl-item:nth-of-type(even) .tl-node {
    background: linear-gradient(135deg, #2e7d32, #43a047);
}

.tl-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 20px 22px;
    border-left: 4px solid #4CAF50;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

a.tl-card:hover {
    background: rgba(255,255,255,0.13);
    transform: translateX(5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.speaker-photo-group {
    position: relative;
    width: 100px;
    height: 130px;
    flex-shrink: 0;
}

.speaker-photo-group .speaker-photo {
    position: absolute;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4CAF50;
    background: #1a3a1a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.speaker-photo-group .speaker-photo:nth-child(1) {
    top: 0;
    left: 70%;
    transform: translateX(-50%);
    z-index: 3;
}

.speaker-photo-group .speaker-photo:nth-child(2) {
    bottom: 7px;
    left: 10px;
    z-index: 2;
}

.speaker-photo-group .speaker-photo:nth-child(3) {
    /* bottom: 0; */
    right: 40%;
    z-index: 1;
}
.speaker-photo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4CAF50;
    flex-shrink: 0;
    background: #1a3a1a;
}

.speaker-photo-placeholder {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #81C784);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    border: 3px solid #4CAF50;
}

.tl-content { flex: 1; }

.program-time {
    display: inline-block;
    background: #4CAF50;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.program-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.program-speaker {
    font-size: 0.9rem;
    color: #c8e6c9;
    line-height: 1.4;
    white-space: pre-line;
}

.program-speaker strong { color: #ffffff; }

.tl-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #90EE90;
}

.tl-interval .tl-node {
    background: rgba(76, 175, 80, 0.25) !important;
    border-style: dashed;
    font-size: 1.4rem;
}
.tl-interval .tl-card {
    justify-content: center;
    text-align: center;
    background: rgba(76, 175, 80, 0.15);
    border: 2px dashed #4CAF50;
    border-left: 2px dashed #4CAF50;
    font-weight: 700;
    color: #a8d5a8;
}

.tl-encerramento .tl-card {
    background: rgba(76, 175, 80, 0.2);
    border-left-color: #81C784;
}

/* ---------- Organização / rodapé ---------- */
.org-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.org-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #a8d5a8;
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 24px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.org-logo {
    width: 140px;
    height: 100px;
    object-fit: contain;
    background: rgba(255,255,255,0.92);
    padding: 10px 5px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: transform 0.2s;
}

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

/* A logo da RIBIERSE-CYTED: a arte preenche mais o chip sem que a caixa cresça.
   O chip mantém altura similar com ajuste de padding para a imagem ficar maior.
   Exemplo: 112 + 2*8 = 128px, ainda dentro do mesmo conjunto visual. */
.org-logo-ribierse {
    height: 112px;
    padding: 6px 18px;
}

/* ---------- Chapters IEEE PES (uma única linha) ---------- */
.chapters-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px 16px;
    margin: 8px 0 24px 0;
}

.chapter {
    flex: 0 0 140px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.chapter-logo {
    display: block;
    width: 140px;
    height: 120px;
    object-fit: contain;
    background: rgba(255,255,255,0.92);
    padding: 10px 1px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.22);
}

/* A "barra" separando a logo do nome do chapter (como no exemplo). */
.chapter-name {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.45);
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    color: #c8e6c9;
}

/* Em telas estreitas, quebra para 3 por linha para não estourar horizontalmente. */
@media (max-width: 600px) {
    .chapters-row { flex-wrap: wrap; }
    .chapter { flex: 0 1 28%; }
}

.org-list {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #c8e6c9;
    text-align: center;
}

.footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #81C784;
    line-height: 1.5;
}

/* ---------- Página de detalhe ---------- */
.back-link {
    display: inline-block;
    margin-bottom: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #90EE90;
    text-decoration: none;
    transition: color 0.2s;
}
.back-link:hover { color: #ffffff; }

.hero {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.hero-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4CAF50;
    flex-shrink: 0;
    background: #1a3a1a;
}

.hero-photo-placeholder {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #81C784);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    border: 4px solid #4CAF50;
}

.hero-info h1 {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
}

.hero-role {
    font-size: 1rem;
    font-weight: 600;
    color: #a8d5a8;
    line-height: 1.4;
}

.panel-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 25px 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #4CAF50;
}

.detail-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #90EE90;
    margin: 30px 0 12px 0;
}

.section-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #e8f5e8;
}

.topic-list {
    margin-top: 12px;
    padding-left: 22px;
    line-height: 1.9;
    color: #e8f5e8;
}

.topic-list li { margin-bottom: 4px; }

.placeholder-note {
    margin-top: 40px;
    padding: 14px 18px;
    background: rgba(255, 235, 59, 0.10);
    border: 1px dashed rgba(255, 235, 59, 0.5);
    border-radius: 10px;
    font-size: 0.82rem;
    color: #fff9c4;
    line-height: 1.5;
}

.not-found {
    text-align: center;
    padding: 40px 0;
}
.not-found h1 { font-size: 1.8rem; margin-bottom: 15px; text-transform: none; }

@media print {
    body {
        background: #1a3a1a;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

@media (max-width: 600px) {
    .tl-item { padding-left: 0; }
    .timeline::before { display: none; }
    .tl-node {
        position: static;
        margin: 0 auto 12px;
    }
    .tl-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .speaker-photo, .speaker-photo-placeholder {
        width: 80px;
        height: 80px;
    }
    h1 { font-size: 1.8rem; }
    .container { padding: 25px; }
    .hero { justify-content: center; text-align: center; }
    .hero-info h1 { font-size: 1.5rem; }
}
