/**
 * Workshop Card Page — Scoped under .wc-card to avoid Uncode conflicts.
 * Design: Cream background, rounded card, Georgia serif, earthy palette.
 * 2-column grid layout — sizes scaled for ~550px card width.
 */

/* ── Cards Grid ─────────────────────────────────────────────────────── */
.wc-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 0;
}

/* ── Card Container ─────────────────────────────────────────────────── */
.wc-card {
    max-width: 100%;
    margin: 0;
    background: #f9f4ea;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    font-family: Georgia, 'Times New Roman', serif;
}

/* ── Hero Image ─────────────────────────────────────────────────────── */
.wc-card__image {
    overflow: hidden;
}

.wc-card__image img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 260px;
}

/* ── Content Area ───────────────────────────────────────────────────── */
.wc-card__content {
    padding: 28px 30px;
}

.wc-card__title {
    font-size: 32px;
    color: #0f3d24;
    margin: 0 0 18px;
    line-height: 1.15;
    font-weight: bold;
}

/* ── Meta Row (dates, instructor, price) ────────────────────────────── */
.wc-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.wc-card__meta-item {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #143f6b;
    font-size: 15px;
    line-height: 1.3;
    padding-right: 8px;
    border-right: 1px solid #d4c8b6;
}

.wc-card__meta-icon {
    font-size: 20px;
}

.wc-card__price {
    color: #a34f1f;
    font-size: 26px;
    font-weight: bold;
    line-height: 1;
    border-right: none;
    padding-right: 0;
}

/* ── Intro (product description below meta) ─────────────────────────── */
.wc-card__intro {
    font-size: 16px;
    line-height: 1.5;
    color: #143f6b;
    margin-bottom: 20px;
}

/* ── Body (desc2 + badges) ──────────────────────────────────────────── */
.wc-card__body {
    display: grid;
    grid-template-columns: 1fr 35%;
    gap: 24px;
    align-items: start;
}

.wc-card__desc {
    font-size: 16px;
    line-height: 1.5;
    color: #143f6b;
}

.wc-card__badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wc-card__badge {
    background: #efe4d0;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
}

/* ── Reserve Buttons ────────────────────────────────────────────────── */
.wc-card__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 22px;
}

.wc-card__cart-form {
    margin: 0;
    min-width: 0;
}

.wc-card__reserve {
    display: block;
    width: 100%;
    background: #195c14;
    color: #fff;
    text-decoration: none;
    padding: 16px 14px !important;
    border-radius: 10px !important;
    font-size: 14px;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: Georgia, 'Times New Roman', serif;
    transition: background 0.2s ease, transform 0.1s ease;
    line-height: 1.4;
    white-space: normal !important;
    word-wrap: break-word;
}

.wc-card__reserve:hover {
    background: #1c6317;
    transform: translateY(-1px);
}

.wc-card__reserve:active {
    transform: translateY(0);
}

.wc-card__reserve:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

.wc-card__reserve.is-added {
    background: #2e7d32;
}

/* ── Toggle Button ──────────────────────────────────────────────────── */
.wc-card__toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.wc-card__toggle {
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #143f6b;
    font-size: 17px;
    text-decoration: underline;
    font-family: Georgia, 'Times New Roman', serif;
}

.wc-card__toggle:hover {
    color: #0f3d24;
}

.wc-card__toggle-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1c6317;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.wc-card__toggle[aria-expanded="true"] .wc-card__toggle-icon {
    transform: rotate(45deg);
}

/* ── Expanded Content ───────────────────────────────────────────────── */
.wc-card__expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.wc-card__expanded.is-open {
    max-height: 1500px;
}

.wc-card__divider {
    border-top: 1px solid #d4c8b6;
    margin: 18px 0 24px;
}

.wc-card__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.wc-card__details h3 {
    color: #173c22;
    font-size: 22px;
    margin-top: 0;
}

.wc-card__details p,
.wc-card__details li {
    font-size: 15px;
    line-height: 1.6;
}

.wc-card__details ul {
    padding-left: 1.2em;
    margin: 0;
    list-style: disc;
}

.wc-card__footer-note {
    margin-top: 24px;
    font-size: 18px;
    color: #143f6b;
    font-style: italic;
    line-height: 1.4;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .wc-cards-grid {
        grid-template-columns: 1fr;
        padding: 20px 0;
        gap: 25px;
    }

    .wc-card__buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wc-card__content {
        padding: 20px 22px;
    }

    .wc-card__title {
        font-size: 28px;
    }

    .wc-card__body,
    .wc-card__buttons,
    .wc-card__details {
        grid-template-columns: 1fr;
    }

    .wc-card__desc {
        font-size: 15px;
    }

    .wc-card__reserve {
        font-size: 14px;
        padding: 14px;
    }

    .wc-card__meta {
        gap: 14px;
    }

    .wc-card__meta-item {
        font-size: 14px;
    }

    .wc-card__meta-icon {
        font-size: 18px;
    }

    .wc-card__price {
        font-size: 30px;
    }

    .wc-card__toggle {
        font-size: 15px;
    }

    .wc-card__toggle-icon {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .wc-card__details h3 {
        font-size: 20px;
    }

    .wc-card__details p,
    .wc-card__details li {
        font-size: 14px;
    }

    .wc-card__footer-note {
        font-size: 16px;
    }
}
