/* ============================================================
   INOVEDU HOMEPAGE — PROMOTIONS DRAWER / BOTTOM SHEET

   Separate from AdSense. Opens only from the clearly labelled
   Promotions button. No auto-open. No ad code inside.
   ============================================================ */

.promotions-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;

    min-height: 58px;
    padding: 1rem 1.8rem;

    border: 2px solid rgba(15, 28, 86, .18);
    border-radius: 50px;

    background: #fff3d6;
    color: #5b3b00;

    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;

    cursor: pointer;
    box-shadow: 0 4px 15px rgba(15, 28, 86, .08);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.promotions-trigger::before {
    content: "★";
    font-size: .95em;
    color: #b45309;
}

.promotions-trigger:hover {
    transform: translateY(-2px);
    background: #ffe8b0;
    box-shadow: 0 8px 22px rgba(15, 28, 86, .14);
}

.promotions-trigger:focus-visible,
.inovedu-promo-close:focus-visible,
.inovedu-promo-cta:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

/* Overlay */
.inovedu-promo-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;

    background: rgba(8, 12, 30, .52);
    opacity: 0;

    transition: opacity .25s ease;
}

.inovedu-promo-overlay.is-open {
    opacity: 1;
}

/* Desktop drawer */
.inovedu-promo-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100001;

    display: flex;
    flex-direction: column;

    width: min(430px, 92vw);
    height: 100vh;
    height: 100dvh;

    background: #fff;
    color: #17112a;

    box-shadow: -18px 0 55px rgba(15, 23, 42, .22);

    visibility: hidden;
    pointer-events: none;
    transform: translateX(105%);

    transition: transform .28s cubic-bezier(.22, .8, .25, 1);
}

.inovedu-promo-panel.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.inovedu-promo-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    padding: 24px 24px 16px;
    border-bottom: 1px solid #ece7f7;
}

.inovedu-promo-kicker {
    display: block;
    margin-bottom: 4px;

    color: #6d4ab8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.inovedu-promo-head h2 {
    margin: 0 0 5px;
    font-size: 23px;
    line-height: 1.2;
}

.inovedu-promo-head p {
    margin: 0;
    color: #6a6478;
    font-size: 12px;
    line-height: 1.55;
}

.inovedu-promo-close {
    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    border: 1px solid #e2d9f4;
    border-radius: 999px;

    background: #f8f5ff;
    color: #3b2f52;

    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.inovedu-promo-close:hover {
    background: #efe8fb;
}

.inovedu-promo-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px 24px;

    display: grid;
    gap: 12px;
}

.inovedu-promo-item {
    padding: 17px;
    border: 1px solid #ebe5f6;
    border-radius: 16px;
    background: #fbf9ff;
}

.inovedu-promo-item.is-violet {
    background: linear-gradient(135deg, #f6f1ff, #eee5ff);
    border-color: #ddd0f6;
}

.inovedu-promo-item.is-blue {
    background: linear-gradient(135deg, #f0f7ff, #e3f0ff);
    border-color: #cfe4fb;
}

.inovedu-promo-item.is-gold {
    background: linear-gradient(135deg, #fffaf0, #fff2cc);
    border-color: #f2dfa6;
}

.inovedu-promo-item h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.3;
}

.inovedu-promo-item p {
    margin: 0 0 12px;
    color: #57506b;
    font-size: 12.5px;
    line-height: 1.6;
}

.inovedu-promo-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 14px;
    border-radius: 999px;

    background: #6d4ab8;
    color: #fff !important;

    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.inovedu-promo-cta:hover {
    background: #5b37a5;
}

.inovedu-promo-foot {
    padding: 12px 24px 18px;
    border-top: 1px solid #ece7f7;

    color: #817a91;
    font-size: 10.5px;
    line-height: 1.5;
}

.inovedu-promo-handle {
    display: none;
}

/* Prevent page scroll while the drawer is open. JS restores scroll position. */
html.inovedu-promo-open,
body.inovedu-promo-open {
    overflow: hidden !important;
}

/* Mobile bottom sheet */
@media (max-width: 768px) {

    .promotions-trigger {
        width: 100%;
        min-height: 52px;
        padding: .9rem 1.25rem;
        font-size: 1rem;
    }

    .inovedu-promo-panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;

        width: 100%;
        height: auto;
        max-height: 82vh;
        max-height: 82dvh;

        border-radius: 22px 22px 0 0;

        transform: translateY(105%);
        transition: transform .25s cubic-bezier(.22, .8, .25, 1);
    }

    .inovedu-promo-panel.is-open {
        transform: translateY(0);
    }

    .inovedu-promo-panel.is-dragging {
        transition: none;
    }

    .inovedu-promo-handle {
        display: flex;
        justify-content: center;
        padding: 9px 0 4px;
        touch-action: none;
        cursor: grab;
    }

    .inovedu-promo-handle span {
        display: block;
        width: 46px;
        height: 5px;
        border-radius: 999px;
        background: #cfc7df;
    }

    .inovedu-promo-head {
        padding: 10px 18px 14px;
    }

    .inovedu-promo-head h2 {
        font-size: 20px;
    }

    .inovedu-promo-body {
        padding: 14px 16px 20px;
    }

    .inovedu-promo-foot {
        padding: 10px 18px 16px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .inovedu-promo-panel,
    .inovedu-promo-overlay,
    .promotions-trigger {
        transition: none !important;
    }
}
