/* ============================================
   TRAINING – ESTILOS EXCLUSIVOS
   ============================================ */

/* ----- HERO (padrão para páginas internas) ----- */
#hero {
    position: relative;
    min-height: 36vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 50px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(105deg, rgba(186,2,37,0.92) 0%, rgba(186,2,37,0.75) 40%, rgba(10,10,10,0.80) 100%);
}

#hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 30px 24px 50px;
}

.hero-content {
    max-width: 700px;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    border-radius: 20px;
    font-family: var(--font-inter);
    font-size: 0.7rem;
    font-weight: 600;
    color: #D1964F;
    background: rgba(209,150,79,0.2);
    border: 1px solid rgba(209,150,79,0.45);
    margin-bottom: 12px;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D1964F;
}

#hero h1 {
    font-family: var(--font-inter);
    font-size: 3.0rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 8px;
    white-space: nowrap;
}  

#hero p {
    font-family: var(--font-lato);
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
    max-width: 600px;
    margin: 0;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.hero-wave svg {
    display: block;
    width: 100%;
}

/* ----- STATS BANNER ----- */
#stats-banner {
    background: #F5F0EB;
    border-bottom: 1px solid #E5DDD5;
    padding: 20px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: var(--font-inter);
    font-size: 2.2rem;
    font-weight: 800;
    color: #BA0225;
    display: block;
}

.stat-label {
    font-family: var(--font-lato);
    font-size: 0.75rem;
    color: #4A4A4A;
    display: block;
    margin-top: 2px;
}

/* ----- PROGRAMMES ----- */
#programmes {
    padding: 64px 0 48px;
    background: #FFFFFF;
}

.programmes-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    font-family: var(--font-inter);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #BA0225;
    display: block;
    margin-bottom: 8px;
}

.programmes-header h2 {
    font-family: var(--font-inter);
    font-size: 2.4rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.programmes-header p {
    font-family: var(--font-lato);
    font-size: 1.05rem;
    color: #4A4A4A;
    max-width: 700px;
    margin: 0 auto;
}

.programme-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 36px;
    border-radius: 14px;
    border: none;
    font-family: var(--font-inter);
    font-size: 1rem;
    font-weight: 600;
    background: #F5F0EB;
    color: #4A4A4A;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 150px;
    justify-content: center;
}

.tab-btn:hover {
    background: #E8E0D8;
    transform: translateY(-1px);
}

.tab-icon {
    font-size: 1.3rem;
    line-height: 1;
    display: inline-block;
}

.tab-text {
    display: inline-block;
}

/* CREDO ativo - vermelho */
.tab-btn.active[data-program="credo"] {
    background: #BA0225;
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(186, 2, 37, 0.30);
    transform: translateY(-3px);
}

/* Fellowship ativo - teal */
.tab-btn.active[data-program="fellowship"] {
    background: #1A6B6B;
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(26, 107, 107, 0.30);
    transform: translateY(-3px);
}

.tab-btn.active .tab-icon {
    color: #FFFFFF;
}

/* Programme Detail */
.programme-detail {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    animation: fadeIn 0.3s ease;
}

.programme-header {
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.programme-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #FFFFFF;
    flex-shrink: 0;
}

.programme-info {
    flex: 1;
}

.programme-name-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.programme-name-tag h3 {
    font-family: var(--font-inter);
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
}

.programme-tag {
    font-family: var(--font-inter);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    color: #FFFFFF;
}

.programme-fullname {
    font-family: var(--font-lato);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    margin: 4px 0 0;
}

.programme-cost {
    text-align: right;
}

.cost-label {
    font-family: var(--font-lato);
    font-size: 0.65rem;
    color: rgba(255,255,255,0.65);
    display: block;
}

.cost-value {
    font-family: var(--font-inter);
    font-size: 0.9rem;
    font-weight: 700;
    color: #FFFFFF;
    display: block;
}

/* Programme Body */
.programme-body {
    padding: 32px;
    background: #FFFFFF;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.programme-description p {
    font-family: var(--font-lato);
    font-size: 0.95rem;
    color: #4A4A4A;
    line-height: 1.7;
    margin-bottom: 16px;
}

.programme-who,
.programme-apply {
    margin-top: 16px;
}

.who-label,
.apply-label,
.highlights-label {
    font-family: var(--font-inter);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #BA0225;
    display: block;
    margin-bottom: 4px;
}

.programme-who p,
.programme-apply p {
    font-family: var(--font-lato);
    font-size: 0.9rem;
    color: #4A4A4A;
    line-height: 1.5;
    margin: 0;
}

.highlights-label {
    color: #BA0225;
    margin-bottom: 12px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(186,2,37,0.04);
    border: 1px solid rgba(186,2,37,0.08);
}

.highlight-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.highlight-text {
    font-family: var(--font-lato);
    font-size: 0.8rem;
    color: #1A1A1A;
    line-height: 1.3;
}

.btn-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    background: #BA0225;
    color: #FFFFFF;
    font-family: var(--font-inter);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
    width: 100%;
}

.btn-apply:hover {
    opacity: 0.85;
}

/* ----- TIMELINE ----- */
#timeline {
    background: #F5F0EB;
    padding: 64px 0;
}

.timeline-header {
    text-align: center;
    margin-bottom: 48px;
}

.timeline-header .section-tag {
    font-family: var(--font-inter);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #BA0225;
    display: block;
    margin-bottom: 8px;
}

.timeline-header h2 {
    font-family: var(--font-inter);
    font-size: 2.4rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
}

.timeline-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

/* Linha central */
.timeline-grid::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #BA0225;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    position: relative;
    width: 50%;
    padding: 0 40px 0 0;  /* Espaço total entre card e linha */
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    padding-right: 0;
    padding-left: 40px;  /* Espaço total entre linha e card */
}

/* Círculo - centralizado entre o card e a linha */
.timeline-item::before {
    content: '';
    position: absolute;
    right: 12px;  /* Metade do padding: 35px / 2 = 17.5px, ajustado para -7px */
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #D1964F;
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 0 3px #E5DDD5;
    z-index: 3;
}

.timeline-item:nth-child(even)::before {
    right: auto;
    left: 12px;
}

.timeline-item::after {
    display: none;
}

.timeline-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px 20px;
    width: 100%;
    min-height: 100px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #F0EAE4;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.timeline-year {
    font-family: var(--font-inter);
    font-size: 0.95rem;
    font-weight: 700;
    color: #BA0225;
    display: block;
}

.timeline-attendees {
    font-family: var(--font-inter);
    font-size: 0.7rem;
    font-weight: 600;
    color: #BA0225;
    background: rgba(186, 2, 37, 0.08);
    padding: 2px 12px;
    border-radius: 16px;
    display: inline-block;
    white-space: nowrap;
}

.timeline-card h4 {
    font-family: var(--font-inter);
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 2px 0 2px;
}

.timeline-highlight {
    font-family: var(--font-lato);
    font-size: 0.8rem;
    color: #4A4A4A;
    margin: 0;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .timeline-grid::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding: 8px 0 8px 20px !important;
    }

    .timeline-item:nth-child(even) {
        padding-left: 20px !important;
        padding-right: 0 !important;
    }

    .timeline-item::before {
        right: auto !important;
        left: -5px !important;
        width: 14px;
        height: 14px;
        box-shadow: 0 0 0 2px #E5DDD5;
    }

    .timeline-item:nth-child(even)::before {
        left: -5px !important;
    }

    .timeline-card {
        min-height: 80px;
        padding: 12px 14px;
    }

    .timeline-year {
        font-size: 0.8rem;
    }

    .timeline-card h4 {
        font-size: 0.75rem;
    }

    .timeline-highlight {
        font-size: 0.7rem;
    }

    .timeline-attendees {
        font-size: 0.6rem;
        padding: 1px 10px;
    }

    .timeline-card-header {
        flex-wrap: wrap;
        gap: 4px;
    }
}