/* =========================================================
   पहाडी पोखरेल वंशावली
   Complete Responsive Stylesheet
   ========================================================= */

/* ---------- Basic Reset ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f3f6f8;
    color: #263746;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    transition: all 0.25s ease;
}

button,
input {
    font-family: inherit;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    background-color: #174d7d;
    color: #ffffff;
}

.header-container {
    width: 92%;
    max-width: 1200px;
    min-height: 135px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 130px 1fr 150px;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
}

/* Logo */

.logo-area {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.site-logo {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    padding: 0;
    border: 3px solid rgba(255,255,255,0.75);
}

/* Main Heading */

.title-area {
    text-align: center;
}

.title-area h1 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 40px;
    line-height: 1.25;
}

.title-area p {
    max-width: 760px;
    margin: 0 auto;
    color: #dbe9f7;
    font-size: 17px;
    line-height: 1.6;
}

/* Login Button */

.header-button-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.member-button {
    display: inline-block;
    padding: 12px 18px;
    background-color: #e4aa2d;
    color: #1d2d3b;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
}

.member-button:hover {
    background-color: #ffffff;
    color: #123f69;
}

/* =========================================================
   MAIN MENU
   ========================================================= */

.main-menu {
    background-color: #082f56;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.menu-container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.menu-container a {
    display: block;
    padding: 15px 21px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
}

.menu-container a:hover,
.menu-container a.active {
    background-color: #e4aa2d;
    color: #17293a;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */

.main-content {
    width: 92%;
    max-width: 1200px;
    margin: 32px auto 55px;
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero-section {
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px 30px;
    background:
        linear-gradient(
            rgba(19, 67, 108, 0.96),
            rgba(39, 96, 136, 0.94)
        );
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(18, 52, 78, 0.18);
}

.hero-content {
    width: 100%;
    max-width: 820px;
    color: #ffffff;
    text-align: center;
}

.hero-small-title {
    margin-bottom: 10px;
    color: #f4c660;
    font-size: 18px;
    font-weight: bold;
}

.hero-content h2 {
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 43px;
    line-height: 1.25;
}

.hero-description {
    max-width: 720px;
    margin: 0 auto 25px;
    color: #eef6fd;
    font-size: 18px;
    line-height: 1.8;
}

/* Search Form */

.search-form {
    max-width: 660px;
    margin: 0 auto;
    display: flex;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 9px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.search-form input {
    flex: 1;
    min-width: 0;
    padding: 16px 18px;
    border: none;
    outline: none;
    color: #263746;
    font-size: 17px;
}

.search-form button {
    padding: 16px 27px;
    border: none;
    background-color: #e4aa2d;
    color: #1b2c3a;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.search-form button:hover {
    background-color: #f2c35d;
}

.search-note {
    margin-top: 14px;
    color: #c9dced;
    font-size: 14px;
}

/* =========================================================
   COMMON SECTION HEADING
   ========================================================= */

.section-heading {
    margin-bottom: 25px;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 7px;
    color: #123f69;
    font-size: 31px;
}

.section-heading p {
    color: #687985;
    font-size: 16px;
}

/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.quick-section {
    margin-top: 48px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.quick-card {
    display: block;
    padding: 28px 22px;
    background-color: #ffffff;
    color: #263746;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    border-bottom: 4px solid transparent;
    box-shadow: 0 4px 16px rgba(21, 52, 75, 0.08);
}

.quick-card:hover {
    transform: translateY(-5px);
    border-bottom-color: #e4aa2d;
    box-shadow: 0 10px 25px rgba(21, 52, 75, 0.15);
}

.quick-icon {
    margin-bottom: 12px;
    font-size: 35px;
}

.quick-card h3 {
    margin-bottom: 10px;
    color: #123f69;
    font-size: 21px;
}

.quick-card p {
    margin: 0;
    color: #536672;
    line-height: 1.7;
}

/* =========================================================
   NEWS AND NOTICE
   ========================================================= */

.updates-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-top: 48px;
}

.update-box {
    padding: 28px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(21, 52, 75, 0.08);
}

.update-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 17px;
    border-bottom: 2px solid #e7edf1;
}

.update-heading > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.heading-icon {
    font-size: 24px;
}

.update-heading h2 {
    margin: 0;
    color: #123f69;
    font-size: 25px;
}

.update-heading a {
    color: #165d90;
    text-decoration: none;
    font-weight: bold;
}

.update-heading a:hover {
    color: #c58715;
}

.update-item {
    padding: 18px 0;
    border-bottom: 1px solid #e2e8eb;
}

.update-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.update-date {
    display: inline-block;
    margin-bottom: 6px;
    color: #b47b16;
    font-size: 14px;
}

.update-item h3 {
    margin-bottom: 7px;
    color: #263f52;
    font-size: 18px;
}

.update-item p {
    margin: 0;
    color: #5a6d78;
    line-height: 1.65;
}

.notice-item {
    padding-left: 14px;
    border-left: 3px solid #e4aa2d;
}

/* =========================================================
   PATO SECTION
   ========================================================= */

.pato-section {
    margin-top: 52px;
}

.pato-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 23px;
}

.pato-card {
    position: relative;
    min-height: 215px;
    padding: 32px 24px;
    overflow: hidden;
    background-color: #123f69;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 13px;
    box-shadow: 0 5px 18px rgba(21, 52, 75, 0.12);
}

.pato-card:nth-child(2) {
    background-color: #315f43;
}

.pato-card:nth-child(3) {
    background-color: #74483f;
}

.pato-card span {
    position: absolute;
    top: -20px;
    right: 10px;
    color: rgba(255, 255, 255, 0.12);
    font-size: 100px;
    font-weight: bold;
}

.pato-card h3 {
    position: relative;
    margin: 27px 0 12px;
    font-size: 25px;
}

.pato-card p {
    position: relative;
    margin: 0;
    color: #edf5fa;
    line-height: 1.7;
}

.pato-card:hover {
    transform: translateY(-5px);
    filter: brightness(1.08);
}

/* =========================================================
   CULTURE SECTION
   ========================================================= */

.culture-section {
    margin-top: 52px;
    padding: 46px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(21, 52, 75, 0.08);
}

.culture-content {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 45px;
    align-items: center;
}

.small-label {
    margin-bottom: 8px;
    color: #b47b16;
    font-weight: bold;
}

.culture-text h2,
.support-card h2,
.membership-card h2 {
    margin-bottom: 15px;
    font-size: 30px;
    line-height: 1.35;
}

.culture-text h2 {
    color: #123f69;
}

.culture-text > p:not(.small-label) {
    color: #536672;
    line-height: 1.8;
}

.primary-button,
.gold-button,
.light-button {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 7px;
}

.primary-button {
    background-color: #123f69;
    color: #ffffff;
}

.primary-button:hover {
    background-color: #e4aa2d;
    color: #192b38;
}

.culture-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.culture-list div {
    padding: 17px;
    background-color: #f2f6f8;
    color: #25445a;
    border-radius: 8px;
    font-weight: bold;
}

/* =========================================================
   SUPPORT AND MEMBERSHIP
   ========================================================= */

.support-membership-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 52px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(21, 52, 75, 0.12);
}

.support-card,
.membership-card {
    padding: 43px;
}

.support-card {
    background-color: #f7dfaa;
    color: #29353e;
}

.membership-card {
    background-color: #123f69;
    color: #ffffff;
}

.support-card p:not(.small-label),
.membership-card p:not(.small-label) {
    line-height: 1.75;
}

.membership-card .small-label {
    color: #f1ca6e;
}

.gold-button {
    background-color: #123f69;
    color: #ffffff;
}

.gold-button:hover {
    background-color: #082f56;
}

.light-button {
    background-color: #ffffff;
    color: #123f69;
}

.light-button:hover {
    background-color: #e4aa2d;
    color: #152638;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background-color: #082d50;
    color: #ffffff;
}

.footer-container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 45px;
    padding: 45px 0;
}

.footer-about {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 3px;
}

.footer-about h3,
.footer-links h3,
.footer-technical h3 {
    margin-bottom: 12px;
}

.footer-about p,
.footer-technical p {
    margin: 0;
    color: #cbd9e5;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #d6e2eb;
    text-decoration: none;
}

.footer-links a:hover {
    color: #efbd53;
}

.footer-technical strong {
    display: block;
    margin-top: 10px;
    color: #efbd53;
}

.copyright {
    padding: 16px;
    background-color: #05213b;
    color: #c9d5df;
    text-align: center;
}

.copyright p {
    margin: 0;
}

/* =========================================================
   TABLET RESPONSIVE
   ========================================================= */

@media screen and (max-width: 900px) {

    .header-container {
        grid-template-columns: 100px 1fr;
    }

    .header-button-area {
        display: none;
    }

    .site-logo {
        width: 88px;
        height: 88px;
    }

    .title-area h1 {
        font-size: 32px;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .culture-content {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-technical {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   MOBILE RESPONSIVE
   ========================================================= */

@media screen and (max-width: 680px) {

    .header-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 20px 0;
        text-align: center;
    }

    .logo-area,
    .header-button-area {
        justify-content: center;
    }

    .header-button-area {
        display: flex;
    }

    .site-logo {
        width: 84px;
        height: 84px;
    }

    .title-area {
        text-align: center;
    }

    .title-area h1 {
        font-size: 27px;
    }

    .title-area p {
        font-size: 15px;
    }

    .menu-container {
        flex-direction: column;
        text-align: center;
    }

    .menu-container a {
        padding: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-content {
        width: 94%;
        margin-top: 20px;
    }

    .hero-section {
        min-height: auto;
        padding: 38px 18px;
    }

    .hero-small-title {
        font-size: 16px;
    }

    .hero-content h2 {
        font-size: 29px;
    }

    .hero-description {
        font-size: 16px;
    }

    .search-form {
        flex-direction: column;
        overflow: visible;
        background-color: transparent;
        box-shadow: none;
    }

    .search-form input,
    .search-form button {
        width: 100%;
        border-radius: 7px;
    }

    .search-form button {
        margin-top: 10px;
    }

    .quick-grid,
    .updates-section,
    .pato-grid,
    .support-membership-section {
        grid-template-columns: 1fr;
    }

    .culture-section {
        padding: 29px 20px;
    }

    .culture-list {
        grid-template-columns: 1fr;
    }

    .support-card,
    .membership-card {
        padding: 31px 22px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 35px 0;
    }

    .footer-about {
        align-items: flex-start;
    }
}

.member-detail-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

.member-detail-table th,
.member-detail-table td {
    padding: 14px 16px;
    border: 1px solid #dce4e9;
    text-align: left;
}

.member-detail-table th {
    width: 220px;
    background-color: #123f69;
    color: white;
}

.member-detail-table tr:nth-child(even) td {
    background-color: #f5f8fa;
}

@media screen and (max-width: 680px) {

    .member-detail-table th,
    .member-detail-table td {
        display: block;
        width: 100%;
    }

    .member-detail-table th {
        border-bottom: none;
    }

.search-box{
    width:700px;
    max-width:90%;
    margin:30px auto;
}

.search-box form{
    display:flex;
    justify-content:center;
}

.search-box input{
    width:75%;
    padding:15px;
    border:2px solid #d9a321;
    border-radius:8px 0 0 8px;
    font-size:18px;
}

.search-box button{
    width:25%;
    border:none;
    background:#d9a321;
    color:white;
    font-size:18px;
    border-radius:0 8px 8px 0;
    cursor:pointer;
}

.search-box button:hover{
    background:#b88918;
}
}

.children-section {
    margin-top: 32px;
    padding-top: 25px;
    border-top: 2px solid #e1e8ed;
}

.children-section h3 {
    margin-bottom: 18px;
    color: #123f69;
    font-size: 24px;
}

.children-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.child-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 18px;
    background-color: #f4f7f9;
    color: #263746;
    text-decoration: none;
    border-left: 4px solid #e4aa2d;
    border-radius: 8px;
}

.child-card:hover {
    transform: translateY(-3px);
    background-color: #eef4f7;
    box-shadow: 0 5px 14px rgba(20, 55, 80, 0.12);
}

.child-card strong {
    color: #123f69;
    font-size: 18px;
}

.child-card span {
    color: #536672;
}

.child-card small {
    color: #b47b16;
}

@media screen and (max-width: 680px) {

    .children-list {
        grid-template-columns: 1fr;
    }
}
/* सन्तान कार्डलाई Compact बनाउने */

.children-section {
    margin-top: 24px;
    padding-top: 18px;
}

.children-section h3 {
    margin-bottom: 14px;
}

.children-list,
.tree-children-row {
    gap: 12px;
}

.child-card,
.child-person {
    min-height: auto;
    padding: 14px 16px;
    gap: 3px;
    border-radius: 8px;
}

.child-card strong,
.child-person strong {
    font-size: 17px;
    line-height: 1.25;
}

.child-card span,
.child-person span {
    font-size: 14px;
}

.child-card small,
.child-person small {
    font-size: 13px;
}

.child-position {
    margin: 4px auto 0;
    padding: 3px 9px;
    font-size: 12px;
    line-height: 1.2;
}

.member-detail-table + .children-section {
    margin-top: 22px;
}

/* =========================================================
   FAMILY UNIT TREE
   ========================================================= */

.family-tree-wrapper {
    max-width: 1050px;
    margin: 30px auto;
    padding: 40px 25px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 22px rgba(20, 55, 80, 0.11);
}

.family-unit {
    display: flex;
    justify-content: center;
}

.couple-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.family-person {
    width: 300px;
    min-height: 115px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 4px 13px rgba(20, 55, 80, 0.12);
}

.main-person {
    background-color: #154b78;
    color: #ffffff;
}

.main-person:hover {
    background-color: #0b365d;
    transform: translateY(-3px);
}

.spouse-person{
    background-color:#b98a22;
    color:#ffffff;
}

.spouse-person:hover{
    background-color:#9c7318;
}

.family-person strong {
    font-size: 20px;
}

.family-person span {
    font-size: 15px;
    opacity: 0.95;
}

.family-person small {
    font-size: 14px;
    color: #f5ca67;
}

.spouse-person small {
    color: #ffffff;
    font-weight: bold;
}

/* पति-पत्नी जोड्ने लाइन */

.marriage-connector{
    width:100px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.marriage-line{
    width:40px;
    height:3px;
    background:#596671;
}

.marriage-symbol{
    margin:6px 0;
    color:#c83d3d;
    font-size:20px;
}

/* पुस्ताबीचको ठाडो लाइन */

.generation-connector {
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vertical-line {
    width: 3px;
    height: 50px;
    background-color: #d49a1e;
}

.down-arrow {
    margin-top: -3px;
    color: #d49a1e;
    font-size: 16px;
}

/* Tablet */

@media screen and (max-width: 900px) {

    .family-person {
        width: 245px;
    }

    .marriage-connector {
        width: 70px;
    }

    .marriage-line {
        width: 22px;
    }
}

/* Mobile */

@media screen and (max-width: 680px) {

    .family-tree-wrapper {
        padding: 25px 12px;
        overflow-x: auto;
    }

    .couple-row {
        min-width: 330px;
        flex-direction: column;
    }

    .family-person {
        width: 100%;
        max-width: 330px;
    }

    .marriage-connector {
        width: auto;
        height: 55px;
        flex-direction: column;
    }

    .marriage-line {
        width: 3px;
        height: 18px;
    }

    .marriage-symbol {
        margin: 2px 0;
    }

    .generation-connector {
        height: 60px;
    }

    .vertical-line {
        height: 38px;
    }
}

.children-tree-connector {
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tree-children-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.child-person {
    background-color: #315f43;
    color: #ffffff;
}

.child-person:hover {
    background-color: #244a33;
    transform: translateY(-3px);
}

@media screen and (max-width: 680px) {

    .tree-children-row {
        flex-direction: column;
        align-items: center;
    }

    .child-person {
        width: 100%;
        max-width: 330px;
    }
}

.child-position {
    display: inline-block;
    margin: 5px auto 0;
    padding: 4px 10px;
    background-color: #dbeafe;
    color: #0b3d91 !important;
    font-weight: bold;
    border-radius: 20px;
}

/* =========================================================
   ADD MEMBER FORM
   ========================================================= */

.member-form-wrapper {
    max-width: 1100px;
    margin: 25px auto 50px;
    padding: 28px;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(20, 55, 80, 0.10);
}

.member-entry-form {
    width: 100%;
}

.form-section-title {
    margin: 26px 0 16px;
    padding: 11px 15px;
    background-color: #154b78;
    color: #ffffff;
    font-size: 19px;
    font-weight: bold;
    border-left: 5px solid #dfa51e;
    border-radius: 6px;
}

.form-section-title:first-child {
    margin-top: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    color: #163d61;
    font-size: 15px;
    font-weight: bold;
}

.form-group label span {
    color: #c83d3d;
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbd7df;
    border-radius: 7px;
    background-color: #ffffff;
    color: #263746;
    font-size: 15px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #dfa51e;
    box-shadow: 0 0 0 3px rgba(223, 165, 30, 0.15);
}

.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 14px;
}

.save-member-button,
.cancel-member-button {
    min-width: 190px;
    padding: 13px 22px;
    border: none;
    border-radius: 7px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.save-member-button {
    background-color: #dfa51e;
    color: #ffffff;
}

.save-member-button:hover {
    background-color: #b98210;
}

.cancel-member-button {
    background-color: #e6ebef;
    color: #274258;
}

.cancel-member-button:hover {
    background-color: #d5dde3;
}

.form-message {
    max-width: 1100px;
    margin: 20px auto;
    padding: 14px 18px;
    border-radius: 8px;
    font-weight: bold;
}

.form-message.success {
    background-color: #e4f5e8;
    color: #216437;
    border: 1px solid #a7d8b3;
}

.form-message.error {
    background-color: #fde8e8;
    color: #9f2525;
    border: 1px solid #efb3b3;
}

@media screen and (max-width: 760px) {

    .member-form-wrapper {
        padding: 20px 14px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .save-member-button,
    .cancel-member-button {
        width: 100%;
    }
}
/* जन्म तथा विवाह दर्ता */

.registration-wrapper {
    max-width: 1100px;
    margin: 25px auto 50px;
    padding: 28px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(20, 55, 80, 0.10);
}

.registration-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.registration-type-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 2px solid #d8e1e7;
    border-radius: 9px;
    cursor: pointer;
}

.registration-type-card:hover {
    border-color: #dfa51e;
    background: #fff9eb;
}

.registration-type-card strong {
    color: #154b78;
    font-size: 18px;
}

.registration-type-card span {
    color: #63727d;
    font-size: 14px;
}

.hidden-section {
    display: none;
}

.form-group small {
    color: #697984;
    line-height: 1.5;
}

@media screen and (max-width: 760px) {

    .registration-type-grid {
        grid-template-columns: 1fr;
    }

    .registration-wrapper {
        padding: 20px 14px;
    }
}
/* दर्ता सफल सन्देश */

.registration-success-box {
    max-width: 720px;
    margin: 55px auto;
    padding: 45px 30px;
    background-color: #ffffff;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0 5px 22px rgba(20, 55, 80, 0.12);
}

.success-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2f7d46;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    border-radius: 50%;
}

.registration-success-box h2 {
    margin-bottom: 15px;
    color: #154b78;
}

.registration-success-box p {
    max-width: 560px;
    margin: 0 auto;
    color: #596b77;
    line-height: 1.8;
}

.request-number {
    margin: 22px auto;
    padding: 12px 18px;
    display: inline-block;
    background-color: #fff3cd;
    color: #76560c;
    border-radius: 7px;
}

.success-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

@media screen and (max-width: 680px) {

    .success-actions {
        flex-direction: column;
    }
}
/* =========================================================
   ADMIN REQUEST DASHBOARD
   ========================================================= */

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 25px 0 32px;
}

.admin-summary-card {
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background-color: #ffffff;
    color: #29455a;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 11px;
    box-shadow: 0 4px 15px rgba(20, 55, 80, 0.08);
}

.admin-summary-card strong {
    color: #154b78;
    font-size: 31px;
}

.admin-summary-card.active,
.admin-summary-card:hover {
    border-color: #dfa51e;
    transform: translateY(-3px);
}

.request-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.request-card {
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 17px rgba(20, 55, 80, 0.09);
}

.request-card-header {
    padding-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #dde5ea;
}

.request-card-header h3 {
    margin: 9px 0 5px;
    color: #154b78;
    font-size: 23px;
}

.request-card-header small {
    color: #778791;
}

.request-type-badge,
.request-status-badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 20px;
}

.request-type-badge {
    background-color: #e8f0f7;
    color: #154b78;
}

.request-status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

.request-status-badge.approved {
    background-color: #dff2e4;
    color: #216437;
}

.request-status-badge.rejected {
    background-color: #fde5e5;
    color: #9f2525;
}

.request-detail-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
}

.request-detail-grid > div {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: #f4f7f9;
    border-radius: 7px;
}

.request-detail-grid span {
    color: #6f808c;
    font-size: 13px;
}

.request-detail-grid strong {
    color: #263f52;
}

.request-photo {
    margin-top: 20px;
}

.request-photo img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 9px;
    border: 1px solid #d5dde3;
}

.request-actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
}

.approve-request-button,
.reject-request-button {
    display: inline-block;
    padding: 11px 18px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 7px;
}

.approve-request-button {
    background-color: #2f7d46;
}

.approve-request-button:hover {
    background-color: #256537;
}

.reject-request-button {
    background-color: #bb3d3d;
}

.reject-request-button:hover {
    background-color: #963030;
}

.admin-empty-box {
    text-align: center;
}

@media screen and (max-width: 760px) {

    .admin-summary-grid,
    .request-detail-grid {
        grid-template-columns: 1fr;
    }

    .request-card-header,
    .request-actions {
        flex-direction: column;
    }

    .approve-request-button,
    .reject-request-button {
        width: 100%;
        text-align: center;
    }
}
.child-family-unit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.child-marriage-line {
    color: #c83d3d;
    font-size: 17px;
    font-weight: bold;
}

.child-spouse-person {
    width: 230px;
    min-height: 100px;
    padding: 14px 16px;
    background-color: #b98a22;
    color: #ffffff;
}

.child-spouse-person:hover {
    background-color: #936b17;
    transform: translateY(-3px);
}

@media screen and (max-width: 760px) {

    .child-family-unit {
        flex-direction: column;
    }

    .child-spouse-person {
        width: 100%;
        max-width: 330px;
    }
}
/* सन्तान परिवारलाई स्पष्ट समूहमा देखाउने */

.tree-children-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
}

.child-family-group {
    position: relative;
    padding: 34px 16px 18px;
    background-color: #f7f9fb;
    border: 1px solid #d7e0e7;
    border-top: 4px solid #dfa51e;
    border-radius: 12px;
    box-shadow: 0 4px 13px rgba(20, 55, 80, 0.08);
}

.child-family-label {
    position: absolute;
    top: 0;
    left: 50%;
    padding: 5px 14px;
    background-color: #154b78;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    border-radius: 0 0 9px 9px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.child-couple-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.child-family-group .family-person {
    width: 210px;
    min-height: 105px;
    padding: 13px 12px;
}

.child-family-group .child-person {
    background-color: #2f6747;
}

.child-family-group .child-spouse-person {
    background-color: #b98a22;
}

.child-marriage-connector {
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.child-marriage-connector span {
    width: 15px;
    height: 2px;
    background-color: #63717b;
}

.child-marriage-connector b {
    margin: 0 4px;
    color: #c83d3d;
    font-size: 15px;
}

.relation-label {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 9px;
    background-color: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    border-radius: 20px;
    font-weight: bold;
}

.no-spouse-note {
    width: 210px;
    padding: 12px;
    color: #7a8993;
    text-align: center;
    font-size: 13px;
    border: 1px dashed #b9c5cc;
    border-radius: 8px;
}

@media screen and (max-width: 900px) {

    .tree-children-row {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 620px) {

    .child-couple-row {
        flex-direction: column;
    }

    .child-marriage-connector {
        height: 36px;
        flex-direction: column;
    }

    .child-marriage-connector span {
        width: 2px;
        height: 10px;
    }

    .child-family-group .family-person,
    .no-spouse-note {
        width: 100%;
        max-width: 330px;
    }
}
/* =========================================================
   FINAL FAMILY TREE DESIGN
   ========================================================= */

.family-tree-wrapper {
    max-width: 1180px;
    margin: 28px auto 50px;
    padding: 35px 25px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 22px rgba(20, 55, 80, 0.11);
}

.family-unit {
    display: flex;
    justify-content: center;
}

.couple-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.family-person {
    width: 280px;
    min-height: 105px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 4px 13px rgba(20, 55, 80, 0.13);
    transition: 0.2s ease;
}

.family-person:hover {
    transform: translateY(-3px);
}

.family-person strong {
    font-size: 19px;
}

.family-person span {
    font-size: 14px;
}

.family-person small {
    font-size: 13px;
}

.main-person {
    background-color: #174f7d;
    color: #ffffff;
}

.spouse-person {
    background-color: #bc8b20;
    color: #ffffff;
}

.marriage-connector {
    width: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marriage-line {
    width: 28px;
    height: 2px;
    background-color: #596974;
}

.marriage-symbol {
    margin: 0 6px;
    color: #cf3e46;
    font-size: 18px;
}

.generation-connector,
.children-tree-connector {
    height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vertical-line {
    width: 3px;
    height: 49px;
    background-color: #d99d18;
}

.down-arrow {
    margin-top: -3px;
    color: #d99d18;
    font-size: 15px;
}

.children-section-heading {
    margin: 0 0 20px;
    text-align: center;
}

.children-section-heading h3 {
    display: inline-block;
    margin: 0;
    padding: 8px 20px;
    color: #154b78;
    background-color: #edf3f7;
    border-radius: 25px;
}

.tree-children-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.child-family-group {
    position: relative;
    padding: 38px 15px 17px;
    background-color: #f8fafb;
    border: 1px solid #d7e1e8;
    border-top: 4px solid #dfa51e;
    border-radius: 12px;
    box-shadow: 0 4px 13px rgba(20, 55, 80, 0.08);
}

.child-family-label {
    position: absolute;
    top: 0;
    left: 50%;
    padding: 6px 16px;
    background-color: #154b78;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    border-radius: 0 0 9px 9px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.child-couple-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.child-family-group .family-person {
    width: 205px;
    min-height: 105px;
    padding: 13px 12px;
}

.child-person {
    background-color: #2f6848;
    color: #ffffff;
}

.child-spouse-person {
    background-color: #ba891e;
    color: #ffffff;
}

.child-marriage-connector {
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.child-marriage-connector span {
    width: 15px;
    height: 2px;
    background-color: #687681;
}

.child-marriage-connector b {
    margin: 0 4px;
    color: #c83d3d;
}

.member-role-label,
.relation-label {
    display: inline-block;
    padding: 3px 9px;
    background-color: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    font-weight: bold;
    border-radius: 20px;
}

.no-spouse-note {
    width: 205px;
    min-height: 80px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #71818c;
    text-align: center;
    border: 1px dashed #b7c3cb;
    border-radius: 9px;
}

.no-spouse-note strong {
    color: #506571;
}

.no-children-message {
    margin: 25px auto 5px;
    padding: 18px;
    max-width: 550px;
    color: #657681;
    text-align: center;
    background-color: #f3f6f8;
    border-radius: 9px;
}

@media screen and (max-width: 980px) {

    .tree-children-row {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 680px) {

    .family-tree-wrapper {
        padding: 25px 12px;
    }

    .couple-row,
    .child-couple-row {
        flex-direction: column;
    }

    .family-person,
    .child-family-group .family-person,
    .no-spouse-note {
        width: 100%;
        max-width: 330px;
    }

    .marriage-connector,
    .child-marriage-connector {
        width: auto;
        height: 45px;
        flex-direction: column;
    }

    .marriage-line,
    .child-marriage-connector span {
        width: 2px;
        height: 12px;
    }
}
/* =========================================================
   आफ्नो वंश हेर्नुहोस् — तीन पाटो
   ========================================================= */

.family-pato-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.pato-buttons {
    width: 100%;
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

.pato-button {
    padding: 8px 13px;
    background-color: #154b78;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    transition: 0.2s ease;
}

.pato-button:hover {
    background-color: #dfa51e;
    color: #ffffff;
    transform: translateY(-2px);
}

@media screen and (max-width: 680px) {

    .pato-buttons {
        flex-direction: column;
    }

    .pato-button {
        width: 100%;
        text-align: center;
    }
}
/* =========================================================
   ADMIN DASHBOARD
   ========================================================= */

.admin-account-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-account-box span {
    color: #ffffff;
    font-weight: bold;
}

.admin-account-box small {
    color: #dce8f1;
}

.dashboard-group {
    margin: 26px 0;
    padding: 24px;
    background-color: #ffffff;
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(20, 55, 80, 0.08);
}

.dashboard-group-heading {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dce5eb;
}

.dashboard-group-heading h3 {
    margin: 0;
    color: #154b78;
    font-size: 22px;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-stat-card {
    min-height: 125px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background-color: #f4f7f9;
    color: #29455a;
    text-align: center;
    text-decoration: none;
    border-left: 4px solid #dfa51e;
    border-radius: 9px;
    transition: 0.2s ease;
}

.dashboard-stat-card strong {
    color: #154b78;
    font-size: 32px;
}

.dashboard-stat-card span {
    font-size: 15px;
    font-weight: bold;
}

.dashboard-link-card:hover {
    background-color: #eaf2f8;
    transform: translateY(-3px);
}

.dashboard-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-shortcut-grid a {
    padding: 16px;
    background-color: #154b78;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: 0.2s ease;
}

.dashboard-shortcut-grid a:hover {
    background-color: #dfa51e;
    transform: translateY(-2px);
}

@media screen and (max-width: 980px) {

    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-shortcut-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 620px) {

    .admin-account-box {
        flex-direction: column;
    }

    .dashboard-group {
        padding: 18px 12px;
    }

    .dashboard-stat-grid,
    .dashboard-shortcut-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MEMBER PROFILE
   ========================================================= */

.member-profile-card {
    max-width: 1100px;
    margin: 30px auto 22px;
    padding: 28px;
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 28px;
    align-items: center;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(20, 55, 80, 0.10);
}

.member-profile-photo img,
.profile-photo-placeholder {
    width: 170px;
    height: 170px;
    border-radius: 50%;
}

.member-profile-photo img {
    object-fit: cover;
    border: 5px solid #edf3f7;
}

.profile-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #edf3f7;
    color: #6b7d89;
    font-size: 68px;
}

.member-profile-main h2 {
    margin: 8px 0 4px;
    color: #154b78;
    font-size: 31px;
}

.profile-member-code {
    margin: 0 0 20px;
    color: #657681;
    font-weight: bold;
}

.profile-status-badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: #dff2e4;
    color: #216437;
    font-size: 13px;
    font-weight: bold;
    border-radius: 20px;
}

.profile-meta-grid,
.profile-detail-grid,
.profile-relation-grid {
    display: grid;
    gap: 14px;
}

.profile-meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-relation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-meta-grid > div,
.profile-detail-grid > div,
.profile-relation-card {
    padding: 13px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background-color: #f4f7f9;
    border-radius: 8px;
}

.profile-meta-grid span,
.profile-detail-grid span,
.profile-relation-card span {
    color: #74848e;
    font-size: 13px;
}

.profile-meta-grid strong,
.profile-detail-grid strong,
.profile-relation-card strong,
.profile-relation-card a {
    color: #23455e;
    font-weight: bold;
}

.profile-relation-card a {
    text-decoration: none;
}

.profile-relation-card a:hover {
    color: #dfa51e;
}

.profile-detail-section {
    max-width: 1100px;
    margin: 22px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(20, 55, 80, 0.08);
}

.profile-detail-section h3 {
    margin: 0 0 18px;
    padding-bottom: 10px;
    color: #154b78;
    border-bottom: 1px solid #dce5eb;
}

.profile-children-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.profile-child-card {
    padding: 17px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background-color: #f5f8fa;
    color: #23455e;
    text-decoration: none;
    border-left: 4px solid #dfa51e;
    border-radius: 8px;
    transition: 0.2s ease;
}

.profile-child-card:hover {
    background-color: #eaf2f8;
    transform: translateY(-2px);
}

.profile-child-position {
    color: #b67b00;
    font-size: 13px;
    font-weight: bold;
}

.profile-child-card strong {
    font-size: 17px;
}

.profile-child-card small {
    color: #71818c;
}

.profile-biography {
    margin: 0;
    color: #536976;
    line-height: 1.8;
}

.profile-action-section {
    max-width: 1100px;
    margin: 22px auto 45px;
    display: flex;
    justify-content: center;
    gap: 13px;
    flex-wrap: wrap;
}

.edit-profile-button {
    padding: 13px 22px;
    background-color: #2f7d46;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 7px;
}

.edit-profile-button:hover {
    background-color: #256537;
}

@media screen and (max-width: 900px) {

    .profile-meta-grid,
    .profile-detail-grid,
    .profile-relation-grid,
    .profile-children-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 650px) {

    .member-profile-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .member-profile-photo {
        display: flex;
        justify-content: center;
    }

    .profile-meta-grid,
    .profile-detail-grid,
    .profile-relation-grid,
    .profile-children-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .profile-action-section {
        flex-direction: column;
    }

    .profile-action-section a {
        width: 100%;
        text-align: center;
    }
}
.member-entry-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd7df;
    border-radius: 7px;
    color: #263746;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
}

.member-entry-form textarea:focus {
    outline: none;
    border-color: #dfa51e;
    box-shadow: 0 0 0 3px rgba(223, 165, 30, 0.15);
}
/* =========================================================
   ADMIN MEMBER MANAGEMENT
   ========================================================= */

.member-management-filter {
    margin: 25px 0;
    padding: 22px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(20, 55, 80, 0.08);
}

.admin-member-search-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.admin-filter-actions {
    display: flex;
    gap: 8px;
}

.admin-filter-actions .save-member-button,
.admin-filter-actions .cancel-member-button {
    min-width: auto;
    padding: 12px 16px;
}

.member-list-summary {
    margin: 18px 0;
    color: #536976;
}

.member-list-summary strong {
    color: #154b78;
    font-size: 22px;
}

.admin-member-table-wrapper {
    overflow-x: auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(20, 55, 80, 0.08);
}

.admin-member-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
}

.admin-member-table th,
.admin-member-table td {
    padding: 14px 13px;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
}

.admin-member-table th {
    background-color: #154b78;
    color: #ffffff;
    font-size: 14px;
}

.admin-member-table td {
    color: #385365;
    font-size: 14px;
}

.admin-member-table tbody tr:hover {
    background-color: #f7fafc;
}

.admin-member-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-member-name-cell img,
.member-list-avatar {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border-radius: 50%;
}

.admin-member-name-cell img {
    object-fit: cover;
}

.member-list-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eaf0f4;
    font-size: 22px;
}

.admin-member-name-cell div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-member-name-cell strong {
    color: #1f435c;
}

.admin-member-name-cell small,
.admin-member-table td small {
    display: block;
    color: #778893;
}

.member-life-badge {
    display: inline-block;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
}

.member-life-badge.living {
    background-color: #dff2e4;
    color: #216437;
}

.member-life-badge.deceased {
    background-color: #eceff1;
    color: #59676f;
}

.member-row-actions {
    display: flex;
    gap: 7px;
}

.view-member-action,
.edit-member-action {
    padding: 7px 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    border-radius: 5px;
}

.view-member-action {
    background-color: #154b78;
}

.edit-member-action {
    background-color: #2f7d46;
}

.member-pagination {
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.member-pagination a {
    padding: 9px 15px;
    background-color: #154b78;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
}

.member-pagination span {
    color: #536976;
    font-weight: bold;
}

@media screen and (max-width: 900px) {

    .admin-member-search-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-filter-actions {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 620px) {

    .admin-member-search-form {
        grid-template-columns: 1fr;
    }

    .admin-filter-actions {
        flex-direction: column;
    }

    .admin-filter-actions a,
    .admin-filter-actions button {
        width: 100%;
        text-align: center;
    }
}
/* =========================================================
   ADMIN NEWS MODULE
   ========================================================= */

.news-title-field {
    grid-column: span 2;
}

.admin-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-news-card {
    padding: 15px;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    align-items: center;
    background-color: #f6f9fb;
    border-radius: 10px;
}

.admin-news-card > img {
    width: 150px;
    height: 105px;
    object-fit: cover;
    border-radius: 8px;
}

.admin-news-content h4 {
    margin: 8px 0;
    color: #154b78;
    font-size: 19px;
}

.admin-news-content p {
    margin: 0 0 8px;
    color: #5b6f7b;
    line-height: 1.6;
}

.admin-news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
}

.news-status-badge.published {
    background-color: #dff2e4;
    color: #216437;
}

.news-status-badge.draft {
    background-color: #fff3cd;
    color: #856404;
}

@media screen and (max-width: 680px) {

    .news-title-field {
        grid-column: auto;
    }

    .admin-news-card {
        grid-template-columns: 1fr;
    }

    .admin-news-card > img {
        width: 100%;
        height: 190px;
    }
}
/* =========================================================
   PUBLIC NEWS
   ========================================================= */

.public-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 28px 0 35px;
}

.public-news-card {
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(20, 55, 80, 0.09);
    transition: 0.2s ease;
}

.public-news-card:hover {
    transform: translateY(-4px);
}

.public-news-image-link {
    display: block;
    height: 205px;
    background-color: #eaf0f4;
}

.public-news-image-link img,
.public-news-placeholder {
    width: 100%;
    height: 100%;
}

.public-news-image-link img {
    object-fit: cover;
}

.public-news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #647783;
    font-size: 55px;
}

.public-news-card-content {
    padding: 19px;
}

.public-news-date {
    margin-bottom: 7px;
    color: #b67b00;
    font-size: 13px;
    font-weight: bold;
}

.public-news-card h3 {
    margin: 0 0 10px;
    line-height: 1.45;
}

.public-news-card h3 a {
    color: #154b78;
    text-decoration: none;
}

.public-news-card h3 a:hover {
    color: #dfa51e;
}

.public-news-card p {
    margin: 0 0 16px;
    color: #5d707c;
    line-height: 1.7;
}

.read-news-button {
    display: inline-block;
    padding: 9px 14px;
    background-color: #154b78;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
}

.read-news-button:hover {
    background-color: #dfa51e;
}

.news-detail-wrapper {
    max-width: 920px;
    margin: 35px auto 50px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(20, 55, 80, 0.10);
}

.news-detail-header h2 {
    margin: 12px 0;
    color: #154b78;
    font-size: 32px;
    line-height: 1.45;
}

.news-detail-label {
    display: inline-block;
    padding: 5px 12px;
    background-color: #e8f0f7;
    color: #154b78;
    font-size: 13px;
    font-weight: bold;
    border-radius: 20px;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #71818c;
    font-size: 14px;
}

.news-detail-image {
    margin: 24px 0;
}

.news-detail-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 10px;
}

.news-detail-summary {
    margin: 20px 0;
    padding: 18px;
    background-color: #f1f6f9;
    color: #345568;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.7;
    border-left: 4px solid #dfa51e;
    border-radius: 8px;
}

.news-detail-content {
    color: #405966;
    font-size: 17px;
    line-height: 1.95;
    white-space: normal;
}

.news-detail-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media screen and (max-width: 900px) {

    .public-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 620px) {

    .public-news-grid {
        grid-template-columns: 1fr;
    }

    .news-detail-wrapper {
        padding: 22px 15px;
    }

    .news-detail-header h2 {
        font-size: 25px;
    }

    .news-detail-actions {
        flex-direction: column;
    }

    .news-detail-actions a {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   EDIT NEWS
   ========================================================= */

.current-news-image {
    margin-bottom: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 18px;
    background-color: #f4f7f9;
    border-radius: 9px;
}

.current-news-image img {
    width: 190px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
}

.remove-news-image-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9f2525;
    font-weight: bold;
}

.remove-news-image-option input {
    width: auto;
    min-height: auto;
}

.admin-news-actions {
    margin-top: 13px;
    display: flex;
    gap: 8px;
}

@media screen and (max-width: 620px) {

    .current-news-image {
        flex-direction: column;
        align-items: flex-start;
    }

    .current-news-image img {
        width: 100%;
        height: 210px;
    }

    .admin-news-actions {
        flex-direction: column;
    }

    .admin-news-actions a {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   NEWS ARCHIVE / RESTORE
   ========================================================= */

.news-filter-tabs {
    margin: 0 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-filter-tabs a {
    padding: 8px 14px;
    background-color: #e8eef2;
    color: #36566a;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
}

.news-filter-tabs a.active,
.news-filter-tabs a:hover {
    background-color: #154b78;
    color: #ffffff;
}

.inline-action-form {
    display: inline;
    margin: 0;
}

.archive-news-action,
.restore-news-action {
    padding: 7px 10px;
    border: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.archive-news-action {
    background-color: #8b5e34;
}

.archive-news-action:hover {
    background-color: #704924;
}

.restore-news-action {
    background-color: #2f7d46;
}

.restore-news-action:hover {
    background-color: #256537;
}

.news-status-badge.archived {
    background-color: #e5e7eb;
    color: #4b5563;
}

/* =========================================================
   NOTICE ATTACHMENT PREVIEW
   ========================================================= */

.notice-attachment-preview {
    width: 170px;
    min-height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-image-link {
    width: 100%;
    height: 125px;
    display: block;
    overflow: hidden;
    border-radius: 9px;
}

.notice-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.notice-image-link:hover .notice-thumbnail {
    transform: scale(1.04);
}

.notice-file-preview {
    width: 100%;
    min-height: 125px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background-color: #edf3f7;
    color: #30546a;
    text-align: center;
    text-decoration: none;
    border-radius: 9px;
}

.notice-file-preview.pdf {
    background-color: #fff1f1;
    color: #9f2929;
}

.notice-file-preview.no-file {
    background-color: #f4f7f9;
    color: #657985;
}

.notice-file-preview:hover {
    background-color: #e2edf4;
}

.notice-file-preview.pdf:hover {
    background-color: #ffe2e2;
}

.notice-file-icon {
    font-size: 35px;
}

.notice-file-preview strong {
    font-size: 14px;
}

.notice-file-preview small {
    color: inherit;
    opacity: 0.8;
}

.notice-attachment-actions {
    margin-top: 12px;
}

.view-notice-attachment {
    display: inline-block;
    padding: 7px 11px;
    background-color: #154b78;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    border-radius: 5px;
}

.view-notice-attachment:hover {
    background-color: #dfa51e;
}

@media screen and (max-width: 680px) {

    .notice-attachment-preview {
        width: 100%;
    }

    .notice-image-link,
    .notice-file-preview {
        height: 190px;
    }
}
/* =========================================================
   PUBLIC NOTICE LIST
   ========================================================= */

.public-notice-grid {
    margin: 28px 0 38px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.public-notice-card {
    overflow: hidden;
    background-color: #ffffff;
    border-top: 4px solid #dfa51e;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(20, 55, 80, 0.09);
    transition: 0.2s ease;
}

.public-notice-card:hover {
    transform: translateY(-4px);
}

.public-notice-preview {
    height: 205px;
    display: block;
    overflow: hidden;
    background-color: #edf3f7;
    text-decoration: none;
}

.public-notice-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.public-notice-preview:hover img {
    transform: scale(1.04);
}

.public-notice-file {
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #eef4f8;
    color: #28536d;
    text-align: center;
}

.public-notice-file.pdf {
    background-color: #fff0f0;
    color: #a02a2a;
}

.public-notice-file.no-file {
    background-color: #f3f6f8;
    color: #5f7481;
}

.public-notice-file span {
    font-size: 51px;
}

.public-notice-file strong {
    font-size: 16px;
}

.public-notice-content {
    padding: 20px;
}

.public-notice-date {
    margin-bottom: 8px;
    color: #7a8993;
    font-size: 13px;
}

.public-notice-date strong {
    color: #b67b00;
}

.public-notice-content h3 {
    margin: 0 0 11px;
    line-height: 1.5;
}

.public-notice-content h3 a {
    color: #154b78;
    text-decoration: none;
}

.public-notice-content h3 a:hover {
    color: #dfa51e;
}

.public-notice-content p {
    min-height: 75px;
    margin: 0 0 17px;
    color: #5c707c;
    line-height: 1.7;
}

.public-notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.read-notice-button,
.notice-attachment-button {
    display: inline-block;
    padding: 9px 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    border-radius: 6px;
}

.read-notice-button {
    background-color: #154b78;
}

.notice-attachment-button {
    background-color: #8b5e34;
}

.read-notice-button:hover,
.notice-attachment-button:hover {
    background-color: #dfa51e;
}

@media screen and (max-width: 950px) {

    .public-notice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 620px) {

    .public-notice-grid {
        grid-template-columns: 1fr;
    }

    .public-notice-preview {
        height: 220px;
    }

    .public-notice-content p {
        min-height: auto;
    }

    .public-notice-actions {
        flex-direction: column;
    }

    .public-notice-actions a {
        width: 100%;
        text-align: center;
    }
}
/* =========================================================
   NOTICE DETAIL
   ========================================================= */

.notice-detail-wrapper {
    max-width: 920px;
    margin: 35px auto 50px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(20, 55, 80, 0.10);
}

.notice-detail-header h2 {
    margin: 12px 0;
    color: #154b78;
    font-size: 32px;
    line-height: 1.45;
}

.notice-detail-label {
    display: inline-block;
    padding: 5px 12px;
    background-color: #fff1c9;
    color: #8a5c00;
    font-size: 13px;
    font-weight: bold;
    border-radius: 20px;
}

.notice-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #71818c;
    font-size: 14px;
}

.notice-detail-meta strong {
    color: #b67b00;
}

.notice-detail-image {
    margin: 25px 0;
}

.notice-detail-image img {
    width: 100%;
    max-height: 620px;
    display: block;
    object-fit: contain;
    background-color: #f4f7f9;
    border-radius: 10px;
}

.notice-detail-file-card {
    margin: 25px 0;
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    align-items: center;
    background-color: #eef4f8;
    color: #31566c;
    border-radius: 10px;
}

.notice-detail-file-card.pdf {
    background-color: #fff0f0;
    color: #982828;
}

.notice-detail-file-card > span {
    font-size: 40px;
}

.notice-detail-file-card div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notice-detail-file-card a {
    padding: 9px 13px;
    background-color: #154b78;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
}

.notice-detail-file-card.pdf a {
    background-color: #a02a2a;
}

.notice-detail-summary {
    margin: 22px 0;
    padding: 18px;
    background-color: #f4f7f9;
    color: #345568;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.7;
    border-left: 4px solid #dfa51e;
    border-radius: 8px;
}

.notice-detail-content {
    color: #405966;
    font-size: 17px;
    line-height: 1.95;
}

.notice-detail-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

@media screen and (max-width: 620px) {

    .notice-detail-wrapper {
        padding: 22px 15px;
    }

    .notice-detail-header h2 {
        font-size: 25px;
    }

    .notice-detail-file-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .notice-detail-file-card a {
        width: 100%;
        text-align: center;
    }

    .notice-detail-actions {
        flex-direction: column;
    }

    .notice-detail-actions a {
        width: 100%;
        text-align: center;
    }
}
/* =========================================================
   EDIT NOTICE
   ========================================================= */

.current-notice-attachment {
    margin-bottom: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 18px;
    background-color: #f4f7f9;
    border-radius: 9px;
}

.current-notice-attachment img {
    width: 210px;
    height: 145px;
    object-fit: cover;
    border-radius: 8px;
}

.current-notice-file {
    display: inline-block;
    padding: 14px 18px;
    background-color: #154b78;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 7px;
}

.current-notice-file:hover {
    background-color: #dfa51e;
}

@media screen and (max-width: 620px) {

    .current-notice-attachment {
        flex-direction: column;
        align-items: flex-start;
    }

    .current-notice-attachment img {
        width: 100%;
        height: 220px;
    }

    .current-notice-file {
        width: 100%;
        text-align: center;
    }
}
/* =========================================================
   ADMIN GALLERY ALBUM
   ========================================================= */

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.admin-gallery-album-card {
    overflow: hidden;
    background-color: #f8fafb;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(20, 55, 80, 0.09);
    transition: 0.2s ease;
}

.admin-gallery-album-card:hover {
    transform: translateY(-3px);
}

.admin-gallery-cover {
    position: relative;
    height: 210px;
    overflow: hidden;
    background-color: #eaf0f4;
}

.admin-gallery-cover img,
.admin-gallery-placeholder {
    width: 100%;
    height: 100%;
}

.admin-gallery-cover img {
    display: block;
    object-fit: cover;
}

.admin-gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #617783;
    font-size: 58px;
}

.gallery-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 11px;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
}

.gallery-status-badge.published {
    background-color: #2f7d46;
}

.gallery-status-badge.draft {
    background-color: #b57a00;
}

.gallery-status-badge.archived {
    background-color: #59676f;
}

.admin-gallery-card-content {
    padding: 18px;
}

.admin-gallery-card-content h4 {
    margin: 0 0 10px;
    color: #154b78;
    font-size: 20px;
    line-height: 1.45;
}

.admin-gallery-meta {
    margin-bottom: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #71818c;
    font-size: 13px;
}

.admin-gallery-meta strong {
    color: #b67b00;
}

.admin-gallery-card-content p {
    margin: 0 0 12px;
    color: #566d79;
    line-height: 1.7;
}

.admin-gallery-card-content > small {
    color: #778893;
}

.gallery-album-note {
    margin-top: 14px;
    padding: 10px 12px;
    background-color: #edf3f7;
    color: #456273;
    font-size: 13px;
    line-height: 1.6;
    border-radius: 7px;
}

@media screen and (max-width: 950px) {

    .admin-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 620px) {

    .admin-gallery-grid {
        grid-template-columns: 1fr;
    }

    .admin-gallery-cover {
        height: 230px;
    }
}
/* =========================================================
   ADMIN GALLERY ITEMS
   ========================================================= */

.gallery-admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.gallery-admin-form-grid .member-form-wrapper {
    margin-top: 0;
}

.admin-gallery-items-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.admin-gallery-item-card {
    overflow: hidden;
    background-color: #f7fafc;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(20, 55, 80, 0.08);
}

.admin-gallery-item-card > img {
    width: 100%;
    height: 175px;
    display: block;
    object-fit: cover;
}

.gallery-video-preview {
    height: 175px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #edf3f7;
    text-align: center;
}

.gallery-video-preview span {
    font-size: 42px;
}

.gallery-video-preview a {
    color: #154b78;
    font-weight: bold;
}

.gallery-item-details {
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gallery-item-type {
    color: #b67b00;
    font-size: 12px;
    font-weight: bold;
}

.gallery-item-details strong {
    color: #284a60;
}

.gallery-item-details small {
    color: #758690;
}

@media screen and (max-width: 1050px) {

    .admin-gallery-items-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 850px) {

    .gallery-admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-gallery-items-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 560px) {

    .admin-gallery-items-grid {
        grid-template-columns: 1fr;
    }

    .admin-gallery-item-card > img,
    .gallery-video-preview {
        height: 230px;
    }
}
/* =========================================================
   PUBLIC GALLERY LIST
   ========================================================= */

.public-gallery-grid {
    margin: 28px 0 38px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.public-gallery-card {
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(20, 55, 80, 0.09);
    transition: 0.2s ease;
}

.public-gallery-card:hover {
    transform: translateY(-4px);
}

.public-gallery-cover {
    position: relative;
    height: 230px;
    display: block;
    overflow: hidden;
    background-color: #eaf0f4;
}

.public-gallery-cover img,
.public-gallery-placeholder {
    width: 100%;
    height: 100%;
}

.public-gallery-cover img {
    display: block;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.public-gallery-card:hover .public-gallery-cover img {
    transform: scale(1.04);
}

.public-gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #637884;
    font-size: 60px;
}

.public-gallery-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 11px;
    background-color: rgba(21, 75, 120, 0.88);
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    border-radius: 20px;
}

.public-gallery-content {
    padding: 19px;
}

.public-gallery-date {
    margin-bottom: 8px;
    color: #788994;
    font-size: 13px;
}

.public-gallery-date strong {
    color: #b67b00;
}

.public-gallery-content h3 {
    margin: 0 0 10px;
    line-height: 1.5;
}

.public-gallery-content h3 a {
    color: #154b78;
    text-decoration: none;
}

.public-gallery-content h3 a:hover {
    color: #dfa51e;
}

.public-gallery-content p {
    min-height: 75px;
    margin: 0 0 14px;
    color: #5d707c;
    line-height: 1.7;
}

.public-gallery-meta {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #526a78;
    font-size: 13px;
    font-weight: bold;
}

.open-gallery-button {
    display: inline-block;
    padding: 9px 14px;
    background-color: #154b78;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
}

.open-gallery-button:hover {
    background-color: #dfa51e;
}

@media screen and (max-width: 950px) {

    .public-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 620px) {

    .public-gallery-grid {
        grid-template-columns: 1fr;
    }

    .public-gallery-cover {
        height: 240px;
    }

    .public-gallery-content p {
        min-height: auto;
    }

    .open-gallery-button {
        width: 100%;
        text-align: center;
    }
}
/* =========================================================
   PUBLIC GALLERY DETAIL
   ========================================================= */

.gallery-detail-hero {
    margin: 30px 0;
    padding: 25px;
    display: grid;
    grid-template-columns: minmax(280px, 430px) 1fr;
    gap: 28px;
    align-items: center;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(20, 55, 80, 0.10);
}

.gallery-detail-cover {
    height: 300px;
    overflow: hidden;
    background-color: #edf3f7;
    border-radius: 11px;
}

.gallery-detail-cover img,
.gallery-detail-placeholder {
    width: 100%;
    height: 100%;
}

.gallery-detail-cover img {
    display: block;
    object-fit: cover;
}

.gallery-detail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #647984;
    font-size: 68px;
}

.gallery-detail-label {
    display: inline-block;
    padding: 5px 12px;
    background-color: #e8f0f7;
    color: #154b78;
    font-size: 13px;
    font-weight: bold;
    border-radius: 20px;
}

.gallery-detail-info h2 {
    margin: 11px 0;
    color: #154b78;
    font-size: 32px;
    line-height: 1.45;
}

.gallery-detail-meta {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #70818c;
    font-size: 14px;
}

.gallery-detail-meta strong {
    color: #b67b00;
}

.gallery-detail-info p {
    margin: 0;
    color: #526976;
    font-size: 16px;
    line-height: 1.8;
}

.public-gallery-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.public-gallery-photo-card {
    position: relative;
    height: 210px;
    padding: 0;
    overflow: hidden;
    background-color: #edf3f7;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 3px 11px rgba(20, 55, 80, 0.08);
}

.public-gallery-photo-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.public-gallery-photo-card:hover img {
    transform: scale(1.05);
}

.public-gallery-photo-card > span {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 25px 11px 10px;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.76)
    );
    color: #ffffff;
    text-align: left;
    font-family: inherit;
    font-size: 13px;
}

.public-gallery-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.public-gallery-video-card {
    overflow: hidden;
    background-color: #f7fafc;
    border-radius: 11px;
    box-shadow: 0 3px 12px rgba(20, 55, 80, 0.08);
}

.public-gallery-video-frame {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background-color: #000000;
}

.public-gallery-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.public-gallery-video-fallback {
    min-height: 260px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background-color: #edf3f7;
    color: #4b6575;
    text-align: center;
}

.public-gallery-video-fallback span {
    font-size: 48px;
}

.public-gallery-video-fallback a {
    padding: 9px 14px;
    background-color: #154b78;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
}

.public-gallery-video-caption {
    padding: 14px 16px;
    color: #385568;
    font-weight: bold;
}

/* Lightbox */

body.gallery-lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    z-index: 9999;
    inset: 0;
    padding: 60px 80px;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.92);
}

.gallery-lightbox.open {
    display: flex;
}

.gallery-lightbox-content {
    max-width: 1100px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.gallery-lightbox-content img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 7px;
}

.gallery-lightbox-caption {
    color: #ffffff;
    text-align: center;
    font-size: 15px;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    border: none;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.gallery-lightbox-close {
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    font-size: 33px;
    border-radius: 50%;
}

.gallery-lightbox-nav {
    top: 50%;
    width: 52px;
    height: 62px;
    font-size: 42px;
    transform: translateY(-50%);
    border-radius: 8px;
}

.gallery-lightbox-nav.previous {
    left: 18px;
}

.gallery-lightbox-nav.next {
    right: 18px;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
    background-color: rgba(223, 165, 30, 0.75);
}

@media screen and (max-width: 1000px) {

    .public-gallery-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 800px) {

    .gallery-detail-hero {
        grid-template-columns: 1fr;
    }

    .gallery-detail-cover {
        height: 330px;
    }

    .public-gallery-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-gallery-video-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 560px) {

    .gallery-detail-hero {
        padding: 16px;
    }

    .gallery-detail-cover {
        height: 240px;
    }

    .gallery-detail-info h2 {
        font-size: 25px;
    }

    .public-gallery-photo-grid {
        grid-template-columns: 1fr;
    }

    .public-gallery-photo-card {
        height: 260px;
    }

    .gallery-lightbox {
        padding: 55px 10px 30px;
    }

    .gallery-lightbox-nav {
        top: auto;
        bottom: 15px;
        width: 48px;
        height: 48px;
        font-size: 33px;
    }

    .gallery-lightbox-nav.previous {
        left: calc(50% - 58px);
    }

    .gallery-lightbox-nav.next {
        right: calc(50% - 58px);
    }
}
/* =========================================================
   EDIT GALLERY ALBUM
   ========================================================= */

.current-gallery-cover {
    margin-bottom: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 18px;
    background-color: #f4f7f9;
    border-radius: 9px;
}

.current-gallery-cover img {
    width: 230px;
    height: 155px;
    object-fit: cover;
    border-radius: 8px;
}

@media screen and (max-width: 620px) {

    .current-gallery-cover {
        flex-direction: column;
        align-items: flex-start;
    }

    .current-gallery-cover img {
        width: 100%;
        height: 230px;
    }
}
/* =========================================================
   GALLERY ITEM EDIT / ACTIONS
   ========================================================= */

.current-gallery-item-preview {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f4f7f9;
    border-radius: 10px;
}

.current-gallery-item-preview img {
    width: 100%;
    max-width: 520px;
    max-height: 380px;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-item-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

/* =========================================================
   ADMIN EVENT MODULE
   ========================================================= */

.event-checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #284a60;
    font-weight: bold;
}

.event-checkbox-label input {
    width: auto;
    min-height: auto;
}

.admin-event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.admin-event-card {
    overflow: hidden;
    background-color: #f8fafb;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(20, 55, 80, 0.09);
    transition: 0.2s ease;
}

.admin-event-card:hover {
    transform: translateY(-3px);
}

.admin-event-banner {
    position: relative;
    height: 215px;
    overflow: hidden;
    background-color: #eaf0f4;
}

.admin-event-banner img,
.admin-event-placeholder {
    width: 100%;
    height: 100%;
}

.admin-event-banner img {
    display: block;
    object-fit: cover;
}

.admin-event-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 65px;
}

.admin-event-content {
    padding: 18px;
}

.event-category-label {
    display: inline-block;
    padding: 5px 10px;
    background-color: #e8f0f7;
    color: #154b78;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
}

.admin-event-content h4 {
    margin: 10px 0;
    color: #154b78;
    font-size: 20px;
    line-height: 1.45;
}

.admin-event-meta {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #6d808c;
    font-size: 13px;
}

.admin-event-meta strong {
    color: #b67b00;
}

.admin-event-content p {
    margin: 0 0 13px;
    color: #576e7b;
    line-height: 1.7;
}

.event-registration-summary {
    margin: 12px 0;
    padding: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background-color: #edf3f7;
    color: #4c6878;
    font-size: 13px;
    border-radius: 7px;
}

.event-registration-summary strong {
    color: #154b78;
}

@media screen and (max-width: 950px) {

    .admin-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 620px) {

    .admin-event-grid {
        grid-template-columns: 1fr;
    }

    .admin-event-banner {
        height: 235px;
    }
}
/* =========================================================
   PUBLIC EVENT MODULE
   ========================================================= */

.public-event-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.public-event-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 18px rgba(0,0,0,.08);
}

.public-event-banner{
    height:220px;
    background:#eef3f7;
}

.public-event-banner img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.public-event-placeholder{
    height:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:70px;
}

.public-event-content{
    padding:20px;
}

.public-event-content h3{
    margin:10px 0;
}

.public-event-meta{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-bottom:15px;
    color:#666;
}

.event-card-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:15px;
}

@media(max-width:900px){
    .public-event-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:600px){
    .public-event-grid{
        grid-template-columns:1fr;
    }
}
/* =========================================================
   PUBLIC EVENT LIST
   ========================================================= */

.public-event-grid {
    margin: 28px 0 38px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.public-event-card {
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(20, 55, 80, 0.09);
    transition: 0.2s ease;
}

.public-event-card:hover {
    transform: translateY(-4px);
}

.public-event-banner {
    height: 225px;
    display: block;
    overflow: hidden;
    background-color: #edf3f7;
    text-decoration: none;
}

.public-event-banner img,
.public-event-placeholder {
    width: 100%;
    height: 100%;
}

.public-event-banner img {
    display: block;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.public-event-card:hover .public-event-banner img {
    transform: scale(1.04);
}

.public-event-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 68px;
}

.public-event-content {
    padding: 19px;
}

.public-event-content h3 {
    margin: 11px 0;
    line-height: 1.5;
}

.public-event-title-link {
    color: #154b78;
    text-decoration: none;
}

.public-event-title-link:hover {
    color: #dfa51e;
}

.public-event-meta {
    margin-bottom: 13px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #70818c;
    font-size: 13px;
}

.public-event-meta strong {
    color: #b67b00;
}

.public-event-content p {
    min-height: 75px;
    margin: 0 0 14px;
    color: #5c707c;
    line-height: 1.7;
}

.event-card-rsvp-status {
    margin-bottom: 14px;
}

.rsvp-open,
.rsvp-closed {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
}

.rsvp-open {
    background-color: #dff2e4;
    color: #216437;
}

.rsvp-closed {
    background-color: #eceff1;
    color: #59676f;
}

.event-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.event-register-button {
    display: inline-block;
    padding: 10px 14px;
    background-color: #dfa51e;
    color: #153d5b;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
}

.event-register-button:hover {
    background-color: #154b78;
    color: #ffffff;
}

@media screen and (max-width: 950px) {

    .public-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 620px) {

    .public-event-grid {
        grid-template-columns: 1fr;
    }

    .public-event-banner {
        height: 240px;
    }

    .public-event-content p {
        min-height: auto;
    }

    .event-card-actions {
        flex-direction: column;
    }

    .event-card-actions a {
        width: 100%;
        text-align: center;
    }
}
/* =========================================================
   PUBLIC EVENT LIST - FINAL OVERRIDE
   ========================================================= */

.public-event-grid {
    width: 100%;
    margin: 28px 0 38px;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px;
    align-items: stretch;
}

.public-event-card {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(20, 55, 80, 0.10);
}

.public-event-banner {
    width: 100%;
    height: 225px !important;
    display: block;
    overflow: hidden;
    background-color: #edf3f7;
}

.public-event-banner img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover !important;
}

.public-event-content {
    flex: 1;
    padding: 19px;
    display: flex;
    flex-direction: column;
}

.public-event-content h3 {
    margin: 10px 0;
}

.public-event-content h3 a {
    color: #154b78;
    text-decoration: none;
}

.public-event-meta {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 12px;
    color: #70818c;
    font-size: 13px;
}

.public-event-content p {
    margin: 0 0 14px;
    color: #5c707c;
    line-height: 1.7;
}

.event-card-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.event-card-actions .primary-button,
.event-card-actions .event-register-button {
    display: inline-block;
    width: auto;
    padding: 9px 14px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
}

@media screen and (max-width: 950px) {

    .public-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media screen and (max-width: 620px) {

    .public-event-grid {
        grid-template-columns: 1fr !important;
    }

    .public-event-banner {
        height: 240px !important;
    }

    .event-card-actions {
        flex-direction: column;
    }

    .event-card-actions a {
        width: 100% !important;
    }
}
.event-detail-wrapper{
    max-width:1100px;
    margin:40px auto;
    background:#ffffff;
    padding:35px;
    border-radius:16px;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}
}

.event-detail-banner{
    width:100%;
    max-height:500px;
    object-fit:cover;
    border-radius:12px;
    margin-bottom:25px;
}
}

/* =========================================================
   EVENT PARTICIPANT REGISTRATION
   ========================================================= */

.event-registration-header {
    margin: 30px 0 22px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(20, 55, 80, 0.08);
}

.event-registration-icon {
    width: 75px;
    height: 75px;
    flex: 0 0 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #edf3f7;
    font-size: 38px;
    border-radius: 50%;
}

.event-registration-header h2 {
    margin: 8px 0;
    color: #154b78;
}

.event-registration-header p {
    margin: 0;
    color: #667b87;
}

.event-requirement-options {
    margin: 18px 0;
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    background-color: #f1f6f9;
    border-radius: 9px;
}

.event-registration-note {
    margin: 18px 0;
    padding: 14px 16px;
    background-color: #fff4d6;
    color: #70521a;
    line-height: 1.7;
    border-left: 4px solid #dfa51e;
    border-radius: 7px;
}

.event-registration-success {
    max-width: 760px;
    margin: 30px auto;
    padding: 30px;
    background-color: #ffffff;
    text-align: center;
    border-radius: 13px;
    box-shadow: 0 5px 20px rgba(20, 55, 80, 0.09);
}

.event-registration-success h3 {
    margin-top: 0;
    color: #216437;
    font-size: 27px;
}

@media screen and (max-width: 620px) {

    .event-registration-header {
        align-items: flex-start;
    }

    .event-registration-icon {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        font-size: 29px;
    }

    .event-requirement-options {
        flex-direction: column;
        gap: 14px;
    }
}

/* =========================================================
   ADMIN EVENT PARTICIPANTS
   ========================================================= */

.event-participant-summary-grid {
    margin: 25px 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 13px;
}

.event-summary-card {
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background-color: #ffffff;
    color: #36566a;
    text-align: center;
    border-left: 4px solid #154b78;
    border-radius: 9px;
    box-shadow: 0 3px 12px rgba(20, 55, 80, 0.07);
}

.event-summary-card strong {
    color: #154b78;
    font-size: 27px;
}

.event-summary-card span {
    font-size: 13px;
    font-weight: bold;
}

.event-summary-card.pending {
    border-left-color: #d99a16;
}

.event-summary-card.approved {
    border-left-color: #2f7d46;
}

.event-summary-card.meal {
    border-left-color: #a56b2c;
}

.event-summary-card.accommodation {
    border-left-color: #6c4ca3;
}

.event-participant-toolbar {
    margin-bottom: 20px;
}

.event-participant-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-participant-search input[type="search"] {
    min-width: 260px;
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #cbd7de;
    border-radius: 7px;
}

.event-participant-search button,
.event-participant-search a {
    border: none;
}

.event-participant-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-participant-card {
    padding: 18px;
    background-color: #f8fafb;
    border-radius: 11px;
    box-shadow: 0 3px 12px rgba(20, 55, 80, 0.07);
}

.event-participant-card-header {
    padding-bottom: 13px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #dbe4e9;
}

.event-participant-card-header h3 {
    margin: 9px 0 0;
    color: #154b78;
}

.participant-status-badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
}

.participant-status-badge.pending {
    background-color: #fff2cc;
    color: #805b00;
}

.participant-status-badge.approved {
    background-color: #dff2e4;
    color: #216437;
}

.participant-status-badge.rejected {
    background-color: #fde2e2;
    color: #9e2929;
}

.participant-status-badge.cancelled {
    background-color: #e8ecef;
    color: #59676f;
}

.participant-count-box {
    min-width: 70px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #e8f0f7;
    border-radius: 8px;
}

.participant-count-box strong {
    color: #154b78;
    font-size: 24px;
}

.participant-count-box span {
    color: #667b87;
    font-size: 12px;
}

.event-participant-details {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.event-participant-details > div {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: #ffffff;
    border-radius: 7px;
}

.event-participant-details span {
    color: #778994;
    font-size: 12px;
}

.event-participant-details strong {
    color: #36566a;
    font-size: 14px;
}

.participant-remarks {
    margin-top: 13px;
    padding: 12px;
    background-color: #fff8e6;
    color: #665326;
    line-height: 1.7;
    border-radius: 7px;
}

.participant-action-buttons {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.participant-action-buttons button {
    padding: 8px 12px;
    border: none;
    color: #ffffff;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

.participant-approve-button {
    background-color: #2f7d46;
}

.participant-reject-button {
    background-color: #a93232;
}

.participant-cancel-button {
    background-color: #6c757d;
}

.participant-pending-button {
    background-color: #b57a00;
}

.participant-action-buttons button:hover {
    opacity: 0.86;
}

@media screen and (max-width: 1050px) {

    .event-participant-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .event-participant-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 620px) {

    .event-participant-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-participant-card-header {
        flex-direction: column;
    }

    .participant-count-box {
        width: 100%;
    }

    .event-participant-details {
        grid-template-columns: 1fr;
    }

    .event-participant-search {
        flex-direction: column;
    }

    .event-participant-search input,
    .event-participant-search button,
    .event-participant-search a {
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    .participant-action-buttons {
        flex-direction: column;
    }

    .participant-action-buttons form,
    .participant-action-buttons button {
        width: 100%;
    }
}

/* =========================================================
   EDIT EVENT
   ========================================================= */

.current-event-banner {
    margin-bottom: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 18px;
    background-color: #f4f7f9;
    border-radius: 9px;
}

.current-event-banner img {
    width: 260px;
    height: 170px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

@media screen and (max-width: 620px) {

    .current-event-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .current-event-banner img {
        width: 100%;
        height: 230px;
    }
}

/* =========================================================
   ADVANCED MEMBER SEARCH
   ========================================================= */

.advanced-member-search-box {
    margin: 25px 0;
    padding: 22px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(20, 55, 80, 0.08);
}

.advanced-search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.advanced-search-main-field {
    grid-column: span 2;
}

.advanced-search-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.member-search-result-heading {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.member-search-result-heading h3 {
    margin: 0;
}

.member-search-result-heading span {
    padding: 6px 12px;
    background-color: #e8f0f7;
    color: #154b78;
    font-weight: bold;
    border-radius: 20px;
}

.advanced-member-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.advanced-member-result-card {
    padding: 18px;
    background-color: #f8fafb;
    border-radius: 11px;
    box-shadow: 0 3px 12px rgba(20, 55, 80, 0.07);
}

.advanced-member-result-top {
    padding-bottom: 13px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #dbe4e9;
}

.advanced-member-result-top h3 {
    margin: 7px 0 0;
    color: #154b78;
}

.member-result-code {
    color: #b67b00;
    font-size: 13px;
    font-weight: bold;
}

.member-generation-badge {
    padding: 6px 10px;
    background-color: #e8f0f7;
    color: #154b78;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    border-radius: 20px;
}

.advanced-member-result-details {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.advanced-member-result-details > div {
    padding: 9px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: #ffffff;
    border-radius: 7px;
}

.advanced-member-result-details span {
    color: #788994;
    font-size: 12px;
}

.advanced-member-result-details strong {
    color: #36566a;
    font-size: 14px;
}

.advanced-member-result-actions {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

@media screen and (max-width: 950px) {

    .advanced-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .advanced-member-result-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 620px) {

    .advanced-search-grid {
        grid-template-columns: 1fr;
    }

    .advanced-search-main-field {
        grid-column: span 1;
    }

    .advanced-search-actions {
        flex-direction: column;
    }

    .advanced-search-actions a,
    .advanced-search-actions button {
        width: 100%;
        text-align: center;
    }

    .member-search-result-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .advanced-member-result-top {
        flex-direction: column;
    }

    .advanced-member-result-details {
        grid-template-columns: 1fr;
    }

    .advanced-member-result-actions {
        flex-direction: column;
    }

    .advanced-member-result-actions a {
        width: 100%;
        text-align: center;
    }
}
/* =========================================================
   RELATIONSHIP AND ASHAUCHA CALCULATOR
   ========================================================= */

.relationship-compare-form-box {
    margin: 25px 0;
    padding: 22px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(20, 55, 80, 0.08);
}

.relationship-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.relationship-result-wrapper {
    margin: 25px 0;
}

.relationship-person-grid {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 15px;
    align-items: center;
}

.relationship-person-card {
    padding: 22px;
    background-color: #ffffff;
    text-align: center;
    border-top: 4px solid #154b78;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(20, 55, 80, 0.08);
}

.relationship-person-card > span {
    display: inline-block;
    padding: 5px 11px;
    background-color: #e8f0f7;
    color: #154b78;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
}

.relationship-person-card h3 {
    margin: 12px 0 6px;
    color: #154b78;
}

.relationship-person-card p {
    margin: 0 0 8px;
    color: #748692;
}

.relationship-person-card strong {
    color: #b67b00;
}

.relationship-versus {
    color: #dfa51e;
    text-align: center;
    font-size: 36px;
    font-weight: bold;
}

.relationship-facts-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.relationship-facts-grid > div {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: #ffffff;
    text-align: center;
    border-radius: 9px;
    box-shadow: 0 3px 12px rgba(20, 55, 80, 0.07);
}

.relationship-facts-grid span {
    color: #778994;
    font-size: 12px;
}

.relationship-facts-grid strong {
    color: #154b78;
}

.relationship-warning-box,
.relationship-no-rule-box {
    margin-top: 18px;
    padding: 17px;
    background-color: #fff4d6;
    color: #70521a;
    line-height: 1.7;
    border-left: 4px solid #dfa51e;
    border-radius: 8px;
}

.ashaucha-result-box {
    margin-top: 20px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(20, 55, 80, 0.10);
}

.ashaucha-result-label {
    display: inline-block;
    padding: 6px 13px;
    background-color: #e2f1e6;
    color: #216437;
    font-size: 13px;
    font-weight: bold;
    border-radius: 20px;
}

.ashaucha-result-box h3 {
    margin: 14px 0;
    color: #154b78;
    font-size: 25px;
}

.ashaucha-days {
    margin: 15px auto;
    width: 125px;
    height: 125px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #154b78;
    color: #ffffff;
    border: 7px solid #e2ac27;
    border-radius: 50%;
}

.ashaucha-days strong {
    font-size: 43px;
    line-height: 1;
}

.ashaucha-days span {
    margin-top: 5px;
    font-size: 14px;
}

.ashaucha-conclusion {
    max-width: 850px;
    margin: 18px auto 0;
    color: #4f6877;
    font-size: 17px;
    line-height: 1.9;
}

.ashaucha-conclusion strong {
    color: #154b78;
}

.sapindi-special-note {
    max-width: 850px;
    margin: 20px auto 0;
    padding: 15px 17px;
    background-color: #fff4d6;
    color: #70521a;
    line-height: 1.8;
    text-align: left;
    border-left: 4px solid #dfa51e;
    border-radius: 8px;
}

.relationship-result-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

@media screen and (max-width: 900px) {

    .relationship-form-grid {
        grid-template-columns: 1fr;
    }

    .relationship-facts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 620px) {

    .relationship-person-grid {
        grid-template-columns: 1fr;
    }

    .relationship-versus {
        transform: rotate(90deg);
    }

    .relationship-facts-grid {
        grid-template-columns: 1fr;
    }

    .relationship-result-actions {
        flex-direction: column;
    }

    .relationship-result-actions a {
        width: 100%;
        text-align: center;
    }

    .ashaucha-result-box {
        padding: 20px 15px;
    }
}
/* Smart member search results and final tree shortcut */
.member-search-results {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.member-search-result-card {
    padding: 17px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f7fafc;
    color: #173a56;
    text-decoration: none;
    border: 1px solid #d9e3ea;
    border-left: 4px solid #e4aa22;
    border-radius: 10px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.member-search-result-card:hover {
    transform: translateY(-2px);
    border-color: #1b6f3d;
    box-shadow: 0 8px 20px rgba(20, 55, 80, .12);
}

.member-search-result-card strong {
    font-size: 18px;
}

.member-search-result-card span {
    color: #1b6f3d;
    font-weight: 700;
}

.member-search-result-card small {
    color: #657886;
    line-height: 1.55;
}

.family-tree-actions {
    margin-top: 28px;
    padding-top: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid #dbe5eb;
}

.tree-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 620px) {
    .member-search-results {
        grid-template-columns: 1fr;
    }

    .family-tree-actions {
        flex-direction: column;
    }

    .family-tree-actions a {
        width: 100%;
        text-align: center;
    }
.success-box {
    background: #e8f8ec;
    color: #1e7e34;
    border: 1px solid #b7e4c7;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}
}
