/* =========================================
   EVENTS SECTION - White with African Legal Pattern
   Inspired by Kente, Adinkra, and Legal Symbols
   ========================================= */

/* Events Section Container */
.events-section {
    background: #ffffff !important;
    position: relative;
    overflow: hidden;
}

/* African Legal Pattern Overlay */
.events-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        /* Scales of Justice - Legal Symbol */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 8 L35 20 L45 20 Z M40 20 L40 35 M30 35 L50 35 M25 35 L30 45 M55 35 L50 45 M27 45 L23 50 L32 50 Z M53 45 L48 50 L57 50 Z' stroke='rgba(128,0,32,0.06)' stroke-width='1' fill='none'/%3E%3C/svg%3E"),
        /* Adinkra Symbol - Wisdom Knot */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 15 Q45 15 45 30 Q45 45 30 45 Q15 45 15 30 Q15 15 30 15 M25 25 L35 35 M35 25 L25 35' stroke='rgba(255,215,0,0.05)' stroke-width='1' fill='none'/%3E%3C/svg%3E"),
        /* Kente-inspired Diamond Grid */
        repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(128, 0, 32, 0.015) 30px, rgba(128, 0, 32, 0.015) 32px),
        repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(255, 215, 0, 0.02) 30px, rgba(255, 215, 0, 0.02) 32px),
        /* Dot Pattern */
        radial-gradient(circle at 20px 20px, rgba(128, 0, 32, 0.03) 2px, transparent 2px);
    background-size: 80px 80px, 60px 60px, auto, auto, 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Decorative Corner Accents */
.events-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 100% 0%, rgba(128, 0, 32, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Ensure content is above pattern */
.events-section>div {
    position: relative;
    z-index: 1;
}

/* ==========================================
   SECTION HEADER
   ========================================== */

/* Section Tag */
.events-section span[style*="border-radius: 50px"] {
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.1), rgba(255, 215, 0, 0.08)) !important;
    border: 1px solid rgba(128, 0, 32, 0.15) !important;
    color: #800020 !important;
}

/* Section Title */
.events-section h2 {
    color: #1a1a1a;
    font-weight: 800;
}

.events-section h2 span {
    color: #800020;
}

/* Section Description */
.events-section>div>div>p {
    color: #555;
}

/* ==========================================
   EVENT CARDS - Premium Design
   ========================================== */

/* Event Grid */
.wka-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Event Card */
.event-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.04),
        0 10px 40px rgba(128, 0, 32, 0.06);
    border: 1px solid rgba(128, 0, 32, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #800020, #FFD700, #800020);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 25px 60px rgba(128, 0, 32, 0.1);
}

.event-card:hover::before {
    opacity: 1;
}

/* Event Type Badge */
.event-card span[style*="position: absolute"] {
    background: linear-gradient(135deg, #800020, #600018) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.3);
}

/* Event Image - TALLER HEIGHT, SHOW TOP */
.event-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.5s ease;
}

.event-card:hover img {
    transform: scale(1.05);
}

/* ==========================================
   CARD CONTENT AREA
   ========================================== */

/* Content Padding */
.event-card>div:last-child {
    padding: 1.75rem;
}

/* Meta Info (Date, Location) */
.event-card [style*="display: flex"][style*="gap: 1rem"] {
    color: #666;
    font-size: 0.85rem;
}

.event-card [style*="display: flex"][style*="gap: 1rem"] i {
    color: #800020;
}

/* Event Title */
.event-card h3 {
    color: #1a1a1a !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin-bottom: 0.75rem !important;
    transition: color 0.3s ease;
}

.event-card:hover h3 {
    color: #800020 !important;
}

/* Event Description */
.event-card p {
    color: #555 !important;
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
}

/* Read More Link */
.event-card a[style*="text-decoration: none"],
.event-card a:last-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #800020;
    font-weight: 600;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.event-card a[style*="text-decoration: none"]:hover,
.event-card a:last-child:hover {
    color: #FFD700;
    gap: 10px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .wka-events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .event-card img {
        height: 220px;
    }

    .event-card h3 {
        font-size: 1.15rem !important;
    }

    .event-card>div:last-child {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .event-card img {
        height: 200px;
    }

    .event-card h3 {
        font-size: 1.1rem !important;
    }
}