/* Elementor Widget Styles for Hebrew Parasha & Shabbat Times */

/* Main Elementor Widget Container */
.hps-elementor-widget {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
    position: relative;
    overflow: hidden;
}

/* Elementor Editor Specific Styles */
.elementor-editor-active .hps-elementor-widget {
    min-height: 50px;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Basic Widget Full Width Fix - Force everything to full width */
.elementor-widget-hebrew-parasha-basic {
    width: 100% !important;
}

.elementor-widget-hebrew-parasha-basic .elementor-widget-container {
    width: 100% !important;
    max-width: none !important;
}

.elementor-widget-hebrew-parasha-basic .hps-basic-widget {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    display: block !important;
}

.elementor-widget-hebrew-parasha-basic .hps-basic-widget * {
    max-width: none !important;
}

.elementor-widget-hebrew-parasha-basic .hps-basic-widget .hps-display {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    display: block !important;
}

.elementor-widget-hebrew-parasha-basic .hps-basic-widget .hps-multi-city-container {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
}

.elementor-widget-hebrew-parasha-basic .hps-cities-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
}

/* Override any conflicting styles from the original plugin */
.elementor-widget-hebrew-parasha-basic .hps-basic-widget > div,
.elementor-widget-hebrew-parasha-basic .hps-basic-widget .hps-display,
.elementor-widget-hebrew-parasha-basic .hps-basic-widget .hps-multi-city-container,
.elementor-widget-hebrew-parasha-basic .hps-basic-widget .hps-cities-grid {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
}

/* City cards should also use full available width */
.elementor-widget-hebrew-parasha-basic .hps-city-card {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* Ultra-aggressive width fix - Widget container level */
.elementor-widget-hebrew-parasha-basic {
    width: 100% !important;
    flex: 1 1 100% !important;
    min-width: 100% !important;
}

/* Force the parent column to give full width */
.elementor-column .elementor-widget-hebrew-parasha-basic {
    width: 100% !important;
    flex-basis: 100% !important;
}

/* Force the section to not constrain width */
.elementor-section .elementor-container .elementor-column .elementor-widget-hebrew-parasha-basic {
    width: 100% !important;
}

.elementor-widget-hebrew-parasha-basic .elementor-widget-container {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
}

/* Widget content full width */
.elementor-widget-hebrew-parasha-basic .hps-basic-widget {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* All internal elements full width */
.elementor-widget-hebrew-parasha-basic .hps-basic-widget > * {
    width: 100% !important;
    max-width: none !important;
}

.elementor-widget-hebrew-parasha-basic .hps-display {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.elementor-widget-hebrew-parasha-basic .hps-multi-city-container {
    width: 100% !important;
    max-width: none !important;
}

.elementor-widget-hebrew-parasha-basic .hps-cities-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
}

/* RTL Icon Fix - Force icons to the right */
.elementor-widget-hebrew-parasha-basic .hps-time-icon {
    margin-right: 0 !important;
    margin-left: 12px !important;
    order: 1 !important;
    flex-shrink: 0 !important;
}

.elementor-widget-hebrew-parasha-basic .hps-time-item {
    direction: rtl !important;
    text-align: right !important;
    display: flex !important;
    align-items: center !important;
}

.elementor-widget-hebrew-parasha-basic .hps-time-details {
    flex: 1 !important;
    direction: rtl !important;
    text-align: right !important;
}

.elementor-widget-hebrew-parasha-basic .hps-time-label {
    direction: rtl !important;
    text-align: right !important;
}

.elementor-widget-hebrew-parasha-basic .hps-time-value {
    direction: ltr !important;
    text-align: right !important;
}

/* Force specific column layouts */
.elementor-widget-hebrew-parasha-basic .hps-cities-grid.hps-columns-1 { 
    grid-template-columns: 1fr !important; 
}
.elementor-widget-hebrew-parasha-basic .hps-cities-grid.hps-columns-2 { 
    grid-template-columns: repeat(2, 1fr) !important; 
}
.elementor-widget-hebrew-parasha-basic .hps-cities-grid.hps-columns-3 { 
    grid-template-columns: repeat(3, 1fr) !important; 
}
.elementor-widget-hebrew-parasha-basic .hps-cities-grid.hps-columns-4 { 
    grid-template-columns: repeat(4, 1fr) !important; 
}

.elementor-editor-active .hps-elementor-widget * {
    pointer-events: none;
}

/* Fix for Elementor preview mode */
.elementor-widget-hebrew-parasha-shabbat {
    direction: rtl;
}

.elementor-widget-hebrew-parasha-shabbat .elementor-widget-container {
    direction: rtl;
    text-align: right;
}

/* Style updating indicator */
.hps-style-updating {
    transition: opacity 0.2s ease;
}

.hps-style-updating .hps-elementor-widget {
    opacity: 0.8;
}

/* Force CSS recalculation for live preview */
.elementor-editor-active .elementor-widget-hebrew-parasha-shabbat .hps-elementor-widget {
    transform: translateZ(0); /* Force GPU acceleration for smoother updates */
}

/* Ensure all selectors work in editor mode */
.elementor-editor-active .hps-elementor-widget .hps-custom-title,
.elementor-editor-active .hps-elementor-widget .hps-section-title,
.elementor-editor-active .hps-elementor-widget .hps-parasha-name,
.elementor-editor-active .hps-elementor-widget .hps-parasha-english,
.elementor-editor-active .hps-elementor-widget .hps-time-label,
.elementor-editor-active .hps-elementor-widget .hps-time-value,
.elementor-editor-active .hps-elementor-widget .hps-time-icon,
.elementor-editor-active .hps-elementor-widget .hps-city-name,
.elementor-editor-active .hps-elementor-widget .hps-multi-title,
.elementor-editor-active .hps-elementor-widget .hps-parasha-title {
    transition: all 0.2s ease;
}

/* Ensure background and border changes are visible */
.elementor-editor-active .hps-elementor-widget,
.elementor-editor-active .hps-time-item,
.elementor-editor-active .hps-city-card,
.elementor-editor-active .hps-multi-parasha-header,
.elementor-editor-active .hps-time-row {
    transition: all 0.3s ease;
}

/* Layout Styles */
.hps-elementor-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hps-elementor-horizontal {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
}

.hps-elementor-horizontal .hps-parasha-section {
    flex: 1;
}

.hps-elementor-horizontal .hps-shabbat-section {
    flex: 1;
}

.hps-elementor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
}

/* Horizontal Times Layout */
.hps-horizontal-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px;
    justify-content: space-between;
}

.hps-horizontal-layout .hps-time-item {
    flex: 1;
    min-width: 0;
}

/* Grid Times Layout */
.hps-grid-layout {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Enhanced Section Headers */
.hps-elementor-widget .hps-section-header {
    position: relative;
    margin-bottom: 20px;
}

.hps-elementor-widget .hps-section-title {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0 0 10px 0;
}

.hps-elementor-widget .hps-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, currentColor 20%, currentColor 80%, transparent 100%);
    opacity: 0.3;
}

/* Enhanced Parasha Styling */
.hps-elementor-widget .hps-parasha-content {
    position: relative;
    padding: 15px 0;
}

.hps-elementor-widget .hps-parasha-name {
    position: relative;
    margin: 0 0 10px 0;
    line-height: 1.3;
    word-wrap: break-word;
}

.hps-elementor-widget .hps-parasha-english {
    margin: 0 0 8px 0;
    line-height: 1.4;
    opacity: 0.8;
}

.hps-elementor-widget .hps-parasha-date {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.7;
}

/* Enhanced Time Items */
.hps-elementor-widget .hps-time-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.hps-elementor-widget .hps-time-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.hps-elementor-widget .hps-time-item:hover::before {
    width: 8px;
    opacity: 0.8;
}

.hps-elementor-widget .hps-time-icon {
    flex-shrink: 0;
    margin-left: 12px;
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.hps-elementor-widget .hps-time-item:hover .hps-time-icon {
    transform: scale(1.1);
}

.hps-elementor-widget .hps-time-details {
    flex: 1;
    min-width: 0;
}

.hps-elementor-widget .hps-time-label {
    display: block;
    margin: 0 0 5px 0;
    font-weight: 600;
    line-height: 1.2;
}

.hps-elementor-widget .hps-time-value {
    display: block;
    font-weight: 700;
    font-size: 1.2em;
    line-height: 1;
    direction: ltr;
    text-align: right;
}

/* City Name Styling */
.hps-elementor-widget .hps-city-name {
    margin: 5px 0 0 0;
    opacity: 0.7;
    font-size: 0.9em;
    font-weight: normal;
}

/* Custom Title Styling */
.hps-elementor-widget .hps-custom-title {
    position: relative;
    margin: 0 0 25px 0;
    text-align: center;
    line-height: 1.3;
}

/* Hover Effects */
.hps-hover-enabled .hps-time-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hps-hover-enabled .hps-time-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: right 0.6s ease;
}

.hps-hover-enabled .hps-time-item:hover::after {
    right: 100%;
}

/* Error Styling */
.hps-elementor-widget .hps-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hps-elementor-widget .hps-error-icon {
    flex-shrink: 0;
    font-size: 1.5em;
    color: #dc3545;
}

.hps-elementor-widget .hps-error-message {
    flex: 1;
    color: #721c24;
    line-height: 1.5;
}

.hps-elementor-widget .hps-error-message strong {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hps-elementor-horizontal {
        flex-direction: column;
        gap: 20px;
    }
    
    .hps-elementor-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hps-horizontal-layout {
        flex-direction: column;
        gap: 10px;
    }
    
    .hps-grid-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .hps-elementor-widget .hps-time-item {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .hps-elementor-widget .hps-time-icon {
        font-size: 1.3em;
        margin-left: 10px;
    }
    
    .hps-elementor-widget .hps-time-value {
        font-size: 1.1em;
    }
    
    .hps-elementor-widget .hps-parasha-name {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    .hps-elementor-widget {
        padding: 10px;
    }
    
    .hps-elementor-vertical {
        gap: 15px;
    }
    
    .hps-elementor-widget .hps-time-item {
        padding: 10px;
        border-radius: 6px;
    }
    
    .hps-elementor-widget .hps-time-icon {
        font-size: 1.2em;
        margin-left: 8px;
    }
    
    .hps-elementor-widget .hps-custom-title {
        margin-bottom: 20px;
        font-size: 1.3em;
    }
}

/* RTL Enhancements */
[dir="rtl"] .hps-elementor-widget .hps-time-item::before {
    right: 0;
    left: auto;
}

[dir="rtl"] .hps-elementor-widget .hps-time-value {
    text-align: right;
}

[dir="rtl"] .hps-elementor-widget .hps-section-title::after {
    right: 0;
    left: auto;
}

/* Animation Keyframes */
@keyframes hps-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hps-slide-in-right {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Optional Animation Classes */
.hps-elementor-widget.hps-animate-fade .hps-parasha-section,
.hps-elementor-widget.hps-animate-fade .hps-shabbat-section {
    animation: hps-fade-in 0.6s ease-out;
}

.hps-elementor-widget.hps-animate-slide .hps-time-item {
    animation: hps-slide-in-right 0.4s ease-out;
}

.hps-elementor-widget.hps-animate-slide .hps-time-item:nth-child(2) {
    animation-delay: 0.1s;
}

.hps-elementor-widget.hps-animate-slide .hps-time-item:nth-child(3) {
    animation-delay: 0.2s;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .hps-elementor-widget {
        color: #e9ecef;
    }
    
    .hps-elementor-widget .hps-time-item {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .hps-elementor-widget .hps-time-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .hps-elementor-widget .hps-section-title::after {
        opacity: 0.5;
    }
}

/* Multi-City Specific Styles */
.hps-elementor-multi {
    direction: rtl;
    text-align: right;
}

.hps-multi-city-container .hps-multi-title {
    text-align: center;
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
    position: relative;
}

.hps-multi-city-container .hps-multi-parasha-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    border: 2px solid #3498db;
    position: relative;
    overflow: hidden;
}

.hps-multi-city-container .hps-parasha-title {
    font-size: 1.6em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.hps-multi-city-container .hps-parasha-english {
    font-size: 1.1em;
    color: #7f8c8d;
    font-style: italic;
    margin: 0;
    opacity: 0.9;
}

/* Cities Grid Layout */
.hps-cities-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

/* Default responsive grid */
.hps-cities-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* City Cards */
.hps-city-card {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.hps-city-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

.hps-hover-enabled .hps-city-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.hps-hover-enabled .hps-city-card:hover::before {
    width: 8px;
}

/* City Card Headers */
.hps-city-header {
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.2);
    position: relative;
}

.hps-city-card .hps-city-name {
    font-size: 1.4em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

/* City Times Container */
.hps-city-times {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Time Rows */
.hps-time-row {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border-right: 3px solid #3498db;
    transition: all 0.3s ease;
    position: relative;
}

.hps-time-row:nth-child(even) {
    border-right-color: #9b59b6;
}

.hps-hover-enabled .hps-time-row:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateX(-3px);
}

.hps-time-row .hps-time-icon {
    font-size: 1.3em;
    margin-left: 12px;
    min-width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.hps-hover-enabled .hps-time-row:hover .hps-time-icon {
    transform: scale(1.1);
}

.hps-time-row .hps-time-label {
    flex: 1;
    font-weight: 600;
    color: #34495e;
    font-size: 0.95em;
}

.hps-time-row .hps-time-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #e74c3c;
    direction: ltr;
    text-align: right;
    min-width: 60px;
}

/* City Error Styling */
.hps-city-error {
    text-align: center;
    color: #e74c3c;
    font-style: italic;
    padding: 15px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Multi Footer */
.hps-multi-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
    color: #95a5a6;
    font-size: 0.85em;
}

/* Card Style Variations */
.hps-city-card.hps-style-minimal {
    padding: 15px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.5);
}

.hps-city-card.hps-style-minimal .hps-city-header {
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    margin-bottom: 12px;
    padding-bottom: 8px;
}

.hps-city-card.hps-style-minimal .hps-time-row {
    padding: 8px;
    background-color: transparent;
    border-right: 2px solid #3498db;
}

.hps-city-card.hps-style-compact {
    padding: 12px;
    border-radius: 8px;
}

.hps-city-card.hps-style-compact .hps-city-name {
    font-size: 1.2em;
}

.hps-city-card.hps-style-compact .hps-time-row {
    padding: 8px;
    gap: 8px;
}

.hps-city-card.hps-style-compact .hps-time-icon {
    font-size: 1.1em;
    min-width: 25px;
}

/* Responsive Design for Multi-City */
@media (max-width: 1200px) {
    .hps-cities-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .hps-cities-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hps-city-card {
        padding: 15px;
    }
    
    .hps-multi-city-container .hps-multi-parasha-header {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .hps-multi-city-container .hps-parasha-title {
        font-size: 1.4em;
    }
    
    .hps-city-card .hps-city-name {
        font-size: 1.3em;
    }
    
    .hps-time-row {
        padding: 10px;
    }
    
    .hps-time-row .hps-time-icon {
        font-size: 1.2em;
        margin-left: 10px;
        min-width: 25px;
    }
    
    .hps-time-row .hps-time-value {
        font-size: 1.1em;
        min-width: 55px;
    }
}

@media (max-width: 480px) {
    .hps-multi-city-container .hps-multi-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    
    .hps-multi-city-container .hps-multi-parasha-header {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .hps-multi-city-container .hps-parasha-title {
        font-size: 1.3em;
    }
    
    .hps-city-card {
        padding: 12px;
        border-radius: 8px;
    }
    
    .hps-city-card .hps-city-name {
        font-size: 1.2em;
    }
    
    .hps-time-row {
        padding: 8px;
        gap: 8px;
    }
    
    .hps-time-row .hps-time-icon {
        font-size: 1.1em;
        margin-left: 8px;
        min-width: 20px;
    }
}

/* Animation for Multi-City Cards */
.hps-city-card {
    animation: hps-fade-in 0.6s ease-out;
}

.hps-city-card:nth-child(2) {
    animation-delay: 0.1s;
}

.hps-city-card:nth-child(3) {
    animation-delay: 0.2s;
}

.hps-city-card:nth-child(4) {
    animation-delay: 0.3s;
}

.hps-city-card:nth-child(5) {
    animation-delay: 0.4s;
}

/* RTL Enhancements for Multi-City */
[dir="rtl"] .hps-time-row {
    border-right: 3px solid #3498db;
    border-left: none;
}

[dir="rtl"] .hps-time-row .hps-time-value {
    text-align: right;
}

[dir="rtl"] .hps-city-card::before {
    right: 0;
    left: auto;
}

/* Table Style Layout */
.hps-table-style .hps-table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

.hps-table-style .hps-shabbat-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.hps-table-style .hps-table-header {
    background-color: #f0f0f0;
}

.hps-table-style .hps-table-header th {
    background-color: #f0f0f0;
    color: #333333;
    font-weight: 600;
    font-size: 1.1em;
    text-align: center;
    padding: 16px 20px;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
}

.hps-table-style .hps-table-header th:first-child {
    text-align: right;
}

.hps-table-style .hps-table-row {
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.hps-table-style .hps-table-row:nth-child(even) {
    background-color: #f8fbfd;
}

.hps-table-style .hps-table-row.hps-highlighted {
    background-color: #1a4b7f;
    color: #ffffff;
    font-weight: 600;
}

.hps-table-style .hps-table-row:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hps-table-style .hps-table-row.hps-highlighted:hover {
    background-color: #2c5aa0;
}

.hps-table-style .hps-city-cell {
    text-align: right;
    font-weight: 600;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.05em;
}

.hps-table-style .hps-time-cell {
    text-align: center;
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.1em;
    direction: ltr;
    font-family: 'Courier New', monospace;
}

.hps-table-style .hps-table-row.hps-highlighted .hps-city-cell,
.hps-table-style .hps-table-row.hps-highlighted .hps-time-cell {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Table responsive design */
@media (max-width: 768px) {
    .hps-table-style .hps-table-container {
        margin: 15px 0;
    }
    
    .hps-table-style .hps-shabbat-table {
        font-size: 0.9em;
    }
    
    .hps-table-style .hps-table-header th,
    .hps-table-style .hps-city-cell,
    .hps-table-style .hps-time-cell {
        padding: 12px 15px;
    }
    
    .hps-table-style .hps-table-header th {
        font-size: 1em;
    }
    
    .hps-table-style .hps-city-cell {
        font-size: 1em;
    }
    
    .hps-table-style .hps-time-cell {
        font-size: 1.05em;
    }
}

@media (max-width: 480px) {
    .hps-table-style .hps-table-container {
        margin: 10px 0;
        overflow-x: scroll;
    }
    
    .hps-table-style .hps-shabbat-table {
        min-width: 300px;
        font-size: 0.85em;
    }
    
    .hps-table-style .hps-table-header th,
    .hps-table-style .hps-city-cell,
    .hps-table-style .hps-time-cell {
        padding: 10px 12px;
    }
}

/* RTL enhancements for table */
[dir="rtl"] .hps-table-style .hps-shabbat-table {
    direction: rtl;
}

[dir="rtl"] .hps-table-style .hps-city-cell {
    text-align: right;
}

[dir="rtl"] .hps-table-style .hps-time-cell {
    text-align: center;
    direction: ltr;
}

/* Table animation */
.hps-table-style .hps-table-row {
    animation: hps-fade-in 0.6s ease-out;
}

.hps-table-style .hps-table-row:nth-child(2) {
    animation-delay: 0.1s;
}

.hps-table-style .hps-table-row:nth-child(3) {
    animation-delay: 0.2s;
}

.hps-table-style .hps-table-row:nth-child(4) {
    animation-delay: 0.3s;
}

.hps-table-style .hps-table-row:nth-child(5) {
    animation-delay: 0.4s;
}

/* Print Styles */
@media print {
    .hps-elementor-widget {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .hps-elementor-widget .hps-time-item {
        background: #f9f9f9 !important;
        break-inside: avoid;
    }
    
    .hps-elementor-widget .hps-time-item::before,
    .hps-elementor-widget .hps-time-item::after {
        display: none !important;
    }
    
    .hps-city-card {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .hps-city-card::before {
        display: none !important;
    }
    
    .hps-time-row {
        background: #f9f9f9 !important;
        border-right: 2px solid #666 !important;
    }
    
    .hps-table-style .hps-shabbat-table {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .hps-table-style .hps-table-header {
        background: #f0f0f0 !important;
    }
    
    .hps-table-style .hps-table-row.hps-highlighted {
        background: #e0e0e0 !important;
        color: black !important;
    }
}
