/* ========================================
   CRITICAL FIXES FOR ALL ALIGNMENT ISSUES
   Version 2.1 - All Issues Fixed
   ======================================== */

/* ========== STICKY TOP BAR ========== */
.sticky-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: all 0.3s ease;
}

.sticky-top-bar.scrolled {
    padding: 0.75rem 2rem;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.sticky-btn-consultation {
    background: #0066FF;
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    white-space: nowrap;
}

.sticky-btn-consultation:hover {
    background: #0052CC;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 102, 255, 0.4);
}

.sticky-btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    white-space: nowrap;
}

.sticky-btn-whatsapp:hover {
    background: #1FAD54;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.sticky-btn-whatsapp svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .sticky-top-bar {
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .sticky-btn-consultation,
    .sticky-btn-whatsapp {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ========== HERO FIXES ========== */
.hero {
    padding-top: 100px !important;
}

/* Hero badge for "Certification Course" */
.hero-badge {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 6px 30px rgba(255, 255, 255, 0.4);
    }
}

.hero-title {
    color: #FFFFFF !important;
    font-weight: 900 !important;
    text-shadow: 
        0 3px 12px rgba(0,0,0,0.6),
        0 5px 25px rgba(0,102,255,0.7),
        0 0 50px rgba(0,194,203,0.5) !important;
}

.hero-subtitle {
    color: #FFFFFF !important;
    font-weight: 500 !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6) !important;
}

/* FIX: Hero CTA buttons spacing - prevent overlap */
.hero-cta {
    display: flex;
    gap: 1.5rem !important;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem !important;
    margin-bottom: 2.5rem;
}

.hero-cta .btn {
    padding: 1.125rem 2.5rem !important;
    font-size: 1.125rem !important;
    min-width: 200px !important;
    white-space: normal !important;
    text-align: center !important;
}

@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .hero-cta .btn {
        width: 100% !important;
        max-width: 400px !important;
    }
}

/* ========== BENEFITS SECTION FIXES ========== */
.benefits-section {
    padding: 5rem 0 !important;
}

/* FIX: Benefits grid alignment - 4 cards in proper grid */
.benefits-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 3rem !important;
}

.benefit-card {
    background: white !important;
    padding: 2.5rem 2rem !important;
    border-radius: 20px !important;
    text-align: center !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    min-height: 320px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.benefit-card:hover {
    transform: translateY(-10px) !important;
    border-color: #0066FF !important;
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.2) !important;
}

.benefit-icon {
    width: 70px !important;
    height: 70px !important;
    margin: 0 auto 1.5rem !important;
    background: linear-gradient(135deg, #0066FF 0%, #00C2CB 100%) !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.25) !important;
}

.benefit-icon svg {
    width: 36px !important;
    height: 36px !important;
    stroke: white !important;
}

.benefit-title {
    font-size: 1.375rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
}

.benefit-description {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    color: #475569 !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .benefit-card {
        min-height: auto !important;
    }
}

/* ========== CONTACT FORM FIXES ========== */
.contact-form-section {
    background: #F8FAFC !important;
    padding: 5rem 0 !important;
}

.form-wrapper {
    max-width: 800px !important;
    margin: 0 auto !important;
    background: white !important;
    padding: 3rem !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
}

.lead-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
}

.form-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
}

.form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.form-group label {
    font-weight: 600 !important;
    color: #0F172A !important;
    font-size: 1rem !important;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1.25rem !important;
    border: 2px solid #E2E8F0 !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    transition: all 0.3s ease !important;
    background: white !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none !important;
    border-color: #0066FF !important;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1) !important;
}

.checkbox-group {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    cursor: pointer !important;
    font-size: 0.95rem !important;
    color: #475569 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin-top: 0.25rem !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
}

.checkbox-label a {
    color: #0066FF !important;
    text-decoration: underline !important;
}

/* ========== FORM STATUS MESSAGES ========== */
.form-status {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
}

.form-status-success {
    background: #ECFDF5;
    color: #065F46;
    border: 2px solid #A7F3D0;
}

.form-status-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 2px solid #FECACA;
}

/* Spinner animation for submit button loading state */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-submit:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

#submitLoading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* FIX: Submit button visibility and spacing */
.btn-submit {
    width: 100% !important;
    padding: 1.25rem 2rem !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #0066FF 0%, #0047B3 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3) !important;
    margin-top: 1rem !important;
    display: block !important;
    text-align: center !important;
}

.btn-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 30px rgba(0, 102, 255, 0.4) !important;
    background: linear-gradient(135deg, #0052CC 0%, #003A8C 100%) !important;
}

.btn-submit:active {
    transform: translateY(0) !important;
}

@media (max-width: 768px) {
    .form-wrapper {
        padding: 2rem !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
    }
}

/* ========== CERTIFICATION CARDS ENHANCEMENT ========== */
.cert-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,102,255,0.03) 0%, rgba(0,194,203,0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.cert-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: #0066FF;
    box-shadow: 
        0 20px 60px rgba(0, 102, 255, 0.25),
        0 0 0 1px rgba(0, 194, 203, 0.1);
}

.cert-card:hover::before {
    opacity: 1;
}

.cert-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #0066FF 0%, #00C2CB 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.25);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.cert-card:hover .cert-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 36px rgba(0, 102, 255, 0.4);
}

.cert-card-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 2;
}

.cert-card-name {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0066FF;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.cert-card-full-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #00C2CB;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cert-card-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cert-card-link {
    display: inline-block;
    color: #0066FF;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.cert-card-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0066FF 0%, #00C2CB 100%);
    transition: width 0.3s ease;
}

.cert-card:hover .cert-card-link::after {
    width: 100%;
}

/* ========== HOW IT WORKS FIXES ========== */
.how-it-works-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #E0F2FE 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: #0066FF;
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.2);
}

.step-number {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #0066FF 0%, #00C2CB 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 1rem;
}

.step-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
}

/* ========== STATISTICS SECTION FIXES ========== */
.stats-section {
    background-image: url('../images/stats-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 5rem 0;
}

.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,102,255,0.92) 0%, rgba(0,71,179,0.88) 100%);
}

.stats-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

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

.stat-number {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 900;
    color: #FFFFFF !important;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    line-height: 1;
}

.stat-label {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #FFFFFF !important;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.stat-description {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.95) !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-weight: 500;
}

/* ========== TESTIMONIALS FIXES ========== */
.testimonials-section {
    background: #FFFFFF;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border-left: 4px solid #00C2CB;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 194, 203, 0.2);
    border-left-width: 6px;
}

.testimonial-stars {
    color: #FFB800;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.25rem;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1E293B !important;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.author-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F172A !important;
}

.author-role {
    font-size: 0.95rem;
    color: #64748B !important;
}

.author-result {
    font-size: 0.9rem;
    color: #00C2CB !important;
    font-weight: 600;
}

/* ========== FAQ SECTION FIXES ========== */
.faq-section {
    background: #F8FAFC;
}

.faq-container {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #0066FF;
    box-shadow: 0 4px 25px rgba(0, 102, 255, 0.15);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A !important;
    margin: 0;
    flex: 1;
}

.faq-icon {
    font-size: 2rem;
    font-weight: 300;
    color: #0066FF;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.75rem;
}

.faq-answer p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569 !important;
    margin: 0;
}

/* ========== FOOTER FIXES ========== */
.footer {
    background: #0F172A;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF !important;
    margin-bottom: 1.5rem;
}

.footer-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #94A3B8 !important;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #CBD5E1 !important;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #00C2CB !important;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: #94A3B8 !important;
    font-size: 0.95rem;
}

.btn-footer {
    margin-top: 1rem;
}

/* ========== WHATSAPP FLOAT BUTTON ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 9998;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}