:root {
    --green: #6AAB48;
    --green2: #2A5715;
    --golden-gradient1: #E5BD46;
    --green-gradient1: #3B7628;

    --golden-gradient2: #EFD790;
    --golden-gradient3: #E4BC46;

    --text-title-color: #629153;
    --background-section-2-color: #F7F7F7;

    --green-up-1: #74b169;
    --green-up-2: #5d9645;

    --red-down-1: #f0484f;
    --red-down-2: #d40828;

    --grey-draw-1: #aaaaaa;
    --grey-draw-2: #858585;
}

* {
    box-sizing: border-box;
}

html, body {
    position: relative;
    scroll-behavior: smooth;
    font-family: "Baloo 2", sans-serif;
    background-color: #f7f7f7;

    font-size: 14px;
}

.table {
    --bs-table-striped-bg: #aab1ba !important;
}

/* ==== HEADLINE ==== */
/* bagian headline */
#headline-title {
    padding: 0 8px;
    text-align: right;
    background-color: var(--green2);
    color: #fff;
    font-weight: 300;
    height: 26px;

    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#headline-body {
    width: 100%;
    background-color: var(--green);
    height: 26px;
}

#headine-body * {
    width: 100%;
}

/* ==== END HEADLINE ==== */

/* ==== NAVBAR ==== */
.navbar-brand-text {
    color: #42692a;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
    align-self: center;
    text-decoration: none;
    padding-left: 12px;
    border-left: 1px solid #42692a;
}

.navbar-brand-text:hover, .navbar-brand-text:visited {
    color: #42692a;
}

.dropdown-menu {
    align-self: center;
}

.dropdown-menu {
    z-index: 500000 !important;
}

/* ==== END NAVBAR ==== */

/* ==== SLIDER CAROUSEL ==== */
.home-slider {
    position: relative;
}

.home-slider div {
    width: 100%;
    /* height: 50%; */
}

.home-slider .slider-image {
    width: 100%;
    height: 420px;
    object-fit: cover;

    /* filter: brightness(.6); */
}

.home-slider-item {
    position: relative;
}

.home-slider-title {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10rem;
    /* font-weight: 700; */
    color: #fff;
    max-width: 70%;
    /* font-size: 2.5rem; */
}

.home-slider-title h2 {
    font-size: 3rem;
}

.home-slider-title h2 strong {
    font-size: 3rem;
    color: #fff;
}

.home-slider-title p {
    font-size: 1.5rem;
}

.home-slider-title strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.slick-arrow-button {
    opacity: .7;
    transition: all .3s ease;
    width: 32px;
}

.slick-arrow-button:hover {
    opacity: 1;
}

/* ==== END SLIDER CAROUSEL ==== */

/* ==== PANEL HARGA NASIONAL ==== */
/* bagian tabel harga */
#price-table-section {
    background-color: #f7f7f7;
    background-image: url("../assets/img/background-section22.png");
    background-position: right top;
    background-repeat: no-repeat;
    background-size: auto 110%;
    width: 100%;
    margin-bottom: 2rem;
}

@media (max-width: 575.98px) {
    #price-table-section {
        background-image: none;
        background-repeat: repeat-y;
        background-size: 100%;
    }
}

.section-header {
    color: var(--text-title-color);
    font-weight: 800;
    font-size: 2.2rem;
    padding-top: 2rem;
}

#price-table-container,
#province-table-container,
#historic-table-container {
    background-color: #f7f7f7;
    padding: 1rem;
    min-height: 300px;
    width: 100%;
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0px 0px 10px 0px rgba(95, 95, 95, 0.75);

    position: relative;
}

.table-filter-form {
    display: flex;
    flex-direction: column;
}

.table-filter-label {
    margin-bottom: 8px;
    font-weight: 800;
}

.form-select {
    font-family: "Baloo 2", sans-serif;
}

.price-item-row {
    margin-top: .5rem;
    justify-content: flex-start;
    /* padding: 0 1rem; */
}

.price-up .price-item-price {
    background-color: #bd0f2d;
    padding: 2px;
    border-radius: 4px;
    width: fit-content;
}

.price-down .price-item-price {
    background-color: #588839;
    padding: 2px;
    border-radius: 4px;
    width: fit-content;
}

.price-draw .price-item-price {
    background-color: #1671bd;
    padding: 2px;
    border-radius: 4px;
    width: fit-content;
}

.price-item {
    padding: 1rem;
    margin: .5rem;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(30deg, #325330 0%, #73724d 90%);
    position: relative;
    display: flex;
    flex-direction: column;
    width: calc(25% - 1.2rem);
}

/* Tampilkan 3 item per baris jika lebar <= 1268px */
@media (max-width: 1268px) {
    .price-item {
        width: calc(33.3333% - 1.2rem);
    }
}

/* Tampilkan 2 item per baris jika lebar <= 968px */
@media (max-width: 968px) {
    .price-item {
        width: calc(50% - 1.2rem);
    }
}

/* Tampilkan 1 item per baris jika lebar <= 768px */
@media (max-width: 768px) {
    .price-item {
        width: calc(100% - 1.2rem);
    }
}


.logo-img-icon-agrul {
    max-height: 50px;
    padding-right: 15px;
}

.grafik-item {
    padding: 1rem;
    margin: .5rem;
    border-radius: 8px;
    color: #fff;
    /*background: linear-gradient(30deg, var(--grey-draw-1) 0%, var(--grey-draw-2) 70%);*/

    background: linear-gradient(30deg, #8c8c8c 0%, #000 90%);
    width: calc(25% - 1.2rem);
    position: relative;

    display: flex;
    flex-direction: column;
}

.grafik-item::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.5;
    z-index: 0;
    background-image: var(--bg-img);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.price-item::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.5;
    z-index: 0;
    background-image: var(--bg-img);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.price-item * {
    z-index: 10;
}

.price-item-title {
    font-weight: 700;
    display: block;
}

.price-item-price {
    margin-top: 1rem;
    font-weight: 600;
    display: block;
    font-size: 1.25rem;
}

@media (max-width: 575.98px) {
    .price-item-price {
        font-size: 1.7rem;
    }
}

.price-item-per {
    font-weight: 400;
    display: block;
}

.price-item-increment {
    font-weight: 400;
    display: block;
}

#price-table-disclaimer {
    color: #999999;
    font-weight: 700;
    font-style: italic;
    font-size: 13px;
}

/* ==== PANEL HARGA NASIONAL ==== */


/* ==== BAGIAN HARGA RATA-RATA PROVINSI ==== */
#harga-provinsi-section {
    position: relative;
    background: linear-gradient(90deg, var(--green-gradient1) 0, var(--golden-gradient1) 50%);
    padding-bottom: 10rem;
}

.province-table {
    position: relative;
    overflow: auto;
    margin-top: 1rem;

    max-height: 528px;
}

#province-table-table #table-title {
    position: sticky;
    background-color: #f7f7f7;
    top: 0;
}

.province-chart {
    /* background-color: #606060; */
    background-color: #cddee0;
    border-radius: 8px;
    box-shadow: 0px 0px 10px 0px rgba(95, 95, 95, 0.75);
    width: 100%;
    height: calc(100% - 1rem) !important;
    margin-top: 1rem;

    height: 528px;
}

.white-background {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f7f7f7 0%, #00000000 100%);
}

.image-background {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* END BAGIAN HARGA RATA-RATA PROVINSI */

/* BAGIAN HARGA HISTORIS */
#historic-table-section {
    background-color: #f7f7f7;
    width: 100%;
    margin-bottom: 2rem;
}

#historic-table-container h3 {
    font-weight: 800;
    color: var(--text-title-color);
}

/* BAGIAN FOOTER */
#footer-section {
    display: grid;
    place-items: center;
    background-color: #f7f7f7;
    padding: 1rem;
    font-weight: 600;
    color: #606060;
}

/* END BAGIAN FOOTER */

.modal-link {
    cursor: pointer;
}

/* ==== NAVBAR MOBILE ==== */
#navbarMobilePopup {
    position: fixed;
    left: 0;
    top: 0;

    width: 100vw;
    height: 100vh;

    z-index: 500;

    display: none;
    opacity: 0;
    flex-direction: column;

    background-color: #fff;

    padding: 12px;
}

.navbar-mobile-item {
    width: 100%;

    position: relative;
}

.navbar-mobile-close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;

    z-index: 20;

    background-color: transparent;
    border: none;
    outline: none;
}

.navbar-dropdown-items {
    display: none;
}

.navbar-mobile-item a, .navbar-dropdown-item a {
    color: #222;
    text-decoration: none;

    padding: 12px 0;
    display: block;
}

.navbar-mobile-dropdown .icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

#navbar-login-button {
    background-color: #f58634;
    color: #fff;
}

/* ==== END NAVBAR MOBILE ==== */

@media screen and (max-width: 449.9999px) {
    .table-filter-form {
        margin-bottom: .75rem;
    }

    .price-item {
        width: calc(100% - 1.3rem) !important;
        margin: .75rem;
        margin-top: 0;
    }

    /* .province-chart {
        height: 400px;
    } */

    .home-slider-title {
        left: 50%;
        transform: translate(-50%, -50%);
        margin-left: 0;
    }

    .home-slider .slider-image {
        height: 180px;
    }

    #headline-title {
        display: none;
    }

    #headline-body {
        width: 100vw !important;
    }

    .navbar-brand-text {
        font-size: 6px;
    }

    .navbar-brand img {
        height: 30px !important;
    }
}

.apexcharts-tooltip span {
    color: #222;
}