/* ========================================================
   মূল লেআউট স্প্লিট (সদস্য গ্রিড বামে | সাইডবার ডানে)
   ======================================================== */
.layout-body-split {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 340px !important; /* সাইডবার কখনো ভাঙবে না */
    gap: 24px !important;
    align-items: flex-start !important; /* টপে ফিক্সড থাকবে */
    margin-top: 20px;
    margin-bottom: 35px;
    width: 100%;
}

/* বামপাশের সদস্য কলাম */
.members-column {
    min-width: 0 !important;
    width: 100% !important;
}

/* ডানপাশের সাইডবার কলাম */
.sidebar-column {
    width: 340px !important;
    min-width: 340px !important;
    max-width: 340px !important;
    position: sticky;
    top: 20px;
}

/* ========================================================
   সাইডবার উইজেট স্ট্যাক (Ultra-Modern Sidebar Design)
   ======================================================== */
.sidebar-enhanced-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
}

/* প্রতিটি উইজেট কার্ডের বেস স্টাইল */
.sidebar-widget-card {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05), 0 2px 6px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

/* টপ গ্রেডিয়েন্ট অ্যাকসেন্ট লাইন */
.sidebar-widget-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b0000, #dc2626, #f59e0b);
    z-index: 3;
    transition: height 0.3s ease;
}

.sidebar-widget-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(139, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);
    border-color: rgba(220, 38, 38, 0.3);
}

.sidebar-widget-card:hover::before {
    height: 5px;
}

/* উইজেট হেডার রিবন */
.widget-header-ribbon {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fafafa 0%, #fff6f6 100%);
    border-bottom: 2px solid rgba(139, 0, 0, 0.8);
}

.ribbon-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b0000, #b91c1c);
    color: #ffffff;
    font-size: 15px;
    box-shadow: 0 3px 8px rgba(139, 0, 0, 0.3);
    flex-shrink: 0;
}

.ribbon-text small {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #8b0000;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ribbon-text h3 {
    margin: 2px 0 0 0;
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

/* পালস অ্যানিমেশন */
.pulse-badge {
    animation: gentlePulse 2.5s infinite;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); box-shadow: 0 0 12px rgba(220, 38, 38, 0.4); }
}

/* ========================================================
   ১. নোটিশ বোর্ড লিস্ট ডিজাইন
   ======================================================== */
.widget-inner-body {
    padding: 10px 14px 14px;
}

.styled-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 6px;
    border-bottom: 1px dashed #e2e8f0;
    transition: all 0.25s ease;
    border-radius: 6px;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    background: #fff8f8;
    transform: translateX(3px);
}

.notice-pin-icon {
    font-size: 12px;
    margin-top: 3px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.notice-item:hover .notice-pin-icon {
    transform: rotate(15deg) scale(1.15);
}

.notice-item-content {
    flex: 1;
    min-width: 0;
}

.notice-title-link {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: #334155;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-word;
}

.notice-title-link:hover {
    color: #8b0000;
}

.notice-date-badge {
    display: inline-block;
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 3px;
}

/* সব নোটিশ দেখুন বাটন */
.notice-card-footer {
    text-align: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.all-notices-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #8b0000;
    background: rgba(139, 0, 0, 0.06);
    border: 1px solid rgba(139, 0, 0, 0.15);
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.all-notices-btn:hover {
    background: #8b0000;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.25);
    transform: translateY(-1px);
}

/* ========================================================
   ২. গুগল ম্যাপস ফ্রেম
   ======================================================== */
.map-embed-frame {
    position: relative;
    padding: 8px;
    background: #ffffff;
}

.map-embed-frame iframe {
    display: block;
    width: 100% !important;
    height: 200px !important;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* ========================================================
   ৩. ভিডিও প্লেয়ার ফ্রেম
   ======================================================== */
.video-ribbon .play-pulse-icon {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    animation: playGlow 2s infinite;
}

@keyframes playGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
    50% { box-shadow: 0 0 0 7px rgba(220, 38, 38, 0); }
}

.video-embed-frame {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000000;
    margin: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-embed-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* ========================================================
   রেসপন্সিভ (ট্যাবলেট ও মোবাইল হ্যান্ডলিং)
   ======================================================== */
@media (max-width: 992px) {
    .layout-body-split {
        grid-template-columns: 1fr !important;
    }
    .sidebar-column {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        position: static !important;
    }
}

/* ডার্ক মোড সাপোর্ট */
body.dark-mode .sidebar-widget-card {
    background: #18181b !important;
    border-color: #27272a !important;
}

body.dark-mode .widget-header-ribbon {
    background: linear-gradient(135deg, #1f1f23 0%, #27272a 100%) !important;
    border-color: #8b0000 !important;
}

body.dark-mode .ribbon-text h3 {
    color: #f1f5f9 !important;
}

body.dark-mode .notice-title-link {
    color: #cbd5e1 !important;
}

body.dark-mode .notice-title-link:hover {
    color: #fca5a5 !important;
}

body.dark-mode .notice-item {
    border-color: #27272a !important;
}

body.dark-mode .notice-item:hover {
    background: #27272a !important;
}

body.dark-mode .all-notices-btn {
    background: #27272a;
    color: #fca5a5;
    border-color: #3f3f46;
}