.stech-filters-container {
    --stech-text: #002009;
    --stech-accent: #008C35;
    --stech-bg: #EFFFF1;
    --stech-border: #002009;
    font-family: inherit;
    color: var(--stech-text);
    margin-bottom: 30px;
    position: relative;
}

.stech-notice {
    background: #ffeded;
    color: #d30000;
    padding: 15px;
    border-left: 4px solid #d30000;
    font-weight: bold;
}

.stech-filter-btn-wrap {
    margin-bottom: -2px; /* Pull over panel border */
    position: relative;
    z-index: 52;
}

/* Button styling with proper clipped border using pseudo-elements */
.stech-toggle-btn,
.stech-toggle-btn:hover,
.stech-toggle-btn:focus,
.stech-toggle-btn:focus-visible,
.stech-toggle-btn:active,
.stech-toggle-btn:visited {
    position: relative;
    background: transparent !important;
    border: none !important;
    padding: 14px 28px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    outline: none !important;
    box-shadow: none !important;
    color: var(--stech-text);
}

/* The outer pseudo-element creates the border */
.stech-toggle-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--stech-border);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    z-index: -2;
}

/* The inner span creates the background */
.stech-btn-bg {
    position: absolute;
    inset: 2px;
    background: var(--stech-bg);
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
    z-index: -1;
    transition: background 0.3s ease;
}

.stech-btn-text {
    position: relative;
    z-index: 1;
    color: var(--stech-text);
    transition: color 0.3s ease;
}

.stech-toggle-btn:hover .stech-btn-bg, 
.stech-filters-container.is-open .stech-toggle-btn .stech-btn-bg {
    background: var(--stech-text);
}

.stech-toggle-btn:hover .stech-btn-text, 
.stech-filters-container.is-open .stech-toggle-btn .stech-btn-text {
    color: var(--stech-bg);
}

.stech-btn-full {
    width: 100%;
}

.stech-panel {
    background: var(--stech-bg);
    border: 2px solid var(--stech-border);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
    padding: 0 30px;
    opacity: 0;
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    width: 100%;
    z-index: 50;
    box-sizing: border-box;
}

.stech-filters-container.is-open .stech-panel {
    max-height: 2000px; /* arbitrary large height for CSS transition */
    padding: 30px;
    opacity: 1;
}

.stech-panel-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.stech-col {
    min-width: 0; /* Prevent grid blowout */
}

.stech-col-title {
    font-size: 28px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--stech-border);
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 1024px) {
    .stech-col-title {
        font-size: 32px;
    }
}

.stech-col-title a {
    color: var(--stech-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.stech-col-title a:hover {
    color: var(--stech-accent);
}

/* Category List Styles */
.stech-cat-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stech-cat-list li {
    margin-bottom: 4px;
}

.stech-cat-list ul.children {
    padding-left: 24px;
    margin-top: 4px;
    position: relative;
}

/* Remove old line */
.stech-cat-list ul.children::before {
    display: none;
}

.stech-cat-list a {
    color: var(--stech-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    display: block;
    padding: 8px 12px;
    border-left: 3px solid transparent;
    background: transparent;
}

.stech-cat-list a:hover {
    color: var(--stech-accent);
    border-left-color: var(--stech-accent);
    background: rgba(0, 140, 53, 0.05);
}

.stech-cat-list li.current-cat > a,
.stech-cat-list li.current-cat-parent > a {
    color: var(--stech-accent);
    border-left-color: var(--stech-accent);
    background: rgba(0, 140, 53, 0.05);
}

.stech-cat-list li.cat-item-has-children > a {
    font-weight: 800;
}

@media (max-width: 767px) {
    .stech-panel-inner {
        grid-template-columns: 1fr;
    }
}