/* Formations Page - New Catalog Layout */

/* Hero Section (Updated for Stability - Matching Curso Layout) */
.course-hero {
    background: linear-gradient(135deg, rgba(191, 216, 238, 0.82) 0%, #ffffff 100%);
    padding: 64px 0 72px;
    position: relative;
    color: var(--text-primary);
    overflow: hidden;
    margin-bottom: 2rem;
}

.course-hero .hero-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: center;
    text-align: left;
    max-width: 100%;
    margin: 0 auto;
}

.course-hero .hero-text {
    max-width: 650px;
}

.hero-video {
    width: 100%;
    display: flex;
    flex-direction: column;
    max-width: 280px; /* Limita a largura para controlar a altura no formato vertical */
    margin: 0 auto;   /* Centraliza na coluna caso sobre espaço */
}

.hero-badge {
    background: rgba(56, 182, 255, 0.15);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid rgba(56, 182, 255, 0.3);
}

.course-hero .hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--primary-blue-dark);
    font-family: var(--font-heading);
}

.course-hero .hero-text .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-promise {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta-group {
    margin-bottom: 2rem;
}

.trust-badges {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    align-items: center;
    flex-wrap: wrap;
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.trust-badges span i {
    color: var(--success-color);
    font-size: 1.1rem;
}

/* Hero Video Wrapper */
.course-hero .video-wrapper {
    position: relative;
    padding-bottom: 177.78%; /* 9:16 Aspect Ratio (16/9 = 1.7778) */
    height: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(5, 10, 48, 0.15);
    background: #000;
    width: 100%;
    border: 4px solid white;
    display: block;
}

.course-hero .video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 103%;
    height: 100%;
    transform: translate(-50%, -50%);
    border: 0;
}

.video-caption {
    text-align: left;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 21px;
}

/* Animations */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive for Hero */
@media (max-width: 992px) {
    .course-hero .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .course-hero .hero-text {
        max-width: 800px;
        margin: 0 auto;
    }

    .hero-video {
        max-width: 320px; /* Limit width to control height */
        margin: 0 auto;
    }

    .hero-promise {
        margin-left: auto;
        margin-right: auto;
        max-width: 600px;
    }

    .trust-badges {
        justify-content: center;
    }

    .hero-cta-group {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .course-hero {
        padding: 40px 0 48px;
    }
    
    .course-hero .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-video {
        max-width: 280px; /* Smaller on mobile */
    }

    .formations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

/* Section Spacing */
.section-padding {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-blue-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Formations Grid */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.formation-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(5, 10, 48, 0.05);
    border: 1px solid rgba(56, 182, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.formation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(5, 10, 48, 0.12);
    border-color: var(--secondary-blue);
}

/* Card Icon - Hidden */
.card-icon {
    display: none;
}

/* Card Typography */
.formation-card h3 {
    font-size: 1.35rem;
    color: var(--primary-blue-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-tagline {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.card-summary {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Card Meta (Duration) */
.card-meta {
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    background: var(--bg-gray);
    padding: 6px 12px;
    border-radius: 50px;
}

.card-meta i {
    color: var(--secondary-blue);
}

/* Card Action Button */
.card-action {
    margin-top: auto;
}

.btn-whatsapp-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    border: 2px solid #25D366;
    color: #25D366;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-whatsapp-outline:hover {
    background-color: #25D366;
    color: white;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.25);
}

/* How It Works (Simplified) */
.info-grid-simple {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.how-it-works {
    background: var(--bg-gray);
    padding: 60px 0;
}

.process-steps {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.process-steps li {
    display: flex;
    gap: 1.5rem;
}

.step-count {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(20, 135, 255, 0.3);
}

.process-steps strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-blue-dark);
    margin-bottom: 0.25rem;
}

/* CTA Box in How It Works */
.info-cta-box {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(5, 10, 48, 0.08);
    border-top: 5px solid var(--secondary-blue);
}

.info-cta-box h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.benefits-list-simple {
    list-style: none;
    margin-bottom: 2rem;
}

.benefits-list-simple li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.benefits-list-simple li i {
    color: var(--success-color);
    font-size: 1.1rem;
}

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

/* Testimonial Highlight (Removed as replaced by Testimonials Grid) */
/* Keeping styles if needed for other parts, but effectively unused for the new grid */
.testimonial-highlight {
    background-color: white;
    padding: 80px 0;
    text-align: center;
    display: none; /* Hide the old section styles if the class is still used somewhere */
}

/* New Testimonials Styles (Inheriting from global, but ensuring specifics) */
.testimonials {
    background: white; /* Or light gray if preferred */
    padding: 80px 0;
}

/* Re-using global testimonial styles, ensuring they are loaded. 
   If styles.css is loaded, these classes should work automatically:
   .testimonials-grid, .testimonial-card, .testimonial-header, etc.
*/

/* Responsive */
@media (max-width: 992px) {
    .info-grid-simple {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .info-cta-box {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .formation-card {
        padding: 2rem 1.5rem;
    }
    
    .step-count {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .process-steps li {
        gap: 1rem;
    }

    .info-cta-box {
        padding: 2rem 1.5rem;
    }
}
