@font-face {
    font-family: 'Roboto';
    font-weight: 300;
    src: url('../fonts/Roboto-Light.ttf');
}

@font-face {
    font-family: 'Roboto';
    font-weight: normal;
    src: url('../fonts/Roboto-Regular.ttf');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 500;
    src: url('../fonts/Roboto-Medium.ttf');
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: normal;
    font-size: 1em;
    background: #F3F6F8;
}

img {
    max-width: 100%;
}

header {
    position: sticky;
    top: 0;
    height: auto;
    background: #FFF;
    padding: 5px 0 0;
    box-shadow: 0 3px 10px #33333305;
    z-index: 777;
}

header a,
header a:link {
    color: #333;
}

header .row {
    margin-top: 50px;
}

header h1 {
    margin: 0 0 10px;
    font-size: 2em;
}

header h3 {
    margin: 0 0 40px;
    font-size: 1.2em;
}

/* Content
class = .
id = #
*/
.content {
    padding-top: 40px;
}

.wrap-sort {
    display: flex;
    flex-wrap: unset;
    justify-content: flex-start;
    align-items: center;
}

.wrap-sort select {
    width: 200px;
    margin: 0 0 0 10px;
    height: calc(1.5em + .75rem + 0px);
}

.wrap-sort a,
.wrap-sort a:link {
    color: #444;
    margin-right: 10px;
    font-size: 1.3em;
    transition: all .3s linear;
}

.wrap-sort a:last-child,
.wrap-sort a:link:last-child {
    margin-right: 0;
}

.wrap-sort a:hover {
    color: var(--primary);
}

.grid .card {
    border: solid 1px #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px #F4F4F4;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    margin-bottom: 30px;
    height: 230px;

    display: flex;
    justify-content: center;
    align-items: center;
    
    transition: all 0.3s linear;
}

.grid .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 25px #e4e4e4;
}

.grid img {
    border: solid 3px #FFF;
    border-radius: 100px;
    object-fit: cover;
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    box-shadow: 0 4px 10px #EEE;
}

.grid h4 {
    font-size: 1.1em;
    line-height: 1.5;
    margin: 0;
    color: var(--primary);
}

.grid h5 {
    font-size: 0.8em;
    color: #999;
    white-space: pre-wrap;
    line-height: 1.5;
    font-weight: normal;
    margin: 5px 0 10px;
}

/* berita and perusahaan */
.perusahaan a,
.perusahaan a:link {
    color: #333;
}

.img-company {
    margin-bottom: 20px;
}

.desc {
    white-space: pre-wrap;
    line-height: 1.6;
}

/* Berita Index */
.berita-grid .list {
    background: #FFF;
    overflow: hidden;
    margin-bottom: 20px;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 2px 4px 10px #F4F4F4;
    transition: all 0.3s linear;
}

.b .list img {
    width: 100% !important;
}

.berita-grid .list span {
    font-size: 12px;
    margin: 10px 10px 0 10px;
    display: inline-block;
}

.berita-grid .list b {
    margin: 10px;
    font-size: 1.10em;
    font-weight: 500;
    line-height: 1.4;
    
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    display: -moz-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    -moz-line-clamp: 2;
    -moz-box-orient: vertical;
}

.berita-grid .list p {
    overflow: hidden;
    text-overflow: ellipsis;

    display: -webkit-box;
    display: -moz-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    -moz-line-clamp: 5;
    -moz-box-orient: vertical;

    font-size: 14px;
    text-align: justify !important;
    text-align-last: unset !important;
    text-justify: newspaper !important;
    margin: 0 10px 10px !important;
}

/* Berita in Page */
.berita > div {
    width: 100%;
    display: flex;
    text-decoration: none;
    color: #333;
    background: #FFF;
    margin: 0 15px 15px;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s linear;
}

.berita-grid .list:hover,
.berita > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 25px #e4e4e4;
}

.berita-grid .list img,
.berita > div img {
    width: 350px;
    height: 200px;
    object-fit: cover;
    margin-right: 15px;
}

.wrap-berita span {
    font-size: 13px;
    margin: 0;
}

.wrap-berita h4 {
    margin: 8px 0;
    font-size: 1.35em;
    line-height: 1.4;
}

.berita-grid .list p,
.wrap-berita p {
    margin: 0;
    text-align: justify;
    text-justify: newspaper;
}

.wrap-berita a {
    margin-top: 10px;
    display: inline-block;
}

/* Detail berita */
.berita-detail {
    background: #FFF;
    text-align: center;
    height: auto;
}

.not-found {
    background-color: #FFF;
    height: 400px !important;
}

.not-found > img {
    height: 400px;
    width: auto;
    object-fit: cover;
}

.img-berita-detail {
    width: 100%;
    object-fit: cover;
}

.detail-berita span {
    font-size: 1em;
    color: #666;
    display: inline-block;
}

.detail-berita p {
    white-space: pre-wrap;
    text-align: justify;
    line-height: 1.5;
    margin-top: 20px;
}

.detail-berita .tag {
    margin-top: 40px;
    color: #888;
}

.detail-berita .tag span {
    display: block;
    margin-bottom: 10px;
}

.detail-berita .tag > div {
    position: relative;
    width: auto;
    display: inline-block;
    background: #E4E4E4;
    padding: 6px 15px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    color: #444;
    cursor: default;
}

/* GALLERY FRONT */
.gallery-front {
    margin: 0 10px;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
}

.gallery-front > img {
    cursor: pointer;
    width: calc(33.33% - 15px);
    margin: 0 7.5px 20px;
    height: 250px;
    object-fit: cover;
    background: #FFF;
    border-radius: 6px;
    display: inline-block;
    overflow: hidden;
    box-shadow: 0 1px 5px #CCC;
    transition: all .3s ease-in-out;
}

.gallery-front > img:hover {
    transform: translateY(-4px);
    box-shadow: 0 1px 10px #00000090;
}

/* Produk Hukum */
.produk-hukum a {
    position: relative;
    display: block;
    width: 100%;
    padding: 10px 20px;
    border-radius: 10px;
    background-color: #FFF;
    margin: 0 15px 15px;
    color: #555;
    text-decoration: none;
    box-shadow: 0 2px 5px #CCCCCC30;
    overflow: hidden;
    box-sizing: border-box;
    transition: all .3s linear;
}

.produk-hukum a:hover {
    transform: translateY(-5px);
    box-shadow: 0 2px 8px #CCCCCC90;
}

.produk-hukum span {
    position: absolute;
    font-size: 1.3em;
    top: 12px;
}

.produk-hukum h4 {
    font-size: 1.3em;
    margin-top: 6px;
    text-transform: uppercase;
}

.produk-hukum h5 {
    font-size: 1.1em;
    color: #888;
    font-weight: normal;
    text-transform: lowercase;
}

.produk-hukum h6 {
    font-size: 0.9em;
    color: #BBB;
}

.produk-hukum h4,
.produk-hukum h5,
.produk-hukum h6 {
    padding-left: 35px;
    display: inline-block;
    width: 100%;
}

/* Struktur */
.struktur > div {
    background-color: #FFF;
    margin-bottom: 20px;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: default;
    color: #777;
    font-size: 14px;
}

.struktur span {
    width: 30px;
    height: 50px;
}

.struktur b {
    font-weight: 500;
    font-size: 1.15em;
    display: block;
    color: #333;
}

/* Visi Misi */
.visi-misi h4 {
    color: #333;
    font-size: 1.6em;
    letter-spacing: 1px;
    line-height: 1.6;
    text-align: center;
}

.visi-misi ul {
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
}

.visi-misi li {
    counter-increment: customlistcounter;
    margin-top: 15px;
    font-size: 18px;
    line-height: 1.6;
    list-style: none;
    padding-left: 30px;
    position: relative;
}


.visi-misi li:before {
    content: counter(customlistcounter) ".";
    font-size: 18px;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: left;
    position: absolute;
    top: 2px;
    left: -2px;
    display: inline-block;
}

/* Layanan */
.layanan a {
    text-decoration: none;
    color: #333 !important;
    margin-bottom: 20px;
    transition: all .3s linear;
}

.layanan a .card {
    border-radius: 6px;
    transition: all .3s linear;
    box-shadow: 0 2px 5px #33333310;
}

.layanan a:hover {
    transform: translateY(-4px);
}

.layanan a:hover .card {
    box-shadow: 0 2px 5px #33333320;
}

/* FOOTER */
footer {
    margin-top: 50px;
    background: #4D7F8A;
    color: #DDD;
    font-weight: normal;
    padding: 50px 0 40px;
    font-size: 14px;
}

footer .logo {
    background-image: url('../img/logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 90px;
    height: 85px;
    margin-bottom: 20px;
    filter: brightness(120%)
}

footer h3 {
    font-weight: normal;
    font-size: 24px;
    color: #FFF;
    margin-bottom: 20px;
    text-transform: capitalize;
}

footer ul,
footer ul li {
    margin: 0;
    padding: 0;
}

footer ul li {
    list-style: none;
    margin-bottom: 10px;
    position: relative;
}

footer ul li > ion-icon {
    margin-right: 5px;
}

footer ul li:nth-child(1) > ion-icon {
    position: absolute;
    left: 0;
}

footer .follow-us a {
    font-size: 16px !important;
    background: #FFF;
    width: 35px;
    height: 35px;
    color: #4D7F8A;
    display: inline-block;
    text-align: center;
    line-height: 35px;
    border-radius: 30px;
    margin-right: 3px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all .2s linear;
}

footer .follow-us a:hover {
    box-shadow: 0 1px 5px #FFF;
    transform: translateY(-3px);
}

.last-footer {
    background: #395b63;
    height: 50px;
    line-height: 50px;
    font-size: 14px;
    color: #FFF;
}

.last-footer b {
    letter-spacing: 2px;
}

.last-footer .nav-link {
    display: inline-block;
    padding: 0;
    color: #FFF;
    margin-left: 15px;
}


/* Custom CSS Bootstrap */
.nav-item {
    margin: 0 0.3rem;
    display: inline-block;
}

.dropdown-menu {
    right: 0;
    left: unset;
}

.dropdown-item {
    transition: all .2s linear;
}

.dropdown-item:focus,
.dropdown-item:hover {
    background: var(--primary);
    color: #FFF;
}

.form-control,
.btn {
    height: calc(1.5em + .75rem + 10px);
    border-radius: 8px;
}

.navbar-brand > img {
    height: 25px;
    margin-right: 5px;
}

.navbar-toggler {
    padding: .25rem .45rem;
    border: 1px solid #007bff94;
}

.navbar-toggler ion-icon {
    font-size: 1.4em;
}

.navbar-nav {
    flex-direction: inherit;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 10px;
}

.slider .carousel-inner {
    width: 100%;
    height: 35em;
}

.slider .carousel-inner img {
    height: 35em;
    object-fit: cover;
    object-position: top center;
}

.carousel-control-next,
.carousel-control-prev {
    position: absolute;
    top: 45%;
    display: inline-block;
    height: 10%;
    width: 4%;
    color: #fff;
    background: rgba(0, 0, 0, .1);
    padding-top: 15px;
    box-sizing: border-box;
    vertical-align: middle
}

.carousel-indicators {
    bottom: 70px;
}

.carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border-top: 0;
    border-bottom: 0;
}

/* Gallery Detail */
.modal-gallery {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 889;
    background: #000000CC;

    display: none;
    justify-content: center;
    align-items: center;
}

.modal-wrap {
    height: 80vh;
    width: auto;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    background: #FFF;
    text-align: center;
    box-shadow: 0 0 40px #00000090;
    position: relative;
}

.modal-wrap img {
    object-fit: cover;
    object-position: center;
    height: 80vh !important;
    width: 100% !important;
}

.modal-wrap h4 {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    margin: 0;
    color: #FFF;
    background: #00000090;
    font-size: 18px;
    z-index: 999;
}

.modal-gallery > span {
    position: fixed;
    right: 20px;
    top: 20px;
    font-size: 26px;
    color: #BBB;
    background: #FFFFFF50;
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 32px;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
    transition: all .2s linear;
}

.modal-gallery > span:hover {
    background: #FFFFFF90;
    color: #FFF;
}

/* Menu on Bottom */
.menu-bottom a {
    display: inline-block;
    position: relative;
    background-color: #FFF;
    background-size: 108%;
    background-position: center;
    width: 100%;
    height: 170px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFF;
    text-decoration: none;
    font-size: 1.2em;
    transition: all .2s linear;
}

.menu-bottom a:hover {
    background-size: 100%;
}

.menu-bottom div:nth-child(1) > a {
    background-image: url('../img/bottom_1.jpg');
}

.menu-bottom div:nth-child(2) > a {
    background-image: url('../img/bottom_2.jpg');
}

.menu-bottom div:nth-child(3) > a {
    background-image: url('../img/bottom_3.png');
}


/* ionicons */
ion-icon {
    position: relative;
    top: 2px;
}

/* Responsive design */
@media(min-width:992px) {

    header.shrink {
        box-shadow: 0 3px 10px #33333315;
        padding: 0;
    }

    header.shrink .navbar-nav {
        margin-top: 0;
        margin-bottom: 0;
    }

    header .navbar-nav {
        transition: 0.4s;
    }
}

@media(max-width:992px) {

    .berita > div img {
        width: 250px;
        height: 150px;
    }

    .berita-grid .list img {
        width: 100%;
    }

    .navbar-nav .dropdown-menu {
        position: absolute;
    }
}

@media(max-width:768px) {
    header h1 {
        font-size: 1.4em;
    }

    header h3 {
        font-size: 1.1em;
    }

    .berita > div img {
        width: 100%;
        display: block;
        height: 230px;
        border-radius: 6px;
    }

    .berita > div {
        display: unset;
    }

    .wrap-berita a {
        display: block;
        text-align: right;
    }

    .wrap-berita span {
        margin: 15px 0 0;
        display: inline-block;
    }

    footer .col-md-4,
    footer .col-md-3 {
        margin-top: 30px;
    }

    .gallery-front {
        padding: 20px 10px;
        margin-left: 0;
        margin-right: 0;
    }

    .gallery-front > img {
        width: calc(50% - 15px);
        margin: 0 7.5px 20px;
        height: 250px;
    }

    /* Custom from BS */
    .slider .carousel-inner {
        height: 10em;
    }
    
    .slider .carousel-inner img {
        height: 10em;
    }
    
    .carousel-indicators {
        bottom: 0;
    }

    .navbar-nav {
        display: flex;
        width: 100%;
        justify-content: center;
        flex-flow: wrap;
        margin-bottom: 10px;
    }

    .nav-item {
        margin: 0 5px;
        width: calc(50% - 10px);
        border-bottom: dotted 1px #CCC;
    }

    .navbar-nav .nav-item:nth-child(5),
    .navbar-nav .nav-item:nth-child(6) {
        border: 0;
    }
    
    .navbar-nav .dropdown-menu {
        position: absolute;
        right: unset;
        left: 0;
        margin-top: -2px;
        margin-left: -2px;
    }

    .produk-hukum span {
        font-size: 1em;
        font-weight: 500;
        top: 16px;
    }
    
    .produk-hukum h4 {
        font-size: 1em;
        margin-top: 6px;
        line-height: 1.5;
    }
    
    .produk-hukum h5 {
        font-size: 0.8em;
        word-wrap: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.3;
    }
    
    .produk-hukum h6 {
        font-size: 0.7em;
    }
}
