/* ========================================
   CUSTOM PAGINATION - ALL DEVICES
======================================== */

.is-search-icon{
    display: none;
}
.is-search-submit{
    display: none;
}

.custom_pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 60px 0 40px;
    padding: 20px;
    flex-wrap: wrap;
}

/* Pagination Buttons (Prev/Next) */
.pagination_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #2d2d5f;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(45, 45, 95, 0.2);
    cursor: pointer;
}



/* .pagination_btn.disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
} */

.pagination_btn svg {
    width: 18px;
    height: 18px;
}

/* Page Numbers Container */
.pagination_numbers {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Individual Page Numbers */
.pagination_number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: #fff;
    color: #2d2d5f;
    border: 2px solid #2d2d5f;
    border-radius: 50%;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pagination_number:hover {
    background: #2d2d5f;
    color: #fff;
    transform: scale(1.1);
}

.pagination_number.active {
    background: #2a2c5b;
    color: #fff;
    border-color: #2a2c5b;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
    cursor: default;
    font-weight: 700;
}

/* Dots */
.pagination_dots {
    color: #2d2d5f;
    font-weight: 700;
    font-size: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
}

/* ========================================
   RESPONSIVE - TABLET (768px and below)
======================================== */

@media(max-width: 768px) {
    .custom_pagination {
        gap: 10px;
        padding: 15px 10px;
        margin: 40px 0 30px;
    }
    
    .pagination_btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .pagination_number {
        min-width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    /* Hide desktop-only dots on mobile */
    .desktop_only {
        display: none;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (480px and below)
======================================== */

@media(max-width: 480px) {
    .custom_pagination {
        gap: 10px;
        padding: 10px 5px;
        margin: 30px 0 20px;
    }
    
    /* Make buttons more compact on mobile */
    .pagination_btn {
        padding: 10px 14px;
        font-size: 13px;
        gap: 6px;
    }
    
    .pagination_btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* Smaller page numbers */
    .pagination_number {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }
    
    .pagination_number.active {
        transform: scale(1.1);
    }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (360px)
======================================== */

@media(max-width: 360px) {
    .custom_pagination {
        gap: 10px;
    }
    
    /* Extra compact for very small screens */
    .pagination_btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .pagination_btn .btn_text {
        display: inline; /* Always show text */
    }
    
    .pagination_number {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
    }
}

/* ========================================
   BLOG HEADER RESPONSIVE
======================================== */

.blog_listing_head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    gap: 30px;
}


.right_search .filter_form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.right_search .select select,
.right_search .search input {
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    min-width: 220px;
}

.right_search .select select:focus,
.right_search .search input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

@media(max-width: 1024px) {
    .blog_listing_head .left_heading .title_bottom {
        font-size: 48px;
    }
    
    .right_search .select select,
    .right_search .search input {
        min-width: 200px;
    }
}

@media(max-width: 768px) {
    .blog_listing_head {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 30px;
        gap: 25px;
    }
    
    .blog_listing_head .left_heading .title_bottom {
        font-size: 36px;
    }
    
    .blog_listing_head .left_heading .para_content p {
        font-size: 16px;
    }
    
    .right_search .filter_form {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    
    .right_search .select,
    .right_search .search {
        width: 100%;
    }
    
    .right_search .select select,
    .right_search .search input {
        width: 100%;
        min-width: 100%;
    }
}

@media(max-width: 480px) {
    .blog_listing_head .left_heading .title_up {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .blog_listing_head .left_heading .title_bottom {
        font-size: 28px;
    }
    
    .blog_listing_head .left_heading .para_content p {
        font-size: 14px;
    }
    
    .right_search .select select,
    .right_search .search input {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* ========================================
   NO POSTS FOUND
======================================== */

.no-posts-found {
    text-align: center;
    font-size: 20px;
    color: #999;
    padding: 60px 20px;
    width: 100%;
    background: #f9f9f9;
    border-radius: 12px;
    margin: 20px 0;
}

@media(max-width: 768px) {
    .no-posts-found {
        font-size: 18px;
        padding: 40px 15px;
    }
}

/* ========================================
   BLOG GRID
======================================== */

.blog_listing_row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

@media(max-width: 768px) {
    .blog_listing_row {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media(max-width: 480px) {
    .blog_listing_row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ========================================
   ANIMATIONS
======================================== */

.blog_listing_col {
    animation: fadeInUp 0.5s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader_icon {
    text-align: center;
    padding: 40px;
}

.loader_icon img {
    max-width: 80px;
    height: auto;
}