/* ============ DOKUMEN PAGE - ENHANCED EFFECTS ============ */

/* ============ HERO SECTION ============ */
#subheader {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    display: block;
    animation: fadeInDown 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#subheader .jarallax-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -o-object-fit: cover;
    filter: brightness(0.95) saturate(1.1);
    transition: filter 0.4s ease;
}

#subheader:hover .jarallax-img {
    filter: brightness(1) saturate(1.2);
}

#subheader h3 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 4px 15px rgba(43, 122, 66, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    letter-spacing: 1px;
}

#subheader .crumb {
    animation: fadeInLeft 0.8s ease-out;
}

.de-overlay {
    pointer-events: none;
}

header {
    z-index: 100 !important;
}

#subheader .container.relative {
    z-index: 3;
    position: relative;
}

#content {
    position: relative;
    z-index: 3;
}

.link-top {
    position: relative;
    z-index: 10;
}

/* ============ SEARCH & FILTER SECTION ============ */
.search-filter-section {
    animation: fadeInUp 0.6s ease-out;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 253, 246, 0.9) 100%);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(43, 122, 66, 0.15);
    box-shadow: 0 10px 40px rgba(43, 122, 66, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 6s infinite;
    pointer-events: none;
    z-index: 0;
}

.search-filter-section:hover {
    border-color: rgba(43, 122, 66, 0.25);
    box-shadow: 0 15px 50px rgba(43, 122, 66, 0.15);
}

.search-filter-section > * {
    position: relative;
    z-index: 1;
}

.search-filter-section .form-control {
    border: 1.5px solid #ddd;
    border-radius: 10px;
    padding: 0.75rem 1.2rem;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(255, 255, 255, 0.98);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-filter-section .form-control:focus {
    border-color: #2b7a42;
    background: #fff;
    box-shadow: 0 0 0 0.3rem rgba(43, 122, 66, 0.12), inset 0 0 10px rgba(43, 122, 66, 0.05);
    transform: translateY(-2px);
}

.search-filter-section .form-control::placeholder {
    color: #999;
    font-style: italic;
}

.search-filter-section .btn-success {
    background: linear-gradient(135deg, #2b7a42 0%, #1a4d29 100%);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    padding: 0.75rem 1.8rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(43, 122, 66, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.search-filter-section .btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s;
}

.search-filter-section .btn-success:hover {
    background: linear-gradient(135deg, #1a4d29 0%, #0d2f1a 100%);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(43, 122, 66, 0.4);
}

.search-filter-section .btn-success:active {
    transform: translateY(-1px);
}

.search-filter-section .btn-success:hover::before {
    left: 100%;
}

.search-results-info {
    font-size: 0.95rem;
    color: #2b7a42;
    margin-bottom: 1.5rem;
    padding: 1.3rem 1.5rem;
    background: linear-gradient(135deg, #f8fdf6 0%, #eef6ea 100%);
    border-left: 5px solid #2b7a42;
    border-radius: 10px;
    animation: slideInLeft 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(43, 122, 66, 0.12);
    border: 1px solid rgba(43, 122, 66, 0.2);
    position: relative;
    overflow: hidden;
}

.search-results-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #2b7a42, transparent);
    animation: slideDown 0.6s ease-out;
}

.search-results-info strong {
    color: #1a4d29;
    font-weight: 700;
}

.search-results-info i {
    margin-right: 0.5rem;
    color: #2b7a42;
}

/* ============ DOKUMEN CARDS ============ */
.dok-card {
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(43, 122, 66, 0.08);
    display: flex;
    flex-direction: row;
    min-height: 220px;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Top border gradient effect */
.dok-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2b7a42 0%, #1a4d29 50%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.dok-card:hover::before {
    transform: scaleX(1);
}

.dok-card:hover {
    box-shadow: 0 20px 50px rgba(43, 122, 66, 0.25);
    transform: translateY(-10px);
    border-color: rgba(43, 122, 66, 0.2);
}

.dok-card-left {
    position: relative;
    width: 45%;
    min-width: 170px;
    display: flex;
    flex-direction: column;
    border-radius: 14px 0 0 14px;
    justify-content: flex-start;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.dok-card-left::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 85, 63, 0.5) 0%, rgba(21, 46, 29, 0.65) 100%);
    z-index: 1;
    border-radius: 14px 0 0 14px;
    transition: all 0.4s ease;
}

.dok-card:hover .dok-card-left::before {
    background: linear-gradient(135deg, rgba(44, 85, 63, 0.3) 0%, rgba(21, 46, 29, 0.45) 100%);
}

.dok-card-left-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px 0 18px;
    min-height: 100px;
}

.dok-date-badge {
    background: linear-gradient(135deg, #2b7a42 0%, #1a4d29 100%);
    color: #fff;
    width: 65px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 10px;
    box-shadow: 0 6px 20px rgba(43, 122, 66, 0.35);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Shine effect on badge */
.dok-date-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: shine 3s infinite;
    border-radius: 10px;
}

.dok-card:hover .dok-date-badge {
    transform: scale(1.12) rotateZ(-3deg);
    box-shadow: 0 10px 30px rgba(43, 122, 66, 0.45);
}

.dok-date-badge-day {
    padding-top: 8px;
    font-size: 1.35em;
    font-weight: 900;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.dok-date-badge-month {
    font-size: 0.95em;
    line-height: 1;
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.dok-date-badge-year {
    font-size: 0.82em;
    line-height: 1;
    padding-bottom: 8px;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.dok-card-title-left {
    padding-top: 8px;
    max-width: 90%;
    color: #fff;
    font-weight: 700;
    font-size: 1.1em;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(21, 46, 29, 0.7);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.dok-card:hover .dok-card-title-left {
    color: #fff;
    text-shadow: 0 3px 15px rgba(21, 46, 29, 0.9);
}

.dok-card-right {
    flex: 1 1 0;
    min-width: 0;
    padding: 22px 16px 0 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* Vertical divider line effect */
.dok-card-right::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 0;
    background: linear-gradient(180deg, rgba(43, 122, 66, 0.3), transparent);
    transition: height 0.4s ease;
    z-index: 1;
}

.dok-card:hover .dok-card-right::before {
    height: 100%;
}

.dok-card-title {
    font-weight: 700;
    font-size: 1.09em;
    line-height: 1.26em;
    margin-bottom: 0.5rem;
}

.dok-card-title a {
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.dok-card-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2b7a42, #1a4d29);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dok-card-title a:hover {
    color: #2b7a42;
}

.dok-card-title a:hover::after {
    width: 100%;
}

.dok-card-description {
    font-size: 1em;
    color: #43585e;
    margin-bottom: 8px;
    line-height: 1.5;
}

.dok-card-meta {
    font-size: 0.98em;
    color: #999;
    margin-bottom: 7px;
    transition: all 0.3s ease;
}

.dok-card-meta i {
    color: #2b7a42;
    margin-right: 4px;
}

.dok-card:hover .dok-card-meta {
    color: #2b7a42;
}

.dok-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 1rem;
}

.dok-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dok-card-actions .btn {
    font-weight: 700;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dok-card-actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    transition: left 0.4s ease;
    transform: translateY(-50%);
    z-index: 0;
}

.dok-card-actions .btn > * {
    position: relative;
    z-index: 1;
}

.dok-card-actions .btn:hover::before {
    left: 100%;
}

.dok-card-actions .btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.dok-card-actions .btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.25);
}

.dok-card-actions .btn-outline-success {
    border: 1.5px solid #2b7a42;
    color: #2b7a42;
}

.dok-card-actions .btn-outline-success:hover {
    background-color: #2b7a42;
    border-color: #2b7a42;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(43, 122, 66, 0.3);
}

.dok-card-comments {
    display: flex;
    align-items: center;
    color: #ccc;
    font-size: 0.92em;
    transition: all 0.3s ease;
}

.dok-card-comments i {
    margin-right: 0.4rem;
    color: #999;
}

.dok-card:hover .dok-card-comments {
    color: #2b7a42;
}

.dok-card:hover .dok-card-comments i {
    color: #2b7a42;
}

/* ============ PAGINATION ============ */
.pagination-wrapper {
    animation: fadeInUp 0.8s ease-out;
    margin-top: 3rem;
    padding: 2.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.pagination-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-item {
    display: inline-flex;
    align-items: center;
    animation: scaleIn 0.4s ease-out;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0.5rem 0.75rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    color: #2b7a42;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Ripple effect on pagination buttons */
.pagination-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(43, 122, 66, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
    z-index: 0;
}

.pagination-link {
    z-index: 1;
}

.pagination-link:hover::before {
    width: 200px;
    height: 200px;
}

.pagination-link:hover {
    background: linear-gradient(135deg, #f8fdf6 0%, #eef6ea 100%);
    border-color: #2b7a42;
    color: #2b7a42;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(43, 122, 66, 0.25);
}

/* Active pagination link */
.pagination-item.active .pagination-link {
    background: linear-gradient(135deg, #2b7a42 0%, #1a4d29 100%);
    border-color: #2b7a42;
    color: #fff;
    box-shadow: 0 12px 35px rgba(43, 122, 66, 0.4);
    animation: scaleIn 0.4s ease-out;
    position: relative;
    border: 2px solid transparent;
}

.pagination-item.active .pagination-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
    animation: shine 3s infinite;
}

/* Disabled pagination links */
.pagination-item.disabled .pagination-link {
    color: #ccc;
    border-color: #e0e0e0;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.pagination-item.disabled .pagination-link:hover {
    background-color: #f5f5f5;
    transform: none;
    box-shadow: none;
    border-color: #e0e0e0;
}

.pagination-prev,
.pagination-next {
    min-width: 44px;
}

.pagination-info {
    font-size: 0.95rem;
    color: #666;
    white-space: nowrap;
    animation: slideInRight 0.6s ease-out;
}

.pagination-info .info-text {
    background: linear-gradient(135deg, #f8fdf6 0%, #eef6ea 100%);
    padding: 0.8rem 1.3rem;
    border-radius: 10px;
    border: 1.5px solid rgba(43, 122, 66, 0.25);
    display: inline-block;
    box-shadow: 0 6px 20px rgba(43, 122, 66, 0.12);
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination-info .info-text:hover {
    border-color: #2b7a42;
    box-shadow: 0 10px 30px rgba(43, 122, 66, 0.2);
    transform: translateY(-2px);
}

.pagination-info strong {
    color: #2b7a42;
    font-weight: 800;
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
}

.empty-state i {
    font-size: 5rem;
    background: linear-gradient(135deg, #2b7a42 0%, #1a4d29 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: block;
    animation: float 4s ease-in-out infinite;
}

.empty-state h4 {
    color: #2b7a42;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.empty-state p {
    color: #999;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.empty-state .btn {
    margin-top: 1rem;
    transition: all 0.3s ease;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.empty-state .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(43, 122, 66, 0.2);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        height: 0;
    }
    to {
        height: 100%;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ============ ADDITIONAL MODERN ANIMATIONS ============ */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }
    70% {
        transform: scale(1.05) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(43, 122, 66, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(43, 122, 66, 0.6);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

@keyframes flip {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

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

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(0.95);
    }
    20%, 40%, 60%, 80% {
        transform: scale(1.05);
    }
    50%, 70% {
        transform: scale(0.98);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes jello {
    0%, 11.1%, 100% {
        transform: translateZ(0) skewX(0deg) skewY(0deg);
    }
    22.2% {
        transform: translateZ(0) skewX(-12.5deg) skewY(-12.5deg);
    }
    33.3% {
        transform: translateZ(0) skewX(6.25deg) skewY(6.25deg);
    }
    44.4% {
        transform: translateZ(0) skewX(-3.125deg) skewY(-3.125deg);
    }
    55.5% {
        transform: translateZ(0) skewX(1.5625deg) skewY(1.5625deg);
    }
    66.6% {
        transform: translateZ(0) skewX(-0.78125deg) skewY(-0.78125deg);
    }
    77.7% {
        transform: translateZ(0) skewX(0.390625deg) skewY(0.390625deg);
    }
    88.8% {
        transform: translateZ(0) skewX(-0.1953125deg) skewY(-0.1953125deg);
    }
}

/* ============ UTILITY ANIMATION CLASSES ============ */
.animated {
    animation-fill-mode: both;
}

.pop-in {
    animation: popIn 0.6s ease-out;
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

.bounce {
    animation: bounce 1s ease-in-out infinite;
}

.wiggle {
    animation: wiggle 0.5s ease-in-out;
}

.heartbeat {
    animation: heartBeat 1.3s ease-in-out infinite;
}

.jello {
    animation: jello 0.9s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Add animation on card hover */
.dok-card:hover .dok-card-title a {
    animation: none;
}

.dok-card:hover .dok-date-badge {
    animation: none;
}

/* ============ TOUCH & MOBILE SPECIFIC ============ */
@media (hover: none) and (pointer: coarse) {
    .dok-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .dok-card:active {
        transform: scale(0.98);
    }

    .pagination-link:active {
        transform: scale(0.95);
    }

    .btn:active {
        transform: scale(0.95);
    }
}

/* ============ RESPONSIVE DESIGN - TABLET (768px) ============ */
@media (max-width: 768px) {
    #subheader {
        min-height: 240px;
    }

    #subheader h3 {
        font-size: 1.8rem;
        letter-spacing: 0.3px;
    }

    .search-filter-section {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .search-filter-section .form-control,
    .search-filter-section .btn-success {
        width: 100%;
    }

    .row.g-3 {
        gap: 0.75rem !important;
    }

    .dok-card {
        flex-direction: column;
        min-height: auto;
        animation: slideInUp 0.5s ease-out;
    }

    .dok-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(43, 122, 66, 0.2);
    }

    .dok-card-left {
        width: 100%;
        border-radius: 14px 14px 0 0 !important;
        min-height: 160px;
    }

    .dok-card-left::before {
        border-radius: 14px 14px 0 0;
    }

    .dok-card-right {
        padding: 18px 14px 14px 14px;
    }

    .dok-card-title {
        font-size: 1rem;
        line-height: 1.3em;
    }

    .dok-card-description {
        font-size: 0.92em;
        margin-bottom: 6px;
    }

    .dok-card-meta {
        font-size: 0.92em;
    }

    .dok-date-badge {
        width: 58px;
    }

    .dok-date-badge-day {
        font-size: 1.25em;
        padding-top: 6px;
    }

    .dok-date-badge-month {
        font-size: 0.9em;
    }

    .dok-date-badge-year {
        font-size: 0.78em;
        padding-bottom: 6px;
    }

    .dok-card-footer {
        flex-direction: column;
        gap: 0.6rem;
        margin-bottom: 12px;
    }

    .dok-card-actions {
        width: 100%;
        gap: 0.4rem;
    }

    .dok-card-actions .btn {
        flex: 1;
        padding: 0.45rem 0.7rem;
        font-size: 0.8rem;
    }

    .dok-card-comments {
        font-size: 0.88em;
    }

    .pagination-wrapper {
        margin-top: 2rem;
        padding: 1.5rem 0;
        gap: 1.2rem;
    }

    .pagination-list {
        gap: 0.3rem;
        flex-wrap: wrap;
    }

    .pagination-link {
        min-width: 40px;
        height: 40px;
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        border-width: 1.5px;
    }

    .pagination-info .info-text {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .search-results-info {
        font-size: 0.9rem;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
}

/* ============ RESPONSIVE DESIGN - SMALL DEVICES (576px) ============ */
@media (max-width: 576px) {
    #subheader {
        min-height: 220px;
        padding: 1.5rem 0;
    }

    #subheader h3 {
        font-size: 1.5rem;
        letter-spacing: 0px;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

    .crumb {
        font-size: 0.85rem !important;
        margin-bottom: 1rem;
    }

    .search-filter-section {
        padding: 1.2rem 0.8rem;
        margin-bottom: 1.2rem;
        border-radius: 12px;
    }

    .search-filter-section .form-control {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
        margin-bottom: 0.8rem;
    }

    .search-filter-section .btn-success {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        border-radius: 8px;
        width: 100%;
    }

    .row.g-4 {
        gap: 0.8rem !important;
    }

    .col-md-6.col-12 {
        width: 100%;
    }

    .dok-card {
        flex-direction: column;
        min-height: auto;
        border-radius: 12px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
    }

    .dok-card::before {
        height: 3px;
    }

    .dok-card-left {
        min-height: 140px;
        border-radius: 12px 12px 0 0 !important;
    }

    .dok-card-left::before {
        border-radius: 12px 12px 0 0;
    }

    .dok-card-left-content {
        padding: 15px 12px 0 15px;
    }

    .dok-card-right {
        padding: 15px 12px 12px 12px;
    }

    .dok-card-title {
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1.25em;
        margin-bottom: 0.4rem;
    }

    .dok-card-description {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .dok-card-meta {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .dok-date-badge {
        width: 55px;
        border-radius: 8px;
        margin-bottom: 8px;
    }

    .dok-date-badge-day {
        font-size: 1.2em;
        padding-top: 5px;
    }

    .dok-date-badge-month {
        font-size: 0.88em;
    }

    .dok-date-badge-year {
        font-size: 0.75em;
        padding-bottom: 5px;
    }

    .dok-card-title-left {
        font-size: 1rem;
        padding-top: 6px;
    }

    .dok-card-footer {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 10px;
    }

    .dok-card-actions {
        width: 100%;
        gap: 0.3rem;
    }

    .dok-card-actions .btn {
        flex: 1;
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 6px;
        font-weight: 600;
    }

    .dok-card-actions .btn i {
        margin-right: 0.3rem;
    }

    .dok-card-comments {
        font-size: 0.85em;
    }

    .pagination-wrapper {
        margin-top: 1.5rem;
        padding: 1rem 0;
        gap: 0.8rem;
    }

    .pagination-list {
        gap: 0.2rem;
    }

    .pagination-link {
        min-width: 36px;
        height: 36px;
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
        border-radius: 8px;
        border-width: 1.5px;
    }

    .pagination-prev,
    .pagination-next {
        min-width: 36px;
    }

    .pagination-info {
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }

    .pagination-info .info-text {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .search-results-info {
        font-size: 0.85rem;
        padding: 0.9rem;
        margin-bottom: 1rem;
        border-left: 4px solid #2b7a42;
        border-radius: 6px;
    }

    .search-results-info i {
        margin-right: 0.4rem;
    }

    h2 {
        font-size: 1.3rem !important;
        margin-bottom: 1.2rem !important;
        font-weight: 700 !important;
    }

    .empty-state {
        padding: 2.5rem 1rem;
    }

    .empty-state i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .empty-state h4 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .empty-state p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* ============ RESPONSIVE DESIGN - EXTRA SMALL (375px) ============ */
@media (max-width: 375px) {
    #subheader h3 {
        font-size: 1.3rem;
    }

    .dok-card-title {
        font-size: 0.9rem;
    }

    .pagination-link {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
        padding: 0.3rem 0.4rem;
    }

    h2 {
        font-size: 1.1rem !important;
    }
}
