div.ays-quizzes-with-images-container.ays-quizzes-with-images-grid-style{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 8px;
}
div.ays-quizzes-with-images-container.ays-quizzes-with-images-list-style{
    display: flex;
    align-items: center;
    flex-direction:column;
}
.ays-quizzes-with-images-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 300px;
    margin-bottom: 10px;
}

.ays-quizzes-with-images-item-link:hover {
    text-decoration: none;
    color: inherit;
}

div.ays-quizzes-with-images-container  .ays-quizzes-with-images-item {
    width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 0px 15px 1px rgba(201,201,201,0.4);
    border: none;
    margin-bottom: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.ays-quizzes-with-images-item-link:hover .ays-quizzes-with-images-item {
    transform: translateY(-3px);
    box-shadow: 0px 4px 20px 2px rgba(201,201,201,0.6);
}

div.ays-quizzes-with-images-container  .ays-quizzes-with-images-item .ays-quizzes-with-images-image{
    width: 300px;
    height: 200px;
    display: flex;
    justify-content: center;
    
}

div.ays-quizzes-with-images-container  .ays-quizzes-with-images-item .ays-quizzes-with-images-image img{
    max-width: 100%;
    width:100%;
    object-fit: cover;
    object-position: bottom;
    box-sizing: border-box;
}
div.ays-quizzes-with-images-container  .ays-quizzes-with-images-title{
    padding:0 30px;
    text-align: center;
    min-height: 65px;
}

div.ays-quizzes-with-images-container  .ays-quizzes-with-images-item img.ays-adq-default-logo{
    object-fit: unset !important;
    width: 50%;
}

/* Wrapper */
.ays-quizzes-with-images-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Search Bar */
.ays-quizzes-search-container {
    position: relative;
    margin-bottom: 30px;
    max-width: 600px;
    width: 100%;
    justify-self: anchor-center;
}

.ays-quizzes-search-form {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.ays-quizzes-search-input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.ays-quizzes-search-input:focus {
    border-color: #0073aa;
}

.ays-quizzes-search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s ease;
}

.ays-quizzes-search-submit:hover {
    color: #0073aa;
}

.ays-quizzes-search-icon {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

/* Section Title */
.ays-quizzes-section-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #333;
}

/* Categories Container */
.ays-quizzes-categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e8e8e8;
}

.ays-quiz-category-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ays-quiz-category-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background-color: #f0f9ff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.15);
}

.ays-quiz-category-btn.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.ays-quiz-category-btn.active:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.35);
}

/* Category Label on Quiz Cards */
.ays-quizzes-category-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 115, 170, 0.9);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
}

.ays-quizzes-with-images-item {
    position: relative;
}

/* Pagination */
.ays-quizzes-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding: 20px 0;
}

.ays-pagination-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background-color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ays-pagination-btn:hover:not(.disabled) {
    border-color: #0073aa;
    color: #0073aa;
    background-color: #f0f8ff;
    text-decoration: none;
}

.ays-pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.ays-pagination-info {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    padding: 0 15px;
}

.ays-pagination-current {
    color: #0073aa;
    font-weight: 600;
}

/* No Results Message */
.ays-no-results {
    width: 100%;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
}

/* Quiz Display Container */
.ays-quiz-display-container {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ays-quizzes-categories-container {
        gap: 8px;
    }
    
    .ays-quiz-category-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .ays-quizzes-section-title {
        font-size: 24px;
    }
    
    .ays-quizzes-search-container {
        margin-bottom: 20px;
    }
    
    .ays-pagination-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}