:root {
    --brand-maroon: #8b0000;
    --brand-red: #c62828;
    --navy-dark: #1b1c3b;
    --border-gray: #dfdfdf;
    --bg-page: #f4f6f9;
    --site-bg: #ffffff;
    --text-color: #222222;
    --text-muted: #64748b;
    --frame-border: #e2e8f0;
}

/* গ্লোবাল রিসেট */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'SolaimanLipi', 'Noto Sans Bengali', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================================
   পুরো ওয়েবসাইটের মূল ফ্রেম ও মার্জিত হালকা বর্ডার
   ======================================================== */
.site-wrapper,
#page {
    max-width: 1280px;
    margin: 15px auto;
    background: var(--site-bg);
    border: 1px solid var(--frame-border);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ছবি ও মিডিয়ার ডিফল্ট রিসেট */
img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

/* ========================================================
   ডার্ক মোড সাপোর্ট
   ======================================================== */
body.dark-mode {
    --bg-page: #0f1015;
    --site-bg: #181920;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --frame-border: #27272a;
}

body.dark-mode .site-wrapper,
body.dark-mode #page {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

/* ========================================================
   মোবাইল রেসপন্সিভ সমন্বয়
   ======================================================== */
@media (max-width: 1300px) {
    .site-wrapper,
    #page {
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        box-shadow: none;
    }
}

/* =========================================================
   Accessible motion and Back-to-Top control
   ========================================================= */
.pc-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--pc-primary, #12345a);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(.92);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background-color .2s ease;
}
.pc-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.pc-back-to-top:hover,
.pc-back-to-top:focus-visible {
    background: var(--pc-accent, #e63946);
    outline: 3px solid rgba(255,255,255,.85);
    outline-offset: 3px;
}
.pc-back-to-top:active { transform: translateY(1px) scale(.96); }

.pc-motion-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1);
}
.pc-motion-item.pc-motion-in {
    opacity: 1;
    transform: translateY(0);
}
.page-body-wrap .leader-card,
.page-body-wrap .member-card,
.page-body-wrap .notice-card {
    transition: transform .25s ease, box-shadow .25s ease;
}
.page-body-wrap .leader-card:hover,
.page-body-wrap .member-card:hover,
.page-body-wrap .notice-card:hover {
    transform: translateY(-4px);
}
@media (max-width: 600px) {
    .pc-back-to-top {
        right: 14px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html:focus-within { scroll-behavior: auto; }
    .pc-back-to-top,
    .pc-motion-item,
    .page-body-wrap .leader-card,
    .page-body-wrap .member-card,
    .page-body-wrap .notice-card {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
    .pc-motion-item { opacity: 1 !important; }
}
