@media (min-width: 768px){
	.chapterRead {
		width: 100%;
	}
	.chapterAuthor {
		width: 40%;
		margin-right: 10%;
		float: left;
		display: none;
	}
	.chapterRight {
		width: 50%;
		margin-left: 0;
		float: right;
		display: none;
	}
}
@media (min-width: 992px){
	.chapterRead {
		width: 510px;
	}
	.chapterAuthor {
		width: 160px;
		margin-right: 10px;
		display: block;
	}
	.chapterRight {
		width: 250px;
		margin-left: 10px;
		display: block;
	}
}
@media (min-width: 1200px){
	.chapterRead {
		width: 670px;
	}
	.chapterAuthor {
		width: 180px;
		margin-right: 25px;
		display: block;
	}
	.chapterRight {
		width: 300px;
		margin-left: 25px;
		display: block;
	}
}




/* ===== PAGINATION STYLES ===== */

.pagination-wrapper {
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Pagination Info */
.pagination-info {
    margin-bottom: 20px;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    text-align: center;
}

/* Pagination List */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.page-item {
    display: inline-block;
}

/* Page Link Styles */
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 12px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

/* Hover Effect */
.page-link:hover {
    background-color: #f0f0f0;
    border-color: #adb5bd;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Active Page */
.page-item.active .page-link {
    background-color: #007f61;
    color: white;
    border-color: #007f61;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
    pointer-events: none;
}

/* Disabled State */
.page-item.disabled .page-link {
    color: #adb5bd;
    background-color: #fff;
    border-color: #dee2e6;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Previous & Next Buttons */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    font-weight: 600;
}

/* Ellipsis (...) */
.page-item.disabled .page-link {
    border: none;
    background: transparent;
}

/* ===== PAGE JUMP FORM ===== */

.page-jump {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.page-jump label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
}

.page-jump input[type="number"] {
    width: 70px;
    height: 38px;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-jump input[type="number"]:focus {
    outline: none;
    border-color: #007f61;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* Remove spinner arrows in number input */
.page-jump input[type="number"]::-webkit-inner-spin-button,
.page-jump input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.page-jump input[type="number"] {
    -moz-appearance: textfield;
}

.page-jump button,
.page-jump .btn-primary {
    padding: 8px 24px;
    height: 38px;
    background-color: #007f61;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.page-jump button:hover,
.page-jump .btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.page-jump button:active,
.page-jump .btn-primary:active {
    transform: translateY(0);
}

/* ===== NO POSTS MESSAGE ===== */

.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-posts p {
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .pagination {
        gap: 6px;
    }
    
    .page-link {
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
        font-size: 14px;
    }
    
    .pagination-wrapper {
        gap: 15px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    
    .page-jump {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 15px;
    }
    
    .page-jump input[type="number"] {
        width: 60px;
        height: 36px;
    }
    
    .page-jump button,
    .page-jump .btn-primary {
        padding: 7px 20px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .pagination {
        gap: 4px;
    }
    
    /* Hide some page numbers on mobile */
    .pagination .page-item:not(.active):not(:first-child):not(:last-child):not(.disabled) {
        display: none;
    }
    
    .pagination .page-item:nth-child(2),
    .pagination .page-item:nth-last-child(2),
    .pagination .page-item.active,
    .pagination .page-item.disabled {
        display: inline-block;
    }
    
    .page-jump {
        width: 100%;
        padding: 10px;
    }
    
    .page-jump input[type="number"] {
        width: 50px;
        height: 34px;
        font-size: 14px;
    }
    
    .page-jump button,
    .page-jump .btn-primary {
        padding: 6px 16px;
        height: 34px;
        font-size: 13px;
    }
    
    .pagination-info {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 400px) {
    .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .page-jump label {
        font-size: 13px;
    }
}

/* ===== ACCESSIBILITY ===== */

.page-link:focus {
    outline: 2px solid #007f61;
    outline-offset: 2px;
}

.page-link:focus:not(:focus-visible) {
    outline: none;
}

/* ===== PRINT STYLES ===== */

@media print {
    .pagination-wrapper,
    .page-jump {
        display: none;
    }
}

/* ===== ANIMATIONS ===== */

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

.pagination-wrapper {
    animation: fadeIn 0.4s ease-out;
}