/* Correcoes finais da pagina Bernoulli.
   Mantem o escopo local para nao afetar cards de outras telas. */

.keepedu-app-page .bernoulli-page {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    min-height: 0 !important;
    overflow: visible !important;
    position: relative !important;
}

.keepedu-app-page .bernoulli-page .bernoulli-hero.card,
.keepedu-app-page .bernoulli-page .bernoulli-hero {
    display: block !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 24px 22px !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 0 !important;
}

.keepedu-app-page .bernoulli-page .bernoulli-hero::before,
.keepedu-app-page .bernoulli-page .bernoulli-hero::after {
    content: none !important;
    display: none !important;
}

.keepedu-app-page .bernoulli-page .bernoulli-hero-copy {
    display: block !important;
    max-width: 760px;
    position: relative !important;
    z-index: 1 !important;
}

.keepedu-app-page .bernoulli-page .bernoulli-hero h1 {
    margin: 10px 0 10px !important;
    font-size: 30px !important;
    line-height: 1.15 !important;
}

.keepedu-app-page .bernoulli-page .bernoulli-hero p {
    margin: 0 !important;
    max-width: 760px;
}

.keepedu-app-page .bernoulli-page .bernoulli-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr) !important;
    gap: 16px !important;
    align-items: start !important;
    min-height: 0 !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.keepedu-app-page .bernoulli-page .bernoulli-form-card,
.keepedu-app-page .bernoulli-page .bernoulli-help-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 22px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: relative !important;
    z-index: 1 !important;
}

.keepedu-app-page .bernoulli-page .bernoulli-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.keepedu-app-page .bernoulli-page .bernoulli-day-toggle,
.keepedu-app-page .bernoulli-page .bernoulli-form,
.keepedu-app-page .bernoulli-page .bernoulli-rule-list {
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 1100px) {
    .keepedu-app-page .bernoulli-page .bernoulli-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 760px) {
    .keepedu-app-page .bernoulli-page .bernoulli-mini-grid {
        grid-template-columns: 1fr !important;
    }

    .keepedu-app-page .bernoulli-page .bernoulli-upload-box {
        flex-direction: column;
        align-items: stretch;
    }
}
