/* Artive Workshops Plugin Styles */

.artive-workshop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.artive-workshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.artive-workshop-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.artive-workshop-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.artive-workshop-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #333;
}

.artive-workshop-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.artive-workshop-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.artive-workshop-seats {
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 10px;
}

.artive-workshop-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2ecc71;
    margin-bottom: 15px;
}

.artive-workshop-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.artive-workshop-button:hover {
    background-color: #2980b9;
}

/* Calendar Styles */
.artive-workshop-calendar {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.artive-workshop-calendar th,
.artive-workshop-calendar td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.artive-workshop-calendar th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.artive-workshop-calendar .has-workshop {
    background-color: #e8f4f8;
    cursor: pointer;
}

.artive-workshop-calendar .has-workshop:hover {
    background-color: #d4e9f1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .artive-workshop-grid {
        grid-template-columns: 1fr;
    }
    
    .artive-workshop-calendar {
        font-size: 0.9rem;
    }
}

.workshop-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

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

.workshop-image {
    position: relative;
    padding-top: 25px; 
    overflow: hidden;
}

.workshop-meta .workshop-meta-item span:before {
    width: 0 !important;
}

.workshop-meta-item .woocommerce-Price-amount.amount bdi {
    display: inline-flex;
}

.workshop-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workshop-content {
    padding: 20px;
}

.workshop-content h3 {
    margin: 0 0 15px;
    font-size: 1.25em;
}

.workshop-content h3 a {
    color: #333;
    text-decoration: none;
}

.workshop-content h3 a:hover {
    color: #2271b1;
}

.workshop-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9em;
    justify-content: space-evenly;
}

.workshop-meta span {
    display: flex;
    align-items: center;
}

.workshop-meta span:before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    background-size: contain;
    background-repeat: no-repeat;
}

.workshop-meta .date:before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM5 8V6h14v2H5zm2 4h10v2H7v-2zm0 4h7v2H7v-2z"/></svg>');
}

.workshop-meta .time:before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"/></svg>');
}

.workshop-instructor,
.workshop-location,
.workshop-price,
.workshop-seats {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.workshop-instructor .label,
.workshop-location .label,
.workshop-price .label,
.workshop-seats .label {
    font-weight: 600;
    color: #333;
    margin-right: 5px;
}

.workshop-price .value {
    color: #2271b1;
    font-weight: 600;
    font-size: 1.1em;
}

.workshop-min-seats-warning {
    background: #fff8e5;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 0.9em;
}

.workshop-actions {
    margin-top: 15px;
}

.workshop-actions .button {
    width: 100%;
    text-align: center;
    padding: 10px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.workshop-actions .button:hover {
    background: #135e96;
}

.workshop-actions .button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.workshop-actions .button.disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Grid Layout */
.artive-workshops-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.artive-workshops-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.artive-workshops-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.artive-workshops-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .artive-workshops-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .artive-workshops-grid.columns-3,
    .artive-workshops-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .artive-workshops-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Workshop Grid Layout */
.workshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* 4 Column Grid Layout */
.workshop-grid-4-columns {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .workshop-grid-4-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .workshop-grid-4-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .workshop-grid-4-columns {
        grid-template-columns: 1fr;
    }
}

.workshop-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* border: 1px solid #e1e5e9; */
}

.workshop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.workshop-card.has-date {
    border-left: 4px solid #bda36f;
}

.workshop-card.no-date {
    border-left: 4px solid #ffc107;
    opacity: 0.9;
}

.workshop-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.workshop-content {
    padding: 0.6rem;
}

.workshop-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #2c3e50;
    line-height: 1.3;
}

.workshop-instructor {
    background: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.workshop-instructor i {
    margin-right: 0.5rem;
    color: #007bff;
}

.workshop-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.workshop-meta-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #6c757d;
}

.workshop-meta-item i {
    width: 16px;
    margin-right: 0.75rem;
    color: #007bff;
}

.workshop-meta-item.no-date {
    color: #ffc107;
    font-weight: 500;
    justify-content: center;
}

.workshop-meta-item.no-date i {
    color: #ffc107;
}

.workshop-prerequisites {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #856404;
}

.workshop-next-available {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #155724;
}

.workshop-next-available i {
    color: #28a745;
    margin-right: 0.5rem;
}

.workshop-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.workshop-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 18px;
    text-wrap: auto;
}

.workshop-button.workshop-add-to-cart {
    background: #28a745;
    color: white;
}

.workshop-button.workshop-add-to-cart:hover {
    background: #218838;
    transform: translateY(-2px);
}

.workshop-button.workshop-waitlist {
    background: #dc3545;
    color: white;
}

.workshop-button.workshop-waitlist:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.workshop-button.workshop-notify {
    background: #ffc107;
    color: #212529;
}

.workshop-button.workshop-notify:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.workshop-button.workshop-calendar {
    background: #17a2b8;
    color: white;
}

.workshop-button.workshop-calendar:hover {
    background: #138496;
    transform: translateY(-2px);
}

.workshop-button:not(.workshop-add-to-cart):not(.workshop-waitlist):not(.workshop-notify):not(.workshop-calendar) {
    background: #6c757d;
    color: white;
}

.workshop-button:not(.workshop-add-to-cart):not(.workshop-waitlist):not(.workshop-notify):not(.workshop-calendar):hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* All Workshops Container */
.workshops-all-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.workshops-calendar-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.workshops-calendar-section h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
    text-align: center;
}

.workshops-list-section h3 {
    margin: 0 0 2rem 0;
    color: #2c3e50;
    font-size: 22px;
    text-align: center;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
    min-height: 110px;
}

/* Single Workshop Calendar */
.single-workshop-calendar {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.single-workshop-calendar h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
}

/* Workshop List Layout */
.workshop-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.workshop-list-item {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e1e5e9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workshop-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.workshop-list-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
}

.workshop-list-content {
    flex: 1;
    padding: 1.5rem;
}

.workshop-list-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    justify-content: center;
    min-width: 200px;
}

/* Calendar Styles */
.workshop-calendar {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* FullCalendar Event Styling */
.fc-event {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.2 !important;
    padding: 2px 4px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
}

.fc-event-title {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.2 !important;
    display: block !important;
}

.fc-event-time {
    font-weight: bold !important;
    margin-bottom: 2px !important;
}

.fc-event-title {
    font-weight: normal !important;
    margin-top: 2px !important;
}

#workshop-calendar {
    min-height: 500px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .workshop-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .workshop-list-item {
        flex-direction: column;
    }
    
    .workshop-list-image {
        width: 100%;
        height: 200px;
    }
    
    .workshop-list-actions {
        min-width: auto;
        padding: 1rem 1.5rem;
    }
    
    .workshops-all-container {
        padding: 1rem 0.5rem;
    }
    
    .workshops-calendar-section,
    .single-workshop-calendar {
        padding: 1rem;
        margin: 1rem 0;
    }
}

/* Fallback Calendar */
.fallback-calendar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.fallback-calendar h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.25rem;
}

.fallback-calendar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fallback-calendar li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    color: #6c757d;
}

.fallback-calendar li:last-child {
    border-bottom: none;
}

.fallback-calendar li strong {
    color: #2c3e50;
    margin-right: 0.5rem;
}

/* Date Selection Modal - REMOVED - Using inline dropdowns instead */

/* Workshop Select Date Button */
.workshop-button.workshop-select-date {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.workshop-button.workshop-select-date:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.workshop-button.workshop-select-date::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.workshop-button.workshop-select-date:hover::before {
    left: 100%;
}

/* Responsive Modal */
@media (max-width: 768px) {
    #artive-workshop-date-selection-modal .modal-dialog {
        margin: 1rem;
    }
    
    #artive-workshop-date-selection-modal .modal-body {
        padding: 1.5rem;
    }
    
    #artive-workshop-date-selection-modal .modal-footer {
        padding: 1rem 1.5rem;
    }
}

/* Single Workshop Page Styles */
.workshop-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.workshop-single-content {
    background: #fff;
    border-radius: 8px;
}

.workshop-single-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.workshop-single-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.workshop-single-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.workshop-single-meta .workshop-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: #fff;
}

.workshop-single-meta .workshop-meta-item i {
    font-size: 1.2rem;
    opacity: 0.9;
}

.workshop-single-content-wrapper {
    padding: 2rem;
}

.workshop-single-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.workshop-single-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.workshop-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.workshop-single-description {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

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

.workshop-prerequisites {
    background: #f8f9fa;
    padding: 0.3rem;
    border-radius: 8px;
    border-left: 4px solid #bda36f;
    font-size: 0.7rem;
}

.workshop-prerequisites h3 {
    color: #007bff;
    margin-bottom: 1rem;
}

.workshop-single-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.workshop-single-actions .workshop-button {
    flex: 1;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

/* Workshop Sidebar Styles */
.workshop-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.workshop-info-card,
.workshop-instructor-card,
.workshop-location-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.workshop-info-card h3,
.workshop-instructor-card h3,
.workshop-location-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.workshop-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.workshop-info-item:last-child {
    border-bottom: none;
}

.workshop-info-item strong {
    color: #495057;
    font-weight: 600;
}

.workshop-info-item span {
    color: #6c757d;
    font-weight: 500;
}

.seats-available {
    color: #28a745 !important;
    font-weight: 600;
}

.seats-full {
    color: #dc3545 !important;
    font-weight: 600;
}

/* Progress Bar for Seats */
.workshop-seats-progress {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
}

.workshop-seats-progress small {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Instructor Styles */
.instructor-info {
    text-align: center;
    padding: 1rem 0;
}

.instructor-info h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.instructor-info p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.instructor-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #007bff;
    margin: 0 auto 1rem;
    display: block;
}

/* Location Styles */
.location-info h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.location-info p {
    color: #6c757d;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #007bff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.location-map-link:hover {
    background: #007bff;
    color: #fff;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .workshop-single-content-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .workshop-single-header {
        padding: 1.5rem 1rem;
    }
    
    .workshop-single-title {
        font-size: 2rem;
    }
    
    .workshop-single-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .workshop-single-actions {
        flex-direction: column;
    }
    
    .workshop-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Animation for cards */
.workshop-info-card,
.workshop-instructor-card,
.workshop-location-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workshop-info-card:hover,
.workshop-instructor-card:hover,
.workshop-location-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Full-width Workshop Template Styles */
.workshop-fullwidth .workshop-single-content-wrapper-fullwidth {
    padding: 2rem;
}

.workshop-single-main-fullwidth {
    max-width: 100%;
}

.workshop-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.workshop-detail-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workshop-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.workshop-detail-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #AF935D;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.workshop-detail-card h3 i {
    color: #007bff;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item strong {
    color: #495057;
    font-weight: 600;
}

.detail-item span {
    color: #6c757d;
    font-weight: 500;
}

/* Full-width Instructor Styles */
.instructor-info-fullwidth {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.instructor-image-fullwidth {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #007bff;
    flex-shrink: 0;
}

.instructor-details {
    flex: 1;
}

.instructor-details h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.instructor-details p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Full-width Location Styles */
.location-info-fullwidth h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.location-info-fullwidth p {
    color: #6c757d;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Design for Full-width */
@media (max-width: 768px) {
    .workshop-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .instructor-info-fullwidth {
        flex-direction: column;
        text-align: center;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .workshop-fullwidth .workshop-single-content-wrapper-fullwidth {
        padding: 1rem;
    }
}

/* Hide default WordPress sidebar for workshop pages */
.workshop-no-sidebar #secondary,
.workshop-no-sidebar .sidebar,
.workshop-no-sidebar aside,
.workshop-no-sidebar .widget-area,
.workshop-no-sidebar .sidebar-primary,
.workshop-no-sidebar .sidebar-secondary {
    display: none !important;
}

.workshop-no-sidebar .content-area,
.workshop-no-sidebar .main-content,
.workshop-no-sidebar .site-main,
.workshop-no-sidebar .container .row > div:not(.workshop-single-container) {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.workshop-no-sidebar .site-content {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure workshop container takes full width */
.workshop-no-sidebar .workshop-single-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 2rem 1rem !important;
}

/* Hide theme-specific sidebars */
.workshop-no-sidebar .col-md-3,
.workshop-no-sidebar .col-md-4,
.workshop-no-sidebar .col-lg-3,
.workshop-no-sidebar .col-lg-4 {
    display: none !important;
}

.workshop-no-sidebar .col-md-9,
.workshop-no-sidebar .col-md-8,
.workshop-no-sidebar .col-lg-9,
.workshop-no-sidebar .col-lg-8 {
    width: 100% !important;
    max-width: 100% !important;
} 


.single-artive_workshop .content_wrap,
.single-artive_workshop .content_container {
    width: 100%;
}
.workshop-single-article {
    display: flex;
    flex-direction: row;
}
.workshop-single-content-wrapper {
    width: 65%;
}
.workshop-single-content-wrapper-sidebar {
    width: 35%;
}
.single-artive_workshop .content_wrap .content {
    width: auto !important;
}

.single-artive_workshop .workshop-single-image {
    box-shadow: none !important;
}

.single-artive_workshop .workshop-single-image img {
    width: 200px;
    display: flex;
    justify-self: center;
}

@media (max-width: 980px) {
    .workshop-single-article {
        flex-direction: column-reverse;
    }
    .workshop-single-content-wrapper {
        width: 100%;
    }
    .workshop-single-content-wrapper-sidebar {
        width: 100%;
    }
}

/* Custom Tooltip Styles */
.custom-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    z-index: 1000;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-tooltip.show {
    opacity: 1;
}

/* Tooltip arrow */
.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* Workshop event tooltip content */
.workshop-event-tooltip h4 {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.workshop-event-tooltip p {
    margin: 4px 0;
    color: #e0e0e0;
    font-size: 13px;
}

.workshop-event-tooltip .price {
    color: #4CAF50;
    font-weight: 600;
}

.workshop-event-tooltip .seats {
    color: #FFC107;
    font-weight: 500;
}

.workshop-event-tooltip .instructor {
    color: #2196F3;
    font-style: italic;
}

/* Tooltip themes */
.custom-tooltip.theme-light {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 1px solid #ddd;
}

.custom-tooltip.theme-light::after {
    border-top-color: rgba(255, 255, 255, 0.95);
}

.custom-tooltip.theme-light .workshop-event-tooltip h4 {
    color: #333;
}

.custom-tooltip.theme-light .workshop-event-tooltip p {
    color: #666;
}

.custom-tooltip.theme-blue {
    background: rgba(33, 150, 243, 0.95);
    color: white;
}

.custom-tooltip.theme-blue::after {
    border-top-color: rgba(33, 150, 243, 0.95);
}

.custom-tooltip.theme-green {
    background: rgba(76, 175, 80, 0.95);
    color: white;
}

.custom-tooltip.theme-green::after {
    border-top-color: rgba(76, 175, 80, 0.95);
}

.custom-tooltip.theme-purple {
    background: rgba(156, 39, 176, 0.95);
    color: white;
}

.custom-tooltip.theme-purple::after {
    border-top-color: rgba(156, 39, 176, 0.95);
}

/* Mobile Calendar Styles */
@media (max-width: 768px) {
    /* Hide monthly calendar on mobile, show only list view */
    .fc-month-view {
        display: none !important;
    }
    
    /* Force list view on mobile */
    .fc-list-view {
        display: block !important;
    }
    
    /* Hide view switcher buttons on mobile */
    .fc-toolbar-chunk .fc-button-group {
        display: none !important;
    }
    
    /* Show mobile day view */
    .mobile-day-view {
        display: block !important;
    }
    
    /* Mobile day navigation */
    .mobile-calendar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8f9fa;
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .mobile-calendar-nav button {
        background: #007bff;
        color: white;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        cursor: pointer;
        font-size: 0.9rem;
        transition: background 0.3s ease;
    }
    
    .mobile-calendar-nav button:hover {
        background: #0056b3;
    }
    
    .mobile-calendar-nav button:disabled {
        background: #6c757d;
        cursor: not-allowed;
    }
    
    /* Mobile tooltip adjustments */
    .custom-tooltip {
        max-width: 250px;
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .mobile-current-date {
        font-weight: 600;
        font-size: 1.1rem;
        color: #2c3e50;
        text-align: center;
        flex: 1;
        margin: 0 1rem;
    }
    
    /* Mobile day view container */
    .mobile-day-container {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        overflow: hidden;
    }
    
    .mobile-day-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 1rem;
        text-align: center;
    }
    
    .mobile-day-title {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    
    .mobile-day-subtitle {
        font-size: 0.9rem;
        opacity: 0.9;
    }
    
    /* Mobile workshop cards */
    .mobile-workshop-card {
        border-bottom: 1px solid #e9ecef;
        padding: 1rem;
        transition: background 0.3s ease;
    }
    
    .mobile-workshop-card:last-child {
        border-bottom: none;
    }
    
    .mobile-workshop-card:hover {
        background: #f8f9fa;
    }
    
    .mobile-workshop-time {
        font-size: 0.8rem;
        color: #6c757d;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
    
    .mobile-workshop-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .mobile-workshop-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        font-size: 0.8rem;
    }
    
    .mobile-workshop-meta span {
        background: #e9ecef;
        padding: 0.25rem 0.5rem;
        border-radius: 12px;
        color: #495057;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
    
    .mobile-workshop-actions {
        display: flex;
        gap: 0.5rem;
    }
    
    .mobile-workshop-actions .workshop-button {
        flex: 1;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        border-radius: 4px;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
        text-decoration: none;
        display: inline-block;
    }
    
    /* No workshops message */
    .mobile-no-workshops {
        text-align: center;
        padding: 2rem 1rem;
        color: #6c757d;
    }
    
    .mobile-no-workshops i {
        font-size: 3rem;
        margin-bottom: 1rem;
        opacity: 0.5;
    }
    
    /* Week view for tablets */
    @media (min-width: 769px) and (max-width: 1024px) {
        .mobile-day-view {
            display: none !important;
        }
        
        .fc-month-view {
            display: block !important;
        }
        
        .fc-event {
            font-size: 0.8rem;
            padding: 2px 4px;
        }
    }
}

/* Hide mobile view on desktop */
@media (min-width: 769px) {
    .mobile-day-view {
        display: none !important;
    }
    
    .fc-month-view,
    .fc-list-view {
        display: block !important;
    }
}

/* Workshop Grid Date Selection */
.workshop-grid-date-selection {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.workshop-grid-date-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.workshop-grid-date-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.workshop-grid-date-select option {
    padding: 0.25rem;
    font-size: 0.85rem;
}

.workshop-add-to-cart-grid,
.workshop-waitlist-grid {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}

.workshop-add-to-cart-grid {
    background: #28a745;
    color: white;
}

.workshop-add-to-cart-grid:hover {
    background: #218838;
    transform: translateY(-1px);
}

.workshop-waitlist-grid {
    background: #ffc107;
    color: #212529;
}

.workshop-waitlist-grid:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

/* Responsive design for grid dropdown */
@media (max-width: 768px) {
    .workshop-grid-date-selection {
        gap: 0.375rem;
    }
    
    .workshop-grid-date-select {
        padding: 0.375rem;
        font-size: 0.85rem;
    }
    
    .workshop-add-to-cart-grid,
    .workshop-waitlist-grid {
        padding: 0.375rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .workshop-grid-date-select {
        padding: 0.25rem;
        font-size: 0.8rem;
    }
    
    .workshop-add-to-cart-grid,
    .workshop-waitlist-grid {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Simple Workshop Grid Styles */
.workshop-simple-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.workshop-simple-grid-2-columns {
    grid-template-columns: repeat(2, 1fr);
}

.workshop-simple-grid-3-columns {
    grid-template-columns: repeat(3, 1fr);
}

.workshop-simple-grid-4-columns {
    grid-template-columns: repeat(4, 1fr);
}

.workshop-simple-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e1e5e9;
}

.workshop-simple-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.workshop-simple-image {
    width: 100%;
    height: 200px;
    /* overflow: hidden; */
}

.workshop-simple-image .workshop-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.workshop-simple-content {
    padding: 1.5rem;
}

.workshop-simple-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #2c3e50;
    line-height: 1.3;
    min-height: 110px;
}

.workshop-simple-next-date,
.workshop-simple-no-date {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    min-height: 100px;
    justify-content: center;
}

.workshop-simple-next-date {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.workshop-simple-no-date {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.workshop-simple-next-date i,
.workshop-simple-no-date i {
    margin-right: 0.5rem;
    color: inherit;
}

.workshop-simple-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 1rem;
}

.workshop-simple-more {
    display: inline-block;
    padding: 0.75rem 5px;
    background: #bda36f;
    color: white !important;
    font-size: 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}
.workshop-simple-more br {
    display: none;
}

.workshop-simple-more:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive Design for Simple Grid */
@media (max-width: 1200px) {
    .workshop-simple-grid-4-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .workshop-simple-grid-3-columns,
    .workshop-simple-grid-4-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .workshop-simple-content {
        padding: 1rem;
    }
    
    .workshop-simple-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .workshop-simple-grid {
        grid-template-columns: 1fr !important;
    }
    
    .workshop-simple-image {
        height: 150px;
    }
}

/* Workshop Date Selection Styles */
.workshop-date-selection {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.workshop-date-selection label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.workshop-date-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.workshop-date-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.workshop-date-select option {
    padding: 0.5rem;
    font-size: 0.95rem;
}

/* Dynamic Workshop Details */
#workshop-dynamic-details {
    transition: opacity 0.3s ease;
}

#workshop-dynamic-details.show {
    opacity: 1;
}

#workshop-dynamic-actions {
    transition: opacity 0.3s ease;
}

#workshop-no-date-selected {
    text-align: center;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
    font-style: italic;
}

#workshop-no-date-selected p {
    margin: 0;
    font-size: 0.95rem;
}

/* Enhanced Detail Items */
.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.detail-item:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item strong {
    color: #495057;
    font-weight: 600;
    flex: 1;
}

.detail-item span {
    color: #6c757d;
    font-weight: 500;
    text-align: right;
}

/* Enhanced Progress Bar */
.workshop-seats-progress {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.5s ease;
    border-radius: 5px;
}

.workshop-seats-progress small {
    color: #6c757d;
    font-size: 0.875rem;
    display: block;
    text-align: center;
}

/* Responsive Design for Date Selection */
@media (max-width: 768px) {
    .workshop-date-selection {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .workshop-date-select {
        padding: 0.625rem 0.75rem;
        font-size: 0.95rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.5rem 0;
    }
    
    .detail-item span {
        text-align: left;
    }
}

/* Sidebar Workshop Details */
.workshop-details-list {
    margin-top: 1rem;
}

.workshop-details-list .workshop-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.workshop-details-list .workshop-info-item:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.workshop-details-list .workshop-info-item:last-child {
    border-bottom: none;
}

.workshop-details-list .workshop-info-item strong {
    color: #495057;
    font-weight: 600;
    flex: 1;
}

.workshop-details-list .workshop-info-item span {
    color: #6c757d;
    font-weight: 500;
    text-align: right;
}

/* Sidebar Workshop Actions */
.workshop-single-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.workshop-single-actions .workshop-button {
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.75rem 1.5rem;
    text-align: center;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.workshop-single-actions .workshop-button:last-child {
    margin-bottom: 0;
}

.workshop-single-actions .workshop-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Sidebar No Date Selected */
#workshop-no-date-selected {
    text-align: center;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
    font-style: italic;
    margin-top: 1rem;
}

#workshop-no-date-selected p {
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive Design for Sidebar */
@media (max-width: 768px) {
    .workshop-details-list .workshop-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.5rem 0;
    }
    
    .workshop-details-list .workshop-info-item span {
        text-align: left;
    }
    
    .workshop-single-actions .workshop-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }
}