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

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #fffbeb;
    color: #78350f;
    line-height: 1.6;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #92400e 100%);
    box-shadow: 2px 0 15px rgba(245, 158, 11, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
    transform: translateX(0);
}

.sidebar.collapsed {
    transform: translateX(-280px);
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.sidebar-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-family: 'Times New Roman', Times, serif;
}

.sidebar-subtitle {
    color: #fef3c7;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Times New Roman', Times, serif;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav .nav-item {
    margin: 0;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #fef3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Times New Roman', Times, serif;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateX(5px);
}

.sidebar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border-left: 4px solid #fbbf24;
}

.nav-icon {
    font-size: 18px;
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 15px 0;
}

/* Sidebar Dropdown */
.sidebar .dropdown-menu {
    position: static;
    background: rgba(0,0,0,0.2);
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    display: none;
}

.sidebar .dropdown.show .dropdown-menu {
    display: block;
}

.sidebar .dropdown-item {
    color: #bdc3c7;
    padding: 12px 25px 12px 65px;
    font-size: 13px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.sidebar .dropdown-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: #ffffff;
    border-left-color: #3498db;
    transform: translateX(5px);
}

/* Sidebar Footer */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    color: #bdc3c7;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.logout-btn:hover {
    background: #e74c3c;
    color: #ffffff;
    transform: scale(1.1);
}

/* Mobile Toggle Button */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: #3498db;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.sidebar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Content Area */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 0;
}

/* Mobile Toggle Button */
.sidebar-toggle {
    display: block;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
    min-width: 45px;
    min-height: 45px;
}

.sidebar-toggle:hover {
    background: linear-gradient(135deg, #d97706, #92400e);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.sidebar-toggle:active {
    transform: scale(0.95);
}

/* Desktop positioning */
.sidebar.collapsed ~ .sidebar-toggle {
    left: 20px;
}

.sidebar:not(.collapsed) ~ .sidebar-toggle {
    left: 300px;
}

.sidebar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-280px);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        transform: translateX(-280px);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar.collapsed ~ .main-content {
        margin-left: 0;
    }
    
    .sidebar:not(.collapsed) ~ .sidebar-toggle {
        left: 20px;
    }
}

.navbar-brand {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50 !important;
    transition: all 0.3s ease;
    font-family: 'Times New Roman', Times, serif;
}

/* Spiritual Theme Enhancements */
.card {
    border: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    border: none;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 8px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d97706, #92400e);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
    color: #78350f;
}

.table {
    font-family: 'Times New Roman', Times, serif;
}

.table thead th {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    font-weight: 600;
}

.alert {
    border-radius: 8px;
    border: none;
    font-family: 'Times New Roman', Times, serif;
}

.alert-info {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.alert-success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Times New Roman', Times, serif;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
    border: 2px solid #f59e0b;
}

.login-box h1 {
    color: #78350f;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-box h3 {
    color: #92400e;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 30px;
}

.form-login .form-group {
    margin-bottom: 20px;
}

.form-login label {
    display: block;
    margin-bottom: 5px;
    color: #78350f;
    font-weight: 600;
    font-family: 'Times New Roman', Times, serif;
}

.form-login input[type="text"],
.form-login input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #fde68a;
    border-radius: 8px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-login input[type="text"]:focus,
.form-login input[type="password"]:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-login .btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-login .btn-primary:hover {
    background: linear-gradient(135deg, #d97706, #92400e);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.form-login .btn-secondary {
    width: 100%;
    padding: 10px;
    background: #6b7280;
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.form-login .btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #92400e, #78350f) !important;
    color: #fef3c7 !important;
    margin-top: 50px;
    padding: 30px 0;
}

footer h6 {
    color: #ffffff !important;
    font-weight: 600;
    font-family: 'Times New Roman', Times, serif;
}

footer p {
    color: #fef3c7 !important;
    margin-bottom: 0;
}

/* Fix for any remaining Bootstrap conflicts */
.bg-dark {
    background: linear-gradient(135deg, #92400e, #78350f) !important;
}

.text-white {
    color: #ffffff !important;
}

.text-right {
    text-align: right;
}

/* Ensure proper layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .col-md-6,
    .col-md-12,
    .col-md-8,
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .text-right {
        text-align: left;
        margin-top: 15px;
    }
}

.navbar-brand:hover {
    color: #3498db !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link {
    color: #495057 !important;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 15px !important;
    margin: 0 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: #3498db;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.15);
}

.navbar-nav .nav-link.active {
    background-color: #3498db;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
}

.navbar-nav .nav-link:focus {
    outline: none;
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db !important;
}

.navbar-toggler {
    border-color: #dee2e6;
    background-color: transparent;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(73, 80, 87, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown Menu */
.dropdown-menu {
    background: #ffffff;
    border: 1px solid #dee2e6;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 600; }
h6 { font-size: 1.1rem; font-weight: 600; }

/* Better Readability */
p {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Improved Card Headers */
.card-header {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Better Button Typography */
.btn {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Enhanced Table Typography */
.table th {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.table td {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.dropdown-item {
    color: #495057;
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f8f9fa;
}

.dropdown-item:hover {
    background-color: #3498db;
    color: #ffffff;
    transform: translateX(5px);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-toggle::after {
    border-top-color: #495057;
}

.dropdown-toggle:hover::after {
    border-top-color: #3498db;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    color: #667eea;
    margin-bottom: 10px;
}

.login-box h3 {
    color: #764ba2;
    margin-bottom: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5568d3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-warning {
    background-color: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Cards */
.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background-color: #f8f9fa;
    font-weight: 600;
}

.card-header.bg-primary {
    background-color: #667eea !important;
    color: white;
    border-color: #667eea;
}

.card-header.bg-success {
    background-color: #28a745 !important;
    color: white;
    border-color: #28a745;
}

.card-header.bg-dark {
    background-color: #343a40 !important;
    color: white;
}

.card-body {
    padding: 20px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table td,
.table th {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid #ddd;
}

.table-header {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.table-header th {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

.table-striped tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.table-bordered {
    border: 1px solid #ddd;
}

.table-bordered td,
.table-bordered th {
    border: 1px solid #ddd;
}

/* Responsive Table */
.table-responsive {
    overflow-x: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, 
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    padding: 0 15px;
    margin-bottom: 30px;
}

.col-md-1 { width: calc(8.333% - 30px); }
.col-md-2 { width: calc(16.666% - 30px); }
.col-md-3 { width: calc(25% - 30px); }
.col-md-4 { width: calc(33.333% - 30px); }
.col-md-5 { width: calc(41.666% - 30px); }
.col-md-6 { width: calc(50% - 30px); }
.col-md-7 { width: calc(58.333% - 30px); }
.col-md-8 { width: calc(66.666% - 30px); }
.col-md-9 { width: calc(75% - 30px); }
.col-md-10 { width: calc(83.333% - 30px); }
.col-md-11 { width: calc(91.666% - 30px); }
.col-md-12 { width: calc(100% - 30px); }

/* Utility Classes */
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 80px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 80px; }
.mb-0 { margin-bottom: 0; }

.my-1 { margin-top: 10px; margin-bottom: 10px; }
.my-2 { margin-top: 20px; margin-bottom: 20px; }
.my-3 { margin-top: 30px; margin-bottom: 30px; }
.my-4 { margin-top: 40px; margin-bottom: 40px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-muted { color: #6c757d; }
.text-white { color: white; }

.bg-dark { background-color: #343a40; }
.bg-light { background-color: #f8f9fa; }

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-gold {
    background-color: #ffd700;
    color: #333;
}

.badge-silver {
    background-color: #c0c0c0;
    color: #333;
}

.badge-bronze {
    background-color: #cd7f32;
    color: white;
}

/* Progress Bar */
.progress {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-bar {
    height: 100%;
    background-color: #667eea;
    transition: width 0.3s;
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 0;
    }
    100% {
        background-position: 30px;
    }
}

/* Rank Styling */
.rank-1 {
    background-color: #fffbf0;
    border-left: 4px solid #ffd700;
}

.rank-2 {
    background-color: #f0f0f0;
    border-left: 4px solid #c0c0c0;
}

.rank-3 {
    background-color: #fff9f0;
    border-left: 4px solid #cd7f32;
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    margin-top: 5px;
}

.dropdown-item {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-item:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu-right {
    right: 0;
    left: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
    .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
        width: calc(100% - 30px);
    }
    
    .table {
        font-size: 12px;
    }
    
    .table td,
    .table th {
        padding: 8px;
    }
    
    .btn {
        padding: 8px 12px;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
    }
    
    .navbar, .btn, footer {
        display: none;
    }
    
    .container {
        width: 100%;
    }
}

/* Hr */
hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

/* Strong */
strong {
    font-weight: 600;
}

/* Small */
small {
    font-size: 12px;
}

/* Heading */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    color: #333;
}

h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

/* Form Inline */
.form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-control-sm {
    padding: 5px 8px;
    font-size: 12px;
}

/* Focus Outline */
*:focus {
    outline: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal.show {
    display: block !important;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 50px auto;
    max-width: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-content {
    position: relative;
    background-color: #fff;
    border: 1px solid #888;
    border-radius: 8px;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 50px auto;
    max-width: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: modalfadein 0.3s;
}

@keyframes modalfadein {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
    text-align: right;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

.btn-close-white {
    color: white;
}

/* Form Login Modal */
.form-login .form-group {
    margin-bottom: 15px;
}

.form-login label {
    display: block;
    margin-bottom: 5px;
    color: #495057;
    font-weight: 500;
}

.form-login .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-login .form-control:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Modern public portal override */
:root {
    --portal-burg: #5b111c;
    --portal-burg-dark: #3f0c13;
    --portal-gold: #d7b46a;
    --portal-cream: #fbf6ea;
    --portal-ink: #2c1c1f;
    --portal-muted: #765f5f;
    --portal-line: rgba(91, 17, 28, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(215, 180, 106, 0.28), transparent 34%),
        linear-gradient(180deg, #fffaf0 0%, var(--portal-cream) 100%);
    color: var(--portal-ink);
    font-family: Georgia, 'Times New Roman', serif;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background:
        radial-gradient(circle at 10% 0%, rgba(215, 180, 106, 0.22), transparent 28%),
        linear-gradient(135deg, var(--portal-burg-dark), var(--portal-burg));
    border-bottom: 1px solid rgba(215, 180, 106, 0.24);
    box-shadow: 0 10px 30px rgba(63, 12, 19, 0.18);
}

.site-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.site-header__logo {
    position: relative;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(214, 177, 93, 0.28));
    color: #fff8e8;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.site-header__titles strong {
    display: block;
    color: #fff8ec;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.15;
    text-transform: none;
}

.site-header__titles small {
    display: block;
    color: rgba(248, 231, 176, 0.92);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-header__toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-header__toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.site-header__toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #fff;
    border-radius: 99px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.site-header__links,
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
}

.site-header__links {
    flex: 1;
    min-width: 0;
}

@media (min-width: 1181px) {
    .site-header__links {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
}

.site-header__links::-webkit-scrollbar {
    display: none;
}

.site-header__links--pill {
    padding: 0.28rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.site-header .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0.52rem 0.82rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.site-header .nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-1px);
}

.site-header .nav-link.is-active {
    background: rgba(214, 177, 93, 0.22);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(214, 177, 93, 0.34);
}

.site-header .nav-link--cta {
    padding: 0.62rem 1.05rem;
    background: linear-gradient(135deg, #e8c878, #d6b15d) !important;
    color: #4a0d18 !important;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(214, 177, 93, 0.28);
}

.site-header .nav-link--cta:hover {
    background: linear-gradient(135deg, #f0d48a, #e8c878) !important;
    color: #330812 !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(214, 177, 93, 0.34);
}

.site-header .nav-link--action {
    background: var(--portal-gold);
    color: var(--portal-burg-dark);
}

.site-header .nav-text-short {
    display: none;
}

.site-header .nav-link--muted {
    color: rgba(255, 255, 255, 0.58);
}

.main-content {
    margin-left: 0 !important;
    min-height: auto;
    padding: 2rem 0 0;
}

.container {
    width: min(1180px, calc(100% - 2rem));
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
}

.mt-5 {
    margin-top: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.25rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.25rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 0;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.col-md-12,
.col-md-8,
.col-md-6,
.col-md-4 {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-md-8 {
    flex: 0 0 66.666%;
    max-width: 66.666%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.card {
    overflow: hidden;
    border: 1px solid var(--portal-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(91, 17, 28, 0.08);
}

.card:hover {
    transform: none;
}

.card-body {
    padding: 1.35rem;
}

.card-header {
    padding: 1rem 1.35rem;
    border-bottom: 1px solid var(--portal-line);
    background: linear-gradient(135deg, var(--portal-burg), #8b2437) !important;
    color: #fff !important;
}

.card-header h5,
.card-header h6 {
    margin: 0;
}

.beranda-artikel-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.beranda-artikel-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.beranda-artikel-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.beranda-artikel-card-link:hover .beranda-artikel-card {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(74, 13, 24, 0.14);
}

.beranda-artikel-card-link .beranda-artikel-card {
    cursor: pointer;
}

.beranda-artikel-foto {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: 18px 18px 0 0;
}

.home-sosmed-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.home-sosmed-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(74, 13, 24, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-sosmed-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(74, 13, 24, 0.22);
    color: #fff;
    text-decoration: none;
}

.home-sosmed-link--facebook {
    background: linear-gradient(135deg, #1877f2, #0d5dbf);
}

.home-sosmed-link--instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.home-sosmed-link--youtube {
    background: linear-gradient(135deg, #ff0000, #c40000);
}

.home-santa-veronika-badge {
    position: fixed;
    top: 88px;
    left: 18px;
    z-index: 950;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(214, 177, 93, 0.9);
    box-shadow: 0 12px 28px rgba(74, 13, 24, 0.24);
    background: #fff9ec;
    pointer-events: none;
}

.home-santa-veronika-badge img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #fff9ec;
}

.page-home .main-content .container {
    padding-left: 0;
}

@media (min-width: 992px) {
    .page-home .main-content .container {
        padding-left: 118px;
    }
}

@media (max-width: 768px) {
    .home-santa-veronika-badge {
        top: 74px;
        left: 12px;
        width: 68px;
        height: 68px;
        border-width: 2px;
    }

    .page-home .main-content .container {
        padding-left: 88px;
    }
}

@media (max-width: 480px) {
    .home-santa-veronika-badge {
        width: 56px;
        height: 56px;
        top: 70px;
        left: 10px;
    }

    .page-home .main-content .container {
        padding-left: 72px;
    }
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--portal-muted) !important;
}

.lead {
    color: var(--portal-muted);
    font-size: 1.05rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cinzel', serif;
    color: var(--portal-burg);
    line-height: 1.25;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table td,
.table th {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--portal-line);
}

.table-sm td,
.table-sm th {
    padding: 0.45rem 0.5rem;
}

.alert {
    border: 1px solid var(--portal-line);
    border-radius: 16px;
    padding: 1rem 1.15rem;
}

.alert-info {
    background: linear-gradient(145deg, #fff8d9, #fff);
    color: var(--portal-ink);
    border-color: rgba(215, 180, 106, 0.45);
}

.btn,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 0;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    color: #fff;
    background: var(--portal-burg);
    font-weight: 700;
    text-decoration: none;
}

.btn:hover {
    color: #fff;
    background: #7c1e30;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.86rem;
}

.btn-group-vertical {
    display: grid;
    gap: 0.5rem;
}

.d-block {
    display: block;
}

ul {
    padding-left: 1.25rem;
}

footer,
.site-footer {
    margin-top: 2rem;
    padding: 1.5rem 0;
    background: linear-gradient(135deg, var(--portal-burg-dark), var(--portal-burg)) !important;
    color: #f8ead1 !important;
}

footer h6,
footer p {
    color: inherit !important;
}

.modal {
    z-index: 1200;
}

@media (max-width: 1180px) {
    .site-header__inner {
        position: relative;
        flex-wrap: nowrap;
        align-items: center;
    }

    .site-header__brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-header__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .site-header__nav:not(.open):not(.show) {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        clip: rect(0, 0, 0, 0) !important;
    }

    .site-header__nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 0.75rem;
        gap: 0.75rem;
    }

    .site-header__nav.open,
    .site-header__nav.show {
        display: flex !important;
        visibility: visible !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        pointer-events: auto !important;
        position: absolute !important;
        top: 100%;
        left: 0;
        right: 0;
        clip: auto !important;
        z-index: 1300;
        max-height: calc(100dvh - 4.25rem);
        overflow-y: auto !important;
        overscroll-behavior: contain;
        background:
            linear-gradient(180deg, rgba(51, 8, 18, 0.98), rgba(74, 13, 24, 0.98));
        border-top: 1px solid rgba(214, 177, 93, 0.22);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
        padding: 0.75rem 0.85rem 1rem;
    }

    .site-header__links,
    .site-header__actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .site-header__links {
        overflow: visible;
    }

    .site-header__links--pill {
        border-radius: 18px;
        padding: 0.45rem;
    }

    .site-header .nav-link {
        justify-content: center;
        width: 100%;
    }

    .site-header .nav-link--cta {
        width: 100%;
    }
}

@media (min-width: 1181px) and (max-width: 1240px) {
    .site-header .nav-text-full {
        display: none;
    }

    .site-header .nav-text-short {
        display: inline;
    }
}

@media (max-width: 768px) {
    .col-md-12,
    .col-md-8,
    .col-md-6,
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .site-header__titles strong {
        font-size: 1rem;
    }

    .site-header__titles small {
        font-size: 0.62rem;
    }

    .main-content {
        padding-top: 1rem;
    }
}

/* Animated Catholic modern theme */
:root {
    --holy-burgundy: #4a0d18;
    --holy-burgundy-2: #7a1d31;
    --holy-gold: #d6b15d;
    --holy-gold-soft: #f8e7b0;
    --holy-ivory: #fff9ec;
    --holy-glass: rgba(255, 255, 255, 0.78);
    --holy-shadow: 0 22px 60px rgba(74, 13, 24, 0.16);
}

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

@keyframes holyGlow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(214, 177, 93, 0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 28px rgba(214, 177, 93, 0.55);
        transform: scale(1.04);
    }
}

@keyframes holyShimmer {
    from {
        transform: translateX(-130%) skewX(-16deg);
    }
    to {
        transform: translateX(130%) skewX(-16deg);
    }
}

@keyframes holyFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

body {
    position: relative;
    overflow-x: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: 0.01em;
    background:
        radial-gradient(circle at 12% 8%, rgba(214, 177, 93, 0.35), transparent 24rem),
        radial-gradient(circle at 88% 0%, rgba(122, 29, 49, 0.16), transparent 28rem),
        linear-gradient(135deg, #fffaf0 0%, #f8efe1 48%, #fff6e5 100%);
}

body::before,
body::after {
    content: "✝";
    position: fixed;
    z-index: -1;
    color: rgba(122, 29, 49, 0.045);
    font-size: clamp(9rem, 18vw, 18rem);
    line-height: 1;
    pointer-events: none;
}

body::before {
    top: 6rem;
    right: 4vw;
    animation: holyFloat 9s ease-in-out infinite;
}

body::after {
    bottom: -2rem;
    left: 3vw;
    color: rgba(214, 177, 93, 0.12);
    animation: holyFloat 11s ease-in-out infinite reverse;
}

.site-header {
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 18%),
        radial-gradient(circle at 10% 0%, rgba(214, 177, 93, 0.32), transparent 28%),
        linear-gradient(135deg, #330812 0%, var(--holy-burgundy) 50%, #8a2538 100%);
}

.site-header::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    animation: holyShimmer 6s ease-in-out infinite;
    pointer-events: none;
}

.site-header__inner {
    position: relative;
    z-index: 1;
}

.site-header__logo {
    animation: holyGlow 4.5s ease-in-out infinite;
}

.site-header__brand:hover .site-header__logo {
    animation-duration: 1.8s;
}

.site-header .nav-link {
    position: relative;
    overflow: hidden;
}

.site-header .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.22rem;
    width: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--holy-gold);
    transition: width 0.25s ease, left 0.25s ease;
}

.site-header .nav-link:hover::after {
    left: 22%;
    width: 56%;
}

.main-content .container > .row > .col-md-12 > .card:first-child {
    position: relative;
    min-height: 260px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 0;
    background:
        radial-gradient(circle at 88% 18%, rgba(214, 177, 93, 0.42), transparent 19rem),
        linear-gradient(135deg, rgba(74, 13, 24, 0.96), rgba(122, 29, 49, 0.9)),
        var(--holy-burgundy);
    color: #fff;
    box-shadow: var(--holy-shadow);
    animation: holyFadeUp 0.8s ease both;
}

.main-content .container > .row > .col-md-12 > .card:first-child::before {
    content: "✝";
    position: absolute;
    right: 2rem;
    bottom: -2.4rem;
    color: rgba(255, 255, 255, 0.12);
    font-size: clamp(8rem, 18vw, 15rem);
    line-height: 1;
}

.main-content .container > .row > .col-md-12 > .card:first-child::after {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(214, 177, 93, 0.28);
    border-radius: 16px;
    pointer-events: none;
}

.main-content .container > .row > .col-md-12 > .card:first-child h1 {
    color: #fff6df;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

.main-content .container > .row > .col-md-12 > .card:first-child .lead {
    color: var(--holy-gold-soft);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card,
.alert {
    backdrop-filter: blur(16px);
    background: var(--holy-glass);
    box-shadow: 0 16px 42px rgba(74, 13, 24, 0.1);
    animation: holyFadeUp 0.75s ease both;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(214, 177, 93, 0.48);
    box-shadow: 0 24px 60px rgba(74, 13, 24, 0.16);
}

.card:nth-of-type(2) { animation-delay: 0.05s; }
.card:nth-of-type(3) { animation-delay: 0.1s; }
.card:nth-of-type(4) { animation-delay: 0.15s; }

.card-header {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 26%),
        linear-gradient(135deg, var(--holy-burgundy), var(--holy-burgundy-2)) !important;
}

.card-header::after {
    content: "";
    position: absolute;
    inset: auto 1.25rem 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--holy-gold), transparent);
}

.alert-info {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 221, 0.94)),
        linear-gradient(135deg, var(--holy-gold-soft), #fff);
}

.alert-info::before {
    content: "✦";
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    color: rgba(214, 177, 93, 0.5);
    font-size: 2.2rem;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--holy-burgundy), var(--holy-burgundy-2));
    box-shadow: 0 10px 22px rgba(74, 13, 24, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: translateX(-120%) skewX(-16deg);
    transition: transform 0.5s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(74, 13, 24, 0.25);
}

.btn:hover::before {
    transform: translateX(120%) skewX(-16deg);
}

.table tr {
    transition: background 0.18s ease;
}

.table tr:hover {
    background: rgba(214, 177, 93, 0.1);
}

footer,
.site-footer {
    position: relative;
    overflow: hidden;
}

footer::before,
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 0%, rgba(214, 177, 93, 0.24), transparent 16rem),
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Final unified modern Catholic theme */
:root {
    --catholic-wine: #4a0d18;
    --catholic-wine-2: #7a1d31;
    --catholic-wine-3: #9b2f47;
    --catholic-gold: #d6b15d;
    --catholic-gold-soft: #f8e7b0;
    --catholic-ivory: #fff9ec;
    --catholic-paper: rgba(255, 255, 255, 0.84);
    --catholic-ink: #2c171d;
    --catholic-muted: #745b62;
    --catholic-line: rgba(74, 13, 24, 0.14);
    --catholic-shadow: 0 22px 60px rgba(74, 13, 24, 0.14);
}

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

@keyframes catholicFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

@keyframes catholicPulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(214, 177, 93, 0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 32px rgba(214, 177, 93, 0.52);
        transform: scale(1.04);
    }
}

@keyframes catholicShimmer {
    from {
        transform: translateX(-140%) skewX(-16deg);
    }
    to {
        transform: translateX(140%) skewX(-16deg);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: var(--catholic-ink);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(214, 177, 93, 0.35), transparent 24rem),
        radial-gradient(circle at 88% 0%, rgba(122, 29, 49, 0.18), transparent 28rem),
        linear-gradient(135deg, #fffaf0 0%, #f7ead9 46%, #fff6e5 100%);
}

body::before,
body::after {
    content: "✝";
    position: fixed;
    z-index: -1;
    pointer-events: none;
    line-height: 1;
    font-family: Georgia, serif;
}

body::before {
    top: 7rem;
    right: 4vw;
    color: rgba(122, 29, 49, 0.055);
    font-size: clamp(9rem, 18vw, 18rem);
    animation: catholicFloat 10s ease-in-out infinite;
}

body::after {
    bottom: -3rem;
    left: 3vw;
    color: rgba(214, 177, 93, 0.13);
    font-size: clamp(8rem, 16vw, 16rem);
    animation: catholicFloat 12s ease-in-out infinite reverse;
}

.site-header,
.navbar,
.sidebar {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 18%),
        radial-gradient(circle at 10% 0%, rgba(214, 177, 93, 0.32), transparent 28%),
        linear-gradient(135deg, #330812 0%, var(--catholic-wine) 52%, var(--catholic-wine-2) 100%) !important;
    border-bottom: 1px solid rgba(214, 177, 93, 0.26);
    box-shadow: 0 12px 34px rgba(51, 8, 18, 0.18);
}

.site-header::after,
.navbar::after,
.sidebar::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 42%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    animation: catholicShimmer 7s ease-in-out infinite;
    pointer-events: none;
}

.site-header__inner,
.navbar > *,
.sidebar > * {
    position: relative;
    z-index: 1;
}

.site-header__logo,
.sidebar-title::before {
    animation: catholicPulse 4.8s ease-in-out infinite;
}

.main-content {
    min-height: auto;
    padding-top: 2rem;
}

.container {
    width: min(1180px, calc(100% - 2rem));
    max-width: 1180px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--catholic-wine);
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 0.01em;
}

p,
li,
td,
th,
label,
input,
select,
textarea {
    font-family: 'Inter', system-ui, sans-serif;
}

.card,
.alert,
.login-box,
.modal-dialog {
    border: 1px solid var(--catholic-line);
    border-radius: 22px;
    background: var(--catholic-paper);
    box-shadow: var(--catholic-shadow);
    backdrop-filter: blur(18px);
    animation: catholicFadeUp 0.72s ease both;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover,
.login-box:hover {
    transform: translateY(-5px);
    border-color: rgba(214, 177, 93, 0.5);
    box-shadow: 0 28px 70px rgba(74, 13, 24, 0.18);
}

.card-header,
.modal-header,
.table-header,
.table thead th {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.13), transparent 26%),
        linear-gradient(135deg, var(--catholic-wine), var(--catholic-wine-2)) !important;
    color: #fff8e8 !important;
    border: 0;
}

.card-header::after,
.modal-header::after {
    content: "";
    position: absolute;
    inset: auto 1.25rem 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--catholic-gold), transparent);
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6,
.modal-header h1,
.modal-header h2,
.modal-header h3,
.modal-header h4,
.modal-header h5,
.modal-header h6 {
    color: #fff8e8 !important;
}

.main-content .container > .row > .col-md-12 > .card:first-child,
.hero-catholic,
.decision-system-card {
    position: relative;
    overflow: hidden;
    border: 0;
    color: #fff8e8;
    background:
        radial-gradient(circle at 88% 16%, rgba(214, 177, 93, 0.42), transparent 18rem),
        linear-gradient(135deg, rgba(51, 8, 18, 0.98), rgba(122, 29, 49, 0.92)),
        var(--catholic-wine) !important;
    box-shadow: 0 28px 78px rgba(74, 13, 24, 0.24);
}

.main-content .container > .row > .col-md-12 > .card:first-child::before,
.hero-catholic::before,
.decision-system-card::before {
    content: "✝";
    position: absolute;
    right: 2rem;
    bottom: -2.8rem;
    color: rgba(255, 255, 255, 0.12);
    font-size: clamp(8rem, 18vw, 15rem);
    line-height: 1;
    animation: catholicFloat 9s ease-in-out infinite;
}

.main-content .container > .row > .col-md-12 > .card:first-child::after,
.hero-catholic::after,
.decision-system-card::after {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(214, 177, 93, 0.28);
    border-radius: 18px;
    pointer-events: none;
}

.main-content .container > .row > .col-md-12 > .card:first-child > *,
.hero-catholic > *,
.decision-system-card > * {
    position: relative;
    z-index: 1;
}

.main-content .container > .row > .col-md-12 > .card:first-child h1,
.main-content .container > .row > .col-md-12 > .card:first-child h2,
.main-content .container > .row > .col-md-12 > .card:first-child h3,
.hero-catholic h1,
.hero-catholic h2,
.hero-catholic h3,
.decision-system-card h1,
.decision-system-card h2,
.decision-system-card h3 {
    color: #fff8e8;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

.main-content .container > .row > .col-md-12 > .card:first-child h1,
.hero-catholic h1 {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lead,
.text-muted {
    color: var(--catholic-muted) !important;
}

.main-content .container > .row > .col-md-12 > .card:first-child .lead,
.hero-catholic .lead,
.decision-system-card p {
    color: var(--catholic-gold-soft) !important;
}

.main-content .container > .row > .col-md-12 > .card:first-child .lead,
.hero-catholic .lead {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.nav-link--action {
    position: relative;
    overflow: hidden;
    border: 0 !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--catholic-wine), var(--catholic-wine-2)) !important;
    box-shadow: 0 12px 26px rgba(74, 13, 24, 0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn::before,
.nav-link--action::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-125%) skewX(-16deg);
    transition: transform 0.55s ease;
}

.btn:hover,
.nav-link--action:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 16px 34px rgba(74, 13, 24, 0.28);
}

.btn:hover::before,
.nav-link--action:hover::before {
    transform: translateX(125%) skewX(-16deg);
}

.site-header .nav-link,
.navbar .nav-link,
.sidebar-nav .nav-link {
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.site-header .nav-link:hover,
.navbar .nav-link:hover,
.sidebar-nav .nav-link:hover {
    transform: translateY(-2px);
    background: rgba(214, 177, 93, 0.18) !important;
}

.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="time"],
select,
textarea {
    border: 1px solid rgba(74, 13, 24, 0.16) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.78) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--catholic-gold) !important;
    box-shadow: 0 0 0 4px rgba(214, 177, 93, 0.18) !important;
    transform: translateY(-1px);
}

.table {
    overflow: hidden;
    border-radius: 16px;
}

.table tr {
    transition: background 0.18s ease, transform 0.18s ease;
}

.table tbody tr:hover {
    background: rgba(214, 177, 93, 0.12);
}

.badge,
code,
.spk-chip {
    border-radius: 999px;
}

.alert-info {
    position: relative;
    overflow: hidden;
    color: var(--catholic-ink);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 221, 0.94)),
        linear-gradient(135deg, var(--catholic-gold-soft), #fff) !important;
    border-color: rgba(214, 177, 93, 0.46);
}

.alert-info::before {
    content: "✦";
    position: absolute;
    top: 0.7rem;
    right: 1rem;
    color: rgba(214, 177, 93, 0.5);
    font-size: 2.2rem;
}

.progress,
.progress-bar {
    border-radius: 999px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--catholic-wine-2), var(--catholic-gold)) !important;
    animation: catholicFadeUp 0.8s ease both;
}

.login-page {
    background:
        radial-gradient(circle at 20% 10%, rgba(214, 177, 93, 0.36), transparent 22rem),
        radial-gradient(circle at 82% 14%, rgba(122, 29, 49, 0.22), transparent 25rem),
        linear-gradient(135deg, #fffaf0 0%, #f7ead9 50%, #fff6e5 100%) !important;
}

.login-box {
    border-top: 4px solid var(--catholic-gold);
}

.login-box h1,
.login-box h3 {
    color: var(--catholic-wine) !important;
}

footer,
.site-footer {
    background:
        radial-gradient(circle at 18% 0%, rgba(214, 177, 93, 0.24), transparent 16rem),
        linear-gradient(135deg, #330812, var(--catholic-wine)) !important;
}

/* Modern public header refinements */
.site-header--modern {
    overflow: visible !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header--modern::after {
    border-radius: inherit;
}

.site-header--modern .site-header__logo-ring {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid rgba(214, 177, 93, 0.75);
    opacity: 1;
    animation: catholicPulse 4.5s ease-in-out infinite;
}

.site-header--modern .site-header__logo-icon {
    position: relative;
    z-index: 1;
}

.site-header--modern .site-header__logo-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    background: #fff9ec;
}

.site-header--modern .site-header__brand:hover .site-header__logo {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.site-header--modern .site-header__logo {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 50%;
    overflow: hidden;
    background: #fff9ec;
    border: 2px solid rgba(214, 177, 93, 0.85);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    padding: 0;
}

.site-header--modern .nav-link::after {
    display: none;
}

.site-header--modern .nav-link--cta::before {
    display: none;
}

.site-header--modern .site-header__actions {
    margin-left: 0.15rem;
}

.site-header--modern .site-header__inner,
.site-header--modern .site-header__nav {
    overflow: visible;
}

.site-header--modern .site-header__links {
    overflow: visible;
}


body.page-home {
    background: #f5f0e8;
}

body.page-home::before,
body.page-home::after {
    display: none;
}

.home-hero {
    position: relative;
    width: 100%;
    min-height: clamp(440px, 72vh, 760px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: calc(4.75rem + 2.5rem) 1.25rem 3.5rem;
    background:
        url("../images/gereja-santa-veronika-kaiwatu.png") center 38% / cover no-repeat;
    color: #fff8e8;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(51, 8, 18, 0.18) 0%,
            rgba(51, 8, 18, 0.04) 38%,
            rgba(51, 8, 18, 0.02) 58%,
            rgba(51, 8, 18, 0.62) 100%
        );
    pointer-events: none;
}

.home-hero__content {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    text-align: center;
}

.home-hero__content h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.85rem, 4.8vw, 3.15rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff8e8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
}

.home-hero__content .lead {
    margin: 0;
    font-size: clamp(0.95rem, 2.1vw, 1.2rem);
    color: rgba(255, 248, 232, 0.96) !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.page-home .home-main-content {
    position: relative;
    z-index: 1;
    background: #f5f0e8;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
}

.page-home .home-main-content .card,
.page-home .home-main-content .alert {
    background-color: #fff;
}

.page-home .home-santa-veronika-badge {
    z-index: 1050;
}

/* Header publik tetap di atas saat scroll (semua halaman navbar_public) */
.site-header.site-header--modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
}

body:not(.page-home) .main-content {
    padding-top: calc(4.75rem + 2rem);
}

@media (max-width: 991px) {
    body:not(.page-home) .main-content {
        padding-top: calc(4.5rem + 1rem);
    }
}

@media (max-width: 991px) {
    .home-hero {
        min-height: clamp(360px, 58vh, 560px);
        padding: calc(4.5rem + 1.5rem) 1rem 2.5rem;
        background-position: center 42%;
    }
}

@media (max-width: 768px) {
    .home-hero {
        min-height: clamp(300px, 50vh, 480px);
        background-position: center 45%;
    }

    .page-home .home-santa-veronika-badge {
        width: 64px;
        height: 64px;
        top: auto;
        bottom: 1.25rem;
        left: 1rem;
    }
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    z-index: 20;
}

.nav-link--dropdown {
    gap: 0.35rem;
}

.nav-caret {
    font-size: 0.72rem;
    line-height: 1;
    opacity: 0.82;
    transition: transform 0.22s ease;
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
    transform: rotate(180deg);
}

.nav-dropdown:hover,
.nav-dropdown:focus-within {
    z-index: 1300;
}

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: 0;
    z-index: 1301;
    width: min(520px, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    padding: 0.65rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid rgba(214, 177, 93, 0.35);
    border-radius: 22px;
    background: #fff9ec;
    box-shadow: 0 22px 56px rgba(51, 8, 18, 0.28);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    isolation: isolate;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header--modern .nav-dropdown__menu a {
    display: block;
    align-items: center;
    padding: 0.62rem 0.72rem;
    border-radius: 16px;
    color: var(--catholic-wine) !important;
    text-decoration: none !important;
    background: #fff9ec;
    transition: background 0.18s ease, transform 0.18s ease;
}

.site-header--modern .nav-dropdown__menu a:hover {
    background: rgba(214, 177, 93, 0.18);
    transform: translateX(3px);
}

.site-header--modern .nav-dropdown__menu strong {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #fff8e8;
    background: linear-gradient(135deg, var(--catholic-wine), var(--catholic-wine-2));
    font-size: 0.78rem;
}

.site-header--modern .nav-dropdown__menu span {
    color: #4f3037 !important;
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1.22;
}

.sdm-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(214, 177, 93, 0.28);
    border-radius: 28px;
    background:
        radial-gradient(circle at 85% 10%, rgba(214, 177, 93, 0.36), transparent 18rem),
        linear-gradient(135deg, rgba(74, 13, 24, 0.96), rgba(122, 29, 49, 0.9));
    color: #fff8e8;
    box-shadow: var(--catholic-shadow);
}

.sdm-hero::after {
    content: "SDM";
    position: absolute;
    right: 1.2rem;
    bottom: -1.8rem;
    color: rgba(255, 255, 255, 0.08);
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(5rem, 14vw, 10rem);
    line-height: 1;
    pointer-events: none;
}

.sdm-hero h2,
.sdm-hero p {
    position: relative;
    z-index: 1;
    color: inherit;
}

.sdm-hero h2 {
    margin: 0 0 0.75rem;
    color: #fff8e8;
}

.sdm-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.sdm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.sdm-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    padding: 1.25rem;
    border: 1px solid rgba(74, 13, 24, 0.12);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(214, 177, 93, 0.18), transparent 8rem),
        rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 36px rgba(74, 13, 24, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.sdm-card:hover {
    transform: translateY(-5px);
    border-color: rgba(214, 177, 93, 0.5);
    box-shadow: 0 24px 58px rgba(74, 13, 24, 0.14);
}

.sdm-card__number {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    margin-bottom: 0.85rem;
    padding: 0 0.8rem;
    border-radius: 14px;
    color: #fff8e8;
    background: linear-gradient(135deg, var(--catholic-wine), var(--catholic-wine-2));
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(74, 13, 24, 0.16);
}

.sdm-card h3 {
    margin: 0 0 0.6rem;
    color: var(--catholic-wine);
    font-size: 1.05rem;
}

.sdm-card__leader {
    margin: 0 0 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    background: rgba(214, 177, 93, 0.14);
    color: #4f3037;
}

.sdm-card__leader strong {
    color: var(--catholic-wine);
}

.sdm-sie-list {
    display: grid;
    gap: 0.85rem;
    margin: 0 0 0.95rem;
}

.sdm-sie {
    padding: 0.95rem;
    border: 1px solid rgba(74, 13, 24, 0.1);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(214, 177, 93, 0.12), transparent 7rem),
        rgba(255, 255, 255, 0.68);
}

.sdm-sie h4 {
    margin: 0 0 0.45rem;
    color: var(--catholic-wine);
    font-size: 0.98rem;
}

.sdm-sie__leader {
    margin: 0 0 0.65rem;
    color: #533842;
}

.sdm-card__subheading {
    margin: 0 0 0.55rem;
    color: var(--catholic-wine);
    font-weight: 800;
}

.sdm-member-list {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    padding: 0;
    list-style: none;
}

.sdm-member-list li {
    position: relative;
    padding: 0.5rem 0.75rem 0.5rem 1.9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
    color: #533842;
    font-size: 0.92rem;
}

.sdm-member-list li::before {
    content: "";
    position: absolute;
    left: 0.78rem;
    top: 0.88rem;
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 999px;
    background: var(--catholic-gold);
}

.sdm-card__empty {
    color: var(--catholic-muted);
    font-style: italic;
}

.sdm-card p {
    margin: 0;
    color: #6b5258;
    line-height: 1.6;
}

.sdm-sie-form {
    display: grid;
    gap: 0.85rem;
}

.sdm-sie-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr auto;
    gap: 0.75rem;
    align-items: end;
    padding: 1rem;
    border: 1px solid rgba(74, 13, 24, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
}

.sdm-sie-form__row label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
    color: var(--catholic-wine);
}

.sdm-section-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.45rem;
    border-radius: 999px;
    background: rgba(249, 243, 229, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.sdm-section-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    color: var(--catholic-wine);
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-variant: normal;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sdm-section-tabs a:hover,
.sdm-section-tabs a:focus-visible {
    color: var(--catholic-wine);
    background: rgba(255, 255, 255, 0.55);
    outline: none;
}

.sdm-section-tabs a.active {
    color: var(--catholic-wine);
    background: #f7efe4;
    box-shadow: 0 4px 14px rgba(74, 13, 24, 0.08);
}

.sdm-section-tabs-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.sdm-tabs {
    justify-content: center;
}

.sdm-tab-content__desc {
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(74, 13, 24, 0.1);
    color: #6b5258;
    line-height: 1.6;
}

.sdm-page .card-header h5 {
    font-family: 'Inter', system-ui, sans-serif;
    font-variant: normal;
    letter-spacing: normal;
    text-transform: none;
}

.dana-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.dana-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(74, 13, 24, 0.14);
    border-radius: 999px;
    color: var(--catholic-wine);
    background: rgba(255, 255, 255, 0.72);
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-variant: normal;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dana-tabs a:hover,
.dana-tabs a.active {
    color: #fff8e8;
    background: linear-gradient(135deg, var(--catholic-wine), var(--catholic-wine-2));
    transform: translateY(-2px);
}

.dana-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.dana-summary__card {
    padding: 1.2rem;
    border: 1px solid rgba(74, 13, 24, 0.12);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(214, 177, 93, 0.2), transparent 9rem),
        rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 38px rgba(74, 13, 24, 0.08);
}

.dana-summary__card span {
    display: block;
    color: var(--catholic-muted);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.dana-summary__card strong {
    display: block;
    color: var(--catholic-wine);
    font-size: 1.25rem;
}

@media (max-width: 1180px) {
    .nav-dropdown {
        display: block;
        width: 100%;
    }

    .nav-dropdown__menu {
        position: static;
        width: 100%;
        margin-top: 0.45rem;
        grid-template-columns: 1fr;
        max-height: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #fff9ec;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        display: none;
    }

    .nav-dropdown.is-open .nav-dropdown__menu {
        display: grid;
    }

    .site-header--modern .nav-dropdown__menu a {
        padding: 0.58rem 0.65rem;
    }

    .sdm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sdm-sie-form__row {
        grid-template-columns: 1fr;
    }

    .dana-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sdm-section-tabs {
        width: 100%;
        border-radius: 22px;
    }

    .sdm-section-tabs a {
        flex: 1 1 100%;
        padding: 0.65rem 0.9rem;
        font-size: 0.92rem;
    }

    .sdm-grid {
        grid-template-columns: 1fr;
    }

    .nav-dropdown__menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-header--modern .nav-dropdown__menu span {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .card,
    .alert,
    .login-box {
        border-radius: 18px;
    }

    .main-content {
        padding-top: 1rem;
    }

    body::before,
    body::after {
        opacity: 0.65;
    }
}

/* SPK Program Pastoral — modern stepper */
.spk-flow {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 12%, rgba(214, 177, 93, 0.28), transparent 14rem),
        linear-gradient(180deg, #fffdf8 0%, #fff8ef 100%);
    border: 1px solid rgba(122, 29, 49, 0.12);
    box-shadow: 0 18px 48px rgba(74, 13, 24, 0.1);
}

.spk-flow::after {
    content: "";
    position: absolute;
    inset: 0.85rem;
    border: 1px solid rgba(214, 177, 93, 0.22);
    border-radius: 16px;
    pointer-events: none;
}

.spk-flow__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem 1.1rem;
    background:
        radial-gradient(circle at 18% 0%, rgba(214, 177, 93, 0.22), transparent 12rem),
        linear-gradient(135deg, rgba(51, 8, 18, 0.98), rgba(122, 29, 49, 0.94));
    color: #fff8e8;
}

.spk-flow__header-text {
    max-width: 42rem;
}

.spk-flow__eyebrow {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(214, 177, 93, 0.28);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.spk-flow__title {
    margin: 0 0 0.35rem;
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 600;
    color: #fff8e8;
    line-height: 1.25;
}

.spk-flow__subtitle {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 248, 232, 0.86);
}

.spk-flow__cross {
    flex: 0 0 auto;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1;
    color: rgba(255, 255, 255, 0.14);
    user-select: none;
}

.spk-flow__track {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 1.15rem 1.25rem 1.25rem;
}

.spk-flow__track::before {
    content: "";
    position: absolute;
    top: 2.55rem;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, rgba(122, 29, 49, 0.08), rgba(214, 177, 93, 0.45), rgba(122, 29, 49, 0.08));
    pointer-events: none;
}

.spk-flow__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.85rem 0.7rem 0.95rem;
    border-radius: 18px;
    text-decoration: none !important;
    color: #4a0d18 !important;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(122, 29, 49, 0.1);
    box-shadow: 0 8px 22px rgba(74, 13, 24, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.spk-flow__step:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 177, 93, 0.55);
    box-shadow: 0 14px 30px rgba(74, 13, 24, 0.12);
}

.spk-flow__step.is-active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), #fff4e8);
    border-color: rgba(214, 177, 93, 0.65);
    box-shadow: 0 16px 34px rgba(74, 13, 24, 0.16);
}

.spk-flow__step.is-done {
    background: linear-gradient(180deg, #fffefb, #f8f1e4);
    border-color: rgba(122, 29, 49, 0.18);
}

.spk-flow__marker {
    position: relative;
    z-index: 1;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #fff8ef, #f3e2c8);
    border: 2px solid rgba(214, 177, 93, 0.45);
    box-shadow: 0 8px 18px rgba(74, 13, 24, 0.1);
}

.spk-flow__step.is-active .spk-flow__marker {
    background: linear-gradient(135deg, rgba(51, 8, 18, 0.98), rgba(122, 29, 49, 0.94));
    border-color: rgba(214, 177, 93, 0.75);
    box-shadow: 0 0 0 4px rgba(214, 177, 93, 0.18), 0 12px 24px rgba(74, 13, 24, 0.22);
}

.spk-flow__step.is-done .spk-flow__marker {
    background: linear-gradient(135deg, #7a1d31, #5e0f2f);
    border-color: rgba(214, 177, 93, 0.5);
}

.spk-flow__num {
    position: absolute;
    right: -0.15rem;
    bottom: -0.15rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    color: #fff8e8;
    background: #7a1d31;
    border: 2px solid #fff8ef;
}

.spk-flow__step.is-active .spk-flow__num {
    background: #d6b15d;
    color: #4a0d18;
}

.spk-flow__check {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff8e8;
    line-height: 1;
}

.spk-flow__icon {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
    background-color: #7a1d31;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.spk-flow__step.is-active .spk-flow__icon {
    background-color: #f8e7b0;
}

.spk-flow__icon--sliders {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M11.5 2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M9.05 3a2.5 2.5 0 0 1 4.9 0H15v1h-1.05a2.5 2.5 0 0 1-4.9 0H1V3zM4.5 7a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M2.05 8a2.5 2.5 0 0 1 4.9 0H15v1H6.95a2.5 2.5 0 0 1-4.9 0H1V8zM11.5 12a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M9.05 13a2.5 2.5 0 0 1 4.9 0H15v1h-1.05a2.5 2.5 0 0 1-4.9 0H1v-1h1.05z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M11.5 2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M9.05 3a2.5 2.5 0 0 1 4.9 0H15v1h-1.05a2.5 2.5 0 0 1-4.9 0H1V3zM4.5 7a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M2.05 8a2.5 2.5 0 0 1 4.9 0H15v1H6.95a2.5 2.5 0 0 1-4.9 0H1V8zM11.5 12a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M9.05 13a2.5 2.5 0 0 1 4.9 0H15v1h-1.05a2.5 2.5 0 0 1-4.9 0H1v-1h1.05z'/%3E%3C/svg%3E");
}

.spk-flow__icon--collection {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M2.5 3.5a.5.5 0 0 1 0-1h11a.5.5 0 0 1 0 1zm2-2a.5.5 0 0 1 0-1h7a.5.5 0 0 1 0 1zm1.5 2a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1zm-1 2.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5m0 2a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M2.5 3.5a.5.5 0 0 1 0-1h11a.5.5 0 0 1 0 1zm2-2a.5.5 0 0 1 0-1h7a.5.5 0 0 1 0 1zm1.5 2a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1zm-1 2.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5m0 2a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5'/%3E%3C/svg%3E");
}

.spk-flow__icon--pencil {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M12.146.854a.5.5 0 0 1 .708 0l2.292 2.292a.5.5 0 0 1 0 .708l-9.439 9.439a.5.5 0 0 1-.168.11l-4 1.5a.5.5 0 0 1-.65-.65l1.5-4a.5.5 0 0 1 .11-.168zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M12.146.854a.5.5 0 0 1 .708 0l2.292 2.292a.5.5 0 0 1 0 .708l-9.439 9.439a.5.5 0 0 1-.168.11l-4 1.5a.5.5 0 0 1-.65-.65l1.5-4a.5.5 0 0 1 .11-.168zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207z'/%3E%3C/svg%3E");
}

.spk-flow__icon--trophy {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M2.5 2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1v8a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V4h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM4 4h8v8a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1zm2.5 10a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1H7a.5.5 0 0 1-.5-.5'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M2.5 2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1v8a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V4h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM4 4h8v8a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1zm2.5 10a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1H7a.5.5 0 0 1-.5-.5'/%3E%3C/svg%3E");
}

.spk-flow__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
    width: 100%;
}

.spk-flow__label,
.spk-flow__hint,
.spk-flow__step:hover .spk-flow__label,
.spk-flow__step:hover .spk-flow__hint {
    text-decoration: none !important;
}

.spk-flow__label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    color: #4a0d18 !important;
}

.spk-flow__hint {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.76rem;
    line-height: 1.45;
    color: #7a4b57 !important;
}

.spk-flow__step.is-active .spk-flow__label {
    color: #5e0f2f !important;
}

.spk-flow__step.is-active .spk-flow__hint {
    color: #8b5a66 !important;
}

.spk-help-card {
    border-left: 4px solid var(--catholic-wine, #7a1d31);
}

.spk-kriteria-hint {
    font-size: 0.78rem;
    color: #6b4a52;
    display: block;
    margin-top: 0.2rem;
}

@media (max-width: 992px) {
    .spk-flow__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spk-flow__track::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .spk-flow__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .spk-flow__cross {
        align-self: flex-end;
        margin-top: -1.5rem;
    }

    .spk-flow__track {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .spk-flow__step {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .spk-flow__content {
        align-items: flex-start;
        text-align: left;
    }
}

/* ============================================================
   Mobile & tablet responsive — navigasi + layout ramah HP
   ============================================================ */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
    .site-header--modern {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1100;
    }

    .site-header--modern .site-header__inner {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.75rem;
        padding: 0.65rem 0.85rem;
    }

    .site-header--modern .site-header__brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-header--modern .site-header__titles strong {
        font-size: clamp(0.88rem, 3.8vw, 1rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-header--modern .site-header__titles small {
        font-size: 0.58rem;
        letter-spacing: 0.06em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-header--modern .site-header__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        margin-left: 0;
    }

    .site-header--modern .site-header__nav:not(.open) {
        display: none !important;
    }

    .site-header--modern .site-header__nav.open {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100dvh - 4.25rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0.75rem 0.85rem 1rem;
        gap: 0.65rem;
        background:
            linear-gradient(180deg, rgba(51, 8, 18, 0.98), rgba(74, 13, 24, 0.98));
        border-top: 1px solid rgba(214, 177, 93, 0.22);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
        z-index: 1300;
    }

    .site-header--modern .site-header__links,
    .site-header--modern .site-header__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        overflow: visible;
    }

    .site-header--modern .site-header__links--pill {
        border-radius: 18px;
        padding: 0.45rem;
        width: 100%;
        flex-wrap: nowrap;
        overflow: visible;
    }

    .site-header--modern .nav-link,
    .site-header--modern .nav-link--cta,
    .site-header--modern .nav-link--dropdown {
        width: 100%;
        justify-content: space-between;
        white-space: normal;
        text-align: left;
        border-radius: 14px;
    }

    .site-header--modern .nav-dropdown {
        display: block;
        width: 100%;
    }

    .site-header--modern .nav-dropdown__menu {
        display: none;
        position: static;
        width: 100%;
        margin-top: 0.35rem;
        grid-template-columns: 1fr;
        max-height: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0.35rem;
    }

    .site-header--modern .nav-dropdown.is-open .nav-dropdown__menu {
        display: grid;
    }

    .site-header--modern .nav-dropdown:hover .nav-dropdown__menu,
    .site-header--modern .nav-dropdown:focus-within .nav-dropdown__menu {
        display: none;
    }

    .site-header--modern .nav-dropdown.is-open .nav-dropdown__menu,
    .site-header--modern .nav-dropdown.is-open:hover .nav-dropdown__menu,
    .site-header--modern .nav-dropdown.is-open:focus-within .nav-dropdown__menu {
        display: grid;
    }

    body.site-nav-open {
        overflow: hidden;
    }

    body:not(.page-home) .main-content {
        padding-top: calc(4.25rem + 1rem);
    }

    .page-home .home-main-content {
        padding-top: 2rem;
    }

    .container {
        width: min(1180px, calc(100% - 1.25rem));
    }

    .main-content,
    body:not(.page-home) .main-content,
    .page-home .home-main-content {
        padding-left: 0;
        padding-right: 0;
    }

    .home-hero {
        min-height: clamp(280px, 42vh, 420px);
        padding: calc(4.25rem + 1.25rem) 1rem 2rem;
    }

    .home-hero__content h1 {
        font-size: clamp(1.35rem, 6vw, 2rem);
        letter-spacing: 0.03em;
    }

    .home-hero__content .lead {
        font-size: clamp(0.78rem, 3.2vw, 0.95rem);
        letter-spacing: 0.06em;
    }

    .card-body,
    .card-header {
        padding: 0.85rem 1rem;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .row > [class*="col-"] {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .sdm-section-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        width: 100%;
        overflow: visible;
    }

    .sdm-section-tabs a {
        flex: 1 1 calc(50% - 0.35rem);
        min-width: 0;
        text-align: center;
        font-size: 0.82rem;
        padding: 0.55rem 0.65rem;
    }

    .home-sosmed-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.65rem;
    }

    .beranda-artikel-foto {
        height: 180px;
        object-fit: cover;
    }
}

@media (max-width: 576px) {
    .site-header--modern .site-header__logo {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .sdm-section-tabs a {
        flex: 1 1 100%;
    }

    .home-santa-veronika-badge {
        width: 56px !important;
        height: 56px !important;
    }

    h2.mb-4 {
        font-size: 1.35rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .btn {
        white-space: normal;
    }
}

/* ==========================================================================
   Responsive publik — perbaikan tampilan laptop, tablet, dan handphone
   ========================================================================== */

html {
    -webkit-text-size-adjust: 100%;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

@media (max-width: 991.98px) {
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    .site-header,
    .site-header.site-header--modern {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        z-index: 1100;
        overflow: visible;
    }

    .site-header__inner {
        position: relative;
        flex-wrap: nowrap;
        align-items: center;
        max-width: 100%;
    }

    .site-header__brand {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    .site-header__toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .site-header__nav:not(.open):not(.show) {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        clip: rect(0, 0, 0, 0) !important;
    }

    .site-header__nav.open,
    .site-header__nav.show {
        display: flex !important;
        visibility: visible !important;
        width: 100% !important;
        height: auto !important;
        overflow-y: auto !important;
        pointer-events: auto !important;
        position: absolute !important;
        top: 100%;
        left: 0;
        right: 0;
        clip: auto !important;
        flex-direction: column;
        align-items: stretch;
        max-height: calc(100dvh - 4.25rem);
        overscroll-behavior: contain;
        padding: 0.75rem 0.85rem 1rem;
        gap: 0.65rem;
        background:
            linear-gradient(180deg, rgba(51, 8, 18, 0.98), rgba(74, 13, 24, 0.98));
        border-top: 1px solid rgba(214, 177, 93, 0.22);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
        z-index: 1300;
    }

    .site-header__links,
    .site-header__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        overflow: visible !important;
        flex-wrap: wrap !important;
    }

    .site-header__links--pill {
        width: 100%;
        border-radius: 18px;
        flex-wrap: wrap !important;
    }

    .site-header .nav-link,
    .site-header .nav-link--cta,
    .site-header .nav-link--dropdown {
        width: 100%;
        justify-content: space-between;
        white-space: normal;
        text-align: left;
        border-radius: 14px;
    }

    .site-header .nav-dropdown {
        display: block;
        width: 100%;
    }

    .site-header .nav-dropdown__menu {
        display: none !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        margin-top: 0.35rem;
        grid-template-columns: 1fr !important;
    }

    .site-header .nav-dropdown.is-open .nav-dropdown__menu {
        display: grid !important;
    }

    .site-header .nav-dropdown:hover .nav-dropdown__menu,
    .site-header .nav-dropdown:focus-within .nav-dropdown__menu {
        display: none !important;
    }

    .site-header .nav-dropdown.is-open .nav-dropdown__menu,
    .site-header .nav-dropdown.is-open:hover .nav-dropdown__menu,
    .site-header .nav-dropdown.is-open:focus-within .nav-dropdown__menu {
        display: grid !important;
    }

    body.site-nav-open {
        overflow: hidden;
    }

    .col-md-8,
    .col-md-6,
    .col-md-4,
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .container {
        width: min(1180px, calc(100% - 1.25rem));
    }

    .page-home .main-content .container,
    .page-home .home-main-content .container {
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
    }

    .home-santa-veronika-badge {
        width: 56px !important;
        height: 56px !important;
        top: auto !important;
        bottom: 1rem !important;
        left: 1rem !important;
    }

    .home-hero {
        min-height: clamp(280px, 45vh, 480px);
        padding: calc(4.25rem + 1.5rem) 1rem 2rem;
    }

    .home-hero__content h1 {
        font-size: clamp(1.35rem, 6vw, 2rem);
    }

    .home-hero__content .lead {
        font-size: clamp(0.78rem, 3.2vw, 0.95rem);
    }

    .main-content,
    body:not(.page-home) .main-content {
        padding-top: calc(4.25rem + 1rem);
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .row > [class*="col-"] {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .table-responsive {
        margin-bottom: 1rem;
    }
}

@media (min-width: 992px) and (max-width: 1180px) {
    .site-header__nav:not(.open):not(.show) {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .site-header__logo {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .site-header__titles strong {
        font-size: 0.85rem;
    }

    .site-header__titles small {
        font-size: 0.55rem;
    }

    .card-body,
    .card-header {
        padding: 0.85rem 1rem;
    }
}

/* Selector ID — prioritas tertinggi untuk menu mobile */
@media (max-width: 991.98px) {
    #siteNav:not(.open):not(.show) {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        position: absolute !important;
        clip: rect(0, 0, 0, 0) !important;
    }

    #siteNav.open,
    #siteNav.show {
        display: flex !important;
        visibility: visible !important;
        width: 100% !important;
        height: auto !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        clip: auto !important;
        flex-direction: column !important;
        z-index: 1300 !important;
    }
}

/* style.css build: 2026-07-02-mobile */
