/* ==========================================================================
   Notice System - Slim List & Central Popup Modal
   ========================================================================== */

/* ১. মূল নোটিশ সেকশন কার্ড */
.notice-section-wrapper {
    margin-top: 1.2rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.notice-header-tag {
    font-size: 0.78rem;
    font-weight: 800;
    color: #c2410c;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    letter-spacing: 0.4px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.35rem;
}

.notices-slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ২. স্লিম নোটিশ আইটেম কার্ড */
.notice-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.55rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #f97316;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.notice-card-item:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    border-left-color: #ea580c;
}

.notice-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.notice-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1;
}

.notice-content-area {
    display: flex;
    flex-direction: column;
}

.notice-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}

/* ৩. কম্প্যাক্ট অ্যাকশন বাটন */
.notice-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: #164282;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0.32rem 0.6rem;
    border-radius: 5px;
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notice-link:hover {
    background-color: #164282;
    color: #ffffff;
}

/* ৪. সেন্ট্রাল নোটিশ পপআপ মডাল */
.notice-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.notice-modal-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    border-radius: 14px;
    border: 1px solid #fed7aa;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.notice-modal-overlay.active .notice-modal-dialog {
    transform: scale(1);
}

.notice-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fffaf5;
}

.notice-modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #164282;
    margin: 0;
    line-height: 1.4;
    padding-right: 0.8rem;
}

.notice-modal-close {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.notice-modal-close:hover {
    background: #fecaca;
    transform: scale(1.08);
}

.notice-modal-body {
    padding: 1.2rem 1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.notice-modal-text {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.65;
    white-space: pre-wrap;
    margin-bottom: 1.2rem;
}

/* ৫. হরিজন্টাল ইমেজ স্লাইডার (মডালের ভেতর) */
.notice-image-slider-container {
    width: 100%;
    overflow-x: auto;
    padding: 0.2rem 0 0.6rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.slider-track {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.slider-item {
    width: 85%;
    max-width: 320px;
    min-width: 220px;
    height: 190px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.slider-item img:hover {
    transform: scale(1.03);
}

/* ৬. ফুলস্ক্রিন লাইটবক্স পপআপ (ইমেজ প্রিভিউ) */
.image-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(6px);
    touch-action: pan-y;
}

.image-lightbox-overlay.active {
    display: flex;
}

.lightbox-content-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-content-wrap img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
    object-fit: contain;
    user-select: none;
}

.lightbox-counter {
    margin-top: 10px;
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 10px;
    border-radius: 20px;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 100000;
}

.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.lightbox-nav-btn.prev-btn {
    left: 14px;
}

.lightbox-nav-btn.next-btn {
    right: 14px;
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1.6rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(239, 68, 68, 0.8);
}

/* লুকানো নোটিশ আইটেম ও টগল বোতাম */
.hidden-notice-item {
    display: none !important;
}

.hidden-notice-item.visible {
    display: flex !important;
    animation: fadeInNotice 0.3s ease-out;
}

.toggle-notices-container {
    display: flex;
    justify-content: center;
    margin-top: 0.65rem;
    padding-top: 0.45rem;
    border-top: 1px dashed #e2e8f0;
}

.btn-toggle-notices {
    background: transparent;
    border: none;
    color: #164282;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-toggle-notices:hover {
    background: #eff6ff;
    color: #0c2850;
}

.toggle-icon {
    font-size: 0.85rem;
    line-height: 1;
}

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

/* ৭. মোবাইল স্ক্রিন অ্যাডাপ্টেশন */
@media (max-width: 600px) {
    .notice-card-item {
        padding: 0.5rem 0.65rem;
        gap: 0.6rem;
    }

    .notice-text {
        font-size: 0.82rem;
    }

    .notice-link {
        font-size: 0.72rem;
        padding: 0.26rem 0.5rem;
    }

    .notice-modal-dialog {
        max-height: 90vh;
    }

    .slider-item {
        width: 90%;
        height: 175px;
    }

    .lightbox-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        background: rgba(0, 0, 0, 0.45);
    }

    .lightbox-nav-btn.prev-btn {
        left: 8px;
    }

    .lightbox-nav-btn.next-btn {
        right: 8px;
    }
}
