.pagination {
    margin: 10px;
}

@media (min-width: 768px) {
    .pagination {
        margin: 20px 0;
    }
}

.pagination a {
    border: 1px solid #1f2c73;
    display: block;
    float: left;
    padding: 10px 15px;
    margin: 0 5px 5px;
    color: #302e2f;
}

.pagination a:hover,
.pagination a:focus {
    text-decoration: none;
    background: #1f2c73;
    color: #fff;
}

.pagination a:active,
.pagination a.active {
    background: #1f2c73;
    color: #fff;
}

.pagination .endless_page_current {
    border: 1px solid #1f2c73;
    display: block;
    float: left;
    padding: 10px 15px;
    margin: 0 5px 5px;
    background: #1f2c73;
    color: #fff;
}

.pagination .endless_separator {
    display: block;
    float: left;
    padding: 10px 15px;
    margin: 0 5px 5px;
    color: #302e2f;
}

/* Blog post styles */
.blog-post-content {
    line-height: 1.6;
    font-size: 1.1rem;
}

.blog-post-content table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

.blog-post-content table th,
.blog-post-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.blog-post-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.blog-post-content p {
    margin-bottom: 1rem;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.blog-post-content blockquote {
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid #1f2c73;
    background-color: #f8f9fa;
}

.blog-post-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.blog-post-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

/* Card Components - Hackathon Detail Page */
.hackathon-detail .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    animation: fadeInUp 0.6s ease-out;
}

.hackathon-detail .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.hackathon-detail .card:nth-child(2) {
    animation-delay: 0.1s;
}

.hackathon-detail .card:nth-child(3) {
    animation-delay: 0.2s;
}

.hackathon-detail .card:nth-child(4) {
    animation-delay: 0.3s;
}

/* UI Elements - Hackathon Detail Page */
.hackathon-detail .badge {
    font-size: 0.875rem;
    font-weight: 500;
}

.hackathon-detail .btn-light:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    transform: translateY(-1px);
}

.lh-lg {
    line-height: 1.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Tablet and small desktop */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .bg-gradient-primary {
        padding: 2rem 0 !important;
    }

    .badge {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .card-body {
        padding: 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

/* Mobile devices */
@media (max-width: 576px) {
    .display-4 {
        font-size: 1.75rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}
