/* Pulse Events - Main Stylesheet */

:root {
    /* Design Tokens */
    --ev-color-bg: #ffffff;
    --ev-color-text: #333333;
    --ev-color-muted: #666666;
    --ev-color-accent: var(--pulse-primary-color);
    --ev-color-border: #e1e1e1;
    --ev-color-hover: #f5f5f5;
    --ev-radius: 6px;
    --ev-gap: 1rem;
    --ev-border: 1px solid var(--ev-color-border);
    --ev-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --ev-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --ev-font-size-small: 0.875rem;
    --ev-font-size-base: 1rem;
    --ev-font-size-large: 1.125rem;
    --ev-font-size-xl: 1.25rem;
    
    /* Spacing */
    --ev-spacing-xs: 0.25rem;
    --ev-spacing-sm: 0.5rem;
    --ev-spacing-md: 1rem;
    --ev-spacing-lg: 1.5rem;
    --ev-spacing-xl: 2rem;
    
    /* Primary Color - Can be customized in settings */
    --pulse-primary-color: #3498db;
    --pulse-primary-hover: #2980b9;
    --pulse-primary-light: rgba(52, 152, 219, 0.1);
    --pulse-primary-border: rgba(52, 152, 219, 0.3);
    --pulse-text-on-primary: #ffffff;
}

/* Theme Presets */
.pulse-theme-clean {
    --ev-color-bg: #ffffff;
    --ev-color-text: #333333;
    --ev-color-muted: #666666;
    --ev-color-accent: var(--pulse-primary-color);
    --ev-color-border: #e1e1e1;
    --ev-color-hover: #f5f5f5;
}

.pulse-theme-ink {
    --ev-color-bg: #1a1a1a;
    --ev-color-text: #ffffff;
    --ev-color-muted: #cccccc;
    --ev-color-accent: #6c757d;
    --ev-color-border: #404040;
    --ev-color-hover: #2a2a2a;
}

.pulse-theme-line {
    --ev-color-bg: transparent;
    --ev-color-text: #000000;
    --ev-color-muted: #666666;
    --ev-color-accent: #000000;
    --ev-color-border: #000000;
    --ev-color-hover: rgba(0, 0, 0, 0.05);
}

/* Base Styles */
.pulse-events * {
    box-sizing: border-box;
}

.pulse-events {
    font-family: var(--ev-font-family);
    color: var(--ev-color-text);
    background: var(--ev-color-bg);
}

/* Event Cards */
.pulse-event-card {
    border: var(--ev-border);
    border-radius: var(--ev-radius);
    padding: var(--ev-spacing-md);
    margin-bottom: var(--ev-spacing-md);
    background: var(--ev-color-bg);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pulse-event-card:hover {
    box-shadow: var(--ev-shadow);
    transform: translateY(-1px);
}

.pulse-event-thumbnail {
    margin-bottom: var(--ev-spacing-md);
}

.pulse-event-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: var(--ev-radius);
}

/* Event card titles (not single event pages) */
.pulse-event-card .pulse-event-title {
    margin: 0 0 var(--ev-spacing-sm) 0;
    font-size: var(--ev-font-size-xl);
    font-weight: 600;
}

.pulse-event-card .pulse-event-title a {
    color: var(--ev-color-text);
    text-decoration: none;
}

.pulse-event-card .pulse-event-title a:hover {
    color: var(--ev-color-accent);
}

.pulse-event-datetime {
    margin-bottom: var(--ev-spacing-sm);
    font-size: var(--ev-font-size-base);
    color: var(--ev-color-muted);
}

.pulse-event-date {
    font-weight: 500;
    margin-right: var(--ev-spacing-sm);
}

.pulse-event-time {
    color: var(--ev-color-accent);
}

.pulse-event-location {
    margin-bottom: var(--ev-spacing-sm);
    font-size: var(--ev-font-size-small);
}

.pulse-event-type.pulse-online {
    color: var(--ev-color-accent);
    font-weight: 500;
}

.pulse-event-categories {
    margin-bottom: var(--ev-spacing-sm);
}

/* Ensure category text colors take precedence */
.pulse-event-category {
    color: #ffffff !important; /* Force white text by default */
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

/* Override theme link styling for category links */
.pulse-event-category a,
.pulse-event-category a:link,
.pulse-event-category a:visited,
.pulse-event-category a:hover,
.pulse-event-category a:active,
.pulse-event-category a:focus {
    color: inherit !important; /* Inherit the category text color */
    text-decoration: none !important; /* Remove underlines */
    border: none !important; /* Remove any borders */
    outline: none !important; /* Remove focus outlines */
}

.pulse-event-category:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Category text color based on background brightness */
.pulse-event-category[style*="background-color: #"] {
    /* Default to white text for darker/mid-dark category colors */
    color: #ffffff !important;
}

/* Extremely light category colors - use dark text for readability */
.pulse-event-category[style*="background-color: #ffffff"],
.pulse-event-category[style*="background-color: #fefefe"],
.pulse-event-category[style*="background-color: #fdfdfd"],
.pulse-event-category[style*="background-color: #fcfcfc"],
.pulse-event-category[style*="background-color: #fbfbfb"],
.pulse-event-category[style*="background-color: #fafafa"],
.pulse-event-category[style*="background-color: #f9f9f9"],
.pulse-event-category[style*="background-color: #f8f8f8"],
.pulse-event-category[style*="background-color: #f7f7f7"],
.pulse-event-category[style*="background-color: #f6f6f6"],
.pulse-event-category[style*="background-color: #f5f5f5"],
.pulse-event-category[style*="background-color: #f4f4f4"],
.pulse-event-category[style*="background-color: #f3f3f3"],
.pulse-event-category[style*="background-color: #f2f2f2"],
.pulse-event-category[style*="background-color: #f1f1f1"],
.pulse-event-category[style*="background-color: #f0f0f0"] {
    color: #2c3e50 !important; /* Dark text for extremely light backgrounds only */
}

/* Force link colors for extremely light backgrounds */
.pulse-event-category[style*="background-color: #ffffff"] a,
.pulse-event-category[style*="background-color: #fefefe"] a,
.pulse-event-category[style*="background-color: #fdfdfd"] a,
.pulse-event-category[style*="background-color: #fcfcfc"] a,
.pulse-event-category[style*="background-color: #fbfbfb"] a,
.pulse-event-category[style*="background-color: #fafafa"] a,
.pulse-event-category[style*="background-color: #f9f9f9"] a,
.pulse-event-category[style*="background-color: #f8f8f8"] a,
.pulse-event-category[style*="background-color: #f7f7f7"] a,
.pulse-event-category[style*="background-color: #f6f6f6"] a,
.pulse-event-category[style*="background-color: #f5f5f5"] a,
.pulse-event-category[style*="background-color: #f4f4f4"] a,
.pulse-event-category[style*="background-color: #f3f3f3"] a,
.pulse-event-category[style*="background-color: #f2f2f2"] a,
.pulse-event-category[style*="background-color: #f1f1f1"] a,
.pulse-event-category[style*="background-color: #f0f0f0"] a {
    color: #2c3e50 !important; /* Dark text for extremely light backgrounds only */
}

/* Comprehensive sage green text color override */
.pulse-event-category[style*="146, 162, 141"],
.pulse-event-category[style*="92a28d"] {
    color: #ffffff !important; /* Force white text for sage green */
}

/* Override inline color styles for sage green */
.pulse-event-category[style*="146, 162, 141"][style*="color: rgb(73, 80, 87)"],
.pulse-event-category[style*="146, 162, 141"][style*="color: rgb(73, 80, 87);"],
.pulse-event-category[style*="146, 162, 141"][style*="color: rgb(73, 80, 87) !important"],
.pulse-event-category[style*="146, 162, 141"][style*="color: rgb(73, 80, 87) !important;"] {
    color: #ffffff !important; /* Force white text even with inline color override */
}

/* Nuclear option: Force white text for any sage green category regardless of inline styles */
.pulse-event-category[style*="146, 162, 141"] {
    color: #ffffff !important; /* Override any inline color for sage green */
}

/* Specific mid-dark colors that should use white text for optimal readability */
.pulse-event-category[style*="background-color: rgb(146, 162, 141)"],
.pulse-event-category[style*="background-color: #92a28d"],
.pulse-event-category[style*="background-color: rgb(146, 162, 141) !important"],
.pulse-event-category[style*="background-color: #92a28d !important"] {
    color: #ffffff !important; /* White text for mid-dark sage green */
}

.pulse-event-category[style*="background-color: #2e7d32"],
.pulse-event-category[style*="background-color: #1565c0"],
.pulse-event-category[style*="background-color: #ef6c00"],
.pulse-event-category[style*="background-color: #7b1fa2"],
.pulse-event-category[style*="background-color: #f57f17"],
.pulse-event-category[style*="background-color: #00695c"],
.pulse-event-category[style*="background-color: #c2185b"],
.pulse-event-category[style*="background-color: #3f51b5"],
.pulse-event-category[style*="background-color: #00838f"],
.pulse-event-category[style*="background-color: #558b2f"] {
    color: #ffffff !important; /* White text for dark backgrounds */
}

/* Force link colors for dark backgrounds */
.pulse-event-category[style*="background-color: #2e7d32"] a,
.pulse-event-category[style*="background-color: #1565c0"] a,
.pulse-event-category[style*="background-color: #ef6c00"] a,
.pulse-event-category[style*="background-color: #7b1fa2"] a,
.pulse-event-category[style*="background-color: #f57f17"] a,
.pulse-event-category[style*="background-color: #00695c"] a,
.pulse-event-category[style*="background-color: #c2185b"] a,
.pulse-event-category[style*="background-color: #3f51b5"] a,
.pulse-event-category[style*="background-color: #00838f"] a,
.pulse-event-category[style*="background-color: #558b2f"] a {
    color: #ffffff !important; /* White text for dark backgrounds */
}

/* Additional light background colors that need dark text */
.pulse-event-category[style*="background-color: #f0f8ff"],
.pulse-event-category[style*="background-color: #f5f5dc"],
.pulse-event-category[style*="background-color: #faf0e6"],
.pulse-event-category[style*="background-color: #f0fff0"],
.pulse-event-category[style*="background-color: #fff0f5"],
.pulse-event-category[style*="background-color: #f8f8ff"],
.pulse-event-category[style*="background-color: #f5f5f5"],
.pulse-event-category[style*="background-color: #fafafa"] {
    color: #495057 !important; /* Dark grey text for light backgrounds */
}

/* Force link colors for additional light backgrounds */
.pulse-event-category[style*="background-color: #f0f8ff"] a,
.pulse-event-category[style*="background-color: #f5f5dc"] a,
.pulse-event-category[style*="background-color: #faf0e6"] a,
.pulse-event-category[style*="background-color: #f0fff0"] a,
.pulse-event-category[style*="background-color: #fff0f5"] a,
.pulse-event-category[style*="background-color: #f8f8ff"] a,
.pulse-event-category[style*="background-color: #f5f5f5"] a,
.pulse-event-category[style*="background-color: #fafafa"] a {
    color: #495057 !important; /* Dark grey text for light backgrounds */
}

/* Additional dark background colors that need white text */
.pulse-event-category[style*="background-color: #000000"],
.pulse-event-category[style*="background-color: #1a1a1a"],
.pulse-event-category[style*="background-color: #2d2d2d"],
.pulse-event-category[style*="background-color: #404040"],
.pulse-event-category[style*="background-color: #4a4a4a"],
.pulse-event-category[style*="background-color: #5a5a5a"],
.pulse-event-category[style*="background-color: #6a6a6a"] {
    color: #ffffff !important; /* White text for dark backgrounds */
}

/* Force link colors for additional dark backgrounds */
.pulse-event-category[style*="background-color: #000000"] a,
.pulse-event-category[style*="background-color: #1a1a1a"] a,
.pulse-event-category[style*="background-color: #2d2d2d"] a,
.pulse-event-category[style*="background-color: #404040"] a,
.pulse-event-category[style*="background-color: #4a4a4a"] a,
.pulse-event-category[style*="background-color: #5a5a5a"] a,
.pulse-event-category[style*="background-color: #6a6a6a"] a {
    color: #ffffff !important; /* White text for dark backgrounds */
}

/* Handle RGB color format (common in some themes) */
.pulse-event-category[style*="background-color: rgb(146, 162, 141)"] {
    color: #495057 !important; /* Dark grey text for light green background */
}

.pulse-event-category[style*="background-color: rgb(146, 162, 141)"] a,
.pulse-event-category[style*="background-color: rgb(146, 162, 141)"] a:link,
.pulse-event-category[style*="background-color: rgb(146, 162, 141)"] a:visited,
.pulse-event-category[style*="background-color: rgb(146, 162, 141)"] a:hover,
.pulse-event-category[style*="background-color: rgb(146, 162, 141)"] a:active,
.pulse-event-category[style*="background-color: rgb(146, 162, 141)"] a:focus {
    color: #495057 !important; /* Dark grey text for light green background */
}

/* Single Event Page - Date and Time Styling */
.single-pulse_event .pulse-date {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.5;
}

.single-pulse_event .pulse-time {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
    line-height: 1.4;
}

.single-pulse_event .pulse-all-day {
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Featured Image Alignment Styles */
.pulse-featured-image {
    overflow: hidden;
    position: relative;
}

.pulse-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Alignment variations - using more specific selectors to override existing styles */
.pulse-event-hero-image.pulse-featured-image.pulse-align-top img {
    object-position: center top !important;
}

.pulse-event-hero-image.pulse-featured-image.pulse-align-center img {
    object-position: center center !important;
}

.pulse-event-hero-image.pulse-featured-image.pulse-align-bottom img {
    object-position: center bottom !important;
}

/* Recurring event info styling */
.single-pulse_event .pulse-instance-info {
    margin-top: 8px;
    padding: 8px;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.single-pulse_event .pulse-instance-info:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.single-pulse_event .pulse-instance-info i {
    margin-right: 6px;
    opacity: 0.8;
    color: inherit !important; /* Inherit the text color (dynamic primary color) - use !important to override conflicting rule */
    display: inline-block; /* Ensure icon stays inline with text */
    vertical-align: middle; /* Align icon with text baseline */
}

.single-pulse_event .pulse-instance-info strong {
    font-weight: 600;
    display: inline-flex;
    margin-bottom: 2px;
    line-height: 1.4; /* Ensure proper line height for icon alignment */
}

.single-pulse_event .pulse-instance-info small {
    opacity: 0.9;
    font-size: 11px;
}

/* Single Event Page - Category styling with white text */
.single-pulse_event .pulse-event-category,
.single-pulse_event .pulse-event-category a,
.single-pulse_event .pulse-event-category a:link,
.single-pulse_event .pulse-event-category a:visited,
.single-pulse_event .pulse-event-category a:hover,
.single-pulse_event .pulse-event-category a:active,
.single-pulse_event .pulse-event-category a:focus {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Override any conflicting RGB color rules for single event page */
.single-pulse_event .pulse-event-category[style*="background-color: rgb("],
.single-pulse_event .pulse-event-category[style*="background-color: rgb("] a,
.single-pulse_event .pulse-event-category[style*="background-color: rgb("] a:link,
.single-pulse_event .pulse-event-category[style*="background-color: rgb("] a:visited,
.single-pulse_event .pulse-event-category[style*="background-color: rgb("] a:hover,
.single-pulse_event .pulse-event-category[style*="background-color: rgb("] a:active,
.single-pulse_event .pulse-event-category[style*="background-color: rgb("] a:focus {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Ensure white text for specific category colors on single event page */
.single-pulse_event .pulse-event-category[style*="background-color: #"],
.single-pulse_event .pulse-event-category[style*="background-color: #"] a,
.single-pulse_event .pulse-event-category[style*="background-color: #"] a:link,
.single-pulse_event .pulse-event-category[style*="background-color: #"] a:visited,
.single-pulse_event .pulse-event-category[style*="background-color: #"] a:hover,
.single-pulse_event .pulse-event-category[style*="background-color: #"] a:active,
.single-pulse_event .pulse-event-category[style*="background-color: #"] a:focus {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Generic RGB background rule - only for non-single event pages */
.pulse-event-category:not(.single-pulse_event .pulse-event-category)[style*="background-color: rgb("] {
    color: #495057 !important; /* Default to dark text for RGB backgrounds */
}

.pulse-event-category:not(.single-pulse_event .pulse-event-category)[style*="background-color: rgb("] a,
.pulse-event-category:not(.single-pulse_event .pulse-event-category)[style*="background-color: rgb("] a:link,
.pulse-event-category:not(.single-pulse_event .pulse-event-category)[style*="background-color: rgb("] a:visited,
.pulse-event-category:not(.single-pulse_event .pulse-event-category)[style*="background-color: rgb("] a:hover,
.pulse-event-category:not(.single-pulse_event .pulse-event-category)[style*="background-color: rgb("] a:active,
.pulse-event-category:not(.single-pulse_event .pulse-event-category)[style*="background-color: rgb("] a:focus {
    color: #495057 !important; /* Default to dark text for RGB backgrounds */
}

.pulse-event-excerpt {
    font-size: var(--ev-font-size-small);
    color: var(--ev-color-muted);
    line-height: 1.5;
}

/* Calendar Styles - Minimalist Design */
.pulse-calendar {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    /* Ensure calendar doesn't overflow container */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.pulse-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 16px;
}

/* Filter toggle controls */
.pulse-filter-controls {
    display: flex;
    align-items: center;
}

.pulse-filter-toggle-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    min-width: 40px;
    height: 36px;
}

.pulse-filter-toggle-btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
    color: #333;
}

.pulse-filter-toggle-btn.active {
    background: var(--pulse-primary-color, #007cba);
    border-color: var(--pulse-primary-color, #007cba);
    color: var(--pulse-text-on-primary, #ffffff);
}

.pulse-filter-toggle-btn.active:hover {
    background: var(--pulse-primary-hover, #005a87);
    border-color: var(--pulse-primary-hover, #005a87);
    color: var(--pulse-text-on-primary, #ffffff);
}

.pulse-filter-toggle-btn i {
    font-size: 14px;
}

/* Event Tooltip Styles */
.pulse-event-tooltip {
    position: absolute;
    background: #fff;
    color: #333;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    z-index: 10000;
    pointer-events: auto; /* Allow interaction with tooltip */
    cursor: default;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 280px;
    word-wrap: break-word;
    border: 1px solid #e0e0e0;
}

.pulse-event-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.pulse-event-tooltip .tooltip-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.pulse-event-tooltip .tooltip-title-extension {
    font-weight: 400;
    font-size: 0.9em;
    margin-bottom: 6px;
    color: #666;
    opacity: 0.9;
}

.pulse-event-tooltip .tooltip-detail {
    margin: 2px 0;
    color: #666;
    font-size: 11px;
}

.pulse-event-tooltip .tooltip-detail strong {
    color: #333;
    font-weight: 500;
}

.pulse-event-tooltip .tooltip-detail i {
    width: 12px;
    margin-right: 6px;
    color: #666;
    font-size: 10px;
    text-align: center;
}

/* Category Filter Bar */
.pulse-calendar-category-filter {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
}

.pulse-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pulse-filter-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.pulse-clear-filters {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pulse-clear-filters:hover {
    background: #5a6268;
}

.pulse-category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pulse-category-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    background-color: #ececec;
}

.pulse-category-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pulse-category-filter-btn.active {
    border-color: #333;
    font-weight: 600;
}

.pulse-category-filter-btn .pulse-category-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Filtered event styling */
.pulse-calendar-event.filtered-out {
    opacity: 0.3;
    filter: grayscale(100%);
}

.pulse-calendar-nav {
    display: flex;
    gap: 8px;
}

.pulse-calendar-nav button,
.pulse-view-btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    color: #495057;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pulse-calendar-nav button:hover,
.pulse-view-btn:hover {
    background: var(--pulse-primary-color, #6c757d);
    color: var(--pulse-text-on-primary, #ffffff);
    border-color: var(--pulse-primary-color, #6c757d);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pulse-view-btn.active {
    background: var(--pulse-primary-color, #6c757d);
    color: var(--pulse-text-on-primary, #ffffff);
    border-color: var(--pulse-primary-color, #6c757d);
}

.pulse-calendar-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    flex-grow: 1;
    color: #2c3e50;
}

.pulse-calendar-body {
    padding: 20px;
    /* Prevent overflow */
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.pulse-calendar-grid {
    display: grid;
    gap: 1px;
    background: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

/* Month View Grid Layout */
.pulse-calendar-grid[data-view="month"],
.pulse-calendar-grid:not([data-view]) {
    grid-template-columns: repeat(7, 1fr);
    min-height: 600px;
    /* Ensure equal column widths */
    width: 100%;
    table-layout: fixed;
}

/* Week View Grid Layout */
.pulse-calendar-grid[data-view="week"] {
    grid-template-columns: 80px repeat(7, 1fr);
    grid-template-rows: auto repeat(17, 60px);
    /* Ensure proper grid behavior */
    display: grid;
    gap: 0;
    /* Ensure header spans full width */
    grid-auto-flow: row;
    /* Ensure equal column widths */
    width: 100%;
}

/* Day View Grid Layout */
.pulse-calendar-grid[data-view="day"] {
    grid-template-columns: 1fr;
    grid-template-rows: auto repeat(17, 60px);
    /* Ensure proper grid behavior */
    display: grid;
    gap: 0;
}

.pulse-calendar-day {
    background: #ffffff;
    min-height: 100px;
    padding: 12px;
    position: relative;
    border: none;
    /* Ensure equal width and prevent overflow */
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.pulse-calendar-day:hover {
    background: #f8f9fa;
}

.pulse-calendar-day.today {
    background: var(--pulse-primary-light, #f8f9fa);
    border-left: 3px solid var(--pulse-primary-color, #6c757d);
}

.pulse-calendar-day-header {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #6c757d;
    text-align: center;
}

.pulse-calendar-day-number {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 8px;
}

.pulse-calendar-day.today .pulse-calendar-day-number {
    color: var(--pulse-primary-color, #6c757d);
    font-weight: 700;
}

.pulse-calendar-day.other-month {
    background: #f8f9fa;
    opacity: 0.5;
}

.pulse-calendar-day.other-month .pulse-calendar-day-number {
    color: #9ca3af;
    font-weight: 400;
}

.pulse-calendar-day.other-month:hover {
    background: #f1f3f5;
}



.pulse-calendar-event-time {
    font-size: 0.7rem;
    opacity: 0.9;
}

.pulse-calendar-loading {
    text-align: center;
    padding: var(--ev-spacing-xl);
    color: var(--ev-color-muted);
}

/* Layout Variations */
.pulse-layout-one .pulse-event-card {
    display: block;
}

.pulse-layout-two .pulse-event-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--ev-spacing-md);
}

.pulse-layout-two .pulse-event-thumbnail {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pulse-calendar-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pulse-calendar-nav,
    .pulse-calendar-view-switcher {
        justify-content: center;
    }
    
    .pulse-layout-two .pulse-event-card {
        grid-template-columns: 1fr;
    }
    
    .pulse-layout-two .pulse-event-thumbnail {
        margin-bottom: var(--ev-spacing-md);
    }
    
    .pulse-calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        font-size: var(--ev-font-size-small);
        /* Force equal widths on mobile */
        width: 100%;
        max-width: 100%;
    }
    
    .pulse-calendar-day {
        min-height: 80px;
        padding: var(--ev-spacing-xs);
        /* Ensure all days fit */
        max-width: calc(100% / 7);
        overflow: hidden;
    }
    
    /* Single Event Template */
    .pulse-event-container {
        grid-template-columns: 1fr;
        gap: var(--ev-spacing-lg);
    }
    
    .pulse-event-content {
        grid-template-columns: 1fr;
        gap: var(--ev-spacing-lg);
    }
    
    .pulse-event-meta-row {
        grid-template-columns: 1fr;
        gap: var(--ev-spacing-md);
    }
    
    .pulse-event-title {
        font-size: 2rem;
    }
    
    /* Archive Template */
    .pulse-archive-container {
        grid-template-columns: 1fr;
        gap: var(--ev-spacing-lg);
    }
    
    .pulse-archive-filters {
        margin-bottom: var(--ev-spacing-lg);
    }
    
    .pulse-filter-row {
        grid-template-columns: 1fr;
        gap: var(--ev-spacing-md);
    }
    
    .pulse-events-grid {
        grid-template-columns: 1fr;
        gap: var(--ev-spacing-md);
    }
    
    .pulse-event-navigation {
        grid-template-columns: 1fr;
        gap: var(--ev-spacing-md);
    }
    
    .pulse-nav-next {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .pulse-calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        /* Ensure all 7 days are always visible */
        width: 100%;
        max-width: 100%;
    }
    
    .pulse-calendar-day {
        min-height: 60px;
        font-size: 0.75rem;
        /* Force equal widths */
        max-width: calc(100% / 7);
        overflow: hidden;
        padding: 4px 2px;
    }
    
    .pulse-calendar-event {
        font-size: 0.75rem;
        padding: 2px 4px;
    }
    
    .pulse-calendar-event .pulse-calendar-event-title {
        font-size: 0.75rem;
        /* Clean text wrapping without hyphenation */
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: none;
        word-break: break-word;
    }
    
    /* Single Event Template */
    .pulse-single-event {
        padding: var(--ev-spacing-md);
    }
    
    /* Responsive styles for general event titles (not single event pages) */
    .pulse-event-card .pulse-event-title,
    .pulse-event-item .pulse-event-title,
    .pulse-event-timeline-item .pulse-event-title,
    .pulse-upcoming-widget .pulse-event-title {
        font-size: 1.75rem;
    }
    
    .pulse-event-meta-row {
        padding: var(--ev-spacing-md);
    }
    
    /* Archive Template */
    .pulse-events-archive {
        padding: var(--ev-spacing-md);
    }
    
    .pulse-archive-title {
        font-size: 2rem;
    }
    
    .pulse-filter-form {
        padding: var(--ev-spacing-md);
    }
    
    .pulse-event-item .pulse-event-content {
        padding: var(--ev-spacing-md);
    }
    
    .pulse-event-item .pulse-event-actions {
        flex-direction: column;
        gap: var(--ev-spacing-sm);
    }
}

/* Single Event Template */
.pulse-single-event {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 60px; /* Add bottom margin to prevent touching footer */
}

.pulse-single-event .pulse-event-hero {
    margin-bottom: 40px;
}

.pulse-single-event .pulse-event-content {
    margin-bottom: 40px;
}

.pulse-single-event .pulse-event-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.pulse-event-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--ev-spacing-xl);
}

.pulse-event-header {
    margin-bottom: var(--ev-spacing-xl);
}

.pulse-event-title-wrapper {
    margin-bottom: var(--ev-spacing-lg);
}

/* Single Event Page Title - High specificity */
.pulse-single-event .pulse-event-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin: 0 0 var(--ev-spacing-sm) 0 !important;
    color: var(--ev-color-text) !important;
}

.pulse-event-recurrence {
    font-size: var(--ev-font-size-base);
    color: var(--ev-color-accent);
    font-weight: 500;
}

.pulse-event-meta-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--ev-spacing-lg);
    padding: var(--ev-spacing-lg);
    background: var(--ev-color-hover);
    border-radius: var(--ev-radius);
}



.pulse-label {
    font-size: var(--ev-font-size-small);
    color: var(--ev-color-muted);
    font-weight: 500;
}

.pulse-value {
    font-size: var(--ev-font-size-base);
    color: var(--ev-color-text);
    font-weight: 600;
}

.pulse-event-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--ev-spacing-xl);
}

.pulse-event-main {
    display: flex;
    flex-direction: column;
    gap: var(--ev-spacing-lg);
}

.pulse-event-image img {
    width: 100%;
    height: auto;
    border-radius: var(--ev-radius);
}

.pulse-event-description {
    font-size: var(--ev-font-size-base);
    line-height: 1.7;
    color: var(--ev-color-text);
}

.pulse-event-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--ev-spacing-lg);
}

.pulse-event-sidebar h3 {
    font-size: var(--ev-font-size-large);
    font-weight: 600;
    margin: 0 0 var(--ev-spacing-md) 0;
    color: var(--ev-color-text);
    border-bottom: 2px solid var(--ev-color-accent);
    padding-bottom: var(--ev-spacing-sm);
}



.pulse-location-name {
    margin-bottom: var(--ev-spacing-sm);
}

.pulse-location-address {
    font-size: var(--ev-font-size-small);
    color: var(--ev-color-muted);
    line-height: 1.5;
    margin-bottom: var(--ev-spacing-md);
}

.pulse-organiser {
    padding: var(--ev-spacing-sm) 0;
    border-bottom: 1px solid var(--ev-color-border);
}

.pulse-organiser:last-child {
    border-bottom: none;
}

.pulse-organiser-name {
    font-weight: 600;
    margin-bottom: var(--ev-spacing-xs);
}

.pulse-organiser-email,
.pulse-organiser-url {
    font-size: var(--ev-font-size-small);
}

.pulse-organiser-email a,
.pulse-organiser-url a {
    color: var(--ev-color-accent);
    text-decoration: none;
}

.pulse-organiser-email a:hover,
.pulse-organiser-url a:hover {
    text-decoration: underline;
}

.pulse-category-list,
.pulse-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ev-spacing-xs);
}

.pulse-event-tag {
    display: inline-block;
    padding: var(--ev-spacing-xs) var(--ev-spacing-sm);
    background: var(--ev-color-border);
    color: var(--ev-color-text);
    text-decoration: none;
    border-radius: 20px;
    font-size: var(--ev-font-size-small);
    transition: all 0.2s ease;
}

.pulse-event-tag:hover {
    background: var(--ev-color-accent);
    color: white;
}

.pulse-calendar-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--ev-spacing-sm);
}

.pulse-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ev-spacing-xs);
    padding: var(--ev-spacing-sm) var(--ev-spacing-md);
    border: var(--ev-border);
    border-radius: var(--ev-radius);
    text-decoration: none;
    font-size: var(--ev-font-size-small);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.pulse-button-primary {
    background: var(--pulse-primary-color);
    color: var(--pulse-text-on-primary, #ffffff);
    border-color: var(--pulse-primary-color);
}

.pulse-button-primary:hover {
    background: var(--pulse-primary-hover);
    color: var(--pulse-text-on-primary, #ffffff);
}

.pulse-button-secondary {
    background: var(--ev-color-bg);
    color: var(--ev-color-text);
    border-color: var(--ev-color-border);
}

.pulse-button-secondary:hover {
    background: var(--ev-color-hover);
    border-color: var(--pulse-primary-color);
}

.pulse-icon {
    font-size: 1.2em;
}

.pulse-custom-field {
    display: flex;
    justify-content: space-between;
    padding: var(--ev-spacing-sm) 0;
    border-bottom: 1px solid var(--ev-color-border);
}

.pulse-custom-field:last-child {
    border-bottom: none;
}

.pulse-custom-field-label {
    font-weight: 500;
    color: var(--ev-color-muted);
}

.pulse-custom-field-value {
    color: var(--ev-color-text);
}

.pulse-event-footer {
    margin-top: var(--ev-spacing-xl);
    padding-top: var(--ev-spacing-lg);
    border-top: var(--ev-border);
}

.pulse-event-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ev-spacing-lg);
}

.pulse-nav-previous,
.pulse-nav-next {
    text-align: center;
}

.pulse-nav-next {
    text-align: right;
}

.pulse-nav-previous a,
.pulse-nav-next a {
    display: block;
    padding: var(--ev-spacing-md);
    background: var(--ev-color-hover);
    border-radius: var(--ev-radius);
    text-decoration: none;
    color: var(--ev-color-text);
    transition: all 0.2s ease;
}

.pulse-nav-previous a:hover,
.pulse-nav-next a:hover {
    background: var(--pulse-primary-color);
    color: white;
}

.pulse-nav-label {
    display: block;
    font-size: var(--ev-font-size-small);
    color: var(--ev-color-muted);
    margin-bottom: var(--ev-spacing-xs);
}

.pulse-nav-title {
    font-weight: 600;
}

/* Archive Template */
.pulse-events-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--ev-spacing-lg);
}

.pulse-archive-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--ev-spacing-xl);
}

.pulse-archive-header {
    grid-column: 1 / -1;
    margin-bottom: var(--ev-spacing-xl);
    text-align: center;
}

.pulse-archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 var(--ev-spacing-md) 0;
    color: var(--ev-color-text);
}

.pulse-archive-description {
    font-size: var(--ev-font-size-large);
    color: var(--ev-color-muted);
    max-width: 600px;
    margin: 0 auto;
}

.pulse-archive-filters {
    grid-column: 1 / -1;
    margin-bottom: var(--ev-spacing-xl);
}

.pulse-filter-form {
    background: var(--ev-color-hover);
    padding: var(--ev-spacing-lg);
    border-radius: var(--ev-radius);
}

.pulse-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--ev-spacing-md);
    align-items: end;
}

.pulse-filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--ev-spacing-xs);
}

.pulse-filter-group label {
    font-weight: 500;
    color: var(--ev-color-text);
}

.pulse-filter-group select {
    padding: var(--ev-spacing-sm);
    border: var(--ev-border);
    border-radius: var(--ev-radius);
    background: var(--ev-color-bg);
    color: var(--ev-color-text);
}

.pulse-events-list {
    grid-column: 1;
}

.pulse-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--ev-spacing-lg);
    margin-bottom: var(--ev-spacing-xl);
}





.pulse-pagination {
    text-align: center;
    margin-top: var(--ev-spacing-xl);
}

.pulse-pagination-list {
    display: flex;
    justify-content: center;
    gap: var(--ev-spacing-sm);
    list-style: none;
    padding: 0;
    margin: 0;
}

.pulse-pagination-list li {
    margin: 0;
}

.pulse-pagination-list a,
.pulse-pagination-list span {
    display: block;
    padding: var(--ev-spacing-sm) var(--ev-spacing-md);
    border: var(--ev-border);
    border-radius: var(--ev-radius);
    text-decoration: none;
    color: var(--ev-color-text);
    transition: all 0.2s ease;
}

.pulse-pagination-list a:hover {
    background: var(--ev-color-accent);
    color: white;
    border-color: var(--ev-color-accent);
}

.pulse-pagination-list .current {
    background: var(--ev-color-accent);
    color: white;
    border-color: var(--ev-color-accent);
}

.pulse-archive-sidebar {
    grid-column: 2;
}

.pulse-widget {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: none;
}

.pulse-widget h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.pulse-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pulse-categories-list li {
    margin-bottom: var(--ev-spacing-sm);
}

.pulse-category-link {
    display: flex;
    align-items: center;
    gap: var(--ev-spacing-sm);
    text-decoration: none;
    color: var(--ev-color-text);
    padding: var(--ev-spacing-xs);
    border-radius: var(--ev-radius);
    transition: all 0.2s ease;
}

.pulse-category-link:hover {
    background: var(--ev-color-bg);
    color: var(--ev-color-accent);
}

.pulse-category-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pulse-category-count {
    margin-left: auto;
    font-size: var(--ev-font-size-small);
    color: var(--ev-color-muted);
}

/* Utility Classes */
.pulse-no-events {
    text-align: center;
    padding: var(--ev-spacing-xl);
    color: var(--ev-color-muted);
    font-style: italic;
}

.pulse-no-events-icon {
    font-size: 3rem;
    margin-bottom: var(--ev-spacing-md);
}

.pulse-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



/* Mini Calendar Widget */
.pulse-mini-calendar {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.pulse-mini-calendar .pulse-calendar-header {
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.pulse-mini-calendar .pulse-calendar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.pulse-mini-calendar .pulse-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
}

.pulse-mini-calendar .pulse-calendar-day {
    background: #ffffff;
    min-height: 40px;
    padding: 8px 4px;
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
    border: none;
}

.pulse-mini-calendar .pulse-calendar-day.today {
    background: var(--pulse-primary-color, #6c757d);
    color: #ffffff;
    font-weight: 700;
}

.pulse-mini-calendar .pulse-calendar-day.has-events {
    position: relative;
}

.pulse-mini-calendar .pulse-event-indicator {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--pulse-primary-color, #6c757d);
    border-radius: 50%;
}

.pulse-mini-calendar .pulse-calendar-more {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f3f4;
}

.pulse-mini-calendar .pulse-calendar-more a {
    color: var(--pulse-primary-color, #6c757d);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.pulse-mini-calendar .pulse-calendar-more a:hover {
    color: var(--pulse-primary-hover, #495057);
    text-decoration: underline;
}

/* Modern Minimalist Event Timeline Styles */
.pulse-modern-style {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Removed background - now transparent */
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    text-align: left; /* Left align the content */
}

/* Minimal Style - No backgrounds, shadows, or borders */
.pulse-minimal-style {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: transparent;
    border: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    box-shadow: none;
}

.pulse-upcoming-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 24px 0;
    text-align: left; /* Left align the title */
    letter-spacing: -0.5px;
}

.pulse-events-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pulse-event-timeline-item {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

/* Minimal style items - no background, shadows, or borders */
.pulse-minimal-item {
    background: transparent;
    border-radius: 0;
    padding: 16px 0;
    box-shadow: none;
    border: none;
}

.pulse-event-timeline-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Minimal items - no hover effects */
.pulse-minimal-item:hover {
    transform: none;
    box-shadow: none;
}

.pulse-event-date-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    margin-right: 20px;
}

.pulse-event-month {
    font-size: 0.75rem;
    font-weight: 500;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.pulse-event-day {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.pulse-event-separator {
    width: 1px;
    background: #e1e8ed;
    margin: 0 20px;
    align-self: stretch;
}

/* Minimal style separator - more subtle */
.pulse-minimal-item .pulse-event-separator {
    background: #f0f0f0;
    opacity: 0.6;
}

.pulse-event-content {
    flex: 1;
    min-width: 0;
}

.pulse-event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

/* Title wrapper groups title and extension together */
.pulse-event-header .pulse-event-title-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pulse-event-time {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #7f8c8d;
    font-weight: 500;
}

.pulse-time-icon {
    font-size: 1rem;
    margin-right: 8px;
    opacity: 0.7;
}

/* Event list item titles (not single event pages) */
.pulse-event-timeline-item .pulse-event-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.pulse-event-location {
    font-size: 0.875rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 4px;
}

.pulse-event-instructor {
    font-size: 0.875rem;
    color: #7f8c8d;
    font-style: italic;
}

.pulse-view-all-container {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

/* Minimal style - no border */
.pulse-minimal-style .pulse-view-all-container {
    border-top: none;
    padding-top: 16px;
}

.pulse-view-all-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--pulse-primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-view-all-link:hover {
    background: var(--pulse-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--pulse-primary-border);
    color: #ffffff;
}

.pulse-no-events {
    text-align: center;
    padding: 40px 20px;
}

.pulse-no-events p {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
}

/* Minimal style - no padding */
.pulse-minimal-style .pulse-no-events {
    padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pulse-modern-style {
        padding: 16px;
        margin: 16px 0;
    }
    
    .pulse-event-timeline-item {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pulse-event-date-column {
        flex-direction: row;
        margin-right: 0;
        margin-bottom: 16px;
        min-width: auto;
    }
    
    .pulse-event-month {
        margin-bottom: 0;
        margin-right: 12px;
    }
    
    .pulse-event-separator {
        display: none;
    }
    
    .pulse-event-title {
        font-size: 1rem;
    }
    
    .pulse-view-all-link {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .pulse-upcoming-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }
    
    .pulse-event-timeline-item {
        padding: 12px;
    }
    
    .pulse-event-day {
        font-size: 1.5rem;
    }
    
    .pulse-event-title {
        font-size: 0.9rem;
    }
}

/* Modern Pagination Styles */
.pulse-pagination {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.pulse-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #ffffff;
    color: var(--pulse-primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 1px solid #e1e8ed;
}

.pulse-pagination .page-numbers:hover {
    background: var(--pulse-primary-color);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--pulse-primary-border);
}

.pulse-pagination .current {
    background: var(--pulse-primary-color);
    color: #ffffff;
    border-color: var(--pulse-primary-color);
}

.pulse-pagination .prev,
.pulse-pagination .next {
    font-weight: 600;
}

/* Enhanced hover effects for timeline items */
.pulse-event-timeline-item {
    cursor: pointer;
}

.pulse-event-timeline-item:hover .pulse-event-title {
    color: var(--pulse-primary-color);
}

.pulse-event-timeline-item:hover .pulse-event-day {
    color: var(--pulse-primary-color);
}

/* Category color integration */
.pulse-event-timeline-item[data-category-color] {
    border-left: 4px solid var(--category-color);
}

/* Loading states */
.pulse-events-timeline.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pulse-events-timeline.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e1e8ed;
    border-top: 2px solid var(--pulse-primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Minimal Calendar Widget Styles */
.pulse-mini-calendar.pulse-minimal-style {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.pulse-mini-calendar.pulse-minimal-style .pulse-calendar-table {
    background: transparent;
    border: none;
}

.pulse-mini-calendar.pulse-minimal-style .pulse-calendar-table th,
.pulse-mini-calendar.pulse-minimal-style .pulse-calendar-table td {
    background: transparent;
    border: none;
    padding: 4px 2px;
}

.pulse-mini-calendar.pulse-minimal-style .pulse-calendar-nav {
    background: transparent;
    border: none;
    margin-bottom: 16px;
}

.pulse-mini-calendar.pulse-minimal-style .pulse-calendar-nav button {
    background: transparent;
    border: none;
    color: var(--pulse-primary-color);
    font-size: 1.2rem;
    padding: 4px 8px;
    cursor: pointer;
}

.pulse-mini-calendar.pulse-minimal-style .pulse-calendar-nav button:hover {
    background: transparent;
    color: var(--pulse-primary-hover);
}

.pulse-mini-calendar.pulse-minimal-style .pulse-current-month {
    font-weight: 600;
    color: #2c3e50;
}

.pulse-mini-calendar.pulse-minimal-style .pulse-day {
    background: transparent;
    border: none;
}

.pulse-mini-calendar.pulse-minimal-style .pulse-today {
    background: var(--pulse-primary-color);
    color: #ffffff;
    border-radius: 50%;
}

.pulse-mini-calendar.pulse-minimal-style .pulse-has-events {
    position: relative;
}

.pulse-mini-calendar.pulse-minimal-style .pulse-event-indicator {
    color: #6c757d;
    font-weight: bold;
}

.pulse-mini-calendar.pulse-minimal-style .pulse-calendar-more {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.pulse-mini-calendar.pulse-minimal-style .pulse-calendar-more a {
    color: var(--pulse-primary-color);
    text-decoration: none;
    font-weight: 500;
}

.pulse-mini-calendar.pulse-minimal-style .pulse-calendar-more a:hover {
    color: var(--pulse-primary-hover);
    text-decoration: underline;
}

/* Calendar Error and Loading States */
.pulse-calendar-error {
    background: #f8f9fa;
    color: #6c757d;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.pulse-calendar-loading {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-style: italic;
}

.pulse-calendar-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e1e8ed;
    border-top: 2px solid var(--pulse-primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}



/* Calendar Fallback Events */
.pulse-calendar-fallback {
    margin-top: var(--ev-spacing-lg);
    padding: var(--ev-spacing-md);
    background: var(--ev-color-hover);
    border-radius: var(--ev-radius);
    border: var(--ev-border);
}

.pulse-calendar-fallback h4 {
    margin: 0 0 var(--ev-spacing-sm) 0;
    color: var(--ev-color-text);
    font-size: var(--ev-font-size-base);
    font-weight: 600;
}

.pulse-fallback-description {
    margin: 0 0 var(--ev-spacing-md) 0;
    color: var(--ev-color-muted);
    font-size: var(--ev-font-size-small);
    line-height: 1.4;
}

.pulse-fallback-events {
    display: flex;
    flex-direction: column;
    gap: var(--ev-spacing-sm);
}

.pulse-fallback-event {
    padding: var(--ev-spacing-sm);
    background: var(--ev-color-bg);
    border-radius: var(--ev-radius);
    border: 1px solid var(--ev-color-border);
    transition: all 0.2s ease;
}

.pulse-fallback-event:hover {
    border-color: var(--pulse-primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pulse-fallback-event-title {
    margin-bottom: var(--ev-spacing-xs);
}

.pulse-fallback-event-title a {
    color: var(--ev-color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--ev-font-size-base);
    transition: color 0.2s ease;
}

.pulse-fallback-event-title a:hover {
    color: var(--pulse-primary-color);
}

.pulse-fallback-event-details {
    display: flex;
    align-items: center;
    gap: var(--ev-spacing-sm);
}

.pulse-fallback-date {
    color: var(--ev-color-muted);
    font-size: var(--ev-font-size-small);
}

.pulse-fallback-date strong {
    color: var(--ev-color-text);
    font-weight: 500;
}

/* Day and Week View Styles */
.pulse-day-header,
.pulse-week-header,
.pulse-month-header {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e1e8ed;
    text-align: center;
    /* Ensure header spans full width */
    width: 100%;
    box-sizing: border-box;
}

.pulse-day-title,
.pulse-week-title,
.pulse-month-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

/* Day View Styles */
.pulse-day-time-slot {
    display: flex;
    min-height: 60px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    background: #ffffff;
}

.pulse-day-time-slot:last-child {
    border-bottom: none;
}

.pulse-time-label {
    width: 80px;
    padding: 10px;
    background: #f8f9fa;
    border-right: 1px solid #e1e8ed;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pulse-time-content {
    flex: 1;
    padding: 10px;
    position: relative;
    min-height: 20px;
    /* Ensure content is visible and can contain events */
    display: block;
    overflow: visible;
}

/* Week View Styles */
.pulse-week-time-header,
.pulse-week-day-header {
    height: 60px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.875rem;
    text-align: center;
    padding: 5px;
}

.pulse-week-day-header {
    flex-direction: column;
}

.pulse-week-day-header.today {
    background: var(--pulse-primary-color);
    color: #ffffff;
}

.pulse-week-day-header .day-number {
    font-size: 1.1rem;
    margin-top: 2px;
}

.pulse-week-time-slot {
    min-height: 60px;
    border-bottom: 1px solid #f0f0f0;
    padding: 5px;
    position: relative;
    font-size: 0.75rem;
    color: #6c757d;
    background: #ffffff;
}

.pulse-week-time-slot:last-child {
    border-bottom: none;
}

/* Event Display in Time Slots */
.pulse-day-time-slot .pulse-calendar-event,
.pulse-week-time-slot .pulse-calendar-event {
    background: var(--pulse-primary-color);
    color: var(--pulse-text-on-primary, #ffffff);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    line-height: 1.2;
    margin: 2px 0;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-weight: 500;
    /* Duration spanning - will be set dynamically via JavaScript */
    position: relative;
    z-index: 10;
    /* Ensure proper grid behavior for time-based views */
    display: block;
    text-align: left;
}

.pulse-day-time-slot .pulse-calendar-event .pulse-calendar-event-title,
.pulse-week-time-slot .pulse-calendar-event .pulse-calendar-event-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--pulse-text-on-primary, #ffffff);
    margin: 0;
    text-align: left;
    /* Clean text wrapping without hyphenation */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    word-break: break-word;
}

.pulse-day-time-slot .pulse-calendar-event .pulse-calendar-event-title-extension,
.pulse-week-time-slot .pulse-calendar-event .pulse-calendar-event-title-extension {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--pulse-text-on-primary, #ffffff);
    margin: 0;
    text-align: left;
    opacity: 0.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    word-break: break-word;
}

.pulse-day-time-slot .pulse-calendar-event:hover,
.pulse-week-time-slot .pulse-calendar-event:hover {
    background: var(--pulse-primary-hover);
}

/* Responsive Design for Day/Week Views */
@media (max-width: 768px) {
    .pulse-week-time-column {
        min-width: 60px;
    }
    
    .pulse-time-label {
        width: 60px;
        font-size: 0.75rem;
    }
    
    .pulse-week-day-header {
        font-size: 0.8rem;
        padding: 3px;
    }
    
    .pulse-week-day-header .day-number {
        font-size: 1rem;
    }
    
    .pulse-day-title,
    .pulse-week-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .pulse-day-time-slot,
    .pulse-week-time-slot {
        min-height: 50px;
    }
    
    .pulse-week-time-header,
    .pulse-week-day-header {
        height: 50px;
    }
    
    .pulse-time-label {
        width: 50px;
        padding: 8px 5px;
        font-size: 0.7rem;
    }
}

/* Modern Single Event Template Styles */
.pulse-single-event-modern {
    background: #ffffff;
}

/* Hero Section */
.pulse-event-hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 0;
}

.pulse-event-hero-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pulse-event-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    min-width: 100%;
    min-height: 100%;
}

.pulse-event-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.pulse-event-hero-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
}

.pulse-event-hero-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #adb5bd;
}

.pulse-placeholder-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #6c757d;
}

/* Main Content Container */
.pulse-event-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pulse-event-content-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

/* Left Column: Event Details Sidebar */
.pulse-event-sidebar {
    order: 1;
}

.pulse-event-details-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

.pulse-details-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--pulse-primary-color);
}

/* Detail Items */
.pulse-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.pulse-detail-item:hover {
    background: #ffffff;
    border-color: var(--pulse-primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.pulse-detail-icon {
    background: var(--pulse-primary-light);
    color: var(--pulse-primary-color);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.pulse-detail-content {
    flex: 1;
    min-width: 0;
}

.pulse-detail-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.pulse-detail-value {
    font-size: 1rem;
    color: #2c3e50;
    line-height: 1.5;
}

.pulse-time {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pulse-primary-color);
    line-height: 1.5;
}

.pulse-all-day {
    background: var(--pulse-primary-color);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 8px;
}

/* Event Type Badge */
.pulse-event-type-badge {
    background: #f8f9fa;
    color: #6c757d;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    text-transform: none;
    letter-spacing: 0.3px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.pulse-event-type-badge:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
}

/* Specific event type styles - using minimalist greyscale */
.pulse-event-type-in_person {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-online {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-hybrid {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-virtual {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-webinar {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-workshop {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-class {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-seminar {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-conference {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-meetup {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-training {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-presentation {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-demo {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-tour {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-exhibition {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-performance {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-concert {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-sports {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-fitness {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-yoga {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-meditation {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-cooking {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-art {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-music {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-dance {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-networking {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-social {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-business {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-educational {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-entertainment {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-community {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-charity {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-fundraiser {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-volunteer {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-outdoor {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-indoor {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-free {
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-type-paid {
    background: #f8f9fa;
    color: #495057;
}

/* Location */
.pulse-location-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.3;
}

.pulse-location-address {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.pulse-map-link {
    background: var(--pulse-primary-light);
    color: var(--pulse-primary-color);
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.pulse-map-link:hover {
    background: var(--pulse-primary-color);
    color: #ffffff;
    text-decoration: none;
}

/* Action Buttons */
.pulse-event-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.pulse-event-actions h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.pulse-action-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.pulse-button-primary {
    background: var(--pulse-primary-color);
    color: var(--pulse-text-on-primary, #ffffff);
    box-shadow: 0 4px 16px var(--pulse-primary-border);
}

.pulse-button-primary:hover {
    background: var(--pulse-primary-hover);
    color: var(--pulse-text-on-primary, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--pulse-primary-border);
}

.pulse-button-secondary {
    background: #ffffff;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.pulse-button-secondary:hover {
    background: #f8f9fa;
    color: var(--pulse-primary-color);
    border-color: var(--pulse-primary-color);
    transform: translateY(-2px);
}

.pulse-button-icon {
    font-size: 0.875rem;
}



/* Right Column: Main Content */
.pulse-event-main-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    order: 2;
}

.pulse-event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    border-bottom: 2px solid #f8f9fa;
}

/* Title wrapper for single event page */
.pulse-single-event .pulse-event-header .pulse-event-title-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Categories stay on the right */
.pulse-single-event .pulse-event-header .pulse-event-categories {
    margin-left: 20px;
    align-self: flex-start;
}

/* Single Event Page Title - High specificity to override conflicting styles */
.pulse-single-event .pulse-event-title,
.pulse-single-event .pulse-event-title h1,
.pulse-single-event .pulse-event-title h2 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: var(--ev-color-text, #2c3e50) !important;
    margin: 0 0 var(--ev-spacing-sm, 20px) 0 !important;
    line-height: 1.2 !important;
}

/* Single Event Page Title Extension */
.pulse-single-event .pulse-event-title-extension {
    display: block;
    width: 100%;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ev-color-muted, #6c757d);
    margin: 0 0 var(--ev-spacing-md, 16px) 0;
    line-height: 1.4;
    clear: both;
}

/* Calendar Event Title */
.pulse-calendar-event .pulse-calendar-event-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pulse-text-on-primary, #ffffff);
    margin: 0 0 2px 0;
    line-height: 1.2;
    text-align: left;
    /* Clean text wrapping without hyphenation */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none; /* Prevent automatic hyphenation */
    white-space: normal;
    word-break: break-word; /* Break long words cleanly */
    overflow: visible;
}

/* Calendar Event Title Extension */
.pulse-calendar-event .pulse-calendar-event-title-extension {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--pulse-text-on-primary, #ffffff);
    margin: 0;
    line-height: 1.2;
    opacity: 0.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    white-space: normal;
    word-break: break-word;
}

/* Calendar Event Time */
.pulse-calendar-event .pulse-calendar-event-time {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--pulse-text-on-primary, #ffffff);
    margin: 2px 0 0 0;
    line-height: 1.2;
    opacity: 0.9;
    text-align: left;
}

/* Calendar Event Location */
.pulse-calendar-event .pulse-calendar-event-location {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--pulse-text-on-primary, #ffffff);
    margin: 2px 0 0 0;
    line-height: 1.2;
    opacity: 0.85;
    text-align: left;
}

.pulse-calendar-event .pulse-calendar-event-location i {
    margin-right: 4px;
    font-size: 0.65rem;
}

/* General Event Title (for other contexts - excluding single event pages) */
.pulse-event-card .pulse-event-title,
.pulse-event-item .pulse-event-title,
.pulse-event-timeline-item .pulse-event-title,
.pulse-upcoming-widget .pulse-event-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 8px;
    word-wrap: break-word;
}

/* Calendar Event Styling */
.pulse-calendar-event {
    background: var(--pulse-primary-color, #6c757d);
    color: var(--pulse-text-on-primary, #ffffff);
    padding: 4px 8px;
    margin: 2px 0;
    border-radius: 4px;
    font-size: 0.7rem;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid var(--pulse-primary-hover, #495057);
    font-weight: 500;
    /* Ensure events are visible in all views */
    display: block;
    position: relative;
    z-index: 10;
    /* Allow text wrapping and constrain width */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    /* Remove nowrap to allow wrapping */
    white-space: normal;
    overflow: visible;
}

.pulse-calendar-event:hover {
    background: var(--pulse-primary-hover, #495057);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pulse-event-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pulse-event-category {
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    /* Dynamic text color will be set via JavaScript for custom backgrounds */
}

.pulse-event-category:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Category text color based on background brightness */
.pulse-event-category[style*="background-color: #"] {
    /* Default to white text for darker/mid-dark category colors */
    color: #ffffff !important;
}

/* Extremely light category colors - use dark text for readability */
.pulse-event-category[style*="background-color: #ffffff"],
.pulse-event-category[style*="background-color: #fefefe"],
.pulse-event-category[style*="background-color: #fdfdfd"],
.pulse-event-category[style*="background-color: #fcfcfc"],
.pulse-event-category[style*="background-color: #fbfbfb"],
.pulse-event-category[style*="background-color: #fafafa"],
.pulse-event-category[style*="background-color: #f9f9f9"],
.pulse-event-category[style*="background-color: #f8f8f8"],
.pulse-event-category[style*="background-color: #f7f7f7"],
.pulse-event-category[style*="background-color: #f6f6f6"],
.pulse-event-category[style*="background-color: #f5f5f5"],
.pulse-event-category[style*="background-color: #f4f4f4"],
.pulse-event-category[style*="background-color: #f3f3f3"],
.pulse-event-category[style*="background-color: #f2f2f2"],
.pulse-event-category[style*="background-color: #f1f1f1"],
.pulse-event-category[style*="background-color: #f0f0f0"] {
    color: #2c3e50 !important; /* Dark text for extremely light backgrounds only */
}

.pulse-event-category[style*="background-color: #2e7d32"],
.pulse-event-category[style*="background-color: #1565c0"],
.pulse-event-category[style*="background-color: #ef6c00"],
.pulse-event-category[style*="background-color: #7b1fa2"],
.pulse-event-category[style*="background-color: #f57f17"],
.pulse-event-category[style*="background-color: #00695c"],
.pulse-event-category[style*="background-color: #c2185b"],
.pulse-event-category[style*="background-color: #3f51b5"],
.pulse-event-category[style*="background-color: #00838f"],
.pulse-event-category[style*="background-color: #558b2f"] {
    color: #ffffff; /* White text for dark backgrounds */
}

/* Specific mid-dark colors that should use white text for optimal readability */
.pulse-event-category[style*="background-color: rgb(146, 162, 141)"],
.pulse-event-category[style*="background-color: #92a28d"],
.pulse-event-category[style*="background-color: rgb(146, 162, 141) !important"],
.pulse-event-category[style*="background-color: #92a28d !important"] {
    color: #ffffff !important; /* White text for mid-dark sage green */
}

/* Override inline color styles for sage green in single event page */
.pulse-event-category[style*="background-color: rgb(146, 162, 141)"][style*="color: rgb(73, 80, 87)"],
.pulse-event-category[style*="background-color: rgb(146, 162, 141)"][style*="color: rgb(73, 80, 87);"],
.pulse-event-category[style*="background-color: rgb(146, 162, 141)"][style*="color: rgb(73, 80, 87) !important"],
.pulse-event-category[style*="background-color: rgb(146, 162, 141)"][style*="color: rgb(73, 80, 87) !important;"] {
    color: #ffffff !important; /* Force white text even with inline color override */
}

/* Nuclear option: Force white text for any sage green category regardless of inline styles */
.pulse-event-category[style*="146, 162, 141"] {
    color: #ffffff !important; /* Override any inline color for sage green */
}

.pulse-event-category:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Event Description */
.pulse-event-description {
    margin-bottom: 40px;
    line-height: 1.7;
    color: #2c3e50;
    font-size: 1.1rem;
}

.pulse-event-description h2,
.pulse-event-description h3,
.pulse-event-description h4 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.pulse-event-description p {
    margin-bottom: 1.5rem;
}

.pulse-event-description ul,
.pulse-event-description ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.pulse-event-description li {
    margin-bottom: 0.5rem;
}

/* Custom Fields */
.pulse-event-custom-fields {
    margin-bottom: 40px;
    padding: 32px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.pulse-event-custom-fields h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 24px 0;
}

.pulse-custom-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.pulse-custom-field {
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.pulse-custom-field-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.pulse-custom-field-value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

/* Tags */
.pulse-event-tags {
    margin-bottom: 40px;
}

.pulse-event-tags h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.pulse-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pulse-tags-list a {
    color: var(--pulse-primary-color);
    text-decoration: none;
    padding: 6px 12px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--pulse-primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pulse-tags-list a:hover {
    background: var(--pulse-primary-color);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Footer Navigation */
.pulse-event-footer {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid #f8f9fa;
}

.pulse-event-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pulse-nav-previous,
.pulse-nav-next {
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.pulse-nav-previous:hover,
.pulse-nav-next:hover {
    background: #ffffff;
    border-color: var(--pulse-primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.pulse-nav-previous a,
.pulse-nav-next a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.2s ease;
}

.pulse-nav-previous a:hover,
.pulse-nav-next a:hover {
    color: var(--pulse-primary-color);
    text-decoration: none;
}

.pulse-nav-next a {
    flex-direction: row-reverse;
}

.pulse-nav-content {
    flex: 1;
}

.pulse-nav-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.pulse-nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.pulse-nav-previous i,
.pulse-nav-next i {
    color: var(--pulse-primary-color);
    font-size: 1.25rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pulse-event-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pulse-event-sidebar {
        order: 2;
    }
    
    .pulse-event-main-content {
        order: 1;
    }
    
    .pulse-event-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .pulse-event-hero {
        height: 300px;
    }
    
    .pulse-event-hero-image {
        height: 100%;
    }
    
    .pulse-event-main-container {
        padding: 0 15px;
    }
    
    .pulse-event-content-wrapper {
        margin-top: -40px;
        gap: 20px;
    }
    
    .pulse-event-details-card,
    .pulse-event-main-content {
        padding: 24px;
    }
    
    .pulse-event-title {
        font-size: 1.75rem;
    }
    
    .pulse-event-navigation {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pulse-custom-fields-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pulse-event-hero {
        height: 250px;
    }
    
    .pulse-event-hero-image {
        height: 100%;
    }
    
    .pulse-event-details-card,
    .pulse-event-main-content {
        padding: 20px;
    }
    
    .pulse-event-title {
        font-size: 1.5rem;
    }
    
    .pulse-detail-item {
        padding: 12px;
        gap: 12px;
    }
    
    .pulse-detail-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}



/* Archive specific event type styles (more subtle) */
.pulse-archive-container .pulse-event-type-in_person {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-online {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-hybrid {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-virtual {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-webinar {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-workshop {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-class {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-seminar {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-conference {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-meetup {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-training {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-presentation {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-demo {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-tour {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-exhibition {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-performance {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-concert {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-sports {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-fitness {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-yoga {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-meditation {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-cooking {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-art {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-music {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-dance {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-networking {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-social {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-business {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-educational {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-entertainment {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-community {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-charity {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-fundraiser {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-volunteer {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-outdoor {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-indoor {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-free {
    background: #f8f9fa;
    color: #495057;
}

.pulse-archive-container .pulse-event-type-paid {
    background: #f8f9fa;
    color: #495057;
}

/* Default category color styling */
.pulse-event-category[style*="background-color: #6c757d"] {
    color: #ffffff !important; /* White text on medium grey background */
}

.pulse-event-category[style*="background-color: #6c757d"] a,
.pulse-event-category[style*="background-color: #6c757d"] a:link,
.pulse-event-category[style*="background-color: #6c757d"] a:visited,
.pulse-event-category[style*="background-color: #6c757d"] a:hover,
.pulse-event-category[style*="background-color: #6c757d"] a:active,
.pulse-event-category[style*="background-color: #6c757d"] a:focus {
    color: #ffffff !important; /* Force white text for default grey background */
}

/* Week View Styles - Minimalist Design */
.pulse-week-view {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Removed conflicting week header grid layout */

.pulse-week-day-header {
    padding: 16px 12px;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    border-right: 1px solid #e9ecef;
}

.pulse-week-day-header.today {
    background: var(--pulse-primary-light, #f8f9fa);
    color: var(--pulse-primary-color, #6c757d);
    font-weight: 700;
}

.pulse-week-day-header:last-child {
    border-right: none;
}

.pulse-week-time-header {
    padding: 16px 12px;
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.pulse-week-grid {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    background: #ffffff;
}

.pulse-time-slot {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f3f4;
    border-right: 1px solid #f1f3f4;
    min-height: 60px;
    position: relative;
}

.pulse-time-slot:last-child {
    border-bottom: none;
}

.pulse-time-slot .pulse-time-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 4px;
}

.pulse-week-day .pulse-time-slot:last-child {
    border-right: none;
}

/* Day View Styles - Minimalist Design */
.pulse-day-view {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pulse-day-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}


.pulse-day-date {
    font-size: 1rem;
    color: #6c757d;
    margin-top: 8px;
}

.pulse-day-timeline {
    padding: 20px;
}

.pulse-day-time-slot {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f1f3f4;
    /* Ensure proper layout */
    min-height: 60px;
    position: relative;
}

.pulse-day-time-slot:last-child {
    border-bottom: none;
}

.pulse-day-time-slot .pulse-time-label {
    width: 80px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
    padding-right: 16px;
    flex-shrink: 0;
}

.pulse-day-time-slot .pulse-calendar-event {
    flex-grow: 1;
    margin-left: 16px;
    background: var(--pulse-primary-color, #6c757d);
    color: var(--pulse-text-on-primary, #ffffff);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid var(--pulse-primary-hover, #495057);
    transition: all 0.2s ease;
}

.pulse-day-time-slot .pulse-calendar-event .pulse-calendar-event-title {
    font-size: 1rem;
    color: var(--pulse-text-on-primary, #ffffff);
    margin: 0;
    font-weight: 600;
    /* Clean text wrapping without hyphenation */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    word-break: break-word;
}

.pulse-day-time-slot .pulse-calendar-event .pulse-calendar-event-title-extension {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--pulse-text-on-primary, #ffffff);
    margin: 0;
    opacity: 0.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    word-break: break-word;
}

.pulse-day-time-slot .pulse-calendar-event:hover {
    background: var(--pulse-primary-hover, #495057);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Archive and List Page Styles - Minimalist Design */
.pulse-events-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 60px;
}

/* Compact Card Grid Layout */
.pulse-events-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* Compact Filter Layout */
.pulse-archive-filters-compact {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 24px;
}

.pulse-filter-form-compact {
    margin: 0;
}

.pulse-filter-row-compact {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
}

.pulse-filter-group-compact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.pulse-filter-group-compact label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-filter-group-compact select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    background: #ffffff;
    transition: border-color 0.2s ease;
    height: 36px;
    line-height: 1.2;
    width: 100%;
    box-sizing: border-box;
}

.pulse-filter-group-compact select:focus {
    outline: none;
    border-color: var(--pulse-primary-color, #6c757d);
    box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.1);
}

/* Action buttons container */
.pulse-filter-actions {
    flex: 0 0 auto;
    min-width: 160px;
    flex-direction: row;
    gap: 6px;
    align-items: flex-end;
}

.pulse-filter-actions .pulse-button-small {
    margin: 0;
    padding: 8px 16px;
    font-size: 0.85rem;
    height: 36px;
    line-height: 1.2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 500;
}

.pulse-event-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Card without image - add top padding to maintain spacing */
.pulse-event-card:not(:has(.pulse-event-card-image)) {
    padding-top: 20px;
}

.pulse-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--pulse-primary-color, #6c757d);
}

/* Event Card Image */
.pulse-event-card-image {
    width: calc(100% + 40px);
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin: -20px -20px 20px -20px;
    position: relative;
    transform: translateZ(0); /* Force hardware acceleration */
}

.pulse-event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Alignment Classes */
.pulse-event-card-image.pulse-align-top img {
    object-position: center top !important;
}

.pulse-event-card-image.pulse-align-center img {
    object-position: center center !important;
}

.pulse-event-card-image.pulse-align-bottom img {
    object-position: center bottom !important;
}

/* Override theme/plugin image overlay interference */
.pulse-event-card-image .image-overlay {
    display: none !important;
}

.pulse-event-card-image a {
    position: static !important;
    overflow: visible !important;
    display: block !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: 100% !important;
}

.pulse-event-card-image img {
    position: relative !important;
    z-index: 1;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    transition: none !important;
}

/* Ensure no theme transforms interfere */
.pulse-event-card-image:hover a,
.pulse-event-card-image:hover img {
    transform: none !important;
    left: auto !important;
    top: auto !important;
}

/* No hover effect on images - card hover is sufficient */

/* Date Badge Overlay */
.pulse-date-badge-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--pulse-primary-color, #6c757d);
    color: #ffffff;
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    min-width: 60px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.8;
}

.pulse-event-weekday {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
    color: #ffffff;
    line-height: 1;
}

.pulse-event-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1px;
    color: #ffffff;
}

.pulse-event-month {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    line-height: 1;
}

/* Event Title Section (Full Width) */
.pulse-event-card-title-section {
    width: 100%;
    margin-bottom: 16px;
}

.pulse-event-card .pulse-event-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 5px 0 !important;
    line-height: 1.3;
}

.pulse-event-card .pulse-event-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pulse-event-card .pulse-event-title a:hover {
    color: var(--pulse-primary-color, #6c757d);
}

.pulse-event-time-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-event-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.pulse-event-time i {
    font-size: 0.8rem;
    color: var(--pulse-primary-color, #6c757d);
}

.pulse-all-day {
    color: var(--pulse-primary-color, #6c757d);
    font-weight: 600;
}

/* Event Card Meta */
.pulse-event-card-meta {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pulse-event-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #6c757d;
    flex: 1;
    min-width: 0;
}

.pulse-event-meta-item i {
    font-size: 0.8rem;
    color: var(--pulse-primary-color, #6c757d);
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.pulse-event-type-in_person {
    background: #e8f5e8;
    color: #2d5a2d;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.pulse-event-type-online {
    background: #e3f2fd;
    color: #1565c0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Event Card Excerpt */
.pulse-event-card-excerpt {
    margin-bottom: 16px;
    color: #6c757d;
    line-height: 1.5;
}

.pulse-event-card-excerpt p {
    margin: 0;
    font-size: 0.9rem;
}

/* Event Card Categories */
.pulse-event-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.pulse-event-category-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pulse-event-category-tag a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.pulse-event-category-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Event Card Actions */
.pulse-event-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
}

.pulse-button-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

.pulse-button-small i {
    font-size: 0.8rem;
}

.pulse-button-primary.pulse-button-small {
    background: var(--pulse-primary-color, #6c757d);
    color: var(--pulse-text-on-primary, #ffffff);
    border: 1px solid var(--pulse-primary-color, #6c757d);
}

.pulse-button-primary.pulse-button-small:hover {
    background: var(--pulse-primary-hover, #495057);
    border-color: var(--pulse-primary-hover, #495057);
    color: var(--pulse-text-on-primary, #ffffff);
    transform: translateY(-1px);
}

.pulse-button-secondary.pulse-button-small {
    background: #ffffff;
    color: var(--pulse-primary-color, #6c757d);
    border: 1px solid #e9ecef;
}

.pulse-button-secondary.pulse-button-small:hover {
    background: #f8f9fa;
    border-color: var(--pulse-primary-color, #6c757d);
    color: var(--pulse-primary-color, #6c757d);
    transform: translateY(-1px);
}

.pulse-archive-container {
    display: block;
}

/* Full width layout for category pages */
.pulse-events-archive .pulse-archive-container {
    display: block;
}

.pulse-archive-header {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pulse-archive-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.pulse-category-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
}

.pulse-archive-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Archive Filters */
.pulse-archive-filters {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pulse-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
}

.pulse-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pulse-filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2c3e50;
}

.pulse-filter-group select {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #ffffff;
    color: #495057;
    font-size: 0.875rem;
    min-width: 150px;
    transition: border-color 0.2s ease;
}

.pulse-filter-group select:focus {
    outline: none;
    border-color: var(--pulse-primary-color, #6c757d);
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1);
}

/* Event Grid */
.pulse-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.pulse-event-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pulse-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--pulse-primary-color, #6c757d);
}

.pulse-event-card .pulse-event-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.pulse-event-card .pulse-event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pulse-event-card:hover .pulse-event-thumbnail img {
    transform: scale(1.05);
}

.pulse-event-card .pulse-event-content {
    padding: 24px;
}

.pulse-event-card .pulse-event-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.pulse-event-card .pulse-event-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pulse-event-card .pulse-event-title a:hover {
    color: var(--pulse-primary-color, #6c757d);
}

.pulse-event-card .pulse-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: #6c757d;
}

.pulse-event-card .pulse-event-type {
    margin-bottom: 8px;
}

.pulse-event-card .pulse-event-type span {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.2px;
    background: #f8f9fa;
    color: #495057;
}

.pulse-event-card .pulse-event-location {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-event-card .pulse-event-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.pulse-event-card .pulse-event-categories {
    margin-bottom: 20px;
}

.pulse-event-card .pulse-event-actions {
    display: flex;
    gap: 12px;
}

.pulse-event-card .pulse-button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.pulse-event-card .pulse-button-primary {
    background: var(--pulse-primary-color, #6c757d);
    color: var(--pulse-text-on-primary, #ffffff);
}

.pulse-event-card .pulse-button-primary:hover {
    background: var(--pulse-primary-hover, #495057);
    color: var(--pulse-text-on-primary, #ffffff);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pulse-event-card .pulse-button-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.pulse-event-card .pulse-button-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Archive Sidebar */
.pulse-archive-sidebar {
    position: sticky;
    top: 24px;
}

.pulse-archive-sidebar .pulse-widget {
    margin-bottom: 24px;
}

/* Pagination */
.pulse-pagination {
    text-align: center;
    margin-top: 40px;
}

.pulse-pagination-list {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pulse-pagination-list li {
    margin: 0;
}

.pulse-pagination-list a,
.pulse-pagination-list span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pulse-pagination-list a:hover {
    background: var(--pulse-primary-color, #6c757d);
    color: #ffffff;
    border-color: var(--pulse-primary-color, #6c757d);
}

.pulse-pagination-list .current {
    background: var(--pulse-primary-color, #6c757d);
    color: #ffffff;
    border-color: var(--pulse-primary-color, #6c757d);
}

/* No Events Found */
.pulse-no-events {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pulse-no-events-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 24px;
}

.pulse-no-events h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 16px 0;
}

.pulse-no-events p {
    color: #6c757d;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

/* Responsive Design - Minimalist System */
@media (max-width: 1024px) {
    .pulse-archive-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .pulse-archive-sidebar {
        position: static;
    }
    
    .pulse-events-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .pulse-events-archive {
        padding: 0 16px;
    }
    
    .pulse-archive-header {
        padding: 24px 20px;
    }
    
    .pulse-archive-title {
        font-size: 1.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .pulse-filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .pulse-filter-group select {
        min-width: auto;
        width: 100%;
    }
    
    .pulse-events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pulse-event-card .pulse-event-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .pulse-event-card .pulse-button {
        width: 100%;
        text-align: center;
    }
    
    .pulse-calendar-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .pulse-calendar-nav {
        justify-content: center;
    }
    
    .pulse-widget {
        padding: 16px;
    }
    
    .pulse-upcoming-widget .pulse-event-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .pulse-upcoming-widget .pulse-event-date {
        width: auto;
        text-align: center;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .pulse-single-event {
        padding: 0 16px;
    }
    
    .pulse-event-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .pulse-event-hero {
        height: 200px;
    }
    
    .pulse-event-sidebar {
        padding: 20px;
    }
    
    .pulse-event-main-content {
        padding: 24px 20px;
    }
    
    .pulse-event-title {
        font-size: 2rem;
    }
    
    .pulse-calendar-day {
        min-height: 80px;
        padding: 8px;
    }
    
    .pulse-calendar-event {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .pulse-calendar-event .pulse-calendar-event-title {
        font-size: 0.7rem;
        /* Clean text wrapping without hyphenation */
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: none;
        word-break: break-word;
    }
}

/* Loading and Error States - Minimalist Design */
.pulse-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

.pulse-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid var(--pulse-primary-color, #6c757d);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

.pulse-error {
    background: #f8f9fa;
    color: #6c757d;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus States for Accessibility */
.pulse-calendar-nav button:focus,
.pulse-view-btn:focus,
.pulse-filter-group select:focus,
.pulse-event-card .pulse-button:focus,
.pulse-upcoming-widget .pulse-view-all-link:focus {
    outline: 2px solid var(--pulse-primary-color, #6c757d);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .pulse-calendar-nav,
    .pulse-event-actions,
    .pulse-archive-filters,
    .pulse-widget {
        display: none;
    }
    
    .pulse-calendar,
    .pulse-event-card,
    .pulse-single-event {
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .pulse-event-hero {
        height: auto;
        max-height: 200px;
    }
}

/* Upcoming Events Widget - Ultra Compact Design */
.pulse-upcoming-widget {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

/* Light Theme (Default) */
.pulse-upcoming-widget.pulse-theme-light {
    color: #2c3e50;
}

.pulse-upcoming-widget.pulse-theme-light .pulse-event-day {
    color: #2c3e50;
}

.pulse-upcoming-widget.pulse-theme-light .pulse-event-weekday {
    color: #6c757d;
}

.pulse-upcoming-widget.pulse-theme-light .pulse-event-month {
    color: #6c757d;
}

.pulse-upcoming-widget.pulse-theme-light .pulse-event-title {
    color: #2c3e50;
}

.pulse-upcoming-widget.pulse-theme-light .pulse-event-title a:hover {
    color: var(--pulse-primary-color, #6c757d);
}

.pulse-upcoming-widget.pulse-theme-light .pulse-event-category {
    color: #ffffff;
    /* Category colors will be applied via inline styles, fallback to primary color */
    background: var(--pulse-primary-color, #6c757d);
}

.pulse-upcoming-widget.pulse-theme-light .pulse-event-time,
.pulse-upcoming-widget.pulse-theme-light .pulse-event-time i,
.pulse-upcoming-widget.pulse-theme-light .pulse-event-instructor,
.pulse-upcoming-widget.pulse-theme-light .pulse-event-type,
.pulse-upcoming-widget.pulse-theme-light .pulse-event-type i,
.pulse-upcoming-widget.pulse-theme-light .pulse-event-location,
.pulse-upcoming-widget.pulse-theme-light .pulse-event-location i {
    color: #6c757d;
}

.pulse-upcoming-widget.pulse-theme-light .pulse-event-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.pulse-upcoming-widget.pulse-theme-light .pulse-event-date::after {
    background: rgba(0, 0, 0, 0.3);
}

/* Dark Theme */
.pulse-upcoming-widget.pulse-theme-dark {
    color: #ffffff;
}

.pulse-upcoming-widget.pulse-theme-dark .pulse-event-day {
    color: #ffffff;
}

.pulse-upcoming-widget.pulse-theme-dark .pulse-event-weekday {
    color: #bdc3c7;
}

.pulse-upcoming-widget.pulse-theme-dark .pulse-event-month {
    color: #bdc3c7;
}

.pulse-upcoming-widget.pulse-theme-dark .pulse-event-title {
    color: #ffffff;
}

.pulse-upcoming-widget.pulse-theme-dark .pulse-event-title a:hover {
    color: var(--pulse-primary-color, #3498db);
}

.pulse-upcoming-widget.pulse-theme-dark .pulse-event-category {
    color: #ffffff;
    /* Category colors will be applied via inline styles, fallback to primary color */
    background: var(--pulse-primary-color, #3498db);
}

.pulse-upcoming-widget.pulse-theme-dark .pulse-event-time,
.pulse-upcoming-widget.pulse-theme-dark .pulse-event-time i,
.pulse-upcoming-widget.pulse-theme-dark .pulse-event-instructor,
.pulse-upcoming-widget.pulse-theme-dark .pulse-event-type,
.pulse-upcoming-widget.pulse-theme-dark .pulse-event-type i,
.pulse-upcoming-widget.pulse-theme-dark .pulse-event-location,
.pulse-upcoming-widget.pulse-theme-dark .pulse-event-location i {
    color: #bdc3c7;
}

.pulse-upcoming-widget.pulse-theme-dark .pulse-event-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.pulse-upcoming-widget.pulse-theme-dark .pulse-event-date::after {
    background: rgba(255, 255, 255, 0.3);
}

.pulse-upcoming-widget .pulse-event-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    padding: 16px 0;
    transition: all 0.2s ease;
    align-items: flex-start;
}

.pulse-upcoming-widget .pulse-event-item:last-child {
    border-bottom: none;
}

.pulse-upcoming-widget .pulse-event-item:hover {
    background: none;
    margin: 0;
    padding: 16px 0;
    border-radius: 0;
}

/* Left Column - Date */
.pulse-upcoming-widget .pulse-event-date {
    text-align: center;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.pulse-upcoming-widget .pulse-event-date::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 0px;
    width: 1px;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
}

.pulse-upcoming-widget .pulse-event-day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    display: block;
}

.pulse-upcoming-widget .pulse-event-weekday {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
    line-height: 1.2;
}

.pulse-upcoming-widget .pulse-event-month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 4px;
}

/* Right Column - Event Details */
.pulse-upcoming-widget .pulse-event-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* First Row - Category and Time */
.pulse-upcoming-widget .pulse-event-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -7px 0;
}

.pulse-upcoming-widget .pulse-event-category {
    display: inline-block;
    padding: 0px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    /* Category colors will be applied via inline styles from PHP */
    background: #6c757d; /* Fallback color */
}

/* Ensure category labels with custom colors have proper text contrast */
.pulse-upcoming-widget .pulse-event-category[style*="background-color: #"] {
    color: #ffffff !important;
}

.pulse-upcoming-widget .pulse-event-category[style*="background-color: rgb("] {
    color: #ffffff !important;
}

/* Specific category color overrides for optimal text contrast */
.pulse-upcoming-widget .pulse-event-category[style*="background-color: #e8f5e8"],
.pulse-upcoming-widget .pulse-event-category[style*="background-color: #e3f2fd"],
.pulse-upcoming-widget .pulse-event-category[style*="background-color: #fff3e0"],
.pulse-upcoming-widget .pulse-event-category[style*="background-color: #f3e5f5"],
.pulse-upcoming-widget .pulse-event-category[style*="background-color: #fff8e1"],
.pulse-upcoming-widget .pulse-event-category[style*="background-color: #e0f2f1"],
.pulse-upcoming-widget .pulse-event-category[style*="background-color: #fce4ec"],
.pulse-upcoming-widget .pulse-event-category[style*="background-color: #e8eaf6"],
.pulse-upcoming-widget .pulse-event-category[style*="background-color: #e0f7fa"],
.pulse-upcoming-widget .pulse-event-category[style*="background-color: #f1f8e9"],
.pulse-upcoming-widget .pulse-event-category[style*="background-color: #f8f9fa"] {
    color: #2c3e50 !important; /* Dark text for light backgrounds */
}

.pulse-upcoming-widget .pulse-event-time {
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-upcoming-widget .pulse-event-time i {
    font-size: 0.8rem;
}

/* Second Row - Title */
.pulse-upcoming-widget .pulse-event-title {
    font-size: 2em;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.pulse-upcoming-widget .pulse-event-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pulse-upcoming-widget .pulse-event-title a:hover {
    color: var(--pulse-primary-color, #6c757d);
}

/* Third Row - Instructor */
.pulse-upcoming-widget .pulse-event-instructor {
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
}

/* Fourth Row - Event Type and Location */
.pulse-upcoming-widget .pulse-event-meta-bottom {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-top: 4px;
}

.pulse-upcoming-widget .pulse-event-type,
.pulse-upcoming-widget .pulse-event-location {
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
    vertical-align: middle;
    margin-bottom: -2px;
}

.pulse-upcoming-widget .pulse-event-type i,
.pulse-upcoming-widget .pulse-event-location i {
    font-size: 0.75rem;
    flex-shrink: 0;
    line-height: 1;
    vertical-align: middle;
    position: relative;
    top: 0;
    margin-bottom: -2px;
}

/* View All Link */
.pulse-upcoming-widget .pulse-view-all-link {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 16px;
    background: var(--pulse-primary-color, #6c757d);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}

.pulse-upcoming-widget .pulse-view-all-link:hover {
    background: var(--pulse-primary-hover, #495057);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design for Widget */
@media (max-width: 768px) {
    .pulse-upcoming-widget .pulse-event-item {
        grid-template-columns: 70px 1fr;
        gap: 12px;
        padding: 12px 0;
    }
    
    .pulse-upcoming-widget .pulse-event-item:hover {
        margin: 0;
        padding: 12px 0;
    }
    
    .pulse-upcoming-widget .pulse-event-day {
        font-size: 2rem;
    }
    
    .pulse-upcoming-widget .pulse-event-weekday {
        font-size: 0.8rem;
    }
    
    .pulse-upcoming-widget .pulse-event-month {
        font-size: 0.8rem;
        margin-right: 0;
    }
    
    .pulse-upcoming-widget .pulse-event-title {
        font-size: 1.5em;
    }
    
    .pulse-upcoming-widget .pulse-event-meta-top {
        gap: 10px;
    }
    
    .pulse-upcoming-widget .pulse-event-meta-bottom {
        gap: 12px;
    }
    
    /* Adjust divider position for 12px gap - center it perfectly */
    .pulse-upcoming-widget .pulse-event-date::after {
        right: -6px; /* 6px from date column edge = center of 12px gap */
    }
    
    .pulse-upcoming-widget .pulse-event-date {
        padding: 15px 0;
    }
}

/* Responsive Design for Card Layout */
@media (max-width: 768px) {
    .pulse-events-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pulse-event-card {
        padding: 16px;
    }
    
    .pulse-event-card-image {
        height: 160px;
        margin: -16px -16px 16px -16px;
    }
    
    .pulse-event-card-header {
        gap: 12px;
    }
    
    .pulse-event-date-badge {
        min-width: 50px;
        padding: 10px;
    }
    
    .pulse-event-day {
        font-size: 1.25rem;
    }
    
    .pulse-event-card .pulse-event-title {
        font-size: 1.1rem;
    }
    
    .pulse-event-card-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .pulse-button-small {
        justify-content: center;
        flex: none;
    }
    
    .pulse-event-card-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .pulse-event-meta-item {
        flex: none;
    }
    
    .pulse-filter-row-compact {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .pulse-filter-group-compact {
        min-width: auto;
        flex: none;
    }
    
    .pulse-filter-actions {
        flex-direction: column;
        min-width: auto;
        gap: 6px;
    }
    
    .pulse-filter-actions .pulse-button-small {
        flex: none;
        height: 36px;
    }
}

/* Infinite Scroll Styles */
.pulse-infinite-scroll-loading {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.pulse-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pulse-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid var(--pulse-primary-color, #6c757d);
    border-radius: 50%;
    animation: pulse-spin 1s linear infinite;
}

@keyframes pulse-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pulse-loading-spinner span {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.pulse-infinite-scroll-end {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.pulse-end-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #6c757d;
}

.pulse-end-message i {
    font-size: 2rem;
    color: #28a745;
}

.pulse-end-message span {
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 480px) {
    .pulse-upcoming-widget .pulse-event-item {
        grid-template-columns: 60px 1fr;
        gap: 10px;
        padding: 8px 0;
    }
    
    .pulse-upcoming-widget .pulse-event-item:hover {
        margin: 0;
        padding: 8px 0;
    }
    
    .pulse-upcoming-widget .pulse-event-day {
        font-size: 1.75rem;
    }
    
    .pulse-upcoming-widget .pulse-event-weekday {
        font-size: 0.75rem;
    }
    
    .pulse-upcoming-widget .pulse-event-month {
        font-size: 0.75rem;
        margin-right: 0;
    }
    
    .pulse-upcoming-widget .pulse-event-title {
        font-size: 1.25em;
    }
    
    .pulse-upcoming-widget .pulse-event-meta-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .pulse-upcoming-widget .pulse-event-meta-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .pulse-upcoming-widget .pulse-view-all-link {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    /* Adjust divider position for 10px gap - center it perfectly */
    .pulse-upcoming-widget .pulse-event-date::after {
        right: -5px; /* 5px from date column edge = center of 10px gap */
    }
    
    .pulse-upcoming-widget .pulse-event-date {
        padding: 15px 0;
    }
}



/* Recurrence Exceptions */
.pulse-recurrence-exceptions {
    margin-top: 10px;
    padding: 12px;
    background: #fff3cd;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
}

.pulse-recurrence-exceptions-title {
    color: #856404;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.pulse-recurrence-exceptions-title i {
    margin-right: 8px;
    color: #dc3545;
}

.pulse-recurrence-exceptions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pulse-recurrence-exceptions-list li {
    padding: 4px 0;
    color: #856404;
    font-size: 14px;
    border-bottom: 1px solid #ffeaa7;
    display: flex;
    align-items: center;
}

.pulse-recurrence-exceptions-list li:last-child {
    border-bottom: none;
}

.pulse-recurrence-exceptions-list li i {
    margin-right: 8px;
    color: #dc3545;
    font-size: 12px;
    width: 16px;
    text-align: center;
}

/* Recurrence Additions */
.pulse-recurrence-additions {
    margin-top: 10px;
    padding: 12px;
    background: #d1ecf1;
    border-radius: 6px;
    border-left: 3px solid #17a2b8;
}

.pulse-recurrence-additions-title {
    color: #0c5460;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.pulse-recurrence-additions-title i {
    margin-right: 8px;
    color: #28a745;
}

.pulse-recurrence-additions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pulse-recurrence-additions-list li {
    padding: 4px 0;
    color: #0c5460;
    font-size: 14px;
    border-bottom: 1px solid #bee5eb;
    display: flex;
    align-items: center;
}

.pulse-recurrence-additions-list li:last-child {
    border-bottom: none;
}

.pulse-recurrence-additions-list li i {
    margin-right: 8px;
    color: #28a745;
    font-size: 12px;
    width: 16px;
    text-align: center;
}

/* Fallback for raw RRULE display */
.pulse-recurrence-rule {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    word-break: break-all;
}

/* Recurring Event Instance Information */
.pulse-instance-info {
    margin-top: 8px;
    padding: 8px;
    background: #e7f3ff;
    border-left: 3px solid #0073aa;
    border-radius: 3px;
    font-size: 12px;
    color: #005a87;
    line-height: 1.4;
}

.pulse-instance-info i {
    margin-right: 5px;
    color: #0073aa;
}

.pulse-instance-info strong {
    font-weight: 600;
}

.pulse-instance-info small {
    font-size: 11px;
    opacity: 0.8;
}

/* ============================================
   MOBILE-FIRST CALENDAR REDESIGN
   Clean, usable UI for mobile devices
   ============================================ */

/* Mobile Detection Helper - Apply to body when on mobile */
@media (max-width: 768px) {
    body.pulse-mobile-device .pulse-calendar {
        /* Ensure calendar container is full width */
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    body.pulse-mobile-device .pulse-calendar-body {
        padding: 20px 0;
    }

    /* ============================================
       MOBILE MONTH VIEW - List of Days with Events
       ============================================ */
    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] {
        display: block;
        background: #ffffff;
        border-radius: 0;
        padding: 0;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-month-header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #ffffff;
        padding: 12px 16px;
        border-bottom: 2px solid var(--pulse-primary-color, #3498db);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-month-title {
        font-size: 1rem;
        font-weight: 600;
        color: #2c3e50;
        text-align: center;
        margin: 0;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-mobile-month-events {
        display: flex;
        flex-direction: column;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-mobile-month-day {
        border-bottom: 1px solid #e1e8ed;
        padding: 0;
        background: #ffffff;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-mobile-month-day:last-child {
        border-bottom: none;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-mobile-day-header {
        background: #f8f9fa;
        padding: 12px 16px;
        border-bottom: 1px solid #e1e8ed;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 60px; /* Below month header */
        z-index: 50;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-mobile-day-header.today {
        background: var(--pulse-primary-color, #3498db);
        color: #ffffff;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-mobile-day-name {
        font-size: 1rem;
        font-weight: 600;
        color: inherit;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-mobile-day-date {
        font-size: 0.875rem;
        color: inherit;
        opacity: 0.8;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-mobile-day-events {
        padding: 8px 16px 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    /* First day events container only - increase padding-top to prevent overlap with sticky header */
    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-mobile-month-day:first-child .pulse-mobile-day-events {
        padding-top: 23px !important; /* 8px original + 15px extra to clear sticky header */
    }

    /* Hide desktop month view elements on mobile */
    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-calendar-day-header,
    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-calendar-day {
        display: none;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-calendar-day-header {
        font-size: 0.7rem;
        font-weight: 600;
        padding: 8px 4px;
        text-align: center;
        background: #ffffff;
        color: #2c3e50;
        border-bottom: 2px solid #e1e8ed;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-calendar-day {
        min-height: 90px;
        background: #ffffff;
        padding: 4px 2px;
        border: 1px solid #f0f0f0;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-calendar-day.other-month {
        background: #f8f9fa;
        opacity: 0.6;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-calendar-day.today {
        background: #e8f4f8;
        border: 2px solid var(--pulse-primary-color, #3498db);
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-calendar-day-number {
        font-size: 0.75rem;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 4px;
        padding: 2px 4px;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-calendar-day.today .pulse-calendar-day-number {
        background: var(--pulse-primary-color, #3498db);
        color: #ffffff;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 4px;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-calendar-day-events {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
        overflow: hidden;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-calendar-event {
        font-size: 0.65rem;
        padding: 3px 4px;
        margin: 0;
        border-radius: 3px;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.2s ease;
        border-left-width: 2px;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-calendar-event-title {
        font-size: 0.65rem;
        font-weight: 500;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-calendar-event-title-extension {
        display: none; /* Hide on mobile month view to save space */
    }

    /* Show event count if more than 2 events */
    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-calendar-day-events:has(.pulse-calendar-event:nth-child(3)) .pulse-calendar-event:nth-child(n+3) {
        display: none;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-calendar-day-events:has(.pulse-calendar-event:nth-child(3))::after {
        content: '+ ' attr(data-more-count) ' more';
        font-size: 0.6rem;
        color: var(--pulse-primary-color, #3498db);
        font-weight: 600;
        padding: 2px 4px;
        text-align: center;
        display: block;
        margin-top: 2px;
    }

    /* ============================================
       MOBILE WEEK VIEW - Vertical List Layout
       ============================================ */
    body.pulse-mobile-device .pulse-calendar-grid[data-view="week"] {
        display: block;
        background: #ffffff;
        border-radius: 0;
        padding: 0;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="week"] .pulse-week-header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #ffffff;
        padding: 12px 16px;
        border-bottom: 2px solid var(--pulse-primary-color, #3498db);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="week"] .pulse-week-title {
        font-size: 1rem;
        font-weight: 600;
        color: #2c3e50;
        text-align: center;
        margin: 0;
    }

    /* Hide desktop week grid elements */
    body.pulse-mobile-device .pulse-calendar-grid[data-view="week"] .pulse-week-time-header,
    body.pulse-mobile-device .pulse-calendar-grid[data-view="week"] .pulse-week-day-header,
    body.pulse-mobile-device .pulse-calendar-grid[data-view="week"] .pulse-week-time-slot {
        display: none;
    }

    /* Create mobile week day sections */
    body.pulse-mobile-device .pulse-calendar-grid[data-view="week"] .pulse-mobile-week-day {
        border-bottom: 1px solid #e1e8ed;
        padding: 0;
        background: #ffffff;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="week"] .pulse-mobile-week-day:last-child {
        border-bottom: none;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="week"] .pulse-mobile-day-header {
        background: #f8f9fa;
        padding: 12px 16px;
        border-bottom: 1px solid #e1e8ed;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 60px; /* Below week header */
        z-index: 50;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="week"] .pulse-mobile-day-header.today {
        background: var(--pulse-primary-color, #3498db);
        color: #ffffff;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="week"] .pulse-mobile-day-name {
        font-size: 1rem;
        font-weight: 600;
        color: inherit;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="week"] .pulse-mobile-day-date {
        font-size: 0.875rem;
        color: inherit;
        opacity: 0.8;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="week"] .pulse-mobile-day-events {
        padding: 8px 16px 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    /* First day events container only - add margin-top to prevent overlap with sticky header */
    body.pulse-mobile-device .pulse-calendar-grid[data-view="week"] .pulse-mobile-week-day:first-child .pulse-mobile-day-events {
        margin-top: 15px !important;
    }

    body.pulse-mobile-device .pulse-mobile-event-item {
        background: var(--pulse-primary-color, #3498db);
        color: var(--pulse-text-on-primary, #ffffff);
        padding: 12px;
        border-radius: 8px;
        border-left: 4px solid var(--pulse-primary-hover, #2980b9);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    body.pulse-mobile-device .pulse-mobile-event-item:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    body.pulse-mobile-device .pulse-mobile-event-time {
        font-size: 0.75rem;
        font-weight: 600;
        margin-bottom: 4px;
        opacity: 0.9;
        color: var(--pulse-text-on-primary, #ffffff);
    }

    body.pulse-mobile-device .pulse-mobile-event-title {
        font-size: 0.9rem;
        font-weight: 600;
        margin: 0 0 4px 0;
        line-height: 1.3;
        color: var(--pulse-text-on-primary, #ffffff);
    }

    body.pulse-mobile-device .pulse-mobile-event-title-extension {
        font-size: 0.8rem;
        opacity: 0.9;
        margin: 0;
        color: var(--pulse-text-on-primary, #ffffff);
    }

    body.pulse-mobile-device .pulse-mobile-event-location {
        font-size: 0.75rem;
        margin-top: 6px;
        opacity: 0.85;
        display: flex;
        align-items: center;
        gap: 4px;
        color: var(--pulse-text-on-primary, #ffffff);
    }

    body.pulse-mobile-device .pulse-mobile-event-location i {
        font-size: 0.7rem;
        color: var(--pulse-text-on-primary, #ffffff);
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="week"] .pulse-mobile-day-empty {
        padding: 24px 16px;
        text-align: center;
        color: #6c757d;
        font-size: 0.875rem;
    }

    /* ============================================
       MOBILE DAY VIEW - Same as Week View Cards
       ============================================ */
    body.pulse-mobile-device .pulse-calendar-grid[data-view="day"] {
        display: block;
        background: #ffffff;
        border-radius: 0;
        padding: 0;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="day"] .pulse-day-header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #ffffff;
        padding: 12px 16px;
        border-bottom: 2px solid var(--pulse-primary-color, #3498db);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="day"] .pulse-day-title {
        font-size: 1rem;
        font-weight: 600;
        color: #2c3e50;
        text-align: center;
        margin: 0;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="day"] .pulse-mobile-day-events {
        padding: 8px 16px 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    /* ============================================
       MOBILE CALENDAR HEADER
       ============================================ */
    body.pulse-mobile-device .pulse-calendar-header {
        padding: 12px;
        background: #ffffff;
        border-bottom: 1px solid #e1e8ed;
        position: sticky;
        top: 0;
        z-index: 200;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    body.pulse-mobile-device .pulse-calendar-title {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 12px;
    }

    body.pulse-mobile-device .pulse-calendar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    body.pulse-mobile-device .pulse-calendar-nav button {
        padding: 8px 16px;
        font-size: 0.875rem;
        border-radius: 6px;
        min-width: 44px; /* Touch target size */
        min-height: 44px;
    }

    body.pulse-mobile-device .pulse-calendar-view-switcher {
        display: flex;
        gap: 4px;
        justify-content: center;
    }

    body.pulse-mobile-device .pulse-view-btn {
        flex: 1;
        padding: 10px 12px;
        font-size: 0.875rem;
        border-radius: 6px;
        min-height: 44px;
    }

    /* ============================================
       MOBILE FILTER BAR
       ============================================ */
    body.pulse-mobile-device .pulse-filter-controls {
        padding: 12px;
        background: #f8f9fa;
    }

    body.pulse-mobile-device .pulse-filter-toggle-btn {
        width: 100%;
        padding: 12px;
        font-size: 0.875rem;
        border-radius: 6px;
        min-height: 44px;
        margin-bottom: 12px;
    }

    body.pulse-mobile-device .pulse-calendar-category-filter {
        padding: 12px;
        background: #ffffff;
    }

    body.pulse-mobile-device .pulse-category-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    body.pulse-mobile-device .pulse-category-filter-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 20px;
        min-height: 36px;
    }

    /* ============================================
       MOBILE TOUCH OPTIMIZATIONS
       ============================================ */
    body.pulse-mobile-device .pulse-calendar-event,
    body.pulse-mobile-device .pulse-mobile-event-item {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }

    /* Prevent text selection on touch */
    body.pulse-mobile-device .pulse-calendar-nav button,
    body.pulse-mobile-device .pulse-view-btn {
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Smooth scrolling */
    body.pulse-mobile-device .pulse-calendar-grid {
        -webkit-overflow-scrolling: touch;
    }
}

/* Smaller mobile devices */
@media (max-width: 480px) {
    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-calendar-day {
        min-height: 80px;
        padding: 3px 1px;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-calendar-day-number {
        font-size: 0.7rem;
    }

    body.pulse-mobile-device .pulse-calendar-grid[data-view="month"] .pulse-calendar-event {
        font-size: 0.6rem;
        padding: 2px 3px;
    }

    body.pulse-mobile-device .pulse-calendar-header {
        padding: 8px;
    }

    body.pulse-mobile-device .pulse-calendar-title {
        font-size: 1rem;
    }

    body.pulse-mobile-device .pulse-view-btn {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
}


