/* filepath: d:\Coding Practice\Website\The Red July 1\HTML\style.css */
:root {
    --red: #b5222c;
    --red-dark: #821923;
    --red-soft: #f8e9e7;
    --ink: #211b19;
    --muted: #756b67;
    --cream: #fffaf6;
    --white: #ffffff;
    --line: #eee3dc;
    --shadow: 0 18px 50px rgba(68, 31, 25, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "Hind Siliguri", sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 82px;
    padding: 12px max(5vw, 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(255, 250, 246, 0.95);
    border-bottom: 1px solid rgba(181, 34, 44, 0.09);
    backdrop-filter: blur(14px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-tag {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-the {
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    margin-left: 30px;
}

.brand-title {
    margin-top: 2px;
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.035em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 7px;
}

.main-nav a {
    padding: 9px 12px;
    color: #514743;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
    color: var(--red);
    background: var(--red-soft);
    border-radius: 8px;
}

.header-cta {
    padding: 10px 16px;
    color: var(--white);
    background: var(--red);
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.donation-cta {
    animation: donationPulse 2.8s ease-in-out infinite;
}

@keyframes donationPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(181, 34, 44, 0.22);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(181, 34, 44, 0);
    }
}

.header-cta:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

.header-cta span {
    margin-left: 5px;
}

.language-toggle {
    min-height: 38px;
    padding: 7px 12px;
    color: var(--red-dark);
    background: transparent;
    border: 1px solid rgba(181, 34, 44, 0.35);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.language-toggle:hover {
    color: var(--white);
    background: var(--red);
}

.menu-toggle {
    display: none;
    padding: 7px 11px;
    color: var(--red);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: 22px;
    cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #211311;
    isolation: isolate;
}


/* Banner images */
.slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}


/* শুধু banner-এর ওপর হালকা dark layer */
.slideshow::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    z-index: 2;
    pointer-events: none;
}


.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1s ease, transform 6s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}


/* Original red gradient */
.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(35, 9, 11, 0.82) 0%,
            rgba(79, 15, 20, 0.64) 48%,
            rgba(73, 13, 18, 0.28) 100%
        ),
        rgba(153, 20, 32, 0.24);
}


/* Text content */
.hero-content {
    position: relative;
    z-index: 3;
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 92px 30px 112px;
    color: var(--white);
}


/* =========================
   HERO TEXT
========================= */

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.eyebrow {
    margin-bottom: 22px;
    padding: 7px 12px;
    color: #ffe7df;
    border: 1px solid rgba(255, 231, 223, 0.4);
    border-radius: 30px;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    background: #ffb6a4;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 182, 164, 0.15);
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.hero h1 span {
    color: #ffcbc0;
}

.hero-content > p {
    max-width: 610px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(16px, 2vw, 19px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 31px;
}

.button {
    min-height: 48px;
    padding: 11px 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-light {
    color: var(--red-dark);
    background: #fff8f3;
}

.button-light:hover {
    background: #ffe6dd;

}

.button-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

.hero-caption {
    position: absolute;
    bottom: 24px;
    left: max(5vw, 30px);
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.hero-caption span {
    width: 30px;
    height: 1px;
    background: #ffb6a4;
}

.hero-index {
    position: absolute;
    right: max(5vw, 30px);
    bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-family: "Poppins", sans-serif;
    font-size: 12px;
}

.hero-index span {
    color: white;
    font-weight: 700;
}

.stats-section {
    width: min(1120px, calc(100% - 48px));
    margin: -1px auto 0;
    padding: 58px 0;
    display: grid;
    grid-template-columns: 0.9fr 1.5fr;
    align-items: center;
    gap: 46px;
    border-bottom: 1px solid var(--line);
}

.stats-intro h2 {
    margin: 10px 0 0;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.28;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.stat-item {
    min-height: 116px;
    padding: 20px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(68, 31, 25, 0.04);
}

.stat-item h2 {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.stat-item p {
    margin: 0;
    color: var(--red);
    font-family: "Poppins", sans-serif;
    font-size: 30px;
    font-weight: 800;
}

.section-wrap {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.stories-section,
.martyrs-section {
    padding-top: 88px;
    padding-bottom: 88px;
}

.section-heading {
    margin-bottom: 32px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.section-heading h2 {
    margin: 7px 0 0;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.2;
}

.section-heading > p {
    max-width: 430px;
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 15px;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 17px;
}

.story-card {
    position: relative;
    min-height: 300px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: 0 12px 35px rgba(68, 31, 25, 0.04);
}

.story-feature {
    justify-content: space-between;
    color: var(--white);
    background: linear-gradient(140deg, #9f1f29, #c9343b);
    border-color: transparent;
}

.story-number {
    color: var(--muted);
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.story-feature .story-number {
    color: rgba(255, 255, 255, 0.67);
}

.story-tag {
    display: inline-block;
    margin-bottom: 12px;
    color: #ffe2db;
    font-size: 12px;
}

.story-card h3 {
    margin: 0;
    font-size: 25px;
    line-height: 1.3;
}

.story-card p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.story-feature p {
    max-width: 390px;
    color: rgba(255, 255, 255, 0.8);
}

.story-icon {
    position: absolute;
    top: 22px;
    right: 24px;
    color: #e9a29a;
    font-size: 30px;
}

.text-link {
    margin-top: auto;
    padding-top: 20px;
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
}

.text-link span {
    margin-left: 5px;
}

.story-arrow {
    position: absolute;
    right: 24px;
    bottom: 20px;
    color: #fff;
    font-size: 23px;
}

.history-section {
    padding: 78px 0 82px;
    background: #f5eeea;
    border-top: 1px solid #efe3dc;
    border-bottom: 1px solid #efe3dc;
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.timeline::before {
    position: absolute;
    top: 22px;
    right: 12%;
    left: 12%;
    height: 1px;
    content: "";
    background: #dfc8c0;
}

.timeline-item {
    position: relative;
    padding-top: 58px;
}

.timeline-marker {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--red);
    background: #fffaf6;
    border: 1px solid #e2c7bf;
    border-radius: 50%;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.timeline-date {
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
}

.timeline-copy h3 {
    margin: 5px 0;
    font-size: 20px;
}

.timeline-copy p {
    max-width: 310px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.filters {
    margin-bottom: 25px;
    padding: 19px;
    display: grid;
    grid-template-columns: 1.25fr repeat(5, minmax(110px, 1fr));
    align-items: end;
    gap: 13px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: 0 10px 28px rgba(68, 31, 25, 0.04);
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: center;
}

.filter-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--red);
    background: var(--red-soft);
    border-radius: 9px;
    font-size: 25px;
}

.filter-title strong,
.filter-title small {
    display: block;
}

.filter-title strong {
    font-size: 14px;
}

.filter-title small {
    color: var(--muted);
    font-size: 10px;
}

.filter-control label {
    min-height: 23px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    color: #5a4e49;
    font-size: 11px;
    font-weight: 600;
}

.filter-control input:not([type="range"]),
.filter-control select {
    width: 100%;
    min-height: 39px;
    padding: 8px 10px;
    color: var(--ink);
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: none;
}

.filter-control input:focus,
.filter-control select:focus {
    border-color: var(--red);
}

.filter-control input[type="range"] {
    width: 100%;
    accent-color: var(--red);
}

#ageValue {
    color: var(--red);
    white-space: nowrap;
}

.martyr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
}

.martyr-card {
    overflow: hidden;
    display: block;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 10px 27px rgba(68, 31, 25, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.martyr-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.martyr-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.martyr-card img.image-placeholder {
    padding: 16px;
    object-fit: contain;
    background: #f5ece7;
}

.martyr-card h3 {
    margin: 15px 16px 5px;
    font-size: 19px;
}

.martyr-card p {
    margin: 0;
    padding: 0 16px 17px;
    color: var(--muted);
    font-size: 13px;
}

.no-results {
    grid-column: 1 / -1;
    padding: 25px;
    color: var(--red-dark);
    background: var(--red-soft);
    border: 1px dashed #dba8a5;
    border-radius: 9px;
    text-align: center;
}

.data-note {
    margin: 17px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.member-section {
    padding-top: 82px;
    padding-bottom: 82px;
}

.member-verify {
    margin-bottom: 38px;
    padding: 22px;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(220px, 1.3fr) auto;
    align-items: end;
    gap: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--red);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(68, 31, 25, 0.04);
}

.member-verify-copy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.verify-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--white);
    background: var(--red);
    border-radius: 50%;
    font-family: "Poppins", sans-serif;
    font-size: 21px;
}

.member-verify-copy h3,
.member-verify-copy p,
.member-list-heading h3,
.member-list-heading p {
    margin: 0;
}

.member-verify-copy h3,
.member-list-heading h3 {
    font-size: 18px;
}

.member-verify-copy p,
.member-list-heading p {
    color: var(--muted);
    font-size: 12px;
}

.member-id-field > span {
    margin-bottom: 5px;
    display: block;
    color: #5a4e49;
    font-size: 12px;
    font-weight: 600;
}

.member-id-field input,
.member-list-search input {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    color: var(--ink);
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: none;
}

.member-id-field input:focus,
.member-list-search input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(181, 34, 44, 0.1);
}

.member-search-button {
    min-height: 42px;
    padding: 9px 17px;
    color: var(--white);
    background: var(--red);
    border: 0;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.member-search-button:hover {
    background: var(--red-dark);
}

.member-search-button span {
    margin-left: 8px;
}

.member-verification-result {
    grid-column: 1 / -1;
    min-height: 24px;
    padding: 10px 12px;
    color: var(--muted);
    background: #fffaf6;
    border-radius: 5px;
    font-size: 13px;
}

.result-active {
    color: #17643b;
    background: #e8f5ec;
}

.result-pending {
    color: #76521b;
    background: #fff4d9;
}

.result-expired,
.result-suspended,
.result-not-found {
    color: #8d2630;
    background: #f9e8e8;
}

.member-list-heading {
    margin-bottom: 13px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.member-list-search {
    width: min(320px, 100%);
    position: relative;
}

.member-list-search > span:not(.visually-hidden) {
    position: absolute;
    top: 5px;
    left: 11px;
    color: var(--red);
    font-size: 23px;
}

.member-list-search input {
    padding-left: 38px;
}

.member-table-wrap {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.member-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.member-table th,
.member-table td {
    padding: 14px 17px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.member-table th {
    color: #655954;
    background: #fffaf6;
    font-size: 12px;
    font-weight: 700;
}

.member-table td {
    color: var(--muted);
    font-size: 13px;
}

.member-table tbody tr:last-child td {
    border-bottom: 0;
}

.member-name {
    color: var(--ink);
    font-weight: 600;
}

.member-name:hover {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.member-id {
    color: var(--red-dark);
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.member-status {
    padding: 4px 9px;
    display: inline-block;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.status-active {
    color: #17643b;
    background: #e8f5ec;
}

.status-pending {
    color: #76521b;
    background: #fff4d9;
}

.status-expired,
.status-suspended {
    color: #8d2630;
    background: #f9e8e8;
}

.member-empty {
    margin: 0;
    padding: 22px;
    color: var(--muted);
    text-align: center;
}

.member-demo-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.closing-banner {
    position: relative;
    min-height: 340px;
    padding: 60px max(8vw, 30px);
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--white);
    background: linear-gradient(115deg, #8f1a24, #bd2933);
}

.closing-content {
    position: relative;
    z-index: 1;
}

.closing-content .section-label {
    color: #ffd1c7;
}

.closing-content h2 {
    margin: 10px 0 22px;
    font-size: clamp(31px, 5vw, 50px);
    line-height: 1.25;
}

.closing-symbol {
    position: absolute;
    right: 7%;
    bottom: -90px;
    color: rgba(255, 255, 255, 0.07);
    font-size: clamp(150px, 25vw, 340px);
    font-weight: 700;
    line-height: 1;
    transform: rotate(-8deg);
}

.site-footer {
    padding: 38px max(5vw, 24px) 20px;
    background: #211b19;
    color: #fffaf6;
}

.footer-brand {
    display: inline-flex;
    flex-direction: column;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.footer-brand span {
    color: #c9b9b1;
    font-family: "Hind Siliguri", sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.site-footer > p {
    max-width: 550px;
    margin: 10px 0 26px;
    color: #c9b9b1;
    font-size: 13px;
}

.footer-bottom {
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #a99b94;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
}

.footer-bottom a {
    color: #f0c3b8;
}

@media (max-width: 1000px) {
    .topbar {
        gap: 12px;
    }

    .main-nav {
        gap: 0;
    }

    .main-nav a {
        padding: 8px;
        font-size: 13px;
    }

    .filters {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-title {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .topbar {
        min-height: 70px;
        padding: 10px 20px;
    }

    .logo img {
        width: 42px;
        height: 42px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header-cta {
        display: none;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 10px 20px 16px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        background: var(--cream);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 14px 22px rgba(68, 31, 25, 0.08);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 11px 12px;
    }

    .hero {
        min-height: 570px;
    }

    .hero-content {
        padding: 75px 25px 95px;
    }

    .stats-section {
        padding: 45px 0;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .section-heading > p {
        max-width: 600px;
    }

    .story-grid {
        grid-template-columns: 1fr 1fr;
    }

    .story-feature {
        grid-column: 1 / -1;
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .timeline::before {
        top: 20px;
        bottom: 35px;
        left: 21px;
        width: 1px;
        height: auto;
    }

    .timeline-item {
        min-height: 90px;
        padding: 0 0 0 62px;
    }

    .timeline-marker {
        left: 0;
    }

    .closing-banner {
        min-height: 300px;
    }

    .member-verify {
        grid-template-columns: 1fr 1fr;
    }

    .member-verify-copy {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .brand-tag {
        font-size: 9px;
    }

    .brand-name {
        font-size: 15px;
    }

    .hero {
        min-height: 540px;
    }

    .hero-content {
        padding: 65px 22px 85px;
    }

    .hero h1 {
        font-size: clamp(39px, 11vw, 56px);
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 290px;
    }

    .hero-caption {
        left: 22px;
        font-size: 10px;
    }

    .hero-index {
        right: 22px;
    }

    .stats-section,
    .section-wrap {
        width: calc(100% - 36px);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        min-height: 98px;
        padding: 15px 12px;
    }

    .stat-item p {
        font-size: 25px;
    }

    .stories-section,
    .martyrs-section {
        padding-top: 62px;
        padding-bottom: 62px;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .story-feature {
        grid-column: auto;
    }

    .story-card {
        min-height: 255px;
    }

    .filters {
        padding: 15px;
        grid-template-columns: 1fr 1fr;
    }

    .filter-title {
        grid-column: 1 / -1;
    }

    .filter-control:first-of-type {
        grid-column: 1 / -1;
    }

    .martyr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .martyr-card img {
        height: 170px;
    }

    .martyr-card h3 {
        margin: 12px 11px 4px;
        font-size: 16px;
    }

    .martyr-card p {
        padding: 0 11px 13px;
        font-size: 11px;
    }

    .closing-banner {
        min-height: 280px;
        padding: 45px 22px;
    }

    .member-section {
        padding-top: 62px;
        padding-bottom: 62px;
    }

    .member-verify {
        padding: 16px;
        grid-template-columns: 1fr;
    }

    .member-verify-copy,
    .member-verification-result {
        grid-column: auto;
    }

    .member-list-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .member-list-search {
        width: 100%;
    }

    .member-table th,
    .member-table td {
        padding: 12px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Star effect: fixed overlay across the viewport */
#memoryCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    opacity: 0.4;
    pointer-events: none;
}

.detail-page {
    min-height: 70vh;
    padding-top: 36px;
    padding-bottom: 80px;
}

.detail-back {
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--red-dark);
    font-size: 14px;
    font-weight: 700;
}

.detail-back:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(28px, 6vw, 76px);
}

.detail-photo {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #f1e3dc;
    border-radius: 8px;
}

.detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-photo img.image-placeholder {
    padding: 8%;
    object-fit: contain;
}

.donation-page {
    min-height: 75vh;
    padding-top: 55px;
    padding-bottom: 80px;
}

.donation-intro {
    max-width: 720px;
    margin-bottom: 38px;
}

.donation-intro h1 {
    margin: 8px 0 12px;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.15;
}

.donation-intro p,
.donation-note,
.verification-intro p {
    color: var(--muted);
}

.donation-methods {
    padding: 24px 0 38px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.donation-methods h2,
.verification-intro h2 {
    margin: 0 0 15px;
    font-size: 25px;
}

.donation-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    border-bottom: 1px solid var(--line);
}

.donation-tab {
    min-height: 43px;
    padding: 9px 16px;
    color: #5a4e49;
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.donation-tab[aria-selected="true"] {
    color: var(--red-dark);
    border-bottom-color: var(--red);
}

.donation-panel {
    max-width: 800px;
    padding-top: 24px;
}

.donation-panel h3 {
    margin: 0 0 13px;
    font-size: 20px;
}

.donation-account-details {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.donation-account-details div {
    padding: 13px 14px 13px 0;
    border-bottom: 1px solid var(--line);
}

.donation-account-details dt {
    color: var(--muted);
    font-size: 12px;
}

.donation-account-details dd {
    margin: 3px 0 0;
    color: var(--ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.donation-note {
    margin: 15px 0 0;
    font-size: 13px;
}

.donation-verification {
    padding-top: 43px;
}

.verification-intro {
    max-width: 700px;
    margin-bottom: 21px;
}

.verification-form {
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.verification-field {
    display: grid;
    gap: 5px;
}

.verification-field label {
    color: #5a4e49;
    font-size: 13px;
    font-weight: 600;
}

.verification-field input,
.verification-field select {
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    color: var(--ink);
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
}

.verification-field input:focus,
.verification-field select:focus {
    border-color: var(--red);
    outline: 2px solid rgba(181, 34, 44, 0.12);
}

.verification-submit {
    min-height: 46px;
    justify-self: start;
    padding: 10px 18px;
    color: var(--white);
    background: var(--red);
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.verification-submit:hover {
    background: var(--red-dark);
}

.verification-status {
    grid-column: 1 / -1;
    min-height: 24px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.verification-status.is-error {
    color: var(--red-dark);
}

.detail-copy {
    padding-top: 12px;
}

.detail-copy h1 {
    margin: 8px 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.2;
}

.detail-lead,
.detail-description {
    color: var(--muted);
    font-size: 16px;
}

.detail-facts {
    margin: 28px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.detail-fact {
    padding: 15px 12px 15px 0;
    border-bottom: 1px solid var(--line);
}

.detail-fact dt {
    color: var(--muted);
    font-size: 12px;
}

.detail-fact dd {
    margin: 3px 0 0;
    color: var(--ink);
    font-weight: 600;
}

.detail-description {
    margin-top: 24px;
    white-space: pre-line;
}

.detail-not-found {
    min-height: 55vh;
    padding-top: 100px;
}

.detail-not-found h1 {
    margin: 0 0 10px;
    font-size: 36px;
}

.detail-not-found p {
    color: var(--muted);
}

.detail-portal-link[hidden] {
    display: none;
}

.member-portal-link {
    color: var(--red-dark);
    font-size: 12px;
    font-weight: 700;
}

.member-portal-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.member-portal-callout {
    margin-top: 56px;
    margin-bottom: 24px;
    padding: 30px clamp(22px, 5vw, 48px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    color: var(--white);
    background: linear-gradient(110deg, #761a22, #ad2832);
    border-radius: 8px;
}

.member-portal-callout .section-label {
    color: #ffd2c9;
}

.member-portal-callout h2 {
    margin: 5px 0 7px;
    font-size: 27px;
}

.member-portal-callout p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.member-portal-callout-actions {
    display: grid;
    justify-items: start;
    gap: 9px;
}

.portal-application-link {
    padding: 7px 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.portal-application-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.portal-page {
    min-height: 72vh;
    padding-top: 58px;
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
    grid-template-areas: "login content";
    align-items: start;
    gap: clamp(28px, 5vw, 64px);
}

.portal-login {
    grid-area: login;
    position: sticky;
    top: 104px;
    max-width: none;
    margin: 0;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--red);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(68, 31, 25, 0.07);
}

.portal-page.dashboard-active {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "dashboard";
}

.portal-page.dashboard-active .portal-dashboard {
    grid-area: dashboard;
}

.portal-dashboard,
.member-application,
.application-credentials {
    grid-area: content;
    min-width: 0;
}

.portal-login[hidden],
.portal-dashboard[hidden],
.member-application[hidden],
.application-credentials[hidden] {
    display: none;
}

.portal-intro {
    max-width: 620px;
    margin-bottom: 27px;
}

.portal-intro h1,
.portal-dashboard-heading h1 {
    margin: 7px 0 8px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.2;
}

.portal-intro p,
.portal-security-note {
    color: var(--muted);
}

.portal-login-form {
    max-width: 470px;
    padding: 23px 0;
    display: grid;
    gap: 16px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.portal-field {
    display: grid;
    gap: 5px;
}

.portal-field > span {
    color: #5a4e49;
    font-size: 13px;
    font-weight: 600;
}

.portal-field input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.portal-field input:focus {
    border-color: var(--red);
    outline: 2px solid rgba(181, 34, 44, 0.12);
}

.portal-field textarea {
    width: 100%;
    min-height: 90px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    resize: vertical;
}

.portal-field textarea:focus {
    border-color: var(--red);
    outline: 2px solid rgba(181, 34, 44, 0.12);
}

.member-application {
    max-width: 850px;
    margin: 62px auto 0;
    padding-top: 31px;
    border-top: 1px solid var(--line);
}

.application-heading {
    max-width: 650px;
    margin-bottom: 20px;
}

.application-heading h2,
.application-credentials h2 {
    margin: 5px 0 8px;
    font-size: 25px;
}

.application-heading p,
.application-credentials > p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.member-application-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.application-wide {
    grid-column: 1 / -1;
}

.application-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #5a4e49;
    font-size: 13px;
}

.application-consent input {
    width: 17px;
    height: 17px;
    margin: 3px 0 0;
    flex: 0 0 auto;
    accent-color: var(--red);
}

.application-credentials {
    max-width: 850px;
    margin: 40px auto;
    padding: 24px 0 24px 22px;
    border-left: 4px solid var(--red);
}

.credential-values {
    max-width: 580px;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.credential-values dt {
    color: var(--muted);
    font-size: 12px;
}

.credential-values dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.credential-values code {
    padding: 4px 7px;
    background: var(--red-soft);
    border-radius: 4px;
    font-size: 15px;
}

.portal-submit,
.portal-logout {
    min-height: 44px;
    justify-self: start;
    padding: 9px 17px;
    color: var(--white);
    background: var(--red);
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.portal-submit:hover,
.portal-logout:hover {
    background: var(--red-dark);
}

.portal-submit:disabled,
.portal-logout:disabled {
    opacity: 0.6;
    cursor: wait;
}

.portal-message {
    min-height: 24px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.portal-message.is-error {
    color: var(--red-dark);
}

.portal-security-note {
    max-width: 470px;
    margin-top: 15px;
    font-size: 12px;
}

.portal-dashboard-heading,
.portal-activity-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.portal-dashboard-heading {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.portal-dashboard-heading h1 {
    margin-bottom: 0;
}

.portal-profile,
.portal-attendance,
.portal-activity {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.portal-profile h2,
.portal-activity-heading h2 {
    margin: 0 0 15px;
    font-size: 22px;
}

.portal-profile-grid {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 20px;
    border-top: 1px solid var(--line);
}

.portal-profile-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.portal-profile-item dt {
    color: var(--muted);
    font-size: 12px;
}

.portal-profile-item dd {
    margin: 3px 0 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.attendance-stats {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.attendance-stat {
    min-height: 88px;
    padding: 15px;
    display: grid;
    align-content: space-between;
    gap: 6px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 7px;
}

.attendance-stat span {
    color: var(--muted);
    font-size: 12px;
}

.attendance-stat strong {
    color: var(--red-dark);
    font-family: "Poppins", sans-serif;
    font-size: 23px;
}

.portal-meeting-item {
    padding: 13px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 15px;
    border-top: 1px solid var(--line);
}

.portal-meeting-item h3 {
    margin: 0;
    font-size: 15px;
}

.portal-meeting-item time {
    color: var(--muted);
    font-size: 12px;
}

.meeting-status {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding: 4px 9px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
}

.meeting-status.is-present {
    color: #17643b;
    background: #e8f5ec;
}

.meeting-status.is-absent {
    color: #8d2630;
    background: #f9e8e8;
}

.portal-activity-heading {
    margin-bottom: 14px;
}

.portal-activity-heading h2 {
    margin-bottom: 0;
}

.activity-count {
    min-width: 34px;
    min-height: 34px;
    display: grid;
    place-items: center;
    color: var(--red-dark);
    background: var(--red-soft);
    border-radius: 50%;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.portal-activity-item {
    padding: 15px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 18px;
    border-top: 1px solid var(--line);
}

.portal-activity-item h3 {
    margin: 0;
    font-size: 16px;
}

.portal-activity-item time {
    color: var(--muted);
    font-size: 12px;
}

.portal-activity-item p {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.portal-empty-activity {
    margin: 0;
    padding: 20px 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

@media (max-width: 700px) {
    .detail-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .detail-photo {
        width: min(100%, 430px);
        aspect-ratio: 4 / 3;
    }

    .detail-copy {
        padding-top: 0;
    }

    .detail-facts {
        margin-top: 20px;
    }

    .donation-account-details,
    .verification-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .donation-page {
        padding-top: 38px;
        padding-bottom: 60px;
    }

    .portal-page {
        padding-top: 38px;
        padding-bottom: 60px;
    }

    .portal-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-portal-callout {
        grid-template-columns: minmax(0, 1fr);
    }

    .member-portal-callout-actions {
        grid-template-columns: 1fr;
    }

    .member-application-form,
    .credential-values,
    .attendance-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .application-wide {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .portal-profile-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.topbar {
    z-index: 20;
}

.portal-intro {
    max-width: none;
    margin-bottom: 20px;
}

.portal-intro h1 {
    font-size: 30px;
}

.portal-login-form {
    max-width: none;
    padding: 19px 0;
}

.portal-security-note {
    max-width: none;
}

.portal-password-help {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.member-application,
.application-credentials {
    max-width: none;
    margin: 0;
}

.portal-pdf-button {
    min-height: 44px;
    justify-self: start;
    padding: 9px 15px;
    color: var(--red-dark);
    background: transparent;
    border: 1px solid rgba(181, 34, 44, 0.4);
    border-radius: 6px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.portal-pdf-button:hover {
    background: var(--red-soft);
}

.application-pdf-preview[hidden] {
    display: none;
}

.application-pdf-preview {
    max-width: 780px;
    margin-top: 28px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 7px;
}

.application-pdf-actions {
    margin-bottom: 24px;
    padding-bottom: 17px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    border-bottom: 1px solid var(--line);
}

.application-pdf-actions .portal-security-note {
    margin: 0;
}

.application-pdf-brand {
    padding-bottom: 12px;
    color: var(--red-dark);
    border-bottom: 2px solid var(--red);
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 800;
}

.application-pdf-preview h2 {
    margin: 24px 0 9px;
    font-size: 25px;
}

.application-pdf-date {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 12px;
}

.application-pdf-details {
    margin: 0;
    border-top: 1px solid var(--line);
}

.application-pdf-field {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.application-pdf-field dt {
    color: var(--muted);
    font-size: 12px;
}

.application-pdf-field dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.application-pdf-declaration {
    margin: 22px 0 48px;
    font-size: 13px;
}

.application-pdf-signatures {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 30px;
}

.application-pdf-signatures span {
    padding-top: 8px;
    border-top: 1px solid #5a4e49;
    font-size: 12px;
}

.application-pdf-footer {
    margin: 30px 0 0;
    color: var(--muted);
    font-size: 10px;
}

@media (max-width: 700px) {
    .portal-page {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "login" "content";
        gap: 28px;
    }

    .portal-page.dashboard-active {
        grid-template-areas: "dashboard";
    }

    .portal-login {
        position: static;
    }

    .application-pdf-preview {
        padding: 19px;
    }
}

@page {
    size: A4;
    margin: 18mm;
}

@media print {
    body.printing-application * {
        visibility: hidden !important;
    }

    body.printing-application #applicationPdfPreview,
    body.printing-application #applicationPdfPreview * {
        visibility: visible !important;
    }

    body.printing-application .application-pdf-actions {
        display: none !important;
    }

    body.printing-application #applicationPdfPreview {
        position: absolute;
        inset: 0 auto auto 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        display: block !important;
        background: #fff;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        color: #211b19;
    }
}


/* ---------- Admin panel ---------- */
.admin-page {
    max-width: 1180px;
}
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 24px;
}
.admin-tab {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}
.admin-tab.is-active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}
.admin-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 24px clamp(16px, 4vw, 32px);
    margin-bottom: 24px;
}
.admin-panel[hidden] {
    display: none;
}
.admin-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.admin-panel-heading h2 {
    margin: 4px 0 0;
}
.admin-refresh {
    border: 1px solid var(--line);
    background: var(--cream);
    color: var(--ink);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}
.admin-table-wrap {
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}
.admin-table th,
.admin-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.admin-table th {
    color: var(--muted);
    font-weight: 600;
}
.admin-table tr:last-child td {
    border-bottom: none;
}
.admin-row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-btn {
    border: 1px solid var(--line);
    background: var(--cream);
    color: var(--ink);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
}
.admin-btn.is-approve {
    background: #1f7a3d;
    border-color: #1f7a3d;
    color: var(--white);
}
.admin-btn.is-reject,
.admin-btn.is-danger {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}
.admin-empty {
    color: var(--muted);
    padding: 12px 0;
}
.admin-inline-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.admin-inline-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--muted);
}
.admin-inline-form input,
.admin-inline-form select,
.admin-inline-form textarea {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 12px;
    font: inherit;
    color: var(--ink);
    background: var(--cream);
}
.admin-inline-form textarea {
    resize: vertical;
    min-height: 60px;
}
.admin-inline-submit {
    align-self: end;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
}
.admin-credential-note {
    background: var(--red-soft);
    border: 1px solid rgba(181, 34, 44, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 0.92rem;
}
.admin-status-pill {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}
.admin-status-active { background: #e5f4ea; color: #1f7a3d; }
.admin-status-pending { background: #fdf1de; color: #a5680f; }
.admin-status-suspended,
.admin-status-rejected { background: var(--red-soft); color: var(--red-dark); }
.admin-status-verified { background: #e5f4ea; color: #1f7a3d; }


.admin-password-wrap {
    position: relative;
    display: flex;
}
.admin-password-wrap input {
    flex: 1;
    padding-right: 44px;
}
.admin-password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px;
    line-height: 1;
}


@media (max-width: 768px) {

    .topbar {
        position: relative;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 42px;
        padding: 0;
        z-index: 1001;
    }

    .main-nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        padding: 12px 16px;
        flex-direction: column;
        gap: 4px;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        z-index: 1000;
    }

    .main-nav.open {
        display: flex !important;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 12px 10px;
    }

    /* Language button mobile-এ থাকবে */
    .language-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding: 7px 12px;
    }

    /* Donation button চাইলে mobile-এ hidden */
    .donation-cta {
        display: none;
    }
}
.martyr-card-meta {
    padding-top: 0 !important;
    font-size: 12px !important;
    opacity: 0.8;
}

#loadMoreBtn {
    display: block;
    margin: 22px auto 0;
}

#loadMoreBtn[hidden] {
    display: none;
}
