:root {
    --primary: #173f6f;
    --primary-2: #226b80;
    --accent: #c98d22;
    --accent-soft: #fff1c8;
    --ivory: #fffaf0;
    --surface: #ffffff;
    --soft: #f3f7f4;
    --ink: #172033;
    --muted: #6b7280;
    --line: #e3e8dd;
    --shadow: 0 18px 48px rgba(23, 63, 111, .12);
}

body {
    font-family: "Plus Jakarta Sans", "Noto Sans Gujarati", system-ui, sans-serif;
    color: var(--ink);
    background: var(--ivory);
}

a { text-decoration: none; }

.btn-gold {
    background: linear-gradient(135deg, #ffe8a9, var(--accent));
    border: 0;
    color: #1b2430;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(201, 141, 34, .25);
}

.btn-gold:hover {
    color: #101828;
    transform: translateY(-1px);
}

.public-body { background: var(--ivory); }

.public-nav {
    background: rgba(23, 63, 111, .9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.14);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 900;
}

.brand span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #1b2430;
    background: linear-gradient(135deg, #fff3c7, var(--accent));
    border-radius: 12px;
}

.public-nav .nav-link {
    color: rgba(255,255,255,.84);
    font-weight: 700;
}

.public-nav .nav-link:hover { color: #fff3c7; }
.public-nav .dropdown-menu {
    border: 1px solid rgba(201,141,34,.22);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.public-nav .dropdown-item {
    font-weight: 800;
}

.public-nav .dropdown-item:hover {
    color: #795315;
    background: var(--accent-soft);
}

.navbar-toggler-icon { filter: invert(1); }

.hero,
.page-hero {
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 204, 102, .34), transparent 18rem),
        linear-gradient(135deg, rgba(23,63,111,.96), rgba(34,107,128,.88)),
        url("https://images.unsplash.com/photo-1527529482837-4698179dc6ce?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.hero {
    min-height: 760px;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.page-hero { padding: 160px 0 80px; }

.eyebrow {
    color: #fff3c7;
    font-weight: 900;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    font-family: "Noto Sans Gujarati", sans-serif;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
}

.hero p,
.page-hero p {
    color: rgba(255,255,255,.82);
    font-size: 1.15rem;
    line-height: 1.8;
}

.glass-card {
    padding: 28px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 24px;
    background: rgba(255,255,255,.14);
    box-shadow: 0 24px 70px rgba(9, 34, 62, .28);
    backdrop-filter: blur(18px);
}

.stats {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 14px;
}

.stats div {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.14);
}

.stats strong {
    display: block;
    color: #fff3c7;
    font-size: 2rem;
}

.section { padding: 86px 0; background: var(--ivory); }
.soft { background: var(--soft); }

.section-title {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-title span {
    color: var(--accent);
    font-weight: 900;
    text-transform: uppercase;
}

.section-title h2 {
    font-size: clamp(2rem,4vw,3.2rem);
    font-weight: 900;
}

.section-title p {
    color: var(--muted);
    font-size: 1.1rem;
}

.news-card,
.member-card,
.panel,
.admin-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: .25s;
}

.news-card:hover,
.member-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 54px rgba(34,107,128,.16);
}

.news-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.news-card div { padding: 22px; }
.news-card span { color: var(--accent); font-weight: 800; }
.news-card h3, .member-card h3 { font-weight: 900; }
.news-card p, .member-card p { color: var(--muted); }
.news-card a { color: var(--primary-2); font-weight: 900; }

.updates-board {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 8%, rgba(201,141,34,.14), transparent 15rem),
        #fff;
    box-shadow: var(--shadow);
}

.updates-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.updates-head span {
    color: var(--accent);
    font-weight: 900;
    text-transform: uppercase;
}

.updates-head h2 {
    margin: 4px 0;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 900;
}

.updates-head p {
    margin: 0;
    color: var(--muted);
}

.updates-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 20px;
}

.update-lead {
    display: grid;
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: 22px;
    color: var(--ink);
    background: #fffaf0;
    overflow: hidden;
    transition: .22s;
}

.update-lead:hover,
.update-row:hover {
    color: var(--ink);
    transform: translateY(-3px);
}

.update-lead img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.update-lead div {
    padding: 22px;
}

.update-lead span,
.update-row > span {
    color: #8a4f12;
    font-weight: 900;
}

.update-lead h3 {
    margin: 8px 0;
    font-size: 1.45rem;
    font-weight: 900;
}

.update-lead p,
.update-row p {
    color: var(--muted);
}

.update-lead strong {
    color: var(--primary-2);
}

.update-list {
    display: grid;
    gap: 12px;
}

.update-row {
    display: grid;
    grid-template-columns: 74px 1fr 18px;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 10px 26px rgba(23,63,111,.07);
    transition: .22s;
}

.update-row h3 {
    margin: 0 0 5px;
    font-size: 1.02rem;
    font-weight: 900;
}

.update-row p {
    margin: 0;
    font-size: .92rem;
}

.update-row.notice-link {
    border-color: rgba(201,141,34,.35);
    background: linear-gradient(135deg, #fff8df, #fff);
}

.member-card {
    text-align: center;
    padding: 24px;
}

.member-card img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-soft);
}

.member-card span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #795315;
    font-weight: 800;
}

.member-card a {
    color: var(--primary-2);
    font-weight: 800;
}

.timeline {
    display: grid;
    gap: 24px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.timeline-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 18px;
}

.timeline-item span {
    color: var(--accent);
    font-size: 1.6rem;
    font-weight: 900;
}

.news-detail img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 28px;
}

.news-detail .content {
    font-size: 1.08rem;
    line-height: 1.85;
}

.site-footer {
    padding: 58px 0 24px;
    color: #fff;
    background: linear-gradient(180deg, #173f6f, #0e2d51);
}

.site-footer a {
    display: block;
    color: rgba(255,255,255,.78);
    margin: 8px 0;
}

.socials {
    display: flex;
    gap: 14px;
    color: #fff3c7;
    font-size: 1.5rem;
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.13);
    color: rgba(255,255,255,.62);
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 78% 18%, rgba(255,204,102,.28), transparent 20rem),
        linear-gradient(135deg, var(--primary), var(--primary-2));
    padding: 16px;
}

.login-card {
    width: min(460px,100%);
    padding: 34px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(9,34,62,.35);
}

.login-card h1 { font-weight: 900; }
.login-card p, .login-card small { color: var(--muted); }

.admin-body { background: var(--soft); }

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    padding: 22px;
    background: linear-gradient(180deg, #173f6f, #0e2d51);
    color: #fff;
    overflow: auto;
}

.admin-brand { margin-bottom: 26px; }
.admin-sidebar nav { display: grid; gap: 8px; }

.admin-sidebar a,
.admin-sidebar button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 12px;
    color: rgba(255,255,255,.82);
    background: transparent;
    font-weight: 800;
    text-align: left;
}

.admin-sidebar a:hover,
.admin-sidebar button:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
}

.admin-sidebar i {
    color: #fff3c7;
    width: 20px;
}

.admin-menu-label {
    margin: 12px 8px 4px;
    color: #fff3c7;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-sidebar a.admin-submenu {
    margin-left: 12px;
    width: calc(100% - 12px);
    background: rgba(255,255,255,.06);
}

.admin-main { margin-left: 280px; }

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 26px;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.admin-topbar strong,
.admin-topbar span {
    display: block;
}

.admin-topbar strong { font-size: 1.25rem; }
.admin-topbar span { color: var(--muted); }
.admin-content { padding: 26px; }
.panel, .admin-card { padding: 24px; }
.admin-card span { display: block; color: var(--muted); }
.admin-card strong { font-size: 2.4rem; font-weight: 900; }

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.table-img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
}

.form-control,
.form-select {
    border-color: #d8dfd2;
    border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-2);
    box-shadow: 0 0 0 .2rem rgba(34,107,128,.16);
}

.rich-editor {
    min-height: 320px;
    resize: vertical;
    line-height: 1.75;
    padding: 16px;
    background: #fffef9;
}

.rich-editor-mini {
    min-height: 92px;
    resize: vertical;
    line-height: 1.75;
    background: #fffef9;
}

.rich-editor:focus {
    background: #fff;
}

.directory-card {
    display: flex;
    gap: 16px;
    height: 100%;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.directory-card img {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    object-fit: cover;
    border-radius: 18px;
    border: 3px solid var(--accent-soft);
}

.directory-card h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
    font-weight: 900;
}

.directory-card p {
    margin: 0 0 6px;
    color: var(--muted);
}

.directory-card a {
    display: inline-block;
    margin-right: 10px;
    color: var(--primary-2);
    font-weight: 900;
}

.directory-family-card {
    color: var(--ink);
}

.directory-family-card:hover {
    color: var(--ink);
    transform: translateY(-5px);
}

.directory-family-card span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary-2);
    font-weight: 900;
}

.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

.profile-photo {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 32px;
    border: 5px solid var(--accent-soft);
}

.profile-detail-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-detail-table div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fffaf0;
}

.profile-detail-table span,
.profile-detail-table strong {
    display: block;
}

.profile-detail-table span {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 900;
}

.profile-detail-table strong {
    color: var(--ink);
    font-weight: 900;
}

.tree-toolbar {
    margin-bottom: 18px;
}

.tree-view-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.tree-view-toggle {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow);
}

.tree-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    color: var(--primary);
    background: transparent;
    font-weight: 900;
}

.tree-view-btn.active {
    color: #1b2430;
    background: linear-gradient(135deg, #ffe8a9, var(--accent));
}

.tree-canvas {
    min-height: 420px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 18% 12%, rgba(201,141,34,.15), transparent 18rem),
        #fff;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.tree-title {
    margin-bottom: 24px;
    text-align: center;
}

.tree-title h2 {
    font-weight: 900;
}

.actual-family-tree {
    min-width: 860px;
    padding: 12px 0 24px;
}

.tree-root {
    display: flex;
    justify-content: center;
}

.root-couple,
.branch-couple,
.grandchildren-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.marriage-line {
    width: 42px;
    height: 3px;
    flex: 0 0 42px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-2), var(--accent));
}

.main-connector {
    position: relative;
    width: min(70%, 720px);
    height: 72px;
    margin: 0 auto;
}

.main-connector::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 72px;
    content: "";
    background: var(--accent);
}

.main-connector::after {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.branch-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 34px;
}

.family-branch {
    position: relative;
    min-width: 320px;
    padding-top: 30px;
}

.family-branch::before {
    position: absolute;
    top: -1px;
    left: 50%;
    width: 3px;
    height: 31px;
    content: "";
    background: var(--accent);
}

.branch-label {
    display: table;
    margin: 0 auto 14px;
    padding: 6px 12px;
    color: #795315;
    background: var(--accent-soft);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.child-connector {
    position: relative;
    height: 54px;
    margin: 0 auto;
}

.child-connector::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 54px;
    content: "";
    background: var(--primary-2);
}

.tree-node {
    position: relative;
    width: 168px;
    padding: 16px;
    border: 1px solid #d7e3df;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(23,63,111,.1);
    transition: .22s;
    cursor: pointer;
}

.tree-node:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.family-grid-view {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.tree-grid-card {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 20px;
    border: 1px solid #d7e3df;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(23,63,111,.1);
    text-align: center;
    transition: .22s;
}

.tree-grid-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.tree-grid-card img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 12px;
}

.tree-grid-card.male img {
    border: 3px solid #b7d7ff;
}

.tree-grid-card.female img {
    border: 3px solid #ffd1df;
}

.tree-grid-card strong,
.tree-grid-card span,
.tree-grid-card small {
    display: block;
}

.tree-grid-card strong {
    color: var(--ink);
    font-weight: 900;
}

.tree-grid-card span {
    color: var(--muted);
    font-weight: 800;
}

.tree-grid-card small {
    color: #8a2f20;
    font-weight: 900;
}

.tree-node img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.tree-node strong,
.tree-node span {
    display: block;
}

.tree-node strong {
    font-size: .96rem;
}

.tree-node span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}

.tree-node.male img {
    border: 3px solid #b7d7ff;
}

.tree-node.female img {
    border: 3px solid #ffd1df;
}

.tree-node em {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    color: #fff;
    background: #6b7280;
    border-radius: 999px;
    font-size: .7rem;
    font-style: normal;
    font-weight: 900;
}

.tree-node.deceased {
    background: #f8fafc;
    opacity: .82;
}

.activity-tile {
    height: 100%;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: .25s;
}

.activity-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(201,141,34,.45);
}

.activity-tile i {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin-bottom: 18px;
    color: #1b2430;
    background: linear-gradient(135deg, #fff3c7, var(--accent));
    border-radius: 18px;
    font-size: 1.45rem;
}

.activity-tile h3 {
    font-weight: 900;
}

.activity-tile p {
    color: var(--muted);
}

.activity-tile a {
    color: var(--primary-2);
    font-weight: 900;
}

.detail-banner {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.content-block {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    line-height: 1.85;
}

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

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / .78;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(23,63,111,.12);
    transition: .22s;
}

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

.notice-list {
    display: grid;
    gap: 16px;
}

.notice-item {
    display: block;
    padding: 22px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--primary-2);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.notice-item.important {
    border-left-color: var(--accent);
    background: linear-gradient(90deg, #fff8df, #fff);
}

.notice-item span {
    color: var(--accent);
    font-weight: 900;
}

.notice-item h3 {
    color: var(--ink);
    font-weight: 900;
}

.notice-item p {
    margin: 0;
    color: var(--muted);
}

.gift-register {
    border: 1px solid #d8c38a;
    border-radius: 18px;
    background: #fffaf0;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.gift-register-title {
    display: grid;
    gap: 4px;
    padding: 12px 18px;
    color: #fff;
    background: linear-gradient(135deg, #173f6f, #0e2d51);
    text-align: center;
    font-family: "Noto Sans Gujarati", "Plus Jakarta Sans", sans-serif;
}

.gift-register-title strong {
    font-size: 1.1rem;
    font-weight: 900;
}

.gift-register-title span {
    color: #fff8c8;
    font-weight: 800;
}

.gift-register-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Noto Sans Gujarati", "Plus Jakarta Sans", sans-serif;
    background: #fffdf6;
}

.gift-register-table th,
.gift-register-table td {
    padding: 8px 10px;
    border: 1px solid #eadbad;
    vertical-align: top;
}

.gift-register-table th {
    color: #173f6f;
    background: #fff1c8;
    font-weight: 900;
    text-align: center;
}

.gift-register-table .gift-no {
    width: 58px;
    text-align: center;
    font-weight: 900;
}

.gift-register-table .gift-name {
    width: 250px;
    color: #173f6f;
    font-weight: 900;
}

.gift-register-table .gift-donors {
    color: #8a4f12;
    font-weight: 800;
    line-height: 1.65;
}

.gift-register-table .gift-donors strong,
.gift-register-table .gift-donors span {
    display: block;
}

.gift-register-table .gift-action {
    width: 110px;
    text-align: center;
}

.gift-admin-preview {
    max-height: 520px;
    border: 1px solid #eadbad;
    border-radius: 14px;
    overflow: auto;
}

.public-gift-table td {
    font-size: 1rem;
}

.form-section-label {
    display: inline-block;
    padding: 5px 12px;
    color: #173f6f;
    background: #fff1c8;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.form-section-label.bride {
    color: #8a2f55;
    background: #ffe6ef;
}

.wedding-couple-board {
    position: relative;
    padding: 22px;
    border: 1px solid #d8a83e;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(124,18,18,.08), transparent 20%),
        linear-gradient(225deg, rgba(124,18,18,.08), transparent 20%),
        radial-gradient(circle at 10% 10%, rgba(201,141,34,.12), transparent 15rem),
        radial-gradient(circle at 90% 8%, rgba(139,45,85,.1), transparent 13rem),
        linear-gradient(180deg, #fffaf0, #fff1da);
    box-shadow: 0 26px 70px rgba(124,18,18,.13);
    overflow: hidden;
}

.wedding-couple-board::before,
.wedding-couple-board::after {
    position: absolute;
    top: 10px;
    width: 150px;
    height: 92px;
    content: "";
    opacity: .55;
    background:
        radial-gradient(circle, #c98d22 2px, transparent 3px) 0 0 / 18px 18px,
        linear-gradient(90deg, transparent 0 18%, rgba(18,91,66,.18) 18% 22%, transparent 22% 42%, rgba(18,91,66,.18) 42% 46%, transparent 46%);
}

.wedding-couple-board::before { left: 18px; }
.wedding-couple-board::after { right: 18px; }

.wedding-board-title {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.wedding-board-title span {
    position: relative;
    z-index: 1;
    padding: 13px 34px;
    border: 2px solid #d8a83e;
    border-radius: 999px;
    color: #8a2f55;
    background:
        linear-gradient(#fffdf8, #fffdf8) padding-box,
        linear-gradient(135deg, #8a2f55, #e0ad40, #173f6f) border-box;
    font-family: "Noto Sans Gujarati", "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(201,141,34,.14);
}

.wedding-couple-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.wedding-couple-card {
    position: relative;
    min-height: 430px;
    padding: 72px 28px 30px;
    border: 2px solid transparent;
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 20%, rgba(255,255,255,.82), transparent 18rem) padding-box,
        linear-gradient(180deg, #fff9eb, #fff0cf) padding-box,
        linear-gradient(135deg, #8a2f20, #e7bf62, #8a2f20) border-box;
    box-shadow: 0 24px 58px rgba(124,18,18,.18);
    overflow: hidden;
}

.wedding-couple-card::before {
    position: absolute;
    inset: 14px;
    content: "";
    border: 2px double rgba(216,168,62,.6);
    border-radius: 24px;
    pointer-events: none;
}

.wedding-couple-card::after {
    position: absolute;
    inset: auto 0 0 0;
    height: 126px;
    content: "";
    background:
        radial-gradient(circle at 50% 0, rgba(255,241,200,.9), transparent 4rem),
        linear-gradient(135deg, #6e1010, #9b1717 45%, #5b0b0b);
    opacity: .98;
}

.couple-card-title {
    position: absolute;
    top: 20px;
    left: 50%;
    z-index: 2;
    padding: 10px 24px;
    color: #ffe8a9;
    background:
        linear-gradient(#7f1515, #7f1515) padding-box,
        linear-gradient(135deg, #ffe8a9, #c98d22, #ffe8a9) border-box;
    border: 3px solid transparent;
    border-radius: 24px;
    box-shadow: 0 16px 38px rgba(124,18,18,.26);
    font-family: "Noto Sans Gujarati", serif;
    font-size: clamp(1.08rem, 1.9vw, 1.45rem);
    font-weight: 900;
    transform: translateX(-50%);
    white-space: nowrap;
}

.couple-number {
    position: absolute;
    top: 190px;
    left: 50%;
    z-index: 2;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #6e1010;
    background:
        radial-gradient(circle at 45% 36%, #fff8df 0 35%, #e8b84d 36% 60%, #a86e17 61%);
    border: 4px solid #fff7df;
    border-radius: 50%;
    box-shadow: 0 14px 32px rgba(124,18,18,.2);
    font-size: 1.22rem;
    font-weight: 900;
    transform: translateX(-50%);
}

.couple-number::before,
.couple-number::after {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, transparent, #c98d22);
}

.couple-number::before {
    right: 62px;
}

.couple-number::after {
    left: 62px;
    background: linear-gradient(90deg, #c98d22, transparent);
}

.couple-photos {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
}

.couple-person {
    position: relative;
    z-index: 1;
    min-height: 260px;
    padding: 54px 14px 20px;
    border: 2px solid rgba(201,141,34,.62);
    border-radius: 88px 88px 22px 22px;
    background:
        radial-gradient(circle at 50% 34%, rgba(255,255,255,.8), transparent 8rem),
        linear-gradient(180deg, #fffaf0, #fff4d8);
    box-shadow: inset 0 0 0 6px rgba(255,255,255,.45), 0 18px 36px rgba(124,18,18,.12);
    text-align: center;
}

.couple-person::before {
    position: absolute;
    inset: 12px;
    content: "";
    border: 1px solid rgba(201,141,34,.42);
    border-radius: 76px 76px 18px 18px;
    pointer-events: none;
}

.couple-person img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border: 4px solid #e8b84d;
    border-radius: 50%;
    background: #fff7df;
    box-shadow: 0 16px 34px rgba(124,18,18,.18);
}

.groom-person img {
    border-color: #173f6f;
}

.couple-person strong,
.couple-person span {
    display: block;
    font-family: "Noto Sans Gujarati", "Plus Jakarta Sans", sans-serif;
}

.couple-person strong {
    margin-top: 16px;
    color: #6e1010;
    font-family: Georgia, "Noto Sans Gujarati", serif;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    line-height: 1.1;
    font-weight: 900;
}

.couple-person span {
    margin-top: 8px;
    color: #a86e17;
    font-size: .95rem;
    font-weight: 800;
}

.couple-symbol {
    align-self: center;
    display: grid;
    width: 66px;
    height: 120px;
    place-items: center;
    margin-top: 70px;
    color: #8a2f55;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    font-family: "Noto Sans Gujarati", "Plus Jakarta Sans", sans-serif;
    font-weight: 900;
}

.couple-symbol span,
.couple-symbol small {
    grid-area: 1 / 1;
}

.couple-symbol span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-top: -12px;
    color: #6e1010;
    background:
        radial-gradient(circle, #fff8df 0 42%, transparent 43%),
        conic-gradient(from 0deg, #d8a83e, #fff1c8, #d8a83e, #8a2f55, #d8a83e);
    border-radius: 50%;
    font-size: .68rem;
    box-shadow: 0 12px 28px rgba(201,141,34,.22);
}

.couple-symbol small {
    margin-top: 28px;
    color: #6e1010;
    font-size: 1rem;
}

.couple-family-lines {
    position: relative;
    z-index: 2;
    margin: 28px auto 0;
    padding: 18px 24px;
    border: 2px solid transparent;
    border-radius: 36px;
    background:
        linear-gradient(#fff7df, #fff7df) padding-box,
        linear-gradient(135deg, #e8b84d, #fff1c8, #b37b1d) border-box;
    box-shadow: 0 18px 42px rgba(124,18,18,.16);
    font-family: "Noto Sans Gujarati", "Plus Jakarta Sans", sans-serif;
    text-align: center;
}

.couple-family-lines p {
    margin: 0 0 8px;
    color: #7a1515;
    font-family: Georgia, "Noto Sans Gujarati", serif;
    font-size: clamp(1.1rem, 2vw, 1.65rem);
    letter-spacing: .04em;
    font-weight: 800;
    text-transform: uppercase;
}

.samuh-tabs-wrap {
    padding: 8px 0;
}

.samuh-tabs {
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.samuh-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid rgba(201,141,34,.42);
    border-radius: 999px;
    color: #173f6f;
    background: rgba(255,250,240,.86);
    box-shadow: 0 10px 26px rgba(23,63,111,.08);
    font-weight: 900;
}

.samuh-tabs .nav-link.active {
    color: #fff8df;
    background: linear-gradient(135deg, #7a1515, #173f6f);
    box-shadow: 0 16px 34px rgba(122,21,21,.18);
}

.samuh-tab-content {
    padding: 0;
}

.samuh-tab-content > .tab-pane {
    border-radius: 28px;
}

.donor-book-card {
    border: 3px solid #8a4b8c;
    border-radius: 28px;
    background:
        radial-gradient(circle at 10% 0, rgba(201,141,34,.18), transparent 16rem),
        radial-gradient(circle at 92% 8%, rgba(138,75,140,.12), transparent 14rem),
        linear-gradient(180deg, #fff9ea, #fffdf8);
    box-shadow: 0 24px 58px rgba(23,63,111,.13);
    overflow: hidden;
}

.donor-book-title {
    display: grid;
    gap: 4px;
    padding: 16px 22px;
    color: #fff;
    background: linear-gradient(135deg, #8a4b8c, #173f6f);
    text-align: center;
    font-family: "Noto Sans Gujarati", "Plus Jakarta Sans", sans-serif;
}

.donor-book-title span {
    font-size: clamp(1.2rem, 2.8vw, 2rem);
    font-weight: 900;
}

.donor-book-title small {
    color: #fff1c8;
    font-weight: 800;
}

.donor-book-list {
    padding: 18px 22px 24px;
}

.donor-book-row {
    display: grid;
    grid-template-columns: 250px 20px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(138,75,140,.22);
    font-family: "Noto Sans Gujarati", "Plus Jakarta Sans", sans-serif;
}

.donor-book-row:last-child {
    border-bottom: 0;
}

.donor-purpose {
    color: #8a2f20;
    font-size: 1.03rem;
    font-weight: 900;
}

.donor-separator {
    color: #173f6f;
    font-weight: 900;
    text-align: center;
}

.donor-detail {
    color: #253047;
    font-weight: 800;
    line-height: 1.55;
}

.donor-detail strong {
    display: block;
    color: #173f6f;
}

.donor-detail span {
    display: inline-flex;
    margin-left: 10px;
    color: #8a4f12;
}

.donor-detail small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 700;
}

.expense-ledger {
    border: 1px solid rgba(201,141,34,.38);
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.expense-ledger-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 24%, rgba(255,232,169,.28), transparent 10rem),
        linear-gradient(135deg, #173f6f, #226b80);
}

.expense-ledger-head span {
    color: #fff1c8;
    font-weight: 900;
    text-transform: uppercase;
}

.expense-ledger-head h3 {
    margin: 3px 0 0;
    font-weight: 900;
}

.expense-ledger-head strong {
    white-space: nowrap;
    color: #fff1c8;
    font-size: 1.5rem;
    font-weight: 900;
}

.expense-ledger-list {
    padding: 8px 22px 20px;
}

.expense-ledger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.expense-ledger-row:last-child {
    border-bottom: 0;
}

.expense-ledger-row strong,
.expense-ledger-row span {
    display: block;
}

.expense-ledger-row strong {
    color: #173f6f;
    font-weight: 900;
}

.expense-ledger-row span {
    color: var(--muted);
    font-weight: 800;
}

.expense-ledger-row b {
    color: #8a4f12;
    white-space: nowrap;
}

.samuh-photo-carousel {
    border: 3px solid #fff1c8;
    border-radius: 28px;
    background: #0e2d51;
    box-shadow: 0 24px 58px rgba(23,63,111,.18);
    overflow: hidden;
}

.samuh-photo-carousel img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.samuh-photo-carousel .carousel-caption span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    color: #fff8df;
    background: rgba(14,45,81,.82);
    font-weight: 900;
}

.photo-thumb-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.photo-thumb {
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(23,63,111,.12);
    overflow: hidden;
}

.photo-thumb img {
    width: 100%;
    aspect-ratio: 1.35 / 1;
    object-fit: cover;
    transition: .22s;
}

.photo-thumb:hover img {
    transform: scale(1.05);
}

.photo-thumb span {
    position: absolute;
    inset: auto 8px 8px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #fff;
    background: rgba(23,63,111,.82);
    font-size: .76rem;
    font-weight: 800;
}

.empty-samuh-state {
    padding: 24px;
    border: 1px dashed rgba(201,141,34,.55);
    border-radius: 18px;
    color: var(--muted);
    background: #fffaf0;
    font-weight: 800;
    text-align: center;
}

.admin-donor-preview {
    display: grid;
    gap: 10px;
    max-height: 520px;
    overflow: auto;
}

.admin-donor-row {
    display: grid;
    grid-template-columns: 170px 14px 1fr auto;
    gap: 8px;
    align-items: start;
    padding: 12px;
    border: 1px solid #eadbad;
    border-radius: 14px;
    background: #fffaf0;
    font-family: "Noto Sans Gujarati", "Plus Jakarta Sans", sans-serif;
}

.admin-donor-purpose {
    color: #8a2f20;
    font-weight: 900;
}

.admin-donor-separator {
    color: #173f6f;
    font-weight: 900;
}

.admin-donor-detail strong,
.admin-donor-detail span,
.admin-donor-detail small {
    display: block;
}

.admin-donor-detail strong {
    color: #173f6f;
    font-weight: 900;
}

.admin-donor-detail span {
    color: #8a4f12;
    font-weight: 900;
}

.admin-donor-detail small {
    color: var(--muted);
    font-weight: 800;
}

.admin-record-list {
    display: grid;
    gap: 8px;
}

.admin-record {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.admin-record strong,
.admin-record small {
    display: block;
}

.admin-record strong {
    color: #173f6f;
    font-weight: 900;
}

.admin-record small {
    color: var(--muted);
    font-weight: 800;
}

.admin-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-row-actions form {
    margin: 0;
}

.admin-icon-btn {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    line-height: 1;
    transition: .2s;
}

.admin-icon-btn.edit {
    color: #173f6f;
    border-color: rgba(23,63,111,.18);
    background: #eef6ff;
}

.admin-icon-btn.view {
    color: #795315;
    border-color: rgba(201,141,34,.28);
    background: #fff7df;
}

.admin-icon-btn.delete {
    color: #b42318;
    border-color: rgba(180,35,24,.18);
    background: #fff1f0;
}

.admin-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(23,63,111,.12);
}

.admin-icon-text-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
}

.admin-edit-box {
    margin: 8px 0 14px;
    padding: 14px;
    border: 1px dashed rgba(34,107,128,.35);
    border-radius: 14px;
    background: #f8fbff;
}

.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-photo-card {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.admin-photo-card img {
    width: 100%;
    aspect-ratio: 1.45 / 1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 8px;
}

.admin-photo-card strong,
.admin-photo-card small {
    display: block;
}

.admin-photo-card strong {
    color: #173f6f;
    font-weight: 900;
}

.admin-photo-card small {
    color: var(--muted);
    font-weight: 800;
}

@media(max-width:991px) {
    .admin-sidebar { position: static; width: auto; }
    .admin-main { margin-left: 0; }
    .timeline-item { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-detail-table { grid-template-columns: 1fr; }
    .updates-head { flex-direction: column; }
    .updates-grid { grid-template-columns: 1fr; }
    .actual-family-tree { min-width: 720px; }
    .hero { min-height: 680px; }
    .toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
    .tree-view-toolbar { align-items: flex-start; flex-direction: column; }
    .family-grid-view { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gift-register-table {
        min-width: 760px;
    }

    .gift-register {
        overflow-x: auto;
    }

    .wedding-couple-grid {
        grid-template-columns: 1fr;
    }

    .samuh-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .samuh-tabs .nav-link {
        white-space: nowrap;
    }

    .donor-book-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .donor-separator {
        display: none;
    }

    .expense-ledger-head,
    .expense-ledger-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .samuh-photo-carousel img {
        height: 320px;
    }

    .photo-thumb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .admin-donor-separator {
        display: none;
    }

    .admin-record {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-photo-grid {
        grid-template-columns: 1fr;
    }
}
