/* ==========================================================
   FINTECHOISIS | GPIR
   Layout System
   Version : 1.0
========================================================== */


/* ==========================================================
   RESET
========================================================== */

*,
*::before,
*::after{

    margin:0;

    padding:0;

    box-sizing:border-box;

}


/* ==========================================================
   HTML / BODY
========================================================== */

html{

    scroll-behavior:smooth;

}

body{

    min-height:100vh;

    overflow-x:hidden;

    background:var(--bg-page);

}


/* ==========================================================
   IMAGES
========================================================== */

img{

    max-width:100%;

    display:block;

    height:auto;

}


/* ==========================================================
   CONTAINER
========================================================== */

.container{

    width:100%;

    max-width:var(--container-width);

    margin:0 auto;

    padding-left:var(--container-padding);

    padding-right:var(--container-padding);

}


/* ==========================================================
   SECTION
========================================================== */

section{

    position:relative;

    width:100%;

    padding:var(--space-2xl) 0;

}


/* ==========================================================
   GRID SYSTEM
========================================================== */

.grid-2{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:var(--space-xl);

    align-items:center;

}

.grid-3{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:var(--space-lg);

}

.grid-4{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:var(--space-lg);

}


/* ==========================================================
   FLEX HELPERS
========================================================== */

.flex{

    display:flex;

}

.flex-center{

    display:flex;

    justify-content:center;

    align-items:center;

}

.flex-between{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.flex-column{

    display:flex;

    flex-direction:column;

}


/* ==========================================================
   WIDTH HELPERS
========================================================== */

.w-100{

    width:100%;

}

.w-50{

    width:50%;

}

.text-center{

    text-align:center;

}

.text-left{

    text-align:left;

}

.text-right{

    text-align:right;

}


/* ==========================================================
   SECTION HEADERS
========================================================== */

.section-header{

    text-align:center;

    max-width:900px;

    margin:0 auto var(--space-xl);

}

.section-header h2{

    margin-bottom:var(--space-md);

}

.section-header p{

    color:var(--text-muted);

}


/* ==========================================================
   SPACING HELPERS
========================================================== */

.mt-sm{

    margin-top:var(--space-sm);

}

.mt-md{

    margin-top:var(--space-md);

}

.mt-lg{

    margin-top:var(--space-lg);

}

.mt-xl{

    margin-top:var(--space-xl);

}

.mb-sm{

    margin-bottom:var(--space-sm);

}

.mb-md{

    margin-bottom:var(--space-md);

}

.mb-lg{

    margin-bottom:var(--space-lg);

}

.mb-xl{

    margin-bottom:var(--space-xl);

}


/* ==========================================================
   DISPLAY HELPERS
========================================================== */

.hidden{

    display:none;

}

.visible{

    display:block;

}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media(max-width:1024px){

    .grid-4{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:768px){

    section{

        padding:var(--space-xl) 0;

    }

    .grid-2,
    .grid-3,
    .grid-4{

        grid-template-columns:1fr;

    }

    .container{

        padding-left:20px;

        padding-right:20px;

    }

}

@media(max-width:480px){

    .container{

        padding-left:16px;

        padding-right:16px;

    }

}

.visually-hidden{

    position:absolute;

    width:1px;

    height:1px;

    padding:0;

    margin:-1px;

    overflow:hidden;

    clip:rect(0,0,0,0);

    white-space:nowrap;

    border:0;

}

/*=====================================================
FLOATING BACK TO TOP
======================================================*/

#floating-back-to-top{

    position:fixed;

    right:22px;

    bottom:22px;

    width:42px;

    height:42px;

    display:flex;

    align-items:center;

    justify-content:center;

    border:1px solid rgba(15,41,77,.12);

    border-radius:50%;

    background:#ffffff;

    color:#0F294D;

    box-shadow:0 10px 26px rgba(15,41,77,.18);

    cursor:pointer;

    opacity:0;

    visibility:hidden;

    transform:translateY(10px);

    transition:opacity .22s ease, transform .22s ease, visibility .22s ease, background .18s ease;

    z-index:900;
}

#floating-back-to-top.is-visible{

    opacity:1;

    visibility:visible;

    transform:translateY(0);
}

#floating-back-to-top:hover{

    background:#B8863B;

    color:#ffffff;
}

#floating-back-to-top svg{

    width:18px;

    height:18px;
}

@media (max-width:560px){

    #floating-back-to-top{

        right:14px;

        bottom:14px;

        width:38px;

        height:38px;
    }

}

/*=====================================================
READING PROGRESS
======================================================*/

#reading-progress-bar{

    position:fixed;

    top:0;

    left:0;

    height:3px;

    width:0%;

    background:#B8863B;

    z-index:150;

    transition:width .1s linear;

    pointer-events:none;
}