:root {
    --pdam-blue: #0066cc;
    --pdam-light-blue: #e6f3ff;
    --pdam-dark-blue: #004499;
}

.translate-middle-badge-custom {
    transform: translate(-125%, -25%) !important;
}

.navbar-brand {
    font-weight: bold;
    color: var(--pdam-blue) !important;
}

.hero-section {
    background: linear-gradient(135deg, var(--pdam-blue), var(--pdam-dark-blue));
    color: white;
    padding: 80px 0;
}

.card-custom {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}


.card-custom:hover {
    transform: translateY(-5px);
}

.btn-pdam {
    background-color: var(--pdam-blue);
    border-color: var(--pdam-blue);
    color: white;
}

.btn-pdam:hover {
    background-color: var(--pdam-dark-blue);
    border-color: var(--pdam-dark-blue);
    color: white;
}

.page-header {
    background: linear-gradient(135deg, var(--pdam-blue), var(--pdam-dark-blue));
    color: white;
    padding: 60px 0;
}

.breadcrumb-custom {
    background: none;
    padding: 0;
}

.breadcrumb-custom .breadcrumb-item a {
    color: var(--pdam-blue);
    text-decoration: none;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: white;
}

.section-title {
    color: var(--pdam-blue);
    font-weight: bold;
    margin-bottom: 30px;
}

.announcement-card {
    border-left: 4px solid var(--pdam-blue);
}

.news-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

.category-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.footer {
    background-color: var(--pdam-dark-blue);
    color: white;
}

.water-icon {
    color: var(--pdam-blue);
    font-size: 3rem;
}

.announcement-item {
    transition: background-color 0.3s ease;
}

.announcement-item:hover {
    background-color: #f8f9fa;
}

.search-box {
    border-radius: 25px;
}

.sticky-top {
    position: sticky;
}

.filter-section {
    background-color: #f8f9fa;
    border-radius: 10px;
}

@media (max-width: 991px) {
    .sticky-top {
        position: relative;
        top: 0 !important;
    }
}

.object-cover {
    object-fit: cover;
}

.article-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content h2 {
    color: var(--pdam-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    color: var(--pdam-dark-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.article-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.share-buttons .btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.btn-facebook { background-color: #1877f2; border-color: #1877f2; }
.btn-twitter { background-color: #1da1f2; border-color: #1da1f2; }
.btn-whatsapp { background-color: #25d366; border-color: #25d366; }
.btn-linkedin { background-color: #0077b5; border-color: #0077b5; }

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.related-news-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.tag {
    background-color: var(--pdam-light-blue);
    color: var(--pdam-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.tag:hover {
    background-color: var(--pdam-blue);
    color: white;
}

/* Reset dan Font Dasar */
.container {
    padding: 15px;
    border-radius: 8px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); */
}

.tg-h1 {
    color: #3f51b5;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* --- Panel Kontrol (Filter & Pencarian) --- */
.control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.filter-group, .search-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-panel label {
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
}

.control-panel select, 
.control-panel input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.search-group input[type="text"] {
    width: 250px; /* Lebar yang cukup untuk kolom pencarian */
}

#search-button {
    background-color: #3f51b5;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

#search-button:hover {
    background-color: #303f9f;
}

/* --- Tampilan Tabel --- */
.tg-table-wrapper {
    overflow-x: auto; /* Memastikan tabel tetap terlihat di layar sempit jika terlalu lebar */
}

.tg-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.tg-thead-th {
    background-color: #3f51b5;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #303f9f;
}

.tg-tbody-tr {
    border-bottom: 1px solid #eee;
}

.tg-tbody.tr:nth-child(even) {
    background-color: #f9f9f9; /* Garis zebra */
}

.tg-tbody-tr td {
    padding: 12px;
    color: #333;
}

.tg-tbody-tr td button {
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    /* Tambahkan warna default */
    background-color: rgb(118, 118, 255);
    color: white;
    border: none;
}

/* Penanda Status Pembayaran */
.tg-status-paid {
    font-weight: bold;
    color: #4CAF50; /* Hijau untuk lunas */
}

.tg-status-unpaid {
    font-weight: bold;
    color: #F44336; /* Merah untuk belum bayar */
}