/* ==========================================================================
   Activities Section, Manual Slider & Direct Lightbox Stylesheet
   ========================================================================== */

/* ১. মূল সেকশন ও হেডার */
.activities-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.activities-header {
    margin-bottom: 1.2rem;
    border-left: 4px solid var(--brand-blue, #164282);
    padding-left: 0.8rem;
}

.activities-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-blue, #164282);
    margin-bottom: 0.2rem;
}

.activities-subtitle {
    font-size: 0.85rem;
    color: #64748b;
}

/* ২. গ্রিড লেআউট */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    width: 100%;
}

/* ৩. অ্যাক্টিভিটি কার্ড */
.activity-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* ৪. কার্ড থাম্বনেইল কনটেইনার ও ম্যানুয়াল কন্ট্রোল */
.activity-thumb-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f1f5f9;
    overflow: hidden;
    flex-shrink: 0;
    user-select: none;
}

.activity-thumb-wrap img.card-slider-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.activity-thumb-wrap:hover img.card-slider-img {
    transform: scale(1.03);
}

/* জুম আইকন বাটন */
.activity-zoom-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    z-index: 3;
    transition: background 0.2s ease, transform 0.2s ease;
}

.activity-zoom-btn:hover {
    background: #ea580c;
    transform: scale(1.1);
}

/* ম্যানুয়াল নেভিগেশন বোতাম */
.card-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background 0.2s ease, opacity 0.2s ease;
    opacity: 0.75;
}

.activity-thumb-wrap:hover .card-nav-arrow {
    opacity: 1;
}

.card-nav-arrow:hover {
    background: #ea580c;
}

.card-prev-btn {
    left: 8px;
}

.card-next-btn {
    right: 8px;
}

.activity-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(22, 66, 130, 0.9);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.6rem;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.activity-img-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    z-index: 2;
}

/* ৫. কার্ড বডি ও টেক্সট */
.activity-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.activity-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f97316;
    margin-bottom: 0.3rem;
}

.activity-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.activity-snippet {
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 0.9rem;
    flex: 1;
}

.activity-btn {
    align-self: flex-start;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: var(--brand-blue, #164282);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.45rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.activity-btn:hover {
    background: #164282;
    color: #ffffff;
}

/* ৬. বিবরণ ও গ্যালারি মডাল */
.activity-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.activity-modal-overlay.active {
    display: flex;
}

.activity-modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    border-radius: 12px;
    padding: 1.5rem;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.activity-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    color: #475569;
}

.activity-modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.activity-modal-date {
    font-size: 0.78rem;
    color: #f97316;
    font-weight: 700;
}

.activity-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0.3rem 0 0.8rem;
    padding-right: 30px;
    line-height: 1.4;
}

.activity-modal-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #334155;
    white-space: pre-wrap;
    margin-bottom: 1.2rem;
}

.act-gallery-heading {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.6rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.8rem;
}

.act-gallery-track {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.act-gallery-item {
    min-width: 140px;
    height: 95px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid #cbd5e1;
}

.act-gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.2s ease;
}

.act-gallery-item:hover img {
    transform: scale(1.05);
}

/* ৭. ফুলস্ক্রিন লাইটবক্স */
.act-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 22, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    backdrop-filter: blur(6px);
    touch-action: pan-y;
}

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

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

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

.act-lightbox-counter {
    margin-top: 10px;
    color: #f1f5f9;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.55);
    padding: 3px 12px;
    border-radius: 20px;
}

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

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

.act-lightbox-btn.prev-btn {
    left: 16px;
}

.act-lightbox-btn.next-btn {
    right: 16px;
}

.act-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100002;
    transition: background 0.2s ease;
}

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

/* ৮. মোবাইল স্ক্রিন অ্যাডাপ্টেশন */
@media (max-width: 768px) {
    .activity-thumb-wrap {
        height: 190px;
    }

    .card-nav-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
        opacity: 0.9;
    }

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

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

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