/* Define color variables */
:root {
    --brand-black: #000000;
    --brand-white: #ffffff;
    --brand-purple: #7d5bba;
    --text-muted: #6b7280;
    --brand-grayLight: #f3f4f6;
    --brand-purple-light: rgba(125, 91, 186, 0.15);
    --brand-purple-hover: rgba(125, 91, 186, 0.1);
    --brand-purple-active: rgba(125, 91, 186, 0.15);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Workshops Grid */
.workshops-grid {
    display: grid;
   grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Card */
.workshop-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: var(--brand-white);
    box-shadow: var(--shadow-soft);
}

/* Image wrapper */
.workshop-image-wrapper {
    position: relative;
    height: 14rem;
    width: 100%;
    background-color: rgba(243, 244, 246, 0.6);
}

/* Image */
.workshop-image {
    object-fit: cover;
    position: absolute;
    height: 100% !important;
    width: 100%;
    top: 0;
    left: 0;
    color: transparent;
}

/* Content */
.workshop-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

/* Header */
.workshop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Level badge */
.workshop-level {
    border-radius: 9999px;
    background-color: var(--brand-purple-light);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

/* Seats */
.workshop-seats {
    /* No additional styles */
}

/* Title */
.workshop-title {
    font-size: 1.5rem !important;
    font-family: 'Display Font', serif !important; /* Replace with your font */
    color: var(--brand-black) !important;
    margin-top: 10px !important;
    margin-bottom: 0px !important;
}

.workshop-title a {
    color: inherit;
    text-decoration: none;
}

/* Description */
.workshop-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 !important;
}

/* Details */
.workshop-details {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Footer */
.workshop-footer {
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px important;
}

/* Price wrapper */
.workshop-price-wrapper {
    /* No additional */
}

/* Price */
.workshop-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--brand-black);
}

/* Includes */
.workshop-includes {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Buttons wrapper */
.workshop-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Details button */
.workshop-details-btn {
    display: inline-flex;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-family: 'Body Font', sans-serif;
    font-weight: 500;
    letter-spacing: -0.025em;
    transition: all 0.3s ease-in-out;
    background-color: transparent;
    color: var(--brand-black);
    height: 3rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    font-size: 1rem;
    text-decoration: none;
}

.workshop-details-btn:hover {
    background-color: var(--brand-purple-hover);
}

.workshop-details-btn:active {
    background-color: var(--brand-purple-active);
}

.workshop-details-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--brand-purple), 0 0 0 4px #ffffff;
}

.workshop-details-btn:disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* Book button */
.workshop-book-btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-family: 'Body Font', sans-serif;
    font-weight: 500;
    letter-spacing: -0.025em;
    transition: all 0.3s ease-in-out;
    background-color: var(--brand-purple);
    color: var(--brand-white);
    box-shadow: var(--shadow-soft);
    height: 3rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    font-size: 1rem;
    min-width: 90px;
    border: none;
    cursor: pointer;
}

.workshop-book-btn:hover {
    background-color: #6f48b0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.workshop-book-btn:active {
    background-color: #633ea1;
}

.workshop-book-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--brand-purple), 0 0 0 4px #ffffff;
}

.workshop-book-btn:disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* Popup Modal */
.popup-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 50;
    width: 90vw;
    transform: translate(-50%, -50%);
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: #ffffff;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    outline: none;
    max-width: 28rem;
}

.popup-content > * + * {
    margin-top: 1.5rem;
}

/* Header */
.popup-header {
    margin-bottom: 0.5rem;
    text-align: left;
}

.popup-title {
    font-family: 'Display Font', serif;
    font-size: 1.5rem;
}

.popup-details {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Body */
.popup-body {
    margin-bottom: 1rem;
}

.popup-body > * + * {
    margin-top: 1rem;
}

.quantity-section,
.attendees-section {
    margin-bottom: 0.5rem;
}

.quantity-section > * + *,
.attendees-section > * + * {
    margin-top: 0.5rem;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-black);
}

/* Quantity Control */
.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: var(--brand-white);
    padding: 0.25rem 0.5rem;
    box-shadow: var(--shadow-soft);
}

.quantity-btn {
    display: inline-flex;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    padding: 0.5rem;
    font-family: 'Body Font', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    transition: all 0.3s ease-in-out;
    background-color: transparent;
    color: var(--brand-black);
    height: 2.75rem;
    width: 2.75rem;
    border: none;
    cursor: pointer;
}

.quantity-btn:hover {
    background-color: var(--brand-purple-hover);
}

.quantity-btn:active {
    background-color: var(--brand-purple-active);
}

.quantity-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--brand-purple), 0 0 0 4px #ffffff;
}

.quantity-btn:disabled {
    pointer-events: none;
    opacity: 0.6;
}

.quantity-value {
    min-width: 2ch;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-black);
}

/* Notes */
.quantity-note,
.attendees-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Textarea */
.attendees-textarea {
    min-height: 100px;
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: var(--brand-white);
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--brand-black);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    outline: none;
    resize: vertical;
}

.attendees-textarea:focus-visible {
    box-shadow: 0 0 0 2px var(--brand-purple), 0 0 0 4px #ffffff;
}

/* Footer */
.popup-footer {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .popup-footer {
        flex-direction: row;
        justify-content: flex-end;
    }
}

/* Buttons */
.cancel-btn,
.confirm-btn {
    display: inline-flex;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    font-family: 'Body Font', sans-serif;
    font-weight: 500;
    letter-spacing: -0.025em;
    transition: all 0.3s ease-in-out;
    font-size: 1rem;
    height: 3rem;
    outline: none;
    cursor: pointer;
}

.cancel-btn {
    background-color: transparent;
    color: var(--brand-black);
    border: none;
}

.cancel-btn:hover {
    background-color: var(--brand-purple-hover);
}

.cancel-btn:active {
    background-color: var(--brand-purple-active);
}

.cancel-btn:focus-visible {
    box-shadow: 0 0 0 2px var(--brand-purple), 0 0 0 4px #ffffff;
}

.cancel-btn:disabled {
    pointer-events: none;
    opacity: 0.6;
}

.confirm-btn {
    background-color: var(--brand-purple);
    color: var(--brand-white);
    box-shadow: var(--shadow-soft);
    border: none;
}

.confirm-btn:hover {
    background-color: #6f48b0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.confirm-btn:active {
    background-color: #633ea1;
}

.confirm-btn:focus-visible {
    box-shadow: 0 0 0 2px var(--brand-purple), 0 0 0 4px #ffffff;
}

.confirm-btn:disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* Close Button */
.close-btn {
    position: absolute;
    right: 1rem;
    top: 1rem;
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--brand-black);
    border: none;
    cursor: pointer;
}

.close-icon {
    height: 1.25rem;
    width: 1.25rem;
}

/* SR Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}



/* Workshops Card Grid Layout */
.workshops-card-grid {
    display: grid;
    gap: 24px;
    margin: 0 auto;
    max-width: 1200px;
}

.workshops-columns-1 {
    grid-template-columns: 1fr;
}

.workshops-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.workshops-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.workshops-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .workshops-columns-3,
    .workshops-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .workshops-grid {
    display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .workshops-card-grid {
        grid-template-columns: 1fr !important;
    }
        .workshops-grid {
    display: grid;
   grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
    }
}

/* Compact Card Styles */
.workshop-card-compact {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.workshop-card-compact:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Card Header */
.card-compact-header {
    margin-bottom: 16px;
}

.venue-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #6b7280;
    text-transform: uppercase;
}

/* Card Title */
.card-compact-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: #7c3aed;
}

.card-compact-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-compact-title a:hover {
    color: #6d28d9;
}

/* Card Description */
.card-compact-description {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

/* Card Meta Information */
.card-compact-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.meta-item svg {
    flex-shrink: 0;
}

/* Reserve Button */
.card-compact-btn {
    width: 100%;
    padding: 14px 24px;
    background: #7c3aed;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.card-compact-btn:hover {
    background: #6d28d9;
    transform: scale(1.02);
}

.card-compact-btn:active {
    transform: scale(0.98);
}