/* ============================================
   FORMAÇÃO SECTION - LAYOUT PREMIUM
   ============================================ */

.formacao-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #fafaf8 100%);
}

.formacao-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.formacao-header h2 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin: 1rem 0;
    font-weight: 700;
}

.formacao-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Category Sections */
.formacao-category {
    margin-bottom: 4rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.category-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.category-icon svg {
    width: 28px;
    height: 28px;
}

.category-title h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 700;
}

/* Formação Grid */
.formacao-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.formacao-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.formacao-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.formacao-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

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

.formacao-card.highlight-card {
    background: linear-gradient(135deg, rgba(209, 201, 189, 0.15), rgba(110, 109, 83, 0.08));
    border: 2px solid var(--primary-color);
}

.formacao-card.premium-card {
    background: linear-gradient(135deg, #f8f6f3, #ffffff);
    border: 2px solid #d4af37;
}

.card-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-badge.premium {
    background: linear-gradient(135deg, #d4af37, #f4e5a1);
    color: #2c2c2c;
    font-weight: 700;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(209, 201, 189, 0.2), rgba(110, 109, 83, 0.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon svg {
    width: 32px;
    height: 32px;
    color: var(--secondary-color);
    stroke-width: 2;
}

.formacao-card.highlight-card .card-icon {
    background: linear-gradient(135deg, rgba(209, 201, 189, 0.3), rgba(110, 109, 83, 0.25));
}

.formacao-card.highlight-card .card-icon svg {
    color: var(--secondary-color);
}

.formacao-card.premium-card .card-icon {
    background: linear-gradient(135deg, #d4af37, #f4e5a1);
}

.formacao-card.premium-card .card-icon svg {
    color: #2c2c2c;
}

.formacao-card h4 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0.5rem 0;
    font-weight: 700;
}

.formacao-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0.5rem 0;
}

.card-date {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(110, 109, 83, 0.15);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Timeline */
.formacao-timeline {
    position: relative;
    padding-left: 3rem;
    margin-top: 2rem;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2.6rem;
    top: 0;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(209, 201, 189, 0.2);
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.timeline-content h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.timeline-content p {
    color: var(--text-light);
    margin: 0.5rem 0;
    line-height: 1.6;
}

.timeline-period {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Sociedades Cards */
.formacao-card.sociedade-card {
    background: linear-gradient(135deg, #ffffff, #fafaf8);
    border: 2px solid var(--primary-color);
}

.formacao-card.sociedade-card .card-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.formacao-card.sociedade-card .card-icon svg {
    color: white;
}

.formacao-card.sociedade-card:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.formacao-card.sociedade-card:hover h4,
.formacao-card.sociedade-card:hover p {
    color: white;
}

.formacao-card.sociedade-card:hover .card-icon {
    background: white;
}

.formacao-card.sociedade-card:hover .card-icon svg {
    color: var(--primary-color);
}

/* Currículo CTA */
.curriculo-cta {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(209, 201, 189, 0.3), rgba(110, 109, 83, 0.2));
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.curriculo-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(209, 201, 189, 0.2);
    border-radius: 50%;
}

.curriculo-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.curriculo-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.curriculo-text {
    flex: 1;
    color: white;
    z-index: 1;
}

.curriculo-text h4 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    color: #2c2c2c;
}

.curriculo-text p {
    margin: 0;
    color: #3c3c3c;
    font-size: 1.1rem;
}

.btn-curriculo {
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    z-index: 1;
}

.btn-curriculo svg {
    width: 20px;
    height: 20px;
}

.btn-curriculo:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    background: #f8f8f8;
}

/* Responsive */
@media (max-width: 768px) {
    .formacao-section {
        padding: 3rem 0;
    }

    .formacao-header h2 {
        font-size: 2rem;
    }

    .formacao-header p {
        font-size: 1rem;
    }

    .category-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .category-title h3 {
        font-size: 1.4rem;
    }

    .formacao-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .formacao-card {
        padding: 1.5rem;
    }

    .formacao-timeline {
        padding-left: 2rem;
    }

    .timeline-marker {
        left: -2.3rem;
        width: 16px;
        height: 16px;
    }

    .curriculo-cta {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .curriculo-text h4 {
        font-size: 1.4rem;
    }

    .curriculo-text p {
        font-size: 1rem;
    }

    .btn-curriculo {
        width: 100%;
        justify-content: center;
    }

    .sociedades-grid {
        flex-direction: column;
    }

    .sociedade-badge {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .formacao-header h2 {
        font-size: 1.6rem;
    }

    .category-icon {
        width: 40px;
        height: 40px;
    }

    .category-icon svg {
        width: 24px;
        height: 24px;
    }

    .formacao-card h4 {
        font-size: 1.1rem;
    }

    .card-icon {
        width: 48px;
        height: 48px;
    }

    .card-icon svg {
        width: 28px;
        height: 28px;
    }
}
