/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1f2937;
    background-color: #f0f4f8;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #1a56db;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #003366;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: #003366;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

p {
    margin-bottom: 1em;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    line-height: 1.4;
}

.btn-primary {
    background: #003366;
    color: #fff;
    border-color: #003366;
}

.btn-primary:hover {
    background: #002244;
    border-color: #002244;
    color: #fff;
}

.btn-secondary {
    background: #1a56db;
    color: #fff;
    border-color: #1a56db;
}

.btn-secondary:hover {
    background: #1545b8;
    border-color: #1545b8;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #003366;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

body.menu-open {
    overflow: hidden;
}

/* ===== Header ===== */
.site-header {
    background: #003366;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
}

.custom-logo-link {
    display: block;
    flex-shrink: 0;
}

.custom-logo {
    width: auto;
    height: auto;
}

.site-title-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    display: flex;
    flex-direction: column;
    color: #fff;
    text-decoration: none;
}

.site-title:hover {
    color: #FF9933;
}

.site-title-main {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.site-title-sub {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    white-space: nowrap;
}

/* Navigation */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.main-nav {
    display: flex;
    align-items: center;
}

#primary-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

#primary-menu > li {
    position: relative;
}

#primary-menu > li > a {
    display: block;
    padding: 8px 16px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.2s;
}

#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a {
    background: rgba(255,255,255,0.12);
    color: #FF9933;
}

#primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 999;
    padding: 6px 0;
}

#primary-menu li:hover > .sub-menu {
    display: block;
}

#primary-menu .sub-menu a {
    display: block;
    padding: 10px 18px;
    color: #1f2937;
    font-size: 0.9rem;
    transition: background 0.2s;
}

#primary-menu .sub-menu a:hover {
    background: #f0f4f8;
    color: #003366;
}

/* ===== Page Header ===== */
.page-header {
    background: #e8edf3;
    padding: 14px 0;
    border-bottom: 1px solid #d1d9e6;
}

/* ===== Breadcrumb ===== */
.bjm-breadcrumb {
    font-size: 0.85rem;
    color: #6b7280;
}

.bjm-breadcrumb a {
    color: #1a56db;
}

.bjm-breadcrumb a:hover {
    color: #003366;
    text-decoration: underline;
}

.bjm-breadcrumb span {
    color: #374151;
    font-weight: 500;
}

/* ===== Content Area ===== */
.content-area {
    padding: 40px 0;
}

.content-wrap {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.content-wrap.full-width {
    grid-template-columns: 1fr;
}

/* ===== Post List ===== */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post-item {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.post-title {
    margin-bottom: 8px;
}

.post-title a {
    color: #003366;
}

.post-title a:hover {
    color: #1a56db;
}

.post-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.post-excerpt {
    color: #4b5563;
}

.read-more {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== Pagination ===== */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 3px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.pagination a {
    background: #fff;
    color: #003366;
    border: 1px solid #d1d9e6;
}

.pagination a:hover {
    background: #003366;
    color: #fff;
    border-color: #003366;
}

.pagination .current {
    background: #003366;
    color: #fff;
    border: 1px solid #003366;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #003366 0%, #1a56db 100%);
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.04)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Stats Section ===== */
.stats-section {
    background: #fff;
    padding: 60px 0;
    border-bottom: 1px solid #e5e7eb;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #003366;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: #6b7280;
    margin-top: 4px;
}

/* ===== About Snippet ===== */
.about-snippet {
    padding: 60px 0;
    text-align: center;
    background: #f0f4f8;
}

.about-snippet p {
    max-width: 800px;
    margin: 0 auto 24px;
    color: #4b5563;
    font-size: 1.1rem;
}

/* ===== Members Section ===== */
.latest-members {
    padding: 60px 0;
    background: #fff;
}

.latest-members h2,
.about-snippet h2 {
    text-align: center;
    margin-bottom: 32px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.members-cta {
    text-align: center;
    margin-top: 32px;
}

.no-members,
.no-results {
    text-align: center;
    color: #6b7280;
    padding: 40px;
    grid-column: 1 / -1;
}

/* ===== Member Card ===== */
.member-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e5e7eb;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.member-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.member-card-photo {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #e5e7eb;
}

.member-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #003366, #1a56db);
}

.member-initials {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.member-card-info {
    padding: 14px;
}

.member-name {
    font-size: 1rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-level {
    font-size: 0.85rem;
    color: #1a56db;
    font-weight: 500;
    margin-bottom: 2px;
}

.member-state {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.member-phone {
    font-size: 0.85rem;
    color: #374151;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, #003366 0%, #1a56db 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 28px;
    font-size: 1.1rem;
}

/* ===== Footer ===== */
.site-footer {
    background: #002244;
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-tagline {
    font-style: italic;
}

#footer-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#footer-menu a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color 0.2s;
}

#footer-menu a:hover {
    color: #FF9933;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact li {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.contact-icon {
    margin-right: 6px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom p {
    margin: 0;
}

/* ===== Associate Profile (single) ===== */
.associate-profile-header {
    display: flex;
    gap: 28px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.associate-photo {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
}

.associate-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.associate-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #003366, #1a56db);
    border-radius: 12px;
}

.associate-initials {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

.associate-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.associate-name {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.associate-level {
    font-size: 1.1rem;
    color: #1a56db;
    font-weight: 600;
    margin-bottom: 6px;
}

.associate-state {
    font-size: 0.95rem;
    color: #6b7280;
}

.meta-label {
    font-weight: 600;
    color: #374151;
}

.associate-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.detail-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 1rem;
    color: #1f2937;
}

.associate-bio h2 {
    margin-bottom: 16px;
}

.associate-bio p {
    color: #4b5563;
}

/* ===== Level Cards (Hierarchy) ===== */
.hierarchy-levels {
    margin-bottom: 40px;
}

.level-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.level-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.level-card:hover {
    border-color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,51,102,0.12);
}

.level-card-content h3 {
    color: #003366;
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.level-count,
.level-children {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
}

.level-arrow {
    font-size: 1.4rem;
    color: #1a56db;
    font-weight: 700;
}

/* ===== Associate Filters ===== */
.associate-filters {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.filter-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 160px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.filter-group select,
.filter-group input {
    padding: 10px 12px;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    background: #fff;
}

.filter-actions {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.filter-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.filter-actions .btn-outline {
    border-color: #d1d9e6;
    color: #6b7280;
}

.filter-actions .btn-outline:hover {
    border-color: #003366;
    color: #003366;
    background: transparent;
}

/* ===== Page Templates ===== */

/* About Page */
.page-about {
    padding: 40px 0;
}

.about-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #003366, #1a56db);
    border-radius: 12px;
    color: #fff;
}

.about-hero h1 {
    color: #fff;
}

.about-tagline {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.9;
    margin-top: 12px;
}

.about-section {
    margin-bottom: 40px;
}

.about-section p {
    color: #4b5563;
    font-size: 1.05rem;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 16px;
}

.objective-card {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.objective-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.objective-card h3 {
    margin-bottom: 8px;
}

.objective-card p {
    font-size: 0.95rem;
    color: #6b7280;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 16px;
}

.achievement-item {
    background: #fff;
    padding: 28px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.achievement-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #003366;
    margin-bottom: 4px;
}

.achievement-label {
    font-size: 0.9rem;
    color: #6b7280;
}

/* President Page */
.page-president {
    padding: 40px 0;
}

.president-profile {
    display: flex;
    gap: 32px;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 32px;
}

.president-image {
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    background: #e5e7eb;
}

.president-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.president-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #003366, #1a56db);
}

.placeholder-initials {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.president-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.president-details h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.president-role-main {
    font-size: 1.15rem;
    color: #1a56db;
    font-weight: 600;
    margin-bottom: 4px;
}

.president-role-sub {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 20px;
}

.president-contact-card {
    background: #f0f4f8;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.president-contact-card h3 {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.president-contact-card p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #003366;
    margin: 0;
}

.president-bio {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.president-bio h2 {
    margin-bottom: 12px;
    margin-top: 24px;
}

.president-bio h2:first-child {
    margin-top: 0;
}

.president-bio p {
    color: #4b5563;
    margin-bottom: 16px;
}

.president-bio ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.president-bio ul li {
    color: #4b5563;
    margin-bottom: 8px;
}

.president-quote {
    background: #f0f4f8;
    border-left: 4px solid #FF9933;
    padding: 20px 24px;
    margin: 24px 0 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #003366;
}

.president-quote cite {
    display: block;
    margin-top: 8px;
    font-style: normal;
    font-weight: 600;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Contact Page */
.page-contact {
    padding: 40px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
    margin-top: 24px;
}

.contact-info {
    background: #fff;
    padding: 28px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.contact-detail {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.contact-detail-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-detail strong {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 2px;
}

.contact-detail p {
    color: #1f2937;
    font-weight: 500;
    margin: 0;
}

.contact-social {
    margin-top: 24px;
}

.contact-form-wrap {
    background: #fff;
    padding: 28px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 6px;
}

.required {
    color: #dc2626;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Join Page */
.page-join {
    padding: 40px 0;
}

.page-join h1 {
    text-align: center;
    margin-bottom: 8px;
}

.join-intro {
    text-align: center;
    color: #6b7280;
    margin-bottom: 32px;
}

.bjm-join-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.form-success {
    background: #d1fae5;
    color: #065f46;
    padding: 16px 24px;
    border-radius: 8px;
    border: 1px solid #a7f3d0;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.form-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 16px 24px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

/* ===== 404 ===== */
.error-404 {
    padding: 100px 0;
    text-align: center;
}

.error-content h1 {
    font-size: 6rem;
    color: #003366;
    margin-bottom: 16px;
    line-height: 1;
}

.error-content p {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 24px;
}

/* ===== Archive Title ===== */
.archive-title {
    margin-bottom: 24px;
}

/* ===== Archive States (state taxonomy) ===== */
.state-members {
    margin-top: 40px;
}

.level-members {
    margin-top: 24px;
}

/* ===== Sidebar ===== */
.sidebar {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.widget {
    margin-bottom: 24px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #003366;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .members-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }

    .president-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .president-image {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #003366;
        z-index: 1000;
        justify-content: center;
        align-items: flex-start;
        padding-top: 80px;
    }

    .main-nav.open {
        display: flex;
    }

    #primary-menu {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    #primary-menu > li > a {
        padding: 14px 20px;
        font-size: 1.1rem;
    }

    #primary-menu .sub-menu {
        position: static;
        background: rgba(255,255,255,0.08);
        box-shadow: none;
        border-radius: 0;
        display: block;
        padding: 0;
    }

    #primary-menu .sub-menu a {
        color: rgba(255,255,255,0.8);
        padding-left: 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .associate-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .associate-photo {
        width: 150px;
        height: 150px;
    }

    .associate-details-grid {
        grid-template-columns: 1fr;
    }

    .filter-form {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .content-wrap {
        grid-template-columns: 1fr;
    }

    .associate-filters {
        padding: 16px;
    }

    .stats-section {
        padding: 40px 0;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .members-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .site-title-main {
        font-size: 1rem;
    }

    .level-cards {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: 1fr 1fr;
    }

    .president-image {
        width: 160px;
        height: 160px;
    }

    .bjm-join-form {
        padding: 20px;
    }
}
