/* HTML tag */

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.5;
    text-align: left;
    font-family: var(--font-title);
    color: var(--blue-dark);
    font-weight: 700;
}

h1 {
    text-align: center;
    font-size: 3.2rem;
}

/* Personalized class */

.heading-title {
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: 3.2rem;
}

/* compHeadingDivider: title between two gradient lines tapering outward; a long title wraps, lines keep 3.2rem */
.heading-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;

    &::before, &::after {
        content: '';
        flex: 1 1 3.2rem;
        min-width: 3.2rem;
        height: 5px;
    }

    &::before {
        background: linear-gradient(90deg, #3b82f6, #8b5cf6);
        clip-path: polygon(0 50%, 100% 0, 100% 100%);
    }

    &::after {
        background: linear-gradient(90deg, #8b5cf6, #3b82f6);
        clip-path: polygon(0 0, 100% 50%, 0 100%);
    }

    & > * {
        flex: 0 1 auto;
        min-width: 0;
        text-align: center;
        text-wrap: balance;
    }
}

.heading-border-y-gradient {
    padding-top: 0.9rem;
    padding-bottom: 0.5rem;
    text-align: center;
    font-size: 2.8rem;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #3b82f6, #8b5cf6) 1;
}

.heading-underlined-gradient {
    padding-bottom: 0.5rem;
    text-align: center;
    font-size: 2.8rem;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #3b82f6, #8b5cf6) 1;
}

.heading-underlined-blue-dark {
    margin-top: 3rem;
    margin-bottom: 0.25rem;
    text-align: center;
    font-family: var(--font-title);
    font-size: 2.7rem;
    font-weight: 600;
    color: var(--blue-dark);
    border-bottom: 2px solid var(--blue-dark);
}

.heading-underlined-blue-light {
    position: relative;
    margin-bottom: 3.5rem;
    padding-bottom: 10px;
    font-size: 2.7rem;

    &[data-step]::before {
        content: attr(data-step) ". ";
    }
}

.heading-underlined-blue-light:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--blue-light);
}
