/* 
-----------------------------------------
HEADER
-----------------------------------------
*/


/*------ Home header section -------*/

.section-header-home {
    margin-bottom: 1.5rem;
    min-height: 100vh;
}

/* ----- Other pages header section ---------- */

.section-header {
    min-height: 40vh;
    position:relative;
    border-radius: 0 0 25px 25px;
    overflow: hidden;
}

    .section-header.hero-h1 {
        min-height: 60vh;
    }

    .section-header .container {
        max-width: 600px;
    }

    .section-header .overlay-content h1 {
        text-align: center;
    }
    .section-header .overlay-content p {
        margin: 0;
    }

        .section-header h1 {
            color: var(--text-white);
        }
/*
@media screen and (min-width: 992px) {
    .section-header {
        margin-bottom: 2rem;
    }
}

@media screen and (min-width: 1200px) {
    .section-header {
        margin-bottom: 2.25rem;
    }
}*/

/* Underline Animation */
#underline-animation {
    width: 100%;
    max-width: 175px;
    margin: -9.5rem auto 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transition: all ease-in-out .3s;
}
    #underline-animation svg {
        width: 100%;
        height: auto;
    }


@media(min-width: 768px) {
    #underline-animation {
        bottom: .5rem;
        max-width: 225px;
    }
}
@media(min-width: 1200px) {
    #underline-animation {
        bottom: .5rem;
        max-width: 325px;
    }
}
@media(min-width: 1400px) {
    #underline-animation {
        bottom: .75rem;
    }
}

    #underline-animation .underline-path {
        fill: none;
        stroke: var(--secondary-color);
        stroke-width: 8;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-dasharray: 1500;
        stroke-dashoffset: 1500;
        animation: draw-underline 10s ease-in-out infinite;
    }

    @keyframes draw-underline {
        /* Draw: 0% to 15% (1.5s) */
        0% {
            stroke-dashoffset: 1500;
            opacity: 1;
        }

        10% {
            stroke-dashoffset: 0;
            opacity: 1;
        }
        /* Hold: 15% to 75% (6s) */
        80% {
            stroke-dashoffset: 0;
            opacity: 1;
        }
        /* Fade out: 75% to 80% (0.5s) */
        85% {
            stroke-dashoffset: 0;
            opacity: 0;
        }
        /* Wait: 80% to 100% (2s) */
        100% {
            stroke-dashoffset: 1500;
            opacity: 0;
        }
    }
