/* PCW Simple Events - Frontend Styles */

/* Parent Event Notice */
.pcw-parent-event-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

.pcw-notice-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pcw-notice-content {
    flex: 1;
}

.pcw-notice-content strong {
    color: #1d2327;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.pcw-notice-content {
    color: #50575e;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* View Controls */
.pcw-view-controls {
    margin-bottom: 24px;
}

.pcw-view-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    width: fit-content;
}

.pcw-view-btn {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    color: #50575e;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pcw-view-btn:hover {
    background: #e8f0fe;
    border-color: #2271b1;
    color: #2271b1;
}

.pcw-view-btn.active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

/* Month Selector */
.pcw-month-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    grid-column: 1 / -1; /* Span full width of grid */
    width: 100%;
    margin-bottom: 24px;
	justify-content: center;
}

.pcw-month-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pcw-month-dropdown-mobile {
    display: none;
}

.pcw-month-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
}

.pcw-month-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    color: #50575e;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pcw-month-btn:hover {
    background: #e8f0fe;
    border-color: #2271b1;
    color: #2271b1;
}

.pcw-month-btn.active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

/* Events List */
.pcw-events-list {
    display: grid;
    gap: 24px;
    margin: 20px 0;
}

.pcw-event-card a {
    text-decoration: none !important;
}

/* 2-Column Layout */
.pcw-layout-2-column {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* 4-Column Layout */
.pcw-layout-4-column {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.pcw-no-events {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

/* Event Cards */
.pcw-event-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pcw-event-cost-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #2271b1;
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pcw-event-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 2-Column Layout Cards */
.pcw-layout-2-column .pcw-event-card {
    flex-direction: row;
    align-items: stretch;
}

.pcw-layout-2-column .pcw-event-card .pcw-event-image {
    flex: 0 0 200px;
    aspect-ratio: 1;
}

.pcw-layout-2-column .pcw-event-card .pcw-event-content {
    flex: 1;
    padding: 20px;
}

/* 4-Column Layout Cards */
.pcw-layout-4-column .pcw-event-card {
    flex-direction: column;
}

.pcw-layout-4-column .pcw-event-card .pcw-event-image {
    aspect-ratio: 16/9;
}

.pcw-layout-4-column .pcw-event-card .pcw-event-content {
    padding: 16px;
}

/* Event Images */
.pcw-event-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

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

.pcw-event-card:hover .pcw-event-image img {
    transform: scale(1.05);
}

/* Event Link */
.pcw-event-link {
    display: flex;
    flex-direction: inherit;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.pcw-event-link:hover {
    color: inherit;
}

/* Event Content */
.pcw-event-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pcw-event-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.pcw-event-title a {
    color: #1d2327;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pcw-event-title a:hover {
    color: #2271b1;
}

/* Event Meta */
.pcw-event-meta {
    margin-bottom: 16px;
}

.pcw-event-meta p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #50575e;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Event Details */
.pcw-event-details {
    margin-bottom: 16px;
}

.pcw-event-details-line {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    line-height: 1.4;
}

/* Event Excerpt */
.pcw-event-excerpt {
    margin-bottom: 16px;
    color: #646970;
    line-height: 1.5;
    flex: 1;
}

/* Calendar View */
.pcw-calendar-view-container {
    margin: 20px 0;
}

.pcw-calendar-view {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pcw-calendar-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.pcw-calendar-month-selector {
    flex: 1;
    display: flex;
    justify-content: center;
}

.pcw-month-dropdown {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    max-width: 200px;
    text-align: left;
}

.pcw-month-dropdown:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.pcw-calendar-nav-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    color: #50575e;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcw-calendar-nav-btn .nav-text {
    display: inline;
}

.pcw-calendar-nav-btn .nav-arrow {
    display: none;
}

.pcw-calendar-nav-btn:hover:not(:disabled) {
    background: #e8f0fe;
    border-color: #2271b1;
    color: #2271b1;
}

.pcw-calendar-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pcw-calendar-month-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.pcw-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: #e1e5e9;
    min-width: 0; /* Allow grid to shrink below content size */
}

.pcw-calendar-header {
    display: contents;
}

.pcw-calendar-day-header {
    background: #f8f9fa;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pcw-calendar-day-header .day-full {
    display: none;
}

.pcw-calendar-day-header .day-short {
    display: inline;
}

.pcw-calendar-day-header .day-letter {
    display: none;
}

.pcw-calendar-days {
    display: contents;
}

.pcw-calendar-day {
    background: #fff;
    min-height: 120px;
    padding: 8px 7px;
    position: relative;
    border: 1px solid #f0f0f0;
}

.pcw-calendar-day-empty {
    background: #f8f9fa;
}

.pcw-calendar-day-today {
    background: #e8f0fe;
    border-color: #2271b1;
}

.pcw-calendar-day-today .pcw-calendar-day-number {
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.pcw-calendar-day-has-events {
    background: #f0f6fc;
}

.pcw-calendar-day-number {
    font-weight: 500;
    font-size: 14px;
    color: #1d2327;
    margin-bottom: 4px;
}

.pcw-calendar-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pcw-calendar-event {
    font-size: 11px;
}

.pcw-calendar-event-link {
    display: block;
    padding: 4px 4px 6px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.pcw-calendar-event-link:hover {
    background: #1e5a96;
    color: #fff;
}

.pcw-calendar-event-time {
    display: block;
    font-size: 10px;
    opacity: 0.9;
    margin-bottom: 1px;
}

.pcw-calendar-event-title {
    display: block;
    font-weight: 500;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pcw-layout-2-column {
        grid-template-columns: 1fr;
    }
    
    .pcw-layout-2-column .pcw-event-card {
        flex-direction: column;
    }
    
    .pcw-layout-2-column .pcw-event-card .pcw-event-image {
        flex: none;
        aspect-ratio: 16/9;
    }
    
    .pcw-layout-4-column {
        grid-template-columns: 1fr;
    }
    
    .pcw-month-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pcw-month-buttons {
        display: none;
    }
    
    .pcw-month-dropdown-mobile {
        display: block;
    }
    
    .pcw-month-btn {
        text-align: center;
    }
    
    /* Mobile calendar navigation - remove labels, keep arrows */
    .pcw-calendar-nav-btn {
        padding: 8px 12px;
        font-size: 16px;
        min-width: auto;
    }
    
    .pcw-calendar-nav-btn .nav-text {
        display: none;
    }
    
    .pcw-calendar-nav-btn .nav-arrow {
        display: inline;
        font-size: 18px;
    }
    
    .pcw-month-dropdown {
        font-size: 14px;
        padding: 6px 7px;
        margin: 0 15px;
    }
    
    /* Day headers for mobile */
    .pcw-calendar-day-header .day-short {
        display: inline;
    }
    
    .pcw-calendar-day-header .day-letter {
        display: none;
    }
    
    .pcw-view-toggle {
        flex-direction: column;
        width: 100%;
    }
    
    .pcw-calendar-day {
        min-height: 60px;
        padding: 4px;
    }
    
    .pcw-calendar-event {
        font-size: 10px;
    }
    
    .pcw-calendar-event-link {
        padding: 2px 4px;
    }
    
    .pcw-calendar-navigation {
        padding: 12px 16px;
    }
    
    .pcw-calendar-month-title {
        font-size: 16px;
    }
}

/* Very small screens - event indicators approach */
@media (max-width: 800px) {
    /* Day headers - show single letters */
    .pcw-calendar-day-header .day-short {
        display: none;
    }
    
    .pcw-calendar-day-header .day-letter {
        display: inline;
    }
    
    .pcw-calendar-event {
        display: none; /* Hide event text on very small screens */
    }
    
    .pcw-calendar-day.pcw-calendar-day-has-events:after {
        display: inline-flex;
        height: 10px;
        width: 10px;
        background: #2271b1;
        content: '';
        border-radius: 10px;
        align-items: center;
        position: absolute;
        bottom: 8px;
        right: 8px;
    }
    
    .pcw-calendar-day.has-events {
        position: relative;
    }
    
    /* Show event details below calendar on mobile */
    .pcw-calendar-event-details {
        margin-top: 16px;
        padding: 16px;
        background: #f8f9fa;
        border-radius: 8px;
        display: none;
    }
    
    .pcw-calendar-event-details.active {
        display: block;
    }
    
    .pcw-calendar-event-details h4 {
        margin: 0 0 8px 0;
        font-size: 16px;
        color: #1a1a1a;
    }
    
    .pcw-calendar-event-details p {
        margin: 0 0 4px 0;
        font-size: 14px;
        color: #666;
    }
}

/* Hide event details on larger screens */
@media (min-width: 800px) {
    .pcw-calendar-event-details.active {
        display: none;
    }
}

/* Single Event Page */
.pcw-event-single {
    max-width: 1200px;
	width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Mobile-first DOM order for single event pages */
/* Mobile: DOM order = visual order (no tricks needed) */
.pcw-event-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Dual image approach - show/hide based on screen size */
.pcw-mobile-only {
    display: block;
}

.pcw-desktop-only {
    display: none;
}

/* Desktop/tablet up: Use CSS Grid to reorder */
@media (min-width: 768px) {
    .pcw-event-layout {
        display: grid;
        grid-template-columns: 350px 1fr;
        gap: 40px;
        grid-template-areas: 
            "sidebar header"
            "sidebar content"
            "sidebar taxonomies";
        align-items: start; /* Prevent stretching to match sidebar height */
    }
    
    .pcw-event-information {
        grid-area: sidebar;
    }
    
    .pcw-event-header {
        grid-area: header;
    }
    
    .pcw-event-content {
        grid-area: content;
        align-self: start; /* Align content to top of grid area */
    }
    
    .pcw-event-taxonomies {
        grid-area: taxonomies;
    }
    
    /* Featured image stays in sidebar (DOM order) */
    .pcw-event-featured-image {
        /* No grid-area needed - stays in natural DOM order within sidebar */
    }
    
    /* Hide mobile image, show desktop image */
    .pcw-mobile-only {
        display: none;
    }
    
    .pcw-desktop-only {
        display: block;
    }
}

@media (max-width: 968px) {
    .pcw-event-layout {
        grid-template-columns: 300px 1fr;
    }
}

/* Sidebar positioning for desktop */
@media (min-width: 768px) {
    .pcw-event-information {
        position: sticky;
       /* top: 20px; */
    }
}

.pcw-event-featured-image {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pcw-event-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.pcw-event-information-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e1e5e9;
}

.pcw-event-featured-image.pcw-desktop-only {
    margin-bottom: 20px;
}

.pcw-event-information h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 8px;
}

.pcw-event-meta {
    margin-bottom: 24px;
}

.pcw-meta-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dotted #dcdcde;
}

.pcw-meta-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pcw-meta-item strong {
    color: #2271b1;
    font-weight: 600;
}

.pcw-next-occurrences {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e1e5e9;
    margin-top: 16px;
}

.pcw-next-occurrences h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 8px;
}

.pcw-next-occurrences ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pcw-next-occurrences li {
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    transition: all 0.2s ease;
}

.pcw-next-occurrences li:last-child {
    margin-bottom: 0;
}

.pcw-next-occurrences li:hover {
    background: #e3f2fd;
    border-color: #2271b1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.1);
}

.pcw-next-occurrences a {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: block;
    width: 100%;
}

.pcw-next-occurrences a:hover {
    color: #1a5a8a;
}

.pcw-event-main {
    min-width: 0; /* Prevent grid overflow */
}

.pcw-event-main .pcw-event-title {
    margin: 0 0 24px 0;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.pcw-event-main .pcw-event-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.pcw-event-main .pcw-event-content p {
    margin-bottom: 16px;
}

.pcw-event-main .pcw-event-content h2,
.pcw-event-main .pcw-event-content h3,
.pcw-event-main .pcw-event-content h4 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.pcw-event-taxonomies p {
    margin-bottom: 8px;
    font-size: 14px;
}

.pcw-event-taxonomies strong {
    color: #2271b1;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pcw-event-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .pcw-event-sidebar {
        position: static;
    }
    
    .pcw-event-main .pcw-event-title {
        font-size: 24px;
    }
}

.pcw-event-article {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pcw-event-header {
    padding: 20px 30px 16px;
    background: linear-gradient(135deg, #f8f9fa, #e8f0fe);
    border-bottom: 1px solid #e1e5e9;
}

.pcw-event-title {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.2;
}

.pcw-event-meta {
    display: grid;
    gap: 12px;
}

.pcw-event-meta p {
    margin: 0;
    font-size: 16px;
    color: #50575e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pcw-event-meta strong {
    color: #1d2327;
    min-width: 100px;
    flex-shrink: 0;
}

.pcw-event-occurrence {
    background: #e8f0fe;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
    font-weight: 500;
}

/* Featured Image */
.pcw-event-featured-image {
    margin: 0;
}

.pcw-event-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Event Content */
.pcw-event-content {
    padding: 0 30px;
    font-size: 16px;
    line-height: 1.6;
    color: #1d2327;
}

.pcw-event-content h2,
.pcw-event-content h3,
.pcw-event-content h4 {
    color: #1d2327;
    margin-top: 24px;
    margin-bottom: 12px;
}

.pcw-event-content p {
    margin-bottom: 16px;
}

/* Taxonomies */
.pcw-event-taxonomies {
    padding: 20px 30px;
   /* background: #f8f9fa; */
    border-top: 1px solid #e1e5e9;
}

.pcw-event-taxonomies p,
.pcw-event-organizers strong {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #50575e;
}

.pcw-event-taxonomies strong {
    color: #1d2327;
    margin-right: 8px;
}

/* Recurrence Information */
.pcw-event-recurrence {
    padding: 20px 30px;
    background: #f0f6fc;
    border-top: 1px solid #e1e5e9;
}

.pcw-event-recurrence h3 {
    margin: 0 0 16px 0;
    color: #1d2327;
    font-size: 18px;
}

.pcw-event-recurrence p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #50575e;
}

.pcw-event-recurrence ul {
    margin: 8px 0 16px 20px;
    color: #646970;
}

.pcw-event-recurrence li {
    margin-bottom: 4px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pcw-events-list {
        gap: 16px;
    }
    
    .pcw-event-card {
        flex-direction: column;
    }
    
    .pcw-event-content {
        padding: 16px;
    }
    
    .pcw-event-single {
        padding: 10px;
    }
    
    .pcw-event-header {
        padding: 20px;
    }
    
    .pcw-event-title {
        font-size: 24px;
    }
    
    .pcw-event-content {
        padding: 20px;
    }
    
    .pcw-event-taxonomies,
    .pcw-event-recurrence {
        padding: 16px 20px;
    }
    
    .pcw-event-meta p {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .pcw-meta-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .pcw-event-header {
        padding: 16px;
    }
    
    .pcw-event-title {
        font-size: 20px;
    }
    
    .pcw-event-content {
        padding: 16px;
    }
    
    .pcw-event-taxonomies,
    .pcw-event-recurrence {
        padding: 12px 16px;
    }
}

/* Print Styles */
@media print {
    .pcw-event-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .pcw-event-link {
        display: none;
    }
    
    .pcw-event-single {
        max-width: none;
        padding: 0;
    }
    
    .pcw-event-article {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Venue Modal Styles */
.pcw-venue-link {
    background: none;
    border: none;
    color: #2271b1;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 4px;
    margin: 0;
    display: inline-block;
    position: relative;
}

/* .pcw-venue-link::after {
    content: " 📍";
    font-size: 0.8em;
    opacity: 0.7;
} */

.pcw-venue-link:hover,
.pcw-venue-link:focus {
    color: #135e96;
    text-decoration: none;
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    background: #FFF;
}

.pcw-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pcw-modal.active {
    opacity: 1;
    visibility: visible;
}

.pcw-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.pcw-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    width: 600px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.pcw-modal.active .pcw-modal-content {
    transform: scale(1);
}

.pcw-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    background: #f9f9f9;
}

.pcw-modal-title {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.pcw-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.pcw-modal-close:hover,
.pcw-modal-close:focus {
    background: #e0e0e0;
    color: #333;
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.pcw-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.pcw-venue-map {
    width: 100%;
    height: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.pcw-venue-details h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.pcw-venue-info {
    margin-bottom: 10px;
    line-height: 1.5;
}

.pcw-venue-info strong {
    color: #333;
}

.pcw-venue-info a {
    color: #2271b1;
    text-decoration: none;
}

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

/* Responsive modal */
@media (max-width: 768px) {
    .pcw-modal-content {
        width: 95vw;
        max-height: 95vh;
    }
    
    .pcw-modal-header {
        padding: 15px;
    }
    
    .pcw-modal-body {
        padding: 15px;
    }
    
    .pcw-venue-map {
        height: 250px;
    }
}

/* Focus management for accessibility */
.pcw-modal:focus {
    outline: none;
}

.pcw-modal-content:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Past events styling */
.pcw-calendar-event-past {
    opacity: 0.6;
    background-color: #f5f5f5 !important;
    border-color: #ddd !important;
}

.pcw-calendar-event-past .pcw-calendar-event-link {
    color: #000000 !important;
    background: #FFF;
}

.pcw-calendar-event-past:hover {
    opacity: 0.8;
}

/* Past events in list view */
.pcw-event-card.pcw-event-past {
    opacity: 0.7;
    background-color: #f9f9f9;
    border-color: #e0e0e0;
}

.pcw-event-card.pcw-event-past .pcw-event-title {
    color: #666;
}

/* Highlighted events styling */
.pcw-calendar-event-highlight a {
    background-color: #9e5d0f !important;
    border-color: #ff7f00 !important;
    color: white !important;
}

.pcw-calendar-event-highlight .pcw-calendar-event-link {
    color: white !important;
}

.pcw-calendar-event-highlight:hover {
    background-color: #ff7f00 !important;
}

/* Highlighted events in list view */
.pcw-event-card.pcw-event-highlight {
    background-color: #fff3e0;
    border-color: #ff8c00;
    border-width: 2px;
}

.pcw-event-card.pcw-event-highlight .pcw-event-title {
    color: #e65100;
}

.pcw-event-card.pcw-event-highlight .pcw-event-meta {
    color: #bf360c;
}

/* Past event notice */
.pcw-past-event-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 15px;
    color: #856404;
    font-size: 14px;
}

/* Enhanced Organizer Styles */
.pcw-organizer-list {
    margin-top: 10px;
}

.pcw-organizer-item {
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #2271b1;
}

.pcw-organizer-item strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.pcw-organizer-description {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.pcw-organizer-contact {
    margin-top: 8px;
}

.pcw-organizer-link {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 5px;
    padding: 4px 8px;
    background: #2271b1;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.pcw-organizer-link:hover,
.pcw-organizer-link:focus {
    background: #135e96;
    color: white;
    text-decoration: none;
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* No events message for filtered months */
.pcw-no-events-month {
    display: none;
    text-align: center;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
    width: 100%;
    padding: 40px 20px;
}

.pcw-no-events-month p {
    margin: 0;
    font-size: 16px;
}

/* Focus states for accessibility */
.pcw-month-btn:focus,
.pcw-view-btn:focus {
    outline: 2px solid #2271b1 !important;
    outline-offset: 2px;
}

/* Event link styling and focus */
.pcw-event-link {
    width: 100%;
    position: relative;
}

.pcw-event-link:focus-visible::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 0 4px #2271b1;
    pointer-events: none;
    z-index: 1;
}

/* Ensure focus is visible */
.pcw-no-events-month:focus {
    outline: 2px solid #2271b1 !important;
    outline-offset: 2px;
}

/* Archive page styling */
.pcw-events-archive-page {
    padding: 20px 0;
}

.pcw-events-archive-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pcw-events-archive-page .page-title {
    margin-bottom: 30px;
    font-size: 2.5em;
    color: #1d2327;
    text-align: center;
}
