/* 
 * KUA Kecamatan Inuman - Pages Styles
 * For all pages except index.php
 */

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 200px;
    display: flex;
    align-items: center;
    /* Pastikan page header berada di bawah navbar */
    padding-top: 80px; /* Sesuaikan dengan tinggi navbar */
}

/* Atur jarak untuk konten utama agar tidak tertutup navbar */
.main-content {
    position: relative;
    z-index: 1;
}

/* Atur padding untuk body untuk mengakomodasi navbar fixed */
body {
    padding-top: 76px; /* Sesuaikan dengan tinggi navbar */
}

/* Pastikan navbar tidak menutupi konten */
.navbar.fixed-top {
    position: fixed;
    width: 100%;
    z-index: 1030; /* Pastikan navbar selalu di atas konten lain */
}

/* Atur posisi breadcrumb */
.breadcrumb-container {
    position: relative;
    z-index: 2;
    margin-top: -20px; /* Geser ke atas sedikit */
    margin-bottom: 30px;
}

/* Responsive padding untuk layar yang lebih kecil */
@media (max-width: 1199.98px) {
    body {
        padding-top: 70px;
    }
    
    .page-header {
        padding-top: 70px;
        min-height: 160px;
    }
    
    .page-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    body {
        padding-top: 65px;
    }
    
    .page-header {
        padding-top: 65px;
        min-height: 150px;
    }
    
    .breadcrumb-container {
        margin-top: -15px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    body {
        padding-top: 60px;
    }
    
    .page-header {
        padding-top: 60px;
        min-height: 140px;
        padding-bottom: 30px;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .breadcrumb {
        margin-bottom: 0;
        font-size: 0.85rem;
    }
    
    .breadcrumb-container {
        margin-top: -10px;
        margin-bottom: 20px;
    }
}

/* Small mobile */
@media (max-width: 575.98px) {
    body {
        padding-top: 56px;
    }
    
    .page-header {
        padding-top: 56px;
        min-height: 130px;
        padding-bottom: 25px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    .breadcrumb-container {
        margin-top: -5px;
        margin-bottom: 15px;
    }
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pattern.png') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffc107; /* Warna kuning emas */
}

.page-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ===== Breadcrumb ===== */
.breadcrumb-container {
    background-color: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    padding: 0 8px;
    color: #6c757d;
}

/* ===== Content Area ===== */
.main-content {
    padding: 60px 0;
    background-color: #fff;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 991.98px) {
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 60px 0 30px;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
}

/* Animation for page transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Additional styles for inner pages */
.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

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

.card-header {
    background-color: var(--primary);
    color: white;
    font-weight: 500;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px 10px 0 0 !important;
}

.card-body {
    padding: 1.5rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
