/* Headings */

#page #primary #content .entry-content {
    $h2-font-size: 21.98px;
    $h2-color: #993366;
    $h3-font-size: 15.96px;
    $h3-color: #156c9a;
    $h4-font-size: 14px;
    $h4-color: #72a748;
    $h5-font-size: 14px;
    $h5-color: inherit;
    .h2 {
        font-weight: bold;
        font-size: $h2-font-size !important;
        color: $h2-color !important;
        line-height: 2;
        text-align: left;
        margin: 0;
        a,
        a.link {
            font-size: $h2-font-size;
            color: inherit;
        }
    }
    .h3 {
        font-weight: bold;
        font-size: $h3-font-size;
        color: $h3-color;
        line-height: 2;
        margin: 0;
        a,
        a.link {
            font-size: $h3-font-size;
            color: inherit;
        }
    }
    .h4 {
        font-weight: bold;
        font-size: $h4-font-size;
        color: $h4-color;
        margin: 0;
        line-height: 2;
        a,
        a.link {
            font-size: $h4-font-size;
            color: inherit;
        }
    }
    .h5 {
        font-weight: bold;
        margin: 0;
        a,
        a.link {
            font-size: $h5-font-size;
            color: inherit;
        }
    }
}

.entry-content {
    hr {
        width: 70%;
        margin-top: 50px;
        margin-bottom: 50px;
    }
    .btn {
        /* Button */
        font-family: "Open Sans", "Noto Sans HK", "Noto Sans TC";
        font-size: 16px;
        font-weight: bold;
        text-align: center;
        line-height: 1.5;
        color: mhcolor(white);
        background: mhcolor(grey);
        padding: point(1) point(3) 5px point(3);
        margin: point(0.25) 0 point(0.5) 0;
        border: none;
        border-radius: point(0.5);
        border-bottom: 3px mhcolor(dark-grey) solid;
        transition: all 0.3s ease;
        &:hover {
            color: mhcolor(white);
            transform: translate(0, -3px);
            box-shadow: 0px 7px 8px -10px rgba(0, 0, 0, 0.75);
        }
        span {
            /* btn smaller text */
            font-size: 14px;
            font-weight: 300;
        }
        &.conversion {
            background: mhcolor(orange);
            border-bottom-color: mhcolor(dark-orange);
        }
        &.two-conversion {
            /* two-conversion for two-grid */
            background: mhcolor(orange);
            border-bottom-color: mhcolor(dark-orange);
            min-width: 200px;
        }
        &.learn-more {
            background: mhcolor(green);
            border-bottom-color: mhcolor(green-shade);
        }
        .mh-table & {
            font-size: 14px;
            padding: 5px 15px 3px 15px;
            position: inherit;
        }
    }
    .text-box {
        /* text emphasis */
        display: inline-block;
        padding: 0.3em 0.7em 0.2em;
        background: mhcolor(dark-blue);
        border-radius: 20px;
        color: #fff;
        line-height: 1;
        margin: 0 0.5em;
        &.bluebg {
            background: mhcolor(dark-blue);
        }
        &.orangebg {
            background: mhcolor(orange);
        }
        &.greenbg {
            background: mhcolor(green);
        }
    }
    .link-clear {
        /* link and anchor */
        color: inherit;
        text-decoration: none;
    }
    .link,
    .anchor {
        color: mhcolor(blue-shade);
        font-size: 14px;
        font-weight: bold;
        text-decoration: underline;
    }
    .link {
        &.further-reading {
            color: mhcolor(bright-orange);
            text-align: center;
        }
        &.series-reading {
            color: mhcolor(bright-orange);
            text-decoration: none;
        }
    }
    a.anchor {
        transition: all 0.2s ease;
        transform-origin: bottom;
        display: inline-block;
        position: relative;
        &.down {
            &:after {
                content: "";
                display: block;
                font-family: "icofont";
                font-size: 14px;
                line-height: 0.5;
                position: absolute;
                bottom: 0;
                left: calc(50% - 7px);
                opacity: 0;
                transition: all 0.5s ease;
            }
            &:hover {
                transform: translate(0, -2px) !important;
                &:after {
                    opacity: 1;
                    bottom: -5px;
                }
            }
        }
        &.up {
            &:after {
                content: "";
                display: block;
                font-family: "icofont";
                font-size: 14px;
                line-height: 0.5;
                position: absolute;
                top: 0;
                left: calc(50% - 7px);
                opacity: 0;
                transition: all 0.5s ease;
            }
            &:hover {
                transform: translate(0, 2px) !important;
                &:after {
                    opacity: 1;
                    top: -5px;
                }
            }
        }
        &.back-to-top {
            text-decoration: none !important;
            color: #a19c9c;
            border: 1px #e8e8e8 solid !important;
            padding: 0 7px;
            border-radius: 5px;
            line-height: 2;
            display: inline-block;
            margin-top: 2.4rem;
            &:before {
                content: "";
                font-family: "icofont";
                display: inline-block;
                vertical-align: baseline;
                font-size: 17px;
                margin: 0 3px 0 0;
            }
        }
    }
    .tooltip {
        /* tool tip */
        .tooltip-inner {
            border: none;
            background: #e4e8ea;
            max-width: 480px;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
        }
        &.top>.tooltip-arrow {
            width: 10px;
            height: 10px;
            background: #e4e8ea;
            border: none;
            display: block;
            transform: rotate(45deg);
            z-index: -1;
        }
        .mh-table.mouse-hover &.fade.top.in {
            transition: none;
        }
    }
    .link-on-tip {
        display: inline-block;
    }
}