/* ==========================================================================
   EVENTS & DEVELOPMENT ACTIVITIES - MODERN ACCESSIBLE DESIGN SYSTEM
   Chaltakhali R.G.B.C. Institution
   ========================================================================== */

/* 1. HERO HEADER BANNER */
.events-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #312e81 100%);
    color: #ffffff;
    padding: 3.5rem 0 2.75rem;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #f59e0b;
}

.events-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.events-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.hero-counter-pill {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 0.55rem 1.15rem;
    border-radius: 50rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 2. SECTION VIEW SWITCHER & SEGMENTED CONTROLS */
.hub-main-switcher {
    background: #e2e8f0;
    padding: 6px;
    border-radius: 50rem;
    display: inline-flex;
    gap: 6px;
    border: 1px solid #cbd5e1;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
    max-width: 100%;
    overflow-x: auto;
}

.hub-switcher-btn {
    border: none;
    background: transparent;
    padding: 0.65rem 1.5rem;
    border-radius: 50rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #475569;
    transition: all 0.22s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    white-space: nowrap;
}

.hub-switcher-btn:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.7);
}

.hub-switcher-btn.active {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.hub-switcher-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 50rem;
    background: #cbd5e1;
    color: #334155;
    transition: all 0.2s ease;
}

.hub-switcher-btn.active .hub-switcher-badge {
    background: #ffffff;
    color: #0f172a;
}

/* SUB-FILTER CHIPS */
.sub-filter-chip {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.95rem;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}

.sub-filter-chip:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.sub-filter-chip.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

.sub-filter-chip.active.chip-amber {
    background: #d97706;
    border-color: #d97706;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.25);
}

/* 3. MODERN CARDS & CONTAINERS */
.modern-project-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.modern-project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.14), 0 0 1px 1px rgba(37, 99, 235, 0.18);
    border-color: #cbd5e1;
}

/* 4. CALENDAR DATE TILE (UNIVERSALLY UNDERSTOOD) */
.event-date-tile {
    width: 62px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    text-align: center;
    flex-shrink: 0;
}

.event-date-tile .tile-month {
    background: #2563eb;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0;
    letter-spacing: 0.5px;
}

.event-date-tile.tile-upcoming .tile-month {
    background: #2563eb;
}

.event-date-tile.tile-ongoing .tile-month {
    background: #d97706;
}

.event-date-tile.tile-completed .tile-month {
    background: #059669;
}

.event-date-tile .tile-day {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    padding: 0.25rem 0 0.1rem;
}

.event-date-tile .tile-year {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
    padding-bottom: 0.25rem;
}

/* 5. BANNER VISUALS & GRADIENTS */
.project-banner {
    height: 180px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    color: #ffffff;
}

.banner-watermark {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 7.5rem;
    color: rgba(255, 255, 255, 0.12);
    transform: rotate(15deg);
    pointer-events: none;
}

.banner-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.45rem;
}

/* Category Specific Gradients */
.banner-infrastructure {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 60%, #38bdf8 100%);
}

.banner-solar {
    background: linear-gradient(135deg, #047857 0%, #059669 60%, #34d399 100%);
}

.banner-digital {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 60%, #818cf8 100%);
}

.banner-sanitation {
    background: linear-gradient(135deg, #0e7490 0%, #06b6d4 60%, #67e8f9 100%);
}

.banner-science {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 60%, #fb923c 100%);
}

.banner-sports {
    background: linear-gradient(135deg, #be123c 0%, #e11d48 60%, #fb7185 100%);
}

.banner-cultural {
    background: linear-gradient(135deg, #6b21a8 0%, #9333ea 60%, #c084fc 100%);
}

.banner-default {
    background: linear-gradient(135deg, #1e293b 0%, #334155 60%, #64748b 100%);
}

/* Floating Status Pills */
.floating-status-pill {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50rem;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.floating-status-pill.status-completed {
    background: rgba(16, 185, 129, 0.95);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.floating-status-pill.status-progress {
    background: rgba(245, 158, 11, 0.95);
    color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.floating-status-pill.status-planned {
    background: rgba(59, 130, 246, 0.95);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.floating-code-pill {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.32rem 0.75rem;
    border-radius: 50rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: monospace;
}

/* 6. CARD CONTENT & TYPOGRAPHY */
.project-content {
    padding: 1.45rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-category-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.project-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 0.65rem;
    transition: color 0.2s ease;
}

.modern-project-card:hover .project-title {
    color: #2563eb;
}

.project-desc {
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.55;
    margin-bottom: 1.15rem;
    flex-grow: 1;
}

/* 7. FINANCIAL & TIMELINE DASHBOARD WIDGET */
.project-details-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.95rem 1rem;
    margin-bottom: 1.15rem;
    font-size: 0.825rem;
}

.budget-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed #cbd5e1;
}

.budget-amount-badge {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    font-weight: 800;
    font-size: 0.94rem;
    padding: 0.28rem 0.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.timeline-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 0.28rem 0.65rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.funding-item {
    color: #475569;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.78rem;
}

.agency-item {
    color: #64748b;
    font-size: 0.76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 8. PROGRESS BAR WITH STATUS PERCENTAGE */
.project-progress-wrap {
    margin-top: 0.5rem;
}

.project-progress-bar {
    height: 7px;
    border-radius: 50rem;
    background: #e2e8f0;
    overflow: hidden;
}

.project-progress-fill {
    height: 100%;
    border-radius: 50rem;
    transition: width 0.6s ease;
}

.fill-completed {
    width: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
}

.fill-progress {
    width: 68%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.fill-planned {
    width: 25%;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

/* Pulse animation for active work */
@keyframes pulseGlow {
    0% { opacity: 0.6; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.15); }
    100% { opacity: 0.6; transform: scale(0.95); }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    display: inline-block;
    animation: pulseGlow 1.4s infinite;
}

/* 9. CARD FOOTER BUTTONS */
.card-detail-btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.card-detail-btn:hover {
    transform: translateY(-2px);
}

/* 10. DETAIL DOSSIER MODAL */
.dossier-modal-cover {
    height: 240px;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.dossier-modal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dossier-key-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.15rem;
}
