/* =====================================================================
   ফন্ট
   ===================================================================== */
@font-face {
    font-family: 'Nikosh';
    src: url('../fonts/Nikosh.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* সাইটের মূল কালার প্যালেট */
    --plum-900: #601D49;
    --plum-800: #4a1739;
    --plum-700: #7a2960;
    --rose-600: #BD5579;
    --rose-500: #c96a8b;
    --pink-300: #EA9D9D;
    --pink-100: #f9dede;
    --cream-50: #FBF2F1;
    --ink-900: #3a1530;
    --ink-600: #7a5a6d;
    --card-bg: #ffffff;

    --font-heading: 'Noto Serif Bengali', 'Nikosh', 'Segoe UI', serif;
    --font-body: 'Hind Siliguri', 'Nikosh', 'Segoe UI', Arial, sans-serif;

    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --shadow-soft: 0 4px 16px rgba(96, 29, 73, 0.10);
    --shadow-lift: 0 12px 28px rgba(96, 29, 73, 0.18);
}

* {
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6,
.site-title, .card-header, .footer-heading {
    font-family: var(--font-heading);
}

body {
    background-color: var(--cream-50);
    color: var(--ink-900);
}

a {
    color: var(--rose-600);
}

a:hover {
    color: var(--plum-900);
}

::selection {
    background-color: var(--pink-300);
    color: var(--plum-900);
}

:focus-visible {
    outline: 3px solid var(--pink-300);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* =====================================================================
   হেডার
   ===================================================================== */
.site-header {
    background: linear-gradient(135deg, var(--plum-900), var(--rose-600));
    color: #fff;
}

.site-header-hero {
    position: relative;
    overflow: hidden;
}

.site-header-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255,255,255,0.10) 0, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(255,255,255,0.08) 0, transparent 45%);
    pointer-events: none;
}

.site-header-hero .container {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .header-content-reveal {
        animation: heroFadeUp 0.7s ease both;
    }
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.site-logo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.site-title {
    font-size: 1.9rem;
    font-weight: 700;
}

.site-subtitle {
    font-size: 1rem;
    opacity: 0.92;
}

/* =====================================================================
   মেনু বার (নেভিগেশন)
   ===================================================================== */
.main-nav {
    background-color: var(--plum-800);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.main-nav .navbar-nav {
    gap: 2px;
}

.main-nav .nav-link {
    position: relative;
    color: #f6e6ef;
    font-weight: 500;
    padding: 0.85rem 1.2rem;
    transition: color 0.2s ease;
}

.main-nav .nav-link i {
    margin-right: 4px;
}

.main-nav .nav-link::before {
    content: '';
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 10px;
    height: 2px;
    background-color: var(--pink-300);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus-visible {
    color: #ffffff;
}

.main-nav .nav-link:hover::before,
.main-nav .nav-link:focus-visible::before,
.main-nav .nav-link.active::before {
    transform: scaleX(1);
}

.main-nav .dropdown-menu {
    background-color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lift);
    padding: 6px;
    margin-top: 6px;
    animation: none;
}

.main-nav .dropdown-menu.show {
    animation: dropdownFadeIn 0.18s ease both;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.main-nav .dropdown-item {
    color: var(--plum-900);
    border-radius: 6px;
    padding: 8px 14px;
    font-weight: 500;
    transition: background-color 0.15s ease, padding-left 0.15s ease;
}

.main-nav .dropdown-item i {
    margin-right: 6px;
    color: var(--rose-600);
    width: 18px;
    display: inline-block;
    text-align: center;
}

.main-nav .dropdown-item:hover,
.main-nav .dropdown-item:focus {
    background-color: var(--pink-100);
    color: var(--plum-900);
    padding-left: 18px;
}

.lang-switch {
    background-color: rgba(255,255,255,0.15);
    color: #fff !important;
    border-radius: 20px;
    padding: 6px 16px !important;
    margin-left: 8px;
}

.lang-switch::before {
    display: none;
}

.lang-switch:hover {
    background-color: rgba(255,255,255,0.3);
}

/* কাস্টম হ্যামবার্গার (মোবাইল মেনু টগলার) — X এ রূপান্তরিত হয় */
.custom-toggler {
    border: none;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
}

.custom-toggler:focus {
    box-shadow: 0 0 0 3px rgba(234,157,157,0.45);
    outline: none;
}

.toggler-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.custom-toggler:not(.collapsed) .toggler-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.custom-toggler:not(.collapsed) .toggler-bar:nth-child(2) {
    opacity: 0;
}

.custom-toggler:not(.collapsed) .toggler-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================================
   নোটিশ টিকার (মেনু বারের ঠিক নিচে — একপাশ থেকে অন্যপাশে স্ক্রল হয়)
   ===================================================================== */
.notice-ticker {
    background-color: var(--plum-900);
    border-top: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.notice-ticker-inner {
    display: flex;
    align-items: stretch;
}

.notice-ticker-label {
    background-color: var(--rose-600);
    color: #fff;
    padding: 9px 18px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
    padding-right: 26px;
}

.notice-ticker-track {
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
}

.notice-ticker-content {
    display: flex;
    align-items: center;
    width: max-content;
    white-space: nowrap;
    animation: tickerScroll var(--ticker-duration, 20s) linear infinite;
    padding-left: 1.5rem;
}

.notice-ticker-inner:hover .notice-ticker-content {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .notice-ticker-content { animation: none; }
}

/* নোটিশ কম থাকলে (৪টির কম) স্থিরভাবে দেখানো হয় — স্ক্রল/ডুপ্লিকেট করা হয় না */
.ticker-static-mode .notice-ticker-track {
    overflow: visible;
}

.ticker-static-mode .notice-ticker-content {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    white-space: normal;
    padding: 6px 0;
}

.notice-ticker-item {
    color: var(--pink-100);
    text-decoration: none;
    padding: 9px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.notice-ticker-item:hover {
    color: #ffffff;
    text-decoration: underline;
}

.notice-ticker-sep {
    color: var(--pink-300);
    opacity: 0.6;
    font-size: 0.6rem;
}

/* =====================================================================
   নোটিশ (হোমপেজ ও নোটিশ পেজ)
   ===================================================================== */
.notice-item {
    border-left: 4px solid var(--rose-600);
    padding: 10px 15px;
    margin-bottom: 12px;
    background-color: #fffbfb;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* নোটিশ তালিকার প্রতিটি আইটেম ক্লিকযোগ্য — নিজস্ব আলাদা পেজে খোলে */
a.notice-item-link {
    color: var(--ink-900);
    text-decoration: none;
    cursor: pointer;
}

a.notice-item-link:hover {
    background-color: var(--pink-100);
    color: var(--ink-900);
    transform: translateX(4px);
    box-shadow: var(--shadow-soft);
}

.notice-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--ink-600);
    font-size: 0.92rem;
}

.notice-attachment-badge {
    background-color: var(--pink-100);
    color: var(--plum-900);
    font-weight: 600;
    border: 1px solid var(--pink-300);
}

.notice-item-arrow {
    font-size: 1.1rem;
    vertical-align: middle;
}

.notice-date {
    font-size: 0.8rem;
    color: var(--ink-600);
}

/* একক নোটিশ বিস্তারিত পেজ */
.notice-detail-card .about-content {
    font-size: 1.02rem;
    line-height: 1.9;
}

.notice-attachment-box {
    border-top: 1px dashed var(--pink-300);
}

.notice-attachment-preview {
    max-height: 500px;
    box-shadow: var(--shadow-soft);
}

.notice-nav-link {
    max-width: 48%;
}

/* হোমপেজ হিরো স্লাইডার */
.hero-slider {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    min-height: 320px;
    box-shadow: var(--shadow-soft);
}

.hero-slider .carousel-inner {
    height: 100%;
}

.hero-slider .carousel-item {
    position: relative;
    height: 320px;
    overflow: hidden;
    background-color: var(--plum-900);
    background-size: cover;
    background-position: center;
}

/* ছবির পেছনে তারই একটি ঝাপসা/বড় সংস্করণ — যাতে ছবির চারপাশে কোনো খালি জায়গা না থাকে
   এবং ক্যাপশনটি ছবির উপরেই সুন্দরভাবে ভেসে থাকে */
.hero-slider .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(22px) brightness(0.55) saturate(1.15);
    transform: scale(1.15);
    z-index: 0;
}

/* মূল ছবি — সম্পূর্ণ ছবিটি (কোনো অংশ কাটা ছাড়াই) দেখা যাবে */
.hero-slider .carousel-item img {
    position: relative;
    z-index: 1;
    height: 320px;
    width: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

/* সক্রিয় স্লাইডের ছবিতে ধীরে ধীরে জুম হওয়া অ্যানিমেশন (Ken Burns এফেক্ট) — আধুনিক অনুভূতির জন্য */
.hero-slider .carousel-item.active img {
    animation: heroKenBurns 7s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.07); }
}

/* ফেইড ট্রানজিশন আরো মসৃণ ও ধীর করা হলো */
.hero-slider.carousel-fade .carousel-item {
    transition: opacity 1s ease-in-out !important;
}

.hero-slider-placeholder {
    height: 320px;
    background: linear-gradient(135deg, var(--plum-900), var(--rose-600));
}

.hero-slider .carousel-caption {
    z-index: 2;
    background: rgba(96, 29, 73, 0.72);
    backdrop-filter: blur(2px);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    bottom: 15px;
}

/* সক্রিয় হওয়ার সময় ক্যাপশন নিচ থেকে হালকা উঠে এসে ফেইড-ইন হবে */
.hero-slider .carousel-item.active .carousel-caption {
    animation: heroCaptionIn 0.8s ease both;
    animation-delay: 0.15s;
}

@keyframes heroCaptionIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-slider .carousel-indicators [data-bs-target] {
    background-color: var(--pink-300);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-slider .carousel-indicators .active {
    background-color: #fff;
    transform: scaleY(1.3);
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 8%;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 0.85;
}

/* হোমপেজ নোটিশ সাইডবার (স্লাইডারের পাশে) */
.notice-sidebar-card {
    max-height: 100%;
}

.notice-sidebar-body {
    max-height: 320px;
    overflow-y: auto;
}

.notice-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 6px;
    text-decoration: none;
    color: var(--ink-900);
    border-left: 3px solid var(--rose-600);
    margin-bottom: 8px;
    border-radius: 0 6px 6px 0;
    background-color: #fffbfb;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.notice-sidebar-item:hover {
    background-color: var(--pink-100);
    color: var(--plum-900);
    transform: translateX(3px);
}

.notice-sidebar-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    min-width: 52px;
    padding: 4px 6px;
    border: 1px solid var(--pink-300);
    border-radius: 6px;
    background-color: #fff;
}

.notice-sidebar-date .d {
    font-weight: 700;
    font-size: 1rem;
    color: var(--plum-900);
}

.notice-sidebar-date .m,
.notice-sidebar-date .y {
    font-size: 0.7rem;
    color: var(--ink-600);
}

.notice-sidebar-title {
    font-size: 0.9rem;
    font-weight: 500;
}

/* =====================================================================
   পেজ শিরোনাম ব্লক (গ্যালারী, কার্যক্রম ইত্যাদি স্বতন্ত্র পেজে)
   ===================================================================== */
.page-heading-block h4 {
    color: var(--plum-900);
    font-weight: 700;
}

/* =====================================================================
   বার্ষিক কার্যক্রম — আধুনিক কার্ড গ্রিড (৩ কলাম)
   ===================================================================== */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.activity-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(96, 29, 73, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

/* কার্যক্রম কার্ড ক্লিক করে বিস্তারিত দেখা যায় — তাই কার্সার ও ফোকাস আচরণ যুক্ত করা হলো */
.js-activity-card {
    cursor: pointer;
    outline: none;
}

.js-activity-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(189, 85, 121, 0.45), var(--shadow-lift);
}

.activity-card-img-wrap {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--plum-900), var(--rose-600));
}

.activity-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.activity-card:hover .activity-card-img-wrap img {
    transform: scale(1.06);
}

.activity-card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    opacity: 0.85;
}

.activity-card-date {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(96, 29, 73, 0.85);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.activity-card-body {
    padding: 16px 18px 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.activity-card-title {
    color: var(--plum-900);
    font-weight: 700;
    margin-bottom: 6px;
}

.activity-card-text {
    color: var(--ink-600);
    font-size: 0.9rem;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =====================================================================
   ফটো গ্যালারী — ৪ কলাম গ্রিড, নিচে ক্যাপশন
   ===================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.gallery-card {
    margin: 0;
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(96, 29, 73, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
}

/* গ্যালারী ছবিতে ক্লিক করে বড় করে দেখা যায় */
.gallery-card-img-wrap.js-gallery-item {
    position: relative;
    cursor: pointer;
    display: block;
}

.gallery-card-img-wrap.js-gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-zoom-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    background: rgba(96, 29, 73, 0);
    opacity: 0;
    transition: opacity 0.25s ease, background-color 0.25s ease;
    pointer-events: none;
}

.gallery-card-img-wrap.js-gallery-item:hover .gallery-zoom-hint {
    opacity: 1;
    background: rgba(96, 29, 73, 0.35);
}

.gallery-card-img-wrap {
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--plum-900), var(--rose-600));
}

.gallery-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-card-img-wrap img {
    transform: scale(1.08);
}

.gallery-card figcaption {
    padding: 10px 12px;
    font-size: 0.85rem;
    color: var(--ink-900);
    text-align: center;
    border-top: 1px solid rgba(96, 29, 73, 0.06);
}

/* =====================================================================
   পেজিনেশন (গ্যালারী, কার্যক্রম ইত্যাদির জন্য)
   ===================================================================== */
.custom-pagination .page-link {
    color: var(--plum-900);
    border: 1px solid rgba(96, 29, 73, 0.15);
    margin: 0 3px;
    border-radius: 8px !important;
    font-weight: 500;
}

.custom-pagination .page-item.active .page-link {
    background-color: var(--plum-900);
    border-color: var(--plum-900);
    color: #fff;
}

.custom-pagination .page-item.disabled .page-link {
    color: var(--ink-600);
    opacity: 0.5;
}

.custom-pagination .page-link:hover {
    background-color: var(--pink-100);
    color: var(--plum-900);
}

@media (max-width: 991px) {
    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .activity-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================================
   বার্ষিক কার্যক্রম — হোমপেজে এক পাশ থেকে অন্য পাশে স্বয়ংক্রিয়ভাবে চলমান কার্ড স্ট্রিপ
   ===================================================================== */
.activity-marquee-wrap {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.activity-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: activityMarquee var(--marquee-duration, 28s) linear infinite;
}

.activity-marquee-wrap:hover .activity-marquee-track,
.activity-marquee-track.paused {
    animation-play-state: paused;
}

@keyframes activityMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.activity-marquee-track .activity-card {
    flex: 0 0 auto;
    width: 270px;
}

@media (max-width: 575px) {
    .activity-marquee-track .activity-card {
        width: 220px;
    }
}

/* =====================================================================
   সাইট-ওয়াইড ওভারলে/লাইটবক্স (গ্যালারী ছবি ও কার্যক্রমের বিস্তারিত দেখানোর জন্য)
   ===================================================================== */
body.site-overlay-open {
    overflow: hidden;
}

.site-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(58, 21, 48, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-overlay.active {
    opacity: 1;
    visibility: visible;
}

.site-overlay-close {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 2002;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.site-overlay-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.site-overlay-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2001;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.site-overlay-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.site-overlay-nav-prev { left: 16px; }
.site-overlay-nav-next { right: 16px; }

.site-lightbox-box {
    max-width: 90vw;
    max-height: 88vh;
    text-align: center;
    animation: overlayPop 0.25s ease;
}

.site-lightbox-box img {
    max-width: 100%;
    max-height: 76vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lift);
    object-fit: contain;
}

.site-lightbox-caption {
    color: #fff;
    margin-top: 14px;
    font-size: 1rem;
}

.site-detail-box {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    max-width: 640px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lift);
    animation: overlayPop 0.25s ease;
}

.site-detail-img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

.site-detail-body {
    padding: 22px 26px 26px;
}

.site-detail-date {
    color: var(--rose-600);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.site-detail-title {
    color: var(--plum-900);
    font-weight: 700;
    margin-bottom: 12px;
}

.site-detail-desc {
    color: var(--ink-600);
    white-space: pre-line;
    margin-bottom: 0;
}

@keyframes overlayPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

/* =====================================================================
   মোবাইল/ছোট স্ক্রিনের জন্য অতিরিক্ত রেসপনসিভ সামঞ্জস্য
   (গ্যালারী, কার্যক্রম কার্ড, লাইটবক্স, বিস্তারিত পপআপ, মার্কি)
   ===================================================================== */
@media (max-width: 480px) {
    .gallery-grid {
        gap: 10px;
    }

    .gallery-card-img-wrap {
        height: 120px;
    }

    .gallery-card figcaption {
        padding: 8px 8px;
        font-size: 0.78rem;
    }

    .activity-grid {
        gap: 14px;
    }

    .activity-card-img-wrap {
        height: 150px;
    }

    .activity-marquee-track {
        gap: 14px;
    }

    .activity-marquee-track .activity-card {
        width: 200px;
    }

    .activity-marquee-track .activity-card-img-wrap {
        height: 130px;
    }

    .custom-pagination .page-link {
        padding: 0.32rem 0.6rem;
        font-size: 0.85rem;
        margin: 0 2px;
    }

    .site-overlay {
        padding: 12px;
    }

    .site-overlay-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .site-overlay-nav {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .site-overlay-nav-prev { left: 6px; }
    .site-overlay-nav-next { right: 6px; }

    .site-lightbox-box img {
        max-height: 62vh;
    }

    .site-detail-box {
        max-width: 100%;
    }

    .site-detail-img {
        max-height: 200px;
    }

    .site-detail-body {
        padding: 16px 18px 20px;
    }
}

/* খাটো উচ্চতার স্ক্রিনে (যেমন মোবাইল ল্যান্ডস্কেপ) পপআপ যেন উপচে না পড়ে */
@media (max-height: 520px) {
    .site-lightbox-box img {
        max-height: 55vh;
    }

    .site-detail-box {
        max-height: 92vh;
    }

    .site-detail-img {
        max-height: 160px;
    }
}


/* =====================================================================
   কার্ড, বাটন, টেবিল
   ===================================================================== */
.card {
    border: 1px solid rgba(96, 29, 73, 0.06);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    background-color: var(--card-bg);
}

.card-header {
    background: linear-gradient(135deg, var(--plum-900), var(--plum-700));
    color: #fff;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    font-weight: 600;
    border-bottom: none;
}

.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--plum-900);
    border-color: var(--plum-900);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--plum-800);
    border-color: var(--plum-800);
    box-shadow: 0 6px 16px rgba(96, 29, 73, 0.3);
}

.btn-outline-primary {
    color: var(--plum-900);
    border-color: var(--plum-900);
}

.btn-outline-primary:hover {
    background-color: var(--plum-900);
    border-color: var(--plum-900);
}

.btn-gold {
    background: linear-gradient(135deg, var(--rose-600), var(--pink-300));
    border: none;
    color: #fff;
    box-shadow: 0 6px 18px rgba(189, 85, 121, 0.35);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--plum-900), var(--rose-600));
    color: #fff;
    box-shadow: 0 10px 24px rgba(96, 29, 73, 0.4);
}

.table thead {
    background-color: var(--plum-900);
    color: #fff;
}

/* =====================================================================
   ফুটার
   ===================================================================== */
.site-footer {
    background-color: var(--plum-800);
    color: var(--pink-100);
    margin-top: 40px;
}

.footer-heading {
    color: var(--pink-300);
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-heading i {
    margin-right: 6px;
}

.footer-text {
    color: #f3e2ea;
    font-size: 0.92rem;
}

.footer-text a {
    color: #f3e2ea;
    text-decoration: underline;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.12);
    color: #fff;
    margin-right: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.footer-social-icon:hover {
    background-color: var(--pink-300);
    color: var(--plum-900);
    transform: translateY(-2px);
}

.footer-map-wrap {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.15);
}

.footer-bottom {
    background-color: #3a1230;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.developer-credit {
    font-size: 0.78rem;
    opacity: 0.75;
    margin-top: 4px;
}

/* =====================================================================
   পরিচিতি: শিক্ষক ও ম্যানেজিং কমিটি কার্ড
   ===================================================================== */
.person-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.person-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.person-photo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--pink-300);
}

.person-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pink-100);
    color: var(--rose-600);
    font-size: 2.2rem;
    margin-left: auto;
    margin-right: auto;
}

.about-content {
    font-size: 1.02rem;
    line-height: 1.9;
}

.result-marksheet-table th, .result-marksheet-table td {
    text-align: center;
    vertical-align: middle;
}

/* =====================================================================
   এডমিন সাইডবার (রেসপনসিভ)
   ===================================================================== */
.admin-sidebar {
    background-color: var(--plum-800);
    min-height: 100vh;
    color: #fff;
}

.admin-sidebar a {
    position: relative;
    color: #f6e6ef;
    display: block;
    padding: 12px 18px 12px 22px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, padding-left 0.15s ease;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background-color: var(--plum-900);
    color: #ffffff;
    border-left-color: var(--pink-300);
    padding-left: 26px;
}

.admin-toggler {
    display: none;
}

.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--rose-600);
    margin-bottom: 6px;
}

@media (max-width: 767.98px) {
    .admin-toggler {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        background-color: var(--plum-800);
        color: #fff;
        border: none;
        padding: 14px 18px;
        font-weight: 600;
    }

    .admin-sidebar {
        min-height: auto;
        width: 100% !important;
        min-width: 0 !important;
    }

    .admin-sidebar .admin-sidebar-links {
        display: none;
    }

    .admin-sidebar.open .admin-sidebar-links {
        display: block;
    }

    .admin-main-content {
        width: 100%;
    }
}

/* =====================================================================
   সাধারণ রেসপনসিভ সামঞ্জস্য
   ===================================================================== */
@media (max-width: 767.98px) {
    .site-title {
        font-size: 1.4rem;
    }

    .site-logo {
        width: 68px;
        height: 68px;
    }

    .hero-slider,
    .hero-slider .carousel-item,
    .hero-slider .carousel-item img,
    .hero-slider-placeholder {
        min-height: 220px;
        height: 220px;
    }

    .notice-ticker-label {
        font-size: 0.8rem;
        padding: 7px 14px;
        padding-right: 20px;
    }

    .notice-ticker-item {
        font-size: 0.82rem;
        padding: 7px 10px;
    }
}

@media print {
    .no-print { display: none !important; }
    body { background: #fff; }
}


/* =====================================================================
   UI রিফ্রেশ — আরো পরিচ্ছন্ন, আকর্ষণীয় ও আধুনিক চেহারা
   (মাদরাসার নিজস্ব প্লাম/রোজ রঙ অক্ষুণ্ণ; সোনালি শুধু সূক্ষ্ম অলংকরণে)
   ===================================================================== */
:root {
    --gold-500: #c9a24b;
    --gold-200: #ecdca9;
    --line: rgba(96, 29, 73, 0.12);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-soft: 0 1px 2px rgba(58, 21, 48, 0.06), 0 10px 28px -12px rgba(96, 29, 73, 0.22);
    --shadow-lift: 0 2px 4px rgba(58, 21, 48, 0.08), 0 18px 36px -14px rgba(96, 29, 73, 0.34);
    --pattern-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1'%3E%3Cpath d='M36 6 42 30 66 36 42 42 36 66 30 42 6 36 30 30Z'/%3E%3Crect x='17' y='17' width='38' height='38' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
}

body {
    font-size: 1.02rem;
    line-height: 1.7;
    background: linear-gradient(180deg, #f7e9e8 0, var(--cream-50) 360px);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 { line-height: 1.35; letter-spacing: 0; }

/* ---------- হেডার: ইসলামিক জ্যামিতিক নকশা (এই পাতার মূল আকর্ষণ) ---------- */
.site-header {
    background-color: var(--plum-800);
    background-image:
        var(--pattern-star),
        linear-gradient(135deg, var(--plum-800) 0%, var(--plum-900) 45%, var(--rose-600) 100%);
}

.site-header-hero { padding-bottom: 14px; }

.site-header-hero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: min(260px, 60%);
    height: 10px;
    transform: translateX(-50%);
    background:
        linear-gradient(90deg, transparent, var(--gold-500) 30%, var(--gold-500) 70%, transparent) center / 100% 1px no-repeat;
    pointer-events: none;
}

.site-header-hero .container::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 9px;
    height: 9px;
    background: var(--gold-500);
    transform: translateX(-50%) rotate(45deg);
}

.site-logo {
    border: 3px solid var(--gold-200);
    box-shadow: 0 0 0 5px rgba(201, 162, 75, 0.28), 0 8px 22px rgba(0, 0, 0, 0.35);
}

.site-title { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28); }
.site-subtitle { color: var(--pink-100); }

/* ---------- নেভিগেশন ---------- */
.main-nav {
    background-color: rgba(74, 23, 57, 0.97);
    box-shadow: 0 1px 0 rgba(236, 220, 169, 0.35) inset, 0 6px 16px rgba(58, 21, 48, 0.25);
}

.main-nav .nav-link { font-weight: 500; letter-spacing: 0.1px; }

.main-nav .nav-link::before { background-color: var(--gold-500); height: 3px; border-radius: 3px; bottom: 6px; }

.main-nav .nav-link.active { color: #fff; }

.main-nav .dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius-md); }

/* ---------- কার্ড ---------- */
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.card-header {
    background: #ffffff;
    color: var(--plum-900);
    font-size: 1.06rem;
    padding: 0.85rem 1.1rem 0.85rem 1.25rem;
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    position: relative;
}

.card-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--rose-600), var(--gold-500));
}

.card-header a { font-weight: 600; text-decoration: none; }
.card-header a:hover { text-decoration: underline; }

/* ---------- পেজ শিরোনাম ---------- */
.page-heading-block h4 { font-size: 1.55rem; }

.page-heading-block h4::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--rose-600), var(--gold-500));
}

/* ---------- বাটন ও ফর্ম ---------- */
.btn { border-radius: var(--radius-sm); padding: 0.5rem 1rem; }
.btn-sm { padding: 0.3rem 0.7rem; border-radius: 8px; }

.btn-primary {
    background: linear-gradient(135deg, var(--plum-900), var(--plum-700));
    border-color: var(--plum-900);
    box-shadow: 0 4px 12px -4px rgba(96, 29, 73, 0.55);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--plum-800), var(--plum-900));
    border-color: var(--plum-800);
}

.btn-outline-primary { border-width: 1.5px; }

.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(96, 29, 73, 0.2);
    padding: 0.58rem 0.85rem;
    background-color: #fff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--rose-600);
    box-shadow: 0 0 0 0.25rem rgba(189, 85, 121, 0.18);
}

.form-label { font-weight: 600; color: var(--plum-900); margin-bottom: 0.3rem; }

.alert { border: 0; border-left: 4px solid; border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); }
.alert-success { border-left-color: #2e8b57; }
.alert-danger  { border-left-color: #c0392b; }
.alert-warning { border-left-color: var(--gold-500); }
.alert-info    { border-left-color: var(--rose-600); }

.badge { font-weight: 600; border-radius: 8px; padding: 0.42em 0.65em; }

/* ---------- টেবিল ---------- */
.table { --bs-table-border-color: rgba(96, 29, 73, 0.14); }

.table thead:not(.table-light) { background-color: var(--plum-900); }

.table thead:not(.table-light) th {
    background-color: var(--plum-900);
    color: #fff;
    font-weight: 600;
    border-color: rgba(255, 255, 255, 0.14);
    vertical-align: middle;
}

.table tbody tr:hover > * { background-color: rgba(249, 222, 222, 0.38); }
.table-responsive { border-radius: var(--radius-sm); }

/* ---------- স্লাইডার: ক্যাপশন ছবির নিচের প্রান্তে গাঢ় গ্রেডিয়েন্টে ---------- */
.hero-slider {
    box-shadow: var(--shadow-lift);
    border: 3px solid #fff;
    outline: 1px solid var(--line);
}

.hero-slider .carousel-caption {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.4rem 1.2rem 2.2rem;
    background: linear-gradient(to top, rgba(40, 10, 30, 0.82), rgba(40, 10, 30, 0));
    backdrop-filter: none;
    border-radius: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-slider .carousel-indicators { margin-bottom: 0.6rem; }

.hero-slider .carousel-indicators [data-bs-target] {
    width: 22px; height: 4px; border: 0; border-radius: 4px; opacity: 0.6;
}
.hero-slider .carousel-indicators .active { width: 34px; opacity: 1; background-color: var(--gold-200); transform: none; }

/* ---------- দ্রুত লিংক (হোমপেজ) ---------- */
.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 1.5rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    color: var(--plum-900);
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-link:hover { color: var(--plum-900); border-color: var(--rose-600); box-shadow: var(--shadow-lift); }

.quick-link-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--pink-100);
    color: var(--rose-600);
    font-size: 1.35rem;
}

.quick-link-primary { background: linear-gradient(135deg, var(--plum-900), var(--plum-700)); color: #fff; border-color: transparent; }
.quick-link-primary:hover { color: #fff; border-color: var(--gold-500); }
.quick-link-primary .quick-link-icon { background: rgba(255, 255, 255, 0.16); color: var(--gold-200); }

@media (max-width: 991.98px) { .quick-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .quick-link { padding: 12px; gap: 10px; font-size: 0.95rem; } .quick-link-icon { width: 40px; height: 40px; } }

/* ---------- কার্যক্রম, গ্যালারী, পরিচিতি কার্ড ---------- */
.activity-card, .gallery-card, .person-card { border-radius: var(--radius-md); border: 1px solid var(--line); }
.activity-card:hover, .gallery-card:hover { transform: translateY(-3px); }
.activity-card-date { background-color: rgba(74, 23, 57, 0.88); border: 1px solid rgba(236, 220, 169, 0.5); }
.person-photo { border-color: var(--gold-200); box-shadow: 0 0 0 3px rgba(189, 85, 121, 0.25); }

/* ---------- ফুটার ---------- */
.site-footer {
    margin-top: 48px;
    border-top: 4px solid var(--gold-500);
    background-color: var(--plum-800);
    background-image: var(--pattern-star), linear-gradient(180deg, var(--plum-800), #36102b);
}

.footer-heading::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    margin-top: 6px;
    background: var(--gold-500);
}

.footer-bottom { background-color: rgba(0, 0, 0, 0.22); }

/* ---------- এডমিন প্যানেল ---------- */
.admin-sidebar {
    background-color: var(--plum-800);
    background-image: var(--pattern-star), linear-gradient(180deg, var(--plum-800), #36102b);
    border-right: 1px solid rgba(236, 220, 169, 0.25);
}

.admin-sidebar img { border-color: var(--gold-200) !important; box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.25); }

.admin-sidebar a { border-bottom-color: rgba(255, 255, 255, 0.06); font-size: 0.97rem; }
.admin-sidebar a i { width: 22px; display: inline-block; color: var(--pink-300); }

.admin-sidebar a:hover, .admin-sidebar a.active {
    background-color: rgba(255, 255, 255, 0.09);
    border-left-color: var(--gold-500);
}

.admin-sidebar a.active { font-weight: 600; }
.admin-sidebar a.active i { color: var(--gold-200); }

.admin-main-content { background: transparent; }

.stat-card { border-top: 3px solid var(--rose-600); }

.stat-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--pink-100);
    font-size: 1.5rem;
}

/* ---------- লগইন পেজ ---------- */
body.login-page {
    background-color: var(--plum-800);
    background-image: var(--pattern-star), linear-gradient(150deg, var(--plum-800), var(--plum-900) 55%, var(--rose-600));
    background-attachment: fixed;
}

body.login-page .card { border: 0; box-shadow: 0 24px 60px -20px rgba(20, 5, 15, 0.6); }
body.login-page .text-muted { color: var(--ink-600) !important; }
body.login-page .site-logo { border-color: var(--gold-200); }
body.login-page .btn-outline-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
body.login-page .btn-outline-secondary:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
body.login-page p.small { color: var(--pink-100) !important; }

/* ---------- প্রিন্ট ---------- */
@media print {
    body { background: #fff !important; }
    .site-header, .site-footer, .main-nav, .admin-sidebar { background-image: none !important; }
}


/* =====================================================================
   UI রিফ্রেশ ২ — মাদরাসার নিজস্ব স্থাপত্য-ভাষা: মেহরাব (খিলান), আর্কেড, বিসমিল্লাহ
   ===================================================================== */

/* বিসমিল্লাহ — হেডারের শীর্ষে */
.bismillah {
    font-family: 'Amiri', 'Noto Naskh Arabic', serif !important;
    font-size: 1.55rem;
    line-height: 1.6;
    color: var(--gold-200);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    margin-bottom: 0.2rem;
}

/* স্টিকি নেভিগেশন: হেডার ট্যাগকে display:contents করলে নেভ পুরো পেজ জুড়ে আটকে থাকে */
header.site-header { display: contents; background: none !important; }

.site-header-hero {
    background-color: var(--plum-800);
    background-image:
        var(--pattern-star),
        linear-gradient(135deg, var(--plum-800) 0%, var(--plum-900) 45%, var(--rose-600) 100%);
}

.main-nav { position: sticky; top: 0; z-index: 1030; }

/* স্লাইডারে ভেতরের সোনালি ফ্রেম */
.hero-slider::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(236, 220, 169, 0.6);
    border-radius: 12px;
    pointer-events: none;
    z-index: 3;
}

/* দ্রুত লিংকের মূল বাটনে নকশা */
.quick-link-primary {
    background-image: var(--pattern-star), linear-gradient(135deg, var(--plum-900), var(--plum-700));
}

/* এক নজরে ব্যান্ড */
.stats-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    background-color: var(--plum-900);
    background-image: var(--pattern-star), linear-gradient(135deg, var(--plum-800), var(--plum-900) 60%, var(--rose-600) 140%);
    color: #fff;
    box-shadow: var(--shadow-lift);
    overflow: hidden;
}

.stats-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 10px;
}

.stats-item + .stats-item { border-left: 1px solid rgba(236, 220, 169, 0.3); }
.stats-item > i { font-size: 1.9rem; color: var(--gold-200); }
.stats-item strong { display: block; font-family: var(--font-heading); font-size: 1.7rem; line-height: 1.1; color: #fff; }
.stats-item span { display: block; font-size: 0.92rem; color: var(--pink-100); }

@media (max-width: 575.98px) {
    .stats-item { flex-direction: column; gap: 4px; padding: 14px 6px; text-align: center; }
    .stats-item > i { font-size: 1.5rem; }
    .stats-item strong { font-size: 1.35rem; }
    .bismillah { font-size: 1.3rem; }
}

/* নোটিশ তারিখ: ছোট ক্যালেন্ডার-টাইল */
.notice-sidebar-item { border-left: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px 8px 8px; }
.notice-sidebar-item:hover { transform: none; border-color: var(--rose-600); background: #fff; }

.notice-sidebar-date {
    padding: 0;
    min-width: 54px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.notice-sidebar-date .m { order: -1; width: 100%; text-align: center; background: var(--rose-600); color: #fff; padding: 2px 0; font-size: 0.72rem; }
.notice-sidebar-date .d { order: 0; padding: 3px 0 0; font-size: 1.15rem; }
.notice-sidebar-date .y { order: 1; padding-bottom: 3px; }

/* মেহরাব (খিলান) আকৃতির ছবি-ফ্রেম */
.person-photo {
    width: 98px;
    height: 120px;
    border-radius: 49px 49px 14px 14px;
    border: 3px solid var(--gold-200);
    box-shadow: 0 0 0 3px rgba(189, 85, 121, 0.22), 0 8px 18px -8px rgba(96, 29, 73, 0.5);
}

.person-photo-placeholder { font-size: 2.4rem; }

/* ফুটার: উপরে খিলানের সারি (আর্কেড) */
.site-footer { position: relative; border-top: 0; margin-top: 60px; }

.site-footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -17px;
    height: 17px;
    background: radial-gradient(circle at 17px 17px, var(--plum-800) 16.5px, transparent 17px) 0 0 / 34px 17px repeat-x;
    pointer-events: none;
}

/* বড় সিটিএ বাটনে নকশা */
.btn-gold.btn-lg { padding: 0.8rem 2.2rem; border-radius: 999px; }


/* =====================================================================
   অ্যানিমেশন (UX মোশন) — পেজ লোড, স্ক্রল-রিভিল, হোভার, ছোট ফিডব্যাক
   ===================================================================== */
@keyframes pageIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes dropIn   { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes logoIn   { from { opacity: 0; transform: scale(0.7) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes starDrift { from { background-position: 0 0, 0 0; } to { background-position: 72px 72px, 0 0; } }
@keyframes shine    { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(201, 162, 75, 0.5); } 100% { box-shadow: 0 0 0 14px rgba(201, 162, 75, 0); } }

body { animation: pageIn 0.5s ease both; }

/* হেডার: ধাপে ধাপে প্রবেশ */
.bismillah   { animation: fadeUp 0.8s 0.10s cubic-bezier(.2,.7,.2,1) both; }
.site-logo   { animation: logoIn 0.9s 0.25s cubic-bezier(.2,.9,.3,1.2) both; }
.site-title  { animation: fadeUp 0.8s 0.40s cubic-bezier(.2,.7,.2,1) both; }
.site-subtitle { animation: fadeUp 0.8s 0.55s cubic-bezier(.2,.7,.2,1) both; }
.site-header-hero { animation: starDrift 90s linear infinite; }
.site-header-hero::after { transform-origin: center; animation: pageIn 1.2s 0.9s both; }

/* মেনু */
.main-nav .nav-link { transition: color 0.2s ease, transform 0.2s ease; }
.main-nav .nav-link:hover { transform: translateY(-1px); }
.dropdown-menu.show { animation: dropIn 0.2s ease both; }

/* স্ক্রল-রিভিল (ui.js ক্লাস যোগ করে; JS না চললে কনটেন্ট সবসময় দৃশ্যমান) */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* দ্রুত লিংক ও কার্ড: হোভার */
.quick-link { transition: transform 0.25s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s ease, border-color 0.2s ease; }
.quick-link:hover { transform: translateY(-4px); }
.quick-link:active { transform: translateY(-1px) scale(0.98); }
.quick-link-icon { transition: transform 0.35s cubic-bezier(.3,1.4,.5,1), background-color 0.2s ease; }
.quick-link:hover .quick-link-icon { transform: rotate(-10deg) scale(1.12); }

.person-card { transition: transform 0.25s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s ease; }
.person-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.person-photo { transition: transform 0.4s cubic-bezier(.3,1.3,.5,1); }
.person-card:hover .person-photo { transform: scale(1.05); }

.notice-sidebar-item { transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.notice-sidebar-item:hover { transform: translateX(4px); box-shadow: var(--shadow-soft); }

/* বাটন: চাপলে ছোট হওয়া + প্রাইমারি/গোল্ডে আলোর ঝলক */
.btn { transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; position: relative; overflow: hidden; }
.btn:active { transform: scale(0.97); }
.btn-primary::after, .btn-gold::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-120%) skewX(-20deg);
    pointer-events: none;
}
.btn-primary:hover::after, .btn-gold:hover::after { animation: shine 0.8s ease; }
.btn-gold.btn-lg { animation: pulseRing 2.6s ease-out 1.5s 3; }

/* স্ক্রল প্রগ্রেস বার ও উপরে যাওয়ার বাটন */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 3px;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--rose-600), var(--gold-500));
    z-index: 2000;
    pointer-events: none;
}

.to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 52px;
    border: 2px solid var(--gold-200);
    border-radius: 23px 23px 10px 10px; /* মেহরাব আকৃতি */
    background: linear-gradient(160deg, var(--plum-700), var(--plum-900));
    color: var(--gold-200);
    font-size: 1.2rem;
    box-shadow: var(--shadow-lift);
    cursor: pointer;
    z-index: 1040;
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(.2,.9,.3,1.2);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); color: #fff; }

/* এডমিন প্যানেল: ভেতরের কনটেন্টের মৃদু প্রবেশ ও সাইডবার হোভার */
.admin-main-content .card { animation: fadeUp 0.5s ease both; }
.admin-main-content .row > :nth-child(2) .card { animation-delay: 0.06s; }
.admin-main-content .row > :nth-child(3) .card { animation-delay: 0.12s; }
.admin-main-content .row > :nth-child(4) .card { animation-delay: 0.18s; }
.stat-card { transition: transform 0.25s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s ease; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.admin-sidebar a { transition: background-color 0.2s ease, padding-left 0.2s ease, border-left-color 0.2s ease; }
.admin-sidebar a:hover { padding-left: 1.35rem; }
body.login-page .card { animation: fadeUp 0.7s 0.1s cubic-bezier(.2,.7,.2,1) both; }

/* যাদের ডিভাইসে "অ্যানিমেশন কমান" সেট করা, তাদের জন্য সব মোশন বন্ধ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1 !important; transform: none !important; }
    .scroll-progress { display: none; }
}


/* =====================================================================
   অ্যানিমেশন ২ — মোশন-ফিডব্যাক: রিপল, লোডিং, স্লাইডার প্রগ্রেস, ফেড, টেবিল-সারি
   ===================================================================== */
@keyframes spin      { to { transform: rotate(360deg); } }
@keyframes rippleOut { from { transform: scale(0); opacity: 0.8; } to { transform: scale(1); opacity: 0; } }
@keyframes rowIn     { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes alertIn   { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes lineDraw  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sliderBar { from { width: 0; } to { width: 100%; } }

/* স্টিকি মেনু: স্ক্রল করলে গাঢ় ও গভীর ছায়া */
.main-nav { transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.main-nav.scrolled { background-color: rgba(52, 14, 41, 0.985); box-shadow: 0 10px 26px -8px rgba(20, 5, 15, 0.6); }

/* রিপল (ঢেউ) */
.quick-link, .page-link { position: relative; overflow: hidden; }
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    animation: rippleOut 0.6s ease-out forwards;
    pointer-events: none;
}
.quick-link:not(.quick-link-primary) .ripple,
.btn-outline-primary .ripple, .btn-outline-secondary .ripple, .btn-light .ripple, .page-link .ripple { background: rgba(189, 85, 121, 0.28); }

/* সাবমিট বাটনে লোডিং স্পিনার */
.btn.is-loading { color: transparent !important; cursor: progress; }
.btn.is-loading > * { opacity: 0; }
.btn.is-loading::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 1.15rem; height: 1.15rem;
    margin: -0.575rem 0 0 -0.575rem;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.btn-outline-primary.is-loading::before, .btn-outline-secondary.is-loading::before, .btn-outline-danger.is-loading::before, .btn-light.is-loading::before {
    border-color: rgba(96, 29, 73, 0.25);
    border-top-color: var(--plum-900);
}

/* স্লাইডারের প্রগ্রেস বার (পরের স্লাইড পর্যন্ত সময়) */
.slider-progress {
    position: absolute;
    left: 0; bottom: 0;
    height: 3px; width: 0;
    background: linear-gradient(90deg, var(--rose-600), var(--gold-200));
    z-index: 4;
    pointer-events: none;
}
.slider-progress.run { animation: sliderBar 5s linear forwards; }

/* পেজ বদলের ফেড-ওভারলে */
.page-fade {
    position: fixed; inset: 0;
    background: var(--cream-50);
    opacity: 0;
    pointer-events: none;
    z-index: 3000;
    transition: opacity 0.17s ease;
}
.page-fade.on { opacity: 1; pointer-events: auto; }

/* এলার্ট: প্রবেশ ও মিলিয়ে যাওয়া */
.alert { animation: alertIn 0.4s cubic-bezier(.2,.7,.2,1) backwards; }
.alert.alert-leave { opacity: 0; transform: translateY(-8px); transition: opacity 0.5s ease, transform 0.5s ease; }

/* শিরোনামের নিচের রেখা আঁকা হয় */
.page-heading-block h4::after { transform-origin: center; animation: lineDraw 0.8s 0.25s cubic-bezier(.2,.7,.2,1) both; }

/* টেবিলের সারি ধাপে ধাপে ভেসে ওঠে (প্রথম ১০টি) */
.table tbody tr { animation: rowIn 0.4s ease both; }
.table tbody tr:nth-child(2)  { animation-delay: 0.04s; }
.table tbody tr:nth-child(3)  { animation-delay: 0.08s; }
.table tbody tr:nth-child(4)  { animation-delay: 0.12s; }
.table tbody tr:nth-child(5)  { animation-delay: 0.16s; }
.table tbody tr:nth-child(6)  { animation-delay: 0.20s; }
.table tbody tr:nth-child(7)  { animation-delay: 0.24s; }
.table tbody tr:nth-child(8)  { animation-delay: 0.28s; }
.table tbody tr:nth-child(9)  { animation-delay: 0.32s; }
.table tbody tr:nth-child(n+10) { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
    .page-fade, .ripple, .slider-progress { display: none !important; }
    .btn.is-loading::before { animation: none; }
}
