/**
 * Accessibility Fixes for trendingnewsug.com
 * Addresses WCAG 2.1 Level AA compliance issues
 */

/* Touch Target Sizing - Minimum 48x48px for touch targets */
.category-style-1 {
    display: inline-block;
    min-height: 44px;
    padding: 12px 16px !important;
    line-height: 1.2;
}

.entry-title a {
    display: inline-block;
    min-height: 44px;
    padding: 8px 0;
    line-height: 1.4;
}

/* Ensure sufficient spacing between touch targets */
.post-list-content .entry-cat {
    margin-bottom: 12px;
}

/* Improve contrast for footer links and badge counts */
.footer a {
    opacity: 0.95 !important;
}

.footer-area-content .badge-count {
    opacity: 0.9 !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Ensure category links have adequate spacing */
.entry-cat a {
    margin-right: 10px;
}

/* Improve touch target for pagination */
.pagination-list .list-inline li a,
.pagination-list .list-inline li span {
    display: inline-block;
    min-width: 44px;
    min-height: 44px;
    padding: 12px 16px;
    text-align: center;
    line-height: 1.2;
}

/* Ensure owl carousel navigation buttons meet size requirements */
.owl-carousel .owl-nav button {
    min-width: 48px !important;
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Skip to main content link for keyboard users */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: #000;
    color: #fff;
    text-decoration: none;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
}

/* Improve search button accessibility */
.btn-submit,
.search-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Improve close button sizing */
.close {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
