/* =========================================================
   PsychCura Resource Detail Marketplace Page
========================================================= */

.pc-resource-detail-shell {
    padding-top: 150px;
    padding-bottom: 90px;
}

.pc-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 28px;
    padding-left: 8px;

    font-size: 15px;
    font-weight: 700;

    position: relative;
    z-index: 2;
    color: #5f7480;
}

.pc-detail-breadcrumb a {
    color: #0b8faa;
    text-decoration: none;
}

.pc-detail-breadcrumb a:hover {
    color: #15b9d9;
}

.pc-detail-marketplace {
    position: relative;
}

.pc-detail-bg-glow {
    position: absolute;
    inset: -60px -120px auto;
    height: 320px;
    background:
        radial-gradient(circle at 20% 20%, rgba(21, 185, 217, 0.18), transparent 32%),
        radial-gradient(circle at 85% 15%, rgba(239, 162, 134, 0.22), transparent 28%);
    z-index: -1;
    pointer-events: none;
}

.pc-detail-main-card,
.pc-detail-content-card,
.pc-detail-buy-card {
    background: #fff;
    border: 1px solid rgba(21, 185, 217, 0.16);
    border-radius: 32px;
    box-shadow: 0 28px 75px rgba(16, 42, 51, 0.11);
}

.pc-detail-main-card {
    overflow: hidden;
}

.pc-detail-gallery {
    padding: 24px;
}

.pc-detail-preview {
    position: relative;
    background: #f5fcfe;
    border-radius: 26px;
    overflow: hidden;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-detail-preview-img {
    width: 100%;
    max-height: 680px;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease, opacity 0.25s ease;
}

.pc-detail-preview:hover .pc-detail-preview-img {
    transform: scale(1.035);
}

.pc-detail-preview-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: #0b8faa;
    border: 1px solid rgba(21, 185, 217, 0.22);
    border-radius: 999px;
    padding: 9px 15px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(16, 42, 51, 0.08);
}

.pc-detail-thumbs {
    margin-top: 18px;
}

.pc-detail-content-card {
    margin-top: 26px;
    overflow: hidden;
}

.pc-detail-title-block {
    padding: 30px;
    border-bottom: 1px solid #edf6f8;
}

.pc-detail-title-block h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.08;
    margin: 16px 0 14px;
    color: #102a33;
}

.pc-detail-title-block p {
    max-width: 850px;
    margin: 0;
    color: #5f7480;
    font-size: 17px;
    line-height: 1.8;
}

.pc-detail-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-bottom: 1px solid #edf6f8;
}

.pc-detail-trust-grid div {
    padding: 24px;
    border-right: 1px solid #edf6f8;
}

.pc-detail-trust-grid div:last-child {
    border-right: 0;
}

.pc-detail-trust-grid i {
    width: 44px;
    height: 44px;
    background: #e8f9fc;
    color: #15b9d9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 14px;
    font-size: 18px;
}

.pc-detail-trust-grid strong {
    display: block;
    color: #102a33;
    font-size: 16px;
    margin-bottom: 5px;
}

.pc-detail-trust-grid span {
    display: block;
    color: #5f7480;
    font-size: 14px;
    line-height: 1.55;
}

.pc-detail-tabs-card {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
}

.pc-detail-included-section {
    border-top: 1px solid #edf6f8;
}

.pc-therapist-note {
    display: flex;
    gap: 18px;
    margin: 30px;
    padding: 26px;
    background:
        linear-gradient(135deg, rgba(21, 185, 217, 0.09), rgba(255, 255, 255, 0.95)),
        radial-gradient(circle at top right, rgba(239, 162, 134, 0.16), transparent 32%);
    border: 1px solid rgba(21, 185, 217, 0.16);
    border-radius: 26px;
}

.pc-therapist-note-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 18px;
    background: #15b9d9;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(21, 185, 217, 0.28);
}

.pc-therapist-note h2 {
    font-family: "Playfair Display", serif;
    color: #102a33;
    margin-bottom: 8px;
    font-size: 28px;
}

.pc-therapist-note p {
    margin: 0;
    color: #5f7480;
    line-height: 1.8;
}

/* Buy card */

.pc-detail-buy-card {
    position: sticky;
    top: 24px;
    padding: 28px;
}

.pc-detail-buy-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.pc-detail-buy-price {
    color: #0b8faa;
    font-size: 34px;
    font-weight: 950;
    line-height: 1;
}

.pc-detail-buy-card h2 {
    font-family: "Playfair Display", serif;
    color: #102a33;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.14;
    margin-bottom: 14px;
}

.pc-detail-buy-card>p {
    color: #5f7480;
    line-height: 1.7;
    margin-bottom: 22px;
}

.pc-detail-buy-card .pc-buy-btn {
    padding: 16px 20px;
    font-size: 17px;
    width: 100%;
}

.pc-buy-assurance {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.pc-buy-assurance div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #344054;
    font-weight: 700;
}

.pc-buy-assurance i {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #e8f9fc;
    color: #15b9d9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pc-detail-help-box {
    margin-top: 22px;
    background: #fff2ec;
    border: 1px solid rgba(239, 162, 134, 0.28);
    border-radius: 22px;
    padding: 18px;
}

.pc-detail-help-box strong {
    display: block;
    color: #102a33;
    margin-bottom: 6px;
}

.pc-detail-help-box span {
    display: block;
    color: #5f7480;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.pc-detail-help-box a {
    color: #0b8faa;
    font-weight: 900;
    text-decoration: none;
}

/* Gallery thumbnails */

.pc-gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.pc-gallery-thumb {
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
    border: 2px solid transparent;
    border-radius: 18px;
    overflow: hidden;
    background: #f5fcfe;
    padding: 0;
    cursor: pointer;
    transition: 0.25s ease;
}

.pc-gallery-thumb.active {
    border-color: #15b9d9;
    box-shadow: 0 12px 28px rgba(21, 185, 217, 0.22);
}

.pc-gallery-thumb:hover {
    transform: translateY(-3px);
}

.pc-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   Responsive Detail Layout + Smart Mobile Buy Bar
========================================================= */

.pc-mobile-buy-bar {
    display: none;
}

@media (max-width: 991px) {
    .pc-detail-buy-card {
        position: static;
        margin-top: 24px;
    }

    .pc-detail-preview {
        min-height: 420px;
    }

    .pc-detail-trust-grid {
        grid-template-columns: 1fr;
    }

    .pc-detail-trust-grid div {
        border-right: 0;
        border-bottom: 1px solid #edf6f8;
    }

    .pc-detail-trust-grid div:last-child {
        border-bottom: 0;
    }

    .pc-mobile-buy-bar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 9999;

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;

        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(21, 185, 217, 0.22);
        border-radius: 24px;
        padding: 12px;

        box-shadow: 0 22px 65px rgba(16, 42, 51, 0.2);
        backdrop-filter: blur(18px);

        opacity: 0;
        transform: translateY(110%);
        pointer-events: none;

        transition: opacity 0.28s ease, transform 0.28s ease;
    }

    .pc-mobile-buy-bar.is-visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .pc-mobile-buy-info {
        min-width: 0;
    }

    .pc-mobile-buy-info span {
        display: block;
        color: #5f7480;
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .pc-mobile-buy-info strong {
        display: block;
        color: #0b8faa;
        font-size: 20px;
        font-weight: 950;
        line-height: 1.15;
    }

    .pc-mobile-buy-btn {
        padding: 11px 16px;
        font-size: 14px;
        white-space: nowrap;
        min-width: 150px;
    }

    body.pc-resource-detail-page {
        padding-bottom: 0;
    }
}

@media (max-width: 575px) {
    .pc-resource-detail-shell {
        padding-top: 115px;
        padding-bottom: 70px;
    }

    .pc-detail-breadcrumb {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .pc-detail-gallery {
        padding: 14px;
    }

    .pc-detail-preview {
        min-height: 320px;
        border-radius: 20px;
    }

    .pc-detail-preview-badge {
        left: 12px;
        bottom: 12px;
        font-size: 13px;
        padding: 7px 12px;
    }

    .pc-detail-title-block {
        padding: 22px;
    }

    .pc-detail-title-block h1 {
        font-size: 34px;
    }

    .pc-detail-title-block p {
        font-size: 15px;
    }

    .pc-detail-trust-grid div {
        padding: 20px;
    }

    .pc-therapist-note {
        margin: 20px;
        padding: 20px;
        flex-direction: column;
    }

    .pc-detail-buy-card {
        padding: 22px;
        border-radius: 26px;
    }

    .pc-detail-buy-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .pc-detail-buy-price {
        font-size: 30px;
    }

    .pc-gallery-thumb {
        width: 74px;
        height: 74px;
        border-radius: 15px;
    }

    .pc-mobile-buy-bar {
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-radius: 18px;
    }

    .pc-mobile-buy-btn {
        min-width: auto;
        padding: 10px 13px;
        font-size: 13px;
    }

    .pc-mobile-buy-info strong {
        font-size: 18px;
    }
}


/* =========================================================
   STEP 5C — Premium Detail Tabs
========================================================= */

.pc-detail-tabs-pro {
    position: relative;
    gap: 6px;
    padding: 18px 22px 0;
    background: linear-gradient(180deg, #ffffff, #fbfeff);
}

.pc-detail-tabs-pro button {
    position: relative;
    border: 0;
    background: transparent;
    color: #5f7480;
    padding: 16px 14px;
    font-weight: 900;
    font-size: 15px;
    border-radius: 16px 16px 0 0;
    transition: 0.25s ease;
}

.pc-detail-tabs-pro button:hover {
    color: #0b8faa;
    background: #f5fcfe;
}

.pc-detail-tabs-pro button.active {
    color: #15b9d9;
    background: #ffffff;
}

.pc-detail-tabs-pro button.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -1px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #15b9d9, #efa286);
}

.pc-tab-panel {
    animation: pcTabFade 0.28s ease;
}

@keyframes pcTabFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pc-tab-content-pro {
    padding: 34px 30px;
}

.pc-section-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: #0b8faa;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pc-tab-content-pro h2 {
    margin-bottom: 14px;
}

.pc-tab-content-pro p {
    font-size: 16.5px;
    line-height: 1.9;
}

.pc-detail-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 26px;
}

.pc-detail-mini-grid div {
    background: #f5fcfe;
    border: 1px solid #d8eef3;
    border-radius: 20px;
    padding: 18px;
}

.pc-detail-mini-grid i {
    width: 42px;
    height: 42px;
    background: #e8f9fc;
    color: #15b9d9;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.pc-detail-mini-grid strong {
    display: block;
    color: #102a33;
    font-size: 16px;
    margin-bottom: 4px;
}

.pc-detail-mini-grid span {
    display: block;
    color: #5f7480;
    font-size: 14px;
}

.pc-help-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.pc-help-tags span {
    display: inline-flex;
    align-items: center;
    background: #e8f9fc;
    color: #0b8faa;
    border: 1px solid rgba(21, 185, 217, 0.2);
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
}

.pc-faq-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.pc-faq-item {
    background: #f5fcfe;
    border: 1px solid #d8eef3;
    border-radius: 20px;
    padding: 20px;
}

.pc-faq-item strong {
    display: block;
    color: #102a33;
    font-size: 17px;
    margin-bottom: 8px;
}

.pc-faq-item p {
    margin: 0;
    color: #5f7480;
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .pc-detail-tabs-pro {
        padding: 14px 16px 0;
        overflow-x: auto;
    }

    .pc-detail-tabs-pro button {
        padding: 14px 10px;
        white-space: nowrap;
    }

    .pc-tab-content-pro {
        padding: 26px 20px;
    }

    .pc-detail-mini-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   STEP 5D — Benefits + Therapist Note
========================================================= */

.pc-benefits-section {
    margin: 30px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid rgba(21, 185, 217, 0.16);
    border-radius: 28px;
    box-shadow: 0 16px 45px rgba(16, 42, 51, 0.06);
}

.pc-benefits-head {
    max-width: 760px;
    margin-bottom: 24px;
}

.pc-benefits-head h2 {
    font-family: "Playfair Display", serif;
    color: #102a33;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.12;
    margin-bottom: 12px;
}

.pc-benefits-head p {
    color: #5f7480;
    line-height: 1.75;
    margin: 0;
}

.pc-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.pc-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f5fcfe;
    border: 1px solid #d8eef3;
    border-radius: 20px;
    padding: 18px;
}

.pc-benefit-item i {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 999px;
    background: #15b9d9;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-top: 2px;
    box-shadow: 0 10px 20px rgba(21, 185, 217, 0.2);
}

.pc-benefit-item span {
    color: #344054;
    font-weight: 700;
    line-height: 1.6;
}

.pc-therapist-note-pro {
    align-items: flex-start;
    background:
        linear-gradient(135deg, rgba(21, 185, 217, 0.1), rgba(255, 255, 255, 0.96)),
        radial-gradient(circle at top right, rgba(239, 162, 134, 0.2), transparent 34%);
}

.pc-therapist-note-pro .pc-section-kicker {
    margin-bottom: 8px;
}

.pc-therapist-note-pro h2 {
    font-size: clamp(28px, 3vw, 38px);
}

.pc-therapist-note-pro p {
    font-size: 16px;
}

@media (max-width: 767px) {
    .pc-benefits-section {
        margin: 20px;
        padding: 22px;
    }

    .pc-benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   STEP 5E — Related Resources
========================================================= */

.pc-related-section {
    margin-top: 60px;
}

.pc-related-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.pc-related-head h2 {
    font-family: "Playfair Display", serif;
    color: #102a33;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    margin-bottom: 10px;
}

.pc-related-head p {
    color: #5f7480;
    line-height: 1.75;
    margin: 0;
}

.pc-related-card {
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(21, 185, 217, 0.16);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(16, 42, 51, 0.07);
    transition: 0.25s ease;
}

.pc-related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 75px rgba(16, 42, 51, 0.12);
}

.pc-related-img-wrap {
    display: block;
    height: 220px;
    background: #f5fcfe;
    overflow: hidden;
}

.pc-related-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.35s ease;
}

.pc-related-card:hover .pc-related-img-wrap img {
    transform: scale(1.06);
}

.pc-related-body {
    padding: 22px;
}

.pc-related-body h3 {
    font-size: 21px;
    line-height: 1.25;
    margin: 14px 0 10px;
}

.pc-related-body h3 a {
    color: #102a33;
    text-decoration: none;
}

.pc-related-body p {
    color: #5f7480;
    line-height: 1.65;
    min-height: 52px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc-related-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
}

.pc-related-footer strong {
    color: #0b8faa;
    font-size: 18px;
}

.pc-related-footer a {
    color: #15b9d9;
    font-weight: 900;
    text-decoration: none;
}

.pc-related-footer a i {
    margin-left: 4px;
    transition: 0.25s ease;
}

.pc-related-footer a:hover i {
    transform: translateX(4px);
}

.pc-related-loading,
.pc-related-empty {
    background: #ffffff;
    border: 1px dashed #d8eef3;
    border-radius: 24px;
    padding: 28px;
    color: #5f7480;
    text-align: center;
}

/* =========================================================
   Footer Fix for Resources Pages
========================================================= */

footer,
.footer,
.footer-area,
.pc-footer {
    position: relative;
    z-index: 1;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6 {
    color: #ffffff !important;
}

footer p,
footer li,
footer span,
footer a,
footer i,
.footer p,
.footer li,
.footer span,
.footer a,
.footer i {
    color: rgba(255, 255, 255, 0.72) !important;
}

footer a:hover,
.footer a:hover {
    color: #15b9d9 !important;
}

footer .copyright,
.footer .copyright,
footer .footer-bottom,
.footer .footer-bottom {
    color: #ffffff !important;
}

footer .footer-bottom a,
.footer .footer-bottom a {
    color: #15b9d9 !important;
}

.pc-resource-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 46px;
    padding: 0 18px;

    background: #fff;
    color: #0797b4;

    border: 1px solid #b8e7ef;
    border-radius: 999px;

    font-weight: 700;

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.pc-resource-share-btn:hover {
    background: #f2fbfd;
    border-color: #15b8d8;
    color: #078aa4;
    transform: translateY(-1px);
}