/**
 * Bootstrap Theme - Custom Styles
 * Add your custom styles here
 */

/* Additional styles for rich text content */
.rich-text h2 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.rich-text h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.rich-text img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 0.25rem;
}

.rich-text table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.rich-text table td,
.rich-text table th {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
}

/* Code block styles */
.code-block {
    margin: 1.5rem 0;
    border-radius: 0.25rem;
    overflow: hidden;
}

.code-block pre {
    margin-bottom: 0;
    padding: 1rem;
}

/* Custom navbar adjustments */
.navbar-brand {
    font-weight: 600;
}

/* Footer improvements */
.footer {
    border-top: 1px solid rgba(0,0,0,.1);
}

/* Homepage hero section enhancement */
.p-5.mb-4.bg-light.rounded-3 {
    background-size: cover;
    background-position: center;
}

/* Pagination styles */
.pagination {
    gap: 0.25rem;
}

.pagination .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.pagination .page-item:not(:first-child) .page-link {
    margin-left: 0;
}

.pagination .page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination .page-item.active .page-link {
    font-weight: 600;
}

/* Make arrows smaller and more elegant */
.pagination .page-link span[aria-hidden="true"] {
    font-size: 1.25rem;
    line-height: 1;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .p-5.mb-4.bg-light.rounded-3 {
        padding: 2rem 1rem !important;
    }
    
    /* Smaller pagination on mobile */
    .pagination .page-link {
        padding: 0.375rem 0.625rem;
        font-size: 0.875rem;
    }
    
    .pagination .page-link span[aria-hidden="true"] {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    /* Extra small devices - even smaller pagination */
    .pagination .page-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .pagination {
        gap: 0.125rem;
    }
}
