/* Final corrective layer. It intentionally loads after theme, Elementor and portal styles. */

/* Keep only the single global current footer. Existing Elementor page content is untouched. */
.elementor-widget-sp_site_footer,
.sp-elementor-footer-section {
    display: none !important;
}

body.sp-elementor-footer-active .site-footer,
body.sp-elementor-footer-active .elementor-location-footer,
body.sp-elementor-footer-active footer#colophon,
body.sp-elementor-footer-active .site-below-footer-wrap,
body.sp-elementor-footer-active .site-primary-footer-wrap,
body.sp-elementor-footer-active .site-above-footer-wrap {
    display: none !important;
}

.sp-elementor-site-footer {
    display: grid !important;
    gap: 20px !important;
    width: min(1240px, calc(100% - 32px)) !important;
    margin: 24px auto !important;
    padding: 32px !important;
    border-radius: 24px !important;
    background: #172033 !important;
    color: #fff !important;
    box-sizing: border-box !important;
}

.sp-elementor-site-footer-brand {
    display: grid !important;
    gap: 4px !important;
}

.sp-elementor-site-footer-brand strong {
    color: #fff !important;
    font-size: 22px !important;
}

.sp-elementor-site-footer-brand span,
.sp-elementor-site-footer small {
    color: #cbd5e1 !important;
}

.sp-elementor-site-footer nav {
    display: flex !important;
    gap: 10px 22px !important;
    flex-wrap: wrap !important;
}

.sp-elementor-site-footer a,
.sp-elementor-site-footer button {
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font: inherit !important;
    line-height: inherit !important;
    text-decoration: underline !important;
    cursor: pointer;
}

/* Remove every motion effect previously added by Student Portal. */
.sp-elementor-site-footer,
.sp-elementor-site-footer *,
.sp-site-footer,
.sp-site-footer *,
.student-dashboard-lesson:hover,
.sp-home-button:hover,
.sp-dashboard-lesson:hover,
.sp-dashboard-navigation-grid a:hover,
.sp-dashboard-learning-grid a:hover,
.sp-teacher-sections a:hover,
.sp-teacher-student-list > a:hover,
.sp-teacher-books-grid article:hover,
.sp-teacher-books-grid > a:hover,
.sp-exercise-template-grid > button:hover,
.sp-exercise-template-grid > a:hover,
.sp-teacher-primary:hover,
.sp-auth-submit:hover,
.sp-register-submit:hover,
.sp-prices-button:hover {
    transform: none !important;
    translate: none !important;
}

.sp-elementor-site-footer *,
.sp-site-footer * {
    transition-property: color, background-color, border-color, box-shadow, opacity !important;
}

/* Notification control is the same visual size as the profile control. */
.sp-notification-bell {
    display: grid !important;
    place-items: center !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    flex: 0 0 56px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    line-height: 1 !important;
}

.sp-notification-bell svg {
    display: block !important;
    width: 29px !important;
    height: 29px !important;
    min-width: 29px !important;
    min-height: 29px !important;
}

@media (max-width: 650px) {
    .sp-elementor-site-footer {
        width: calc(100% - 20px) !important;
    }

    .sp-elementor-site-footer nav {
        display: grid !important;
    }
}
