/**
 * COA Child Theme - Custom Styles
 * Top Bar, Page Header Banner, and Related Styles
 * WCAG 2.1 AA Compliant
 */

/* ============================================
   WCAG ACCESSIBILITY STYLES
   ============================================ */

/* Skip Links - Hidden until focused (WCAG 2.4.1) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000000;
    color: #ffffff;
    padding: 12px 24px;
    z-index: 100000;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: top 0.3s ease;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #c4AA33;
    outline-offset: 2px;
}

/* Screen Reader Only Text (WCAG 1.3.1) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Focus Styles for Interactive Elements (WCAG 2.4.7) */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #c4AA33;
    outline-offset: 2px;
}

/* Remove default outline for mouse users, keep for keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #c4AA33;
    outline-offset: 2px;
}

/* Main Content Focus Target */
#main-content:focus {
    outline: none;
}

.ova-wrapp:focus {
    outline: none;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    a:focus,
    button:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 3px solid currentColor;
        outline-offset: 3px;
    }
}

/* Reduced Motion Support (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .skip-link {
        transition: none;
    }
}

/* ============================================
   TOP BAR STYLES
   ============================================ */

.coa-top-bar {
    background-color: #25443C;
    color: #ffffff;
    padding: 10px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.coa-top-bar-left {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.coa-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.coa-contact-item i {
    color: #c4AA33;
    font-size: 14px;
}

.coa-contact-item a {
    color: #ffffff !important;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s ease;
}

.coa-contact-item a:hover,
.coa-contact-item a:focus {
    color: #c4AA33 !important;
    text-decoration-color: #c4AA33;
}

.coa-top-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.coa-top-menu {
    display: flex;
    align-items: center;
}

.coa-top-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
}

.coa-top-menu-list li {
    margin: 0;
    padding: 0;
}

.coa-top-menu-list li a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    font-size: 13px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border-radius: 4px;
}

.coa-top-menu-list li a:hover,
.coa-top-menu-list li a:focus {
    color: #c4AA33;
    text-decoration-color: #c4AA33;
    background-color: rgba(255, 255, 255, 0.1);
}

.coa-top-menu-list li a:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.coa-social-icons {
    display: flex;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.coa-social-icons a {
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
}

.coa-social-icons a:hover,
.coa-social-icons a:focus {
    background: #c4AA33;
    color: #000000;
    transform: scale(1.1);
}

.coa-social-icons a:focus {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* ============================================
   MAIN HEADER STYLES
   ============================================ */

.coa-top-bar,
.coa-main-header {
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.coa-main-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.coa-main-header .container {
    max-width: 1200px;
    margin: 0 auto;
}

.coa-main-header .navbar {
    padding: 15px 0;
    flex-wrap: nowrap;
    min-height: 0;
}

.coa-main-header .navbar-brand {
    flex-shrink: 0;
    max-width: 300px;
    overflow: hidden;
}

.coa-main-header .navbar-brand img {
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.coa-main-header .navbar-brand .blogname {
    font-size: 24px;
    font-weight: 700;
    color: #25443C;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coa-main-header .navbar-collapse {
    flex-shrink: 1;
    min-width: 0;
}

.coa-main-header .navbar-nav {
    flex-wrap: wrap;
}

.coa-main-header .navbar-brand:focus {
    outline: 3px solid #c4AA33;
    outline-offset: 4px;
    border-radius: 4px;
}

.coa-main-header .navbar-nav > li > a {
    color: #333333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    padding: 10px 15px;
    transition: color 0.3s ease;
    text-decoration: none;
    border-radius: 4px;
}

.coa-main-header .navbar-nav > li > a:hover,
.coa-main-header .navbar-nav > li.current-menu-item > a {
    color: #25443C;
    background-color: rgba(37, 68, 60, 0.1);
}

.coa-main-header .navbar-nav > li > a:focus {
    outline: 3px solid #c4AA33;
    outline-offset: 2px;
    color: #25443C;
}

.coa-main-header .navbar-toggler {
    border: 2px solid #25443C;
    padding: 10px 14px;
    border-radius: 4px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coa-main-header .navbar-toggler:focus {
    outline: 3px solid #c4AA33;
    outline-offset: 2px;
    box-shadow: none;
}

.coa-main-header .navbar-toggler i {
    color: #25443C;
    font-size: 18px;
}

/* ============================================
   PAGE HEADER BANNER STYLES
   ============================================ */

.coa-page-header {
    position: relative;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #25443C;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
}

.coa-page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(37, 68, 60, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.coa-page-header .container {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

.coa-page-header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.coa-page-title {
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 15px;
    text-transform: capitalize;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
}

.coa-page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin: 0 0 25px;
    font-weight: 400;
}

/* ============================================
   BREADCRUMBS STYLES
   ============================================ */

.coa-breadcrumbs {
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.coa-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.coa-breadcrumbs ol li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.coa-breadcrumbs ol li:not(:last-child)::after {
    content: "/";
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.6);
}

.coa-breadcrumbs a {
    color: #c4AA33;
    font-size: 14px;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.coa-breadcrumbs a:hover,
.coa-breadcrumbs a:focus {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

.coa-breadcrumbs a:focus {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    border-radius: 2px;
}

.coa-breadcrumbs .current {
    color: #ffffff;
    font-weight: 500;
}

/* Legacy breadcrumb styles for compatibility */
.coa-breadcrumbs > a,
.coa-breadcrumbs > span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-decoration: none;
}

.coa-breadcrumbs > a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.coa-breadcrumbs .separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.6);
}

.coa-breadcrumbs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.coa-breadcrumbs ul li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.coa-breadcrumbs ul li:not(:last-child)::after {
    content: "/";
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.coa-breadcrumbs ul li a {
    color: #c9a227;
    text-decoration: none;
    transition: color 0.3s ease;
}

.coa-breadcrumbs ul li a:hover {
    color: #ffffff;
}

.coa-breadcrumbs ul li a i {
    margin-right: 5px;
}

.coa-breadcrumbs ul li.active {
    color: #ffffff;
    font-weight: 500;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 991px) {
    .coa-top-bar .row {
        text-align: center;
    }
    
    .coa-top-bar-left {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .coa-top-bar-right {
        justify-content: center;
    }
    
    .coa-page-title {
        font-size: 32px;
    }
    
    .coa-page-header {
        min-height: 250px;
        padding: 40px 0;
    }
}

@media (max-width: 767px) {
    .coa-top-bar {
        padding: 8px 0;
    }
    
    .coa-top-bar-left {
        flex-direction: column;
        gap: 8px;
    }
    
    .coa-top-bar-right {
        flex-direction: column;
        gap: 10px;
    }
    
    .coa-top-menu-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .coa-social-icons {
        border-left: none;
        padding-left: 0;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        justify-content: center;
    }
    
    .coa-page-title {
        font-size: 26px;
    }
    
    .coa-page-subtitle {
        font-size: 16px;
    }
    
    .coa-page-header {
        min-height: 200px;
        padding: 30px 0;
    }
    
    .coa-breadcrumbs ul li,
    .coa-breadcrumbs ol li {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .coa-page-title {
        font-size: 22px;
    }
    
    .coa-top-menu-list {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   HIDE DEFAULT BREADCRUMBS ON NON-HOME PAGES
   ============================================ */

body:not(.home) .ovatheme_breadcrumbs {
    display: none;
}

/* ============================================
   ADDITIONAL ENHANCEMENTS
   ============================================ */

/* Gold accent color for judicial theme */
.accent-gold {
    color: #c9a227;
}

/* Navy blue primary color */
.primary-navy {
    color: #003366;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Fix for sticky header if needed */
.sticky-header .coa-top-bar {
    display: none;
}

.sticky-header .coa-main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ============================================
   TEAM SEARCH BOX STYLES
   ============================================ */

.coa-team-search-wrapper {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.coa-team-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.coa-search-input-group {
    display: flex;
    flex: 1;
    min-width: 280px;
}

.coa-team-search-input {
    flex: 1;
    padding: 12px 18px;
    font-size: 16px;
    border: 2px solid #767676;
    border-right: none;
    border-radius: 6px 0 0 6px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 44px;
}

.coa-team-search-input:focus {
    border-color: #25443C;
    box-shadow: 0 0 0 3px rgba(37, 68, 60, 0.25);
}

.coa-team-search-input::placeholder {
    color: #767676;
}

.coa-team-search-btn {
    padding: 12px 25px;
    background: #25443C;
    color: #ffffff;
    border: 2px solid #25443C;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.coa-team-search-btn:hover {
    background: #1a332c;
    border-color: #1a332c;
}

.coa-team-search-btn:focus {
    outline: 3px solid #c4AA33;
    outline-offset: 2px;
    background: #1a332c;
}

.coa-team-search-btn i {
    font-size: 14px;
}

.coa-clear-search {
    color: #dc3545;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.coa-clear-search:hover {
    color: #a71d2a;
}

.coa-search-results-text {
    margin-top: 15px;
    margin-bottom: 0;
    color: #666;
    font-style: italic;
}

.coa-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    width: 100%;
}

.coa-no-results p {
    font-size: 18px;
    margin: 0;
}

.coa-pagination {
    text-align: center;
    padding: 30px 0;
    width: 100%;
}

.coa-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 15px;
    margin: 0 3px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.coa-pagination .page-numbers:hover {
    background: #25443C;
    color: #ffffff;
}

.coa-pagination .page-numbers:focus {
    outline: 3px solid #c4AA33;
    outline-offset: 2px;
    background: #25443C;
    color: #ffffff;
}

.coa-pagination .page-numbers.current {
    background: #25443C;
    color: #ffffff;
    font-weight: 700;
}

.coa-pagination .page-numbers.dots {
    background: transparent;
    cursor: default;
}

.coa-pagination .page-numbers.dots:hover,
.coa-pagination .page-numbers.dots:focus {
    background: transparent;
    color: #333;
    outline: none;
}

/* Responsive Search Box */
@media (max-width: 576px) {
    .coa-team-search-wrapper {
        padding: 15px;
    }
    
    .coa-search-input-group {
        flex-direction: column;
        min-width: 100%;
    }
    
    .coa-team-search-input {
        border-right: 2px solid #767676;
        border-radius: 6px;
        margin-bottom: 10px;
    }
    
    .coa-team-search-input:focus {
        border-color: #25443C;
    }
    
    .coa-team-search-btn {
        border-radius: 6px;
        justify-content: center;
        width: 100%;
    }
}

/* ============================================
   WCAG ADDITIONAL ACCESSIBILITY STYLES
   ============================================ */

/* Ensure minimum touch targets (WCAG 2.5.5) */
.coa-top-menu-list li a,
.coa-contact-item a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
}

/* Link underline visibility (WCAG 1.4.1) */
.coa-main-header .navbar-nav > li > a:not(:hover):not(:focus) {
    text-decoration: none;
}

/* Ensure link text is distinguishable (WCAG 1.4.1) */
.post-body a,
.post-excerpt a,
.entry-content a {
    color: #25443C;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-body a:hover,
.post-excerpt a:hover,
.entry-content a:hover,
.post-body a:focus,
.post-excerpt a:focus,
.entry-content a:focus {
    color: #1a332c;
    text-decoration-thickness: 2px;
}

/* Team member cards accessibility */
.archive_team .items.elementor-items:focus-within {
    outline: 3px solid #c4AA33;
    outline-offset: 2px;
}

.archive_team .items.elementor-items .name:focus {
    outline: 3px solid #c4AA33;
    outline-offset: 2px;
}

/* Error/status messages accessibility */
.coa-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #333333;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
}

.coa-no-results p {
    font-size: 18px;
    margin: 0;
    color: #333333;
}

/* Form validation states */
.coa-team-search-input:invalid {
    border-color: #dc3545;
}

.coa-team-search-input:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

/* Clear search link accessibility */
.coa-clear-search {
    color: #b02a37;
    text-decoration: underline;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
    padding: 8px;
    min-height: 44px;
    border-radius: 4px;
}

.coa-clear-search:hover,
.coa-clear-search:focus {
    color: #842029;
    background-color: rgba(220, 53, 69, 0.1);
}

.coa-clear-search:focus {
    outline: 3px solid #c4AA33;
    outline-offset: 2px;
}

/* Live region for dynamic content */
[aria-live] {
    position: relative;
}

/* Visible current page indicator */
.coa-top-menu-list [aria-current="page"],
.navbar-nav [aria-current="page"] {
    font-weight: 700;
}

/* Text resize support note: Parent theme handles base font sizing */

/* Ensure sufficient spacing between interactive elements */
.coa-top-bar-left,
.coa-top-bar-right {
    gap: 16px;
}

/* Print styles for accessibility */
@media print {
    .skip-link,
    .coa-social-icons,
    .navbar-toggler,
    .coa-team-search-wrapper {
        display: none !important;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #333;
    }
    
    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: "";
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .skip-link:focus,
    a:focus,
    button:focus,
    input:focus {
        outline: 3px solid CanvasText;
    }
    
    .coa-page-header-overlay {
        background: Canvas;
        color: CanvasText;
    }
}

/* ============================================
   LAYOUT FIX - Ensure full width display
   ============================================ */

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.ova-wrapp {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Elementor sections full width */
.elementor-section,
.elementor-section-wrap,
.elementor-container,
.elementor-row,
.elementor-column-wrap,
.elementor-widget-wrap {
    max-width: 100% !important;
}

/* Ensure no negative margins causing overflow */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.elementor-section.elementor-section-stretched {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
}

/* Container consistency */
.container,
.container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
}

/* Row reset */
.row {
    margin-left: -15px;
    margin-right: -15px;
}

/* Prevent any element from causing horizontal overflow */
*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

/* ============================================
   LINK UNDERLINES ON HOVER (WCAG 1.4.1)
   ============================================ */

/* Global link hover underlines */
a:hover,
a:focus {
    text-decoration: underline !important;
    text-decoration-color: currentColor !important;
}

/* Top bar links */
.coa-top-bar a:hover,
.coa-top-bar a:focus,
.coa-contact-item a:hover,
.coa-contact-item a:focus,
.coa-top-menu-list li a:hover,
.coa-top-menu-list li a:focus {
    text-decoration: underline !important;
    text-decoration-color: #c4AA33 !important;
}

/* Navigation links */
.navbar-nav a:hover,
.navbar-nav a:focus,
.coa-main-header .navbar-nav > li > a:hover,
.coa-main-header .navbar-nav > li > a:focus {
    text-decoration: underline !important;
    text-decoration-color: currentColor !important;
}

/* Content links */
.entry-content a:hover,
.entry-content a:focus,
.post-body a:hover,
.post-body a:focus,
.post-excerpt a:hover,
.post-excerpt a:focus,
article a:hover,
article a:focus {
    text-decoration: underline !important;
    text-decoration-color: currentColor !important;
}

/* Breadcrumb links */
.coa-breadcrumbs a:hover,
.coa-breadcrumbs a:focus {
    text-decoration: underline !important;
    text-decoration-color: #ffffff !important;
}

/* Footer links */
footer a:hover,
footer a:focus,
.footer a:hover,
.footer a:focus {
    text-decoration: underline !important;
    text-decoration-color: currentColor !important;
}

/* Button-style links should NOT underline */
.btn:hover,
.btn:focus,
.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.coa-team-search-btn:hover,
.coa-team-search-btn:focus,
.coa-social-icons a:hover,
.coa-social-icons a:focus {
    text-decoration: none !important;
}

/* ============================================
   DOWNLOADS / IEC MATERIALS TABLE STYLES
   WCAG 2.1 AA Compliant
   ============================================ */

/* Download Manager Plugin Tables */
.wpdm-download-link,
.wpdm-download-link a {
    color: #1a5c3e !important;
}

/* General table styling for downloads */
.entry-content table,
.page-content table,
.wpdm-table,
table.dataTable,
.dlm-downloads table,
#dlm-download-table,
.wpdm_link_tbl,
.w3eden table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 2px solid #25443C !important;
}

.entry-content table caption,
.page-content table caption,
table.dataTable caption {
    caption-side: top !important;
    padding: 12px 20px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #1a1a1a !important;
    text-align: left !important;
    background: #f8f9fa !important;
    border-bottom: 2px solid #25443C !important;
}

.entry-content table thead,
.page-content table thead,
.wpdm-table thead,
table.dataTable thead,
.dlm-downloads table thead,
#dlm-download-table thead,
.wpdm_link_tbl thead,
.w3eden table thead {
    background: #25443C !important;
}

.entry-content table th,
.page-content table th,
.wpdm-table th,
table.dataTable th,
.dlm-downloads table th,
#dlm-download-table th,
.wpdm_link_tbl th,
.w3eden table th {
    background: #25443C !important;
    color: #ffffff !important;
    padding: 16px 20px !important;
    text-align: left !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    border: 1px solid #1a332c !important;
    /* WCAG: Ensure headers are visible */
    min-height: 44px !important;
}

/* Ensure empty headers still show */
.entry-content table th:empty::before,
.page-content table th:empty::before,
table.dataTable th:empty::before {
    content: "Column" !important;
    visibility: hidden !important;
}

.entry-content table td,
.page-content table td,
.wpdm-table td,
table.dataTable td,
.dlm-downloads table td,
#dlm-download-table td,
.wpdm_link_tbl td,
.w3eden table td {
    padding: 16px 20px !important;
    border: 1px solid #d1d5db !important;
    color: #1a1a1a !important;
    font-size: 15px !important;
    background: #ffffff !important;
    line-height: 1.5 !important;
    /* WCAG 2.5.5: Target size */
    min-height: 44px !important;
}

/* Zebra striping for better readability - WCAG 1.4.11 */
.entry-content table tbody tr:nth-child(even) td,
.page-content table tbody tr:nth-child(even) td,
table.dataTable tbody tr:nth-child(even) td {
    background: #f8f9fa !important;
}

.entry-content table tr:hover td,
.page-content table tr:hover td,
.wpdm-table tr:hover td,
table.dataTable tr:hover td,
.dlm-downloads table tr:hover td,
#dlm-download-table tr:hover td {
    background: #e8f4ea !important;
}

/* Focus styles for table rows - WCAG 2.4.7 */
.entry-content table tr:focus-within td,
.page-content table tr:focus-within td,
table.dataTable tr:focus-within td {
    background: #e8f4ea !important;
    outline: none !important;
}

.entry-content table tr:last-child td,
.page-content table tr:last-child td {
    border-bottom: none !important;
}

/* Download links - WCAG compliant contrast and focus */
.entry-content table a,
.page-content table a,
.wpdm-table a,
table.dataTable a,
.dlm-downloads a,
#dlm-download-table a,
a.download-link,
.wpdm-download-link a,
a[download],
.w3eden a {
    color: #1a5c3e !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
    font-weight: 600 !important;
    /* WCAG 2.5.5: Target size padding */
    padding: 4px 2px !important;
    display: inline-block !important;
}

.entry-content table a:hover,
.page-content table a:hover,
a.download-link:hover,
.wpdm-download-link a:hover,
.w3eden a:hover {
    color: #0d3d28 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
}

/* WCAG 2.4.7: Focus visible */
.entry-content table a:focus,
.page-content table a:focus,
a.download-link:focus,
.wpdm-download-link a:focus,
table.dataTable a:focus,
.w3eden a:focus {
    outline: 3px solid #c9a227 !important;
    outline-offset: 2px !important;
    background: #fffbeb !important;
    border-radius: 2px !important;
}

/* Download button styling - WCAG compliant */
.wpdm-download-link.btn,
.dlm-download-link,
a.download-on-click,
.wpdm-btn,
.w3eden .btn,
.btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    background: #25443C !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    border: 2px solid #25443C !important;
    /* WCAG 2.5.5: Minimum target size */
    min-height: 44px !important;
    min-width: 44px !important;
}

.wpdm-download-link.btn:hover,
.dlm-download-link:hover,
a.download-on-click:hover,
.wpdm-btn:hover,
.w3eden .btn:hover,
.btn-primary:hover {
    background: #1a332c !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-color: #1a332c !important;
}

.wpdm-download-link.btn:focus,
.dlm-download-link:focus,
a.download-on-click:focus,
.wpdm-btn:focus,
.w3eden .btn:focus,
.btn-primary:focus {
    outline: 3px solid #c9a227 !important;
    outline-offset: 2px !important;
    background: #1a332c !important;
    color: #ffffff !important;
}

/* DataTables specific - WCAG compliant */
.dataTables_wrapper {
    padding: 20px 0 !important;
}

.dataTables_wrapper label {
    color: #1a1a1a !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: #1a1a1a !important;
    padding: 12px 0 !important;
    font-size: 14px !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 2px solid #4a4a4a !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    margin-left: 8px !important;
    font-size: 14px !important;
    color: #1a1a1a !important;
    background: #ffffff !important;
    /* WCAG 2.5.5: Target size */
    min-height: 44px !important;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: #25443C !important;
    outline: 3px solid rgba(37, 68, 60, 0.4) !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 10px 16px !important;
    margin: 0 4px !important;
    border: 2px solid #4a4a4a !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
    /* WCAG 2.5.5: Target size */
    min-height: 44px !important;
    min-width: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #25443C !important;
    color: #ffffff !important;
    border-color: #25443C !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:focus {
    outline: 3px solid #c9a227 !important;
    outline-offset: 2px !important;
    background: #25443C !important;
    color: #ffffff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #25443C !important;
    color: #ffffff !important;
    border-color: #25443C !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #6b6b6b !important;
    background: #e9ecef !important;
    border-color: #d1d5db !important;
    cursor: not-allowed !important;
}

/* Screen reader text for download context */
.wpdm-download-link .screen-reader-text,
.download-link .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Responsive table - WCAG compliant */
@media (max-width: 768px) {
    .entry-content table,
    .page-content table,
    .wpdm-table,
    table.dataTable {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .entry-content table th,
    .entry-content table td,
    .page-content table th,
    .page-content table td {
        padding: 12px 14px !important;
        font-size: 14px !important;
    }
    
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length {
        float: none !important;
        text-align: left !important;
        margin-bottom: 12px !important;
    }
    
    .dataTables_wrapper .dataTables_filter input,
    .dataTables_wrapper .dataTables_length select {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 8px !important;
    }
}

/* ============================================
   UNIFORM TEAM MEMBER IMAGES
   ============================================ */

/* Team Archive Grid - Uniform image sizing */
.archive_team .content .items .content_info .ova-media {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
}

.archive_team .content .items .content_info .ova-media a {
    display: block;
    width: 100%;
    height: 100%;
}

.archive_team .content .items .content_info .ova-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Committee Display Cards - Uniform avatar sizing */
.coa-committee-avatar img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
}

.coa-committee-card.role-chairperson .coa-committee-avatar img {
    width: 140px !important;
    height: 140px !important;
}

/* Homepage Leadership section image */
.elementor-widget-image .elementor-widget-container img {
    object-fit: cover;
    object-position: top center;
}

/* Team Slider - Uniform avatars */
.ova-team-slider .content .items .ova-media .avata,
.ova-team-slider-2 .content .items .ova-media .avata {
    background-size: cover;
    background-position: top center;
}

/* Previous Holders Timeline - Uniform images */
.coa-holder-avatar img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
}

/* ============================================
   HEADER ZOOM / RESIZE FIX
   ============================================ */

/* Prevent header distortion on zoom */
.coa-top-bar .container,
.coa-main-header .container {
    overflow: hidden;
}

.coa-top-bar-left,
.coa-top-bar-right {
    min-width: 0;
    overflow: hidden;
}

.coa-contact-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media (max-width: 991px) {
    .coa-contact-item {
        white-space: normal;
    }
}

/* Prevent nav links from causing overflow on zoom */
.coa-main-header .navbar-nav > li > a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

@media (max-width: 1199px) {
    .coa-main-header .navbar-nav > li > a {
        font-size: 13px;
        padding: 10px 10px;
    }
}

@media (max-width: 991px) {
    .coa-main-header .navbar-nav > li > a {
        max-width: none;
        white-space: normal;
    }
    
    .coa-main-header .navbar-brand {
        max-width: 200px;
    }
    
    .coa-main-header .navbar-brand img {
        max-height: 55px;
    }
}
