/* Custom Properties */
:root {
    --primary-color: #ff69b4;
    --primary-dark: #ff1493;
    --secondary-color: #2b0052;
    --secondary-dark: #1a0033;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --background-color: #000000;
    --card-radius: 8px;
    --transition-speed: 0.3s;
    --shadow-color: rgba(255, 20, 147, 0.3);
}

/* Container Styles */
.zygo-events-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--background-color);
}

/* Search Bar Styles */
.zygo-events-search {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

.zygo-events-search input {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.1em;
    background: var(--secondary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--card-radius);
    color: var(--text-color);
    outline: none;
    transition: all var(--transition-speed) ease;
    direction: rtl;
}

.zygo-events-search input:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 10px var(--shadow-color);
}

.zygo-events-search input::placeholder {
    color: var(--text-muted);
}

/* Filter Buttons Styles */
.zygo-events-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    direction: rtl;
}

.zygo-filter-button {
    padding: 8px 16px;
    background: var(--secondary-color);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 1em;
}

.zygo-filter-button:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.zygo-filter-button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}/* Event Card Styles */
.zygo-event-card {
    display: grid;
    grid-template-columns: 200px 30px 40px 30px 1fr 30px 40px;
    gap: 0;
    background: var(--secondary-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    height: 200px;
    align-items: stretch;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    transition: all var(--transition-speed) ease;
}

.zygo-event-card:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* Event Card Components */
.zygo-event-card .event-spacer {
    width: 30px;
    background: var(--secondary-dark);
    height: 120%;
    margin: -15px 0;
    align-self: stretch;
}

.zygo-event-card .event-image-wrapper {
    width: 200px;
    height: 100%;
    overflow: hidden;
}

.zygo-event-card .event-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.zygo-event-card .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.zygo-event-card .event-datetime {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 1.3em;
    color: var(--primary-color);
    font-weight: 500;
    height: 120%;
    margin: -15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px 0;
}

.zygo-event-card .event-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
    gap: 10px;
}

.zygo-event-card .event-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-color);
    margin: 0;
    text-align: center;
}

.zygo-event-card .event-summary {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 1.1em;
    text-align: center;
}

/* Event Button Styles */
.event-button {
    width: 40px !important;
    height: 120% !important;
    margin: -15px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: var(--secondary-dark) !important;
    color: var(--text-color) !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    transition: all var(--transition-speed) ease !important;
    position: relative !important;
    padding: 30px 0 !important;
    pointer-events: none;
}

.event-button::before {
    content: 'קנו כרטיס';
    writing-mode: vertical-rl !important;
    text-orientation: mixed !important;
    transform: rotate(0deg);
    font-size: 1em !important;
    letter-spacing: 1px !important;
    margin-bottom: 15px;
    display: block !important;
    visibility: visible !important;
}

.event-button::after {
    content: '↓';
    font-size: 20px;
    transform: rotate(180deg);
    margin-top: auto;
    display: block !important;
    visibility: visible !important;
}

/* Load More Button Styles */
.zygo-more-events {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 20px;
}

.zygo-more-events-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-color) !important;
    text-decoration: none;
    border-radius: 25px;
    transition: all var(--transition-speed) ease;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 4px 15px var(--shadow-color);
    font-size: 1.1em;
    cursor: pointer;
}

.zygo-more-events-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.5);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

/* Updated Simple Event Widget Styles */
.simple-event-card {
    text-align: center;
    margin: 0 auto;
    overflow: hidden;
    direction: rtl;
    max-width: 100%;
    background: var(--text-color, #ffffff);
    border-radius: var(--card-radius, 8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed, 0.3s) ease, 
                box-shadow var(--transition-speed, 0.3s) ease;
}

.simple-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.simple-event-card .event-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 0; /* Removed margin */
}

.simple-event-card .event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-speed, 0.3s) ease;
}

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

/* Added title container for separate styling */
.simple-event-card .event-title-container {
    padding: 15px 15px 10px;
    background-color: transparent; /* Title area stays white */
}

.simple-event-card .event-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--card-content-bg, #f8f8f8); /* Content area background */
    border-radius: 0 0 var(--card-radius, 8px) var(--card-radius, 8px);
}

.simple-event-card .event-title {
    width: 100%;
    text-align: center;
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #333;
    font-weight: 600;
}

/* Meta information row */
.simple-event-card .event-meta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 20px;
    margin-bottom: 15px;
}

/* Event details row (time, date, etc) */
.simple-event-card .event-details-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    width: 100%;
}

.simple-event-card .event-date,
.simple-event-card .event-time {
    display: inline-flex;
    align-items: center;
    color: var(--meta-color, #666666);
    font-size: 0.95em;
}

.simple-event-card .event-summary {
    margin-bottom: 15px;
    color: var(--summary-color, #444444);
    font-size: var(--summary-font-size, 0.95em);
    line-height: 1.5;
}

.simple-event-card .event-price {
    font-weight: 600;
    color: var(--price-color, #ff69b4);
    font-size: var(--price-font-size, 1.1em);
    margin-bottom: 15px;
}

.simple-event-card .event-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.simple-event-card .event-link {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--button-bg-color, #ff69b4);
    color: var(--button-text-color, #ffffff) !important;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
}

.simple-event-card .event-link:hover {
    background-color: var(--button-bg-hover, #ff1493);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 20, 147, 0.3);
}

/* Responsive Design */
@media (max-width: 767px) {
    .simple-event-card .event-meta-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .simple-event-card .event-details-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .simple-event-card .event-image-wrapper {
        height: 180px;
    }
}

/* RTL Support */
[dir="rtl"] .zygo-events-search input,
[dir="rtl"] .zygo-event-card .event-content,
[dir="rtl"] .zygo-filter-button {
    text-align: right;
}

/* Print Styles */
@media print {
    .zygo-events-search,
    .zygo-events-filters,
    .zygo-more-events,
    .event-button {
        display: none !important;
    }
}

.zygo-event-card {
    position: relative;
}

/* Badge Styles */
.zygo-event-card .event-image {
    position: relative;  /* Change this from the wrapper to the image div */
}

.event-badge-wrapper {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px;
    pointer-events: none;  /* So it doesn't interfere with card click */
}

.event-badge-wrapper.top-left {
    top: 0;
    left: 0;
}

.event-badge-wrapper.top-right {
    top: 0;
    right: 0;
}

.event-badge-wrapper.bottom-left {
    bottom: 0;
    left: 0;
}

.event-badge-wrapper.bottom-right {
    bottom: 0;
    right: 0;
}

.event-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 105, 180, 0.9);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.badge-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.zygo-more-events {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 20px;
}

.zygo-more-events-button {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-color);
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.2);
}

.zygo-more-events-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
}

.zygo-more-events-button.loading {
    opacity: 0.7;
    cursor: wait;
}

.zygo-more-events-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Search and Filter Styles */
.zygo-search-input {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 20px;
    border: 2px solid var(--primary-color);
    border-radius: var(--card-radius);
    background: var(--secondary-color);
    color: var(--text-color);
    font-size: 1.1em;
    direction: rtl;
}

.zygo-events-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    direction: rtl;
}

.zygo-filter-button {
    padding: 8px 16px;
    background: var(--secondary-color);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.zygo-filter-button:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.zygo-filter-button.active {
    background: var(--primary-color);
}

/* Movie Events Manual Widget Styles */
.elementor-widget-movie_zygo_event_manual .movie-events-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    direction: rtl;
}

.elementor-widget-movie_zygo_event_manual .movie-event-row {
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    gap: 20px;
    align-items: center;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.elementor-widget-movie_zygo_event_manual .movie-event-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.elementor-widget-movie_zygo_event_manual .event-image {
    width: 120px;
    height: 160px;
    overflow: hidden;
    border-radius: 4px;
}

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

.elementor-widget-movie_zygo_event_manual .movie-event-row:hover .event-image img {
    transform: scale(1.05);
}

.elementor-widget-movie_zygo_event_manual .event-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.elementor-widget-movie_zygo_event_manual .event-date {
    font-size: 0.9em;
    color: #888888;
}

.elementor-widget-movie_zygo_event_manual .event-title {
    font-size: 1.4em;
    font-weight: bold;
    margin: 0;
    color: #ffffff;
}

.elementor-widget-movie_zygo_event_manual .event-description {
    font-size: 1em;
    color: #cccccc;
    line-height: 1.4;
}

.elementor-widget-movie_zygo_event_manual .event-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.elementor-widget-movie_zygo_event_manual .event-button {
    display: inline-block;
    padding: 10px 20px;
    background: #ff69b4;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
    min-width: 100px;
}

.elementor-widget-movie_zygo_event_manual .event-button:hover {
    background: #ff1493;
    transform: translateY(-2px);
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .elementor-widget-movie_zygo_event_manual .movie-event-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }

    .elementor-widget-movie_zygo_event_manual .event-image {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .elementor-widget-movie_zygo_event_manual .event-content {
        text-align: center;
    }

    .elementor-widget-movie_zygo_event_manual .event-button-wrapper {
        margin-top: 10px;
    }

    .elementor-widget-movie_zygo_event_manual .event-button {
        width: 100%;
        max-width: 200px;
    }
}

/* RTL Support */
[dir="rtl"] .elementor-widget-movie_zygo_event_manual .event-content {
    text-align: right;
}

@media (max-width: 768px) {
    [dir="rtl"] .elementor-widget-movie_zygo_event_manual .event-content {
        text-align: center;
    }
}

/* Movie Manual Widget Styles */
.elementor-widget-movie_zygo_event_manual .manual-movie-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    direction: rtl;
}

.elementor-widget-movie_zygo_event_manual .manual-movie-row {
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    gap: 20px;
    align-items: center;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.elementor-widget-movie_zygo_event_manual .manual-movie-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.elementor-widget-movie_zygo_event_manual .manual-movie-image {
    width: 120px;
    height: 160px;
    overflow: hidden;
    border-radius: 4px;
}

.elementor-widget-movie_zygo_event_manual .manual-movie-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.elementor-widget-movie_zygo_event_manual .manual-movie-row:hover .manual-movie-image img {
    transform: scale(1.05);
}

.elementor-widget-movie_zygo_event_manual .manual-movie-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.elementor-widget-movie_zygo_event_manual .manual-movie-date {
    font-size: 0.9em;
    color: #888888;
}

.elementor-widget-movie_zygo_event_manual .manual-movie-title {
    font-size: 1.4em;
    font-weight: bold;
    margin: 0;
    color: #ffffff;
}

.elementor-widget-movie_zygo_event_manual .manual-movie-description {
    font-size: 1em;
    color: #cccccc;
    line-height: 1.4;
}

.elementor-widget-movie_zygo_event_manual .manual-movie-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.elementor-widget-movie_zygo_event_manual .manual-movie-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
    min-width: 120px;
    border: none;
}

.elementor-widget-movie_zygo_event_manual .manual-movie-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .elementor-widget-movie_zygo_event_manual .manual-movie-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }

    .elementor-widget-movie_zygo_event_manual .manual-movie-image {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .elementor-widget-movie_zygo_event_manual .manual-movie-content {
        text-align: center;
    }

    .elementor-widget-movie_zygo_event_manual .manual-movie-button-wrapper {
        margin-top: 10px;
    }

    .elementor-widget-movie_zygo_event_manual .manual-movie-button {
        width: auto;
        min-width: 140px;
        max-width: 200px;
    }
}

/* RTL Support */
[dir="rtl"] .elementor-widget-movie_zygo_event_manual .manual-movie-content {
    text-align: right;
}

@media (max-width: 768px) {
    [dir="rtl"] .elementor-widget-movie_zygo_event_manual .manual-movie-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .zygo-event-card[style*="display: none"] {
        display: none !important; /* Force none when hidden */
    }
}

/* Staff Widget CSS */
.zygo-staff-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.zygo-staff-filter-button {
    padding: 8px 16px;
    background-color: transparent;
    color: var(--text-color, #ffffff);
    border: none;
    border-radius: 0;
    font-size: 1em;
    cursor: pointer;
    transition: all var(--transition-speed, 0.3s) ease;
    opacity: 0.7;
}

.zygo-staff-filter-button:hover {
    opacity: 1;
}

.zygo-staff-filter-button.active {
    opacity: 1;
    text-decoration: underline;
}

.zygo-staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    direction: rtl;
    max-width: 1200px;
    margin: 0 auto;
}

.zygo-staff-card {
    background-color: #000000;
    border-radius: 0;
    overflow: hidden;
    transition: transform var(--transition-speed, 0.3s) ease;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.zygo-staff-card:hover {
    transform: translateY(-5px);
}

.zygo-staff-image-wrapper {
    width: 100%;
    overflow: hidden;
    height: 250px; /* Fixed height for image wrapper */
}

.zygo-staff-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-speed, 0.3s) ease;
    display: block;
    aspect-ratio: 1 / 1;
}

.zygo-staff-card:hover .zygo-staff-img {
    transform: scale(1.05);
}

.zygo-staff-name {
    margin: 0;
    padding: 10px 15px;
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-color, #ffffff);
    background-color: var(--primary-color, #ff69b4);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.zygo-staff-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    background-color: #000000;
    flex-grow: 1;
}

.zygo-staff-description {
    color: var(--text-muted, #cccccc);
    line-height: 1.5;
    text-align: center;
}

.zygo-staff-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color, #ff69b4);
    color: var(--text-color, #ffffff) !important;
    text-decoration: none;
    border-radius: 0;
    font-weight: 500;
    text-align: center;
    margin-top: auto;
    transition: all var(--transition-speed, 0.3s) ease;
    align-self: center;
}

.zygo-staff-button:hover {
    background-color: var(--primary-dark, #ff1493);
}

.zygo-staff-job-title {
    color: var(--primary-color, #ff69b4);
    font-size: 1em;
    font-weight: 500;
    margin-top: 5px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .zygo-staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .zygo-staff-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .zygo-staff-filters {
        justify-content: center;
    }
    
    .zygo-staff-card-content {
        padding: 15px;
    }
    
    .zygo-staff-name {
        font-size: 1.3em;
    }
}

/* Combined Movie Events Widget CSS */
.combined-movie-events-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    direction: rtl;
}

.manual-movie-row {
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    gap: 20px;
    align-items: center;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.manual-movie-row img {
    min-height: 160px;
}

.manual-movie-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.manual-movie-image {
    width: 120px;
    height: 160px;
    overflow: hidden;
    border-radius: 4px;
}

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

.manual-movie-row:hover .manual-movie-image img {
    transform: scale(1.05);
}

.manual-movie-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.manual-movie-date {
    font-size: 0.9em;
    color: #888888;
}

.manual-movie-title {
    font-size: 1.4em;
    font-weight: bold;
    margin: 0;
    color: #ffffff;
}

.manual-movie-description {
    font-size: 1em;
    color: #cccccc;
    line-height: 1.4;
}

.manual-movie-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.manual-movie-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color, #ff69b4) 0%, var(--primary-dark, #ff1493) 100%);
    color: var(--text-color, #ffffff);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color, rgba(255, 20, 147, 0.3));
    min-width: 120px;
    border: none;
}

.manual-movie-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
    color: var(--text-color, #ffffff);
    background: linear-gradient(135deg, var(--primary-dark, #ff1493) 0%, var(--primary-color, #ff69b4) 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .manual-movie-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }

    .manual-movie-image {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .manual-movie-content {
        text-align: center;
    }

    .manual-movie-button-wrapper {
        margin-top: 10px;
    }

    .manual-movie-button {
        width: auto;
        min-width: 140px;
        max-width: 200px;
    }
}

/* RTL Support */
[dir="rtl"] .manual-movie-content {
    text-align: right;
}

@media (max-width: 768px) {
    [dir="rtl"] .manual-movie-content {
        text-align: center;
    }
}

/* Responsive design for event cards on mobile */
@media (max-width: 767px) {
    .zygo-event-card {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        max-height: none !important;
        gap: 10px !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .zygo-event-card .event-image-wrapper {
        width: 100% !important;
        height: 150px !important; /* Reduced height */
    }
    
    .zygo-event-card .event-spacer {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
    }
    
    .zygo-event-card .event-datetime {
        writing-mode: horizontal-tb !important;
        width: 100% !important;
        padding: 5px 10px !important;
        margin: 0 !important;
        height: auto !important;
        text-align: center !important;
    }
    
    .zygo-event-card .event-content {
        width: 100% !important;
        padding: 10px !important;
    }
    
    .zygo-event-card .event-button {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 10px !important;
        writing-mode: horizontal-tb !important;
    }
    
    .zygo-event-card .event-button::before {
        writing-mode: horizontal-tb !important;
        margin-bottom: 0 !important;
    }
    
    .zygo-event-card .event-button::after {
        transform: rotate(90deg) !important;
    }
}

@media (max-width: 767px) {
    /* Base card fixes */
    .zygo-event-card {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
        padding: 0 !important;
    }
    
    /* Fix image wrapper */
    .zygo-event-card .event-image-wrapper {
        width: 100% !important;
        height: 180px !important;
        min-height: unset !important;
        max-height: 180px !important;
    }
    
    /* Fix all spacers */
    .zygo-event-card .event-spacer {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Fix the date element */
    .zygo-event-card .event-datetime {
        writing-mode: horizontal-tb !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 8px 10px !important;
        text-align: center !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    /* Fix the content area */
    .zygo-event-card .event-content {
        width: 100% !important;
        padding: 10px 15px !important;
    }
    
    /* Fix the button */
    .zygo-event-card .event-button {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 10px !important;
        writing-mode: horizontal-tb !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    .zygo-event-card .event-button::before {
        writing-mode: horizontal-tb !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .zygo-event-card .event-button::after {
        display: none !important;
    }
}

/* Updated Filter styles to match the staff widget */
.zygo-events-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.zygo-events-filters .zygo-filter-button {
    padding: 8px 16px;
    background-color: transparent;
    color: var(--text-color, #ffffff);
    border: none;
    border-radius: 0;
    font-size: 1em;
    cursor: pointer;
    transition: all var(--transition-speed, 0.3s) ease;
    opacity: 0.7;
}

.zygo-events-filters .zygo-filter-button:hover {
    opacity: 1;
}

.zygo-events-filters .zygo-filter-button.active {
    opacity: 1;
    text-decoration: underline;
}

/* Fix for improved-staff-widget styling */
.zygo-staff-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.zygo-staff-filter-button {
    padding: 8px 16px;
    background-color: transparent;
    color: var(--text-color, #ffffff);
    border: none;
    border-radius: 0;
    font-size: 1em;
    cursor: pointer;
    transition: all var(--transition-speed, 0.3s) ease;
    opacity: 0.7;
}

.zygo-staff-filter-button:hover {
    opacity: 1;
}

.zygo-staff-filter-button.active {
    opacity: 1;
    text-decoration: underline;
}

/* Fix for staff grid and cards */
.zygo-staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    direction: rtl;
    max-width: 1200px;
    margin: 0 auto;
}

.zygo-staff-card {
    background-color: #000000;
    border-radius: 0;
    overflow: hidden;
    transition: transform var(--transition-speed, 0.3s) ease;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.zygo-staff-image-wrapper {
    width: 100%;
    overflow: hidden;
    height: 250px;
}

.zygo-staff-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-speed, 0.3s) ease;
    display: block;
}

.zygo-staff-name {
    margin: 0;
    padding: 10px 15px;
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-color, #ffffff);
    background-color: var(--primary-color, #ff69b4);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.zygo-staff-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    background-color: #000000;
    flex-grow: 1;
}

.zygo-staff-description {
    color: var(--text-muted, #cccccc);
    line-height: 1.5;
    text-align: center;
}

.zygo-staff-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color, #ff69b4);
    color: var(--text-color, #ffffff) !important;
    text-decoration: none;
    border-radius: 0;
    font-weight: 500;
    text-align: center;
    margin-top: auto;
    transition: all var(--transition-speed, 0.3s) ease;
    align-self: center;
}

.zygo-staff-job-title {
    color: var(--primary-color, #ff69b4);
    font-size: 1em;
    font-weight: 500;
    margin-top: 5px;
    text-align: center;
}

/* Fix event card filter classes for proper category filtering */
.zygo-event-card.filter-movies,
.zygo-event-card.filter-movie,
.zygo-event-card.filter-film,
.manual-movie-row.filter-movies,
.manual-movie-row.filter-movie,
.manual-movie-row.filter-film {
    /* These will be targeted by the movie filter */
}

.zygo-event-card.filter-theater,
.zygo-event-card.filter-stage,
.manual-movie-row.filter-theater,
.manual-movie-row.filter-stage {
    /* These will be targeted by the theater filter */
}

.zygo-event-card.filter-this-month,
.manual-movie-row.filter-this-month {
    /* These will be targeted by the this-month filter */
}

.zygo-event-card.filter-members,
.manual-movie-row.filter-members {
    /* These will be targeted by the members filter */
}

/* Enhanced row styling with category filters */
.manual-movie-row {
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    gap: 20px;
    align-items: center;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .zygo-staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .zygo-staff-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .zygo-staff-filters,
    .zygo-events-filters {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .manual-movie-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .manual-movie-image {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .manual-movie-content {
        text-align: center;
    }
}

/* Ensure filters display in a row on mobile */
@media (max-width: 767px) {
    .zygo-staff-filters, 
    .zygo-events-filters {
      flex-direction: row !important;
      flex-wrap: wrap !important;
      justify-content: center !important;
      gap: 10px !important;
      width: 100% !important;
    }
    
    .zygo-staff-filter-button, 
    .zygo-filter-button {
      margin-bottom: 5px !important;
      font-size: 14px !important;
      padding: 6px 12px !important;
      width: auto !important;
      min-width: 80px !important;
    }
  }
  
  /* Fix to ensure filters are touchable on mobile */
  .zygo-staff-filter-button, 
  .zygo-filter-button {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
  }

  /* Fix for mobile filters - keep them in row */
@media (max-width: 767px) {
    .zygo-staff-filters, 
    .zygo-events-filters {
      flex-direction: row !important;
      flex-wrap: wrap !important;
      justify-content: center !important;
      gap: 10px !important;
    }
    
    .zygo-staff-filter-button, 
    .zygo-filter-button {
      margin-bottom: 5px !important;
      font-size: 14px !important;
      padding: 6px 12px !important;
    }
  }
  
  /* Fix for load more button on mobile */
  @media (max-width: 767px) {
    .zygo-more-events {
      width: 100% !important;
      padding: 15px 10px !important;
    }
    
    .zygo-more-events-button {
      display: block !important;
      width: 100% !important;
      max-width: 250px !important;
      margin: 0 auto !important;
      padding: 10px 15px !important;
    }
  }
  
  /* Fix for event cards on mobile */
  @media (max-width: 767px) {
    .zygo-event-card {
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
      display: flex !important;
      flex-direction: column !important;
    }
    
    .zygo-event-card .event-datetime {
      writing-mode: horizontal-tb !important;
      width: 100% !important;
      height: auto !important;
      margin: 0 !important;
      padding: 8px !important;
    }
    
    .zygo-event-card .event-button {
      width: 100% !important;
      height: auto !important;
      margin: 0 !important;
      display: flex !important;
      justify-content: center !important;
    }
    
    .zygo-event-card .event-button::before {
      writing-mode: horizontal-tb !important;
      transform: none !important;
      margin: 0 !important;
    }
    
    .zygo-event-card .event-button::after {
      transform: none !important;
      margin-left: 5px !important;
    }
  }

  /* Accessibility Improvements */
.zygo-filter-button:focus,
.zygo-more-events-button:focus,
.manual-movie-button:focus,
.zygo-events-filter-dropdown:focus {
  outline: 2px solid var(--primary-color);
  box-shadow: 0 0 5px var(--primary-color);
}

/* Screen reader text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.zygo-events-filter-container {
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}

.zygo-events-filter-dropdown {
    padding: 10px;
    border-radius: var(--card-radius);
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    min-width: 200px;
    cursor: pointer;
    direction: rtl;
    transition: all var(--transition-speed) ease;
}

.zygo-events-filter-dropdown:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 0 10px var(--shadow-color);
}

/* Stylize the optgroup and options */
.zygo-events-filter-dropdown optgroup {
    background-color: var(--secondary-dark);
    font-weight: bold;
}

.zygo-events-filter-dropdown option {
    background-color: var(--secondary-color);
    padding: 8px;
}

.zygo-filter-button .filter-count {
    font-size: 0.85em;
    opacity: 0.8;
    margin-left: 3px;
}