﻿/* ============================================================================
   HOME late fixes: re-assert the shared fix blocks that, in the static build,
   loaded AFTER all home-specific blocks (dssa-polish, dssa-orig-anim, ...).
   Loaded at the end of the css-home bundle to restore the original cascade.
   ============================================================================ */
/* ==== dssa-footer-still ==== */
footer .dssa-reveal, .site-footer .dssa-reveal, .edublink-footer .dssa-reveal,
footer .dssa-orig-wait, .site-footer .dssa-orig-wait, .edublink-footer .dssa-orig-wait {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

footer .dssa-orig-run, .site-footer .dssa-orig-run, .edublink-footer .dssa-orig-run,
footer .dssa-list-cascade .elementor-icon-list-item,
.site-footer .dssa-list-cascade .elementor-icon-list-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
/* keep only gentle hovers in the footer, no entrance movement */

/* ==== dssa-dropdown-v3 ==== */
/* the header and its dropdowns must sit ABOVE everything (incl. the hero) */
header.site-header, header.site-header * {
    z-index: auto
}

header.site-header {
    position: relative;
    z-index: 99990 !important
}

li.menu-item-has-children {
    position: relative
}

    li.menu-item-has-children > .edublink-dropdown-menu {
        z-index: 99999 !important;
        pointer-events: auto !important;
    }

    li.menu-item-has-children.dssa-open > .edublink-dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: none !important;
    }

/* ==== dssa-mobile-rhythm ==== */
@media (max-width:767px) {
    /* Elementor sections carry big desktop paddings — compress them uniformly */
    html body .elementor-top-section,
    html body .elementor-section {
        padding-top: clamp(28px,6vw,44px) !important;
        padding-bottom: clamp(28px,6vw,44px) !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    html body .elementor-inner-section {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }
    /* container/widget margins that stack up between blocks */
    html body .elementor-widget {
        margin-bottom: 0 !important
    }

    html body .elementor-widget-wrap {
        padding-top: 0 !important;
        padding-bottom: 0 !important
    }

    html body .e-con-boxed {
        padding-top: clamp(28px,6vw,44px) !important;
        padding-bottom: clamp(28px,6vw,44px) !important
    }
    /* section headings: tighter under-heading gap */
    html body .edublink-section-heading {
        margin-bottom: 18px !important
    }
    /* rounded photo sections keep a small consistent outer gap */
    html body .dssa-rounded {
        margin-top: 10px !important;
        margin-bottom: 10px !important
    }
    /* my custom blocks follow the same rhythm */
    html body .dssa-cta-wrap {
        padding: 26px 12px !important
    }

    html body .cta-shell {
        padding: 34px 22px !important
    }
    /* empty spacer widgets that themes love */
    html body .elementor-widget-spacer {
        display: none !important
    }
    /* snap sliders: trim the extra bottom padding */
    html body .dssa-snap {
        padding-bottom: 8px !important
    }

    .dssa-snap-dots {
        margin: 10px 0 2px !important
    }
    /* footer top gap */
    html body footer, html body .site-footer {
        margin-top: 10px !important
    }
}

/* ==== dssa-mobile-rhythm-2 ==== */
@media (max-width:767px) {
    /* new-style Elementor containers take spacing from variables — override those */
    html body .e-con {
        --padding-top: 22px !important;
        --padding-bottom: 22px !important;
        --padding-left: 12px !important;
        --padding-right: 12px !important;
        --margin-top: 0px !important;
        --margin-bottom: 0px !important;
        --gap: 14px !important;
        --row-gap: 14px !important;
        padding-top: 22px !important;
        padding-bottom: 22px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        gap: 14px !important;
    }

    html body .e-con-inner {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        gap: 14px !important;
    }
    /* heading + carousel widgets inside: no extra margins of their own */
    html body .e-con .elementor-widget-heading,
    html body .e-con .elementor-widget-image-carousel,
    html body .e-con .elementor-widget {
        margin: 0 !important;
    }

    html body .elementor-widget-heading .elementor-heading-title {
        margin: 0 !important
    }

    html body .elementor-image-carousel-wrapper {
        margin: 0 !important;
        padding: 0 !important
    }

        html body .elementor-image-carousel-wrapper .swiper-slide {
            min-height: 84px
        }
}

/* ==== dssa-newsletter ==== */
.edublink-mailchimp-form-container {
    position: relative;
    max-width: 430px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

    .edublink-mailchimp-form-container label {
        display: none !important
    }

.edublink-mailchimp-item.edublink-mailchimp-email {
    margin: 0 !important
}

.edublink-mailchimp-input-field {
    width: 100% !important;
    padding: 17px 156px 17px 22px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(255,182,6,.28) !important;
    background: rgba(255,255,255,.07) !important;
    color: #fff !important;
    font-size: .95rem !important;
    outline: none !important;
    transition: border-color .3s ease,box-shadow .3s ease,background .3s ease;
}

    .edublink-mailchimp-input-field::placeholder {
        color: rgba(255,255,255,.45)
    }

    .edublink-mailchimp-input-field:focus {
        border-color: #ffb606 !important;
        background: rgba(255,255,255,.11) !important;
        box-shadow: 0 0 0 4px rgba(255,182,6,.15) !important;
    }

.edublink-mailchimp-submit-btn {
    position: absolute !important;
    right: 5px;
    top: 5px;
    bottom: 5px;
    margin: 0 !important;
}

button.edublink-mailchimp-subscribe-btn {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 26px !important;
    border: 0 !important;
    border-radius: 50px !important;
    background: linear-gradient(120deg,#ffb606,#bf9445) !important;
    color: #2a2205 !important;
    font-weight: 700 !important;
    font-size: .92rem !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(255,182,6,.3);
    transition: transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s ease,background .3s ease !important;
}

    button.edublink-mailchimp-subscribe-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 26px rgba(255,182,6,.45);
    }

    button.edublink-mailchimp-subscribe-btn:active {
        transform: scale(.96)
    }
    /* shine sweep on hover */
    button.edublink-mailchimp-subscribe-btn::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 36px;
        left: -60px;
        background: linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);
        transform: skewX(-20deg);
    }

    button.edublink-mailchimp-subscribe-btn:hover::after {
        animation: dssaShine .7s ease forwards;
    }

@keyframes dssaShine {
    to {
        left: 130%
    }
}
/* the arrow icon nudges forward on hover */
.edublink-mailchimp-subscribe-btn-icon {
    display: inline-flex;
    transition: transform .3s ease
}

button.edublink-mailchimp-subscribe-btn:hover .edublink-mailchimp-subscribe-btn-icon {
    transform: translateX(4px)
}
/* subscribed state */
button.edublink-mailchimp-subscribe-btn.dssa-done {
    background: linear-gradient(120deg,#2ecc71,#27ae60) !important;
    color: #fff !important;
    animation: dssaPop .45s cubic-bezier(.34,1.56,.64,1);
}

@keyframes dssaPop {
    0% {
        transform: scale(.9)
    }

    60% {
        transform: scale(1.06)
    }

    100% {
        transform: scale(1)
    }
}

@media (max-width:480px) {
    .edublink-mailchimp-input-field {
        padding-right: 130px !important
    }

    button.edublink-mailchimp-subscribe-btn {
        padding: 0 18px !important
    }
}

/* ==== dssa-newsletter-fix ==== */
.edublink-mailchimp-form-container {
    width: 100% !important;
    max-width: 430px !important;
    position: relative !important;
    display: block !important;
}

.edublink-mailchimp-item.edublink-mailchimp-email {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: block !important;
}

.edublink-mailchimp-input-field {
    width: 100% !important;
    min-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

.edublink-mailchimp-submit-btn {
    /* anchor to the BOTTOM (where the input lives), never over the text above */
    position: absolute !important;
    right: 5px !important;
    top: auto !important;
    bottom: 5px !important;
    height: 46px !important;
    left: auto !important;
    width: auto !important;
    margin: 0 !important;
}

button.edublink-mailchimp-subscribe-btn {
    max-width: 150px;
    white-space: nowrap;
    padding: 0 20px !important;
    font-size: .88rem !important;
}

@media (max-width:480px) {
    .edublink-mailchimp-input-field {
        padding-right: 118px !important
    }

    button.edublink-mailchimp-subscribe-btn {
        padding: 0 14px !important;
        font-size: .82rem !important
    }
}

/* ==== dssa-newsletter-fix2 ==== */
.edublink-mailchimp-input-field {
    height: 56px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 56px !important
}

button.edublink-mailchimp-subscribe-btn {
    height: 46px !important
}
/* and give the intro sentence guaranteed breathing room above the pill */
.edublink-mailchimp-form-container {
    margin-top: 14px !important
}

/* ==== dssa-footer-mobile ==== */
@media (max-width:767px) {
    /* footer escapes the global margin/padding zeroing — it needs its own flow */
    html body footer .elementor-widget,
    html body .site-footer .elementor-widget,
    html body footer .elementor-widget-wrap,
    html body .site-footer .elementor-widget-wrap {
        position: static !important;
        transform: none !important;
    }

    html body footer .elementor-widget,
    html body .site-footer .elementor-widget {
        margin: 0 0 16px 0 !important;
    }
    /* column headings: firm positive spacing, never negative offsets */
    html body footer h4, html body .site-footer h4,
    html body footer .elementor-heading-title,
    html body .site-footer .elementor-heading-title,
    html body footer .footer-widget-title,
    html body .site-footer .widget-title {
        position: static !important;
        transform: none !important;
        margin: 28px 0 14px 0 !important;
        padding: 0 !important;
        line-height: 1.3 !important;
    }
    /* each stacked column separated clearly */
    html body footer .elementor-column,
    html body .site-footer .elementor-column {
        margin: 0 0 10px 0 !important;
        padding: 0 12px !important;
    }
    /* lists breathe */
    html body footer ul li, html body .site-footer ul li {
        margin: 0 0 10px 0 !important;
        line-height: 1.5 !important;
    }
    /* logo block centered and separated */
    html body footer .site-logo, html body .site-footer img[alt*="Academy"] {
        margin-bottom: 14px !important;
    }
}

/* ==== card read-more button: a real button, both languages ==== */
html body .eb-post-style-5 .read-more-btn .blog-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 9px 22px !important;
    border: 2px solid #BF9445 !important;
    border-radius: 30px;
    color: #072C43 !important;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
    line-height: 1;
    background: transparent;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

    html body .eb-post-style-5 .read-more-btn .blog-btn:hover {
        background: #BF9445 !important;
        color: #fff !important;
        transform: translateY(-2px);
    }

    html body .eb-post-style-5 .read-more-btn .blog-btn i {
        font-size: 12px;
    }

html body .eb-post-style-5 .read-more-btn {
    margin-top: 14px;
}
