/* =========================================
   Event Accordion Styles 
   ========================================= */

#events-area {
	margin-top: 2rem;
}

#events-section {
	max-width: 900px;
	margin: 1.5rem auto 1rem auto; /* Reduced from 3rem top / 2rem bottom */
	padding: 1.5rem 2rem 0.5rem 2rem; /* Trimmed top and bottom inner padding */
	position: relative;
}

.hosted-event {
    /* Your existing slogan-color (#ca4f4e) at 5% opacity */
    background-color: rgba(202, 79, 78, 0.05); 

    border: 1px solid var(--main-color);
    border-radius: 4px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.0rem;
    padding: 1rem 1.5rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    
    /* NEW: Matches the contact form shadow perfectly */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); 
}

.hosted-event:hover {
    /* UPDATED: We elevate the shadow slightly more on hover so it still "lifts" */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
    border-color: var(--main-color-dark);
}

/* .hosted-event {
    /* Your existing slogan-color (#ca4f4e) at 10% opacity 
    background-color: rgba(202, 79, 78, 0.05); 

    border: 1px solid var(--main-color);
    border-radius: 4px;
	margin-left: auto;
	margin-right: auto;
    margin-bottom: 2.0rem;
    padding: 1rem 1.5rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
} */

/* .hosted-event:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
	border-color: var(--main-color-dark);
} */

.hosted-event summary {
	cursor: pointer;
	list-style: none; /* Hides the default browser arrow */
	outline: none;
}

/* Fallback to hide default arrow in webkit browsers */
.hosted-event summary::-webkit-details-marker {
	display: none;
}

.event-header {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.event-title {
	color: var(--main-color-dark);
	margin-bottom: 0;
	font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.event-datetime {
	font-weight: bold;
	color: var(--slogan-color);
	font-size: 1.05rem;
	margin-bottom: 0.5rem;
}

.event-brief {
	font-size: 1.1rem;
	margin: 0;
}

.read-more-cue {
	display: inline-block;
	margin-top: 0.75rem;
	font-weight: bold;
	color: var(--main-color);
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: color 0.2s ease;
}

.hosted-event summary:hover .read-more-cue {
	color: var(--main-color-dark);
}

/* Custom CSS-only arrow toggle */
.read-more-cue::after {
	content: " ▼";
	font-size: 0.8rem;
	vertical-align: middle;
}

.hosted-event[open] .read-more-cue::after {
	content: " ▲";
}

.event-details {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px dashed rgba(86, 184, 171, 0.5); /* subtle main-color line */
}

.event-details p {
	margin-bottom: 1rem;
	font-size: 1.1rem;
}

.event-details ul {
	margin-left: 2rem;
	margin-bottom: 1rem;
	font-size: 1.1rem;
}

/* Mobile Adjustments for Events */
@media (max-width: 700px) {
    #events-section {
        /* Removes the extra horizontal padding so the boxes can stretch */
        padding-left: 0;
        padding-right: 0;
    }

    .hosted-event {
        /* Slightly tightens the inner spacing of the box itself for small screens */
        padding: 1rem; 
    }
}