@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");

:root {
    --brand-color: #25c69b;
    --black: hsl(0, 0%, 0%);
    --white: hsl(0, 0%, 100%);
    --greens: hsl(109, 100%, 20%);
    --grays: hsl(0, 4%, 35%);
    --font-title: "Merriweather", serif;
    --font-text: "Merriweather", serif;
}

body {
    font-family: "Merriweather", serif !important;
    font-size: 14px;
}


/* Navbar 
* Master
*/
.navbar {
    height: 70px;
}

.dropdown .dropdown-menu {
    display: none;
    margin-left: 0.75em;
}

.dropdown:hover > .dropdown-menu,
.dropend:hover > .dropdown-menu {
    display: block;
    border: none;
    padding-top: 0;
}

.nav-link {
    position: relative;
    color: var(--grays);
    font-size: 13px;
    font-weight: 500;
    margin-left: 4px;
    margin-right: 4px;
}
.foot {
    text-align:center;
    /* font-size: small; */
}

@media (min-width: 992px) {
    .foot {
        text-align: start;
    }
    .nav-link::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background-color: #007858;
        visibility: hidden;
        transition: 0.3s ease-in-out;
    }

    .nav-link:hover::before,
    .nav-link.active::before {
        width: 100%;
        visibility: visible;
    }

    .dropend:hover > .dropdown-menu {
        position: absolute;
        top: 0;
        left: 100%;
        margin-left: 0.125em;
    }
}
/* End Navbar */

/* style global */
.card-meta {
    background-color: rgb(22, 66, 17);
    color: white;
    text-transform: uppercase;
    padding: 3px 5px;
}
.link-style {
    text-decoration-line: none;
    color: var(--grays);
    &:hover{
        color: var(--greens);
        /* font-size: 16pt; */
        /* background-color: #161616; */
    }
}

#myBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 20px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: green; /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 5px 15px; /* Some padding */
    /* border-top-left-radius: 5px;
    border-top-right-radius: 5px; */
    border-radius: 5px;
    font-size: 18px; /* Increase font size */
  }
  
#myBtn:hover {
background-color: var(--greens); /* Add a dark-grey background on hover */
}

/* End style global */






/* Landing Banner
* Home Page
*/
.header-page{
    margin: 10px 10px;
    @media (min-width: 992px) {
        margin: 20px 50px;
    }
}


/* Box Falsafah 
* Home Page
*/
.box-falsafah {
    margin: 20px 0;
}

.box-falsafah img {
    width: auto;
    height: 70px;
    margin: 0 20px 0 20px;
}
/* End Box Falsafah */


/* Card Gradient
* Home Page
*/
.card-gd {
    border: none;
    transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    border-radius: 20px;
    min-height: 350px;
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.2);


    @media (max-width: 768px) {
        min-height: 250px;
    }

    @media (max-width: 420px) {
        min-height: 250px;
    }

    &.card-has-bg {
        transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
        background-size: auto 120%;
        background-repeat: no-repeat;
        background-position: center center;
        &:before {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            background: inherit;
        }
        @media (max-width: 992px) {
            background-size: auto 140%;
        }

        @media (max-width: 768px) {
            background-size: auto 150%;
        }

        &:hover {
            transform: scale(0.98);
            box-shadow: 0 0 5px -2px rgba(0, 0, 0, 0.3);
            background-size: auto 130%;
            transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);

            .card-img-overlay {
                transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
                background: rgb(94, 161, 87);
                background: linear-gradient(0deg, rgba(94, 161, 87, 0.3) 0%, rgba(94, 161, 87, 1) 100%);
            }
        }
    }

    .title-shadow {
        font-weight: 800;
        color: white;
        text-shadow: 1px 1px 3px black;
    }
    .text-shadow{
        color: white;
        margin-left: 10px;
        text-shadow: 2px 1px 5px black;
    }
    .card-gd-body {
        transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
    }
    &:hover {
        .card-gd-body {
            margin-top: 30px;
            transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
        }
        cursor: pointer;
        transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
    }
    .card-img-overlay {
        transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
        background: rgb(94, 161, 87);
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0%, rgba(94, 161, 87, 2) 100%);
    }
}

@media (max-width: 576px) {
    .berita-public {
        display: none;
    }
}
/* End Card Gradient */


/* Card Pusat Informasi
* Home Page
*/
.cardhome {
    width: 100%;
    box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.32);
    cursor: pointer;
    position: relative;
    transform-origin: center;
    transition: all 400ms cubic-bezier(0.165, 0.84, 0.44, 1);
    margin: 0 16px 0 0;

    &:last-child {
        margin: 0;
    }

    &:hover {
        transform: scale(1.02);
    }

    .content {
        padding: 40px 24px 48px 24px;
        position: relative;

        h1,
        p {
            transition: all 400ms cubic-bezier(0.445, 0.05, 0.55, 0.95);

            &.copy {
                margin: 16px 0 0 0;
            }
        }
    }

    &.full {
        height: 300px;
        background: #161616;
        overflow: hidden;

        .content {
            position: absolute;
            z-index: 1;
            bottom: 40px;
            padding: 0 24px;
            transition: all 400ms cubic-bezier(0.165, 0.84, 0.44, 1);
        }

        &:hover {
            .content {
                bottom: 56px;
            }
        }

        .image {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);

            img {
                height: 480px;
                width: auto;
            }

            &:before {
                content: "";
                width: 100%;
                height: 100%;
                background: linear-gradient(
                    to bottom,
                    rgba(0, 0, 0, 0) 0%,
                    rgba(0, 0, 0, 1) 100%
                );
                position: absolute;
            }
        }
    }
}
/* End Card Pusat Informasi */


/* Card Berita
* Berita
*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

.flow > * + * {
    margin-top: var(--flow-space, 1em);
}

.cardstyle {
    display: grid;
    place-items: center;
    max-width: 20rem;
    height: 20rem;
    overflow: hidden;
    border-radius: 0.625rem;
    box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
}

.cardstyle > * {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.cardstyle__background {
    object-fit: cover;
    max-width: 100%;
    height: 100%;
}

.cardstyle__content {
    --flow-space: 0.9375rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: flex-end;
    height: 100%;
    padding: 12% 1.25rem 1.875rem;
    background: linear-gradient(
        180deg,
        hsla(0, 0%, 0%, 0) 0%,
        hsla(0, 0%, 0%, 0.3) 10%,
        hsl(0, 0%, 0%) 100%
    );
}

.cardstyle__content--container {
    --flow-space: 1.25rem;
}

.cardstyle__title {
    position: relative;
    width: fit-content;
    width: -moz-fit-content;
    color: white;
}

.cardstyle__title::after {
    content: "";
    position: absolute;
    height: 0.3125rem;
    width: calc(100% + 1.25rem);
    bottom: calc((1.25rem - 0.5rem) * -1);
    left: -1.25rem;
    background-color: var(--brand-color);
}

.cardstyle__button {
    padding: 0.5em 1em;
    width: fit-content;
    width: -moz-fit-content;
    font-variant: small-caps;
    font-weight: bold;
    border-radius: 0.45em;
    border: none;
    background-color: var(--brand-color);
    font-family: var(--font-title);
    font-size: 1rem;
    color: var(--black);
}

.cardstyle__button:focus {
    outline: 2px solid black;
    outline-offset: -5px;
}

@media (any-hover: hover) and (any-pointer: fine) {
    .cardstyle__content {
        transform: translateY(62%);
        transition: transform 500ms ease-out;
        transition-delay: 500ms;
    }

    .cardstyle__title::after {
        opacity: 0;
        transform: scaleX(0);
        transition: opacity 1000ms ease-in, transform 500ms ease-out;
        transition-delay: 500ms;
        transform-origin: right;
    }

    .cardstyle__background {
        transition: transform 500ms ease-in;
    }

    .cardstyle__content--container > :not(.cardstyle__title),
    .cardstyle__button {
        opacity: 0;
        transition: transform 500ms ease-out, opacity 500ms ease-out;
    }

    .cardstyle:hover,
    .cardstyle:focus-within {
        transform: scale(1.05);
        transition: transform 500ms ease-in;
    }

    .cardstyle:hover .cardstyle__content,
    .cardstyle:focus-within .cardstyle__content {
        transform: translateY(0);
        transition: transform 500ms ease-in;
    }

    .cardstyle:focus-within .cardstyle__content {
        transition-duration: 0ms;
    }

    .cardstyle:hover .cardstyle__background,
    .cardstyle:focus-within .cardstyle__background {
        transform: scale(1.3);
    }

    .cardstyle:hover .cardstyle__content--container > :not(.cardstyle__title),
    .cardstyle:hover .cardstyle__button,
    .cardstyle:focus-within
        .cardstyle__content--container
        > :not(.cardstyle__title),
    .cardstyle:focus-within .cardstyle__button {
        opacity: 1;
        transition: opacity 500ms ease-in;
        transition-delay: 1000ms;
    }

    .cardstyle:hover .cardstyle__title::after,
    .cardstyle:focus-within .cardstyle__title::after {
        opacity: 1;
        transform: scaleX(1);
        transform-origin: left;
        transition: opacity 500ms ease-in, transform 500ms ease-in;
        transition-delay: 500ms;
    }
}
/* End Card Berita */




/* Divider With Line Center */
.hrdivider-left {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
}

.hrdivider-left span {
    position: absolute;
    top: -24px;
    background: #fff;
    padding: 0 20px 0 0;
    font-weight: bold;
    font-size: 24px;
}
/* End Divider With Line Center */

