/*
    Clube de Idiomas - Certifications Page Styles
    Supplement to style.css
*/

/* ===========================
   Certifications Hero
   =========================== */
.cert-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0B2A4A 0%, #1F6FEB 60%, #0d3358 100%);
    text-align: center;
    padding: 140px 0 80px;
}

.cert-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(31, 111, 235, 0.3) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cert-hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}

.cert-hero-content .hero-badge {
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cert-hero-content .hero-badge i {
    color: #FBBF24;
}

.cert-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: white;
    margin-bottom: 24px;
    line-height: 1.15;
    font-weight: 700;
}

.cert-highlight {
    background: linear-gradient(90deg, #FBBF24 0%, #F97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cert-hero-content>p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
}

.cert-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 20px 40px;
    gap: 32px;
}

.cert-hero-stat {
    text-align: center;
}

.cert-hero-stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.cert-hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.cert-hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    animation: float 2s ease-in-out infinite;
    cursor: pointer;
}

/* ===========================
   Why Certify Cards
   =========================== */
.cert-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 16px;
}

.cert-why-card {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    border: 1px solid var(--border-soft);
    transition: all 300ms ease;
    text-align: center;
}

.cert-why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.12);
    border-color: var(--border-hover);
}

.cert-why-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: transform 300ms ease;
}

.cert-why-card:hover .cert-why-icon {
    transform: scale(1.1) rotate(-3deg);
}

.cert-why-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.cert-why-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ===========================
   Language Blocks
   =========================== */
.cert-lang-block {
    background: white;
    border-radius: 24px;
    border: 1px solid var(--border-soft);
    padding: 32px 36px;
    margin-bottom: 28px;
    transition: box-shadow 300ms ease;
}

.cert-lang-block:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.cert-lang-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.cert-lang-flag {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.cert-lang-label {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cert-lang-title {
    font-size: 1.35rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
}

.cert-aplicador-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #065F46;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.cert-aplicador-badge i {
    font-size: 1rem;
    color: #10B981;
}

/* ===========================
   Exam Cards Row
   =========================== */
.cert-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.cert-exam-card {
    background: var(--bg-subtle);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-soft);
    transition: all 300ms ease;
    border-top: 3px solid var(--accent, #1F6FEB);
}

.cert-exam-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.1);
    background: white;
}

.cert-exam-logo-wrap {
    width: 130px;
    height: 90px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cert-exam-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.cert-exam-card h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.cert-exam-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.cert-exam-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cert-exam-pills span {
    background: white;
    border: 1px solid var(--border-soft);
    color: var(--accent, #1F6FEB);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

/* ===========================
   Steps Section
   =========================== */
.cert-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.cert-step {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    text-align: center;
    padding: 32px 20px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    transition: all 300ms ease;
    position: relative;
}

.cert-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.cert-step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

.cert-step-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--bg-light-blue), #dce8ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin: 0 auto 16px;
    transition: all 300ms ease;
}

.cert-step:hover .cert-step-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-hover));
    color: white;
}

.cert-step h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.cert-step p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.cert-step-arrow {
    color: var(--border-hover);
    font-size: 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 4px;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
    .cert-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cert-steps {
        gap: 12px;
    }

    .cert-step-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .cert-hero {
        min-height: auto;
        padding: 130px 24px 60px;
    }

    .cert-hero-stats {
        padding: 16px 24px;
        gap: 20px;
    }

    .cert-hero-stat-number {
        font-size: 1.5rem;
    }

    .cert-why-grid {
        grid-template-columns: 1fr;
    }

    .cert-lang-block {
        padding: 24px 20px;
    }

    .cert-lang-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cert-aplicador-badge {
        margin-left: 0;
    }

    .cert-cards-row {
        grid-template-columns: 1fr;
    }

    .cert-steps {
        flex-direction: column;
        align-items: stretch;
    }

    .cert-step {
        max-width: none;
    }

    /* Paired cert blocks go single column on mobile */
    .cert-lang-block .cert-cards-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cert-hero h1 {
        font-size: 1.8rem;
    }

    .cert-hero-stats {
        flex-direction: column;
        gap: 16px;
        border-radius: 20px;
    }

    .cert-hero-stat-divider {
        width: 60px;
        height: 1px;
    }
}