.unified-directory {
    margin: 2rem 0;
}
.unified-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.alumni-card {
    background: white;
    border: 1px solid #fbbf24 !important;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}
.alumni-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid var(--enfold-header-color-border) !important;
}
.alumni-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.alumni-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}
.alumni-name-link {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}
.alumni-name-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}
.alumni-name-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}
.alumni-card a:not(.alumni-name-link) {
    position: relative;
    z-index: 1;
}
.alumni-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}
.badge-registered {
    background: #dbeafe;
    color: #1e40af;
}
.badge-legacy {
    background: #fef3c7;
    color: #92400e;
}
.alumni-info {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}
.alumni-info-row {
    margin-bottom: 0.5rem;
}
.alumni-info-label {
    font-weight: 600;
    color: #4b5563;
}
.unified-directory-filters {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: visible;
}
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}
.filters-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}
.filters-icon {
    font-size: 1.25rem;
}
.filters-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s;
}
.filters-toggle:hover {
    background: #e5e7eb;
}
.toggle-icon {
    transition: transform 0.2s;
}
.filters-content {
    padding: 1.5rem;
    transition: all 0.3s ease;
    max-height: 1000px;
    opacity: 1;
    overflow: visible;
}
.filters-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 1.5rem;
    overflow: hidden;
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.filter-field {
    display: flex;
    flex-direction: column;
    position: relative;
}
.filter-field label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}
.filter-field select,
.year-display-input {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
}
.filter-field select:focus,
.year-display-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.year-selector {
    position: relative;
    z-index: 10;
}
.year-display-input {
    width: 100%;
    cursor: pointer;
    background: white;
}
.year-dropdown-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6b7280;
}
.year-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    margin-top: 0.25rem;
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow: hidden;
}
.year-dropdown.active {
    display: block;
}
.year-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}
.year-dropdown-header span {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
}
.year-clear-all {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
}
.year-clear-all:hover {
    text-decoration: underline;
}
.year-checkboxes {
    max-height: 240px;
    overflow-y: auto;
    padding: 0.5rem;
}
.year-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}
.year-checkbox:hover {
    background: #f3f4f6;
}
.year-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.year-checkbox span {
    font-size: 0.875rem;
    color: #374151;
}
.filter-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}
.filter-btn-apply {
    background: #ffca13;
    color: #4b2f0b;
    border: none;
}
.filter-btn-apply:hover {
    background: #4b2f0b;
    color: #fbbf24;
}
.filter-btn-clear {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
}
.filter-btn-clear:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}
.active-filters {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}
.active-filters strong {
    font-size: 0.875rem;
    color: #6b7280;
    display: block;
    margin-bottom: 0.5rem;
}
.active-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ACF Switch Styling - Exact Match */
.filter-field-switch {
    display: flex;
    flex-direction: column;
}
.filter-field-switch > label {
    margin-bottom: 0.5rem;
}
.acf-true-false {
    border: 1px solid rgba(0,0,0,0);
}
.acf-true-false:focus-within {
    border: 1px solid #399ccb;
    border-radius: 120px;
}
.acf-true-false label {
    display: flex;
    align-items: center;
    justify-items: center;
    margin: 0;
}
.acf-switch-input {
    opacity: 0;
    position: absolute;
    margin: 0;
}
.acf-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: fit-content;
    max-width: 100%;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    background: #f5f5f5;
    height: 30px;
    vertical-align: middle;
    border: #ccd0d4 solid 1px;
    transition: background .25s ease, border-color .25s ease;
}
.acf-switch span {
    display: inline-block;
    float: left;
    text-align: center;
    font-size: 13px;
    line-height: 22px;
    padding: 4px 10px;
    min-width: 15px;
}
.acf-switch .acf-switch-on {
    color: #fff;
    text-shadow: #007cba 0 1px 0;
    overflow: hidden;
}
.acf-switch .acf-switch-off {
    overflow: hidden;
}
.acf-switch .acf-switch-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    bottom: 2px;
    right: 50%;
    z-index: 1;
    background: #fff;
    border-radius: 3px;
    border: #ccd0d4 solid 1px;
    transition: all .25s ease;
    transition-property: left, right, border-color;
}
.acf-switch:hover,
.acf-switch.-focus {
    border-color: #0071a1;
    background: #f3f5f6;
    color: #016087;
}
.acf-switch:hover .acf-switch-slider,
.acf-switch.-focus .acf-switch-slider {
    border-color: #0071a1;
}
.acf-switch.-on {
    background: #0d99d5;
    border-color: #007cba;
}
.acf-switch.-on .acf-switch-slider {
    left: 50%;
    right: 2px;
    border-color: #007cba;
}
.acf-switch.-on:hover {
    border-color: #007cba;
}

.directory-stats {
    text-align: center;
    padding: 1rem;
    background: #eff6ff;
    border-radius: 6px;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #1e40af;
}

/* Alumni Profile Page */
.alumni-profile {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}
.alumni-profile-back {
    margin-bottom: 1rem;
}
.back-to-directory {
    display: inline-flex;
    align-items: center;
    color: #5c4a3a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.back-to-directory:hover {
    color: #3a2a1a;
    text-decoration: underline;
}
.alumni-profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    background: #f0ebe0;
    border: 1px solid #d9d0c1;
    padding: 2rem 2.5rem;
}
.alumni-profile-sidebar {
    display: flex;
    flex-direction: column;
}
.profile-photo-wrapper {
    margin-bottom: 1.5rem;
}
.profile-photo-wrapper img.profile-photo {
    width: 100%;
    max-width: 190px;
    height: auto;
    display: block;
}
.profile-photo-placeholder {
    width: 100%;
    max-width: 190px;
    aspect-ratio: 3 / 4;
    background: #d4c8b8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-photo-placeholder svg {
    width: 100%;
    height: 100%;
}
.sidebar-section {
    margin-bottom: 1.15rem;
}
.sidebar-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4a3728;
    margin: 0 0 0.3rem 0;
    line-height: 1.3;
}
.sidebar-info-row {
    margin-bottom: 0.3rem;
}
.sidebar-info-with-icon {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}
.sidebar-icon {
    color: #6b5b4b;
    display: flex;
    flex-shrink: 0;
    margin-top: 0.2rem;
}
.sidebar-info-text {
    font-size: 0.85rem;
    color: #4a3728;
    line-height: 1.5;
    margin: 0;
}
.sidebar-info-text a {
    color: #4a3728;
    text-decoration: underline;
}
.sidebar-info-text a:hover {
    color: #2a1a0a;
}
.sidebar-info-secondary {
    font-size: 0.8rem;
    color: #7a6a5a;
    margin: 0.1rem 0 0 0;
}
.sidebar-badge {
    font-size: 0.8rem;
    color: #7a6a5a;
}
/* Profile Main Content */
.alumni-profile-main {
    min-width: 0;
}
.alumni-profile-main .profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #4a3728;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}
.profile-honors-section {
    margin-top: 1.5rem;
}
.profile-honors-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.profile-honor-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}
.profile-years-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #5c4a3a;
    margin-bottom: 1rem;
}
.profile-years-summary strong {
    color: #4a3728;
}
.profile-content-section {
    margin-top: 1.5rem;
}
.profile-content-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4a3728;
    margin: 0 0 0.6rem 0;
}
.profile-content-text {
    font-size: 0.95rem;
    color: #4a3728;
    line-height: 1.7;
}
.camp_memories_header {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #d4c8b8;
}
.camp_memories_header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #4a3728;
    margin: 0;
}
.alumni-profile-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}
/* Pagination */
.uad-pagination {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}
.uad-pagination-btn {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: #ffca13;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: #374151 !important;
    transition: all 0.2s;
}
.uad-pagination-btn:hover {
    background: #4b2f0b;
    color: #ffca13 !important;
    text-decoration: none;
}
.uad-pagination-info {
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
}

/* Featured Alumni Landing (logged-out) */
.uad-restricted-message {
    padding: 150px 30px 80px 30px;
    background: url(/wp-content/uploads/2026/01/textured-CTA-box-2.png) 50% 50% no-repeat scroll;
}

.uad-login-btn {
    background-color: #ffca13;
    border-color: #ffca13 !important;
    color: #4b2f0b !important;
    border-style: none;
    border-radius: 0 0 0 0;
    transition: all 0.4s ease-in-out;
    padding: 10px 10px 5px 15px;
    font-family: 'bushcraft', Helvetica, Arial, sans-serif !important;
}
.uad-login-btn:hover {
    background: #4b2f0b;
    color: #ffca13 !important;
    text-decoration: none;
}
.uad-featured-label {
    font-size: 1.15rem;
    font-weight: 700;
    color: #4b2f0b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ffca13;
}

/* In Memoriam - Deceased Alumni */
.uad-memorial-banner {
    background: #1f2937;
    color: #d1d5db;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border-left: 3px solid #9ca3af;
}
.uad-memorial-badge {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    margin-top: 0.35rem;
    width: fit-content;
}

@media (max-width: 768px) {
    .alumni-profile-layout {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .alumni-profile-main .profile-name {
        font-size: 1.4rem;
    }
    .profile-photo-placeholder {
        max-width: 160px;
    }
}

/* Featured Alumni Shortcode */
.uad-featured-alumni {
    background: #f3f1e6;
    padding: 40px 0;
}
.uad-featured-alumni .uad-featured-heading {
    text-align: center;
    margin-bottom: 30px;
}
.uad-featured-alumni .uad-featured-title {
    font-size: 30px;
    font-weight: 700;
    color: #4b2f0b;
    margin: 0 0 0.15em;
}
.uad-featured-alumni .uad-featured-subtitle {
    font-size: 14px;
    color: #4b2f0b;
    opacity: 0.65;
    margin: 0;
}
.uad-featured-alumni .uad-featured-layout {
    display: flex;
    align-items: center;
    max-width: 1210px;
    margin: 0 auto;
    gap: 0;
    background: white;
}
.uad-featured-alumni .uad-featured-photo {
    flex: 0 0 33.333%;
    padding: 30px;
    text-align: center;
}
.uad-featured-alumni .uad-featured-photo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.uad-featured-alumni .uad-featured-photo-placeholder {
    max-width: 340px;
    margin: 0 auto;
}
.uad-featured-alumni .uad-featured-photo-placeholder svg {
    width: 100%;
    height: auto;
    display: block;
}
.uad-featured-alumni .uad-featured-content {
    flex: 0 0 66.666%;
    padding: 30px;
}
.uad-featured-alumni .uad-featured-name {
    font-size: 30px;
    font-weight: 700;
    color: #4b2f0b;
    margin: 0 0 0.25em;
}
.uad-featured-alumni .uad-featured-years {
    font-size: 16px;
    color: #4b2f0b;
    margin-bottom: 1em;
    opacity: 0.75;
}
.uad-featured-alumni .uad-featured-excerpt {
    font-size: 20px;
    line-height: 33px;
    color: #4b2f0b;
    margin-bottom: 1.5em;
}
.uad-featured-alumni .uad-featured-profile-link {
    display: inline-block;
    background: #ffca13;
    color: #4b2f0b !important;
    padding: 8px 15px;
    font-size: 20px;
    font-family: bushcraft, Helvetica, Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 0;
    transition: background 0.2s;
}
.uad-featured-alumni .uad-featured-profile-link:hover {
    background: #e6b610;
    color: #4b2f0b !important;
    text-decoration: none !important;
}
@media (max-width: 767px) {
    .uad-featured-alumni .uad-featured-layout {
        flex-direction: column;
    }
    .uad-featured-alumni .uad-featured-photo,
    .uad-featured-alumni .uad-featured-content {
        flex: 0 0 100%;
        padding: 15px 30px;
    }
    .uad-featured-alumni .uad-featured-photo {
        max-width: 250px;
        margin: 0 auto;
    }
    .uad-featured-alumni .uad-featured-content {
        text-align: center;
    }
}
