/* ============================================
   ARQUIVO: assets/css/cursos.css
   CSS específico para páginas de cursos
   ============================================ */

/* ============================================
   HERO CURSOS
   ============================================ 
.hero-cursos {
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF5E6 50%, #FFE8F0 100%);
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
*/

.hero-cursos {
    /* Substitua 'caminho/para/sua-imagem.jpg' pelo nome real do arquivo */
    background: linear-gradient(rgba(255, 251, 240, 0.85), rgba(255, 245, 230, 0.85)), 
                url('https://estudiohappy.com.br/assets/images/cursos1.png'); 
    
    background-size: cover;       /* Faz a imagem preencher todo o espaço */
    background-position: center;  /* Centraliza a imagem */
    background-attachment: fixed; /* Opcional: cria um efeito parallax suave */
    
    padding: 8rem 2rem 6rem;      /* Aumentei um pouco o respiro */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-cursos::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,193,7,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-cursos h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1A202C;
    font-weight: 800;
    line-height: 1.2;
}

.hero-cursos p {
    font-size: 1.3rem;
    color: #4A5568;
    margin-bottom: 2rem;
}

/* ============================================
   FILTROS
   ============================================ */
.filtros {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin: -3rem auto 4rem;
    max-width: 1000px;
    position: relative;
    z-index: 2;
}

.filtros-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filtro-btn {
    padding: 0.7rem 1.8rem;
    border: 2px solid #E2E8F0;
    background: white;
    border-radius: 50px;
    color: #4A5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filtro-btn:hover, 
.filtro-btn.active {
    background: linear-gradient(135deg, #F4D35E 0%, #EAB543 100%);
    color: #2E2C54;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244,211,94,0.3);
}

/* ============================================
   SEÇÃO DE CURSOS
   ============================================ */
.cursos-section {
    padding: 4rem 2rem 6rem;
}

/* Grid de Cursos */
.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* ============================================
   CARD DO CURSO
   ============================================ */
.curso-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.curso-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.curso-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #FFF8E7 0%, #F4E5FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
    overflow: hidden;
}

.curso-image img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.curso-card:hover .curso-image img {
    transform: scale(1.05);
}

.curso-icone {
    font-size: 5rem;
    line-height: 1;
}

.curso-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(244,211,94,0.1) 0%, rgba(123,94,145,0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.curso-card:hover .curso-image::before {
    opacity: 1;
}

.curso-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #F4D35E 0%, #EAB543 100%);
    color: #2E2C54;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(244,211,94,0.4);
}

.curso-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.curso-categoria {
    display: inline-block;
    font-size: 0.8rem;
    color: #7B5E91;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.curso-card h3 {
    font-size: 1.6rem;
    color: #1A202C;
    margin-bottom: 1rem;
    font-weight: 700;
}

.curso-card p {
    color: #718096;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.curso-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.curso-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4A5568;
    font-size: 0.9rem;
}

.curso-info-item i {
    color: #7B5E91;
}

.curso-online-tag {
    background: linear-gradient(135deg, #e8f5e9, #f0fdf4);
    border: 1px solid #86efac;
    border-radius: 50px;
    padding: 0.25rem 0.8rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.curso-online-tag i {
    color: #16a34a !important;
    font-size: 0.85rem;
}

.curso-online-tag span {
    color: #15803d;
}

/* Variante para curso-meta-item (página de detalhes) */
.curso-meta-item.curso-online-tag {
    border-radius: 16px;
    padding: 1rem;
}

.curso-meta-item.curso-online-tag i {
    font-size: 2rem !important;
}

.curso-meta-item.curso-online-tag strong {
    color: #15803d;
}

.curso-meta-item.curso-online-tag span {
    font-size: 1rem;
    font-weight: 600;
}

.btn-detalhes {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #F4D35E 0%, #EAB543 100%);
    color: #2E2C54;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-detalhes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244,211,94,0.4);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #FFFBF0 0%, #FFE8F0 100%);
    padding: 5rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1A202C;
    font-weight: 800;
}

.cta-section p {
    font-size: 1.2rem;
    color: #4A5568;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #F4D35E 0%, #EAB543 100%);
    color: #2E2C54;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(244,211,94,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244,211,94,0.4);
}

/* ============================================
   PÁGINA DE DETALHES DO CURSO
   ============================================ */
.curso-detalhes-hero {
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF5E6 50%, #FFE8F0 100%);
    padding: 5rem 2rem;
}

.curso-detalhes-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.curso-detalhes-image {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

.curso-detalhes-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    display: block;
}

.curso-detalhes-info {
    color: #1A202C;
}

.curso-detalhes-info .lead {
    font-size: 1.3rem;
    color: #4A5568;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.curso-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.curso-meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.curso-meta-item i {
    font-size: 2rem;
    color: #7B5E91;
}

.curso-meta-item div {
    display: flex;
    flex-direction: column;
}

.curso-meta-item strong {
    display: block;
    font-size: 0.85rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.curso-meta-item span {
    display: block;
    font-size: 1rem;
    color: #1A202C;
    font-weight: 600;
}

.curso-detalhes-body {
    padding: 5rem 2rem;
    background: white;
}

.curso-content-text {
    max-width: 900px;
    margin: 0 auto;
}

.curso-content-text h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: #1A202C;
}

.curso-content-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #4A5568;
    margin-bottom: 1.5rem;
}

.curso-objetivos {
    list-style: none;
    padding: 0;
}

.curso-objetivos li {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF5F8 100%);
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #4A5568;
    font-size: 1.05rem;
}

.curso-objetivos li::before {
    content: '✓';
    display: inline-block;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #F4D35E 0%, #7B5E91 100%);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    flex-shrink: 0;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.curso-card {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.curso-card:nth-child(1) { animation-delay: 0.1s; }
.curso-card:nth-child(2) { animation-delay: 0.2s; }
.curso-card:nth-child(3) { animation-delay: 0.3s; }
.curso-card:nth-child(4) { animation-delay: 0.4s; }
.curso-card:nth-child(5) { animation-delay: 0.5s; }
.curso-card:nth-child(6) { animation-delay: 0.6s; }
.curso-card:nth-child(7) { animation-delay: 0.7s; }
.curso-card:nth-child(8) { animation-delay: 0.8s; }
.curso-card:nth-child(9) { animation-delay: 0.9s; }
.curso-card:nth-child(10) { animation-delay: 1s; }
.curso-card:nth-child(11) { animation-delay: 1.1s; }

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .hero-cursos h1 {
        font-size: 2rem;
    }

    .hero-cursos p {
        font-size: 1.1rem;
    }

    .cursos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .filtros-container {
        gap: 0.5rem;
    }

    .filtro-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .curso-detalhes-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .curso-meta {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }
}