:root {
    --accent-color: #0284c7; /* Sky Blue Pro */
    --text-main: #0f172a;
    --text-sub: #475569;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
}

/* Top Bar */
.top-bar {
    background-color: #0d47a1;
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar a {
    color: #fff;
    text-decoration: none;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
    background-color: #ffffff !important;
}
.navbar-brand img {
    height: 45px;
    margin-right: 10px;
}
.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    transition: color 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.9), rgba(21, 101, 192, 0.8)), url('../img/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 100px 0;
    margin-bottom: 40px;
}
.hero-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Custom Carousel Controls (Tombol Lingkar Gambar 2) */
.custom-carousel-control {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-carousel-control:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* Header Styling for Directory Section */
.section-header {
    margin-bottom: 70px;
}

.section-subtitle-tag {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-sub);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Custom Button Styles (Pill-shaped) */
.btn-teal {
    background-color: #5bc0be !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: none !important;
}
.btn-teal:hover {
    background-color: #4ab1af !important;
    color: #ffffff !important;
}

.btn-indigo {
    background-color: #5c6bc0 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: none !important;
}
.btn-indigo:hover {
    background-color: #4c5bb0 !important;
    color: #ffffff !important;
}

.btn-red {
    background-color: #d9534f !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: none !important;
}
.btn-red:hover {
    background-color: #c9302c !important;
    color: #ffffff !important;
}

/* Feature Row Layout (Non-Card) */
.service-row-item {
    padding: 30px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.no-border-bottom {
    border-bottom: none;
}

.service-row-item:hover {
    background-color: #f8fafc;
    padding-left: 25px;
    border-radius: 8px;
}

.service-icon-wrapper {
    font-size: 1.75rem;
    color: var(--accent-color);
    margin-top: 4px;
}

.service-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.service-content p {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Stats Section */
.stats-section {
    background-color: #0d47a1;
    color: white;
    padding: 50px 0;
    margin-top: 60px;
    margin-bottom: 60px;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #aaa;
    padding: 40px 0 20px 0;
    font-size: 0.9rem;
}
footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
}
footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover {
    color: #fff;
}
.social-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin-right: 8px;
    color: #fff;
}
.social-icons a:hover {
    background: #0d47a1;
}

/* --- Dark Mode Overrides --- */
.dark body { 
    background-color: #090d16 !important; 
    color: #f1f5f9 !important; 
}
.dark nav, 
.dark .navbar { 
    background-color: #0f172a !important; 
    border-color: #1e293b !important; 
}
.dark .dropdown-menu { 
    background-color: #0f172a !important; 
    border-color: #1e293b !important; 
    color: #f1f5f9 !important; 
}
.dark .dropdown-item { 
    color: #cbd5e1 !important; 
}
.dark .dropdown-item:hover { 
    background-color: #1e293b !important; 
    color: #fff !important; 
}
.dark .card, 
.dark .data-card, 
.dark .stat-card { 
    background-color: #111827 !important; 
    border-color: #1f2937 !important; 
    color: #f8fafc !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
}
.dark .stat-card-number { 
    color: #f8fafc !important; 
}
.dark .stat-card-title, 
.dark .card-subtitle, 
.dark .stat-card-sub { 
    color: #94a3b8 !important; 
}
.dark .data-card .card-title { 
    color: #f8fafc !important; 
}
.dark .table { 
    color: #cbd5e1 !important; 
    border-color: #1f2937 !important; 
}
.dark .table-striped > tbody > tr:nth-of-type(odd) > * { 
    background-color: #1a2234 !important; 
    color: #cbd5e1 !important; 
}
.dark .table > :not(caption) > * > * { 
    background-color: transparent !important; 
    color: #cbd5e1 !important; 
    border-color: #1f2937 !important; 
}
.dark .service-row-item { 
    background-color: #111827 !important; 
    border-color: #1f2937 !important; 
}
.dark .service-content h3, 
.dark .hero-title, 
.dark .section-title { 
    color: #f8fafc !important; 
}
.dark .service-content p, 
.dark .section-desc { 
    color: #94a3b8 !important; 
}
.dark footer { 
    background-color: #0b0f19 !important; 
    border-top: 1px solid #1e293b !important; 
}

/* Override Dropdown Dark Mode */
.dark .group-hover\:block {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
}
.dark .group-hover\:block a {
    color: #cbd5e1 !important;
}
.dark .group-hover\:block a:hover {
    background-color: #1e293b !important;
    color: #38bdf8 !important;
}

/* Paksa kartu layanan menjadi warna gelap saat Dark Mode aktif */
.dark #layanan .grid > div {
    background-color: #0f172a !important; /* Warna latar belakang gelap (Slate 900) */
    border-color: #1e293b !important;     /* Warna garis border gelap (Slate 800) */
    color: #f8fafc !important;            /* Warna teks utama putih/terang */
}

.dark #layanan .grid > div h3 {
    color: #ffffff !important;            /* Judul kartu menjadi putih */
}

.dark #layanan .grid > div p {
    color: #94a3b8 !important;            /* Deskripsi kartu menjadi abu-abu terang */
}