:root {
  /* Colors */
  --acec-gold: #F7C95D;
  --acec-gold-dark: #e09a10;
  --acec-navy: #213138;
  --acec-gray: #4a575d;
  --acec-light-gray: #e9ecef;
  --acec-warning: #e09a10;
  --acec-danger: #dc3545;
  --acec-success: #28a745;
  --acec-info: #17a2b8;
  --acec-muted: #adb5bd;
  --acec-bg: #fff;
  --acec-border: #dee2e6;
  --acec-border-dark: #cb8b11;
  --acec-border-light: #DED9CC;
  --acec-placeholder: #adb5bd;
  --acec-badge-open-bg: #F7C95D;
  --acec-badge-open-color: #213138;
  --acec-badge-appointed-bg: #e09a10;
  --acec-badge-appointed-color: #000;
  --acec-btn-hover-bg: #FFD579;
  --acec-nav-link: #6c757d;

  /* Font families */
  --font-main: 'Inter', Arial, sans-serif;
  --font-title: 'Playfair Display', serif;

  /* Font sizes */
  --fs-xs: 0.7rem;
  --fs-sm: 0.8rem;
  --fs-base: 1rem;
  --fs-md: 1.1rem;
  --fs-lg: 1.5rem;
  --fs-xl: 3rem;
  --fs-title: 1.15rem;
  --fs-badge: 0.95rem;

  /* Font weights */
  --fw-normal: 400;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Spacing and Padding */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-xxl: 3rem;

  /* Borders and Radius */
  --radius-xs: 0.15rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --border-width: 1.5px;
  --border-width-thin: 1px;

  /* Shadows */
  --acec-shadow: 0 2px 8px rgba(33,49,56,0.06);
  --acec-shadow-hover: 0 6px 24px rgba(33,49,56,0.13);
  --acec-shadow-card: 0 2px 5px rgba(0, 0, 0, 0.05);
  --acec-shadow-card-hover: 0 5px 15px rgba(0, 0, 0, 0.1);

  /* New variables */
  --sp-card-padding: 2rem 1.5rem 1.5rem 1.5rem;
  --sp-card-padding-md: 1.2rem 1rem 1rem 1rem;
  --sp-card-padding-sm: 1rem;
  --sp-card-padding-xs: 10px;
  --fs-900: 3rem;
  --fs-800: 1.8rem;
  --fs-700: 1.5rem;
  --fs-600: 1.35rem;
  --fs-500: 1.15rem;
  --fs-400: 1.1rem;
  --fs-300: 1rem;
  --fs-200: 0.9rem;
  --fs-100: 0.8rem;
  --fs-50: 0.7rem;
  --sp-table-th: 0.75rem;
  --sp-table-td: 0.7rem;
  --sp-table-td-xs: 0.7rem;
  --sp-table-td-sm: 0.8rem;
  --sp-table-td-md: 1rem;
  --sp-table-td-lg: 1.1rem;
  --sp-table-td-xl: 1.5rem;
  --sp-table-td-xxl: 2rem;
  --sp-table-td-xxxl: 3rem;
  --sp-gap: 1.5rem;
  --sp-gap-md: 1rem;
  --sp-gap-sm: 0.5rem;
  --sp-gap-xxs: 0.1rem;
  --sp-gap-xxxs: 0.05rem;
  --sp-mb-0: 0;
  --sp-mb-1: 0.25rem;
  --sp-mb-2: 0.5rem;
  --sp-mb-3: 1rem;
  --sp-mb-4: 1.5rem;
  --sp-mb-5: 2rem;
  --sp-mb-6: 3rem;
  --sp-mb-7: 5rem;
  --sp-mb-8: 10rem;
  --sp-mb-9: 20rem;
  --sp-mb-10: 30rem;
  --sp-mb-11: 50rem;
  --sp-mb-12: 100rem;
  --sp-mb-13: 200rem;
  --sp-mb-14: 300rem;
  --sp-mb-15: 400rem;
  --sp-mb-16: 500rem;
  --sp-mb-17: 600rem;
  --sp-mb-18: 700rem;
  --sp-mb-19: 800rem;
  --sp-mb-20: 900rem;
  --sp-mb-21: 1000rem;
  --sp-mb-22: 1100rem;
  --sp-mb-23: 1200rem;
  --sp-mb-24: 1300rem;
  --sp-mb-25: 1400rem;
  --sp-mb-26: 1500rem;
  --sp-mb-27: 1600rem;
  --sp-mb-28: 1700rem;
  --sp-mb-29: 1800rem;
  --sp-mb-30: 1900rem;
  --sp-mb-31: 2000rem;
  --sp-mb-32: 2100rem;
  --sp-mb-33: 2200rem;
  --sp-mb-34: 2300rem;
  --sp-mb-35: 2400rem;
  --sp-mb-36: 2500rem;
  --sp-mb-37: 2600rem;
  --sp-mb-38: 2700rem;
  --sp-mb-39: 2800rem;
  --sp-mb-40: 2900rem;
  --sp-mb-41: 3000rem;
  --sp-mb-42: 3100rem;
  --sp-mb-43: 3200rem;
  --sp-mb-44: 3300rem;
  --sp-mb-45: 3400rem;
  --sp-mb-46: 3500rem;
  --sp-mb-47: 3600rem;
  --sp-mb-48: 3700rem;
  --sp-mb-49: 3800rem;
  --sp-mb-50: 3900rem;
  --sp-mb-51: 4000rem;
  --sp-mb-52: 4100rem;
  --sp-mb-53: 4200rem;
  --sp-mb-54: 4300rem;
  --sp-mb-55: 4400rem;
  --sp-mb-56: 4500rem;
  --sp-mb-57: 4600rem;
  --sp-mb-58: 4700rem;
  --sp-mb-59: 4800rem;
  --sp-mb-60: 4900rem;
  --sp-mb-61: 5000rem;
  --sp-mb-62: 5100rem;
  --sp-mb-63: 5200rem;
  --sp-mb-64: 5300rem;
  --sp-mb-65: 5400rem;
  --sp-mb-66: 5500rem;
  --sp-mb-67: 5600rem;
  --sp-mb-68: 5700rem;
  --sp-mb-69: 5800rem;
  --sp-mb-70: 5900rem;
  --sp-mb-71: 6000rem;
  --sp-mb-72: 6100rem;
  --sp-mb-73: 6200rem;
  --sp-mb-74: 6300rem;
  --sp-mb-75: 6400rem;
  --sp-mb-76: 6500rem;
  --sp-mb-77: 6600rem;
  --sp-mb-78: 6700rem;
  --sp-mb-79: 6800rem;
  --sp-mb-80: 6900rem;
  --sp-mb-81: 7000rem;
  --sp-mb-82: 7100rem;
  --sp-mb-83: 7200rem;
  --sp-mb-84: 7300rem;
  --sp-mb-85: 7400rem;
  --sp-mb-86: 7500rem;
  --sp-mb-87: 7600rem;
  --sp-mb-88: 7700rem;
  --sp-mb-89: 7800rem;
  --sp-mb-90: 7900rem;
  --sp-mb-91: 8000rem;
  --sp-mb-92: 8100rem;
  --sp-mb-93: 8200rem;
  --sp-mb-94: 8300rem;
  --sp-mb-95: 8400rem;
  --sp-mb-96: 8500rem;
  --sp-mb-97: 8600rem;
  --sp-mb-98: 8700rem;
  --sp-mb-99: 8800rem;
  --sp-mb-100: 8900rem;
}

/* --- CommitteeProfile.css --- */

/* Fix for baseline netForum styles */
#BodyTag {
    padding-right: 0px !important;
    overflow: auto !important;
}
.btn:hover, .btn:focus, .btn:active, .btn.active:hover, .DataFormButton:focus, .DataFormButton:hover, .DataFormButton:active, #ButtonSave:focus, #ButtonSave:active, #ButtonSave:hover {
    border: var(--bs-btn-border-width) solid var(--acec-gold) !important;
}
/* Fix for baseline bootstrap styles */
.modal {
    margin-left: 0px !important;
    background-color: transparent !important;
}

.dropdown-menu>li>a:hover, .dropdown-menu>li>a:focus, .dropdown-submenu:hover>a, .dropdown-submenu:focus>a {
    background-color: var(--acec-gold) !important;
}

/* Committee Profile Specific Styles */
#committeeTabContent .btn.btn-outline-secondary:hover, #committeeTabContent .btn.btn-outline-secondary.dropdown-toggle:hover,
#committeeTabContent .btn.btn-outline-secondary.dropdown-toggle:active, #committeeTabContent .btn.btn-outline-secondary.dropdown-toggle.show {
    border: var(--bs-btn-border-width) solid var(--acec-gold-dark) !important;
}
#committeeTabContent .btn.btn-outline-secondary.dropdown-toggle {
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color) !important;
}

.avatar::after {
    content: '';
    display: none;
}

.avatar {
    width: 50px !important;
    height: 50px !important;
    overflow: hidden;
    position: relative;
    background-color: transparent;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.avatar div {
    min-height: 50px;
}

.avatar-initials {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 50px !important;
    height: 50px !important;
    background-color: var(--acec-gold) !important;
    color: var(--acec-navy);
    align-items: center;
    justify-content: center;
    font-weight: var(--fw-bold);
    font-size: var(--fs-md);
    border-radius: 50%;
    z-index: 1;
}

/* Committee Header */
.committee-banner {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    margin-bottom: 20px;
}

.committee-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(33, 49, 56, 0.2), rgba(33, 49, 56, 0.8));
    border-radius: 5px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.committee-banner-content {
    color: #fff;
}

.committee-banner-content h1 {
    color: var(--acec-bg);
    margin-bottom: 5px;
    font-size: var(--fs-lg);
    font-family: var(--font-title);
}

.committee-banner-content p {
    margin-bottom: 0;
    opacity: 0.9;
}

.committee-type-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.badge-open {
    background-color: var(--acec-gold);
    color: var(--acec-navy);
    pointer-events: none;
}

.badge-appointed {
    background-color: var(--acec-badge-appointed-bg);
    color: var(--acec-badge-appointed-color);
    pointer-events: none;
}

#membershipRequiredModal .modal-dialog {
    top: 20%;
}


/* Tabs */
.nav-tabs .nav-link {
    color: var(--acec-gray);
    font-weight: var(--fw-semibold);
    padding: 10px 20px;
    border: none;
    border-bottom: 3px solid transparent;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--acec-gold-dark);
}

.nav-tabs .nav-link.active {
    color: var(--acec-gold-dark);
    background-color: transparent;
    border-color: var(--acec-gold-dark);
}

/* Style for disabled tabs */
.nav-tabs .nav-link.disabled-tab {
    color: var(--acec-muted) !important; /* Bootstrap muted text color */
    cursor: not-allowed !important;
    border-bottom: 3px solid transparent !important; /* Ensure no active border */
    pointer-events: none !important; /* Completely disable pointer events */
    background-color: transparent !important; /* Ensure no background change */
}

.nav-tabs .nav-link.disabled-tab:hover,
.nav-tabs .nav-link.disabled-tab:focus,
.nav-tabs .nav-link.disabled-tab:active,
.nav-tabs .nav-link.disabled-tab.active {
    color: var(--acec-muted) !important; /* Keep the color muted on all states */
    border-color: transparent !important; /* Ensure no border on all states */
    background-color: transparent !important; /* Ensure no background change */
    pointer-events: none !important; /* Completely disable pointer events */
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 20px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--acec-border-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -34px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--acec-gold);
    border: 2px solid var(--acec-bg);
}

.timeline-date {
    font-size: var(--fs-sm);
    color: var(--acec-gray);
    margin-bottom: 5px;
    font-weight: 600;
}

.timeline-content h4 {
    font-size: var(--fs-md);
    margin-bottom: 5px;
    color: var(--acec-navy);
}

.timeline-content p {
    margin-bottom: 0;
    color: var(--acec-gray);
}

/* Meeting Cards */
.meeting-card {
    border: var(--border-width) solid var(--acec-border-light);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: var(--sp-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.meeting-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--acec-shadow-card-hover);
}

.meeting-date {
    background-color: var(--acec-gold);
    color: var(--acec-navy);
    text-align: center;
    padding: 15px;
}

.meeting-date .month {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
}

.meeting-date .day {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    line-height: 1;
}

.meeting-date .year {
    font-size: var(--fs-sm);
}

.meeting-details {
    padding: var(--sp-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.meeting-details h4 {
    font-size: var(--fs-md);
    margin-bottom: var(--sp-sm);
}

.meeting-meta {
    color: var(--acec-gray);
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-xs);
}

.meeting-meta i {
    margin-right: var(--sp-xs);
    color: var(--acec-gold-dark);
}

/* Push button to bottom of card */
.meeting-details .d-grid {
    margin-top: auto !important;
    padding-top: var(--sp-md);
}

/* Ensure consistent card heights */
.meeting-card {
    height: 100%;
}

/* Document Icons */
.document-icon {
    font-size: var(--fs-lg);
    margin-right: var(--sp-xs);
}

.document-icon.pdf {
    color: var(--acec-danger);
}

.document-icon.doc {
    color: var(--acec-gold-dark);
}

.document-icon.ppt {
    color: var(--acec-warning);
}

.document-icon.xls {
    color: var(--acec-gold-dark);
}

.document-icon.zip {
    color: var(--acec-muted);
}

.document-icon.other {
    color: var(--acec-gray);
}

/* Document Sections */
.card-header {
    background-color: var(--acec-bg);
    border-bottom: var(--border-width) solid var(--acec-border-light);
}

.card-header h3 {
    margin-bottom: var(--sp-xs);
    font-size: var(--fs-lg);
}

.card-header p {
    font-size: var(--fs-sm);
}

#documents .card {
    box-shadow: var(--acec-shadow-card);
    transition: box-shadow var(--sp-xs) ease;
}

#documents .card:hover {
    box-shadow: var(--acec-shadow-card-hover);
}

/* Document Tabs */
.card-header-tabs {
    margin-right: 0;
    margin-bottom: -1px;
    margin-left: 0;
}

.card-header-tabs .nav-link {
    color: var(--acec-gray);
    font-weight: var(--fw-semibold);
    padding: var(--sp-sm) var(--sp-lg);
    border: none;
    border-bottom: 3px solid transparent;
    background-color: transparent;
    margin-bottom: -1px;
}

.card-header-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--acec-gold-dark);
}

.card-header-tabs .nav-link.active {
    color: var(--acec-gold-dark);
    background-color: transparent;
    border-color: var(--acec-gold-dark);
    border-bottom: 3px solid var(--acec-gold-dark);
}

#documentsTabContent {
    padding-top: var(--sp-xs);
}

/* Committee Messages */
.list-group-item[data-priority="high"] {
    border-left: 4px solid var(--acec-danger);
}

.list-group-item[data-priority="medium"] {
    border-left: 4px solid var(--acec-warning);
}

.list-group-item[data-priority="low"],
.list-group-item[data-priority="normal"] {
    border-left: 4px solid var(--acec-muted);
}

.list-group-item .badge {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
}

#committeeMessagesContainer .list-group-item {
    margin-bottom: var(--sp-xs);
    border-radius: var(--radius-xs);
    transition: transform var(--sp-xs) ease, box-shadow var(--sp-xs) ease;
    border: var(--border-width) solid var(--acec-border);
    box-shadow: var(--acec-shadow);
    background: var(--acec-bg);
}

#committeeMessagesContainer .list-group-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--acec-shadow-hover);
}

#resetbox input {
    height: auto;
}

.list-action-buttons {
    align-items: center;
    min-width: 120px;
}

/* NetForum Overrides Fix*/
.btn.btn-sm:hover {
    border: var(--border-width-thin) solid var(--acec-gold-dark);
    opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .timeline {
        padding-left: var(--sp-md);
    }
    .timeline-item:before {
        left: -24px;
    }
}

/* Members Tab Table Customizations */
#membersTable {
    font-size: var(--fs-sm);
}
#membersTable td, #membersTable th {
    vertical-align: middle;
}
#membersTable .avatar {
    width: auto !important;
    height: 40px !important;
}
#membersTable .avatar-initials {
    width: 40px !important;
    height: 40px !important;
    font-size: var(--fs-sm);
    min-height: 40px;
}
#membersTable .sortable {
    cursor: pointer;
}

.mbr-name {
    width: 60%;
}

/* Style each notification row as a card with shadow and rounded corners */
#committeeMessagesContainer .list-group-item {
    border: 1px solid var(--acec-border);
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(33,49,56,0.06);
    padding: 1.25rem 1.5rem;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}

/* Add colored left border by priority */
#committeeMessagesContainer .list-group-item.border-danger,
#committeeMessagesContainer .list-group-item[data-priority="high"] {
    border-color: var(--acec-border) !important;
    border-left: 4px solid var(--acec-danger) !important;
}
#committeeMessagesContainer .list-group-item.border-warning,
#committeeMessagesContainer .list-group-item[data-priority="medium"] {
    border-color: var(--acec-border) !important;
    border-left: 4px solid var(--acec-warning) !important;
}
#committeeMessagesContainer .list-group-item.border-secondary,
#committeeMessagesContainer .list-group-item[data-priority="low"] {
    border-color: var(--acec-border) !important;
    border-left: 4px solid var(--acec-muted) !important;
}

/* Priority badge styles */
#committeeMessagesContainer .badge.bg-danger {
    background: var(--acec-danger) !important;
    color: var(--acec-bg) !important;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    margin-left: var(--sp-xs);
    vertical-align: middle;
    border-radius: var(--radius-md);
    padding: var(--sp-xs) var(--sp-md);
}
#committeeMessagesContainer .badge.bg-warning {
    background: var(--acec-warning) !important;
    color: var(--acec-navy) !important;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    margin-left: var(--sp-xs);
    vertical-align: middle;
    border-radius: var(--radius-md);
    padding: var(--sp-xs) var(--sp-md);
}
#committeeMessagesContainer .badge.bg-secondary {
    background: var(--acec-muted) !important;
    color: var(--acec-bg) !important;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    margin-left: var(--sp-xs);
    vertical-align: middle;
    border-radius: var(--radius-md);
    padding: var(--sp-xs) var(--sp-md);
}
#committeeMessagesContainer .badge.bg-normal {
    background: var(--acec-muted) !important;
    color: var(--acec-bg) !important;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    margin-left: var(--sp-xs);
    vertical-align: middle;
    border-radius: var(--radius-md);
    padding: var(--sp-xs) var(--sp-md);
}

/* Notification title and meta */
#committeeMessagesContainer .list-group-item h5 {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--acec-navy);
    margin-bottom: var(--sp-xs);
    display: flex;
    align-items: center;
}
#committeeMessagesContainer .list-group-item p {
    color: var(--acec-gray);
    margin-bottom: var(--sp-xs);
    font-weight: var(--fw-normal);
}
#committeeMessagesContainer .list-group-item small {
    color: var(--acec-muted);
}

/* Hover effect for card */
#committeeMessagesContainer .list-group-item:hover {
    box-shadow: var(--acec-shadow-hover);
    transform: translateY(-2px) scale(1.01);
}

/* Responsive tweaks */
@media (max-width: 576px) {
    #committeeMessagesContainer .list-group-item {
        padding: var(--sp-md) var(--sp-sm);
    }
    #committeeMessagesContainer .list-group-item h5 {
        font-size: var(--fs-sm);
    }
}

/* Fix dropdown menu overflow in Notifications tab */
/*
#notifications .card-body .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 160px;
    max-height: 220px;
    overflow-y: auto;
    position: absolute;
    transform: translate3d(0, 38px, 0) !important;
    box-shadow: 0 4px 16px rgba(33,49,56,0.13);
    z-index: 1051;
}
*/
#committeeTabContent.tab-content,
#documentsTabContent.tab-content {
    overflow: visible;
}

@media (max-width: 600px) {
  #notifications .card-body .dropdown-menu {
    left: 0 !important;
    right: auto !important;
    min-width: var(--sp-table-td-xl);
    max-width: 90vw;
  }
}

/* Make all sortable column headers show pointer cursor */
.sortable {
    cursor: pointer !important;
}

/* Discussions tab iframe should fit its container, no overflow or scrollbars outside */
#discussionsIframeContainer {
    width: 100%;
    min-height: var(--sp-table-td-xxl);
    height: var(--sp-table-td-xxl);
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: transparent;
}
#discussionsIframeContainer iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: var(--sp-table-td-xxl);
    border: 0;
    display: block;
    background: transparent;
}
/* Prevent horizontal scroll inside the iframe's body (if same-origin or styleable) */
#discussionsIframeContainer iframe {
    overflow-x: hidden !important;
}

#nextMeetingCard .bi.text-primary {
    color: var(--acec-gold-dark) !important;
}

#applyCommitteePosition {
    height: auto;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--acec-gold-dark);
}



/* --- CommitteeList.css --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

/* Fix for baseline netForum styles */
#BodyTag {
    padding-right: 0px !important;
    overflow: auto !important;
}
/* Fix for baseline bootstrap styles */
.modal {
    margin-left: 0px !important;
    background-color: transparent !important;
}

/* Committee List Specific Styles */
#applyCommitteeModal .modal-dialog,
#joinCommitteeModal .modal-dialog {
    top: 20%;
}

body {
    font-family: var(--font-main);
    background: var(--acec-bg);
}

/* Main Content */
.portal-content {
    padding: var(--sp-card-padding);
    min-height: 70vh;
}

/* Committee Portal Specific Styles */
.page-title {
    font-family: var(--font-title);
    font-size: var(--fs-xl);
    color: var(--acec-navy);
    margin-bottom: var(--sp-sm);
}

/* Filter and search styles */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-container input {
    width: 100%;
    padding-right: var(--sp-table-td-xl);
    border-radius: var(--radius-sm);
    border: var(--border-width-thin) solid var(--acec-border);
    padding: var(--sp-xs) var(--sp-table-td-xl) var(--sp-xs) var(--sp-md);
}

.search-container button {
    position: absolute;
    right: var(--sp-lg);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: var(--fs-base);
    color: var(--acec-muted);
    cursor: pointer;
}

/* Committee card styles */
.committee-card {
    background: var(--acec-bg);
    border: var(--border-width) solid var(--acec-light-gray);
    border-radius: var(--radius-lg);
    box-shadow: var(--acec-shadow);
    color: var(--acec-navy);
    font-family: var(--font-main);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    clip-path: polygon(100% 100%, 100% 100%, 0% 100%, 0% 100%, 0% 0%, 0% 0%, 73% 0%, 85% 0%, 100% 15%, 100% 23%);
}

.committee-card:hover {
    box-shadow: var(--acec-shadow-hover);
    transform: translateY(-4px);
}

.committee-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    position: relative;
}

/* Placeholder for committee image when none is available */
.committee-img-placeholder {
    width: 100%;
    height: 170px;
    background-color: #e9ecef;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.committee-body {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.committee-title {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--acec-navy);
    margin-bottom: 0.5rem;
}

.committee-description {
    color: var(--acec-muted);
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.committee-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--acec-gray);
    font-size: 0.98rem;
    margin-bottom: 0.3rem;
}

.committee-meta i {
    color: var(--acec-gold-dark);
    font-size: 1.1rem;
}

/* Navigation tabs */
.nav-link {
    background: none;
    border: none;
    padding: 0.5rem 0;
    color: var(--acec-nav-link);
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    transition: color 0.2s, border-color 0.2s;
    font-family: var(--font-main);
}

.nav-link:hover {
    color: var(--acec-navy);
}

.nav-link.active {
    color: var(--acec-navy);
    border-bottom: 2.5px solid var(--acec-gold);
    font-weight: 700;
    background: none;
}

.nav-link i {
    font-size: 1.1rem;
    vertical-align: middle;
}

/* Badge styles */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
    font-size: 0.75rem;
}

.badge-secondary {
    background-color: var(--acec-gold);
    color: var(--acec-navy);
}

/* Modal styles */
.modal-content {
    border-radius: 0.5rem;
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--acec-border);
    padding: 1rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--acec-border);
    padding: 1rem 1.5rem;
}

/* Form styles */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1.5px solid #ced4da;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    color: var(--acec-navy);
    font-family: var(--font-main);
}
.form-control:focus, .form-select:focus {
    border-color: var(--acec-gold);
    box-shadow: 0 0 0 0.2rem rgba(247, 201, 93, 0.25);
    color: var(--acec-navy);
}

/* Button styles */
.btn, .btn-primary, .btn-secondary, .btn-outline-primary, .btn-cancel, .btn-view, .btn-close, .fl-page button, .fl-page .button, .fl-page input[type=button], .fl-page input[type=submit] {
    padding: 0.25rem 0.7rem;
    font-size: 0.89rem;
    font-family: var(--font-main);
}
.btn:hover, .fl-page button:hover, .fl-page .button:hover, .fl-page input[type=button]:hover, .fl-page input[type=submit]:hover {
    background-color: var(--acec-gold);
    color: var(--acec-navy);
}
.btn-link:hover {
    background-color: transparent !important;
    opacity: 0.75;
}
.btn-outline-primary {
    background: #fff;
    color: var(--acec-navy);
    border: 2px solid var(--acec-gold);
}
.btn-outline-primary:hover {
    background: var(--acec-gold);
    color: var(--acec-navy);
}

/* Empty state styles */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.search-container .bi-search {
    top: 44%;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .committee-img {
        height: 140px;
    }
    .committee-body {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
}
@media (max-width: 768px) {
    .committee-img {
        height: 110px;
    }
    .committee-body {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
    .committee-title {
        font-size: 1.15rem;
    }
}

/* Custom colors */
.text-acec-dark {
    color: var(--acec-navy);
}

.text-acec-gold {
    color: var(--acec-gold);
}

.border-acec-gold {
    border-color: var(--acec-gold);
}

/* Tabs */
.flex {
    display: flex;
}
.gap-4 {
    gap: 1.5rem;
}
.space-x-6 > * + * {
    margin-left: 2rem;
}

/* Search and filter row */
.relative {
    position: relative;
}

input#textFilter.form-control {
    padding-left: 2.2rem;
    height: 44px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.bi-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--acec-muted);
}

.clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--acec-muted);
    cursor: pointer;
    z-index: 2;
}

/* Filter Dropdown */
.btn-outline-secondary.dropdown-toggle,
.back-to-committee-portal-btn {
    border-radius: var(--radius-md);
    font-size: 1rem;
    padding: 0.5rem 1.25rem;
    background-color: #fff;
    color: var(--acec-navy);
    border: 1px solid var(--acec-border);
    box-shadow: none;
}
.back-to-committee-portal-btn:hover {
    background-color: #FFF;
}

.btn-outline-secondary.dropdown-toggle:focus,
.btn-outline-secondary.dropdown-toggle:active,
.back-to-committee-portal-btn:focus,
.back-to-committee-portal-btn:active {
    border-color: var(--acec-gold) !important;
    background-color: #fff !important;
    color: var(--acec-navy) !important;
    box-shadow: 0 0 0 0.2rem rgba(247, 201, 93, 0.15);
}

.dropdown-menu {
    border-radius: var(--radius-md);
    font-size: 1rem;
}

/* Card buttons */
.committee-card .d-grid {
    grid-template-columns: 1fr 1fr;
    display: grid;
    gap: 0.5rem;
    margin-top: 1.5rem;
    align-items: stretch;
}
.committee-card .btn {
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}
.committee-card .btn-outline-primary {
    border: 1.5px solid var(--acec-navy);
    color: var(--acec-navy);
    background: #fff;
}
.committee-card .btn-outline-primary:hover {
    background: var(--acec-navy);
    color: #fff;
}
/* Override for specific action buttons to ensure gold styling */
.committee-card .join-committee-btn,
.committee-card .apply-committee-btn {
    background-color: var(--acec-gold) !important;
    border-color: var(--acec-gold) !important;
    color: var(--acec-navy) !important;
}
.committee-card .join-committee-btn:hover,
.committee-card .apply-committee-btn:hover {
    background-color: var(--acec-gold) !important;
    color: var(--acec-navy) !important;
    opacity: 0.85;
}
.committee-card .btn[disabled],
.committee-card .btn:disabled {
    background: #f8f9fa;
    color: var(--acec-border);
    border: 1.5px solid var(--acec-border);
    cursor: not-allowed;
}

/* Disabled Add to Calendar button styling */
.btn[disabled],
.btn:disabled,
.btn.disabled {
    background: #f8f9fa !important;
    color: var(--acec-border) !important;
    border-color: var(--acec-border) !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none !important;
}

.btn[disabled]:hover,
.btn:disabled:hover,
.btn.disabled:hover,
.btn[disabled]:focus,
.btn:disabled:focus,
.btn.disabled:focus,
.btn[disabled]:active,
.btn:disabled:active,
.btn.disabled:active {
    background: #f8f9fa !important;
    color: var(--acec-border) !important;
    border-color: var(--acec-border) !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none !important;
}
/* Ensure consistent button heights in committee cards */
.committee-card .btn,
.committee-card .btn-outline-primary,
.committee-card .view-committee-btn,
.committee-card .join-committee-btn,
.committee-card .apply-committee-btn {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    box-sizing: border-box;
}

/* Badge on image */
.committee-card .badge-type {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #2156e3;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.35em 1em;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(33,49,56,0.10);
    font-family: var(--font-main);
}
.committee-card[data-type="Open Committee"] .badge-type {
    background: var(--acec-gold-dark);
    color: #000;
    border: none;
}

.text-lg {
    font-size: 1.125rem;
}

/* --- Nav/Search Row --- */
.row.align-items-center.mb-6.mb-4 {
    margin-bottom: 2rem !important;
}

/* Remove old flex/tailwind classes if present */
.flex, .gap-4, .space-x-6 {
    all: unset;
}

/* Search box icon and clear button */
.position-relative .bi-search {
    left: 18px;
    top: 44%;
    font-size: 1.1rem;
    color: var(--acec-muted);
    pointer-events: none;
}
.position-relative .clear-search {
    right: 10px;
    top: 50%;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--acec-muted);
    cursor: pointer;
    z-index: 2;
    transform: translateY(-50%);
}

/* --- Card Button Alignment --- */
.committee-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.committee-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding-bottom: 0;
}
.committee-card .card-bottom-row {
    margin-bottom: 0.75rem; /* mb-1 */
    display: flex;
    flex-direction: column;
}


/* Ensure card content fills height and buttons stay at bottom */
.col-lg-4, .col-md-6 {
    display: flex;
}
.col-lg-4 > .committee-card, .col-md-6 > .committee-card {
    flex: 1 1 100%;
}

/* Responsive adjustments for nav/search row */
@media (max-width: 768px) {
    .row.align-items-center.mb-6.mb-4 > .col-md-7,
    .row.align-items-center.mb-6.mb-4 > .col-md-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .row.align-items-center.mb-6.mb-4 {
        flex-direction: column;
    }
}

/* --- ACEC.ORG STYLE REFINEMENTS --- */

/* HEADINGS */
h1, h2, h3, h4, h5, h6, .page-title {
    font-family: var(--font-title);
    color: var(--acec-navy);
    font-weight: 700;
}

/* NAV */
.nav-link.active, .nav-link:active {
    color: var(--acec-navy) !important;
    border-bottom: 2.5px solid var(--acec-gold) !important;
    font-weight: 700;
    background: none;
}
.nav-link {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    border-bottom: var(--border-width-thin) solid transparent;
    border-radius: var(--radius-xs);
    background: none;
    color: var(--acec-nav-link);
    transition: color 0.2s, border-color 0.2s;
    font-family: var(--font-main);
}

/* Placeholder color */
::-webkit-input-placeholder { color: var(--acec-placeholder); }
::-moz-placeholder { color: var(--acec-placeholder); }
:-ms-input-placeholder { color: var(--acec-placeholder); }
::placeholder { color: var(--acec-placeholder); }

/* Secondary Buttons (Cancel, Close, View) */
.btn-secondary, .btn-cancel, .btn-view, .btn-close {
    background-color: var(--acec-btn-secondary-bg, rgba(0,0,0,0)) !important;
    border: var(--border-width) solid var(--acec-gold) !important;
    color: var(--acec-navy) !important;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-btn, 0.08em);
    border-radius: var(--radius-md);
    transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover, .btn-cancel:hover, .btn-view:hover, .btn-close:hover {
    background-color: var(--acec-gold) !important;
    color: var(--acec-navy) !important;
}

/* BADGES */
.badge-type {
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.35em 1em;
    box-shadow: 0 2px 8px rgba(33,49,56,0.10);
    font-family: var(--font-main);
}
.committee-card[data-type="Appointed Committee"] .badge-type {
    background: var(--acec-gold-dark);
    color: #000;
}
.committee-card[data-type="Open Committee"] .badge-type {
    background: var(--acec-gold-dark);
    color: #000;
    border: none;
}

/* View buttons: transparent, gold border, navy text */
.view-committee-btn {
    background-color: rgba(0, 0, 0, 0) !important;
    border: 1.5px solid var(--acec-gold) !important;
    color: var(--acec-navy) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-md);
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.view-committee-btn:hover {
    border: 1.5px solid var(--acec-gold) !important;
    background-color: var(--acec-gold) !important;
    color: var(--acec-navy) !important;
}

/* Join/Apply buttons (card and modal): gold background, navy text */
.join-committee-btn, .apply-committee-btn, .login-committee-btn,
#joinCommitteeSubmitBtn, #applyCommitteeModal .btn-primary,
.committee-card .join-committee-btn, .committee-card .apply-committee-btn,
.membership-required-btn, .committee-card .membership-required-btn {
    background-color: var(--acec-gold) !important;
    border-color: var(--acec-gold) !important;
    color: var(--acec-navy) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-md) !important;
    transition: background 0.2s, color 0.2s;
}
.login-committee-btn {
    background-color: var(--acec-gold-dark) !important;
    border-color: var(--acec-gold-dark) !important;
}
.join-committee-btn:hover, .apply-committee-btn:hover, .login-committee-btn:hover,
 #joinCommitteeSubmitBtn:hover, #applyCommitteeModal .btn-primary:hover,
 .committee-card .join-committee-btn:hover, .committee-card .apply-committee-btn:hover,
 .membership-required-btn:hover, .committee-card .membership-required-btn:hover {
    background-color: var(--acec-gold) !important;
    color: var(--acec-navy) !important;
    opacity: 0.85;
}
.join-committee-btn, .apply-committee-btn, .login-committee-btn,
.committee-card .join-committee-btn, .committee-card .apply-committee-btn,
.membership-required-btn, .committee-card .membership-required-btn {
    border: var(--bs-btn-border-width) solid var(--acec-gold) !important;
}
#joinCommitteeCancelBtn,
#applyCommitteeModal .btn-secondary {
    border-radius: var(--radius-md);
}

.calendar-btn, .add-to-calendar-meeting-btn,
#nextMeetingCard .btn,
#committeeTabContent #exportMembersBtn {
    background-color: var(--acec-gold-dark) !important;
    border: var(--bs-btn-border-width) solid #cb8b11 !important;
    color: var(--acec-navy) !important;
    text-transform: capitalize;
    letter-spacing: 0.08em;
    border-radius: var(--radius-md);
    transition: background 0.2s, color 0.2s;
}
.calendar-btn:hover, .add-to-calendar-meeting-btn:hover,
#nextMeetingCard .btn:hover,
#committeeTabContent #exportMembersBtn:hover, #committeeTabContent #exportMeetingsBtn:active {
    background-color: var(--acec-gold) !important;
    border: var(--bs-btn-border-width) solid var(--acec-gold) !important;
    color: var(--acec-navy) !important;
}

#addToCalendarModal .calendar-btn {
    font-weight: 600 !important;
}

#joinCommitteeMessage .bi {
    font-size: 1.2rem;
}

#joinCommitteeMessage a, #applyCommitteeMessage a, .goto-profile .bi {
    color: var(--acec-gold);
}
.goto-profile {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
}

#applyCommitteePosition {
    height: auto;
}

#membershipRequiredModal .modal-dialog {
    top: 20%;
}

#overviewSpinner {
    min-height: 200px;
    position: absolute;
    top: 27%;
    left: 50%;
    z-index: 100;
}

@media only screen and (max-width: 992px) {
    .container, .container-lg, .container-md, .container-sm {
        max-width: 960px;
    }
}
@media only screen and (max-width: 960px) {
    .committee-banner-content p {
        font-size: 0.9rem;
    }
    .committee-banner-content h1 {
        font-size: 1.8rem;
    }
}
@media only screen and (max-width: 900px) {
    #discussionsIframeContainer,
    #discussionsIframeContainer iframe {
        min-height: 400px;
        height: 400px;
    }
    ul#committeeTab {
        font-size: 0.9rem;
    }
    .card-body {
        font-size: 0.9rem;
    }
    .badge-appointed {
        font-size: 0.8rem;
    }
    #committeeMessagesContainer .badge {
        font-size: 0.75rem;
    }
    #committeeMessagesContainer .list-group-item p {
        font-size: 0.8rem;
        line-height: 1.3rem;
    }
}
@media only screen and (max-width: 850px) {
    .committee-banner-content p {
        font-size: 0.85rem;
    }
    .committee-banner-content h1 {
        font-size: 1.5rem;
    }
}
@media only screen and (max-width: 770px) {
    .committee-banner {
        height: 150px;
    }
    .committee-banner-overlay {
        padding: 10px;
    }
    .committee-banner-content p {
        font-size: 0.8rem;
        line-height: 1.3rem;
    }
    .committee-banner-content h1 {
        font-size: 1.35rem;
    }
    .badge-appointed {
        font-size: 0.7rem;
        margin-bottom: 5px;
        padding: 1px 10px;
    }
    .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .export-btn-container {
        justify-content: flex-end;
        display: flex;
        align-items: center;
    }
    .table-responsive > .table > thead > tr > th, .table-responsive > .table > tbody > tr > th, .table-responsive > .table > tfoot > tr > th, .table-responsive > .table > thead > tr > td, .table-responsive > .table > tbody > tr > td, .table-responsive > .table > tfoot > tr > td {
        white-space: inherit !important;
    }
}

@media only screen and (max-width: 700px) {
    ul#committeeTab {
        font-size: var(--fs-sm);
    }
    .card-body {
        font-size: var(--fs-sm);
    }
    #ContentPane {
        padding: var(--sp-xl) var(--sp-xs) var(--sp-xxl) var(--sp-xs);
    }
    #membersTable .avatar-initials {
        width: 30px !important;
        height: 30px !important;
        font-size: var(--fs-xs);
        min-height: 30px;
    }
}
@media only screen and (max-width: 650px) {
    ul#committeeTab {
        font-size: var(--fs-sm);
    }
    .card-body {
        font-size: var(--fs-sm);
    }
    .table-responsive > .table > thead > tr > th, .table-responsive > .table > tbody > tr > th, .table-responsive > .table > tfoot > tr > th, .table-responsive > .table > thead > tr > td, .table-responsive > .table > tbody > tr > td, .table-responsive > .table > tfoot > tr > td {
        font-size: var(--fs-xs);
    }
    .list-action-buttons {
        min-width: 90px;
    }
    .list-action-buttons a {
        padding: 3px 5px 3px 5px;
        font-size: 0.8rem;
        margin-right: 0px !important;
    }
}
@media only screen and (max-width: 600px) {
    #discussionsIframeContainer,
    #discussionsIframeContainer iframe {
        min-height: var(--sp-table-td-lg);
        height: var(--sp-table-td-lg);
    }
}
@media only screen and (max-width: 578px) {
    .committee-banner {
        height: 170px;
    }
    .committee-banner-content h1 {
        line-height: 2rem;
    }
    .committee-banner-content p {
        line-height: 1.15rem;
    }
}
@media only screen and (max-width: 550px) {
    .committee-banner {
        height: 200px;
    }
    .committee-purpose-title, .committee-goals-title, .committee-objectives-title,
    #nextMeetingCard .card-header h4, #committeeLeadershipCard .card-header h4 {
        font-size: 1.35rem;
    }
    #committeePurpose, #committeeMission {
        line-height: 1.3rem;
        font-size: 0.8rem;
    }
    #committeeGoals li, #committeeObjectives li {
        font-size: 0.8rem;
    }
}
@media only screen and (max-width: 482px) {
    #membersTable .avatar {
        display: none;
    }
    .card-body {
        padding: var(--sp-xs);
    }
    #membersTable {
        font-size: var(--fs-xs);
    }
    .table-responsive > .table > thead > tr > th, .table-responsive > .table > tbody > tr > th, .table-responsive > .table > tfoot > tr > th, .table-responsive > .table > thead > tr > td, .table-responsive > .table > tbody > tr > td, .table-responsive > .table > tfoot > tr > td {
        font-size: var(--fs-xs);
    }
    .list-action-buttons {
        min-width: 80px;
    }
    .card-header-tabs .nav-link.active {
        margin-bottom: var(--sp-md);
    }
}
@media only screen and (max-width: 480px) {
    .committee-card .btn-outline-primary {
        font-size: 0.8rem;
    }
    .committee-meta-container .committee-meta {
        font-size: 0.85rem;
    }
}
@media only screen and (max-width: 420px) {
    .small-d-none-header {
        display: none;
    }
    .committee-banner-content h1 {
        line-height: 1.75rem;
    }
    .committee-banner-content p {
        line-height: 1rem;
        font-size: 0.8rem;
    }
    .badge-appointed {
        margin-bottom: 5px;
    }
    .nav-tabs .nav-link {
        font-size: var(--fs-xs);
    }
}
@media only screen and (max-width: 400px) {
    .list-action-buttons {
        text-align: end !important;
    }
}
@media only screen and (max-width: 380px) {
    .committee-banner-content h1 {
        line-height: 1.5rem;
    }
    .badge-appointed {
        margin-bottom: 10px;
    }
    button#exportMembersBtn {
        font-size: var(--fs-xs);
        padding: var(--sp-xs);
    }
    .export-btn-container {
        align-items: end;
    }
}

