/* ================================================================
   PsychologyZone Masterclass Courses — Frontend Styles v2.0
   ================================================================ */

/* ---- GRID (3 columns) ----------------------------------------- */
.pz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 20px 0;
}
@media (max-width: 900px) { .pz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .pz-grid { grid-template-columns: 1fr; } }

/* ---- CARD ------------------------------------------------------ */
.pz-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: box-shadow .2s, transform .2s;
}
.pz-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    transform: translateY(-2px);
}

/* Card Image */
.pz-card-img-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 1;
    background: #f5f5f5;
}
.pz-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.pz-card:hover .pz-card-img-wrap img { transform: scale(1.04); }
.pz-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f0f8;
    color: #444;
    font-size: 15px;
    font-weight: 700;
    padding: 16px;
    text-align: center;
}

/* Card Body */
.pz-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Card Heading — "Masterclass Courses" — black, underlined, semi-bold */
.pz-card-heading {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}
.pz-card-heading a {
    color: #111 !important;
    text-decoration: underline;
}
.pz-card-heading a:hover { color: #003d8a !important; }

/* Card Meta — labels in black semi-bold */
.pz-card-meta {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    font-size: 13.5px;
    color: #333;
    line-height: 1.7;
}
.pz-card-meta li { display: flex; gap: 4px; }
.pz-card-meta b {
    color: #111;
    font-weight: 600;
    white-space: nowrap;
}

/* Card Footer */
.pz-card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---- BADGES ---------------------------------------------------- */
.pz-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
}
.pz-badge-open {
    background: #d4f0ec;
    color: #006b61;
}
.pz-badge-full {
    background: #d32f2f;
    color: #fff;
}

/* Read More button */
.pz-readmore {
    display: block;
    text-align: center;
    padding: 9px 14px;
    border: 2px solid #d0d0d0;
    border-radius: 6px;
    color: #0066cc;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.pz-readmore:hover {
    border-color: #0066cc;
    color: #003d8a;
}

/* ================================================================
   SINGLE COURSE PAGE
   ================================================================ */
.pz-single-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

/* Breadcrumb */
.pz-breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pz-breadcrumb a { color: #0066cc; text-decoration: none; }
.pz-breadcrumb a:hover { text-decoration: underline; }
.pz-breadcrumb span { color: #999; }

/* Two-column layout */
.pz-single-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 760px) {
    .pz-single-layout { grid-template-columns: 1fr; }
}

/* ---- LEFT PANEL ----------------------------------------------- */
.pz-single-left {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 22px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.pz-single-logo {
    text-align: center;
    margin-bottom: 16px;
}
.pz-single-logo img { max-width: 160px; height: auto; }
.pz-single-thumb { margin-bottom: 14px; }

/* Detail list */
.pz-detail-list {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
    font-size: 14px;
    color: #333;
}
.pz-detail-list li {
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    line-height: 1.5;
}
.pz-detail-list li:last-child { border-bottom: none; }
.pz-dl-label {
    font-weight: 700;
    color: #111;
    min-width: 70px;
}
.pz-detail-list a { color: #0066cc; }

/* Divider — "bones" — full width */
.pz-single-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 14px 0;
    width: 100%;
}

/* Spaces badge in left panel */
.pz-single-spaces { margin: 4px 0; }

/* PDF Download */
.pz-pdf-download { margin: 6px 0; }
.pz-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0066cc;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border: 1px solid #c8dff5;
    border-radius: 8px;
    background: #f0f7ff;
    transition: background .2s, border-color .2s;
    width: 100%;
    box-sizing: border-box;
}
.pz-pdf-link:hover {
    background: #ddeeff;
    border-color: #0066cc;
}
.pz-pdf-icon {
    color: #0066cc;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.pz-pdf-text { flex: 1; }

/* ---- RIGHT PANEL ---------------------------------------------- */
.pz-single-right { }

/* Title — black, bold */
.pz-single-title {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
    line-height: 1.3;
}

/* Content */
.pz-single-content {
    font-size: 15px;
    line-height: 1.75;
    color: #444;
}
.pz-single-content p { margin: 0 0 14px; }

/* ---- FORM ----------------------------------------------------- */
.pz-form-box {
    background: #f9f9f9;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 26px 24px;
    margin-top: 10px;
}
.pz-form-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 18px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}
.pz-form-group {
    margin-bottom: 14px;
}
.pz-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}
.pz-form-group input[type=text],
.pz-form-group input[type=email] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    transition: border-color .2s;
    background: #fff;
}
.pz-form-group input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,.12);
}
.pz-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    margin-top: 4px;
}
.pz-btn:active { transform: scale(.98); }
.pz-btn-join      { background: #2c6ecf; color: #fff; }
.pz-btn-join:hover { background: #1a5cb5; }
.pz-btn-waitlist      { background: #d32f2f; color: #fff; }
.pz-btn-waitlist:hover { background: #b71c1c; }
.pz-btn:disabled { opacity: .6; cursor: not-allowed; }
.pz-form-note {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin: 10px 0 0;
}

/* Form Messages */
.pz-form-msg {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 14px;
}
.pz-msg-success {
    background: #e6f9f0;
    border: 1px solid #4caf50;
    color: #2e7d32;
}
.pz-msg-error {
    background: #fdecea;
    border: 1px solid #f44336;
    color: #c62828;
}

/* ================================================================
   SOCIAL SHARING
   ================================================================ */
.pz-share-box {
    margin: 20px 0 10px;
    padding: 16px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}
.pz-share-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.pz-share-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pz-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    color: #fff;
}
.pz-share-btn:hover { opacity: .88; transform: translateY(-1px); color: #fff; }
.pz-share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.pz-share-fb   { background: #1877f2; }
.pz-share-tw   { background: #111; }
.pz-share-wa   { background: #25d366; }
.pz-share-li   { background: #0077b5; }
.pz-share-copy { background: #6c757d; }
.pz-share-copy.pz-copied { background: #28a745; }

@media (max-width: 480px) {
    .pz-share-btn span { display: none; }
    .pz-share-btn { padding: 9px 11px; }
}
