@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');
/* ==========================================================================
   JAA Website — Design tokens
   Palette drawn directly from the JAA emblem: maroon figures, navy seal text, gold sun
   ========================================================================== */
:root {
    /* ---- JAA white & blue theme ---- */
    --navy-900: #0a3a82;   /* deep blue: header, headings */
    --navy-800: #124fa8;   /* mid blue: dropdowns */
    --navy-700: #1565d8;   /* brand blue: links, buttons */
    --navy-100: #e6efff;   /* pale blue tint */
    --gold-500: #8fc9ff;   /* light-blue accent (hover text on dark blue) */
    --gold-600: #0f55c0;   /* link hover on white */
    --sky: #f2f7ff;        /* alternate section / admin background */
    --paper: #ffffff;
    --ink: #1b2430;
    --ink-soft: #55627a;
    --line: #dbe5f4;
    --white: #ffffff;
    --success: #1f7a4d;
    --danger: #b3341f;

    --font-display: 'Merriweather', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Sans 3', 'Segoe UI', Roboto, Arial, sans-serif;

    --radius: 4px;
    --shadow-sm: 0 1px 3px rgba(10, 58, 130, 0.10);
    --shadow-md: 0 4px 16px rgba(10, 58, 130, 0.16);
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-900); line-height: 1.25; margin: 0 0 0.5em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
    background: var(--navy-900);
    border-bottom: 3px solid var(--gold-500);
    position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between;  }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--gold-500); color: var(--navy-900);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 900; font-size: 15px;
    border: 2px solid var(--white);
}
.brand-logo-img {    flex-shrink: 0;
    height: 125px;
    background: white;}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 23px; }
.brand-sub { color: #cfe0fb; font-size: 13px; letter-spacing: 0.3px; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
    color: #dbe4f0; font-weight: 600; font-size: 14.5px;
    padding: 10px 14px; border-radius: var(--radius);
    transition: background 0.15s, color 0.15s;
}
.site-nav a:hover, .site-nav a.active { background: rgba(143,201,255,0.18); color: var(--gold-500); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }

/* ---------- Nav dropdown (Announcements / Documents) ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    background: none; border: none; cursor: pointer; font-family: inherit;
    color: #dbe4f0; font-weight: 600; font-size: 14.5px;
    padding: 10px 14px; border-radius: var(--radius);
    display: inline-flex; align-items: center; gap: 6px;
    transition: background 0.15s, color 0.15s;
}
.nav-dropdown-toggle .caret { font-size: 10px; line-height: 1; transition: transform 0.15s; }
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown.active-group .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle {
    background: rgba(143,201,255,0.18); color: var(--gold-500);
}
.nav-dropdown.open .nav-dropdown-toggle .caret { transform: rotate(180deg); }
.nav-dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; margin-top: 0; min-width: 230px;
    background: var(--navy-800); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 6px; z-index: 150;
}
.nav-dropdown-menu a {
    display: block; padding: 9px 12px; border-radius: var(--radius);
    white-space: nowrap; color: #dbe4f0; font-weight: 600; font-size: 14.5px;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a.active { background: rgba(143,201,255,0.18); color: var(--gold-500); }
.nav-dropdown.open .nav-dropdown-menu { display: block; }
html:not(.js) .nav-dropdown:hover .nav-dropdown-menu { display: block; }   /* no-JavaScript fallback */

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none; flex-direction: column; width: 100%;
        background: var(--navy-800); position: absolute; left: 0; top: 100%;
        padding: 10px 20px 16px; box-shadow: var(--shadow-md);
    }
    .site-nav.open { display: flex; }
    .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
    .nav-dropdown-menu {
        display: none; position: static; width: 100%; margin-top: 2px;
        background: rgba(0,0,0,0.15); box-shadow: none; border: none;
    }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
    color: var(--white);
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; right: -80px; top: -80px;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(143,201,255,0.28), transparent 70%);
}
.hero .eyebrow {
    text-transform: uppercase; letter-spacing: 2px; font-size: 12.5px;
    color: var(--gold-500); font-weight: 700; margin-bottom: 14px; display: block;
}
.hero h1 { color: var(--white); font-size: clamp(28px, 4vw, 42px); max-width: 720px; }
.hero p { color: #cdd8e8; max-width: 620px; font-size: 17px; }
.hero .badges { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero .badge {
    border: 1px solid rgba(255,255,255,0.25); color: #e7edf5;
    padding: 6px 14px; border-radius: 999px; font-size: 13px;
}
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; z-index: 1; }
.hero-text { flex: 1; min-width: 0; }
.hero-logo {
    width: 176px; height: 176px; border-radius: 50%; flex-shrink: 0;
    background: var(--white); padding: 8px; border: 3px solid var(--gold-500);
    box-shadow: var(--shadow-md);
}
@media (max-width: 800px) {
    .hero-inner { flex-direction: column-reverse; text-align: center; gap: 20px; }
    .hero-logo { width: 130px; height: 130px; }
    .hero .badges { justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--sky); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 10px; }
.section-head h2 { font-size: 26px; }
.section-head .see-all { font-weight: 600; font-size: 14px; }
.eyebrow-line {
    display: inline-block; width: 42px; height: 3px; background: var(--gold-500);
    margin-bottom: 10px;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow-sm); transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .date-tag {
    display: inline-block; font-size: 12px; font-weight: 700; color: var(--navy-700);
    background: var(--navy-100); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ---------- Committee ---------- */
.committee-category { margin-bottom: 36px; }
.committee-category h3 {
    font-size: 16px; text-transform: uppercase; letter-spacing: 1px;
    color: var(--gold-600); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 18px;
}
.member-card {
    display: flex; align-items: center; gap: 14px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
}
.member-avatar {
    width: 200px; height: 200px; border-radius: 10%; background: var(--navy-100);
    color: var(--navy-800); display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: 16px; flex-shrink: 0;
    overflow: hidden;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-weight: 700; color: var(--navy-900); font-size: 15px; }
.member-role { font-size: 13px; color: var(--gold-600); font-weight: 600; }
.member-dept { font-size: 13px; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--navy-100); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px;
    background: linear-gradient(to top, rgba(10,58,130,0.85), transparent);
    color: var(--white); font-size: 13px;
}

/* ---------- Gallery: event albums ---------- */
.back-link { display: inline-block; margin-bottom: 18px; font-weight: 600; font-size: 14px; color: var(--navy-700); }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.event-card {
    display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.15s, box-shadow 0.15s;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.event-card-cover { position: relative; aspect-ratio: 4/3; background: var(--navy-100); overflow: hidden; }
.event-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.event-card:hover .event-card-cover img { transform: scale(1.06); }
.event-card-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.event-card-count {
    position: absolute; right: 10px; bottom: 10px; background: rgba(10,58,130,0.82); color: var(--white);
    font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.event-card-body { padding: 14px 16px; }
.event-card-body h3 { font-size: 17px; margin: 0 0 6px; }
.event-card-body p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Gallery: Facebook-style album viewer ---------- */
.fb-album { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.fb-album-info {
    background: var(--navy-900); color: #e8ecf3; border-radius: var(--radius);
    padding: 22px 20px; position: sticky; top: 90px;
}
.fb-album-info h1 { color: var(--white); font-size: 21px; margin: 0 0 8px; }
.fb-album-meta { font-size: 12.5px; color: #b9c3d6; margin: 0 0 14px; }
.fb-album-desc { font-size: 14px; line-height: 1.65; color: #dbe4f0; }
.fb-album-viewer { min-width: 0; }
.fb-viewer-main {
    position: relative; background: #0d0d10; border-radius: var(--radius); overflow: hidden;
    display: flex; align-items: center; justify-content: center; min-height: 320px;
}
.fb-viewer-main img { width: 100%; max-height: 78vh; object-fit: contain; display: block; background: #0d0d10; }
.fb-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(0,0,0,0.45); color: var(--white); font-size: 16px;
    display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.fb-nav-btn:hover { background: rgba(0,0,0,0.7); }
.fb-nav-btn.prev { left: 14px; }
.fb-nav-btn.next { right: 14px; }
.fb-counter {
    position: absolute; top: 12px; right: 14px; background: rgba(0,0,0,0.5); color: var(--white);
    font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.fb-photo-caption { padding: 10px 2px 0; font-size: 14px; color: var(--ink); min-height: 20px; }
.fb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 2px; scrollbar-width: thin; }
.fb-thumb {
    width: 68px; height: 68px; object-fit: cover; border-radius: var(--radius); cursor: pointer;
    opacity: 0.55; flex-shrink: 0; border: 2px solid transparent; transition: opacity 0.15s, border-color 0.15s;
}
.fb-thumb:hover { opacity: 0.85; }
.fb-thumb.active { opacity: 1; border-color: var(--gold-500); }

@media (max-width: 900px) {
    .fb-album { grid-template-columns: 1fr; }
    .fb-album-info { position: static; }
    .fb-viewer-main img { max-height: 55vh; }
    .fb-nav-btn { width: 36px; height: 36px; }
}

/* ---------- Guidelines list ---------- */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 18px; margin-bottom: 12px;
}
.doc-item .doc-icon {
    width: 38px; height: 38px; border-radius: var(--radius); background: var(--navy-100);
    color: var(--navy-800); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.doc-title { font-weight: 600; color: var(--navy-900); }
.doc-meta { font-size: 12.5px; color: var(--ink-soft); }
.btn {
    display: inline-block; background: var(--navy-800); color: var(--white);
    padding: 8px 16px; border-radius: var(--radius); font-weight: 600; font-size: 14px;
    border: none; cursor: pointer;
}
.btn:hover { background: var(--navy-700); color: var(--white); }
.btn-gold { background: var(--navy-700); color: var(--white); }
.btn-gold:hover { background: var(--navy-900); color: var(--white); }
.btn-outline { background: transparent; border: 1px solid var(--navy-700); color: var(--navy-700); }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 5px 12px; font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c3cede; padding: 32px 0 10px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer-links a { color: #dbe4f0; }
.footer-copy { font-size: 12.5px; color: #8ea0bb; padding: 18px 0 4px; text-align: center; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 20px; }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: 40px 20px; color: var(--ink-soft); }
.empty-state .icon { font-size: 34px; margin-bottom: 10px; }

/* ---------- Embedded PDF viewer (Rules & Regulations / Societies Act) ---------- */
.pdf-frame-wrap {
    width: 100%; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.pdf-frame-wrap iframe { display: block; width: 100%; height: 85vh; border: 0; }
.pdf-fallback { padding: 18px 20px; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 800px) {
    .pdf-frame-wrap iframe { height: 65vh; }
}

/* ---------- Forms (public + admin shared basics) ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy-900); }
input[type=text], input[type=password], input[type=date], input[type=email], input[type=file], input[type=tel], input[type=search], input[type=number], input[type=url], textarea, select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
    font-family: var(--font-body); font-size: 14.5px; background: var(--white);
}
textarea { resize: vertical; min-height: 120px; }

/* ---------- Alerts / flash ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: 14.5px; }
.alert-success { background: #e7f4ec; color: var(--success); border: 1px solid #bfe3cc; }
.alert-error { background: #fbe9e6; color: var(--danger); border: 1px solid #f2c3ba; }

/* ---------- Page content typography ---------- */
.prose { max-width: 780px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }


/* ==========================================================================
   v2 additions — association look, members area, notices, gallery, security UI
   ========================================================================== */
[hidden] { display: none !important; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.hint { font-weight: 400; color: var(--ink-soft); font-size: 12.5px; }
.container.narrow { max-width: 860px; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 999;
    background: var(--gold-500); color: var(--navy-900); padding: 8px 14px; font-weight: 700; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 30px; }
.inline-form { display: inline; margin: 0; }
.inline-form-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.inline-form-row input[type=text], .inline-form-row input[type=email], .inline-form-row input[type=tel], .inline-form-row select { width: auto; flex: 1 1 200px; }
.linklike {
    background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
    color: var(--navy-700); font: inherit; font-weight: 600; text-decoration: none;
}
.linklike:hover { color: var(--gold-600); text-decoration: underline; }
.linklike.danger, .danger.linklike { color: var(--danger); }
.flash-wrap { padding-top: 16px; }
.flash-wrap:empty { display: none; }
.alert-info { background: #e9eefb; color: #1f3a7a; border: 1px solid #c5d3f2; }
.alert a { color: inherit; text-decoration: underline; }

/* ---------- Header additions ---------- */
.brand-text { min-width: 0; }
.nav-cta {
    background: var(--gold-500); color: var(--navy-900) !important; margin-left: 6px;
}
.site-nav a.nav-cta:hover { background: var(--gold-600); color: var(--navy-900); }
.nav-member-btn { position: relative; }
.bell-count {
    display: inline-block; min-width: 19px; height: 19px; line-height: 19px; padding: 0 5px;
    border-radius: 999px; background: var(--gold-500); color: var(--navy-900);
    font-size: 11.5px; font-weight: 800; text-align: center; margin-right: 4px; vertical-align: middle;
}
.nav-menu-right { left: auto; right: 0; }
.menu-logout { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 6px; padding: 8px 12px 4px; }
.menu-logout .linklike { color: #ffd2cc; }
.menu-logout .linklike:hover { color: var(--white); }
@media (max-width: 1180px) {
    .site-nav a, .nav-dropdown-toggle { padding: 9px 9px; font-size: 14px; }
    .brand-title { font-size: 20px; }
}
@media (max-width: 900px) {
    .brand-logo-img { height: 64px; }
    .brand-title { font-size: 17px; }
    .brand-sub { font-size: 11.5px; }
    .nav-menu-right { right: auto; }
    .nav-cta { margin: 8px 0 0; text-align: center; }
    .menu-logout { padding-left: 12px; }
}

/* ---------- Buttons ---------- */
.btn { text-align: center; line-height: 1.3; text-decoration: none; font-family: inherit; }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn-block { display: block; width: 100%; padding: 11px 16px; font-size: 15.5px; }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-outline:hover { background: var(--navy-100); color: var(--navy-900); }
.btn[disabled], .btn.is-busy { opacity: 0.6; cursor: wait; }
.btn-google {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    background: var(--white); color: #3c4043; border: 1px solid #c9ced6; border-radius: var(--radius);
    padding: 11px 16px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-sm);
}
.btn-google:hover { background: #f6f8fb; color: #202124; box-shadow: var(--shadow-md); }
.g-mark {
    width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; color: #fff; font-family: Arial, sans-serif;
    background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0);
}
.or-line { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 13px; margin: 18px 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 4px; }
@media (max-width: 800px) { .hero-cta { justify-content: center; } }

/* ---------- Pills ---------- */
.pill-lock { background: #e3eeff; color: #0f4aa0; }
.pill-warn { background: #fde8d6; color: #a04a00; }
.pill.on-dark { background: var(--gold-500); color: var(--navy-900); }
.pill-no.pill { background: #eef0f3; }

/* ---------- Home: stats strip, tiles, notices ---------- */
.stats-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-inner { display: flex; justify-content: center; flex-wrap: wrap; }
.stat { flex: 1 1 160px; text-align: center; padding: 20px 14px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: 26px; color: var(--navy-800); line-height: 1.2; }
.stat span { font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.8px; }
@media (max-width: 600px) { .stat { flex-basis: 50%; border-right: 0; border-bottom: 1px solid var(--line); } }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile {
    display: flex; flex-direction: column; gap: 4px; padding: 22px 20px; background: var(--white);
    border: 1px solid var(--line); border-top: 3px solid var(--gold-500); border-radius: var(--radius);
    color: var(--ink-soft); font-size: 14px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--ink-soft); }
.tile strong { color: var(--navy-900); font-family: var(--font-display); font-size: 16.5px; }
.tile-ico { font-size: 28px; line-height: 1.2; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

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

.notice-card { display: flex; flex-direction: column; }
.notice-card h3 a { color: var(--navy-900); }
.notice-card h3 a:hover { color: var(--navy-700); }
.notice-card p { flex: 1; }
.notice-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.notice-tags .date-tag { margin-bottom: 0; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.lock-banner {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    background: #eef5ff; border: 1px solid #c9dcf7; border-left: 4px solid var(--gold-500);
    border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px;
}
.lock-banner > div { flex: 1 1 240px; }
.lock-ico { font-size: 26px; }

.member-card-v { flex-direction: column; text-align: center; padding: 22px 14px; gap: 6px; }
.member-avatar.big { width: 86px; height: 86px; font-size: 26px; border: 3px solid var(--gold-500); margin-bottom: 4px; }

.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #e7edf5; padding: 44px 0; margin-top: 20px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-inner h2 { color: var(--white); margin-bottom: 6px; }
.cta-inner p { margin: 0; max-width: 640px; color: #d5deec; }
.cta-inner > div { flex: 1 1 360px; }

/* ---------- Notice detail ---------- */
.notice-full { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.notice-full h1 { font-size: 26px; margin-bottom: 14px; }
.notice-body { max-width: none; overflow-wrap: anywhere; }
.notice-body img { max-width: 100%; height: auto; }
.notice-body table { border-collapse: collapse; max-width: 100%; }
.notice-body td, .notice-body th { border: 1px solid var(--line); padding: 6px 10px; }
.attachment-box {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; padding: 14px 16px;
    background: var(--paper); border: 1px dashed #b9cbe6; border-radius: var(--radius);
}
.attachment-box > div:nth-child(2) { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.attachment-box .doc-icon {
    width: 42px; height: 42px; border-radius: var(--radius); background: var(--navy-100); color: var(--navy-800);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px;
}

/* ---------- Filter bar / pager ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-bar input[type=text], .filter-bar input[type=search], .filter-bar input[type=email], .filter-bar select, .filter-bar input[type=date] { width: auto; flex: 1 1 160px; max-width: 320px; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 26px 0 6px; }
.pager a {
    min-width: 36px; padding: 6px 12px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--white); font-weight: 600; font-size: 14px;
}
.pager a:hover { border-color: var(--navy-700); }
.pager a.current { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

/* ---------- Auth (login / unsubscribe) ---------- */
.login-section { padding: 48px 0 60px; }
.auth-card {
    max-width: 440px; margin: 0 auto; background: var(--white); border: 1px solid var(--line);
    border-top: 4px solid var(--gold-500); border-radius: 8px; padding: 32px 30px; box-shadow: var(--shadow-md);
}
.auth-card h1 { font-size: 24px; text-align: center; margin-bottom: 4px; }
.auth-logo { width: 84px; height: 84px; object-fit: contain; margin: 0 auto 10px; }
.auth-sub { text-align: center; color: var(--ink-soft); margin: 0 0 20px; font-size: 14.5px; }
.auth-help { color: var(--ink-soft); font-size: 13px; margin: 20px 0 0; text-align: center; }
.auth-links { text-align: center; margin-top: 14px; font-size: 14px; }
.code-input { font-size: 26px !important; letter-spacing: 8px; text-align: center; font-family: 'Courier New', monospace; font-weight: 700; }
.code-input.small-code { font-size: 18px !important; letter-spacing: 4px; width: 9em !important; flex: 0 0 auto !important; }
.login-note { text-align: center; color: var(--ink-soft); font-size: 12.5px; margin: 8px 0 0; }

/* ---------- Members area ---------- */
.member-subnav { background: var(--navy-800); border-bottom: 1px solid rgba(255,255,255,0.1); }
.member-subnav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.member-subnav-inner::-webkit-scrollbar { display: none; }
.member-subnav a {
    color: #e5d3d8; padding: 11px 15px; font-size: 14px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent;
}
.member-subnav a:hover { color: var(--white); }
.member-subnav a.active { color: var(--gold-500); border-bottom-color: var(--gold-500); }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.panel h2 { font-size: 19px; margin: 0; }
.panel h3 { font-size: 16.5px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head a { font-size: 13.5px; font-weight: 600; }

.row-link { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 6px; border-bottom: 1px solid var(--line); color: var(--ink); }
.row-link:last-of-type { border-bottom: 0; }
.row-link:hover { background: #f2f7ff; color: var(--ink); }
.row-title { font-weight: 700; color: var(--navy-900); overflow-wrap: anywhere; }
.row-sub { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; overflow-wrap: anywhere; }
.row-date { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; flex-shrink: 0; }
.row-link.notif { justify-content: flex-start; align-items: center; }
.row-link.notif > div { flex: 1; min-width: 0; }
.row-link.notif.unread { background: #eef5ff; border-left: 3px solid var(--gold-500); }
.row-link.notif.unread .row-title::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--gold-600); }
.notif-icon { font-size: 22px; width: 36px; text-align: center; flex-shrink: 0; }

.welcome-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.welcome-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.welcome-id h1 { font-size: 26px; }
.welcome-stats { display: flex; gap: 12px; }
.mini-stat {
    display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 10px 16px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.25;
}
.mini-stat strong { font-family: var(--font-display); font-size: 26px; color: var(--navy-800); }
.mini-stat:hover { border-color: var(--gold-500); color: var(--ink-soft); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .dash-grid { grid-template-columns: 1fr; } }
.album-mini { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--ink); }
.album-mini-img { width: 64px; height: 48px; border-radius: var(--radius); overflow: hidden; background: var(--navy-100); flex-shrink: 0; }
.album-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.quick-links, .plain-list { list-style: none; margin: 0; padding: 0; }
.quick-links li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.quick-links li:last-child { border-bottom: 0; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.plain-list li:last-child { border-bottom: 0; }

.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--navy-100); vertical-align: middle; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-text { background: var(--navy-800); color: var(--gold-500); font-family: var(--font-display); font-weight: 700; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 13.5px; font-weight: 600;
}
.chip:hover { border-color: var(--navy-700); color: var(--navy-700); }
.chip.active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.chip-n { background: rgba(0,0,0,0.08); border-radius: 999px; padding: 0 7px; font-size: 12px; }
.chip.active .chip-n { background: rgba(255,255,255,0.22); }

/* Discussions */
.topic-list { padding: 0; overflow: hidden; }
.topic-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover { background: #f2f7ff; color: var(--ink); }
.topic-main { flex: 1; min-width: 0; }
.topic-title { font-weight: 700; color: var(--navy-900); font-size: 16px; overflow-wrap: anywhere; }
.topic-meta { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.topic-stats { text-align: right; flex-shrink: 0; font-size: 13px; }
.topic-stats strong { font-family: var(--font-display); font-size: 18px; color: var(--navy-800); }
@media (max-width: 560px) { .topic-row { flex-wrap: wrap; } .topic-stats { text-align: left; width: 100%; } }

.thread-head { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.narrow > h1 { font-size: 26px; margin-bottom: 16px; }
.post { display: flex; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.post.first-post { border-left: 4px solid var(--gold-500); box-shadow: var(--shadow-sm); }
.post-main { flex: 1; min-width: 0; }
.post-meta { font-size: 14px; margin-bottom: 8px; }
.post-body { overflow-wrap: anywhere; }
.post-body p { margin: 0 0 12px; }
.post-body blockquote { margin: 0 0 12px; padding: 6px 12px; border-left: 3px solid var(--line); color: var(--ink-soft); background: var(--paper); }
.post-body a { text-decoration: underline; }
.post-actions { margin-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.post-deleted { opacity: 0.7; background: #f2f7ff; }
.mod-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: #eef5ff; border: 1px solid #c9dcf7; border-radius: var(--radius); padding: 8px 14px; margin: 12px 0 18px; font-size: 13.5px; }
.mod-bar .linklike { font-size: 13.5px; }
.replies-title { font-size: 19px; margin: 24px 0 12px; }
.reply-box { margin-top: 20px; }
.reply-box textarea { min-height: 130px; }
@media (max-width: 560px) { .post { flex-direction: column; gap: 8px; } }

/* Directory */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.dir-card { display: flex; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.dir-body { min-width: 0; }
.dir-name { font-weight: 700; color: var(--navy-900); }
.dir-meta { font-size: 13px; color: var(--gold-600); font-weight: 600; }
.dir-dept { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 4px; }
.dir-contact { font-size: 13.5px; overflow-wrap: anywhere; }
.directory-filter { margin-bottom: 8px; }

/* Profile */
.profile-head { display: flex; gap: 18px; align-items: center; }
.profile-head h2 { margin-bottom: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 18px; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check.block { display: flex; margin: 8px 0; }
.check input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--navy-800); }
.check-row { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 16px; }
.panel table.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
.panel table.plain th, .panel table.plain td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.panel table.plain th { color: var(--navy-900); font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; }
.table-scroll { overflow-x: auto; }

/* ---------- Gallery additions ---------- */
.event-card-date { font-size: 12.5px; font-weight: 700; color: var(--gold-600); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.event-card-lock { position: absolute; left: 10px; top: 10px; background: var(--gold-500); color: var(--navy-900); font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.view-toggle { display: inline-flex; border: 1px solid rgba(255,255,255,0.35); border-radius: var(--radius); overflow: hidden; margin: 6px 0 12px; }
.view-toggle button { background: transparent; border: 0; color: #e8ecf3; padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.view-toggle button.active { background: var(--gold-500); color: var(--navy-900); }
.fb-hint { font-size: 12px; color: #b9c3d6; margin: 6px 0 0; }
.fb-full-btn { position: absolute; left: 12px; top: 10px; z-index: 5; width: 34px; height: 34px; border: 0; border-radius: var(--radius); background: rgba(0,0,0,0.45); color: var(--white); font-size: 17px; cursor: pointer; }
.fb-full-btn:hover { background: rgba(0,0,0,0.7); }
.fb-caption-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.fb-caption-row .fb-photo-caption { padding: 0; flex: 1; }
.fb-viewer-main:fullscreen { border-radius: 0; }
.fb-viewer-main:fullscreen img { max-height: 100vh; height: 100vh; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.album-grid-item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--navy-100); }
.album-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.album-grid-item:hover img { transform: scale(1.07); }

/* Lightbox overlay (main.js) */
.lb-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(8,6,8,0.93); display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 94vw; max-height: 90vh; object-fit: contain; box-shadow: 0 8px 40px rgba(0,0,0,0.6); }
.lb-btn { position: absolute; background: rgba(255,255,255,0.14); border: 0; color: var(--white); cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 20px; }
.lb-btn:hover { background: rgba(255,255,255,0.3); }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 16px; top: 16px; font-size: 28px; line-height: 1; }

/* ---------- Footer ---------- */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 28px; font-size: 14px; }
.footer-about { display: flex; gap: 14px; align-items: flex-start; line-height: 1.55; }
.footer-logo { width: 62px; height: 62px; object-fit: contain; background: var(--white); border-radius: 50%; padding: 3px; flex-shrink: 0; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col h4 { color: var(--gold-500); font-size: 13.5px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 6px; }
.footer-col a { color: #dbe4f0; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--gold-500); }
.footer-admin { opacity: 0.6; font-size: 13px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: span 2; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .footer-about { grid-column: auto; } }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header, .site-footer, .member-subnav, .cta-band, .hero-cta { display: none !important; }
    body { background: #fff; }
}

/* ---------- Pills (shared by public, members and admin pages) ---------- */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.pill-yes { background: #e7f4ec; color: var(--success); }
.pill-no { background: #eef0f3; color: var(--ink-soft); }

/* ---------- Header: fit the longer menu on one row ---------- */
.header-inner { gap: 16px; }
.brand { flex-shrink: 0; }
.brand-logo-img { height: 76px; width: auto; }
.brand-title { font-size: 19px; white-space: nowrap; }
.brand-sub { font-size: 12px; white-space: nowrap; }
.site-nav { align-items: center; flex-wrap: nowrap; justify-content: flex-end; }
.site-nav a, .nav-dropdown-toggle { padding: 8px 7px; font-size: 14px; white-space: nowrap; }
.site-nav a.nav-cta { padding: 8px 12px; margin-left: 4px; }
@media (max-width: 1220px) {
    .header-inner { flex-wrap: wrap; }
    .nav-toggle { display: block; }
    .site-nav {
        display: none; flex-direction: column; align-items: stretch; width: 100%;
        background: var(--navy-800); position: absolute; left: 0; top: 100%;
        padding: 10px 20px 16px; box-shadow: var(--shadow-md);
    }
    .site-nav.open { display: flex; }
    .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
    .nav-dropdown-menu { display: none; position: static; width: 100%; margin-top: 2px; background: rgba(0,0,0,0.15); box-shadow: none; border: none; }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 900px) { .brand-logo-img { height: 60px; } .brand-title { font-size: 16px; white-space: normal; } .brand-sub { font-size: 11px; white-space: normal; } }

/* ==========================================================================
   v3 — white & blue theme touches
   ========================================================================== */
.hero .btn-gold, .cta-band .btn-gold { background: var(--white); color: var(--navy-900); }
.hero .btn-gold:hover, .cta-band .btn-gold:hover { background: var(--navy-100); color: var(--navy-900); }
.site-header { border-bottom-color: var(--gold-500); }
.stats-strip { background: var(--sky); }
.alert-success { background: #e8f5ee; }

/* ---------- Menu fix: no dead gap between the button and its sub-menu ---------- */
.nav-dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-dropdown-menu { margin-top: 0 !important; border-top: 0; }
.nav-dropdown.open .nav-dropdown-toggle .caret { transform: rotate(180deg); }
.nav-dropdown-menu a { cursor: pointer; }
@media (max-width: 1220px) { .nav-dropdown-menu::before { display: none; } }
.site-nav a.nav-cta { background: var(--white); color: var(--navy-900); border-radius: 999px; padding: 8px 16px; }
.site-nav a.nav-cta:hover { background: var(--navy-100); color: var(--navy-900); }

/* ---------- Members area: left sidebar, content on the right, no top menu bar ---------- */
.member-topstrip .header-inner { min-height: 60px; }
.member-topstrip .brand-logo-img { height: 44px; }
.msb-toggle { display: none; }
.msb-layout { display: flex; align-items: flex-start; min-height: calc(100vh - 140px); }
.msb {
    width: 250px; flex-shrink: 0; background: var(--white); border-right: 1px solid var(--line);
    position: sticky; top: 66px; align-self: flex-start; max-height: calc(100vh - 66px); overflow-y: auto; padding: 14px 0 20px;
}
.msb-user { display: flex; align-items: center; gap: 10px; padding: 6px 18px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.msb-user strong { display: block; font-size: 14.5px; color: var(--navy-900); line-height: 1.25; }
.msb-user span { font-size: 12.5px; color: var(--ink-soft); }
.msb-nav a {
    display: flex; align-items: center; gap: 10px; padding: 10px 18px; color: var(--ink); font-weight: 600; font-size: 14.5px;
    border-left: 3px solid transparent;
}
.msb-nav a:hover { background: var(--sky); color: var(--navy-700); }
.msb-nav a.active { background: var(--navy-100); border-left-color: var(--navy-700); color: var(--navy-900); }
.msb-ico { width: 22px; text-align: center; font-size: 16px; }
.msb-nav .bell-count { margin-left: auto; }
.msb-sep { height: 1px; background: var(--line); margin: 8px 18px; }
.msb-logout { padding: 6px 18px; }
.msb-logout .linklike { color: var(--danger); font-weight: 700; }
.msb-content { flex: 1; min-width: 0; background: var(--sky); }
.msb-content .container { max-width: 1040px; padding: 0 28px; margin: 0; }
.msb-content .container.narrow { max-width: 900px; }
.msb-flash { padding: 14px 28px 0; }
.msb-content .section { padding-top: 26px; }
.msb-shell .site-footer { margin-top: 0; }
@media (max-width: 900px) {
    .msb-toggle { display: block; }
    .msb-layout { display: block; }
    .msb { display: none; position: static; width: 100%; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
    .msb.open { display: block; }
    .msb-content .container { padding: 0 16px; }
    .msb-flash { padding: 12px 16px 0; }
}

/* ==========================================================================
   Page-builder content (shown on the website AND inside the editor)
   ========================================================================== */
.prose .pb-center, .prose h2.pb-center, .prose h3.pb-center, .prose h4.pb-center { text-align: center; }
.pb-text { margin: 0 0 1em; }
.pb-columns { display: grid; gap: 24px; margin: 0 0 1.4em; }
.pb-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pb-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .pb-cols-2, .pb-cols-3 { grid-template-columns: 1fr; } }
.pb-col > :first-child { margin-top: 0; }
.pb-image { margin: 0 0 1.4em; }
.pb-image img { max-width: 100%; height: auto; border-radius: var(--radius); display: block; }
.pb-image figcaption { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }
.pb-image.pb-align-center { text-align: center; } .pb-image.pb-align-center img { margin: 0 auto; }
.pb-image.pb-align-wide img { width: 100%; }
.pb-image.pb-align-left { float: left; max-width: 46%; margin: 4px 24px 12px 0; }
.pb-image.pb-align-right { float: right; max-width: 46%; margin: 4px 0 12px 24px; }
@media (max-width: 640px) { .pb-image.pb-align-left, .pb-image.pb-align-right { float: none; max-width: 100%; margin: 0 0 1.2em; } }
.pb-btn-row { margin: 0 0 1.3em; } .pb-btn-row.pb-align-center { text-align: center; } .pb-btn-row.pb-align-right { text-align: right; }
.pb-btn { display: inline-block; padding: 10px 22px; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid var(--navy-700); }
.pb-btn-primary { background: var(--navy-700); color: var(--white); } .pb-btn-primary:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.pb-btn-outline { background: transparent; color: var(--navy-700); } .pb-btn-outline:hover { background: var(--navy-100); color: var(--navy-900); }
.pb-callout { padding: 14px 18px; border-radius: var(--radius); border-left: 4px solid var(--navy-700); background: var(--navy-100); margin: 0 0 1.3em; }
.pb-callout-success { background: #e8f5ee; border-left-color: var(--success); }
.pb-callout-warn { background: #fff4e0; border-left-color: #d98a00; }
.pb-callout > :first-child { margin-top: 0; } .pb-callout > :last-child { margin-bottom: 0; }
.pb-spacer.pb-sp-s { height: 14px; } .pb-spacer.pb-sp-m { height: 34px; } .pb-spacer.pb-sp-l { height: 64px; }
.prose::after { content: ""; display: block; clear: both; }
.prose img { max-width: 100%; height: auto; }

/* ==========================================================================
   Visual editor (WYSIWYG + drag-and-drop builder)
   ========================================================================== */
.jw { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 14px; }
.jw-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; background: var(--sky); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.jw-btn { border: 1px solid var(--line); background: var(--white); color: var(--navy-900); border-radius: 3px; padding: 4px 9px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; line-height: 1.3; }
.jw-btn:hover { background: var(--navy-100); border-color: var(--navy-700); }
.jw-btn.on { background: var(--navy-700); color: var(--white); border-color: var(--navy-700); }
.jw-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.jw-area { min-height: 140px; padding: 12px 14px; outline: none; overflow-wrap: anywhere; }
.jw-area:focus { box-shadow: inset 0 0 0 2px rgba(21,101,216,0.25); }
.jw-area > :first-child { margin-top: 0; }
.jw-source { width: 100%; min-height: 320px; border: 0; border-top: 1px solid var(--line); padding: 12px; font-family: Consolas, Menlo, monospace; font-size: 13px; resize: vertical; }
.jb-palette { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; background: var(--sky); border-bottom: 1px solid var(--line); }
.jb-palette-title { width: 100%; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--navy-900); }
.jb-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-soft); font-size: 12.5px; }
.jb-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: grab; user-select: none; color: var(--navy-900); }
.jb-chip:hover, .jb-chip:focus { border-color: var(--navy-700); background: var(--navy-100); outline: none; }
.jb-chip-ico { font-size: 15px; width: 18px; text-align: center; }
.jb-canvas { padding: 14px; min-height: 260px; background: #fafcff; }
.jb-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; box-shadow: var(--shadow-sm); }
.jb-block:hover { border-color: #9dbcec; }
.jb-block.jb-dragging { opacity: .4; }
.jb-bar { display: flex; align-items: center; gap: 8px; padding: 5px 8px; background: var(--sky); border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.jb-handle { cursor: grab; font-size: 18px; color: var(--navy-700); padding: 0 6px; user-select: none; line-height: 1; }
.jb-type { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-soft); }
.jb-tools { margin-left: auto; display: flex; gap: 3px; }
.jb-tool { border: 1px solid transparent; background: transparent; color: var(--navy-900); border-radius: 3px; width: 28px; height: 26px; cursor: pointer; font-size: 15px; line-height: 1; }
.jb-tool:hover { background: var(--white); border-color: var(--line); }
.jb-tool-del:hover { color: var(--danger); }
.jb-body { padding: 10px 12px; }
.jb-body .jw-area { min-height: 70px; border: 1px dashed var(--line); border-radius: 3px; }
.jb-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.jb-body select, .jb-input { padding: 6px 8px; border: 1px solid var(--line); border-radius: 3px; font: inherit; font-size: 14px; background: var(--white); }
.jb-input { width: 100%; margin-bottom: 8px; display: block; }
.jb-check { font-size: 13.5px; display: inline-flex; gap: 5px; align-items: center; }
.jb-heading { padding: 6px 8px; border: 1px dashed var(--line); border-radius: 3px; outline: none; font-family: var(--font-display); color: var(--navy-900); }
.jb-heading:empty::before { content: attr(data-ph); color: #9aa8bf; }
.jb-heading.jb-h2 { font-size: 26px; } .jb-heading.jb-h3 { font-size: 21px; } .jb-heading.jb-h4 { font-size: 17px; }
.jb-heading.jb-centered { text-align: center; }
.jb-cols { display: grid; gap: 12px; margin-top: 8px; }
.jb-cols-2 { grid-template-columns: 1fr 1fr; } .jb-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 720px) { .jb-cols-2, .jb-cols-3 { grid-template-columns: 1fr; } }
.jb-imgprev { background: var(--sky); border: 1px dashed var(--line); border-radius: 3px; padding: 10px; text-align: center; margin-bottom: 8px; }
.jb-imgprev img { max-height: 220px; margin: 0 auto; border-radius: 3px; }
.jb-drop { height: 6px; background: var(--navy-700); border-radius: 3px; margin: 0 0 10px; box-shadow: 0 0 0 3px rgba(21,101,216,.2); }
.jb-empty { text-align: center; color: var(--ink-soft); padding: 46px 12px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--white); }
.jb-hr { border: 0; border-top: 2px solid var(--line); margin: 6px 0; }

/* ---------- Events ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin: 6px 0 22px; flex-wrap: wrap; }
.tab { padding: 10px 18px; font-weight: 700; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab:hover { color: var(--navy-700); }
.tab.active { color: var(--navy-900); border-bottom-color: var(--navy-700); }
.event-list { display: grid; gap: 16px; }
.event-card { display: flex; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.event-card.is-past { opacity: .93; }
.event-badge { flex: 0 0 78px; height: 92px; background: var(--navy-700); color: var(--white); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; text-align: center; }
.event-card.is-past .event-badge { background: #6b7a93; }
.event-badge strong { font-size: 30px; font-family: var(--font-display); }
.event-badge span { font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.event-badge em { font-style: normal; font-size: 12px; opacity: .85; }
.event-body { flex: 1; min-width: 0; }
.event-body h3 { margin: 0 0 6px; font-size: 18px; }
.event-meta { color: var(--ink-soft); font-size: 14.5px; margin: 2px 0; }
.event-sum { margin: 8px 0 10px; }
.event-card-detail { margin-bottom: 18px; }
.lead { font-size: 18px; color: var(--ink-soft); }
@media (max-width: 560px) { .event-card { flex-direction: column; } .event-badge { flex-basis: auto; height: auto; padding: 8px; flex-direction: row; gap: 8px; justify-content: flex-start; } }

/* ---------- Past committees / former office bearers ---------- */
.committee-past { margin-top: 40px; padding-top: 10px; border-top: 1px solid var(--line); }
.past-term { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 0 16px 12px; }
.past-term summary { cursor: pointer; font-weight: 700; color: var(--navy-900); padding: 12px 0; font-family: var(--font-display); }
.past-term h3 { margin-top: 14px; font-size: 16px; }
.bearer-section { margin-bottom: 34px; }
.bearer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.bearer-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; padding: 16px 12px 18px; box-shadow: var(--shadow-sm); }
.bearer-photo { width: 124px; height: 150px; margin: 0 auto 12px; border-radius: 4px; overflow: hidden; background: var(--navy-100); display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--navy-700); font-family: var(--font-display); }
.bearer-photo img { width: 100%; height: 100%; object-fit: cover; }
.bearer-name { font-weight: 700; color: var(--navy-900); }
.bearer-dept { color: var(--ink-soft); font-size: 14px; }
.bearer-term { display: inline-block; margin-top: 8px; background: var(--navy-100); color: var(--navy-900); font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }

/* ---------- Invoice ---------- */
.invoice-sheet { background: var(--white); border: 1px solid var(--line); padding: 26px; border-radius: var(--radius); }
.invoice-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border-bottom: 3px solid var(--navy-700); padding-bottom: 14px; margin-bottom: 18px; }
.invoice-title { margin-left: auto; font-weight: 800; letter-spacing: 1px; color: var(--navy-700); }
@media print { .no-print, .msb, .member-topstrip { display: none !important; } .msb-layout { display: block; } .invoice-sheet { border: 0; padding: 0; } }

/* ---------- Payment page ---------- */
.pay-head { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; border-radius: var(--radius) var(--radius) 0 0; padding: 14px 18px; display: flex; gap: 12px; align-items: center; }
.pay-head span { color: #cfe3ff; font-size: 13.5px; } .pay-head strong { font-size: 18px; }
.pay-step { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.pay-panel { border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.pay-sum { width: 100%; border-collapse: collapse; margin: 10px 0 16px; } .pay-sum td { padding: 8px 4px; border-bottom: 1px solid var(--line); } .pay-sum td:last-child { text-align: right; white-space: nowrap; }
.pay-total td { font-weight: 800; font-size: 18px; color: var(--navy-900); border-bottom: 0; }
.pay-label { font-size: 12px; font-weight: 700; letter-spacing: .6px; color: var(--ink-soft); margin: 8px 0; }
.pay-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pay-tab { border: 2px solid var(--line); border-radius: 8px; padding: 10px 18px; font-weight: 700; cursor: pointer; background: #fff; }
.pay-tab input { position: absolute; opacity: 0; pointer-events: none; }
.pay-tab.on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pay-box { background: #f4f9ff; border: 1.5px solid #9dbcec; border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.pay-box-title { font-size: 12.5px; font-weight: 800; letter-spacing: .5px; color: var(--navy-900); border-bottom: 1px solid #c9dcf7; padding-bottom: 8px; margin-bottom: 10px; }
.pay-upi { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.pay-qr { text-align: center; } .pay-qr canvas { background: #fff; border: 2px solid #9dbcec; border-radius: 8px; padding: 6px; max-width: 100%; height: auto; } .pay-qr small { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 4px; }
.pay-kv { border-collapse: collapse; flex: 1; min-width: 260px; } .pay-kv th { text-align: left; font-size: 12px; color: var(--ink-soft); letter-spacing: .4px; padding: 7px 14px 7px 0; white-space: nowrap; } .pay-kv td { padding: 5px 10px 5px 0; }
.pay-tip { font-size: 13.5px; color: var(--ink-soft); }
.pay-items { display: grid; gap: 10px; }
.pay-item { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.pay-item.is-off { background: var(--sky); } .pay-item-amt { font-weight: 800; font-size: 18px; color: var(--navy-900); text-align: right; } .pay-item-amt small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
@media (max-width: 640px) { .pay-item { grid-template-columns: 1fr; } .pay-item-amt { text-align: left; } }

/* ===== Members area: friendlier, more interactive (added) ===== */
.dash-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 18px; margin: 0 0 18px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s; }
.dash-search:focus-within { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(21,101,216,.15); }
.dash-search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 15.5px; background: transparent; min-width: 0; padding: 8px 0; }
.fee-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: 0 0 18px; border-radius: 10px; background: linear-gradient(90deg, #fff7e0, #fff); border: 1px solid #f1d58a; color: var(--ink); transition: transform .2s, box-shadow .2s; }
a.fee-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--ink); }
.fee-banner > span:nth-child(2) { flex: 1; }
.fee-banner .fee-ico { font-size: 26px; }
.fee-banner.is-over { background: linear-gradient(90deg, #ffe9e5, #fff); border-color: #f0a79a; }
.fee-banner.is-wait { background: linear-gradient(90deg, #e8f1ff, #fff); border-color: #b9d3fb; }
.fee-banner.is-ok { background: linear-gradient(90deg, #e6f6ee, #fff); border-color: #a9dcc0; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 0 0 24px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s; animation: tileIn .45s ease both; }
.tile:nth-child(2) { animation-delay: .04s; } .tile:nth-child(3) { animation-delay: .08s; } .tile:nth-child(4) { animation-delay: .12s; } .tile:nth-child(5) { animation-delay: .16s; } .tile:nth-child(6) { animation-delay: .2s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--navy-700); color: var(--ink); }
.tile-ico { width: 42px; height: 42px; display: grid; place-items: center; font-size: 22px; background: var(--navy-100); border-radius: 12px; margin-bottom: 6px; transition: transform .18s; }
.tile:hover .tile-ico { transform: scale(1.1) rotate(-4deg); }
.tile strong { color: var(--navy-900); font-size: 16px; }
.tile-sub { font-size: 12.5px; color: var(--ink-soft); }
@keyframes tileIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.msb-content .panel { transition: box-shadow .2s, transform .2s; border-radius: 12px; }
.msb-content .panel:hover { box-shadow: var(--shadow-md); }
.msb-content .row-link { border-radius: 8px; transition: background .15s, transform .15s; }
.msb-content .row-link:hover { transform: translateX(3px); }
.msb-nav a { transition: background .15s, padding-left .15s; }
.msb-nav a:hover { padding-left: 22px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.chip { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); font-weight: 600; font-size: 14px; transition: all .15s; }
.chip:hover { border-color: var(--navy-700); color: var(--navy-700); }
.chip.active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.pill-new { background: #ffe9a8; color: #6b4b00; }
.notice-card { transition: transform .18s, box-shadow .18s; border-radius: 12px; }
.notice-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pay-item { transition: box-shadow .18s, border-color .18s; }
.pay-item:hover { box-shadow: var(--shadow-md); border-color: var(--navy-700); }
@media (max-width: 560px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } .fee-banner { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .tile, .tile-ico, .panel, .row-link, .notice-card { animation: none !important; transition: none !important; } }

/* ===== Home page v2, top bar, grievance tickets, join (added) ===== */
.top-bar { background: #072b63; color: #cfe0ff; font-size: 13px; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.top-bar a { color: #cfe0ff; margin-right: 18px; }
.top-bar a:hover { color: #fff; }
.top-links a { margin: 0 0 0 18px; }
.top-links .top-grv { background: #1565d8; color: #fff; padding: 3px 12px; border-radius: 999px; font-weight: 700; }
.top-links .top-grv:hover { background: #2a79ec; }
.nav-join { border: 2px solid var(--gold-500); color: #fff; padding: 7px 14px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.nav-join:hover { background: rgba(255,255,255,.14); color: #fff; }
.hero-v2 .pillars { list-style: none; margin: 18px 0 8px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.hero-v2 .pillars li { border-left: 3px solid var(--gold-500); padding-left: 12px; }
.hero-v2 .pillars strong { display: block; color: #fff; }
.hero-v2 .pillars span { font-size: 14px; opacity: .85; }
.hero-link { color: var(--gold-500); font-weight: 700; }
.term-tag { font-family: var(--font-body); font-size: 14px; background: var(--navy-100); color: var(--navy-900); border-radius: 999px; padding: 2px 12px; margin-left: 8px; vertical-align: middle; }
.welcome-note { background: linear-gradient(135deg, #f2f7ff, #fff); border: 1px solid var(--line); border-left: 5px solid var(--navy-700); border-radius: 12px; padding: 26px 30px; box-shadow: var(--shadow-sm); }
.welcome-note p { font-size: 17px; max-width: 80ch; }
.welcome-by { font-weight: 700; color: var(--navy-900); }
.cta-two-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.cta-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; transition: transform .2s, background .2s; }
.cta-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.16); }
.cta-card h2 { margin: 0; font-size: 22px; }
.cta-card p { margin: 0 0 6px; opacity: .92; }
.cta-ico { font-size: 34px; }
.join-prompt { margin: 18px 0 4px; padding: 12px 14px; background: var(--navy-100); border-radius: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.gv-msg { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 12px 0; background: #fff; }
.gv-mine { background: #f7faff; }
.gv-staff { background: #effaf3; border-color: #bfe3cd; }
.gv-note { background: #fff8e6; border-color: #f1d58a; border-style: dashed; }
.gv-meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.gv-att { margin-top: 8px; font-size: 14px; }
@media (max-width: 700px) { .hero-v2 .pillars { grid-template-columns: 1fr; } .top-contact { display: none; } }
.cta-card h2 { color: #fff; }

/* Meet Our Team (home): big square photos, 3 on the first row, 4 below */
.team-grid { display: grid; gap: 24px; margin-bottom: 26px; }
.team-row-3 { grid-template-columns: repeat(3, 1fr); max-width: 960px; margin-left: auto; margin-right: auto; }
.team-row-4 { grid-template-columns: repeat(4, 1fr); }
.team-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 18px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo { width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, var(--navy-100), #cfe0ff); display: grid; place-items: center; margin-bottom: 12px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.team-photo span { font-family: var(--font-display); font-size: 56px; color: var(--navy-800); }
@media (max-width: 900px) { .team-row-4 { grid-template-columns: repeat(2, 1fr); } .team-row-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .team-row-3 { max-width: none; } .team-grid { gap: 14px; margin-bottom: 14px; } }
@media (max-width: 520px) {
    .team-row-3, .team-row-4 { grid-template-columns: repeat(2, 1fr); }      /* two small cards per row on phones, not one huge photo */
    .team-card { padding: 8px 8px 12px; border-radius: 12px; }
    .team-photo { margin-bottom: 8px; border-radius: 8px; }
    .team-card .member-name { font-size: .88rem; }
    .team-card .member-role, .team-card .member-dept { font-size: .76rem; }
}

/* Members top bar: logo on the left, Visit website + Sign out on the right */
.member-topstrip .container { max-width: none; width: 100%; padding-left: 20px; padding-right: 20px; }
.member-topstrip .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mts-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mts-actions .inline-form { margin: 0; }
.mts-link { color: #fff; font-weight: 600; font-size: .92rem; text-decoration: none; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.mts-link:hover { background: rgba(255,255,255,.14); }
.mts-btn { background: #fff; color: var(--danger, #b3261e); font-weight: 700; font-size: .92rem; border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; white-space: nowrap; }
.mts-btn:hover { background: #ffecec; }
@media (max-width: 560px) { .mts-link { padding: 8px; font-size: .85rem; } .mts-btn { padding: 8px 10px; font-size: .85rem; } .member-topstrip .brand-sub { display: none; } }

/* ---------- Group discussions: Facebook-style feed ---------- */
.feed-card{background:#fff;border:1px solid var(--line,#e3ebf7);border-radius:12px;padding:14px 16px;margin:0 0 14px;box-shadow:0 1px 2px rgba(10,58,130,.05)}
.feed-head{display:flex;gap:10px;align-items:center;margin-bottom:8px}
.feed-head .who{line-height:1.25}.feed-head .who small{color:#6b7790;display:block}
.feed-title{font-weight:700;font-size:1.05rem;margin:2px 0 4px;color:inherit;text-decoration:none;display:block}
.feed-text{white-space:pre-wrap;word-wrap:break-word;margin:0 0 8px}
.feed-stats,.feed-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:.9rem;color:#55627a}
.feed-actions{border-top:1px solid var(--line,#e3ebf7);margin-top:10px;padding-top:8px}
.feed-actions a{color:#0a3a82;text-decoration:none;font-weight:600}
.dphotos{display:grid;gap:4px;margin:8px 0;border-radius:10px;overflow:hidden}
.dphotos-1{grid-template-columns:1fr}.dphotos-2,.dphotos-3,.dphotos-4{grid-template-columns:1fr 1fr}
.dphoto{display:block;background:#eef2f8;aspect-ratio:4/3;overflow:hidden}.dphotos-1 .dphoto{aspect-ratio:auto;max-height:480px}
.dphoto img{width:100%;height:100%;object-fit:cover;display:block}
.react{display:inline-flex;align-items:center;gap:10px;position:relative}
.react-wrap{position:relative;display:inline-block}
.react-main{background:none;border:0;cursor:pointer;font:inherit;font-weight:600;color:#55627a;padding:4px 8px;border-radius:8px}
.react-main:hover{background:#eef2f8}.react-main.on{color:#0a3a82}
.react-pop{display:none;position:absolute;bottom:100%;left:0;background:#fff;border:1px solid var(--line,#d5deee);border-radius:999px;padding:4px 6px;box-shadow:0 6px 18px rgba(10,58,130,.18);white-space:nowrap;z-index:20}
.react-wrap:hover .react-pop,.react-wrap:focus-within .react-pop{display:flex;gap:2px}
.react-pop button{background:none;border:0;font-size:1.5rem;cursor:pointer;padding:2px 5px;border-radius:50%;transition:transform .12s}
.react-pop button:hover{transform:scale(1.3)}
.react-sum{font-size:.9rem;color:#55627a}
.emoji-pick{position:relative;display:inline-block}
.emoji-panel{position:absolute;z-index:30;top:100%;left:0;margin-top:4px;background:#fff;border:1px solid var(--line,#d5deee);border-radius:10px;padding:8px;box-shadow:0 8px 24px rgba(10,58,130,.2);width:260px;display:flex;flex-wrap:wrap;gap:2px}
.emoji-panel[hidden]{display:none}
.emoji-panel button{background:none;border:0;font-size:1.35rem;cursor:pointer;padding:3px 5px;border-radius:6px}.emoji-panel button:hover{background:#eef2f8}
.composer-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:6px 0 10px}
.photo-previews{display:inline-flex;gap:6px;flex-wrap:wrap}.photo-prev{width:54px;height:54px;object-fit:cover;border-radius:8px;border:1px solid var(--line,#d5deee)}
.thread{margin-left:44px;border-left:2px solid #e3ebf7;padding-left:12px}
.inline-reply{margin:8px 0}.inline-reply[hidden]{display:none}
.inline-reply textarea{width:100%}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.88);z-index:9999;display:flex;align-items:center;justify-content:center;padding:16px}
.lightbox img{max-width:100%;max-height:100%;border-radius:6px}
.lightbox button{position:absolute;top:10px;right:16px;background:none;border:0;color:#fff;font-size:2.4rem;cursor:pointer}
.compose-teaser{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid var(--line,#e3ebf7);border-radius:12px;padding:12px 14px;margin-bottom:14px;text-decoration:none;color:#6b7790}
.compose-teaser span.fake{flex:1;background:#f0f3f8;border-radius:999px;padding:10px 16px}

/* ===== Member dashboard (hm-*) ===== */
.hm { padding-top: 18px; }
.hm .container { max-width: 1100px; }
.hm-hero { background: linear-gradient(135deg, #0a3a82, #1565d8); color: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 8px 24px rgba(10,58,130,.22); }
.hm-hero-top { display: flex; align-items: center; gap: 14px; }
.hm-hero-id small { opacity: .85; font-size: .85rem; }
.hm-hero-id h1 { margin: 0; font-size: 1.35rem; line-height: 1.2; color: #fff; }
.hm-hero-id span { font-size: .88rem; opacity: .9; }
.hm-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.hm-facts > div { background: rgba(255,255,255,.14); border-radius: 12px; padding: 9px 12px; min-width: 0; }
.hm-facts small { display: block; font-size: .72rem; opacity: .85; text-transform: uppercase; letter-spacing: .04em; }
.hm-facts strong { display: block; font-size: .95rem; overflow-wrap: anywhere; }
.hm-fee-ok { color: #9af0b4; } .hm-fee-wait { color: #ffe08a; } .hm-fee-due { color: #ffd0a0; } .hm-fee-bad { color: #ffb4ab; }
.hm-last { margin-top: 10px; font-size: .78rem; opacity: .8; }
.hm-block { margin-top: 20px; }
.hm-h { font-size: 1.05rem; margin: 0 0 10px; color: var(--navy-900); }
.hm-todo { display: grid; gap: 8px; }
.hm-t { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #dfe6f2; border-left: 4px solid #1565d8; border-radius: 12px; padding: 11px 13px; color: inherit; }
.hm-t:hover { box-shadow: 0 4px 14px rgba(10,58,130,.12); color: inherit; }
.hm-t-due { border-left-color: #e08a00; background: #fffaf0; } .hm-t-bad { border-left-color: #c62828; background: #fff5f4; } .hm-t-wait { border-left-color: #b58900; background: #fffdf0; }
.hm-t-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #e6efff; font-size: 1.15rem; font-weight: 700; color: #0a3a82; }
.hm-t-txt { flex: 1; min-width: 0; }
.hm-t-txt strong { display: block; font-size: .95rem; }
.hm-t-txt small { display: block; color: #5b6678; font-size: .82rem; }
.hm-t-cta { flex: none; font-weight: 700; font-size: .85rem; color: #1565d8; white-space: nowrap; }
.hm-clear { background: #effaf2; border: 1px solid #bfe6c9; color: #1b6b35; border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.hm-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #dfe6f2; border-radius: 14px; padding: 6px 8px 6px 14px; margin-top: 18px; }
.hm-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 1rem; padding: 8px 0; background: transparent; }
.hm-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hm-tile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; background: #fff; border: 1px solid #e3e9f4; border-radius: 16px; padding: 14px 6px 12px; color: #1b2433; transition: transform .15s, box-shadow .15s; }
.hm-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(10,58,130,.14); color: #1b2433; }
.hm-tile strong { font-size: .9rem; } .hm-tile small { font-size: .74rem; color: #667085; }
.hm-tile-ico { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; font-size: 1.4rem; margin-bottom: 4px; }
.hm-badge { position: absolute; top: -6px; right: -8px; background: #d93025; color: #fff; font-style: normal; font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; line-height: 18px; border-radius: 9px; padding: 0 5px; }
.c-blue .hm-tile-ico { background: #e3eeff; } .c-orange .hm-tile-ico { background: #fff0dc; } .c-green .hm-tile-ico { background: #e1f6e8; }
.c-purple .hm-tile-ico { background: #efe7ff; } .c-teal .hm-tile-ico { background: #dcf4f2; } .c-pink .hm-tile-ico { background: #ffe5ef; }
.c-red .hm-tile-ico { background: #ffe4e1; } .c-gold .hm-tile-ico { background: #fff3c9; } .c-slate .hm-tile-ico { background: #e9edf3; }
.hm-cols { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
.hm-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.hm-card { background: #fff; border: 1px solid #e3e9f4; border-radius: 16px; padding: 14px 14px 12px; }
.hm-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.hm-card-head h2 { margin: 0; font-size: 1rem; color: var(--navy-900); }
.hm-card-head a { font-size: .85rem; font-weight: 600; }
.hm-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #eef1f7; color: inherit; }
.hm-row:first-of-type { border-top: 0; }
.hm-row:hover { color: inherit; background: #f7faff; }
.hm-row-t { flex: 1; min-width: 0; }
.hm-row-t strong { display: block; font-size: .92rem; overflow-wrap: anywhere; }
.hm-row-t small { display: block; color: #667085; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hm-date { flex: none; width: 46px; text-align: center; background: #e6efff; color: #0a3a82; border-radius: 10px; padding: 5px 0; font-size: .68rem; text-transform: uppercase; line-height: 1.1; }
.hm-date b { display: block; font-size: 1.15rem; }
.hm-date-g { background: #e1f6e8; color: #1b6b35; } .hm-date-c { background: #efe7ff; color: #5b34b0; text-transform: none; }
.hm-file { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; background: #ffe4e1; color: #b3261e; font-weight: 800; font-size: .72rem; }
.hm-lock { flex: none; font-size: .9rem; }
.hm-albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hm-album { color: inherit; min-width: 0; } .hm-album:hover { color: inherit; }
.hm-album-img { display: block; aspect-ratio: 1; border-radius: 12px; background: #e6efff; overflow: hidden; }
.hm-album-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-album strong { display: block; font-size: .8rem; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-album small { font-size: .72rem; color: #667085; }
@media (min-width: 700px) {
  .hm-hero { padding: 22px; } .hm-hero-id h1 { font-size: 1.6rem; }
  .hm-tiles { grid-template-columns: repeat(5, 1fr); }
  .hm-tile:nth-child(n) { padding: 16px 8px 14px; }
}
@media (min-width: 960px) { .hm-cols { grid-template-columns: 1.15fr 1fr; } .hm-tiles { grid-template-columns: repeat(9, 1fr); gap: 8px; } .hm-tile strong { font-size: .8rem; } .hm-tile small { display: none; } }
@media (max-width: 460px) { .hm-facts { grid-template-columns: 1fr 1fr; } .hm-facts > div:first-child { grid-column: 1 / -1; } .hm-t-cta { display: none; } }

/* Member top bar: one compact row on phones; Visit website moves into the menu */
.msb-visit { display: none; }
@media (max-width: 760px) {
  .member-topstrip .container { padding-left: 12px; padding-right: 12px; }
  .member-topstrip .header-inner { min-height: 52px; flex-wrap: nowrap; }
  .member-topstrip .brand-logo-img { height: 34px; }
  .member-topstrip .brand { min-width: 0; gap: 8px; flex: 1; }
  .member-topstrip .brand-title { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .member-topstrip .brand-sub { display: none; }
  .mts-link { display: none; }
  .mts-actions { gap: 6px; flex: none; }
  .mts-btn { padding: 7px 10px; font-size: .82rem; }
  .msb-visit { display: flex; }
}

/* UPI app buttons: phones only */
.upi-apps { display: none; margin-bottom: 14px; }
@media (hover: none) and (pointer: coarse), (max-width: 700px) {
  .upi-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .upi-apps-title, .upi-apps small, .upi-app.is-main { grid-column: 1 / -1; }
  .upi-apps + .pay-upi { border-top: 1px dashed #9dbcec; padding-top: 14px; }
  .upi-apps + .pay-upi .pay-qr { width: 100%; }
}
.upi-apps-title { font-weight: 700; color: var(--navy-900); }
.upi-apps small { color: #5b6678; font-size: .8rem; }
.upi-app { display: block; text-align: center; padding: 12px 8px; border-radius: 12px; border: 1px solid #9dbcec; background: #fff; color: #0a3a82; font-weight: 700; }
.upi-app.is-main { background: #1565d8; border-color: #1565d8; color: #fff; padding: 15px 8px; font-size: 1.05rem; }
.upi-app { display: flex; align-items: center; justify-content: center; gap: 8px; }
.upi-ic { font-style: normal; width: 26px; height: 26px; line-height: 26px; border-radius: 50%; text-align: center; font-weight: 800; font-size: .9rem; color: #fff; background: #1565d8; flex: none; }
.a-gpay .upi-ic { background: #4285f4; } .a-phonepe .upi-ic { background: #5f259f; } .a-paytm .upi-ic { background: #00baf2; } .a-other .upi-ic { background: #f58220; }
.upi-app.is-main .upi-ic { background: #fff; color: #1565d8; }
.upi-qr-note { display: none; }

/* ==========================================================================
   JIPMER ALUMNI ASSOCIATION THEME
   Colours from the JAA membership poster: deep indigo, sunflower yellow,
   coral pink, teal and sky blue on warm cream.
   ========================================================================== */
:root {
    --jaa-navy: #211c6a;
    --jaa-navy-2: #2d2785;
    --jaa-yellow: #ffb800;
    --jaa-pink: #f46d8c;
    --jaa-teal: #14b8a6;
    --jaa-blue: #3b9cf5;
    --jaa-cream: #fff5e1;

    --navy-900: var(--jaa-navy);
    --navy-800: var(--jaa-navy-2);
    --navy-700: #3a33a8;
    --navy-100: #ecebff;
    --gold-500: var(--jaa-yellow);
    --gold-600: #e09f00;
    --sky: #f7f4ee;
    --ink: #1d1a3d;
    --ink-soft: #5a5778;
    --line: #e6e1d6;

    --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'DM Sans', 'Segoe UI', Roboto, Arial, sans-serif;
    --radius: 10px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 3px rgba(33, 28, 106, 0.08);
    --shadow-md: 0 10px 30px rgba(33, 28, 106, 0.14);
}
body { background: #fffdf8; }
h1, h2, h3, h4 { letter-spacing: -0.01em; font-weight: 800; }
a { color: var(--navy-700); }
a:hover { color: var(--jaa-pink); }
::selection { background: var(--jaa-yellow); color: var(--jaa-navy); }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 700; }
.btn-gold { background: var(--jaa-yellow); color: var(--jaa-navy); }
.btn-gold:hover { background: #ffc733; color: var(--jaa-navy); }
.btn-outline { border-color: var(--jaa-navy); color: var(--jaa-navy); border-width: 2px; }
.btn-outline:hover { background: var(--jaa-navy); color: #fff; }
.btn-ghost { border: 2px solid rgba(255,255,255,0.7); }
.btn-lg { padding: 13px 28px; }

/* ---------- Top bar / header ---------- */
.top-bar { background: #17134f; }
.top-bar a { color: #d9d6ff; }
.site-header { background: var(--jaa-navy); border-bottom: 4px solid var(--jaa-yellow); }
.header-inner { padding: 10px 20px; gap: 16px; }
.brand-logo-img { height: 58px; width: 58px; border-radius: 14px; background: transparent; object-fit: cover; }
.brand-title { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.brand-sub { color: var(--jaa-yellow); font-weight: 600; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav a, .nav-dropdown-toggle { color: #e6e4ff; border-radius: 999px; font-size: 14px; padding: 9px 13px; }
.site-nav a:hover, .site-nav a.active, .nav-dropdown-toggle:hover, .nav-dropdown-toggle.active,
.nav-dropdown.active-group .nav-dropdown-toggle, .nav-dropdown.open .nav-dropdown-toggle { background: rgba(255,184,0,0.16); color: var(--jaa-yellow); }
.nav-dropdown-menu { background: var(--jaa-navy-2); border-radius: 14px; }
.nav-dropdown-menu a { border-radius: 10px; }
.site-nav a.nav-cta { background: var(--jaa-yellow); color: var(--jaa-navy) !important; }
.site-nav a.nav-join { background: var(--jaa-pink); color: #fff; margin-left: 6px; }
.site-nav a.nav-join:hover { background: #ff819d; color: #fff; }
@media (max-width: 1100px) { .brand-sub { display: none; } }
@media (max-width: 900px) { .site-nav { background: var(--jaa-navy-2); } .brand-logo-img { width: 46px; height: 46px; } .brand-title { font-size: 18px; } }

/* ---------- Common section bits ---------- */
.eyebrow-line { background: var(--jaa-yellow); height: 6px; width: 46px; border-radius: 6px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); }
.section-alt { background: var(--sky); }
.card, .panel { border-radius: 16px; border-color: var(--line); }
.kicker { display: inline-block; background: var(--jaa-teal); color: #fff; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.hl { color: var(--jaa-yellow); }

/* ---------- Home hero ---------- */
.jhero { background: var(--jaa-navy); color: #fff; position: relative; overflow: hidden; padding: 56px 0 64px; }
.jhero::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: var(--jaa-yellow); right: -120px; top: -150px; opacity: .95; }
.jhero::after { content: ""; position: absolute; width: 220px; height: 110px; border-radius: 220px 220px 0 0; background: var(--jaa-teal); left: -40px; bottom: 0; }
.jhero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.jhero .lead-small { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 28px); margin: 0; color: #fff; }
.jhero h1 { color: #fff; margin: 0 0 18px; line-height: .98; }
.jhero h1 .big { display: block; font-size: clamp(60px, 10vw, 118px); color: var(--jaa-yellow); letter-spacing: -0.03em; }
.jhero h1 .sub { display: block; font-size: clamp(32px, 5vw, 56px); color: var(--jaa-pink); }
.jhero p.intro { font-size: 17.5px; color: #dcdaf7; max-width: 560px; margin: 0 0 24px; }
.jhero .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.jhero-art { width: 100%; max-width: 520px; justify-self: end; }
.jhero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.jhero-badges span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
@media (max-width: 860px) { .jhero-inner { grid-template-columns: 1fr; } .jhero-art { justify-self: center; max-width: 380px; } .jhero::before { width: 220px; height: 220px; right: -90px; top: -100px; } }

/* ---------- Annual meet strip ---------- */
.meet-strip { background: var(--jaa-yellow); color: var(--jaa-navy); }
.meet-strip-inner { display: flex; align-items: center; gap: 20px; padding: 18px 20px; flex-wrap: wrap; }
.meet-strip .ms-date { background: var(--jaa-navy); color: #fff; border-radius: 14px; padding: 8px 14px; text-align: center; font-family: var(--font-display); line-height: 1.05; }
.meet-strip .ms-date strong { display: block; font-size: 24px; color: var(--jaa-yellow); }
.meet-strip .ms-date span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.meet-strip .ms-text { flex: 1; min-width: 220px; }
.meet-strip .ms-text strong { font-family: var(--font-display); font-size: 20px; display: block; }
.meet-strip .ms-count { font-family: var(--font-display); font-weight: 800; font-size: 15px; background: rgba(33,28,106,.1); padding: 8px 14px; border-radius: 999px; }
.meet-strip .btn { background: var(--jaa-navy); color: #fff; }
.meet-strip .btn:hover { background: var(--jaa-navy-2); color: var(--jaa-yellow); }

/* ---------- Benefit cards (poster style) ---------- */
.benefit-q { display: inline-block; background: #fff; color: var(--jaa-navy); font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 2.2vw, 24px); padding: 12px 22px; border-radius: 12px; box-shadow: var(--shadow-sm); border: 2px solid var(--jaa-navy); margin-bottom: 22px; }
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.benefit { border-radius: var(--radius-lg); padding: 24px 26px 26px; color: var(--jaa-navy); position: relative; min-height: 190px; }
.benefit .num { width: 44px; height: 44px; border-radius: 50%; background: var(--jaa-navy); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.benefit h3 { font-size: 22px; margin: 0 0 8px; color: var(--jaa-navy); }
.benefit p { margin: 0; font-size: 15.5px; color: #2c2858; }
.benefit .ico { position: absolute; right: 22px; top: 22px; width: 40px; height: 40px; color: var(--jaa-navy); }
.benefit a { color: var(--jaa-navy); font-weight: 700; text-decoration: underline; }
.b-pink { background: var(--jaa-pink); } .b-teal { background: var(--jaa-teal); } .b-yellow { background: var(--jaa-yellow); } .b-blue { background: var(--jaa-blue); }
@media (max-width: 720px) { .benefit-grid { grid-template-columns: 1fr; } }

/* ---------- Fellowship board ---------- */
.fellow-board { background: var(--jaa-cream); border-radius: var(--radius-lg); padding: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.fellow-col { background: #fff; border-radius: 16px; padding: 18px 20px; border: 3px solid var(--jaa-pink); }
.fellow-col.fs-jr { border-color: var(--jaa-teal); } .fellow-col.fs-asr { border-color: var(--jaa-blue); } .fellow-col.fs-other { border-color: var(--jaa-yellow); }
.fellow-col h3 { font-family: var(--font-body); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; color: var(--jaa-navy); }
.fellow-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; color: var(--jaa-navy); }
.fellow-line strong { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.fellow-line span { font-size: 14px; line-height: 1.35; padding-top: 4px; }
.fellow-dl { font-size: 12.5px; color: var(--ink-soft); margin: -4px 0 8px; }

/* member-area scheme cards */
.fs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 22px; }
.fs-card { background: #fff; border: 3px solid var(--jaa-pink); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.fs-card.fs-jr { border-color: var(--jaa-teal); } .fs-card.fs-asr { border-color: var(--jaa-blue); } .fs-card.fs-other { border-color: var(--jaa-yellow); }
.fs-cat { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--jaa-navy); }
.fs-num { display: flex; gap: 10px; align-items: center; color: var(--jaa-navy); }
.fs-num strong { font-family: var(--font-display); font-size: 38px; line-height: 1; }
.fs-num span { font-size: 13.5px; line-height: 1.3; }
.fs-meta { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Inner page hero ---------- */
.page-hero { color: #fff; padding: 44px 0; position: relative; overflow: hidden; background: var(--jaa-navy); }
.page-hero::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.08); right: -60px; bottom: -120px; }
.page-hero-blue { background: linear-gradient(135deg, var(--jaa-navy) 0%, var(--jaa-navy) 55%, #2b4fb8 100%); }
.page-hero-pink { background: linear-gradient(135deg, var(--jaa-navy) 0%, var(--jaa-navy) 55%, #7a2f72 100%); }
.page-hero-teal { background: linear-gradient(135deg, var(--jaa-navy) 0%, var(--jaa-navy) 55%, #0f6f72 100%); }
.page-hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 50px); line-height: 1.04; margin: 0 0 14px; max-width: 720px; }
.page-hero p { color: #dcdaf7; font-size: 17px; max-width: 620px; margin: 0 0 20px; }
.page-hero-art { width: 300px; height: auto; }
.page-hero .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .page-hero-inner { grid-template-columns: 1fr; } .page-hero-art { width: 220px; } }

/* ---------- Annual meet page ---------- */
.meet-card { background: var(--jaa-cream); border-radius: var(--radius-lg); padding: 26px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.meet-cal { background: var(--jaa-navy); color: #fff; border-radius: 18px; padding: 16px 22px; text-align: center; font-family: var(--font-display); min-width: 150px; }
.meet-cal .m { color: var(--jaa-yellow); text-transform: uppercase; letter-spacing: .12em; font-size: 14px; font-weight: 700; }
.meet-cal .d { font-size: 46px; font-weight: 800; line-height: 1.05; }
.meet-cal .y { font-size: 15px; opacity: .85; }
.meet-card h2 { margin: 0 0 6px; }
.countdown { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.countdown div { background: #fff; border-radius: 12px; padding: 8px 14px; text-align: center; border: 2px solid var(--jaa-navy); }
.countdown strong { display: block; font-family: var(--font-display); font-size: 26px; color: var(--jaa-navy); line-height: 1.1; }
.countdown span { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.meet-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.meet-feat { border-radius: 18px; padding: 20px; color: var(--jaa-navy); }
.meet-feat h3 { margin: 0 0 6px; font-size: 19px; color: var(--jaa-navy); }
.meet-feat p { margin: 0; font-size: 15px; }
@media (max-width: 640px) { .meet-card { grid-template-columns: 1fr; } }

/* ---------- Timeline (history) ---------- */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.tl-item { border-left: 5px solid var(--jaa-yellow); background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.tl-item strong { font-family: var(--font-display); font-size: 26px; color: var(--jaa-navy); display: block; }
.tl-item span { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Join page ---------- */
.join-layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.join-side { position: sticky; top: 110px; }
.join-side h2 { font-size: 22px; }
.benefit-mini { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.benefit-mini li { border-radius: 14px; padding: 12px 14px; color: var(--jaa-navy); font-size: 14px; }
.benefit-mini strong { display: block; font-family: var(--font-display); font-size: 16px; }
.benefit-mini a { color: var(--jaa-navy); font-weight: 700; }
.fee-chip { background: var(--jaa-navy); color: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; display: grid; }
.fee-chip span { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--jaa-yellow); font-weight: 700; }
.fee-chip strong { font-family: var(--font-display); font-size: 28px; }
.fee-chip em { font-style: normal; font-size: 13px; opacity: .8; }
.form-step { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--jaa-navy); margin: 10px 0 6px; padding-bottom: 6px; border-bottom: 2px dashed var(--line); }
.form-step span { width: 30px; height: 30px; border-radius: 50%; background: var(--jaa-yellow); display: grid; place-items: center; font-size: 15px; }
@media (max-width: 900px) { .join-layout { grid-template-columns: 1fr; } .join-side { position: static; } }

/* ---------- How-to steps ---------- */
.steps-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; }
.steps { counter-reset: st; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: st; position: relative; padding: 12px 14px 12px 60px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); }
.steps li::before { content: counter(st); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--jaa-navy); color: #fff; font-weight: 800; display: grid; place-items: center; font-family: var(--font-display); }
.rules-card { background: var(--jaa-navy); color: #e6e4ff; border-radius: var(--radius-lg); padding: 22px 24px; }
.rules-card h3 { color: var(--jaa-yellow); }
.rules-card a { color: var(--jaa-yellow); }
.rules-card .muted { color: #b9b6e6; }
@media (max-width: 860px) { .steps-wrap { grid-template-columns: 1fr; } }

/* ---------- Image mosaic (home "life at JAA") ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mosaic figure { margin: 0; border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.mosaic figure img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption { position: absolute; left: 10px; bottom: 10px; background: #fff; color: var(--jaa-navy); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.mosaic .m-yellow { background: var(--jaa-yellow); } .mosaic .m-pink { background: var(--jaa-pink); } .mosaic .m-teal { background: var(--jaa-teal); } .mosaic .m-blue { background: var(--jaa-blue); }
.mosaic .m-yellow img, .mosaic .m-pink img, .mosaic .m-teal img, .mosaic .m-blue img { object-fit: contain; padding: 12px; }
@media (max-width: 860px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--jaa-cream); border: 0; }
.stat strong { color: var(--jaa-navy); font-family: var(--font-display); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--jaa-navy); }
.cta-card { border-radius: var(--radius-lg) !important; }

/* ---------- Directory / profile ---------- */
.dir-alum, .alum-tag { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--jaa-navy); background: var(--jaa-cream); border-radius: 999px; padding: 2px 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--jaa-navy); color: #cfcdf0; border-top: 6px solid var(--jaa-yellow); }
.site-footer h4 { color: var(--jaa-yellow); font-family: var(--font-body); letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.site-footer a { color: #e6e4ff; }
.site-footer a:hover { color: var(--jaa-yellow); }
.footer-logo { border-radius: 14px; width: 64px; height: 64px; }

/* ---------- Member sidebar accents ---------- */
.msb-nav a.active { background: var(--jaa-cream) !important; color: var(--jaa-navy) !important; box-shadow: inset 4px 0 0 var(--jaa-yellow); }
.member-topstrip { border-bottom-width: 4px; }

/* ---------- Admin mini stats ---------- */
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.mini-stat { background: var(--jaa-cream); border-radius: 12px; padding: 10px 14px; min-width: 150px; }
.mini-stat strong { display: block; font-family: var(--font-display); font-size: 22px; color: var(--jaa-navy); }
.mini-stat span { font-size: 12.5px; color: var(--ink-soft); }

/* JAA: the menu has more items - switch to the hamburger menu earlier */
@media (max-width: 1240px) {
    .header-inner { position: relative; }
    .nav-toggle { display: block; }
    .site-nav { display: none; flex-direction: column; width: 100%; background: var(--jaa-navy-2); position: absolute; left: 0; top: 100%; padding: 10px 20px 16px; box-shadow: var(--shadow-md); }
    .site-nav.open { display: flex; }
    .site-nav a.nav-join, .site-nav a.nav-cta { margin: 6px 0 0; text-align: center; }
    .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
    .nav-dropdown-menu { display: none; position: static; width: 100%; margin-top: 2px; background: rgba(0,0,0,0.15); box-shadow: none; border: none; }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    html:not(.js) .nav-dropdown:hover .nav-dropdown-menu { display: none; }
}
html, body { overflow-x: hidden; }
.cta-card .btn-gold { background: var(--jaa-yellow); color: var(--jaa-navy); }
@media (min-width: 1241px) {
    .site-header .header-inner { flex-wrap: wrap; row-gap: 6px; }
    .site-header .site-nav { width: 100%; flex-wrap: nowrap; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.1); padding-top: 8px; }
    .site-header .site-nav .nav-join { margin-left: auto; }
}

/* ---------- JAA membership form ---------- */
.plan-couple-only { display: none; }
form.is-couple .plan-couple-only { display: block; }
form.is-couple tr.plan-couple-only { display: table-row; }
form.is-couple span.plan-couple-only { display: inline; }
form.is-couple .plan-single-only { display: none; }
fieldset.yn { border: 0; padding: 0; margin: 4px 0 10px; }
fieldset.yn legend { font-weight: 600; color: var(--jaa-navy); margin-bottom: 6px; font-size: 14.5px; }
fieldset.yn .check { display: inline-flex; align-items: center; gap: 6px; margin-right: 22px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
fieldset.yn .check:has(input:checked) { border-color: var(--jaa-navy); background: var(--jaa-cream); }
.optional-box { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; margin: 4px 0 10px; }
.optional-box summary { cursor: pointer; font-weight: 600; color: var(--jaa-navy); }
.optional-box .form-grid { margin-top: 10px; }
.pay-contact { background: var(--jaa-cream); border-left: 4px solid var(--jaa-yellow); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 12px 0; }
.declare { background: var(--jaa-cream); border-radius: 12px; padding: 12px 14px; font-size: 14px; align-items: flex-start; gap: 10px; }
