/* ==================== ESTILO APRIMORADO DOS NOVOS ELEMENTOS ==================== */

/* ==================== CALL TO ACTION DOS CURSOS ==================== */

.courses-cta {
    animation: slideUpCard 0.6s ease 0.3s both;
}

.courses-cta > div {
    background: linear-gradient(135deg, #ffffff 0%, rgba(48, 130, 174, 0.02) 50%, #ffffff 100%) !important;
    border-radius: 16px !important;
    border-left: 5px solid var(--primary) !important;
    padding: 45px !important;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(48, 130, 174, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.courses-cta > div::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.courses-cta > div:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(48, 130, 174, 0.15),
        0 0 0 1px rgba(48, 130, 174, 0.15);
}

.courses-cta h3 {
    color: var(--primary) !important;
    margin-bottom: 15px !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    font-family: 'Playfair Display', serif !important;
}

.courses-cta p {
    color: #666 !important;
    margin-bottom: 25px !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
}

.courses-cta .btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.courses-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.courses-cta .btn:hover::before {
    left: 100%;
}

/* ==================== ESTILO DO MODAL GERAL ==================== */

.modal {
    --bs-backdrop-bg: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, rgba(48, 130, 174, 0.02) 100%);
    border: 2px solid rgba(48, 130, 174, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideUpModal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1a4b8c 100%);
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    padding: 30px;
}

.modal-header h5,
.modal-title {
    color: white !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    font-family: 'Playfair Display', serif !important;
}

.modal-header .btn-close {
    background: rgba(255, 255, 255, 0.2);
    filter: invert(1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-header .btn-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.modal-body {
    padding: 35px;
}

.modal-footer {
    background: rgba(48, 130, 174, 0.02);
    border-top: 2px solid rgba(48, 130, 174, 0.1);
    padding: 20px 35px;
    border-radius: 0 0 14px 14px;
}

/* ==================== BOTÕES MELHORADOS ==================== */

.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn:not(:disabled):not(.disabled) {
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1a4b8c 100%) !important;
    border: 2px solid var(--primary) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(48, 130, 174, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(48, 130, 174, 0.3);
    border-color: white;
    background: linear-gradient(135deg, #1a4b8c 0%, var(--primary) 100%) !important;
}

.btn-primary:active,
.btn-primary:focus {
    box-shadow: 0 0 0 4px rgba(48, 130, 174, 0.25);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(48, 130, 174, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%) !important;
    border: 2px solid rgba(48, 130, 174, 0.3) !important;
    color: var(--primary) !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary) 0%, #1a4b8c 100%) !important;
    color: white !important;
    border-color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(48, 130, 174, 0.2);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(48, 130, 174, 0.2);
}

/* ==================== CARDS DE CURSO APRIMORADOS ==================== */

.course-card {
    animation: slideUpCard 0.5s ease both;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.2s; }
.course-card:nth-child(3) { animation-delay: 0.3s; }
.course-card:nth-child(4) { animation-delay: 0.4s; }
.course-card:nth-child(5) { animation-delay: 0.5s; }
.course-card:nth-child(6) { animation-delay: 0.6s; }

.course-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(48, 130, 174, 0.2) !important;
    transform: translateY(-10px) scale(1.02);
}

.course-badge {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%) !important;
    color: white !important;
    padding: 8px 16px !important;
    font-weight: 700 !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 12px rgba(48, 130, 174, 0.2) !important;
    letter-spacing: 0.3px;
}

.course-img {
    position: relative;
    overflow: hidden;
}

.course-img i {
    font-size: 3rem;
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover .course-img i {
    transform: scale(1.2) rotate(10deg);
    opacity: 1;
}

.course-content {
    padding: 30px;
    background: white;
}

.course-title {
    font-size: 1.25rem !important;
    color: var(--primary) !important;
    margin-bottom: 12px !important;
    font-weight: 700 !important;
    font-family: 'Playfair Display', serif !important;
}

.course-description {
    color: #666 !important;
    line-height: 1.6 !important;
    margin-bottom: 18px !important;
}

.course-meta {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 18px;
}

.course-duration,
.course-type {
    color: #999;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-duration i,
.course-type i {
    color: var(--primary);
    font-size: 1.1rem;
}

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

.course-actions .btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px !important;
}

.course-details-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #1a4b8c 100%) !important;
    color: white !important;
    border: 2px solid var(--primary) !important;
}

.course-details-btn:hover {
    background: linear-gradient(135deg, #1a4b8c 0%, var(--primary) 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(48, 130, 174, 0.25);
}

.course-request-btn {
    background: white !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
}

.course-request-btn:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(48, 130, 174, 0.25);
}

/* ==================== SEÇÃO DE TÍTULO ==================== */

.section-title {
    animation: slideDown 0.6s ease-out !important;
}

/* ==================== RESPONSIVO ==================== */

@media (max-width: 768px) {
    .courses-cta > div {
        padding: 30px !important;
    }

    .courses-cta h3 {
        font-size: 1.2rem !important;
    }

    .modal-body {
        padding: 25px;
    }

    .course-actions {
        flex-direction: column;
    }

    .course-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-content {
        border-radius: 12px;
    }

    .modal-header {
        padding: 20px;
        border-radius: 10px 10px 0 0;
    }

    .modal-body {
        padding: 20px;
    }

    .courses-cta > div {
        padding: 20px !important;
    }
}

/* ==================== ANIMAÇÕES EXTRAS ==================== */

@keyframes slideUpCard {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes staggerGridAnimation {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== UTILIDADES ==================== */

.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shadow-primary {
    box-shadow: 0 4px 15px rgba(48, 130, 174, 0.2);
}

.shadow-primary:hover {
    box-shadow: 0 8px 25px rgba(48, 130, 174, 0.3);
}

.gradient-primary {
    background: linear-gradient(135deg, var(--primary), #1a4b8c);
}

.gradient-accent {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
}
