/*
 * Events Page – Timeline / event-cards with date badges (futuristic)
 * Bootstrap 5 | Responsive | Distinct design
 */

.events-page-wrap {
    --ev-accent: #8b5cf6;
    --ev-bg: #faf5ff;
    --ev-card-bg: #fff;
}

/* Hero */
.events-page-wrap .page-hero {
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #7c3aed 100%);
    padding: 2.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.events-page-wrap .page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0z' fill='none'/%3E%3Cpath d='M20 0v40M0 20h40' stroke='%23fff' stroke-opacity='0.06' stroke-width='.5'/%3E%3C/svg%3E");
    pointer-events: none;
}
.events-page-wrap .page-hero .container { position: relative; z-index: 1; }
.events-page-wrap .page-hero h1 {
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.events-page-wrap .page-hero h1 .hero-icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Content – timeline feel with event cards */
.events-page-wrap .content-section {
    background: var(--ev-bg);
    padding: 3rem 0;
}
.events-page-wrap .content-section:nth-child(even) { background: #fff; }

/* Event card – left date badge + content */
.ev-card {
    background: var(--ev-card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
    padding: 0;
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.12);
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0;
    transition: box-shadow 0.3s, transform 0.3s;
}
.ev-card:hover {
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
    transform: translateY(-2px);
}
@media (max-width: 767.98px) {
    .ev-card { grid-template-columns: 1fr; }
}
.ev-date-badge {
    background: linear-gradient(180deg, var(--ev-accent), #6d28d9);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.5rem;
    text-align: center;
    min-height: 100px;
}
.ev-date-badge .ev-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
}
.ev-date-badge .ev-day {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin: 0.15rem 0 0;
}
.ev-date-badge .ev-year {
    font-size: 0.7rem;
    opacity: 0.85;
    margin-top: 0.25rem;
}
.ev-card-body {
    padding: 1.5rem 1.75rem;
}
.ev-card-body .ev-title {
    color: #1e1b4b;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.ev-card-body p {
    color: #4c4b63;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 1rem;
}
.ev-card-body .ev-photos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}
@media (max-width: 575.98px) {
    .ev-card-body .ev-photos { grid-template-columns: repeat(2, 1fr); }
}
.ev-card-body .ev-photo-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6d28d9;
    font-size: 0.8rem;
    font-weight: 600;
    overflow: hidden;
}
.ev-card-body .ev-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ev-card-body .ev-photo-item i { font-size: 1.5rem; margin-bottom: 0.25rem; }

/* Section heading for events */
.events-page-wrap .section-heading {
    color: #1e1b4b;
    border-bottom-color: var(--ev-accent);
}

/* Gallery section – keep content-card but style */
.events-page-wrap #gallery.content-card {
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.12);
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.06);
}
.events-page-wrap .photo-grid img {
    border-radius: 12px;
    transition: transform 0.3s;
}
.events-page-wrap .photo-grid img:hover { transform: scale(1.02); }
.events-page-wrap .photo-grid .col-caption {
    font-size: 0.8rem;
    color: #6d28d9;
    font-weight: 600;
    margin-top: 0.35rem;
}
.events-page-wrap .photo-grid h6 { color: #4c1d95 !important; }

@media (max-width: 575.98px) {
    .events-page-wrap .page-hero h1 { font-size: 1.4rem; }
    .ev-card-body { padding: 1.25rem; }
}
