/* Estilos Globais para Convenções */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #2C8640;
    --secondary-color: #BEDD7C;
    --accent-color: #AEFF00;
    --body-text: #1C1C1C;
    --light-color: #f5f5f5;
    --dark-color: #222222;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    color: var(--body-text);
    line-height: 1.6;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Container Principal */
.convencoes-container {
    flex: 1;
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
    padding-top: 160px;
    width: 100%;
}

/* Cabeçalho */
.convencoes-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.convencoes-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.convencoes-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.convencoes-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 20px auto 0;
}

/* Introdução */
.convencoes-intro {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.intro-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.intro-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.intro-content p {
    font-size: 1.1rem;
    color: #2d3748;
    line-height: 1.8;
    text-align: justify;
}

/* Grid de Convenções */
.convencoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.convencao-card {
    background: white;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    border-left: 4px solid #2C8640;
    border-right: 4px solid #AEFF00;
}

.convencao-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2C8640, #AEFF00);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.convencao-card:hover::before {
    transform: scaleX(1);
}

.convencao-card:hover {
    transform: translateY(-12px) translateX(-5px);
    box-shadow: 8px 20px 40px rgba(44, 134, 64, 0.2);
    border-left-color: #AEFF00;
    border-right-color: #2C8640;
}

.convencao-card.destaque {
    border: 3px solid var(--primary-color);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
}

.card-badge.arquivo {
    background: linear-gradient(135deg, #666, #888);
}

.card-header {
    padding: 30px 25px 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-right: 120px; /* Espaço para a badge */
}

.card-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.card-info {
    flex: 1;
    min-width: 0; /* Permite que o texto quebre corretamente */
}

.card-info h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
    word-wrap: break-word;
}

.vigencia {
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
}

.card-body {
    padding: 0 25px 25px;
}

.destaques h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.destaques ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.destaques li {
    padding: 10px 0;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.destaques li i {
    color: var(--primary-color);
}

.resumo {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #555;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    min-width: 150px;
}

.btn-primary {
    background: linear-gradient(135deg, #2C8640, #1e6b30);
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
    min-width: 150px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(44, 134, 64, 0.3);
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #AEFF00;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    border-radius: 50%;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 300%;
    height: 300%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(174, 255, 0, 0.4);
    color: #1C1C1C;
}

.btn-primary i,
.btn-primary span {
    position: relative;
    z-index: 2;
}

.btn-secondary {
    background: white;
    color: #2C8640;
    border: 3px solid #2C8640;
    padding: 14px 25px;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
    min-width: 150px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, #2C8640, #1e6b30);
    transition: height 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    height: 100%;
}

.btn-secondary:hover {
    color: white;
    border-color: #AEFF00;
}

.btn-secondary span, .btn-secondary i {
    position: relative;
    z-index: 2;
}

/* Seção de Informações */
.info-section {
    margin-bottom: 50px;
}

.info-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(183, 27, 31, 0.15);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.info-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.info-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.info-link:hover {
    gap: 10px;
}

/* Timeline */
.timeline-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
}

.timeline-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary-color);
}

.timeline-content h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.timeline-content p {
    color: #555;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsividade */
@media (max-width: 768px) {
    .convencoes-container {
        padding: 15px;
        margin: 20px auto;
    }
    
    .convencoes-header h1 {
        font-size: 2.2rem;
    }
    
    .convencoes-intro {
        flex-direction: column;
        padding: 25px;
    }
    
    .intro-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .convencoes-grid {
        grid-template-columns: 1fr;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 40px;
    }
    
    .timeline-marker {
        left: -32px;
    }
}

@media (max-width: 480px) {
    .convencoes-header h1 {
        font-size: 1.8rem;
    }
    
    .card-header {
        flex-direction: column;
    }
}

/* ===========================
   MODAL STYLES
   =========================== */
.modal {
    display: none;
}

.modal.show {
    display: block;
}
