/* Loaded last: final consistency fixes for hover behaviour, footer and notifications. */

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;
}

/* Disable Elementor motion transforms, including effects saved inside page data. */
body .elementor-element {
    --e-transform-translateX: 0px !important;
    --e-transform-translateY: 0px !important;
    --e-transform-scale: 1 !important;
    --e-transform-scaleX: 1 !important;
    --e-transform-scaleY: 1 !important;
    --e-transform-rotateZ: 0deg !important;
    --e-transform-skewX: 0deg !important;
    --e-transform-skewY: 0deg !important;
}

/* FAQ questions must never jump, slide or scale on hover. */
.sp-faq-item,
.sp-faq-item summary,
.sp-faq-item summary *,
.sp-el-faq-accordion .elementor-accordion-item,
.sp-el-faq-accordion .elementor-tab-title,
.sp-el-faq-accordion .elementor-tab-title *,
body.sp-native-faq-page .elementor-accordion-item,
body.sp-native-faq-page .elementor-tab-title,
body.sp-native-faq-page .elementor-tab-title * {
    transform: none !important;
    translate: none !important;
    animation: none !important;
}

.sp-faq-item:hover,
.sp-faq-item summary:hover,
.sp-faq-item summary:hover *,
.sp-el-faq-accordion .elementor-accordion-item:hover,
.sp-el-faq-accordion .elementor-tab-title:hover,
.sp-el-faq-accordion .elementor-tab-title:hover *,
body.sp-native-faq-page .elementor-accordion-item:hover,
body.sp-native-faq-page .elementor-tab-title:hover,
body.sp-native-faq-page .elementor-tab-title:hover * {
    transform: none !important;
    translate: none !important;
}

/* Remove every motion effect previously introduced 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 *,
.sp-faq-item,
.sp-faq-item *,
.sp-el-faq-accordion .elementor-accordion-item,
.sp-el-faq-accordion .elementor-tab-title {
    transition-property: color, background-color, border-color, box-shadow, opacity !important;
}

.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; }
}
