/* NCC Alumni - site.css */
:root {
    --ncc-navy: #052e59;
    --ncc-navy-dark: #031f3d;
    --ncc-gold: #e8b742;
    --ncc-gold-dark: #c99a25;
    --ncc-blue: #4ea1d3;
    --ncc-red: #e41f05;
    --ncc-ink: #212121;
    --ncc-muted: #505050;
    --ncc-soft: #f4f6f8;
}

body {
    color: var(--ncc-muted);
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main.container {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ncc-ink);
}

a {
    color: var(--ncc-navy);
}

a:hover {
    color: var(--ncc-gold-dark);
}

/* Bootstrap theme overrides */
.bg-primary {
    background-color: var(--ncc-navy) !important;
}

.btn-primary {
    background-color: var(--ncc-gold);
    border-color: var(--ncc-gold);
    color: #111;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--ncc-gold-dark);
    border-color: var(--ncc-gold-dark);
    color: #111;
}

.btn-outline-primary {
    border-color: var(--ncc-navy);
    color: var(--ncc-navy);
}

.btn-outline-primary:hover {
    background-color: var(--ncc-navy);
    border-color: var(--ncc-navy);
    color: #fff;
}

.text-primary {
    color: var(--ncc-navy) !important;
}

.navbar .badge {
    color: var(--ncc-navy) !important;
}

.navbar-site-logo {
    width: 44px;
    height: 34px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 3px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,.88);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--ncc-gold);
}

body > main.container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0 !important;
}

body > main.container > .alert,
body > main.container > .row,
body > main.container > nav,
body > main.container > form,
body > main.container > h4,
body > main.container > .d-flex,
body > main.container > .card,
body > main.container > .d-grid,
body > main.container > .list-group,
body > main.container > .admin-page-header,
body > main.container > .directory-page,
body > main.container > ul,
body > main.container > .text-center:not(.container *) {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

body > main.container > .row,
body > main.container > nav,
body > main.container > form,
body > main.container > h4,
body > main.container > .d-flex,
body > main.container > .card,
body > main.container > .admin-page-header,
body > main.container > .directory-page,
body > main.container > ul {
    padding-left: .75rem;
    padding-right: .75rem;
}

.admin-page-header {
    margin-top: 1.5rem;
}

body > main.container > :first-child:not(.home-hero) {
    margin-top: 2.25rem;
}

body > main.container > :last-child:not(.home-hero):not(#notices):not(#gallery) {
    margin-bottom: 2.5rem;
}

/* === Layout density standardization (start) ===
   To revert: delete this block, down to "Layout density standardization (end)". */
body > main.container .card-body {
    padding: 1.25rem 1.5rem;
}

body > main.container .row.g-2,
body > main.container .row.g-3 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Shared stat-card component, used by Directory and Admin queue pages */
.stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    padding: .75rem 1rem;
    text-align: center;
}
.stat-card-value { font-size: 1.5rem; font-weight: 700; }
.stat-card-label { font-size: .75rem; color: #6b7280; }
.stat-card-green .stat-card-value { color: #16a34a; }
.stat-card-red .stat-card-value { color: #dc2626; }
.stat-card-gold .stat-card-value { color: #d97706; }
/* === Layout density standardization (end) === */

/* Cards */
.card {
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,.08);
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
}

.alumni-card {
    cursor: pointer;
    transition: box-shadow .15s, transform .15s;
}

.alumni-card:hover {
    box-shadow: 0 4px 16px rgba(5,46,89,.12);
    transform: translateY(-2px);
}

/* Home page */
.home-hero .carousel-item {
    height: min(680px, calc(100vh - 70px));
    min-height: 520px;
    background: #111;
}

.home-hero .carousel-item img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,46,89,.9), rgba(5,46,89,.5) 48%, rgba(0,0,0,.25));
}

.home-hero .carousel-caption {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    max-width: 850px;
    left: 50%;
    right: auto;
    translate: -50% 0;
}

.hero-kicker,
.section-kicker {
    display: inline-block;
    color: var(--ncc-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: .82rem;
    margin-bottom: .5rem;
}

.home-hero h1 {
    color: #fff;
    font-size: 3.4rem;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.home-hero p {
    color: rgba(255,255,255,.9);
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0 auto 1.5rem;
}

.home-shortcuts {
    background: var(--ncc-navy);
    padding: 1rem 0;
}

.shortcut-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 72px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.shortcut-tile:hover {
    background: var(--ncc-gold);
    color: #111;
}

.shortcut-tile i {
    color: var(--ncc-gold);
    font-size: 1.25rem;
}

.shortcut-tile:hover i {
    color: #111;
}

.stat-panel {
    background: var(--ncc-navy);
    color: rgba(255,255,255,.82);
    border-radius: 8px;
    padding: 2rem;
}

.stat-panel h2 {
    color: #fff;
    margin-bottom: .75rem;
}

.stat-panel p {
    margin-bottom: 0;
}

.stat-tile {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
}

.stat-tile strong {
    display: block;
    color: var(--ncc-navy);
    font-size: 1.75rem;
    line-height: 1;
}

.stat-tile span,
.feature-tile span {
    color: #6c757d;
    font-size: .875rem;
}

.feature-tile {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    padding: 1rem;
    height: 100%;
    background: #fff;
}

.feature-tile i {
    display: block;
    color: var(--ncc-gold-dark);
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.feature-tile strong {
    display: block;
    margin-bottom: .25rem;
}

/* Network at a glance */
.glance-panel {
    background: var(--ncc-navy);
    color: rgba(255,255,255,.82);
    border-radius: 8px;
    padding: 2rem;
}

.glance-panel h2 {
    color: #fff;
    margin: .25rem 0 .75rem;
}

.glance-panel .section-kicker {
    color: var(--ncc-gold);
}

.glance-label {
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .05em;
    color: rgba(255,255,255,.55);
}

.glance-stat {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: .9rem 1rem;
    height: 100%;
}

.glance-stat strong {
    display: block;
    color: #fff;
    font-size: 1.9rem;
    line-height: 1.1;
}

.glance-stat span {
    font-size: .85rem;
    color: rgba(255,255,255,.75);
}

.glance-stat small {
    display: block;
    color: var(--ncc-gold);
    font-size: .75rem;
    margin-top: .15rem;
}

.location-chip {
    background: rgba(232,183,66,.15);
    color: var(--ncc-gold);
    border: 1px solid rgba(232,183,66,.35);
    border-radius: 999px;
    padding: .25rem .75rem;
    font-size: .8rem;
    font-weight: 600;
}

.recent-panel {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(5,46,89,.06);
}

/* Registration progress dashboard */
.stream-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(5,46,89,.06);
}

.stream-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: .85rem;
    margin-bottom: .85rem;
    border-bottom: 1px solid rgba(0,0,0,.07);
}

.stream-name {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    color: var(--ncc-ink);
}

.stream-session {
    font-size: .78rem;
    color: var(--ncc-muted);
    margin-top: .15rem;
}

.stream-total {
    text-align: right;
    line-height: 1.1;
}

.stream-total strong {
    display: block;
    font-size: 1.75rem;
    color: var(--ncc-navy);
}

.stream-total span {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ncc-muted);
}

.stream-groups {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .45rem;
}

.stream-groups li {
    display: grid;
    grid-template-columns: minmax(64px, 1fr) minmax(36px, 1.6fr) auto;
    align-items: center;
    gap: .6rem;
    font-size: .85rem;
}

.stream-groups .g-name {
    color: var(--ncc-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stream-groups .g-bar {
    background: rgba(5,46,89,.08);
    border-radius: 999px;
    height: 7px;
    overflow: hidden;
}

.stream-groups .g-bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--ncc-gold);
}

.stream-groups .g-count {
    font-weight: 700;
    color: var(--ncc-ink);
    font-variant-numeric: tabular-nums;
    min-width: 1.75rem;
    text-align: right;
}

.stream-empty {
    margin: 0;
    font-size: .85rem;
    color: var(--ncc-muted);
}

.recent-member-list {
    display: grid;
    gap: .25rem;
}

.recent-member-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    text-decoration: none;
    color: inherit;
}

.recent-member-row:last-child {
    border-bottom: none;
}

.recent-avatar {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ncc-soft);
    color: var(--ncc-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    object-fit: cover;
}

.recent-member-info {
    flex: 1 1 auto;
    min-width: 0;
}

.category-pill {
    flex: 0 0 auto;
    background: var(--ncc-soft);
    color: var(--ncc-navy);
    border-radius: 999px;
    padding: .2rem .7rem;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.category-count-chip {
    background: var(--ncc-soft);
    border-radius: 999px;
    padding: .25rem .75rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--ncc-navy);
}

/* Notice board */
.notice-filter .list-group-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    border: none;
    border-radius: 8px !important;
    margin-bottom: .25rem;
    background: transparent;
    cursor: pointer;
}

.notice-filter .list-group-item.active {
    background: #fff;
    color: var(--ncc-navy);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(5,46,89,.08);
}

.notice-filter .badge {
    background: rgba(0,0,0,.08);
    color: var(--ncc-muted);
}

.notice-filter .list-group-item.active .badge {
    background: var(--ncc-soft);
}

.filter-dot {
    display: inline-block;
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    background: #adb5bd;
}

.filter-dot-all { background: var(--ncc-navy); }
.filter-dot-blood { background: var(--ncc-red); }
.filter-dot-reunion { background: #8b5cf6; }
.filter-dot-job { background: #f59e0b; }
.filter-dot-charity { background: #198754; }
.filter-dot-pinned { background: var(--ncc-gold-dark); }
.filter-dot-general { background: #adb5bd; }

.notice-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 1rem;
    align-items: start;
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,.08);
    padding: 1rem;
    margin-bottom: .85rem;
}

.notice-card .notice-date {
    background: var(--ncc-soft);
    color: var(--ncc-navy);
    border-radius: 8px;
    padding: .5rem;
    text-align: center;
}

.notice-card .notice-date strong {
    display: block;
    font-size: 1.4rem;
    line-height: 1.1;
}

.notice-card .notice-date span {
    font-size: .7rem;
    color: var(--ncc-muted);
}

.notice-card h3 {
    font-size: 1.05rem;
    margin: 0 0 .35rem;
}

.notice-card h3 a {
    color: var(--ncc-ink);
    text-decoration: none;
    font-weight: 700;
}

.notice-card h3 a:hover {
    color: var(--ncc-navy);
    text-decoration: underline;
}

.notice-tag-pill {
    display: inline-block;
    border-radius: 999px;
    padding: .15rem .6rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: .25rem;
    background: var(--ncc-soft);
    color: var(--ncc-navy);
}

.notice-tag-blood { background: #fde2e1; color: var(--ncc-red); }
.notice-tag-reunion { background: #ede9fe; color: #6d28d9; }
.notice-tag-job { background: #fef3c7; color: #b45309; }
.notice-tag-charity { background: #d1f5e0; color: #15803d; }
.notice-tag-pinned { background: #fdf1d6; color: var(--ncc-gold-dark); }

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-heading h2,
.notice-band h2,
.blog-band h2 {
    margin-bottom: 0;
}

.notice-band {
    background: var(--ncc-soft);
    border-top: 1px solid rgba(0,0,0,.06);
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.notice-list {
    display: grid;
    gap: .85rem;
}

.notice-item {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 1rem;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,.08);
    padding: 1rem;
}

.notice-date {
    background: var(--ncc-gold);
    color: #111;
    border-radius: 8px;
    padding: .75rem .5rem;
    text-align: center;
    font-weight: 800;
}

.notice-tag {
    color: var(--ncc-blue);
    font-weight: 700;
    font-size: .8rem;
}

.notice-item h3,
.friend-blog h3 {
    font-size: 1.05rem;
    margin: .15rem 0 0;
    line-height: 1.35;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-grid figure {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 0;
    min-height: 230px;
    background: #111;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    transition: transform .3s ease;
}

.gallery-grid figure:hover img {
    transform: scale(1.04);
}

.gallery-grid figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(transparent, rgba(0,0,0,.78));
}

.friend-blog {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,.08);
    padding: 1.4rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(5,46,89,.06);
}

.friend-blog span {
    color: var(--ncc-gold-dark);
    font-weight: 700;
}

.friend-blog-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.friend-blog p {
    margin: .75rem 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.friend-blog a {
    font-weight: 700;
    margin-top: auto;
}

.site-footer {
    background: var(--ncc-navy-dark);
    color: rgba(255,255,255,.85);
    border-top: 4px solid var(--ncc-gold);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
}

.footer-logo {
    height: 36px;
    width: 36px;
    object-fit: cover;
    border-radius: 6px;
}

.footer-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--ncc-gold-dark);
    color: #fff;
    font-weight: 800;
    font-size: .8rem;
}

.footer-heading {
    color: #fff;
    text-transform: uppercase;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 1rem;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
    text-decoration: none;
}

.footer-social:hover {
    background: var(--ncc-gold-dark);
    color: #fff;
}

.site-footer .text-light-50 {
    color: rgba(255,255,255,.65);
}

.site-footer .footer-link {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    line-height: 2;
}

.site-footer .footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

.my-blog-card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(5,46,89,.05);
}

.my-blog-thumb {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

/* Status badges */
.badge-pending {
    background: #fff3cd;
    color: #664d03;
}

.badge-approved {
    background: #d1e7dd;
    color: #0a3622;
}

.badge-rejected {
    background: #f8d7da;
    color: #58151c;
}

/* Form */
.form-control:focus,
.form-select:focus {
    border-color: var(--ncc-gold);
    box-shadow: 0 0 0 .2rem rgba(232,183,66,.2);
}

.profession-picker {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.privacy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

@media (max-width: 768px) {
    .home-hero .carousel-item {
        min-height: 560px;
    }

    .home-hero h1 {
        font-size: 2.35rem;
    }

    .home-hero p {
        font-size: 1rem;
    }

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

    .section-heading,
    .privacy-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
