body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--bs-primary) !important;
}

.site-nav-main .nav-link:hover {
    color: var(--bs-primary);
}

.hero-bg { background-color: #f8f9fa; }

.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    border-bottom: 1px solid #dee2e6;
}

.hero-badge {
    background-color: #e8f2ff;
    color: var(--bs-primary);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.cta-section {
    padding: 60px 0;
}

.survey-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.survey-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: #f0fdf4;
    color: #198754;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.icon-circle.alt {
    background-color: #fff3cd;
    color: #ffc107;
}

.newsletter-section {
    background-color: #0f172a;
    color: white;
    padding: 80px 0;
    margin-top: auto;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: var(--bs-primary);
}
.glass-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.site-nav-bar {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}

.site-nav-account {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.site-nav-main {
    gap: 0.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .navbar > .container.site-navbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        column-gap: 0.75rem;
    }

    .site-navbar .site-nav-bar {
        display: contents;
    }

    .site-navbar .navbar-brand {
        grid-column: 1;
        justify-self: start;
        margin-right: 0;
    }

    .site-navbar .navbar-collapse {
        grid-column: 2;
        flex-grow: 0;
        justify-content: center;
    }

    .site-nav-main {
        flex-direction: row;
        justify-content: center;
    }

    .site-navbar .site-nav-account {
        grid-column: 3;
        justify-self: end;
        margin-left: 0;
    }
}

.admin-nav > .dropdown > .nav-link {
    width: auto;
}

.media-card img {
    width: 100%;
    height: 8.5rem;
    object-fit: cover;
    background: #f8f9fa;
}

.media-picker img {
    width: 100%;
    height: 7rem;
    object-fit: cover;
    background: #f8f9fa;
}

.media-detail-preview {
    max-width: 100%;
    height: auto;
    max-height: 24rem;
}

.admin-nav .dropdown-menu {
    min-width: 12rem;
}

.blog-body {
    font-size: 1.05rem;
    line-height: 1.7;
}

.blog-body img {
    max-width: 100%;
    height: auto;
}

.consent-banner {
    position: sticky;
    bottom: 0;
    z-index: 1030;
}

.skip-link:focus {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1080;
    background: #fff;
    padding: 0.5rem 0.75rem;
}

.profile-menu-toggle {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.35rem;
    line-height: 1;
}

.profile-menu-toggle:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.dropdown-menu.profile-menu {
    width: 18rem;
    min-width: 18rem;
    max-width: calc(100vw - 1.25rem);
}

.profile-menu-summary {
    padding: 0.65rem 1rem 0.45rem;
    overflow-wrap: anywhere;
}

.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.25rem;
    margin-bottom: 2rem;
}

.profile-hero-photo {
    order: 2;
}

.profile-hero-identity {
    order: 1;
}

.profile-hero-teaching {
    order: 3;
}

.profile-hero-avatar {
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.profile-hero-avatar.profile-avatar-empty {
    font-size: 3.25rem;
}

.profile-bio a {
    color: inherit;
    pointer-events: none;
    text-decoration: none;
}

@media (min-width: 768px) {
    .profile-hero {
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 2rem;
        row-gap: 0.75rem;
        align-items: start;
    }

    .profile-hero-photo {
        order: 0;
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .profile-hero-identity,
    .profile-hero-teaching {
        order: 0;
        grid-column: 2;
    }

    .profile-hero-identity {
        grid-row: 1;
    }

    .profile-hero-teaching {
        grid-row: 2;
    }

    .profile-hero-avatar {
        width: 14rem;
        height: 14rem;
    }

    .profile-hero-avatar.profile-avatar-empty {
        font-size: 5rem;
    }
}

.profile-avatar,
.profile-menu-avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.profile-menu-avatar {
    width: 2.25rem;
    height: 2.25rem;
}

.profile-avatar-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e7f1ff;
    color: #0d6efd;
    font-size: 1.75rem;
}

.profile-completeness {
    position: static;
}

@media (min-width: 992px) {
    .profile-completeness {
        position: sticky;
        top: 5.25rem;
    }
}

.share-list-head,
.share-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 11rem;
    align-items: center;
    column-gap: 1rem;
}

.share-list-head {
    padding-bottom: 0.35rem;
    margin-bottom: 0.15rem;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
}

.share-list-head span:last-child {
    justify-self: start;
}

.share-row {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f3f5;
}

.share-row .form-check {
    margin-bottom: 0;
    min-height: 1.5rem;
}

.share-public-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.45rem 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    color: #495057;
    background: #fff;
    border: 1px solid #adb5bd;
}

.share-public-btn .share-state-on {
    display: none;
}

.btn-check:checked + .share-public-btn {
    color: #fff;
    background: #0d6efd;
    border-color: #0d6efd;
}

.btn-check:checked + .share-public-btn .share-state-off {
    display: none;
}

.btn-check:checked + .share-public-btn .share-state-on {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-check:focus-visible + .share-public-btn {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.35);
}

.share-public-btn:hover {
    color: #212529;
    background: #f8f9fa;
    border-color: #6c757d;
}

.btn-check:checked + .share-public-btn:hover {
    color: #fff;
    background: #0b5ed7;
    border-color: #0a58ca;
}

.profile-description {
    min-height: 28rem;
}

.faq-category + .faq-category {
    margin-top: 2.5rem;
}

.faq-item {
    border-bottom: 1px solid #dee2e6;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.faq-item[open] summary::after {
    transform: rotate(225deg);
}

.faq-answer {
    padding: 0 0 1.1rem;
}

.faq-sort-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.faq-sort-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f5;
}

.faq-handle {
    width: 1.5rem;
    color: #6c757d;
    cursor: grab;
    user-select: none;
}

.faq-sort-item.is-dragging {
    opacity: 0.45;
}

.member-search-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
}

.member-search-row .form-control {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.member-search-row .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.member-filter-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.15rem;
    height: 3.15rem; /* Ensure consistent height matching the search input */
    padding: 0.4rem;
    overflow: hidden;
}

.member-filter-toggle img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
    pointer-events: none;
}

.member-filter-count {
    position: absolute;
    top: 0.15rem;
    right: 0.1rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #0d6efd;
    color: #fff;
    font-size: 0.7rem;
    line-height: 1.15rem;
    text-align: center;
}

.member-filter-intro {
    margin: 0 0 0.85rem;
}

.member-filter-panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.member-filter-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #e6e6e6;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.member-filter-heading {
    margin: 0;
    padding: 0.85rem 1rem 0.65rem;
    border-bottom: 1px solid #ececec;
    font-size: 1rem;
    font-weight: 700;
}

.member-filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 16rem;
    overflow-y: auto;
    padding: 0.7rem 0.9rem 0.85rem;
}

.member-filter-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    font-size: 0.98rem;
    font-weight: 500;
}

.member-filter-choice input {
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

@media (max-width: 767.98px) {
    .member-filter-panels {
        grid-template-columns: 1fr;
    }
}