/* ==========================================================================
   IFERP Author Services promo — reusable, config-driven component
   Palette matched to this site: navy #001E3C, cyan #64C6E3 / #39B7CD,
   accent orange #F5A331 / #FF9900.
   Dedicated desktop / tablet / mobile layouts (restacked, not shrunk).
   The root is a single <a>; every child is a <span> styled as blocks.
   ========================================================================== */

.ias-promo,
.ias-promo * {
    box-sizing: border-box;
}

/* ---- Card root (the single interactive element) ---------------------- */
.ias-promo {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 34px 38px;
    border-radius: 16px;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #001E3C 0%, #062a4d 52%, #0a3a63 100%);
    border: 1px solid rgba(100, 198, 227, 0.28);
    box-shadow: 0 14px 34px rgba(0, 30, 60, 0.22);
    overflow: hidden;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* Decorative cyan glow — purely visual */
.ias-promo::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 46%;
    height: 180%;
    background: radial-gradient(circle at center, rgba(100, 198, 227, 0.18) 0%, rgba(100, 198, 227, 0) 70%);
    pointer-events: none;
}

.ias-promo:hover,
.ias-promo:focus {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(0, 30, 60, 0.30);
    border-color: rgba(245, 163, 49, 0.55);
}

/* Visible keyboard focus (not colour-only) */
.ias-promo:focus-visible {
    outline: 3px solid #64C6E3;
    outline-offset: 3px;
}

/* ---- Inner grid ------------------------------------------------------ */
.ias-promo__inner {
    display: flex;
    align-items: stretch;
    gap: 34px;
    position: relative;
    z-index: 1;
}

.ias-promo__main {
    display: flex;
    flex-direction: column;
    flex: 1 1 56%;
    min-width: 0;
}

/* ---- Eyebrow --------------------------------------------------------- */
.ias-promo__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #F5A331;
    margin-bottom: 14px;
}

.ias-promo__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #F5A331;
}

/* ---- Title ----------------------------------------------------------- */
.ias-promo__title {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 14px;
}

.ias-promo__title-accent {
    color: #F5A331;
    display: inline;
}

/* ---- Description ----------------------------------------------------- */
.ias-promo__desc {
    display: block;
    font-family: 'Lato', 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 22px;
    max-width: 46ch;
}

/* ---- CTA (styled span, NOT a nested anchor) -------------------------- */
.ias-promo__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    margin-top: auto;
    padding: 12px 22px;
    border-radius: 8px;
    background: #F5A331;
    color: #001E3C;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(245, 163, 49, 0.28);
    transition: background .18s ease, transform .18s ease;
}

.ias-promo__cta-arrow {
    transition: transform .18s ease;
}

.ias-promo:hover .ias-promo__cta,
.ias-promo:focus .ias-promo__cta {
    background: #ffb457;
}

.ias-promo:hover .ias-promo__cta-arrow,
.ias-promo:focus .ias-promo__cta-arrow {
    transform: translateX(4px);
}

/* ---- Benefits column ------------------------------------------------- */
.ias-promo__benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 44%;
    min-width: 0;
    padding-left: 34px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    justify-content: center;
}

.ias-promo__benefit {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background .18s ease, border-color .18s ease;
}

.ias-promo:hover .ias-promo__benefit {
    border-color: rgba(100, 198, 227, 0.30);
}

.ias-promo__benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #39B7CD 0%, #64C6E3 100%);
    color: #001E3C;
}

.ias-promo__benefit-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ias-promo__benefit-title {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.ias-promo__benefit-text {
    display: block;
    font-family: 'Lato', 'Roboto', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 2px;
}

/* ---- Reserve height on the full (home) layout to avoid any shift ----- */
.ias-promo--full {
    min-height: 300px;
}

/* ==========================================================================
   COMPACT layout — used inside the narrow listing column.
   Always single-column so it aligns with the event-listing width and never
   inherits event-card styling.
   ========================================================================== */
.ias-promo--compact {
    padding: 26px 24px;
    min-height: 0;
    /* Sits between event cards in the listing column — keep neighbours spaced. */
    margin: 18px 0 22px;
}

.ias-promo--compact .ias-promo__inner {
    flex-direction: column;
    gap: 20px;
}

.ias-promo--compact .ias-promo__title {
    font-size: 23px;
}

.ias-promo--compact .ias-promo__desc {
    font-size: 15px;
    max-width: none;
    margin-bottom: 20px;
}

.ias-promo--compact .ias-promo__benefits {
    flex: 1 1 auto;
    padding-left: 0;
    border-left: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   TABLET  (<= 991.98px) — restack the full layout into one column
   ========================================================================== */
@media (max-width: 991.98px) {
    .ias-promo--full {
        min-height: 0;
        padding: 30px 30px;
    }

    .ias-promo--full .ias-promo__inner {
        flex-direction: column;
        gap: 24px;
    }

    .ias-promo--full .ias-promo__benefits {
        padding-left: 0;
        border-left: 0;
        padding-top: 22px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .ias-promo--full .ias-promo__title {
        font-size: 27px;
    }

    /* On tablet, lay benefits out as a responsive row of tiles */
    .ias-promo--full .ias-promo__benefits {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ias-promo--full .ias-promo__benefit {
        flex: 1 1 220px;
    }
}

/* ==========================================================================
   MOBILE  (<= 767.98px) — full restack, comfortable tap targets
   ========================================================================== */
@media (max-width: 767.98px) {
    .ias-promo {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .ias-promo__inner {
        flex-direction: column;
        gap: 20px;
    }

    .ias-promo__title {
        font-size: 22px;
    }

    .ias-promo--compact .ias-promo__title,
    .ias-promo--full .ias-promo__title {
        font-size: 22px;
    }

    .ias-promo__desc {
        font-size: 15px;
        max-width: none;
    }

    .ias-promo__benefits,
    .ias-promo--full .ias-promo__benefits {
        flex-direction: column;
        padding-left: 0;
        border-left: 0;
        padding-top: 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        gap: 10px;
    }

    .ias-promo__cta {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }

    .ias-promo::before {
        display: none;
    }
}

/* Reduced-motion: honour user preference */
@media (prefers-reduced-motion: reduce) {
    .ias-promo,
    .ias-promo__cta,
    .ias-promo__cta-arrow {
        transition: none;
    }

    .ias-promo:hover,
    .ias-promo:focus {
        transform: none;
    }
}
