@import url('https://fonts.googleapis.com/css2?family=DM Sans:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
    --primary-bg: rgba(101,48,173,0.9); /* Warna ungu gelap dari gambar */
    --accent-color: #f39c12; /* Warna kuning/gold untuk tombol */
    --card-bg: #ffffff;
    --text-light: #f8f9fa;
    --text-dark: #343a40;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 14px;
}

.konten{
    padding-top: 3.2rem;
}

.hero-section {
    position: relative;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--primary-bg) 40%, rgba(44, 42, 74, 0.7) 70%, rgba(44, 42, 74, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

header .logo-brand {
    height: 60px;
}

.hero-content header {
    margin-bottom: -30px;
}

.main-title {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.main-description {
    max-width: 600px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.dashboard-btn {
    background-color: var(--accent-color);
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dashboard-btn:hover {
    background-color: #e68e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Styling Carousel */
.card-slider-section {
    position: relative;
    z-index: 2;
}

.card-slider .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card-slider .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-slider .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    background-color: #f0f0f0; /* Placeholder color, ganti dengan icon asli */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.card-slider .card-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.card-slider .card-link {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: auto;
}

.card-slider .carousel-control-prev,
.card-slider .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.card-slider .carousel-control-prev { left: -50px; }
.card-slider .carousel-control-next { right: -50px; }

.card-slider .carousel-control-prev-icon,
.card-slider .carousel-control-next-icon {
    filter: invert(1);
}

/* Indikator Carousel (titik-titik di bawah) */
.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--accent-color);
}


/* Ticker Bawah */
.ticker-wrap {
    position: fixed;
    bottom: 0;
    width: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 0;
    z-index: 1000;
    white-space: nowrap;
}

.ticker {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-animation 90s linear infinite;
}

.ticker-item {
    display: inline-block;
    color: white;
    padding: 0 2rem;
    font-size: 0.9rem;
}

.ticker-item .price {
    color: #a0a0a0;
    margin: 0 0.5rem;
}

.ticker-item .change {
    color: #ff4d4d; /* Merah untuk negatif */
}

/* Hero Section dengan Background Image */
.hero-section-dashboard {
    background-image: url('../images/bg-dashboard.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 700px; 
}

/* Custom style untuk Navbar */
.navbar-custom {
    background: linear-gradient(90deg, rgba(101,48,173,0.9) 0%, rgba(138,59,183,0.9) 100%);
    padding-top: 0rem;
    padding-bottom: 0rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1500;
}

.navbar-brand {
    margin-left: -10px;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
}

#navbarNav{
    margin-left: 30px;
}

/* Custom style untuk Tombol Masuk */
.btn-masuk {
    background-color: #ffc107;
    color: #212529;
    font-weight: 700;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
}

.btn-masuk:hover {
    background-color: #ffca2c;
    color: #212529;
}

.hero-section-dashboard .hero-content {
    padding-top: 30vw  ;
}

.logo-brand-2{
    height: 30px;
}

/* === CSS UNTUK FOOTER === */
.site-footer {
    background-color: #1a1a3d; /* Warna biru gelap dari gambar */
    color: #f0f2f5;
    font-size: 12px;
}

.footer-top {
    padding-top: 20px;
    padding-bottom: 0px;
}

.site-footer h6 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.site-footer p {
    color: #ced4da;
    font-size: 0.9rem;
    line-height: 1.8;
}

.site-footer .footer-logo img {
    max-height: 50px; /* Atur ukuran logo */
    margin-bottom: 15px;
}

.site-footer .footer-logo h5 {
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
}

.opening-hours {
    list-style: none;
    padding-left: 0;
}

.opening-hours li {
    margin-bottom: 10px;
    color: #ced4da;
}

.opening-hours .bi {
    color: #ffffff; /* Warna ikon centang */
    margin-right: 10px;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid #393964;
    padding: 7px 0;
    font-size: 0.85rem;
    color: #ced4da;
    padding-bottom: 50px;
}

.floating-container {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: flex-end; 
}

.info-bubble {
    background: linear-gradient(135deg, #e040fb, #9c27b0);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-right: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 200px;
    position: relative;
    

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
}

.info-bubble::after {
    content: '';
    position: absolute;
    bottom: 15px;
    right: -10px;
    

    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #9c27b0;
}

.floating-icon {
    width: 70px;
    height: 70px;
    background-color: #ffffff;
    border-radius: 50%;
    /* border: 5px solid #00563B; */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.floating-icon:hover {
    transform: scale(1.1);
}

.floating-icon svg {
    width: 48px;
    height: 48px;
}

.floating-container:hover .info-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.logo-list{
    margin-bottom: -10px;
}

.logo-item{
    height: 20px;
}

.list-item {
    margin-left: -10px;
    margin-top: 20px;
    font-weight: 10;
    font-size: 1rem;
}

/* Sebaran Harga */
.sebaran-harga #map {
    height: 450px;
    width: 100%;
    border-radius: 0.5rem;
}
.sebaran-harga .card-header {
    background-color: #4B0082; 
    color: white;
}

/* Update Pemerintah */
.update-pemerintah .card .badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    font-size: 0.8rem;
}

/* Khusus untuk card di kolom kanan */
.update-pemerintah .vstack .card .badge {
    position: static; /* Kembalikan ke posisi normal */
    display: inline-block;
    width: auto;
}
.update-pemerintah .card-img-top, .rounded-start {
    border-radius: .25rem;
}
.update-pemerintah .border-primary {
    border: 2px solid #0d6efd !important;
}

.tren-harga .chart-title {
    color: white;
}
.tren-harga .card-header {
    background-color: #772ca8
}

.tren-harga .card-body {
    height: 250px;
}

.title-h1{
    font-family: "Bebas Neue", sans-serif;
    font-size: 4rem;
    font-style: normal;
    text-decoration: underline;
}
.sub-title-h1{
    font-family: "Bebas Neue", sans-serif;
    margin-top: -17px;
}

.harga-pokok .table-custom-header {
    background-color: #4A2E8E;
    color: white;
}
.harga-pokok .arrow-up {
    color: #DC3545;
}
.harga-pokok .arrow-down {
    color: #198754;
}

.flatpickr-calendar.monthSelect {
    width: auto !important; 
}
.flatpickr-monthSelect-months {
    display: none !important;
}

.harga-pokok .chart-container {
    border: 2px solid #e9d5ff;
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #fff;
}
.harga-pokok .chart-title {
    background-color: #e9d5ff;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    padding: 0.75rem 1.5rem;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
.harga-pokok .chart-title h6 {
    margin: 0;
    font-weight: bold;
    color: #333;
}
.harga-pokok .resume-container {
    background-color: #f8f9fa;
    border-left: 5px solid #198754; /* Green color like the icon */
    padding: 1.5rem;
    display: flex;
    align-items: center;
    border-radius: 8px;
}
.harga-pokok .resume-icon {
    font-size: 2.5rem;
    color: #198754;
    margin-right: 1.5rem;
}
.harga-pokok .resume-text p {
    margin-bottom: 0;
}
.harga-pokok .resume-text strong {
    font-weight: 700;
}

.inflasi-section .table-header-custom,
.iph-section .table-header-custom
 {
    background-color: #4B0082;
    color: white;
}
.inflasi-section .table-header-custom th,
.iph-section .table-header-custom th
 {
    font-weight: 600;
}
.inflasi-section .btn-warning,
.iph-section .btn-warning
 {
    background-color: #FF8C00;
    border-color: #FF8C00;
}
.inflasi-section .card-title,
.iph-section .card-title
 {
    color: #333;
}
.inflasi-section .chart-header-custom,
.iph-section .chart-header-custom
 {
    background-color: #4B0082; /* Warna ungu tua */
    border-bottom: none;
}

.informasi-pasar-section .pasar-menu {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    max-height: 80vh;
    overflow-y: auto;
}
.informasi-pasar-section .pasar-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    cursor: pointer;
    background-color: #f1eaff;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.informasi-pasar-section .pasar-menu-item:hover {
    background-color: #e4d7ff;
    transform: translateY(-2px);
}
.informasi-pasar-section .pasar-menu-item.active {
    background-color: #8c52ff;
    color: white;
    font-weight: bold;
    border-color: #7b44e0;
    box-shadow: 0 4px 15px rgba(140, 82, 255, 0.3);
}
.informasi-pasar-section .pasar-menu-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}
.informasi-pasar-section .pasar-detail-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.informasi-pasar-section .pasar-detail-card .main-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
.informasi-pasar-section .detail-section-title {
    color: #1a7407;
    font-weight: 700;
    font-size: 1.1rem;
    padding-bottom: 5px;
    border-bottom: 3px solid #1a7407;
    display: inline-block;
    margin-bottom: 1rem;
}
.informasi-pasar-section .detail-list {
    list-style-type: none;
    padding-left: 0;
}
.informasi-pasar-section .detail-list li {
    padding: 5px 0;
    display: flex;
    align-items: center;
}
.informasi-pasar-section .detail-list li::before {
    content: '•';
    color: #8c52ff;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}
.informasi-pasar-section .info-table {
    font-size: 0.9rem;
}
.informasi-pasar-section .info-table td {
    padding: 8px 5px;
    vertical-align: top;
}
.informasi-pasar-section .info-table td:first-child {
    font-weight: 600;
    width: 100px;
}
.informasi-pasar-section .map-placeholder {
    width: 100%;
    height: 200px;
    background-color: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.berita-section .card {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.berita-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.berita-section .card-img-container {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.berita-section .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.berita-section .date-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: #8A2BE2;
    color: white;
    padding: 5px 12px;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.berita-section .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.berita-section .card-title {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.berita-section .card-text {
    color: #666;
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.berita-section .selengkapnya-link {
    color: #FFA500;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.berita-section .selengkapnya-link:hover {
    color: #cc8400;
    text-decoration: underline;
}

.berita-section .pagination-wrapper nav .d-flex.justify-content-between {
    flex-direction: column-reverse !important;
    align-items: center !important;
    gap: 0.75rem;
}


.berita-section .pagination .page-item .page-link {
    color: #8A2BE2;
    border-radius: 0.5rem;
    margin: 0 5px;
    border: 1px solid #ddd;
}
.berita-section .pagination .page-item.active .page-link {
    background-color: #FFA500;
    border-color: #FFA500;
    color: white;
}
.berita-section .pagination .page-item.disabled .page-link {
    color: #6c757d;
}
.berita-section .pagination .page-item:not(.active) .page-link:hover {
    background-color: #f8f9fa;
}

.berita-section .news-content-container {
    max-width: 800px;
    margin: auto;
}
.berita-section .news-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}
.berita-section .news-date {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}
.berita-section .news-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.berita-section .news-caption {
    font-size: 0.85rem;
    color: #95a5a6;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}
.berita-section .news-body {
    margin-top: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    text-align: justify;
}
.berita-section .news-body p {
    margin-bottom: 1.5rem;
}

@keyframes ticker-animation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}


/* Responsive Adjustments */
@media (max-width: 1200px) {
    .card-slider .carousel-control-prev { left: -20px; }
    .card-slider .carousel-control-next { right: -20px; }
}

@media (max-width: 992px) {
    .hero-overlay {
        background: linear-gradient(90deg, var(--primary-bg) 60%, rgba(44, 42, 74, 0.8) 100%);
    }
    .main-title {
        font-size: 2.8rem;
    }
    .card-slider .carousel-inner {
        padding: 0 20px; /* Beri ruang agar card tidak menempel di tepi */
    }
    
    /* Tambahan: Atur ulang posisi tombol agar tidak terlalu jauh di mobile */
    .card-slider .carousel-control-prev { left: -10px; }
    .card-slider .carousel-control-next { right: -10px; }

    header .logo-brand {
        height: 50px;
    }

    .hero-section-dashboard .hero-content {
        padding-top: 15vw  ;
    }

    .hero-section-dashboard {
        background-image: url('../images/bg-dashboard-mobile.png');
        min-height: 400px; 
        background-position: center center;
    }

    .navbar-custom {
        padding-bottom: 0.4rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        text-align: center;
    }
    .main-description {
        margin-left: auto;
        margin-right: auto;
    }
    /* Di mobile, carousel akan menampilkan satu kartu per slide */
    .card-slider .carousel-item .col-12 {
        display: block !important;
    }
    .navbar-custom {
        padding-bottom: 0.4rem;
    }
}