/* Events Page Styles - Updated Color Scheme & Reduced Spacing */

/* Events Hero Section */
.events-hero {
    background: linear-gradient(135deg, #000000 0%, #333333 50%, #BB0000 100%);
    color: #fffaf0; /* Vanilla white/cream */
    padding: 40px 0 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.events-hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,102,0,0.1) 0%, rgba(0,0,0,0.05) 100%);
}

.events-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.events-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fffaf0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.events-subtitle {
    font-size: 1.2rem;
    margin-bottom: 15px;
    opacity: 0.9;
    font-weight: 300;
}

.events-intro {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
    opacity: 0.9;
}

/* Main Events Section */
.main-events-section {
    padding: 40px 0;
    background-color: #fffaf0; /* Vanilla white background */
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--kenya-red);
    margin: var(--spacing-sm) auto;
    border-radius: 2px;
}

.section-description {
    font-size: 1rem;
    color: #333333;
    max-width: 600px;
    margin: 15px auto 0;
}

/* Events Grid for Multiple Events */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Event Card */
.event-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    border: 1px solid #e6e6e6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(to right, #BB0000, #FF3333);
    color: white;
    padding: 6px 15px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(187, 0, 0, 0.2);
}

.event-header {
    background: linear-gradient(to right, #000000, #333333);
    color: white;
    padding: 20px;
    text-align: center;
}

.event-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: white;
}

.event-subtitle {
    font-size: 1.1rem;
    margin-bottom: 8px;
    opacity: 0.95;
    font-weight: 400;
    color: white;
}

.event-tagline {
    font-size: 1rem;
    opacity: 0.85;
    font-style: italic;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #e6e6e6;
}

.event-detail {
    display: flex;
    align-items: flex-start;
}

.detail-icon {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.detail-content h4 {
    color: #000000;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.detail-content p {
    color: #333333;
    line-height: 1.4;
    font-size: 0.9rem;
}

.invitation-only {
    color: #BB0000;
    font-weight: 600;
}

.sector-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.sector-tag {
    background-color: #f0f0f0;
    color: #333333;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.event-description {
    padding: 20px;
    border-bottom: 1px solid #e6e6e6;
}

.event-description h3 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.event-description p {
    line-height: 1.5;
    color: #333333;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.event-highlights {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    border-left: 3px solid #000000;
}

.event-highlights h4 {
    color: #000000;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.event-highlights ul {
    list-style: none;
    padding-left: 0;
}

.event-highlights li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    color: #333333;
    font-size: 0.9rem;
}

.event-highlights li i {
    color: #BB0000;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.event-schedule {
    padding: 20px;
    border-bottom: 1px solid #e6e6e6;
}

.event-schedule h3 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.schedule-day {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
}

.schedule-day h4 {
    color: #000000;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e6e6e6;
    font-size: 1rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e6e6e6;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    font-weight: 600;
    color: #000000;
    background-color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.schedule-activity {
    flex: 1;
    margin-left: 12px;
    color: #333333;
    font-size: 0.9rem;
}

.event-footer {
    padding: 20px;
}

.invitation-notice {
    background-color: #fff8e1;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    border-left: 3px solid #BB0000;
}

.invitation-notice i {
    color: #BB0000;
    font-size: 1.2rem;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.invitation-notice p {
    color: #333333;
    line-height: 1.5;
    font-size: 0.9rem;
}

.event-cta {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    border-radius: 6px;
}

.event-cta p {
    margin-bottom: 15px;
    color: #333333;
    font-size: 1rem;
}

/* Focus Areas Dropdown Styles */
.focus-areas-dropdown {
    position: relative;
    max-width: 400px;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: white;
    border: 1px solid #cccccc;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-header:hover {
    border-color: #000000;
    background-color: #f9f9f9;
}

.dropdown-header.active {
    border-color: #BB0000;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.selected-tags-preview {
    color: #333333;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-arrow {
    color: #BB0000;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-header.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #cccccc;
    border-top: none;
    border-radius: 0 0 5px 5px;
    padding: 15px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-header.active + .dropdown-content {
    display: block;
}

.dropdown-content .sector-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.dropdown-content .sector-tag {
    background-color: #f0f0f0;
    color: #333333;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: default;
    border: 1px solid transparent;
}

.dropdown-content .sector-tag[data-selected="true"] {
    background-color: #e6f4ea;
    color: #006600;
    border-color: #006600;
}

.dropdown-info {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid #BB0000;
    font-size: 0.85rem;
    color: #333333;
}

.dropdown-info i {
    color: #BB0000;
    margin-right: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .focus-areas-dropdown {
        max-width: 100%;
    }
    
    .dropdown-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
        max-height: 70vh;
        border-radius: 8px;
        border: 1px solid #cccccc;
        z-index: 1000;
    }
    
    .dropdown-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .dropdown-overlay.active {
        display: block;
    }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(to right, #000000, #333333);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(to right, #333333, #555555);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: linear-gradient(to right, #BB0000, #FF3333);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(to right, #CC0000, #FF5555);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(187, 0, 0, 0.2);
}

.btn-accent {
    background: linear-gradient(to right, #006600, #008800);
    color: white;
}

.btn-accent:hover {
    background: linear-gradient(to right, #007700, #009900);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 0, 0.2);
}

/* Future Events Section */
.future-events {
    padding: 20px 0;
    background-color: #f9f9f9;
}

.coming-soon {
    text-align: center;
    padding: 30px 25px;
    background-color: white;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e6e6e6;
}

.coming-soon-icon {
    font-size: 3rem;
    color: #BB0000;
    margin-bottom: 15px;
}

.coming-soon h3 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.coming-soon p {
    color: #333333;
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.subscribe-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-top: 25px;
    text-align: center;
    border: 1px solid #e6e6e6;
}

.subscribe-section h4 {
    color: #000000;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.subscribe-section p {
    margin-bottom: 20px;
    color: #333333;
    font-size: 0.95rem;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px 0 0 5px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.subscribe-form input:focus {
    border-color: #000000;
}

.subscribe-form .btn {
    border-radius: 0 5px 5px 0;
    padding: 12px 25px;
}

/* Event Categories Filter (for when more events are added) */
.events-filter {
    margin-bottom: 25px;
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background: #f0f0f0;
    border: 1px solid #cccccc;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn.active, .filter-btn:hover {
    background: linear-gradient(to right, #000000, #333333);
    color: white;
    border-color: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .events-hero h1 {
        font-size: 2rem;
    }
    
    .events-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-header {
        padding: 15px;
    }
    
    .event-title {
        font-size: 1.3rem;
    }
    
    .event-subtitle {
        font-size: 1rem;
    }
    
    .event-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .event-description,
    .event-schedule,
    .event-footer {
        padding: 15px;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .schedule-activity {
        margin-left: 0;
        margin-top: 6px;
    }
    
    .invitation-notice {
        flex-direction: column;
    }
    
    .invitation-notice i {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .subscribe-form .btn {
        border-radius: 5px;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
}

/* Animation for event cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card {
    animation: fadeInUp 0.5s ease forwards;
}

/* Stagger animation for multiple cards */
.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(4) { animation-delay: 0.4s; }

