/* ============================================================
   MARCUS SCIENCE GROUP
   CONFERENCE CATEGORIES
   CLEAN EDITORIAL DESIGN
   ============================================================ */


/* ------------------------------------------------------------
   FONT
   ------------------------------------------------------------ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');


/* ------------------------------------------------------------
   RESET
   ------------------------------------------------------------ */

.msg-categories-page,
.msg-categories-page * {
    box-sizing: border-box;
}

.msg-categories-page {
    width: 100%;
    background: #ffffff;
    color: #17211e;

    font-family: 'DM Sans', Arial, sans-serif;

    /* Keeps content safely below the floating navigation */
    padding: 155px 0 100px;
}

.msg-categories-page a {
    color: inherit;
    text-decoration: none;
}


/* ------------------------------------------------------------
   MAIN WIDTH
   ------------------------------------------------------------ */

.msg-categories-wrap {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}


/* ------------------------------------------------------------
   INTRO
   ------------------------------------------------------------ */

.msg-categories-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 50px;

    margin-bottom: 58px;
}

.msg-intro-copy {
    max-width: 750px;
}


/* ------------------------------------------------------------
   SMALL LABEL
   ------------------------------------------------------------ */

.msg-small-label {
    display: block;

    margin-bottom: 15px;

    color: #23966e;

    font-size: 10px;
    line-height: 1.2;

    font-weight: 700;

    letter-spacing: 2px;
}


/* ------------------------------------------------------------
   MAIN TITLE
   ------------------------------------------------------------ */

.msg-intro-copy h1 {
    margin: 0;

    max-width: 760px;

    font-family: 'Manrope', Arial, sans-serif;

    font-size: clamp(40px, 5vw, 58px);
    line-height: 1.08;

    font-weight: 800;

    letter-spacing: -2px;

    color: #18211f;
}

.msg-intro-copy h1 span {
    color: #35b978;
}


/* ------------------------------------------------------------
   INTRO TEXT
   ------------------------------------------------------------ */

.msg-intro-copy p {
    max-width: 700px;

    margin: 21px 0 0;

    color: #63716c;

    font-size: 15px;
    line-height: 1.7;

    font-weight: 400;
}


/* ------------------------------------------------------------
   UPCOMING BUTTON
   ------------------------------------------------------------ */

.msg-upcoming-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    flex-shrink: 0;

    padding: 13px 18px;

    border: 1px solid #d8e2dd;
    border-radius: 100px;

    background: #ffffff;

    color: #1c2924;

    font-size: 12px;
    font-weight: 600;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.msg-upcoming-btn:hover {
    background: #1d7e61;
    border-color: #1d7e61;

    color: #ffffff;

    transform: translateY(-2px);
}

.msg-upcoming-btn span {
    font-size: 16px;
}


/* ============================================================
   CATEGORY LIST
   ============================================================ */

.msg-category-list {
    border-top: 1px solid #dfe7e3;
}


/* ------------------------------------------------------------
   CATEGORY ROW
   ------------------------------------------------------------ */

.msg-category-row {
    position: relative;

    display: grid;

    grid-template-columns: 70px minmax(0, 1fr) 120px;

    align-items: center;

    column-gap: 38px;

    min-height: 245px;

    padding: 35px 5px;

    border-bottom: 1px solid #dfe7e3;

    transition:
        padding-left .35s ease,
        background .35s ease;
}


/* ------------------------------------------------------------
   SUBTLE HOVER LINE
   ------------------------------------------------------------ */

.msg-category-row::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 3px;
    height: 100%;

    background: #35b978;

    transform: scaleY(0);

    transform-origin: center;

    transition: transform .3s ease;
}

.msg-category-row:hover::before {
    transform: scaleY(1);
}

.msg-category-row:hover {
    padding-left: 20px;

    background:
        linear-gradient(
            90deg,
            rgba(53,185,120,.035),
            transparent 45%
        );
}


/* ------------------------------------------------------------
   NUMBER
   ------------------------------------------------------------ */

.msg-category-no {
    align-self: flex-start;

    padding-top: 4px;

    color: #83918c;

    font-size: 11px;
    line-height: 1;

    font-weight: 600;

    letter-spacing: 1px;
}


/* ------------------------------------------------------------
   CATEGORY INFO
   ------------------------------------------------------------ */

.msg-category-info {
    max-width: 700px;
}


/* ------------------------------------------------------------
   CATEGORY LABEL
   ------------------------------------------------------------ */

.msg-category-label {
    display: block;

    margin-bottom: 10px;

    color: #299a70;

    font-size: 10px;
    line-height: 1.2;

    font-weight: 700;

    letter-spacing: 1.7px;
}


/* ------------------------------------------------------------
   CATEGORY TITLE
   ------------------------------------------------------------ */

.msg-category-info h2 {
    margin: 0;

    font-family: 'Manrope', Arial, sans-serif;

    color: #18211f;

    font-size: 25px;
    line-height: 1.25;

    font-weight: 700;

    letter-spacing: -.6px;

    transition: color .25s ease;
}

.msg-category-row:hover .msg-category-info h2 {
    color: #208861;
}


/* ------------------------------------------------------------
   CATEGORY DESCRIPTION
   ------------------------------------------------------------ */

.msg-category-info p {
    max-width: 650px;

    margin: 13px 0 17px;

    color: #66746f;

    font-size: 14px;
    line-height: 1.65;

    font-weight: 400;
}


/* ------------------------------------------------------------
   TOPIC TAGS
   ------------------------------------------------------------ */

.msg-topic-list {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.msg-topic-list span {
    display: inline-block;

    padding: 5px 9px;

    border: 1px solid #dce5e1;
    border-radius: 5px;

    background: #fafcfb;

    color: #6b7873;

    font-size: 10px;
    line-height: 1;

    font-weight: 500;
}


/* ------------------------------------------------------------
   ACTION
   ------------------------------------------------------------ */

.msg-category-action {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    color: #1b2924;

    font-size: 12px;

    font-weight: 600;

    white-space: nowrap;
}

.msg-arrow {
    display: inline-block;

    font-size: 18px;

    transition:
        transform .3s ease,
        color .3s ease;
}

.msg-category-row:hover .msg-arrow {
    color: #22966d;

    transform: translateX(6px);
}


/* ============================================================
   BOTTOM CTA
   ============================================================ */

.msg-category-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;

    margin-top: 70px;

    padding: 35px 38px;

    border-radius: 14px;

    background: #123c31;

    color: #ffffff;
}

.msg-category-footer .msg-small-label {
    margin-bottom: 9px;

    color: #61d29a;
}

.msg-footer-text h2 {
    margin: 0;

    font-family: 'Manrope', Arial, sans-serif;

    font-size: 23px;
    line-height: 1.3;

    font-weight: 700;

    letter-spacing: -.5px;
}

.msg-footer-text h2 span {
    color: #61d29a;
}


/* ------------------------------------------------------------
   FOOTER BUTTON
   ------------------------------------------------------------ */

.msg-footer-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    flex-shrink: 0;

    padding: 13px 18px;

    border-radius: 100px;

    background: #ffffff;

    color: #17352c;

    font-size: 12px;

    font-weight: 700;

    transition:
        transform .25s ease,
        background .25s ease;
}

.msg-footer-btn:hover {
    transform: translateY(-2px);

    background: #e9f8f0;
}

.msg-footer-btn span {
    font-size: 17px;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

    .msg-categories-page {
        padding: 135px 0 80px;
    }

    .msg-category-row {
        grid-template-columns: 55px minmax(0, 1fr) 95px;

        column-gap: 25px;

        min-height: 225px;
    }

    .msg-category-info h2 {
        font-size: 23px;
    }

    .msg-category-footer {
        align-items: flex-start;

        flex-direction: column;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 650px) {

    .msg-categories-page {
        padding: 115px 0 65px;
    }

    .msg-categories-wrap {
        width: calc(100% - 30px);
    }


    /* INTRO */

    .msg-categories-intro {
        display: block;

        margin-bottom: 40px;
    }

    .msg-intro-copy h1 {
        font-size: 37px;

        line-height: 1.1;

        letter-spacing: -1.5px;
    }

    .msg-intro-copy p {
        margin-top: 17px;

        font-size: 14px;
    }

    .msg-upcoming-btn {
        margin-top: 23px;
    }


    /* ROW */

    .msg-category-row {
        display: grid;

        grid-template-columns: 40px minmax(0, 1fr);

        column-gap: 18px;

        min-height: 0;

        padding: 30px 2px;
    }

    .msg-category-row:hover {
        padding-left: 10px;
    }

    .msg-category-no {
        padding-top: 4px;

        font-size: 10px;
    }

    .msg-category-info {
        max-width: none;
    }

    .msg-category-info h2 {
        font-size: 21px;

        line-height: 1.3;
    }

    .msg-category-info p {
        font-size: 13px;

        line-height: 1.65;

        margin-top: 12px;
    }


    /* ACTION */

    .msg-category-action {
        grid-column: 2;

        justify-content: flex-start;

        margin-top: 18px;
    }


    /* CTA */

    .msg-category-footer {
        margin-top: 50px;

        padding: 28px 23px;

        gap: 24px;
    }

    .msg-footer-text h2 {
        font-size: 20px;
    }

    .msg-footer-btn {
        width: 100%;
    }

}


/* ============================================================
   VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 390px) {

    .msg-intro-copy h1 {
        font-size: 33px;
    }

    .msg-category-info h2 {
        font-size: 20px;
    }

    .msg-category-row {
        column-gap: 14px;
    }

}