/* PPID Style - Warna Hijau Khas Kemenag */
:root {
    --primary-color: #1a7b3e;
    --primary-dark: #155d2f;
    --primary-light: #2a9d50;
    --secondary-color: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header Top */
.header-top {
    background-color: var(--primary-dark);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

/* Header Main */
.header-main {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color) !important;
    padding: 0;
}

.navbar-nav .nav-link {
    color: white !important;
    padding: 15px 20px !important;
    font-weight: 500;
    transition: background-color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--primary-dark);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 0;
}

.dropdown-item {
    padding: 10px 20px;
    transition: background-color 0.3s;
}

.dropdown-item:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Slider */
.slider-section {
    position: relative;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background-color: rgba(26, 123, 62, 0.8);
    padding: 20px;
    border-radius: 5px;
    bottom: 50px;
}

/* Statistik Box */
.statistik-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.stat-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary-color);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.stat-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 10px 0;
}

.stat-box p {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
}

/* Instansi Section */
.instansi-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-title .divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.instansi-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
    height: 100%;
    border: 2px solid transparent;
}

.instansi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.instansi-card img {
    height: 80px;
    width: auto;
    margin-bottom: 15px;
}

.instansi-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.instansi-card a {
    text-decoration: none;
    color: inherit;
}

/* Content Page */
.content-section {
    padding: 60px 0;
}

.content-page {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.content-page h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
}

.content-page h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

/* File Download List */
.file-list {
    margin-top: 30px;
}

.file-item {
    background: var(--secondary-color);
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.file-item:hover {
    background-color: #e9ecef;
}

.file-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 15px;
}

.file-info {
    flex: 1;
}

.file-info h6 {
    margin: 0;
    color: var(--text-dark);
    font-weight: 600;
}

.file-info small {
    color: var(--text-light);
}

.btn-download {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-download:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* Regulasi Table */
.regulasi-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.regulasi-table table {
    margin: 0;
}

.regulasi-table thead {
    background-color: var(--primary-color);
    color: white;
}

.regulasi-table tbody tr:hover {
    background-color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer p,
.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

/* Breadcrumb */
.breadcrumb-section {
    background-color: var(--secondary-color);
    padding: 20px 0;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-item img {
        height: 300px;
    }
    
    .stat-box {
        margin-bottom: 20px;
    }
    
    .content-page {
        padding: 20px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 50px;
    }
}

/* Button Primary Custom */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Admin Styles */
.admin-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar {
    background-color: #f8f9fa;
    min-height: calc(100vh - 70px);
    padding: 20px 0;
}

.sidebar .nav-link {
    color: var(--text-dark);
    padding: 12px 20px;
    border-radius: 5px;
    margin: 5px 10px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
}

.card-stats {
    border-left: 4px solid var(--primary-color);
}

.card-stats .card-body {
    padding: 1.5rem;
}

.card-stats h3 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
}

.table-actions a {
    margin-right: 5px;
}
