/**
 * Groups System Styles
 * 
 * All styles for the groups system including:
 * - Group listings
 * - Single group pages
 * - Modals and forms
 * - Comment attachments
 * - Responsive design
 */

/* ==========================================================================
   Groups Template - General Styles
   ========================================================================== */

/* Page Background Enhancement */
.groups_template_sec {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 40px 0;
}

/* Section Headings */
.groups_template_sec h2,
.groups_template_sec h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    position: relative;
}

.groups_template_sec h2::after,
.groups_template_sec h3::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #5e1b39, #8b2f5a);
    border-radius: 2px;
}

.tax-groups-categories .headline,
.page-template-template-groups .headline {
    display: none;
}

/* ==========================================================================
   Banner Section
   ========================================================================== */

.groups_template_sec .groups_banner_section .banner_bg {
    min-height: 406px;
    background-position: center;
    background-size: cover;
    background-color: #fff;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

.groups_template_sec .groups_banner_section .banner_bg .banner_title {
    font-size: 68px;
    line-height: 90px;
    margin: 0;
    color: #00346a;
    text-transform: capitalize;
    font-family: supria-sans, sans-serif;
    font-weight: 700;
    font-style: normal;
}

/* ==========================================================================
   List Section
   ========================================================================== */

.groups_template_sec .groups_list_section {
    padding: 24px 0 40px;
    background-color: #f3f8fc;
}

.groups_template_sec .groups_list_section .groups_list_with_filter_inner {
    max-width: 1210px;
    margin: 0 auto;
    /* Make header + content feel like a single unified section */
    background: #ffffff;
    border: 1px solid #edf1f5;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
    padding: 20px 20px 24px;
}

/* Header Section */
.groups_template_sec .groups_header_section {
    /* Flatten header into the unified container */
    background: transparent;
    border-radius: 0;
    padding: 0 0 20px;
    margin: 0;
    box-shadow: none;
    border: none;
    position: relative;
    overflow: visible;
}

.groups_template_sec .groups_header_section::before {
    display: none;
}

.groups_template_sec .groups_header_top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.groups_template_sec .groups_search_section {
    margin-bottom: 0;
}

/* Main Committee List */
.groups_template_sec .groups_list_section .groups_list_main {
    width: 100%;
    /* Flatten into unified container */
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    border: none;
    position: relative;
    min-height: 0;
    transition: none;
}

.groups_template_sec .groups_list_section .groups_list_main:hover {
    transform: none;
    box-shadow: none;
}

.groups_template_sec .groups_list_section .groups_list_main.loading {
    opacity: 1;
}

.groups_template_sec .groups_list_section .groups_list_main.loading::after {
    content: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Committee List Items */
.groups_template_sec .groups_list .item {
    margin: 0 0 12px;
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: none;
    border-bottom: 1px solid #e9eef3;
}

.groups_template_sec .groups_list .item:hover {
    background: #fafbfd;
    border-color: #d0d5db;
}

.groups_template_sec .groups_list .item .item_inner {
    position: relative;
    transition: all 0.3s ease;
}

.groups_template_sec .groups_list .item .item_inner:hover .title .h3 {
    color: #5e1b39;
}

.groups_template_sec .groups_list .item .title {
    margin: 0;
}

.groups_template_sec .groups_list .item .title .h3 {
    font-size: 22px;
    line-height: 32px;
    margin: 0 0 8px;
    color: #2c3e50;
    transition: all 0.3s ease;
    font-family: proxima-nova, sans-serif;
    font-weight: 600;
    font-style: normal;
}
/* Remove decorative underline from titles in cards */
.groups_template_sec .groups_list .item .title .h3::after {
    content: none !important;
}

.groups_template_sec .groups_list .item .date_author {
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 0.01px;
    color: #1f1f1f;
    text-transform: uppercase;
    margin: 0 0 9px;
}

.groups_template_sec .groups_list .item .date_author .date_text,
.groups_template_sec .groups_list .item .date_author span {
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 0.01px;
    color: #1f1f1f;
    text-transform: uppercase;
    font-family: proxima-nova, sans-serif;
    font-weight: 700;
    font-style: normal;
}

.groups_template_sec .groups_list .item .date_author .author_text,
.groups_template_sec .groups_list .item .date_author .file_size {
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 0.01px;
    color: #2e406b;
    text-transform: uppercase;
    font-family: proxima-nova, sans-serif;
    font-weight: 700;
    font-style: normal;
}

.groups_template_sec .groups_list .item .hover_link {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

/* Search Results Header */
.search-results-header {
    margin-bottom: 20px;
}

.search-results-header h2 {
    margin-bottom: 0;
    color: #00346a;
}

.search-results-header p {
    font-size: 14px;
    font-style: italic;
    color: #666;
    margin-top: 10px !important;
}

/* Clear Search Button */
.clear-search-btn {
    font-size: 13px;
    border: none;
    background-color: transparent;
    font-weight: bold;
    color: #5e1b39;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-search-btn:hover {
    color: #791743;
}

/* ==========================================================================
   Categories Section (Now in main content area)
   ========================================================================== */

.groups_template_sec .groups_filter_categories {
    background-color: #fff;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Category List */
.groups_template_sec .groups_filter_categories .groups_filter_categories_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.groups_template_sec
    .groups_filter_categories
    .groups_filter_categories_list
    .term_item {
    list-style: none;
    margin: 0;
    line-height: 0;
}

/* Filter Titles */
.groups_template_sec .groups_header_section .groups_filter_search_title .h3,
.groups_template_sec
    .groups_filter_categories
    .groups_filter_categories_title
    .h3 {
    font-size: 30px;
    line-height: 41px;
    color: #5e1b39;
    margin: 0 0 16px;
    font-family: supria-sans, sans-serif;
    font-weight: 700;
    font-style: normal;
}

/* Search Form */
.groups_template_sec .groups_header_section .groups__filter_search form {
    border: 1px solid #e7ecf2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin: 0 0 12px;
    background: #ffffff;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.groups_template_sec
    .groups_header_section
    .groups__filter_search
    form:focus-within {
    border-color: #5e1b39;
    box-shadow: 0 0 0 3px rgba(94, 27, 57, 0.08);
    transform: none;
}

.groups_template_sec .groups_header_section .groups__filter_search form input {
    border: none;
    background-color: transparent;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
    line-height: 22px;
    color: #1f1f1f;
    width: 85%;
    padding: 0;
    height: 100%;
    font-family: supria-sans, sans-serif;
    font-weight: 300;
    font-style: normal;
}

.groups_template_sec
    .groups_header_section
    .groups__filter_search
    input::placeholder {
    font-size: 17px;
    line-height: 22px;
    color: #1f1f1f;
    opacity: 50%;
}

.groups_template_sec .groups_header_section .groups__filter_search button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.groups_template_sec .groups_header_section .groups__filter_search svg g path {
    transition: all 0.5s ease;
}

.groups_template_sec
    .groups_header_section
    .groups__filter_search:hover
    svg
    g
    path {
    stroke: #00346a;
}

/* Category List */
.groups_template_sec .groups_filter_categories .groups_filter_categories_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.groups_template_sec
    .groups_filter_categories
    .groups_filter_categories_list
    .term_item {
    list-style: none;
    margin: 0;
    line-height: 0;
}

.groups_template_sec
    .groups_filter_categories
    .groups_filter_categories_list
    .term_item
    .term_link {
    font-size: 17px;
    line-height: 34px;
    color: #00346a;
    transition: all 0.5s ease;
    font-family: proxima-nova, sans-serif;
    font-weight: 700;
    font-style: normal;
}

.groups_template_sec
    .groups_filter_categories
    .groups_filter_categories_list
    .term_item
    .term_link:hover,
.groups_template_sec
    .groups_filter_categories
    .groups_filter_categories_list
    .term_item.active
    .term_link {
    color: #5e1b39;
}

/* Sub Categories */
.groups_template_sec
    .groups_filter_categories
    .groups_filter_categories_list
    .sub_categories_list {
    margin: 0;
    list-style: none;
    padding: 0 0 0 21px;
}

.groups_template_sec
    .groups_filter_categories
    .groups_filter_categories_list
    .sub_categories_list
    .term_link {
    font-weight: 400;
}

/* Create Group Button */
.groups_template_sec .groups_header_section .create-group-section button {
    margin-top: 0;
    width: auto;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    height: auto;
    padding: 8px 14px;
    background: linear-gradient(135deg, #5e1b39 0%, #8b2f5a 100%);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(94, 27, 57, 0.2);
    position: relative;
    overflow: hidden;
}

.groups_template_sec
    .groups_header_section
    .create-group-section
    button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.groups_template_sec
    .groups_header_section
    .create-group-section
    button:hover::before {
    left: 100%;
}

.groups_template_sec .groups_header_section .create-group-section button:hover {
    background: linear-gradient(135deg, #791743 0%, #a63968 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(94, 27, 57, 0.35);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.groups_template_sec .custom_pagination_section {
    margin: 30px 0 0;
}

.groups_template_sec .custom_pagination_section .pagination .pagination {
    list-style: none;
    margin: 0px -6px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.groups_template_sec .custom_pagination_section .pagination .page-item {
    list-style: none;
    padding: 0 6px;
    line-height: 0;
}

.groups_template_sec .custom_pagination_section .pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 24px;
    color: #6c6c6c;
    transition: all 0.5s ease;
    padding: 0;
    font-family: proxima-nova, sans-serif;
    font-weight: 700;
    font-style: normal;
}

.groups_template_sec
    .custom_pagination_section
    .pagination
    .page-item.active
    .page-link {
    color: #00346a;
}

.groups_template_sec
    .custom_pagination_section
    .pagination
    .page-item:hover
    .page-link {
    color: #00346a;
}

.groups_template_sec
    .custom_pagination_section
    .pagination
    .page-item
    .page-link
    svg
    path {
    transition: all 0.5s ease;
    stroke: #00346a;
}

.groups_template_sec
    .custom_pagination_section
    .pagination
    .page-item:hover
    .page-link
    svg
    path {
    stroke: #6c6c6c;
}

.groups_template_sec
    .custom_pagination_section
    .pagination
    .page-item
    .page-link.prev {
    padding: 0 8px;
    color: #00346a;
}

.groups_template_sec
    .custom_pagination_section
    .pagination
    .page-item.disabled
    .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */

.group-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-group-modal-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.modal-content {
    background-color: #ffffff;
    padding: 35px;
    width: 100%;
    max-width: 750px;
    position: relative;
    z-index: 3;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #5e1b39;
    padding-bottom: 10px;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    font-weight: normal;
}

.close:hover {
    background-color: #5e1b39;
    color: white;
    border-color: #5e1b39;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.form-group label[for="group_content"] {
    margin-bottom: -25px;
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group input[type="file"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5e1b39;
    box-shadow: 0 0 0 2px rgba(94, 27, 57, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Submit Button */
.submit-btn {
    background-color: #5e1b39;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    margin-top: 15px;
}

.submit-btn:hover {
    background-color: #791743;
}

/* Category Selection Styling */
.category-select {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.category-checklist-wrapper {
    max-height: 200px;
    overflow-y: auto;
}

.group-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.group-categories-list li {
    margin-bottom: 4px;
}

.group-categories-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.group-categories-list label:hover {
    background: rgba(94, 27, 57, 0.05);
}

.group-categories-list input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #5e1b39;
}

.group-categories-list .children {
    margin-left: 20px;
    margin-top: 2px;
}

.group-categories-list .children label {
    font-size: 14px;
    color: #666;
}

/* Add Category Section - Outside scrollable area */
.add-category-wrapper {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* Add Category Link */
.add-category-link {
    color: #5e1b39;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s ease;
}

.add-category-link:hover {
    color: #8b2f5a;
    text-decoration: underline;
}

/* Add Category Form */
.add-category-form {
    margin-top: 10px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.add-category-form input,
.add-category-form select {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.add-category-form button {
    background-color: #5e1b39;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-category-form button:hover {
    background-color: #791743;
}
/* Form Message Styling */
#form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

#form-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Category Selection */
.category-wrapper {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background: #f9f9f9;
}

.category-checklist-wrapper {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.group-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.group-categories-list li {
    margin: 0;
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    font-weight: normal;
    font-size: 14px;
    line-height: 1.2;
}

.group-categories-list li label {
    display: flex;
    font-weight: normal;
    margin-bottom: 0;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    gap: 5px;
    margin-bottom: 5px;
}

.group-categories-list li.has-children {
    flex-direction: column;
}

.group-categories-list ul.children {
    margin: -5px 0 0;
}

/* Add Category Form */
.add-category-wrapper {
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.add-category-link {
    color: #0073aa;
    text-decoration: none;
}

.add-category-link:hover {
    text-decoration: underline;
}

.add-category-form {
    margin-top: 10px;
}

.add-category-form input,
.add-category-form select {
    width: 100%;
    margin-bottom: 5px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.add-category-form button {
    box-shadow: none;
    outline: none !important;
    outline-offset: 0;
    border-radius: 8px !important;
    padding: 8px 15px !important;
    font-weight: normal !important;
    margin-top: 15px;
    cursor: pointer;
    border: none !important;
    background-color: #5e1b39;
    color: white;
}

.add-category-form button:hover {
    background-color: #791743;
}

/* Practice Areas Section */
.practice-area-select {
    margin: 15px 0;
}

.practice-area-select > label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.practice-area-select small {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 11px;
    line-height: 1.3;
}

.practice-area-wrapper {
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.practice-area-checklist-wrapper {
    max-height: 140px;
    overflow-y: auto;
    padding: 8px;
}

.group-practice-areas-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    align-items: start;
}

.group-practice-areas-list li {
    margin: 0;
    break-inside: avoid;
    min-width: 0; /* Allow text to wrap properly */
}

.group-practice-areas-list label {
    display: inline-flex;
    align-items: flex-start;
    padding: 4px 6px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 400;
    font-size: 11px;
    margin: 0;
    line-height: 1.3;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    max-width: calc(100% - 10px);
}

.group-practice-areas-list label:hover {
    background-color: #f8f9fa;
}

.group-practice-areas-list input[type="checkbox"] {
    margin-right: 6px;
    margin-bottom: 0;
    margin-top: 1px;
    transform: scale(0.9);
    flex-shrink: 0; /* Prevent checkbox from shrinking */
}

.group-practice-areas-list label span {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.group-practice-areas-list input[type="checkbox"]:checked + span {
    font-weight: 500;
    color: #5e1b39;
}

.group-practice-areas-list input[type="checkbox"]:checked {
    accent-color: #5e1b39;
}

/* Custom scrollbar for practice areas */
.practice-area-checklist-wrapper::-webkit-scrollbar {
    width: 6px;
}

.practice-area-checklist-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.practice-area-checklist-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.practice-area-checklist-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Mobile responsive for practice areas */
@media (max-width: 768px) {
    .group-practice-areas-list {
        grid-template-columns: 1fr;
    }

    .practice-area-checklist-wrapper {
        max-height: 120px;
    }
}

/* Streamlined Single Group Header */
.committee-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.back-link {
    font-size: 13px;
    font-weight: 600;
    color: #5e1b39;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #791743;
}

.header-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.committee-header h1 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.header-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.tag-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.category-tag {
    background: #e8f4fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.category-tag:hover {
    background: #bbdefb;
    color: #0d47a1;
    text-decoration: none;
}

.practice-area-tag {
    background: #5e1b39;
    color: white;
    border: 1px solid #5e1b39;
}

.practice-area-tag:hover {
    background: #791743;
    border-color: #791743;
}

/* Mobile responsive for header */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .committee-header h1 {
        font-size: 24px;
    }

    .header-tags {
        flex-direction: column;
        gap: 12px;
    }

    .tag-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .tags-list {
        gap: 4px;
    }

    .tag {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* Main Content Layout */
.groups-main-content {
    display: flex;
    gap: 24px;
    margin-top: 0; /* Remove gap between header and content */
    align-items: flex-start;
}

/* Left Column - Groups List (75%) */
.groups-left-column {
    width: 70%;
    min-width: 0; /* Prevent flex item from overflowing */
}

/* Right Column - Directory Tree (25%) */
.groups-right-column {
    position: sticky;
    padding-left: 0px;
    width: calc(30% - 24px);
}

/* Sidebar Categories Styling */
.groups_filter_categories_sidebar {
    /* Flatten sidebar into unified container */
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.groups_filter_categories_sidebar .groups_filter_categories_title h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    padding-bottom: 0;
    border: none;
}

.groups_filter_categories_sidebar .groups_filter_categories_list {
    /* Directory tree: compact list with chevron markers */
    list-style: none;
    margin: 0;
    padding: 0;
}

.groups_filter_categories_sidebar .term_item {
    margin: 6px 0;
    position: relative;
}

.groups_filter_categories_sidebar .term_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    color: #00346a;
    text-decoration: none;
    border-radius: 0;
    transition: color 0.2s ease;
    font-weight: 600;
}

.groups_filter_categories_sidebar .term_link:hover {
    text-decoration: underline;
}

.groups_filter_categories_sidebar .term_item.active > .term_link {
    color: #5e1b39;
}

.groups_filter_categories_sidebar .child_terms {
    list-style: none;
    margin: 4px 0 0 10px;
    padding-left: 12px;
    border-left: 1px dashed #e5e7eb;
}

.groups_filter_categories_sidebar .child_term_item {
    margin-bottom: 4px;
}

.groups_filter_categories_sidebar .child_term_item::marker {
    display: none !important;
    content: "";
}

.groups_filter_categories_sidebar .child_term_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    color: #555;
    text-decoration: none;
    border-radius: 0;
    transition: color 0.2s ease;
    font-size: 14px;
}
.groups_filter_categories_sidebar .child_term_link::before {
    content: "›";
    color: #c0c6cf;
    font-size: 12px;
    line-height: 1;
}

.groups_filter_categories_sidebar .child_term_link:hover {
    text-decoration: underline;
    color: #00346a;
}

.groups_filter_categories_sidebar .child_term_item.active > .child_term_link {
    background: #f0f0f0;
    color: #333;
    font-weight: 500;
}

/* Search Results Styling */
.search_results_mount_main {
    display: none;
}

.groups-left-column.searching .search_results_mount_main {
    display: block;
}

.groups-left-column.searching .groups_list_main {
    display: none !important;
}

/* Hide original categories section (now in sidebar) */
.groups_filter_categories {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .groups-main-content {
        flex-direction: column;
    }

    .groups-left-column,
    .groups-right-column {
        width: 100%;
    }

    .groups-right-column {
        position: static;
        max-height: none;
        order: -1; /* Show directory tree above groups on mobile */
        width: 100%;
    }
}

/* Practice Area Filter - Shopify Style */
.practice-area-filter-shopify {
    background: white;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    overflow: visible;
    width: 300px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.practice-area-filter-shopify.collapsed {
    overflow: hidden;
}

/* Default state - filter options hidden */
.practice-area-filter-shopify .filter-options {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* When expanded - show filter options */
.practice-area-filter-shopify.expanded .filter-options {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    max-height: 300px !important;
    background: lime !important;
    border: 3px solid red !important;
}

.practice-area-filter-shopify.collapsed .filter-header {
    border-bottom: none;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e3e3e3;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-header:hover {
    background: #e9ecef;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.practice-area-filter-shopify:not(.collapsed) .filter-icon {
    transform: rotate(180deg);
}

.filter-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.filter-clear {
    background: none;
    border: none;
    color: #5e1b39;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.filter-clear:hover {
    background: rgba(94, 27, 57, 0.1);
}

.filter-options {
    max-height: 300px;
    overflow-y: auto;
    padding: 12px 0;
    position: relative;
    z-index: 10;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.filter-option:hover {
    background: #f8f9fa;
}

.filter-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-option input[type="checkbox"]:checked + .checkmark {
    background: #5e1b39;
    border-color: #5e1b39;
}

.filter-option input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-label {
    color: #374151;
    font-weight: 400;
    flex: 1;
}

.filter-option input[type="checkbox"]:checked ~ .filter-label {
    color: #5e1b39;
    font-weight: 500;
}

/* Custom scrollbar for filter options */
.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Sort Options */
.sort-options {
    background: white;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: fit-content;
    min-width: 200px;
}

.sort-options label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s ease;
    min-width: 140px;
}

.sort-options select:focus {
    outline: none;
    border-color: #5e1b39;
    box-shadow: 0 0 0 2px rgba(94, 27, 57, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .filters-sort-container {
        flex-direction: column;
        gap: 15px;
    }

    .practice-area-filter-shopify {
        width: 100%;
        margin: 0;
        border-radius: 6px;
    }

    .filter-header {
        padding: 14px 16px;
    }

    .filter-header h4 {
        font-size: 15px;
    }

    .filter-option {
        padding: 7px 16px;
        font-size: 13px;
    }

    .checkmark {
        width: 16px;
        height: 16px;
        margin-right: 10px;
    }

    .filter-option input[type="checkbox"]:checked + .checkmark::after {
        left: 4px;
        top: 1px;
        width: 3px;
        height: 7px;
    }

    .sort-options {
        padding: 12px 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .sort-options select {
        flex: 1;
        min-width: auto;
    }
}

/* Submit Button */
.submit-btn {
    background-color: #5e1b39;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #791743;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Messages */
#form-message .success {
    color: #4caf50;
    background-color: #f1f8f4;
    border: 1px solid #4caf50;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

#form-message .error {
    color: #f44336;
    background-color: #fef1f0;
    border: 1px solid #f44336;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

/* ==========================================================================
   Single Committee Styles
   ========================================================================== */

.single-group-wrapper {
    padding: 40px 0;
}

.single-group-wrapper .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.committee-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.committee-header h1 {
    margin-bottom: 10px;
    color: #00346a;
}

.committee-meta {
    color: #666;
    font-size: 14px;
}

.committee-meta span {
    margin-right: 15px;
}

.committee-categories {
    margin-top: 10px;
}

.category-link {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 3px;
    font-size: 13px;
    text-decoration: none;
    color: #333;
}

.category-link:hover {
    background: #e0e0e0;
}

/* File/Link Sections */
.committee-file-section,
.committee-link-section {
    background: #f9f9f9;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #791743;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #5a1232;
}

/* Committee Discussions */
.committee-discussions {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #ddd;
}

/* Committee Sidebar */
.committee-sidebar {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    height: auto;
    max-height: 415px;
    overflow: hidden;
}

.recent-committees-list {
    list-style: none;
    padding: 0;
}

.recent-committees-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.recent-committees-list li:last-of-type {
    border-bottom: none;
}

.recent-committees-list .date {
    display: block;
    font-size: 12px;
    color: #666;
}

/* Comment Form Adjustments */
.committee-template-default #commentform label {
    padding-left: 0;
}

.committee-template-default textarea#comment {
    width: 100%;
}

.committee-template-default h3#reply-title {
    margin-bottom: 0;
}

p.logged-in-as,
p.logged-in-as a {
    padding-bottom: 0;
    font-size: 12px;
    font-style: italic;
}

p.logged-in-as a:first-of-type {
    font-style: normal;
}

/* ==========================================================================
   Comment File Upload Styles
   ========================================================================== */

.comment-form-file-upload {
    margin-bottom: 0;
}

.comment-form-file-upload label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.comment-form-file-upload input[type="file"] {
    display: block;
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.comment-form-file-upload small {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

/* Comment Attachment Display */
.comment-attachment {
    margin-top: 15px;
    padding: 15px;
    background: #f5f5f5;
    border-left: 3px solid #791743;
    border-radius: 3px;
}

.attachment-label {
    margin: 0 0 5px 0;
    font-weight: bold;
    color: #333;
}

.attachment-link {
    color: #791743;
    text-decoration: none;
    font-weight: 500;
}

.attachment-link:hover {
    text-decoration: underline;
}

.file-size {
    color: #666;
    font-size: 13px;
}

/* ==========================================================================
   Version History Styles
   ========================================================================== */

.version-history {
    max-height: 300px;
    overflow-y: auto;
}

.version-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.version-item:last-child {
    border-bottom: none;
}

.version-badge {
    display: inline-block;
    background: #791743;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1360px) {
    .groups_template_sec .groups_list_section .groups_list_main {
        width: 61.8%;
    }
}

@media (max-width: 1199px) {
    .groups_template_sec .groups_list_section .groups_list_with_filter_inner {
        flex-wrap: nowrap;
    }

    .groups_template_sec
        .groups_filter
        .groups_filter_categories_list
        .term_link {
        font-size: 14px;
        line-height: 34px;
    }

    .groups_template_sec
        .groups_filter
        .groups_filter_categories_list
        .sub_categories_list {
        padding: 0 0 0 9px;
    }
}

@media (max-width: 991px) {
    .groups_template_sec .groups_list_section .groups_list_with_filter_inner {
        flex-wrap: wrap;
    }

    .groups_template_sec .groups_list_section .groups_list_main {
        width: 100%;
        margin: 30px 0 0;
        order: 1;
    }

    .groups_template_sec .groups_list .item .title .h3 {
        font-size: 20px;
        line-height: 32px;
    }

    .groups_template_sec .groups_banner_section .banner_bg .banner_title {
        font-size: 50px;
        line-height: 70px;
    }

    .groups_template_sec .groups_filter .news_filter_search_title .h3,
    .groups_template_sec .groups_filter .news_filter_categories_title .h3 {
        font-size: 26px;
        line-height: 30px;
    }

    .groups_template_sec .groups_filter .groups__filter_search form {
        padding: 10px 15px 10px;
    }
}

@media (max-width: 767px) {
    .groups_template_sec .groups_banner_section .banner_bg {
        min-height: 209px;
    }

    .groups_template_sec .groups_banner_section .banner_bg .banner_title {
        font-size: 40px;
        line-height: 66px;
    }

    .groups_template_sec .groups_filter_categories {
        padding: 24px 20px;
    }

    .groups_template_sec .groups_filter .news_filter_search_title .h3 {
        font-size: 24px;
        line-height: 30px;
        margin: 0 0 10px;
    }

    .groups_template_sec .groups_filter .groups__filter_search form {
        margin: 0 0 15px;
    }

    .groups_template_sec .groups_filter .news_filter_categories_title .h3 {
        font-size: 24px;
        line-height: 30px;
        margin: 0 0 10px;
    }

    .groups_template_sec
        .groups_filter
        .groups_filter_categories_list
        .term_link {
        font-size: 15px;
        line-height: 30px;
    }

    .groups_template_sec .groups_list_section .groups_list_main {
        padding: 20px 15px;
    }

    .groups_template_sec .groups_list .item .title .h3 {
        font-size: 16px;
        display: flex;
        line-height: 26px;
    }

    .groups_template_sec .groups_list .item .date_author {
        font-size: 12px;
        line-height: 15px;
    }

    .groups_template_sec .groups_list .item .date_author .date_text,
    .groups_template_sec .groups_list .item .date_author .author_text,
    .groups_template_sec .groups_list .item .date_author .file_size {
        font-size: 12px;
        line-height: 15px;
    }

    .groups_template_sec .custom_pagination_section .pagination .page-link {
        font-size: 13px;
        line-height: 20px;
    }

    .groups_template_sec .custom_pagination_section .pagination .pagination {
        margin: 10px -6px 0;
    }

    /* Single Committee Mobile */
    .single-group-wrapper .container {
        grid-template-columns: 1fr;
    }

    /* Modal Mobile */
    .modal-content {
        padding: 25px;
        margin: 15px;
        max-height: calc(100vh - 30px);
        border-radius: 16px;
    }

    .modal-content h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .close {
        width: 35px;
        height: 35px;
        font-size: 16px;
        right: 20px;
        top: 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group input[type="text"],
    .form-group input[type="file"],
    .form-group select,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 16px;
    }

    .submit-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ==========================================================================
   Featured Documents Section
   ========================================================================== */

.featured-documents-section {
    background: #ffffff;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.featured-documents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #5e1b39;
}

.featured-documents-header h2 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.documents-count {
    background: #f5f5f5;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.featured-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.document-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.document-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.document-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-title {
    margin: 0 0 4px 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.document-title a {
    color: #333;
    text-decoration: none;
    word-break: break-word;
    text-transform: capitalize;
}

.document-title a:hover {
    color: #5e1b39;
    text-decoration: underline;
}

.document-filename {
    display: block;
    font-size: 10px;
    color: #999;
    font-weight: 400;
    margin-top: 1px;
    font-style: italic;
    text-transform: none;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    color: #666;
    margin-bottom: 6px;
}

.document-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.document-actions {
    flex-shrink: 0;
}

.document-actions .download-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #5e1b39;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.document-actions .download-btn:hover {
    background: #791743;
}

.document-actions .download-btn svg {
    width: 10px;
    height: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .featured-documents-section {
        padding: 15px;
        margin: 15px 0;
    }

    .featured-documents-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 15px;
    }

    .featured-documents-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .document-item {
        padding: 12px;
        gap: 10px;
    }

    .document-icon {
        width: 28px;
        height: 28px;
    }

    .featured-documents-header h2 {
        font-size: 18px;
    }
}

/* Comment Attachment Styling */
.comment-attachment {
    margin: 15px 0;
    padding: 12px;
    background: #f8f9fa;
    border-left: 3px solid #5e1b39;
    border-radius: 4px;
}

.comment-attachment .attachment-label {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.comment-attachment .attachment-link {
    display: inline-block;
    text-decoration: none;
    color: #333;
}

.comment-attachment .attachment-link:hover {
    color: #5e1b39;
}

.comment-attachment .file-title {
    font-size: 14px;
    font-weight: 600;
}

.comment-attachment .file-name {
    color: #999;
    font-style: italic;
}

.comment-attachment .file-size {
    color: #666;
    font-size: 12px;
}

/* Comment Form File Upload Styling */
.comment-form-file-upload,
.comment-form-file-label {
    margin: 15px 0;
    clear: both;
    overflow: hidden;
    width: 100%;
}

.comment-form-file-upload label,
.comment-form-file-label label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    float: none !important;
    clear: both;
}

.comment-form-file-upload input[type="file"],
.comment-form-file-label input[type="text"] {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    float: none !important;
    clear: both;
    margin: 0;
}

.comment-form-file-upload input[type="file"]:focus,
.comment-form-file-label input[type="text"]:focus {
    outline: none;
    border-color: #5e1b39;
    box-shadow: 0 0 0 3px rgba(94, 27, 57, 0.1);
}

.comment-form-file-upload small,
.comment-form-file-label small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    float: none !important;
    clear: both;
}

/* Categories Section */
.groups_template_sec .groups_filter_categories {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 36px;
    margin-bottom: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    transition: all 0.3s ease;
}

.groups_template_sec .groups_filter_categories:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Seamless search rendering in categories block */
.page-template-template-groups .groups_filter_categories .search_results_mount {
    opacity: 0;
    transition: opacity 180ms ease;
    margin-top: 20px;
}
.page-template-template-groups .groups_filter_categories.searching #term_list {
    display: none;
}
.page-template-template-groups
    .groups_filter_categories.searching
    .groups_filter_categories_title {
    display: none;
}
.page-template-template-groups
    .groups_filter_categories.searching
    .search_results_mount {
    opacity: 1;
    background-color: white;
}

/* Hide main groups list when searching */
.page-template-template-groups
    .groups_filter_categories.searching
    ~ .groups_list_main {
    display: none !important;
}

/* Alternative selector in case the structure is different */
.groups_template_sec .groups_filter_categories.searching ~ .groups_list_main,
.groups_template_sec
    .groups_list_section
    .groups_filter_categories.searching
    ~ .groups_list_main {
    display: none !important;
}

/* ========================================================
   EMAIL NOTIFICATION TOGGLE STYLING
   ========================================================= */

.comment-form-notify {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0 20px 0;
    transition: all 0.3s ease;
}

.comment-form-notify:hover {
    border-color: #5e1b39;
    box-shadow: 0 2px 8px rgba(94, 27, 57, 0.1);
}

.comment-form-notify label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.comment-form-notify input[type="checkbox"] {
    margin: 0;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #5e1b39;
}

.comment-form-notify .notify-label {
    font-weight: 600;
    color: #333;
    margin-right: 5px;
}

.comment-form-notify .practice-areas-list {
    color: #5e1b39;
    font-weight: 500;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comment-form-notify {
        padding: 12px;
        margin: 12px 0 15px 0;
    }

    .comment-form-notify label {
        font-size: 13px;
        gap: 8px;
    }

    .comment-form-notify input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
}

/* ========================================
   Tab Navigation Styles (Groups/Files Sidebar)
   ======================================== */

/* Tab Navigation Container */
.groups-tabs {
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.tab-nav {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: #e9ecef;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 50%;
    max-width: 50%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #333;
}

.tab-btn.active {
    background: #007cba;
    color: white;
    font-weight: 600;
}

.tab-content {
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: white;
    border-top: none;
    padding: 15px 0 0 15px;
}

.tab-content.active {
    display: block;
}

/* Compact file styling */
.groups_filter_categories_list {
    font-size: 13px;
}

.term_item {
    margin-bottom: 8px;
}

.child_term_item {
    margin-bottom: 2px;
}

.child_term_link.file-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    font-size: 12px;
    line-height: 1.3;
}

.file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size-badge {
    font-size: 10px;
    color: #666;
    font-weight: normal;
    flex-shrink: 0;
}

.term_link.group-folder {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    color: #00346a;
    text-decoration: none;
    border-radius: 0;
    transition: color 0.2s ease;
    font-weight: 600;
    font-family: Verdana, Geneva, 'DejaVu Sans', sans-serif;
}

/* Remove duplicate arrows for files */
.child_term_link.file-link::before {
    display: none !important;
}

/* Responsive adjustments for tabs */
@media (max-width: 768px) {
    .tab-btn {
        font-size: 12px;
        padding: 6px 8px;
    }

    .child_term_link.file-link {
        font-size: 11px;
        padding: 2px 6px;
    }

    .file-size-badge {
        font-size: 9px;
    }
}
