/* ==========================================================================
   IFERP Author Services — promo component
   Config-driven, Bootstrap 3 host. Brand-matched to this site:
   primary teal #216462, accent green #88b04c (see css/custom.css).
   Dedicated desktop / tablet / mobile layouts (restacked, not shrunk).
   ========================================================================== */

.ias-promo-section {
    width: 100%;
    float: left;
    padding: 30px 0;               /* matches .about-sec / .topic-sec rhythm */
}

/* Reset when the component is emitted as a table row inside an event listing,
   so it never inherits .table / .table-striped cell styling, striping or borders. */
tr.ias-promo-row,
tr.ias-promo-row:nth-of-type(odd),
tr.ias-promo-row:nth-of-type(even) {
    background: transparent !important;
}
td.ias-promo-cell {
    padding: 18px 0 !important;
    border: 0 !important;
    background: transparent !important;
}

/* ---- The single clickable anchor (whole component + CTA in one element) --- */
.ias-promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    padding: 34px 38px;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f2f2e 0%, #17403e 45%, #216462 100%);
    box-shadow: 0 10px 30px rgba(15, 47, 46, 0.28);
    border: 1px solid rgba(136, 176, 76, 0.28);
    min-height: 230px;             /* reserve height -> no layout shift on load */
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ias-promo:hover,
.ias-promo:focus {
    text-decoration: none;
    color: #fff;
    box-shadow: 0 14px 38px rgba(15, 47, 46, 0.4);
    transform: translateY(-2px);
}
/* Visible keyboard focus (not colour-only) */
.ias-promo:focus,
.ias-promo:focus-visible {
    outline: 3px solid #88b04c;
    outline-offset: 3px;
}

/* ---- Left / main column ---- */
.ias-promo__main {
    flex: 1 1 420px;
    min-width: 0;
}
.ias-promo__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #b6e07a;
    margin-bottom: 12px;
}
.ias-promo__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #88b04c;
    display: inline-block;
}
.ias-promo__title {
    color: #fff;
    font-size: 27px;
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 12px;
}
.ias-promo--journal-submission .ias-promo__title { font-size: 30px; }
.ias-promo__desc {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 18px;
    max-width: 620px;
}

/* Indexed-on badges (text, not third-party logos -> no endorsement implied) */
.ias-promo__indexed {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
}
.ias-promo__indexed-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}
.ias-promo__indexed-list { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.ias-promo__badge {
    font-size: 13px;
    font-weight: 600;
    color: #eaf6d8;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(136, 176, 76, 0.35);
    border-radius: 6px;
    padding: 5px 12px;
}

/* ---- CTA: a styled span (button look), NOT a second anchor ---- */
.ias-promo__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #143a1f;
    background: #88b04c;
    padding: 12px 22px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(136, 176, 76, 0.35);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.ias-promo:hover .ias-promo__cta,
.ias-promo:focus .ias-promo__cta {
    background: #9cc65e;
    box-shadow: 0 8px 20px rgba(136, 176, 76, 0.5);
}
.ias-promo__cta .fa { font-size: 13px; transition: transform 0.2s ease; }
.ias-promo:hover .ias-promo__cta .fa { transform: translateX(3px); }

/* ---- Right column: benefits ---- */
.ias-promo__benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 340px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ias-promo__benefit {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 16px;
}
.ias-promo__benefit-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #88b04c;
    color: #143a1f;
    font-size: 18px;
}
.ias-promo__benefit-text { display: flex; flex-direction: column; min-width: 0; }
.ias-promo__benefit-title { font-size: 15px; font-weight: 700; color: #fff; }
.ias-promo__benefit-sub {
    font-size: 12.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 2px;
}

/* Chip style (journal-submission): compact pills in a row, not stacked cards */
.ias-promo--chips .ias-promo__benefits {
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    gap: 12px;
}
.ias-promo--chips .ias-promo__benefit {
    flex: 0 0 auto;
    padding: 10px 16px 10px 12px;
}
.ias-promo--chips .ias-promo__benefit-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
    border-radius: 50%;
}
.ias-promo--chips .ias-promo__benefit-sub { display: none; }

/* ==========================================================================
   TABLET  (<= 990px) — main on top, benefits become a 3-across row below
   ========================================================================== */
@media screen and (max-width: 990px) {
    .ias-promo {
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
        padding: 28px 26px;
        min-height: 0;             /* content-driven once stacked */
    }
    .ias-promo__main,
    .ias-promo__benefits { flex: 1 1 auto; }
    .ias-promo__benefits { flex-direction: row; flex-wrap: wrap; }
    .ias-promo__benefit {
        flex: 1 1 200px;
        align-items: flex-start;
    }
    .ias-promo__title { font-size: 24px; }
    .ias-promo--journal-submission .ias-promo__title { font-size: 25px; }
}

/* ==========================================================================
   MOBILE  (<= 767px) — full restack, benefits one per row, CTA full-width
   ========================================================================== */
@media screen and (max-width: 767px) {
    .ias-promo-section { padding: 20px 0; }
    .ias-promo {
        padding: 22px 18px;
        gap: 18px;
        border-radius: 10px;
    }
    .ias-promo__title { font-size: 20px; }
    .ias-promo--journal-submission .ias-promo__title { font-size: 21px; }
    .ias-promo__desc { font-size: 14px; }
    .ias-promo__benefits,
    .ias-promo--chips .ias-promo__benefits { flex-direction: column; }
    .ias-promo__benefit { flex: 1 1 auto; }
    .ias-promo__cta {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 13px 18px;
    }
    /* Keep sub-text visible on mobile chips so the copy isn't lost when stacked */
    .ias-promo--chips .ias-promo__benefit { padding: 12px 14px; }
}

/* Extra-small phones */
@media screen and (max-width: 479px) {
    .ias-promo__title { font-size: 18.5px; }
    .ias-promo__eyebrow { font-size: 11px; letter-spacing: 1px; }
    .ias-promo__benefit-icon { width: 36px; height: 36px; font-size: 16px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .ias-promo,
    .ias-promo__cta,
    .ias-promo__cta .fa { transition: none; }
    .ias-promo:hover { transform: none; }
}
