body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 960px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    color: #34495e;
    font-size: 2em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.event-list {
    list-style: none;
    padding: 0;
}

.event-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.event-icon {
    flex-shrink: 0; /* Prevents the icon from shrinking */
    width: 350px; /* Desired width of your icon */
    /*height: 60px; /* Desired height of your icon */
    display: flex; /* Use flex to center the image if needed */
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.event-icon img {
    max-width: 100%; /* Ensure image fits within its container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
}

.event-details {
    flex-grow: 1; /* Allows the event details to take up remaining space */
    /* No specific width needed, it will grow */
}

/* Ensure other styles within event-details still apply correctly */
.event-details h3 {
    color: #2980b9;
    margin-top: 0;
    font-size: 1.6em;
}

.event-details p {
    margin-bottom: 10px;
}

.event-item h3 {
    color: #2980b9;
    margin-top: 0;
    font-size: 1.6em;
}

.event-item p {
    margin-bottom: 10px;
}

.event-text {
    font-weight: bolder !important;
    font-size: 1.2em;
    text-decoration-line: blink;
}

.event-item p:last-child {
    margin-bottom: 0;
}

/* Styling for past non-recurring events */
.event-item.past-event {
    opacity: 0.6; /* Make it slightly faded */
}

.event-item.past-event .event-details h3,
.event-item.past-event .event-details p {
    text-decoration: line-through; /* Apply strikethrough to text elements */
}

.event-item .add-to-calendar-list li a.past-calendar-entry {
    pointer-events: none; /* Disables clicking on the link */
    cursor: default;     /* Changes cursor to default */
    text-decoration: line-through;
}

/* Ensure images are not struck through, but can be faded with opacity on parent */
.event-item .event-icon img,
.event-item .expando-content img {
    text-decoration: none; /* Remove any inherited text-decoration */
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.map-container {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden; /* Ensures the iframe corners are rounded */
}

.map-container iframe {
    display: block; /* Remove extra space below iframe */
    width: 100%;
}

.social-link {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.social-link a {
    display: inline-block; /* Essential for text-align: center on parent to work */
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.social-link a:hover {
    background-color: #2980b9;
}

/* Facebook Section Styling (no change) */
.facebook-section {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.facebook-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.facebook-link-container {
    display: inline-block;
}

.facebook-link {
    display: flex;
    align-items: center;
    background-color: #4267B2; /* Facebook blue */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.facebook-link:hover {
    background-color: #365899; /* Darker blue on hover */
    text-decoration: none;
}

/* Updated CSS for the SVG icon */
.facebook-icon-svg {
    width: 24px; /* Adjust size of the SVG icon */
    height: 24px;
    margin-right: 10px; /* Space between icon and text */
    /* If the fill attribute is not set directly on the SVG, you can set it here */
    /* fill: white; */
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Styles for Add to Calendar links */
.add-to-calendar {
    margin-top: 10px;
    font-size: 0.9em;
}

.add-to-calendar-list {
    list-style: none; /* Remove bullets */
    padding: 0;
    margin-top: 10px; /* Space above the list */
}

.add-to-calendar-list li {
    margin-bottom: 5px; /* Spacing between list items */
}

.add-to-calendar-list a {
    color: #27ae60; /* A nice green for calendar links */
    text-decoration: none;
    font-weight: bold;
    display: flex; /* Use flexbox to align icon and text */
    align-items: center; /* Vertically center icon and text */
    padding: 2px 0; /* Small padding for clickable area */
}

.add-to-calendar-list a:hover {
    text-decoration: underline;
}

.calendar-icon {
    font-size: 1.2em; /* Make icon slightly larger than text */
    margin-right: 8px; /* Space between icon and text */
    color: #3498db; /* A blue color for the icon */
    /* Using Unicode characters for icons */
    display: inline-block; /* Ensure proper spacing */
    width: 1em; /* Fixed width to prevent text shifting */
    text-align: center; /* Center the icon */
}

/* Default icon for single events (a simple calendar/date) */
.calendar-icon::before {
    content: "\1F4C5"; /* Unicode for 📅 (calendar emoji) */
}

/* Icon for recurring events (a repeating symbol) */
.recurring-event .calendar-icon::before {
    content: "\1F501"; /* Unicode for 🔄 (clockwise vertical arrows emoji) */
}

.expando-header {
    background-color: #f0f0f0; /* Light gray background */
    border: 1px solid #ddd;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    margin-top: 15px; /* Space above the expando */
    border-radius: 5px;
    display: flex; /* For aligning icon and text */
    align-items: center;
    user-select: none; /* Prevent text selection on double-click */
}

.expando-header:hover {
    background-color: #e0e0e0;
}

/* Style for the arrow icon */
.expando-icon {
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 10px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #555; /* Right-pointing arrow by default */
    transition: transform 0.7s ease-in-out;
}

/* Rotate arrow when header is 'expanded' (content is visible) */
.expando-header.expanded .expando-icon {
    transform: rotate(90deg); /* Down-pointing arrow */
}

/* Styles for Expando Content (the image container) */
.expando-content {
    max-height: 0; /* Starts collapsed */
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.7s ease-in-out, opacity 0.7s ease-in-out, visibility 0.7s ease-in-out;
    padding-top: 0; /* Ensure no initial padding pushes content down */
    padding-bottom: 0; /* Ensure no initial padding pushes content down */
    border: 1px solid #ddd; /* Match header border */
    border-top: none; /* No top border, visually connects to header */
    border-radius: 0 0 5px 5px; /* Rounded corners only at bottom */
    background-color: #f9f9f9; /* Slightly different background for content */
    /* Remove padding: 0 15px here and apply it within the :not(.collapsed) state */
}

/* When the 'collapsed' class is NOT present (i.e., it's expanded) */
.expando-content:not(.collapsed) {
    max-height: 1000px; /* A sufficiently large value to accommodate your image and text */
    opacity: 1;
    visibility: visible;
    padding-top: 15px; /* Add space above the image when visible */
    padding-bottom: 15px; /* Add space below the image when visible */
    padding-left: 15px; /* Apply horizontal padding here */
    padding-right: 15px; /* Apply horizontal padding here */
}

/* Image inside the expando content */
.expando-content img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensures image doesn't have extra space below it */
    margin: 0 auto; /* Center the image */
}

.leadership-hierarchy {
    display: grid; /* Use CSS Grid for a flexible layout */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
    gap: 20px; /* Space between leadership roles */
    margin-top: 20px;
}

.leadership-role {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.leadership-role h3 {
    color: #2980b9;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

.leadership-role ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leadership-role ul li {
    margin-bottom: 5px;
    font-size: 1em;
    color: #555;
}

.leadership-role ul li:last-child {
    margin-bottom: 0;
}
