body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    background: #343a40;
    color: #eee;
    font-family: "Rubik", sans-serif;
    font-size: 14px;
}

/* common */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Gupter", serif;
}

a,
a:link,
a:visited {
    color: #eee;
}

a:hover {
    color: #eee;
}

a.btn,
a.btn:link,
a.btn:visited {
    color: #fff;
}

.btn-primary,
a.btn-primary,
a.btn-primary:link {
    background: #4f7b93;
    border: 0;
}

.btn-primary:hover,
a.btn-primary:hover {
    background: #155f8d;
    border: 0;
}

hr {
    border-top: 1px dashed #999;
}

.alert {
    background: #f3f3f3;
    padding: 1em;
    margin-bottom: 1.5em;
    border-radius: 10px;
    font-size: 0.9em
}
.alert-danger{
    background: #f00000 !important;
    color: #fff !important;
}


/* end of common */
.footer-left{
    text-align: left;
}
.dropdown-menu{
    background-color: #6c757d;
}
.dropdown-item{
    font-size: 14px;
}
.dropdown-item:focus, .dropdown-item:hover {
    color: #ccf000;
    background-color: #ffffff00;
}
/* header */
#header {
    background: rgb(0 0 0);
    background: radial-gradient(circle, rgb(0 0 0) 0%, #343a40 100%);
    padding-top: 1em;
    padding-bottom: 1em;
    border-bottom: 0px solid #3c3c3c;
    /* text-align: center; */
}

#header .container {
    position: relative;
}

#header a,
#header a:link,
#header a:visited {
    font-family: "Gupter", serif;
    color: #ffffff;
    font-size: 2.0em;
    font-weight: normal;
}

#header a:hover {
    color: #f08200;
}

#header .navbar-toggler {
    float: right;
    padding: 7px;
    width: 45px;
    height: 45px;
    border: 1px solid #eee;
    position: absolute;
    top: 0;
}

#header .navbar-toggler.collapsed {
    border: 1px solid #d5d5d500;
}

#header .navbar-toggler span {
    margin: 4px 0;
    display: block;
    width: 29px;
    height: 4px;
    background: #ffffff;
    border-radius: 2px;
}


#header .navbar-brand img {
    height: 45px;
    width: auto;
}

/* end of header */


/* navbar */
.navbar-content {
    margin-bottom: 15px;
    margin-top: 4.4rem;
    position: fixed;
    width: 100%;
    background-color: #6c757d;
    z-index: 2;
    border-bottom: 2px solid #ffffff;
}

.text-readmore {
    color: #000;
    text-decoration: none;
}

.fixed-navbar {
    position: fixed;
    width: 100%;
    z-index: 999;
    text-align: center;
}

.mt-extra {
    margin-top: 8rem !important;
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav {
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        flex-flow: wrap;
    }


}
.card{
    border-color: #495057;
}
.list-group-item {
    padding: 0.5rem !important;
    background-color: #495057 !important;
    border-color: #eee !important;
}
.item.post{
    min-height: 21rem;
}
.image img, svg {
    max-width: 100%;
    object-fit: contain;
    max-height: 500px;
    height: auto;
}
@media (max-width: 580px) {
    .footer-left{
        text-align: center;
    }
    .item.post{
        min-height: 13rem;
    }
    .loginpro {
        position: static !important;
        right: 0;
    }
    .hpost{
        min-height: 260px !important;
    }
    #header {
        text-align: center;
    }

    .popup-banner.large {
        width: 100% !important;
    }

    .mt-extra {
        margin-top: 5rem !important;
    }

    .img-thumbnail.listhead {
        height: 245px !important;
    }

    .list-group-item {
        padding: 0.5rem !important;
        background-color: #495057 !important;
        border-color: #495057 !important;
    }

    .post {
        padding: 0.5rem !important;
    }
    h3.title-post{
        font-size: 1.1rem;
    }
    h4.title-post,
    h5.title-post,
    h6.title-post {
        font-size: 14px;
        height: 32px;
        overflow: hidden;
    }

    .img-thumbnail.listnews,
    .img-thumbnail.listpart,
    .img-thumbnail.listpart2 {
        width: 100% !important;
        max-width: 100% !important;
        height: 105px !important;
        margin-right: 1rem !important;
        object-fit: cover !important;
        max-width: 180px !important;
    }

    .img-thumbnail.listmini {
        width: 100% !important;
        max-width: 105px !important;
        height: 105px !important;
        margin-right: 1rem !important;
        object-fit: cover !important;
    }
}
.img-thumbnail{
    padding: 0;
    border: none;
}
@media screen and (max-width: 991px) {
    .navbar {
        padding: 0;
    }
}

.navbar .navbar-nav .nav-item {
    padding-left: 5px;
    padding-right: 5px;
    font-size: 13px;
}

.navbar .navbar-nav .nav-item a.nav-link,
.navbar .navbar-nav .nav-item a.nav-link:link,
.navbar .navbar-nav .nav-item a.nav-link:visited {
    color: #ffffff;
    text-shadow: 2px 1px #3d3d3d;
}

.navbar .navbar-nav .nav-item a.nav-link:hover {
    color: hwb(69 0% 6%);
}

#searchForm {
    width: 100%;
    /* Adjust width as needed */
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hide the search icon focus outline */
#searchIcon {
    outline: none;
    position: absolute;
    right: 0;
    top: 0;
}

/* end of navbar */


/* footer */
#footer {
    color: #eee;
    text-align: center;
    /* border-top: 1px solid #eee; */
}

/* end of footer */


/* search box */
.search-box {
    border-radius: 0;
    border-color: #eee;
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 100%;
}

.search-box .form-control {
    border-radius: 0;
    border: 1px solid #ccc;
}

.search-box .btn {
    border-radius: 0;
    background: #333;
    border: 1px solid #333;
}

/* end of search box */


/* posts */
.post {
    background: #6c757d;
    padding: 1em;
    margin-bottom: 1em;
    border-radius: 8px;
}

ul.list-group {
}

.post h3 a,
.post h3 a:link,
.post h3 a:visited {
    /* color: #333;
    text-decoration: none; */
}

.boxcontent {
    padding: 1rem 2rem !important;
    width: 100%;
    position: absolute;
    bottom: 0;
    background-color: #00000096;
    left: 0;
    min-height: 50%;
}

.img-thumbnail.listhead {
    object-fit: cover;
    width: 100%;
    height: 435px;
    background-color: #0e0e0e;
}

.img-thumbnail.listpart {
    width: 100%;
    object-fit: cover;
    height: 170px;
    background-color: #0a0a0a;
}

.img-thumbnail.listpart2 {
    width: 100%;
    object-fit: cover;
    height: 358px;
    background-color: #0a0a0a;
}
.sidebar-popular-news{
    background-color: black;
    border-radius: 10px;
    margin-bottom: 1rem;
    color: #ffc107;
}
.img-thumbnail.listnews {
    width: 100%;
    max-width: 125px;
    height: 125px;
    object-fit: cover;
    margin-right: 1rem !important;
    background-color: #0e0e0e;
}

.img-thumbnail.listmini {
    width: 100%;
    max-width: 105px;
    min-width: 105px;
    height: 105px;
    object-fit: cover;
    margin-right: 1rem !important;
    background-color: #0e0e0e;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.bg-greenlg {
    background: rgb(13, 85, 52);
    background: linear-gradient(0deg, rgba(13, 85, 52, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

.time {
    padding: 5px;
    margin-bottom: 10px;
    display: inline-block;
    font-size: 10px;
    background-color: #425c79;
    color: #ffffff !important;
    min-width: 120px;
    text-align: center;
}

.title-post a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Rubik';
}

.title-post a:hover {
    color: #ffc107;
    border-bottom: 1px dashed #ffc107;
}

.hpost {
    min-height: 400px;
}

.sticky-container {
    position: relative;
}

.sidebar {
    position: sticky;
    top: 8.5rem;
    bottom: 0;
}

@media (min-width: 1200px) {

    .h4,
    h4 {
        font-size: 1.4rem;
    }
}

.post .img-thumbnail {
    max-height: 500px;
    display: block;
}

img,
svg {
    max-width: 100%;
}

/* single page */
.single-page {
    /* background: #fff; */
    padding: 2rem 1.5em;
    margin-bottom: 1em;
    border-radius: 8px;
    min-height: 85vh;
    /* box-shadow: -5px 2px #c5c5c5; */
}

.single-page h3 {
    font-size: 2em;
    color: #ffffff;
    font-family: 'Rubik';
}

.single-page h3 a,
.single-page h3 a:link,
.single-page h3 a:visited {
    color: #000;
}

.single-page h3 a:hover {
    color: #999;
}

.single-page span.time {
    color: #eee;
    padding: 7px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: inline-block;
}

.single-page .img-thumbnail {
    /* max-height: 400px; */
    margin: auto;
}

/* end of single page */

/* link page */
.link {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.link-top {
    padding: 2rem;
    text-align: center;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* end of link page */

.text-muted{
    color: #eee !important;
}
/* pagination */
.page-link.active,
.active>.page-link {
    background-color: #212529;
    border-color: #212529;
    color: #eee !important;
}
.pagination .page-link{
    color: #000;
}
.page-link.disabled,
.disabled>.page-link {}

/* end of pagination */

.running-text {
    position: relative;
    width: 100%;
    height: 40px;
    background-color: #f8f9fa;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.text-wrapper {
    white-space: nowrap;
    display: inline-block;
    animation: scroll-text 15s linear infinite;
}

.scrolling-text {
    display: inline-block;
    color: #333;
    font-size: 16px;
    padding: 0 50px;
    /* Memberikan jarak horizontal antar teks */
}

@keyframes scroll-text {
    0% {
        transform: translateX(100%);
        /* Mulai dari kanan layar */
    }

    100% {
        transform: translateX(-100%);
        /* Berakhir di kiri layar */
    }
}

.owl-nav,
.owl-dots {
    display: none;
}

.owl-carousel .owl-item img{
    min-height: 90px !important;
}
.popup-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
}

.popup-banner.small {
    width: 300px;
}

.popup-banner.medium {
    width: 500px;
}

.popup-banner.large {
    width: 800px;
    max-width: 95%;
}

.popup-content img {
    display: block;
    width: 100%;
    height: auto;
}

.close-popup {
    position: absolute;
    top: 3px;
    right: 4px;
    background: #ff0018;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    line-height: 30px;
    text-align: center;
    z-index: 1;
    border: 1px solid;
}

/* Container for the entire dashboard */
.dashboard-container {
    display: flex;
    min-height: 80vh;
    margin-bottom: 5rem;
}

/* Sidebar */
.dashboard-sidebar {
    background-color: #343a40;
    padding: 20px;
    color: white;
}

.dashboard-sidebar-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.dashboard-menu {
    list-style: none;
    padding: 0;
}

.dashboard-menu li {
    margin-bottom: 15px;
}

.dashboard-menu li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
    transition: all 0.3s;
}

.dashboard-menu li a:hover {
    color: #f8f9fa;
    padding-left: 10px;
}

/* Main dashboard content */
.dashboard-content {
    padding: 2rem;
    background-color: #eeeeee;
    border: 1px solid #818181;
    border-radius: 10px;
}

.dashboard-welcome h1 {
    font-size: 25px;
    color: #343a40;
}

.dashboard-welcome p {
    font-size: 18px;
    color: #6c757d;
}

/* Error message if the user is not logged in */
.dashboard-error p {
    color: red;
    font-size: 20px;
}

.content-body {
    min-height: 60vh;
}

/* styles.css */
.loader {
    display: none;
    /* Sembunyikan loader secara default */
    position: fixed;
    /* Tetap di posisi */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Background semi-transparan */
    z-index: 9999;
    /* Pastikan overlay di atas konten lainnya */
    justify-content: center;
    /* Pusatkan konten */
    align-items: center;
    /* Pusatkan konten */
}

.loader .spinner {
    border: 8px solid rgba(255, 255, 255, 0.3);
    /* Warna spinner */
    border-radius: 50%;
    border-top: 8px solid #fff;
    /* Warna atas spinner */
    width: 50px;
    /* Ukuran spinner */
    height: 50px;
    /* Ukuran spinner */
    animation: spin 1s linear infinite;
    /* Animasi berputar */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loginpro {
    position: absolute;
    right: 0;
}