/* =========================================================
   PsychCura Resources CSS
   Step 2 Final Version
   Blue brand theme + clean structure
========================================================= */

:root {
  --pc-primary: #15b9d9;
  --pc-primary-dark: #0b8faa;
  --pc-primary-soft: #e8f9fc;
  --pc-secondary: #efa286;
  --pc-secondary-soft: #fff2ec;

  --pc-dark: #102a33;
  --pc-muted: #5f7480;
  --pc-soft: #f5fcfe;
  --pc-border: #d8eef3;
  --pc-white: #ffffff;

  --pc-radius: 24px;
  --pc-shadow-sm: 0 10px 28px rgba(16, 42, 51, 0.06);
  --pc-shadow-md: 0 18px 46px rgba(21, 185, 217, 0.1);
  --pc-shadow-lg: 0 28px 75px rgba(16, 42, 51, 0.12);
}

/* =========================================================
   Base
========================================================= */

.pc-resource-page {
  background:
    radial-gradient(circle at top left, rgba(21, 185, 217, 0.12), transparent 34%),
    linear-gradient(180deg, #f7fdff 0%, #ffffff 42%);
  min-height: 100vh;
  color: var(--pc-dark);
}

/* =========================================================
   Resource Listing Hero
========================================================= */

.pc-resource-hero {
  text-align: center;
}

.pc-resource-hero-pro {
  position: relative;
  overflow: hidden;
  padding: 135px 0 90px;
  background:
    linear-gradient(135deg, rgba(21, 185, 217, 0.14), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 85% 20%, rgba(239, 162, 134, 0.25), transparent 28%),
    radial-gradient(circle at 12% 80%, rgba(21, 185, 217, 0.18), transparent 30%);
}

.pc-resource-hero-pro::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -190px;
  border-radius: 50%;
  background: rgba(21, 185, 217, 0.12);
  filter: blur(2px);
}

.pc-resource-hero-pro::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: -130px;
  border-radius: 50%;
  background: rgba(239, 162, 134, 0.18);
}

.pc-resource-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.pc-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(21, 185, 217, 0.28);
  color: var(--pc-primary-dark);
  box-shadow: 0 12px 35px rgba(21, 185, 217, 0.12);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pc-hero-eyebrow::before {
  content: "✦";
  color: var(--pc-secondary);
}

.pc-resource-hero-pro h1 {
  max-width: 900px;
  margin: 0 auto;
  font-family: "Playfair Display", serif;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -1.8px;
  color: var(--pc-dark);
}

.pc-resource-hero-pro h1 span {
  display: block;
  color: var(--pc-primary);
}

.pc-resource-hero-pro p {
  max-width: 790px;
  margin: 24px auto 0;
  color: var(--pc-muted);
  font-size: 18px;
  line-height: 1.85;
}

.pc-hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.pc-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(21, 185, 217, 0.35);
  color: var(--pc-primary-dark);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(16, 42, 51, 0.06);
  transition: 0.25s ease;
}

.pc-hero-secondary:hover {
  background: var(--pc-primary-soft);
  color: var(--pc-primary-dark);
  transform: translateY(-2px);
}

.pc-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 46px auto 0;
  max-width: 840px;
}

.pc-hero-stats div {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(21, 185, 217, 0.22);
  border-radius: 26px;
  padding: 22px 18px;
  box-shadow: var(--pc-shadow-md);
  backdrop-filter: blur(14px);
}

.pc-hero-stats div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--pc-primary), var(--pc-secondary));
}

.pc-hero-stats strong {
  display: block;
  color: var(--pc-dark);
  font-size: 19px;
  font-weight: 900;
}

.pc-hero-stats span {
  display: block;
  margin-top: 4px;
  color: var(--pc-muted);
  font-size: 14px;
}

/* =========================================================
   Search / Filters
========================================================= */

.pc-search-card {
  position: relative;
  z-index: 4;
  margin-top: -42px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(21, 185, 217, 0.18);
  border-radius: 28px;
  box-shadow: 0 24px 65px rgba(16, 42, 51, 0.1);
  backdrop-filter: blur(18px);
  padding: 18px;
}

.pc-search-card .form-control,
.pc-search-card .form-select {
  border-radius: 18px;
  border-color: var(--pc-border);
  color: var(--pc-dark);
  box-shadow: none;
}

.pc-search-card .form-control:focus,
.pc-search-card .form-select:focus {
  border-color: var(--pc-primary);
  box-shadow: 0 0 0 0.18rem rgba(21, 185, 217, 0.18);
}

/* =========================================================
   Buttons
========================================================= */

.pc-btn-primary {
  background: var(--pc-primary);
  border: 2px solid var(--pc-primary);
  color: #fff;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(21, 185, 217, 0.28);
  transition: 0.25s ease;
}

.pc-btn-primary:hover {
  background: #fff;
  color: var(--pc-primary);
  border-color: var(--pc-primary);
  transform: translateY(-2px);
}

/* =========================================================
   Resource Cards
========================================================= */

.pc-resource-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(21, 185, 217, 0.15);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--pc-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pc-resource-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--pc-shadow-lg);
}

.pc-resource-img-wrap {
  display: block;
  background: var(--pc-soft);
  overflow: hidden;
}

.pc-resource-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  background: var(--pc-soft);
  opacity: 0.94;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pc-resource-card:hover .pc-resource-img {
  transform: scale(1.04);
}

.pc-img-loaded {
  opacity: 1;
}

.pc-resource-body {
  padding: 24px;
}

.pc-resource-title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 850;
  color: var(--pc-dark);
  margin-bottom: 12px;
}

.pc-resource-title a {
  color: inherit;
  text-decoration: none;
}

.pc-resource-desc {
  color: var(--pc-muted);
  min-height: 52px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.65;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-resource-price {
  color: var(--pc-primary-dark);
  font-size: 18px;
  font-weight: 900;
}

.pc-resource-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pc-resource-meta span {
  background: var(--pc-primary-soft);
  color: var(--pc-primary-dark);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

/* =========================================================
   Badges
========================================================= */

.pc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 800;
}

.pc-badge-free {
  background: var(--pc-primary-soft);
  color: var(--pc-primary-dark);
}

.pc-badge-paid {
  background: var(--pc-secondary-soft);
  color: #ad5d3d;
}

/* =========================================================
   Empty State
========================================================= */

.pc-empty-state {
  border: 1px dashed var(--pc-border);
  border-radius: var(--pc-radius);
  padding: 50px;
  text-align: center;
  color: var(--pc-muted);
  background: #fff;
  box-shadow: var(--pc-shadow-sm);
}

/* =========================================================
   Resource Detail Page
========================================================= */

.pc-resource-detail-modern {
  padding: 20px 0 60px;
}

.pc-back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--pc-primary-dark);
  text-decoration: none;
  font-weight: 700;
}

.pc-back-link:hover {
  color: var(--pc-primary);
}

.pc-product-hero {
  position: relative;
  padding: 25px 0 70px;
}

.pc-product-hero-bg {
  position: absolute;
  inset: -40px -120px auto;
  height: 260px;
  background: linear-gradient(135deg, var(--pc-primary-soft), #ffffff);
  border-radius: 0 0 50px 50px;
  z-index: -1;
}

.pc-product-main,
.pc-buy-card,
.pc-product-content-card {
  background: #fff;
  border: 1px solid rgba(21, 185, 217, 0.16);
  border-radius: 30px;
  box-shadow: var(--pc-shadow-lg);
}

.pc-product-gallery {
  padding: 24px;
}

.pc-product-cover-box {
  background: var(--pc-soft);
  border-radius: 24px;
  overflow: hidden;
}

.pc-product-cover {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  display: block;
  background: var(--pc-soft);
}

.pc-product-content-card {
  padding: 0;
  overflow: hidden;
}

.pc-product-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--pc-border);
  padding: 18px 22px 0;
  overflow-x: auto;
}

.pc-product-tabs button {
  border: 0;
  background: transparent;
  padding: 14px 8px;
  font-weight: 800;
  color: var(--pc-muted);
  white-space: nowrap;
}

.pc-product-tabs button.active {
  color: var(--pc-primary);
  border-bottom: 3px solid var(--pc-primary);
}

.pc-tab-panel {
  display: none;
}

.pc-tab-panel.active {
  display: block;
}

.pc-product-section {
  padding: 26px;
  border-bottom: 1px solid #edf6f8;
}

.pc-product-section:last-child {
  border-bottom: 0;
}

.pc-product-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--pc-dark);
  margin-bottom: 12px;
}

.pc-product-section p {
  color: var(--pc-muted);
  line-height: 1.8;
  font-size: 16px;
}

.pc-included-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pc-included-grid div {
  background: var(--pc-soft);
  border: 1px solid var(--pc-border);
  border-radius: 20px;
  padding: 18px;
}

.pc-included-grid span {
  font-size: 26px;
  display: block;
  margin-bottom: 10px;
}

.pc-included-grid strong {
  display: block;
  color: var(--pc-dark);
  margin-bottom: 4px;
}

.pc-included-grid p {
  margin: 0;
  font-size: 14px;
}

/* =========================================================
   Buy Card
========================================================= */

.pc-buy-card {
  position: sticky;
  top: 24px;
  padding: 26px;
}

.pc-buy-card h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  font-weight: 700;
  color: var(--pc-dark);
  margin: 16px 0 12px;
}

.pc-buy-desc {
  color: var(--pc-muted);
  line-height: 1.65;
}

.pc-buy-price {
  font-size: 38px;
  font-weight: 900;
  color: var(--pc-primary-dark);
  margin: 20px 0;
}

.pc-buy-btn {
  width: 100%;
  padding: 15px 22px;
  font-size: 17px;
  box-shadow: 0 14px 35px rgba(21, 185, 217, 0.25);
}

.pc-trust-list {
  margin-top: 22px;
  display: grid;
  gap: 12px;
  color: #344054;
  font-weight: 600;
}

.pc-product-meta-box {
  margin-top: 24px;
  border: 1px solid var(--pc-border);
  border-radius: 22px;
  overflow: hidden;
}

.pc-product-meta-box div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pc-border);
}

.pc-product-meta-box div:last-child {
  border-bottom: 0;
}

.pc-product-meta-box span {
  color: var(--pc-muted);
}

.pc-product-meta-box strong {
  color: var(--pc-dark);
  text-align: right;
}

.pc-safe-note {
  background: var(--pc-soft);
  border-radius: 18px;
  padding: 14px;
  margin-top: 18px;
  color: var(--pc-muted);
  font-size: 14px;
  text-align: center;
}

/* =========================================================
   Gallery Thumbnails
========================================================= */

.pc-gallery-main-img {
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.pc-product-cover-box:hover .pc-gallery-main-img {
  transform: scale(1.04);
}

.pc-gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.pc-gallery-thumb {
  width: 86px;
  height: 86px;
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  background: var(--pc-soft);
  flex: 0 0 auto;
  cursor: pointer;
  transition: 0.25s ease;
}

.pc-gallery-thumb.active {
  border-color: var(--pc-primary);
  box-shadow: 0 10px 28px rgba(21, 185, 217, 0.18);
}

.pc-gallery-thumb:hover {
  transform: translateY(-3px);
}

.pc-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   Skeleton Loading
========================================================= */

.pc-skeleton-card {
  overflow: hidden;
}

.pc-skeleton-img,
.pc-skeleton-line,
.pc-skeleton-btn {
  background: linear-gradient(90deg,
      #eef9fb 0%,
      #ffffff 45%,
      #eef9fb 100%);
  background-size: 220% 100%;
  animation: pcSkeleton 1.2s ease-in-out infinite;
  border-radius: 18px;
}

.pc-skeleton-img {
  height: 420px;
  width: 100%;
}

.pc-skeleton-line {
  height: 18px;
  margin-bottom: 16px;
}

.pc-skeleton-line.short {
  width: 30%;
}

.pc-skeleton-line.medium {
  width: 70%;
}

.pc-skeleton-line.tiny {
  width: 45%;
}

.pc-skeleton-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

.pc-skeleton-btn {
  width: 190px;
  height: 48px;
}

@keyframes pcSkeleton {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

/* =========================================================
   Admin Resource Box
========================================================= */

.pc-admin-resource-box {
  border: 1px solid var(--pc-border);
  border-radius: 24px;
  background: #ffffff;
  padding: 24px;
  box-shadow: var(--pc-shadow-sm);
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 991px) {
  .pc-resource-hero-pro {
    padding: 90px 0 70px;
  }

  .pc-search-card {
    margin-top: -24px;
  }

  .pc-buy-card {
    position: static;
    margin-top: 20px;
  }

  .pc-buy-card .pc-buy-btn {
    position: sticky;
    bottom: 14px;
    z-index: 20;
  }

  .pc-product-hero-bg {
    height: 200px;
  }
}

@media (max-width: 767px) {
  .pc-resource-hero-pro {
    padding: 70px 0 55px;
  }

  .pc-resource-hero-pro h1 {
    letter-spacing: -0.8px;
  }

  .pc-resource-hero-pro p {
    font-size: 16px;
  }

  .pc-hero-stats {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .pc-hero-actions .btn,
  .pc-hero-secondary {
    width: 100%;
  }

  .pc-resource-img {
    height: 220px;
  }

  .pc-detail-card {
    padding: 24px;
  }

  .pc-detail-grid {
    grid-template-columns: 1fr;
  }

  .pc-skeleton-img {
    height: 300px;
  }
}

@media (max-width: 575px) {
  .pc-product-gallery {
    padding: 14px;
  }

  .pc-product-cover {
    max-height: 480px;
  }

  .pc-included-grid {
    grid-template-columns: 1fr;
  }

  .pc-buy-card,
  .pc-product-section {
    padding: 20px;
  }

  .pc-gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 14px;
  }

  .pc-product-cover-box:hover .pc-gallery-main-img {
    transform: none;
  }
}

/* =========================================================
   STEP 3 — Premium Search / Filter UI
========================================================= */

.pc-search-card-pro {
  padding: 26px;
}

.pc-search-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(21, 185, 217, 0.14);
}

.pc-search-kicker {
  display: inline-flex;
  color: var(--pc-primary-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.pc-search-head h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  color: var(--pc-dark);
  margin: 0;
}

.pc-search-head p {
  max-width: 430px;
  margin: 0;
  color: var(--pc-muted);
  line-height: 1.65;
  font-size: 15px;
}

.pc-filter-label {
  display: block;
  color: var(--pc-dark);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.pc-search-input-wrap {
  position: relative;
}

.pc-search-input-wrap i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pc-primary);
  font-size: 15px;
  z-index: 2;
}

.pc-search-input-wrap .form-control {
  padding-left: 46px;
}

.pc-search-card-pro .form-control,
.pc-search-card-pro .form-select {
  height: 56px;
  background-color: #fff;
  border: 1px solid rgba(21, 185, 217, 0.2);
  border-radius: 18px;
  color: var(--pc-dark);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(16, 42, 51, 0.04);
  transition: 0.25s ease;
}

.pc-search-card-pro .form-control:hover,
.pc-search-card-pro .form-select:hover {
  border-color: rgba(21, 185, 217, 0.45);
}

.pc-search-card-pro .form-control:focus,
.pc-search-card-pro .form-select:focus {
  border-color: var(--pc-primary);
  box-shadow: 0 0 0 0.18rem rgba(21, 185, 217, 0.18);
}

.pc-search-card-pro .form-control::placeholder {
  color: #8aa3b0;
  font-weight: 500;
}

@media (max-width: 991px) {
  .pc-search-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pc-search-head p {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .pc-search-card-pro {
    padding: 20px;
    border-radius: 22px;
  }

  .pc-search-head {
    margin-bottom: 18px;
    padding-bottom: 18px;
  }

  .pc-search-card-pro .form-control,
  .pc-search-card-pro .form-select {
    height: 52px;
    font-size: 14px;
  }
}

/* =========================================================
   STEP 4
   Premium Resource Cards
========================================================= */

.pc-resource-card {
  display: flex;
  flex-direction: column;
}

.pc-resource-img-wrap {
  position: relative;
  overflow: hidden;
}

.pc-resource-img-wrap::after {

  content: "";

  position: absolute;

  inset: auto 0 0;

  height: 90px;

  background:

    linear-gradient(transparent,

      rgba(0, 0, 0, .06));

}

.pc-resource-img {

  transition:

    transform .45s ease,

    opacity .35s ease;

}

.pc-resource-card:hover .pc-resource-img {

  transform: scale(1.08);

}

.pc-resource-body {

  display: flex;

  flex-direction: column;

  flex: 1;

}

.pc-resource-title {

  font-size: 24px;

  font-weight: 800;

  margin-top: 18px;

  margin-bottom: 14px;

  line-height: 1.25;

}

.pc-resource-desc {

  flex: 1;

  font-size: 15px;

  line-height: 1.75;

}

.pc-resource-meta {

  margin-top: 22px;

  display: flex;

  flex-wrap: wrap;

  gap: 10px;

}

.pc-resource-meta span {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 8px 14px;

  font-weight: 700;

  background: #f4fbff;

  border-radius: 999px;

}

.pc-resource-meta i {

  color: var(--pc-primary);

}

.pc-card-btn {

  margin-top: 26px;

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 10px;

  width: 100%;

  padding: 15px;

  border-radius: 18px;

  background: linear-gradient(135deg,
      var(--pc-primary),
      var(--pc-primary-dark));

  color: white;

  font-weight: 800;

  text-decoration: none;

  transition: .25s;

}

.pc-card-btn:hover {

  transform: translateY(-3px);

  color: white;

  box-shadow:

    0 18px 40px rgba(21, 185, 217, .28);

}

.pc-card-btn i {

  transition: .25s;

}

.pc-card-btn:hover i {

  transform: translateX(5px);

}

/* =========================================================
   STEP 5A — Resource Detail Page Foundation
========================================================= */

.pc-resource-detail-page {
  background:
    radial-gradient(circle at top right, rgba(21, 185, 217, 0.1), transparent 34%),
    linear-gradient(180deg, #f7fdff 0%, #ffffff 46%);
}

.pc-resource-detail-shell {
  padding: 70px 0 90px;
}

@media (max-width: 991px) {
  .pc-resource-detail-shell {
    padding: 45px 0 70px;
  }
}

@media (max-width: 575px) {
  .pc-resource-detail-shell {
    padding: 32px 0 60px;
  }
}

/* =========================================================
   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;
}