:root { --navy: #081b33; --gold: #d4af37; --soft: rgba(255,255,255,.12); --text: #eef2f7; --muted: #a8b1c3; --card: rgba(14,31,57,.85); --primary: #8ec5ff; --success: #28d17c; --warning: #f7c948; --danger: #ff6b6b; --purple: #a78bfa; --gray: #94a3b8; }
body.theme-dark { background: radial-gradient(circle at top, rgba(212,175,55,.15), transparent 30%), #030b18; color: var(--text); }
body.theme-light { background: #f7f9fb; color: #0f1720; }
.theme-light .card-glass { background: #ffffff; border-color: rgba(0,0,0,.06); color: #0f1720; }
.theme-light .form-control, .theme-light .form-select { background: #ffffff; color: #0f1720 !important; border-color: rgba(15,23,32,.06); }
.theme-light .text-gold { color: var(--gold) !important; }
body { font-family: 'Inter', sans-serif; }



.admin-management-page { color: var(--text); }
.admin-management-page .admin-summary-card { background: linear-gradient(135deg, rgba(19, 34, 60, 0.95), rgba(21, 47, 80, 0.9)); border: 1px solid rgba(255,255,255,.06); border-radius: 18px; padding: 1.1rem 1.2rem; box-shadow: 0 12px 34px rgba(7, 14, 29, 0.35); }
.admin-management-page .summary-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; background: rgba(255,255,255,.06); }
.admin-management-page .summary-label { color: var(--muted); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.admin-management-page .summary-value { font-size: 1.8rem; font-weight: 700; margin: 0; }
.admin-management-page .summary-trend { font-size: .72rem; color: var(--muted); }
.admin-management-page .admin-panel-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.admin-management-page .admin-panel-header h5 { margin: 0; font-weight: 700; }
.admin-management-page .admin-search-box { min-width: min(100%, 260px); }
.admin-management-page .admin-search-box .form-control { height: 42px; border-radius: 12px; }
.admin-management-page .admin-table { margin-bottom: 0; }
.admin-management-page .admin-table thead th { color: #dfe9ff; background: rgba(255,255,255,.02); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.admin-management-page .admin-table td, .admin-management-page .admin-table th { vertical-align: middle; padding: 1rem .85rem; }
.admin-management-page .admin-row-current { background: rgba(212,175,55,.08); }
.admin-management-page .admin-profile-cell { display: flex; align-items: center; gap: 0.75rem; }
.admin-management-page .admin-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08); }
.admin-management-page .admin-name { font-weight: 600; display: block; margin-bottom: .15rem; }
.admin-management-page .admin-meta { font-size: .76rem; color: var(--muted); }
.admin-management-page .admin-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: .45rem .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
.admin-management-page .role-super_admin { background: rgba(244, 114, 182, 0.18); color: #ffd4eb; }
.admin-management-page .role-admin { background: rgba(59,130,246,.18); color: #bfdbfe; }
.admin-management-page .role-manager { background: rgba(168,85,247,.18); color: #ddd6fe; }
.admin-management-page .role-viewer { background: rgba(148,163,184,.18); color: #e2e8f0; }
.admin-management-page .status-active { background: rgba(16,185,129,.15); color: #b7f7db; }
.admin-management-page .status-inactive { background: rgba(239,68,68,.16); color: #fecaca; }
.admin-management-page .admin-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.admin-management-page .admin-actions .btn { font-size: .72rem; padding: .42rem .72rem; }
.admin-management-page .admin-modal .modal-content { background: rgba(8, 19, 35, 0.98); border: 1px solid rgba(255,255,255,.06); border-radius: 20px; color: var(--text); }
.admin-management-page .admin-modal .modal-header, .admin-management-page .admin-modal .modal-footer { border-color: rgba(255,255,255,.06); }
.admin-management-page .permission-block { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: .85rem; }
.admin-management-page .permission-group-title { font-size: .73rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: .75rem; }
.admin-management-page .permission-item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.admin-management-page .permission-item:last-child { border-bottom: none; }
.admin-management-page .permission-item label { margin: 0; display: flex; align-items: center; gap: .65rem; }
.admin-management-page .permission-item input[type="checkbox"] { accent-color: var(--gold); width: 16px; height: 16px; }
.admin-management-page .role-preview { border-radius: 14px; background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.24); padding: .9rem 1rem; }
.admin-management-page .preview-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; font-size: .72rem; letter-spacing: .04em; padding: .45rem .7rem; }
.admin-management-page .preview-badge.super_admin { background: rgba(244, 114, 182, 0.18); color: #ffd4eb; }
.admin-management-page .preview-badge.admin { background: rgba(59,130,246,.18); color: #bfdbfe; }
.admin-management-page .preview-badge.manager { background: rgba(168,85,247,.18); color: #ddd6fe; }
.admin-management-page .preview-badge.viewer { background: rgba(148,163,184,.18); color: #e2e8f0; }
.admin-management-page .permission-preview-list { list-style: none; padding-left: 0; margin: 0.75rem 0 0; color: var(--muted); }
.admin-management-page .permission-preview-list li { margin-bottom: .35rem; }
.admin-management-page .permission-preview-list li .fa-check { color: var(--success); }
.admin-management-page .permission-preview-list li .fa-xmark { color: var(--danger); }

@media (max-width: 768px) {
    .admin-management-page .admin-summary-card { min-height: 120px; }
    .admin-management-page .admin-panel-header { align-items: flex-start; }
    .admin-management-page .admin-actions { justify-content: flex-start; }
}
.app-shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
body.sidebar-collapsed .app-shell { grid-template-columns: 1fr; }
body.sidebar-collapsed .sidebar { display: none !important; }
.sidebar { background: linear-gradient(180deg, rgba(4,6,23,.95), rgba(12,23,53,.98)); border-right: 1px solid rgba(255,255,255,.05); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-brand { border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-header { border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-profile { border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-link { display: block; padding: 15px 24px; color: var(--muted); text-decoration: none; transition: all .2s ease; }
.sidebar-link:hover, .sidebar-link.active { background: rgba(255,255,255,.05); color: var(--gold); }
.topbar { background: rgba(8, 27, 51, .96); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.page-content { min-height: calc(100vh - 72px); }
.bg-navy { background: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }
#sidebarToggle { display: none; font-size: 1.25rem; color: #ffffff !important; }
@media (max-width: 992px) {
    #sidebarToggle { display: block; }
}

/* SIDEBAR MENU OPEN */
.btn-link {
    --bs-btn-font-weight: 800;
    --bs-btn-color: #f1f1f1;
    --bs-btn-bg: #fefefe !important;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--bs-link-hover-color);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: var(--bs-link-hover-color);
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-color: #6c757d;
    --bs-btn-disabled-border-color: transparent;
    --bs-btn-box-shadow: 0 0 0 #000;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    text-decoration: underline;
}

/* CSS */
.btn-gold {
  margin: 10px;
  padding: 15px 30px;
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;
  border-radius: 10px;
  display: block;
  border: 0px;
  font-weight: 700;
  box-shadow: 0px 0px 14px -7px #f09819;
  background-image: linear-gradient(45deg, #FF512F 0%, #F09819  51%, #FF512F  100%);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.btn-gold:hover {
  background-position: right center;
  /* change the direction of the change here */
  color: #fff;
  text-decoration: none;
}

.btn-gold:active {
  transform: scale(0.95);
}

.card-glass { background: rgba(19,34,60,.85); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 60px rgba(0,0,0,.25); backdrop-filter: blur(18px); }
.brand img, .public-brand img, .footer-brand img { max-width: 90px; max-height: 54px; width: auto; height: auto; object-fit: contain; }
.stats-card { border-radius: 24px; }
.avatar-large { width: 72px; height: 72px; margin: 0 auto; background: radial-gradient(circle, rgba(212,175,55,.45), rgba(255,255,255,.08)); border-radius: 50%; border: 2px solid rgba(255,255,255,.15); }
.login-page { background: linear-gradient(135deg, #040c1f 0%, #0d214e 100%); }
.login-shell { padding: 24px; }
.login-card { width: 100%; max-width: 420px; border: 1px solid rgba(255,255,255,.08); }
.bg-glass { background: rgba(6,18,34,.92); }
.table-avatar { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); }
.card-profile { border-radius: 28px; }
.badge-status { padding: .55em .85em; border-radius: 999px; font-size: .75rem; }
.status-active { background: rgba(40,237,150,.15); color: #8dffb7; }
.status-suspended { background: rgba(255,184,88,.15); color: #ffd97d; }
.status-pending { background: rgba(255,92,92,.15); color: #ffb3a1; }
.form-control, .form-select { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: var(--text) !important; }
.form-control:focus, .form-select:focus { background: rgba(255,255,255,.1); border-color: var(--gold); box-shadow: none; color: var(--text) !important; }
.form-control::placeholder { color: var(--muted); }
.form-control::-webkit-input-placeholder { color: var(--muted); }
.form-control:-moz-placeholder { color: var(--muted); }
.form-control::-moz-placeholder { color: var(--muted); }
/* Ensure select dropdowns use dark background and readable text */
.form-select, .form-select option {
    background-color: rgba(8,27,51,0.96) !important;
    color: var(--text) !important;
}
.form-select option {
    background: #081b33;
    color: #eef2f7;
}
.form-select option:checked {
    background: var(--gold);
    color: #081b33;
}
/* WebKit dropdown arrow and appearance tweaks */
.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.form-select::-ms-expand { display: none; }
.btn-outline-light { border-color: rgba(255,255,255,.25); }
.drag-drop { border: 2px dashed rgba(212,175,55,.35); border-radius: 18px; padding: 26px; text-align: center; color: var(--muted); cursor: pointer; transition: all .15s ease; }
.drag-drop.drag-over { background: rgba(212,175,55,.08); border-color: rgba(212,175,55,.65); }
.drag-drop img { max-width: 100px; border-radius: 50%; margin-bottom: 12px; }
@media (max-width: 992px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1050;
        width: 280px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .2s ease;
        box-shadow: 0 20px 50px rgba(0,0,0,.35);
        display: block !important;
    }
    body:not(.sidebar-collapsed) .sidebar {
        transform: translateX(0);
    }
    body.sidebar-collapsed .sidebar {
        transform: translateX(-100%);
    }
    #sidebarToggle {
        z-index: 1060;
    }
}
@media (max-width: 768px) {
    .topbar .container-fluid {
        padding: 0 .75rem;
    }
    .topbar .ms-auto {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: .5rem !important;
    }
    .topbar .btn,
    .topbar .text-light,
    .topbar .small {
        white-space: normal;
    }
    .page-content {
        padding: 1rem !important;
    }
    .sidebar-link {
        padding: 12px 18px;
        font-size: .95rem;
    }
    .sidebar-profile {
        padding: 1rem .75rem !important;
    }
    .btn-gold {
        margin: 8px 0;
        padding: 12px 18px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .page-content {
        padding: 0.75rem !important;
    }
    .topbar {
        min-height: 72px;
    }
    .topbar .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .topbar .ms-auto {
        justify-content: flex-end;
        gap: .35rem !important;
    }
    .topbar .btn {
        font-size: 0.72rem;
        padding: 0.4rem 0.6rem;
    }
    .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .card,
    .stats-card,
    .card-glass {
        border-radius: 14px;
    }
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table td,
    .table th {
        white-space: normal;
        word-break: break-word;
    }
    .btn {
        white-space: normal;
    }
    .form-control,
    .form-select,
    .btn,
    .input-group {
        min-height: 42px;
    }
    .container,
    .container-fluid,
    .main-content {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    body {
        overflow-x: hidden;
    }
}

@media (max-width: 420px) {
    .sidebar {
        width: 240px;
    }
    .sidebar-link {
        padding: 11px 14px;
        font-size: .88rem;
    }
    .topbar .btn {
        font-size: 0.68rem;
        padding: 0.38rem 0.52rem;
    }
    h1, .h1 { font-size: 1.5rem; }
    h2, .h2 { font-size: 1.35rem; }
    h3, .h3 { font-size: 1.2rem; }
    .btn,
    .form-control,
    .form-select {
        font-size: 0.92rem;
    }
}
.text-muted {
    --bs-text-opacity: 1;
    color: rgb(255 255 255) !important;
}
.form-label {
    margin-bottom: .5rem;
    color: #ffffff;
}
.col-12 {
    flex: 0 0 auto;
    width: 100%;
}
.h5, h5 {
    font-size: 1.25rem;
    color: #ffffff;
}
@media (min-width: 1200px) {
    .h2, h2 {
        font-size: 2rem;
        color: #ffffff;
    }
}
p {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #ffffff;
}
@media (min-width: 1200px) {
    .h3, h3 {
        font-size: 1.75rem;
        color: #ffffff;
    }
}
.form-control:disabled {
    background-color: #1f2c43;
    opacity: 1;
}



/* Public member portal */
.public-home { background: #f4f1e9; color: #17241e; font-family: Georgia, 'Times New Roman', serif; }
.public-nav { max-width: 1240px; margin: auto; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.public-brand { display: flex; align-items: center; gap: 12px; color: #17241e; text-decoration: none; font: 700 1rem Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.public-brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; }
.public-links { display: flex; align-items: center; gap: 24px; font: 600 .8rem Arial, sans-serif; }
.public-links a { color: #526158; text-decoration: none; }.public-links a:hover { color: #a46b29; }.public-links .public-login { color: #fff; background: #1d3529; padding: 12px 16px; }
.public-hero { max-width: 1240px; min-height: 490px; margin: auto; padding: 70px 8%; display: flex; align-items: center; justify-content: space-between; background: #dce4d5; }
.eyebrow, .section-kicker { color: #a46b29; font: 700 .72rem Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; }.public-hero h1 { margin: 18px 0; font-size: clamp(3rem, 7vw, 6.5rem); line-height: .95; font-weight: 400; letter-spacing: 0; }.public-hero h1 span { color: #a46b29; }.hero-lead { max-width: 440px; color: #58685c; font: 1rem/1.7 Arial, sans-serif; }.hero-link { display: inline-flex; gap: 14px; margin-top: 20px; color: #1d3529; font: 700 .82rem Arial, sans-serif; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }.hero-mark { width: 230px; height: 230px; border: 1px solid rgba(29,53,41,.28); border-radius: 50%; display: grid; place-items: center; text-align: center; color: #1d3529; font: 700 .65rem/1.5 Arial, sans-serif; letter-spacing: .14em; }.hero-mark img { width: 90px; height: 90px; object-fit: contain; border-radius: 50%; }.member-search-section { max-width: 1080px; margin: 70px auto; padding: 0 28px; }.search-heading { display: flex; justify-content: space-between; align-items: end; margin: 12px 0 24px; }.search-heading h2, .public-info-grid h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 400; }.search-heading p { color: #68756d; font: .95rem Arial, sans-serif; }.search-icon { color: #a46b29; font-size: 2rem; }.member-search-form { display: grid; grid-template-columns: 220px 1fr auto; gap: 12px; padding: 18px; background: #fff; box-shadow: 0 12px 35px rgba(29,53,41,.1); }.search-field label { display: block; margin-bottom: 7px; color: #77847b; font: .68rem 700 Arial, sans-serif; text-transform: uppercase; letter-spacing: .1em; }.search-field input, .search-field select { width: 100%; border: 0; border-bottom: 1px solid #ccd4ca; background: transparent; padding: 10px 2px; color: #1d3529; outline: none; font: 1rem Arial, sans-serif; }.search-field input:focus, .search-field select:focus { border-color: #a46b29; }.search-button { align-self: end; min-height: 42px; border: 0; padding: 0 22px; background: #1d3529; color: #fff; font: 700 .78rem Arial, sans-serif; text-transform: uppercase; letter-spacing: .08em; }.search-button:hover { background: #a46b29; }.search-button i { margin-right: 8px; }.search-message { margin-top: 16px; padding: 14px 18px; background: #fff; color: #7a5722; font: .9rem Arial, sans-serif; }.search-message i { margin-right: 10px; }.member-result { display: grid; grid-template-columns: 90px 1fr 1.2fr; gap: 24px; align-items: center; margin-top: 28px; padding: 24px; background: #fff; border-left: 4px solid #a46b29; box-shadow: 0 12px 35px rgba(29,53,41,.1); }.member-result-photo { width: 86px; height: 86px; object-fit: cover; border-radius: 50%; }.member-result-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }.verified-badge { color: #286144; font: 700 .7rem Arial, sans-serif; text-transform: uppercase; }.member-id { color: #89948b; font: .7rem Arial, sans-serif; }.member-result h3 { margin: 10px 0 4px; font-size: 1.8rem; font-weight: 400; }.member-result-main p { margin: 0; color: #758178; font: .9rem Arial, sans-serif; }.member-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }.member-details div:last-child { grid-column: 1 / -1; }.member-details dt { color: #89948b; font: 700 .65rem Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }.member-details dd { margin: 4px 0 0; color: #26382c; font: .9rem Arial, sans-serif; }.public-info-grid { max-width: 1080px; margin: 100px auto 70px; padding: 0 28px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px 90px; }.public-info-grid > p { color: #68756d; font: 1rem/1.8 Arial, sans-serif; }.info-line { border-top: 1px solid #c9d1c7; padding-top: 14px; display: flex; justify-content: space-between; gap: 20px; font: .78rem Arial, sans-serif; }.info-line span { color: #a46b29; text-transform: uppercase; letter-spacing: .1em; }.info-line strong { color: #435449; font-weight: 600; }.public-footer { padding: 24px 6%; display: flex; justify-content: space-between; background: #1d3529; color: #dce4d5; font: .72rem Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }.public-footer a { color: #e3b16b; text-decoration: none; }
@media (max-width: 760px) { .public-nav { align-items: flex-start; }.public-links { display: none; }.public-hero { min-height: 560px; padding: 54px 28px; align-items: flex-start; flex-direction: column; gap: 42px; }.hero-mark { align-self: center; width: 160px; height: 160px; }.hero-mark img { width: 60px; height: 60px; }.member-search-section { margin: 54px auto; }.member-search-form { grid-template-columns: 1fr; }.search-button { width: 100%; }.member-result { grid-template-columns: 70px 1fr; gap: 16px; }.member-result-photo { width: 68px; height: 68px; }.member-details { grid-column: 1 / -1; }.public-info-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 70px; }.info-line { flex-direction: column; gap: 8px; }.public-footer { flex-direction: column; gap: 12px; } }

textarea.form-control, textarea.form-control:focus {
    color: var(--text) !important;
    background: rgba(255,255,255,.06) !important;
}

textarea.form-control::placeholder {
    color: var(--muted);
}

.search-button:disabled { cursor: wait; opacity: .75; }
.member-details dd { overflow-wrap: anywhere; }

/* Compact public portal refinement */
.public-home { background: #f7f8f6; color: #173126; font-family: Georgia, 'Times New Roman', serif; }
.public-nav { position: sticky; top: 0; z-index: 10; max-width: none; min-height: 74px; padding: 12px max(24px, calc((100% - 1180px) / 2)); background: rgba(255,255,255,.96); border-bottom: 1px solid #e1e7e1; }
.public-brand { min-width: 0; font-family: Arial, sans-serif; font-size: .86rem; letter-spacing: .06em; }
.public-brand img { width: auto; height: 46px; max-width: 170px; object-fit: contain; border-radius: 0; }
.public-brand span { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-links { gap: 22px; }
.public-links a { white-space: nowrap; }
.public-links .public-login { padding: 10px 14px; }
.public-menu-toggle { display: none; border: 0; background: transparent; color: #173126; font-size: 1.25rem; padding: 8px; }
.public-hero { max-width: none; min-height: 390px; padding: 56px max(24px, calc((100% - 1060px) / 2)); background: linear-gradient(105deg, #e7eee5 0%, #dce8dc 65%, #d4e2d6 100%); }
.public-hero h1 { margin: 14px 0; font-size: 4.25rem; line-height: 1; }
.hero-lead { font-size: .95rem; }
.hero-mark { width: 154px; height: 154px; background: rgba(255,255,255,.26); }
.hero-mark img { width: 58px; height: 58px; }
.member-search-section { max-width: 1060px; margin: 58px auto 80px; }
.search-heading { margin: 10px 0 18px; }
.search-heading h2 { font-size: 2.65rem; }
.member-search-form { border: 1px solid #e4eae4; border-radius: 16px; padding: 22px; box-shadow: 0 14px 34px rgba(23,49,38,.08); }
.search-button { border-radius: 8px; }
.member-result { border-radius: 14px; border-left-width: 3px; }
.public-info-grid { max-width: 1060px; margin-top: 0; padding-bottom: 20px; }
.public-footer { padding-left: max(28px, calc((100% - 1180px) / 2)); padding-right: max(28px, calc((100% - 1180px) / 2)); }
@media (max-width: 900px) {
    .public-menu-toggle { display: block; }
    .public-links { display: none; position: absolute; top: 70px; left: 0; right: 0; padding: 16px 24px 20px; background: #fff; border-bottom: 1px solid #e1e7e1; box-shadow: 0 12px 20px rgba(23,49,38,.08); }
    .public-links.is-open { display: grid; gap: 14px; }
    .public-links .public-login { width: fit-content; }
}
@media (max-width: 760px) {
    .public-nav { min-height: 64px; padding: 10px 18px; }
    .public-brand { font-size: .72rem; gap: 9px; }
    .public-brand img { height: 40px; max-width: 130px; }
    .public-brand span { max-width: 170px; }
    .public-links { top: 63px; }
    .public-hero { min-height: 360px; padding: 44px 24px; gap: 28px; }
    .public-hero h1 { font-size: 2.9rem; }
    .hero-mark { width: 112px; height: 112px; font-size: .48rem; }
    .hero-mark img { width: 42px; height: 42px; }
    .member-search-section { margin: 44px auto 64px; padding: 0 18px; }
    .search-heading h2 { font-size: 2.15rem; }
    .member-search-form { padding: 17px; }
    .member-result { padding: 18px; }
}


@media (min-width: 576px) {
    .col-sm-12 {
        flex: 0 0 auto;
        width: 100%;
        color: white;
    }
}



/* =========================================================
   UNION PUBLIC HOME PAGE
   ========================================================= */

.public-home {
    --green: #185c47;
    --green-dark: #103f32;
    --gold: #b88332;
    --text: #17352b;
    --muted: #6c7973;
    --light: #f5f8f6;
    --border: #dfe7e2;

    margin: 0;
    padding: 0;

    background: var(--light);
    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* ================= CONTAINER ================= */

.container-custom {

    width: min(1120px, calc(100% - 40px));

    margin-left: auto;
    margin-right: auto;

}


/* ================= HEADER ================= */

.main-header {

    position: sticky;

    top: 0;

    z-index: 9999;

    background: rgba(255,255,255,.97);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(10px);

}


.header-container {

    width: min(1180px, calc(100% - 40px));

    min-height: 70px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

}


/* LOGO */

.brand {

    display: flex;

    align-items: center;

    gap: 10px;

    text-decoration: none;

    color: var(--text);

    min-width: 0;

}


.brand img {

    width: auto;

    height: 42px;

    max-width: 100px;

    object-fit: contain;

    display: block;

}


.brand-text {

    display: flex;

    flex-direction: column;

    min-width: 0;

}


.brand-text strong {

    color: var(--text);

    font-size: 14px;

    font-weight: 700;

    line-height: 1.25;

    text-transform: uppercase;

    letter-spacing: .04em;

}


.brand-text span {

    color: var(--muted);

    font-size: 10px;

    margin-top: 2px;

}


/* NAVIGATION */

.main-navigation {

    display: flex;

    align-items: center;

    gap: 25px;

}


.main-navigation a {

    color: #596861;

    text-decoration: none;

    font-size: 12px;

    font-weight: 600;

    transition: .2s ease;

}


.main-navigation a:hover {

    color: var(--green);

}


.admin-login-button {

    display: inline-flex !important;

    align-items: center;

    gap: 7px;

    padding: 10px 14px;

    border-radius: 7px;

    background: var(--green);

    color: #fff !important;

}


.admin-login-button:hover {

    background: var(--green-dark);

}


/* MOBILE MENU */

.mobile-menu-button {

    display: none;

    width: 40px;

    height: 40px;

    border: 0;

    border-radius: 7px;

    background: transparent;

    color: var(--text);

    font-size: 18px;

}


/* ================= HERO ================= */

.hero {

    background:

        linear-gradient(
            110deg,
            #eaf2ec 0%,
            #dfece3 100%
        );

    border-bottom: 1px solid var(--border);

}


.hero-container {

    width: min(1120px, calc(100% - 40px));

    min-height: 390px;

    margin: auto;

    display: flex;

    align-items: center;

}


.hero-content {

    max-width: 720px;

    padding: 55px 0;

}


.hero-small-title {

    display: block;

    color: var(--gold);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .14em;

    text-transform: uppercase;

}

.alert-info {
    --bs-alert-color: var(--bs-info-text-emphasis);
    --bs-alert-bg: #101f37;
    --bs-alert-border-color: var(--bs-info-border-subtle);
    --bs-alert-link-color: var(--bs-info-text-emphasis);
}
.hero h1 {

    margin: 14px 0 15px;

    color: var(--text);

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(42px, 6vw, 68px);

    line-height: 1;

    font-weight: 400;

    margin-right: -500px;

}


.hero h1 span {

    display: inline;

    color: var(--green);

}


.hero p {

    max-width: 580px;

    margin: 0;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.7;

}


.hero-button {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-top: 25px;

    padding: 12px 17px;

    border-radius: 7px;

    background: var(--green);

    color: white;

    text-decoration: none;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .05em;

    text-transform: uppercase;

}


.hero-button:hover {

    background: var(--green-dark);

    color: #fff;

}


/* ================= MEMBER SEARCH ================= */

.banner-hero {
    position: relative;
    overflow: hidden;
    background: #142a24;
}

.home-banner {
    width: 100%;
    height: clamp(220px, 28vw, 340px);
    position: relative;
    overflow: hidden;
}

.home-banner .banner-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 25, 20, .82), rgba(10, 25, 20, .28) 70%, rgba(10, 25, 20, .12));
}

.banner-caption {
    position: absolute;
    top: 50%;
    left: max(20px, calc((100% - 1120px) / 2));
    width: min(650px, calc(100% - 90px));
    transform: translateY(-50%);
    color: #fff;
}

.banner-caption h1 {
    margin: 0 0 15px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 400;
}

.banner-caption p {
    max-width: 580px;
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 16px;
    line-height: 1.65;
}

.banner-caption .hero-button {
    background: var(--gold);
    color: #142a24;
}

.banner-caption .hero-button:hover {
    background: #fff;
    color: #142a24;
}

.banner-preview {
    width: 100%;
    max-width: 500px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 8px;
}

.banner-preview img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.banner-admin-thumb {
    display: block;
    width: 150px;
    height: 62px;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f9fa;
    overflow: hidden;
}

.table-responsive .banner-admin-thumb {
    flex: 0 0 auto;
}

.table-responsive table:has(.banner-admin-thumb) {
    table-layout: fixed;
    width: 100%;
}

.table-responsive table:has(.banner-admin-thumb) th:nth-child(1) { width: 165px; }
.table-responsive table:has(.banner-admin-thumb) th:nth-child(2) { width: 20%; }
.table-responsive table:has(.banner-admin-thumb) th:nth-child(3) { width: 90px; }
.table-responsive table:has(.banner-admin-thumb) th:nth-child(4) { width: 60px; }
.table-responsive table:has(.banner-admin-thumb) th:nth-child(5) { width: 150px; }
.table-responsive table:has(.banner-admin-thumb) th:nth-child(6) { width: 150px; }

.table-responsive table:has(.banner-admin-thumb) td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 650px) {
    .banner-preview {
        height: 160px;
    }

    .banner-admin-thumb {
        width: 110px;
        height: 46px;
    }

    .table-responsive table:has(.banner-admin-thumb) th:nth-child(1) { width: 120px; }
    .table-responsive table:has(.banner-admin-thumb) th:nth-child(5) { width: 120px; }
    .table-responsive table:has(.banner-admin-thumb) th:nth-child(6) { width: 135px; }

    .banner-caption {
        left: 20px;
        width: calc(100% - 55px);
    }

    .banner-caption h1 {
        font-size: 38px;
    }

    .banner-caption p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .home-banner {
        height: 210px;
    }
}

.member-section {

    padding: 65px 0 75px;

    background: var(--light);

}


.section-heading {

    margin-bottom: 24px;

}


.section-heading span,
.about-content > span,
.notice-section .section-heading span,
.contact-box > div > span {

    display: block;

    color: var(--gold);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .15em;

}


.section-heading h2,
.about-content h2,
.notice-section h2,
.contact-box h2 {

    margin: 7px 0;

    color: var(--text);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 40px;

    line-height: 1.1;

    font-weight: 400;

}


.section-heading p {

    margin: 0;

    color: var(--muted);

    font-size: 14px;

}


/* SEARCH BOX */

.member-search-box {

    display: grid;

    grid-template-columns: 210px 1fr 115px;

    gap: 15px;

    padding: 20px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 14px;

    box-shadow: 0 10px 30px rgba(23,53,43,.06);

}


.search-field label {

    display: block;

    margin-bottom: 7px;

    color: #87938d;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .1em;

    text-transform: uppercase;

}


.search-field input,
.search-field select {

    width: 100%;

    height: 44px;

    padding: 0 5px;

    border: 0;

    border-bottom: 1px solid #ccd7d0;

    outline: none;

    background: transparent;

    color: var(--text);

    font-size: 14px;

}


.search-field input:focus,
.search-field select:focus {

    border-bottom-color: var(--green);

}


.search-button {

    align-self: end;

    height: 44px;

    border: 0;

    border-radius: 7px;

    background: var(--green);

    color: #fff;

    font-size: 11px;

    font-weight: 700;

}


.search-button:hover {

    background: var(--green-dark);

}


/* SEARCH MESSAGE */

.search-message {

    margin-top: 15px;

    padding: 13px 16px;

    border: 1px solid #ead9b7;

    border-radius: 8px;

    background: #fff9ec;

    color: #765921;

    font-size: 13px;

}


/* ================= MEMBER RESULT ================= */

.member-result-card {

    display: grid;

    grid-template-columns: 90px 1fr 1.4fr;

    gap: 25px;

    align-items: center;

    margin-top: 22px;

    padding: 22px;

    background: #fff;

    border: 1px solid var(--border);

    border-left: 3px solid var(--green);

    border-radius: 13px;

    box-shadow: 0 10px 30px rgba(23,53,43,.06);

}


.member-photo {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 150px;

    min-height: 150px;

    overflow: visible;

    border-radius: 18px;

    background: #f5f7f5;

}


.member-photo img,
.default-member-photo {

    width: auto;

    max-width: 100%;

    height: auto;

    max-height: 150px;

    border-radius: 18px;

    object-fit: contain;

    object-position: center;

    background: transparent;

}


.default-member-photo {

    display: flex;

    align-items: center;

    justify-content: center;

    background: #e7eee9;

    color: var(--green);

    font-size: 42px;

}


.active-badge {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: #28744d;

    font-size: 25px;

    font-weight: 700;

    text-transform: uppercase;

    margin-left: 20px;
}


.member-primary h3 {

    margin: 24px 0 3px;

    color: var(--text);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 25px;

    font-weight: 400;

    margin-left: 40px;
    
    background-color: #d6ebee;
    display: inline-flex;
    border-radius: 1px;

}

.member-primary {
    padding-left: 50px;
}


.member-primary p {

    margin: 0;

    color: var(--muted);

    font-size: 12px;

}


.member-details {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px 20px;

}


.detail-item span {

    display: block;

    margin-bottom: 4px;

    color: #6b680e;

    font-size: 13px;

    font-weight: 750;

    letter-spacing: .1em;

    text-transform: uppercase;

}


.detail-item strong {

    display: block;

    color: var(--text);

    font-size: 12px;

    font-weight: 600;

    overflow-wrap: anywhere;

}


.detail-address {

    grid-column: 1 / -1;

}


/* ================= ABOUT ================= */

.about-section {

    padding: 70px 0;

    background: #fff;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

}


.about-grid {

    display: grid;

    grid-template-columns: 1.3fr 1fr;

    gap: 70px;

}


.about-content h2 {

    max-width: 620px;

}


.about-content p {

    max-width: 570px;

    margin-top: 18px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.75;

}


.about-info {

    border-top: 1px solid var(--border);

}


.about-info div {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 15px 0;

    border-bottom: 1px solid var(--border);

}


.about-info span {

    color: var(--gold);

    font-size: 9px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .08em;

}


.about-info strong {

    color: var(--text);

    font-size: 12px;

    text-align: right;

}


/* ================= NOTICES ================= */

.notice-section {

    padding: 70px 0;

}


.section-heading.left {

    margin-bottom: 25px;

}


.notice-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

}


.notice-card {

    padding: 20px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 11px;

}


.notice-date {

    margin-bottom: 10px;

    color: var(--gold);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;

}


.notice-card h3 {

    margin: 0 0 8px;

    color: var(--text);

    font-size: 16px;

}


.notice-card p {

    margin: 0;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.6;

}


.no-notice {

    padding: 20px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 10px;

    color: var(--muted);

    font-size: 13px;

}


/* ================= CONTACT ================= */

.contact-section {

    padding: 55px 0;

    background: #e8f0ea;

}


.contact-box {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}


.contact-box h2 {

    margin-bottom: 8px;

}


.contact-box p {

    margin: 0;

    color: var(--muted);

    font-size: 13px;

}


.contact-button {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 12px 16px;

    border-radius: 7px;

    background: var(--green);

    color: white;

    text-decoration: none;

    font-size: 11px;

    font-weight: 700;

    white-space: nowrap;

}


/* ================= FOOTER ================= */

.footer {

    padding-top: 30px;

    background: #102f27;

    color: white;

}


.footer-main {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding-bottom: 25px;

}


.footer-brand {

    display: flex;

    align-items: center;

    gap: 10px;

}


.footer-brand img {

    width: 40px;

    height: 40px;

    object-fit: contain;

}


.footer-brand div {

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.footer-brand strong {

    font-size: 12px;

}


.footer-brand span {

    color: #a8b9b1;

    font-size: 9px;

}


.footer-links {

    display: flex;

    gap: 18px;

}


.footer-links a,
.footer-admin {

    color: #dbe7df;

    text-decoration: none;

    font-size: 10px;

    font-weight: 600;

}


.footer-links a:hover,
.footer-admin:hover {

    color: #d6a455;

}


.footer-bottom {

    padding: 14px 20px;

    border-top: 1px solid rgba(255,255,255,.12);

    text-align: center;

    color: #8fa49a;

    font-size: 9px;

}


/* ================= MOBILE ================= */

@media (max-width: 900px) {

    .mobile-menu-button {

        display: block;

    }


    .main-navigation {

        display: none;

        position: absolute;

        top: 70px;

        left: 0;

        right: 0;

        padding: 18px 20px;

        background: #fff;

        border-bottom: 1px solid var(--border);

        box-shadow: 0 10px 25px rgba(0,0,0,.08);

        flex-direction: column;

        align-items: flex-start;

    }


    .main-navigation.show {

        display: flex;

    }


    .member-search-box {

        grid-template-columns: 1fr 1fr;

    }


    .search-button {

        width: 100%;

    }


    .about-grid {

        grid-template-columns: 1fr;

        gap: 35px;

    }


    .notice-grid {

        grid-template-columns: 1fr 1fr;

    }


    .contact-box {

        align-items: flex-start;

        flex-direction: column;

    }

}


@media (max-width: 650px) {

    .header-container,
    .hero-container,
    .container-custom {

        width: calc(100% - 30px);

    }


    .brand img {

        height: 36px;

        max-width: 85px;

    }


    .brand-text strong {

        font-size: 11px;

    }


    .brand-text span {

        font-size: 8px;

    }


    .hero-container {

        min-height: 330px;

    }


    .hero-content {

        padding: 40px 0;

    }


    .hero h1 {

        font-size: 42px;

    }


    .hero p {

        font-size: 13px;

    }


    .section-heading h2,
    .about-content h2,
    .notice-section h2,
    .contact-box h2 {

        font-size: 32px;

    }


    .member-search-box {

        grid-template-columns: 1fr;

        padding: 16px;

    }


    .search-button {

        height: 44px;

    }


    .member-result-card {

        grid-template-columns: 70px 1fr;

        gap: 15px;

    }


    .member-photo img,
    .default-member-photo {

        width: 68px;

        height: 68px;

    }


    .member-primary h3 {

        font-size: 20px;

    }


    .member-details {

        grid-column: 1 / -1;

    }


    .notice-grid {

        grid-template-columns: 1fr;

    }


    .footer-main {

        align-items: flex-start;

        flex-direction: column;

    }


    .footer-links {

        flex-wrap: wrap;

    }

}

/* Final public-home sizing and responsive guardrails */
.public-home,
.public-home * {
    box-sizing: border-box;
}

.public-home .main-header {
    min-height: 0;
}

.public-home .header-container {
    min-height: 68px;
}

.public-home .brand img {
    width: auto;
    height: 44px !important;
    max-width: 92px !important;
    object-fit: contain;
}

.public-home .hero-container {
    min-height: 400px;
}

.public-home .hero-content {
    padding: 48px 0;
}

.public-home .member-section {
    padding: 58px 0 68px;
}

.public-home .member-search-box {
    width: 100%;
    border-radius: 16px;
}

.public-home .member-result-card {
    width: 100%;
}

@media (max-width: 900px) {
    .public-home .main-navigation {
        top: 68px;
    }
}

@media (max-width: 650px) {
    .public-home .header-container,
    .public-home .hero-container,
    .public-home .container-custom {
        width: calc(100% - 30px);
    }

    .public-home .brand img {
        height: 38px !important;
        max-width: 80px !important;
    }

    .public-home .header-container {
        min-height: 62px;
    }

    .public-home .main-navigation {
        top: 62px;
    }

    .public-home .hero-container {
        min-height: 340px;
    }

    .public-home .hero-content {
        padding: 40px 0;
    }

    .public-home .member-search-box {
        padding: 16px;
    }
}

/* Public member fee history */
.public-home .member-fees-card {
    margin-top: 16px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(23,53,43,.06);
}
    .public-home .member-details .detail-item span {
        font-size: 15px;
    }
    .public-home .member-details .detail-item strong {
        font-size: 14px;
    }

    .public-home .member-photo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 150px;
        min-height: 150px;
        overflow: visible;
        border: 3px solid #edf3ef;
        border-radius: 18px;
        background: #f1f5f2;
    }

    .public-home .member-photo img,
    .public-home .member-photo .default-member-photo {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 150px;
        border: 0;
        border-radius: 18px;
        object-fit: contain;
        object-position: center;
        display: block;
        background: transparent;
    }

    .public-home .active-badge.status-active {
        color: #28744d;
    }

    .public-home .active-badge.status-suspended {
        color: #c0392b;
    }

    .public-home .active-badge.status-disabled {
        color: #b7791f;
    }

.public-home .member-fees-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.public-home .member-fees-heading h3 {
    margin: 5px 0 0;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
}

.public-home .admission-fee-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 20px;
}

.public-home .admission-fee-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.public-home .admission-fee-summary strong {
    color: var(--text);
    font-size: 20px;
}

.public-home .admission-fee-summary small,
.public-home .fee-payment-date {
    color: var(--muted);
    font-size: 12px;
}

.public-home .admission-fee-summary small {
    display: block;
}

.public-home .member-photo .default-member-photo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-home .fee-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.public-home .fee-status.paid {
    background: #e5f5eb;
    color: #28744d;
}

.public-home .fee-status.unpaid {
    background: #fff1d9;
    color: #94651b;
}

.public-home .monthly-fees-list {
    border-top: 1px solid var(--border);
}

.public-home .monthly-fee-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 20px;
}

.public-home .monthly-fee-row div {
    min-width: 0;
}

.public-home .monthly-fee-row div span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 15px;
}

.public-home .fee-amount-block {
    text-align: right;
}

.public-home .fee-amount-block .fee-payment-date {
    display: block;
    margin-top: 3px;
}

.public-home .member-fee-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.public-home .member-fee-download:hover {
    text-decoration: underline;
}

.public-home .no-fee-message {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

@media (max-width: 650px) {
    .public-home .member-fees-card {
        padding: 17px;
    }
        .public-home .member-details .detail-item span {
            font-size: 9px;
        }
        .public-home .member-details .detail-item strong {
            font-size: 13px;
        }

        .public-home .member-photo {
            width: 78px;
            height: 78px;
        }

    .public-home .member-fees-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .public-home .admission-fee-summary {
        flex-wrap: wrap;
    }

    .public-home .monthly-fee-row {
        grid-template-columns: 1fr auto;
        gap: 8px 12px;
    }

    .public-home .monthly-fee-row .fee-status {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (min-width: 651px) and (max-width: 1024px) {
    .banner-preview {
        height: 200px;
    }
}

@media (min-width: 651px) and (max-width: 1024px) {
    .banner-admin-thumb {
        width: 135px;
        height: 56px;
    }

    .table-responsive table:has(.banner-admin-thumb) th:nth-child(1) { width: 150px; }
}


/* =========================================================
   ADMIN BANNER MANAGEMENT - IMAGE SIZE FIX
   ========================================================= */

/* Keep the banner list thumbnail bounded even when generic table image rules apply. */
.banner-admin-thumb {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 220px !important;
    max-height: 85px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f5f7f6;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
}

.banner-admin-thumb-wrapper {
    width: 230px !important;
    height: 95px !important;
    max-width: 230px !important;
    max-height: 95px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 6px;
}

.banner-admin-thumb-wrapper img.banner-admin-thumb {
    width: auto !important;
    height: auto !important;
    max-width: 220px !important;
    max-height: 85px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.table-responsive table:has(.banner-admin-thumb) th:first-child,
.table-responsive table:has(.banner-admin-thumb) td:first-child {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    vertical-align: middle !important;
}

.table-responsive table:has(.banner-admin-thumb) tbody tr {
    height: auto !important;
}

/* =========================================================
   ADD / EDIT BANNER PREVIEW
   ========================================================= */

.banner-preview {
    width: 100%;
    max-width: 500px;
    height: 200px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f7f6;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

.banner-preview img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 100% !important;
    max-height: 190px !important;

    object-fit: contain !important;
    object-position: center !important;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .banner-admin-thumb-wrapper {
        width: 190px !important;
        height: 80px !important;
        max-width: 190px !important;
        max-height: 80px !important;
    }

    .banner-admin-thumb {
        max-width: 180px !important;
        max-height: 70px !important;
    }

    .table-responsive table:has(.banner-admin-thumb) th:first-child,
    .table-responsive table:has(.banner-admin-thumb) td:first-child {
        width: 210px !important;
        min-width: 210px !important;
        max-width: 210px !important;
    }

    .banner-preview {
        max-width: 100%;
        height: 150px;
    }

    .banner-preview img {
        max-height: 140px !important;
    }
}

/* Very small mobile */
@media (max-width: 480px) {

    .banner-admin-thumb-wrapper {
        width: 150px !important;
        height: 65px !important;
        max-width: 150px !important;
        max-height: 65px !important;
    }

    .banner-admin-thumb {
        max-width: 140px !important;
        max-height: 55px !important;
    }

    .table-responsive table:has(.banner-admin-thumb) th:first-child,
    .table-responsive table:has(.banner-admin-thumb) td:first-child {
        width: 170px !important;
        min-width: 170px !important;
        max-width: 170px !important;
    }
}

/* Home Page Banners management workspace */
.banner-page-header {
    padding: 4px 2px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.banner-page-header h1 {
    color: #f7f9fc;
    font-size: 1.75rem;
    letter-spacing: -.01em;
}

.banner-page-header p {
    color: #9eacc0 !important;
    font-size: .88rem;
}

.banner-management-page > [class*="col-"] > .card {
    height: 100%;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.banner-management-page > .col-xl-4 > .card {
    border-top: 3px solid var(--gold);
}

.banner-management-page > .col-xl-8 > .card {
    padding: 1.35rem !important;
}

.banner-management-page .card h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 650;
}

.banner-management-page .card h5::before {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: rgba(212, 175, 55, .14);
    color: var(--gold);
    content: "+";
    font-size: .8rem;
}

.banner-management-page form .form-label {
    color: #cbd5e1;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.banner-management-page form .form-control,
.banner-management-page form .form-select {
    min-height: 42px;
    border-color: rgba(255, 255, 255, .12);
    border-radius: 8px;
}

.banner-management-page form textarea.form-control {
    min-height: 88px;
    resize: vertical;
}

.banner-management-page form small.text-muted {
    display: block;
    margin-top: 7px;
    color: #8997ab !important;
    font-size: .72rem;
}

.banner-management-page .banner-preview {
    width: 320px;
    max-width: 100%;
    height: 120px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 255, 255, .1);
    background: #0a1728;
}

.banner-management-page .banner-preview img {
    max-width: 300px !important;
    max-height: 110px !important;
}

.banner-management-page .btn-gold {
    min-height: 44px;
    border-radius: 8px;
    font-weight: 700;
}

.banner-management-page .table-responsive {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
}

.banner-management-page table {
    margin-bottom: 0;
    font-size: .82rem;
}

.banner-management-page table thead th {
    padding: .8rem .65rem;
    border-bottom-color: rgba(255, 255, 255, .12);
    color: #94a3b8;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.banner-management-page table tbody td {
    padding: .7rem .65rem;
    border-bottom-color: rgba(255, 255, 255, .06);
    color: #dbe4ef;
    vertical-align: middle;
}

.banner-management-page table tbody tr:last-child td {
    border-bottom: 0;
}

.banner-management-page .badge {
    padding: .42rem .6rem;
    border-radius: 999px;
    font-size: .66rem;
    letter-spacing: .03em;
}

.banner-management-page td:last-child .btn {
    width: auto;
    min-width: 34px;
    height: 30px;
    padding: 0 7px;
    display: inline-flex;
    place-items: center;
    align-items: center;
    gap: 4px;
    border-radius: 7px;
    flex: 0 0 auto;
    line-height: 1;
    color: inherit;
}

.banner-management-page td:last-child .btn i,
.banner-management-page td:last-child .btn svg {
    display: inline-block !important;
    font-size: .8rem !important;
    line-height: 1 !important;
    vertical-align: middle;
    color: currentColor !important;
    opacity: 1 !important;
}

.banner-management-page td:last-child {
    min-width: 150px !important;
    overflow: visible !important;
    white-space: nowrap !important;
}

.banner-management-page td:last-child > .d-flex {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 4px !important;
    align-items: center;
    min-width: 132px;
    overflow: visible;
}

.banner-management-page td:last-child form {
    display: inline-flex !important;
    flex: 0 0 auto;
    margin: 0 !important;
}

@media (max-width: 1199px) {
    .banner-management-page > .col-xl-4 > .card,
    .banner-management-page > .col-xl-8 > .card {
        height: auto;
    }
}

@media (max-width: 650px) {
    .banner-page-header {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .banner-page-header .btn {
        width: 100%;
    }

    .banner-management-page > .col-xl-8 > .card,
    .banner-management-page > .col-xl-4 > .card {
        padding: 1rem !important;
    }

    .banner-management-page .banner-preview {
        width: 240px;
        height: 90px;
    }

    .banner-management-page .banner-preview img {
        max-width: 220px !important;
        max-height: 80px !important;
    }
}



/* =========================================================
   FINAL HOME PAGE BANNER - FULL WIDTH
   ========================================================= */

.public-home .banner-hero {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
}

.public-home .banner-hero .carousel {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.public-home .banner-hero .carousel-inner {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.public-home .banner-hero .carousel-item.home-banner {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

/* FULL WIDTH IMAGE */
.public-home .banner-hero .banner-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
}

@media (max-width: 650px) {

    .public-home .banner-hero .banner-image {
        width: 100% !important;
        max-width: 100% !important;
        height: 280px !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
}

/* Overlay OFF */
.public-home .banner-hero .banner-overlay {
    display: none !important;
}

/* Caption OFF */
.public-home .banner-hero .banner-caption {
    display: none !important;
}

/* Controls */
.public-home .banner-hero .carousel-control-prev,
.public-home .banner-hero .carousel-control-next {
    width: 6%;
}

.public-home .language-selector {
    width: auto;
    min-width: 92px;
    padding: 7px 28px 7px 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 7px;
    background-color: rgba(8, 27, 51, .92) !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .public-home .language-selector {
        width: 100%;
        margin-top: 8px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .public-home .banner-hero {
        width: 100% !important;
        max-width: 100% !important;
    }

    .public-home .banner-hero .carousel,
    .public-home .banner-hero .carousel-inner,
    .public-home .banner-hero .carousel-item.home-banner {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }

    .public-home .banner-hero .banner-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: fill !important;
    }
}

/* =========================================================
   FINAL HOME BANNER - SHOW FULL IMAGE
   ========================================================= */

.public-home .banner-hero {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #142a24 !important;
}

.public-home .banner-hero .carousel,
.public-home .banner-hero .carousel-inner,
.public-home .banner-hero .carousel-item.home-banner {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.public-home .banner-hero .banner-image {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;
    max-height: none !important;

    object-fit: cover !important;
    object-position: center center !important;
}

/* Overlay বন্ধ */
.public-home .banner-hero .banner-overlay {
    display: none !important;
}

/* Caption বন্ধ */
.public-home .banner-hero .banner-caption {
    display: none !important;
}

/* Controls */
.public-home .banner-hero .carousel-control-prev,
.public-home .banner-hero .carousel-control-next {
    width: 6% !important;
}



.admin-management-page .admin-profile-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-management-page .admin-avatar {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #fff;
    border-radius: 8px !important;
    padding: 3px;
    display: block;
}

.admin-management-page .admin-name {
    display: block;
    font-weight: 700;
    font-size: 14px;
}

.admin-management-page .admin-meta {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

/* =========================================
   FORCE FIX - ADMIN ROLE TABLE LOGO SIZE
   ========================================= */

.admin-management-page table img,
.admin-role-page table img,
.admin-avatar,
.admin-profile-cell img {
    width: 45px !important;
    height: 45px !important;

    min-width: 45px !important;
    max-width: 45px !important;

    min-height: 45px !important;
    max-height: 45px !important;

    object-fit: contain !important;

    display: inline-block !important;

    padding: 4px !important;

    box-sizing: border-box !important;

    vertical-align: middle !important;
}

/* Image parent বড় হতে পারবে না */
.admin-profile-cell {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Table row এর height নিয়ন্ত্রণ */
.admin-management-page table tbody tr,
.admin-role-page table tbody tr {
    height: auto !important;
}

/* Logo image কে full width হতে বাধা */
.admin-management-page img.admin-avatar,
.admin-role-page img.admin-avatar {
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    color: var(--bs-modal-color);
    pointer-events: auto;
    background-color: #040d19;
    background-clip: padding-box;
    border: var(--bs-modal-border-width) solid var(--bs-modal-border-color);
    border-radius: var(--bs-modal-border-radius);
    outline: 0;
}

.btn-link {
    --bs-btn-font-weight: 800;
    --bs-btn-color: #f1f1f1;
    --bs-btn-bg: #fefefe00 !important;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--bs-link-hover-color);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: var(--bs-link-hover-color);
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-color: #6c757d;
    --bs-btn-disabled-border-color: transparent;
    --bs-btn-box-shadow: 0 0 0 #000;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    text-decoration: underline;
}

.btn-sidemenu-close {
    --bs-btn-font-weight: 800;
    --bs-btn-color: #f1f1f100;
    margin-right: 25px !important;
    margin-left: 80% !important;
    --bs-btn-bg: #3d111100 !important;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--bs-link-hover-color);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: var(--bs-link-hover-color);
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-color: #6c757d;
    --bs-btn-disabled-border-color: transparent;
    --bs-btn-box-shadow: 0 0 0 #000;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    text-decoration: underline;
}

