/**
 * WP Resource Hub - Frontend Styles
 *
 * @package WPResourceHub
 * @since   1.0.0
 */

/* ==========================================================================
   Base Styles
   ========================================================================== */

.wprh-content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ==========================================================================
   Single Resource Styles
   ========================================================================== */

.wprh-single-resource {
  background: #fff;
  padding: 0px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wprh-resource-header {
  margin-bottom: 30px;
}

.wprh-resource-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 15px;
  line-height: 1.3;
}

/* Resource Meta */
.wprh-resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #666;
}

.wprh-resource-meta > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wprh-resource-meta .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: #888;
}

/* Resource Thumbnail */
.wprh-resource-thumbnail {
  margin-bottom: 30px;
}

.wprh-resource-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ==========================================================================
   Video Resource
   ========================================================================== */

.wprh-resource-video .wprh-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  margin-bottom: 20px;
}

.wprh-resource-video .wprh-video-wrapper iframe,
.wprh-resource-video .wprh-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Video Player Shortcode */
.wprh-video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  margin-bottom: 20px;
}

.wprh-video-player-thumbnail {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.wprh-video-player-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wprh-video-player-placeholder {
  width: 100%;
  height: 100%;
  background: #1a1a2e;
}

.wprh-video-player .wprh-video-player-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s;
}

.wprh-video-player .wprh-video-player-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.wprh-video-player-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 2;
}

.wprh-video-player.is-playing {
  aspect-ratio: 16 / 9;
}

.wprh-video-player.is-playing iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.wprh-video-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.wprh-video-duration {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   PDF Resource
   ========================================================================== */

.wprh-resource-pdf .wprh-pdf-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
}

.wprh-pdf-size,
.wprh-pdf-pages {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
}

.wprh-pdf-download {
  margin-left: auto;
}

.wprh-pdf-viewer {
  margin: 20px 0;
}

.wprh-pdf-viewer iframe {
  width: 100%;
  height: 600px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* ==========================================================================
   Download Resource
   ========================================================================== */

.wprh-resource-download .wprh-download-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  margin-bottom: 20px;
}

.wprh-download-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.wprh-download-info > .dashicons {
  font-size: 40px;
  width: 40px;
  height: 40px;
  color: #2271b1;
}

.wprh-download-filename {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.wprh-download-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #666;
}

/* ==========================================================================
   External Link Resource
   ========================================================================== */

.wprh-resource-external-link .wprh-external-link-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  margin-bottom: 20px;
}

.wprh-external-link-box > .dashicons {
  font-size: 50px;
  width: 50px;
  height: 50px;
  color: #2271b1;
}

.wprh-external-link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

.wprh-external-link-button .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Internal Content Resource
   ========================================================================== */

.wprh-resource-internal-content .wprh-reading-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* Table of Contents */
.wprh-toc {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.wprh-toc-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 15px;
}

.wprh-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wprh-toc-list li {
  margin-bottom: 8px;
}

.wprh-toc-list a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.wprh-toc-list a:hover {
  color: #2271b1;
}

.wprh-toc-level-3 {
  padding-left: 20px;
}

.wprh-toc-level-4 {
  padding-left: 40px;
}

/* Article Layout */
.wprh-article-layout .wprh-article-summary {
  font-size: 1.1rem;
  color: #555;
  margin-top: 15px;
  padding: 15px 20px;
  border-left: 4px solid #2271b1;
  background: #f8f9fa;
}

.wprh-article-container {
  display: flex;
  gap: 40px;
}

.wprh-article-sidebar {
  flex: 0 0 280px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

.wprh-article-content {
  flex: 1;
  min-width: 0;
}

/* ==========================================================================
   Resource Footer
   ========================================================================== */

.wprh-resource-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.wprh-resource-taxonomies {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}

.wprh-resource-taxonomies a {
  color: #2271b1;
  text-decoration: none;
}

.wprh-resource-taxonomies a:hover {
  text-decoration: underline;
}

/* Related Resources */
.wprh-related-resources {
  margin-top: 40px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 8px;
}

.wprh-related-resources h3 {
  font-size: 18px;
  margin: 0 0 15px;
}

.wprh-related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wprh-related-item a {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wprh-related-item a:hover {
  color: #2271b1;
}

.wprh-related-item a::before {
  content: "\2192";
}

/* ==========================================================================
   Archive Styles
   ========================================================================== */

.wprh-archive .wprh-archive-header {
  margin-bottom: 40px;
  text-align: center;
}

.wprh-archive-title {
  font-size: 2.5rem;
  margin: 0 0 15px;
}

.wprh-archive-description {
  max-width: 700px;
  margin: 0 auto;
  color: #666;
}

/* Resource Grid */
.wprh-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

/* Resource Card */
.wprh-resource-card {
  background: rgb(0 0 0 / 3%);
  border-radius: 16px;
  box-shadow: 0 1px 3px #959595;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.wprh-resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wprh-card-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f0f0f1;
  overflow: hidden;
}

.wprh-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wprh-card-no-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f0f1 0%, #dcdcde 100%);
}

.wprh-card-no-thumbnail .dashicons {
  font-size: 60px;
  width: 60px;
  height: 60px;
  color: #8c8f94;
}

.wprh-card-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}

.wprh-card-type-badge .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

.wprh-card-content {
  padding: 20px;
}

.wprh-card-title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 24px;
  line-height: 140%;
  letter-spacing: -0.48px;
}

.wprh-card-body .wprh-card-title a {
  color: #0f0f0f;
  text-decoration: none;
}

.wprh-card-title a:hover {
  color: #2271b1;
}

.wprh-card-topics {
  color: #666;
}

.wprh-card-topics a {
  color: #666;
  text-decoration: none;
}

.wprh-card-topics a:hover {
  color: #2271b1;
}

.wprh-card-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #2271b1;
  text-decoration: none;
  font-weight: 500;
}

.wprh-card-link:hover {
  text-decoration: underline;
}

.wprh-card-link .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* No Resources Found */
.wprh-no-resources {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

/* ==========================================================================
   Shortcode Container
   ========================================================================== */

.wprh-resources-container {
  margin: 0 auto;
  max-width: 100%;
}

/* ==========================================================================
   Toolbar - Search & Filters
   ========================================================================== */

.wprh-resources-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

/* Search */
.wprh-resources-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.wprh-search-input {
  width: 100%;
  height: 100%;
  padding: 10px 40px 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.wprh-search-input:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

.wprh-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8c8f94;
  font-size: 18px;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* Filters */
.wprh-resources-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Custom Dropdown */
.wprh-custom-dropdown {
  position: relative;
}

.wprh-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  min-width: 150px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  color: #1d2327;
  line-height: 1.4;
  text-align: left;
  width: 100%;
}

.wprh-dropdown-trigger:hover {
  border-color: #999;
}

.wprh-custom-dropdown.is-open .wprh-dropdown-trigger {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
}

.wprh-dropdown-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wprh-dropdown-chevron {
  flex-shrink: 0;
  color: #666;
  transition: transform 0.2s;
}

.wprh-custom-dropdown.is-open .wprh-dropdown-chevron {
  transform: rotate(180deg);
}

.wprh-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 100;
  padding: 4px;
}

.wprh-custom-dropdown.is-open .wprh-dropdown-menu {
  display: block;
}

.wprh-dropdown-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #1d2327;
  transition: background 0.15s;
  line-height: 1.4;
}

.wprh-dropdown-option:hover {
  background: #f0f6fc;
}

.wprh-dropdown-option.is-selected {
  background: #f0f6fc;
  color: #2271b1;
  font-weight: 500;
}

.wprh-dropdown-option-label {
  flex: 1;
}

.wprh-dropdown-count {
  font-size: 12px;
  color: #999;
  background: #f0f0f1;
  padding: 1px 7px;
  border-radius: 10px;
  line-height: 1.5;
  flex-shrink: 0;
}

.wprh-dropdown-option.is-selected .wprh-dropdown-count {
  background: #e0ecf5;
  color: #2271b1;
}

.wprh-dropdown-check {
  flex-shrink: 0;
  color: #2271b1;
  opacity: 0;
  transition: opacity 0.15s;
}

.wprh-dropdown-option.is-selected .wprh-dropdown-check {
  opacity: 1;
}

/* Hierarchical dropdown depth styles */
.wprh-dropdown-option.wprh-dropdown-depth-1,
.wprh-dropdown-option.wprh-dropdown-depth-2,
.wprh-dropdown-option.wprh-dropdown-depth-3 {
  font-size: 13px;
  color: #50575e;
}

.wprh-dropdown-option.wprh-dropdown-depth-1::before,
.wprh-dropdown-option.wprh-dropdown-depth-2::before,
.wprh-dropdown-option.wprh-dropdown-depth-3::before {
  content: "–";
  color: #c3c4c7;
  flex-shrink: 0;
}

.wprh-dropdown-option.wprh-dropdown-depth-2::before {
  content: "––";
}

.wprh-dropdown-option.wprh-dropdown-depth-3::before {
  content: "–––";
}

/* Featured filter highlight */
.wprh-filter-featured {
  border-left: 3px solid #2271b1;
  background: #f0f6fc;
  border-radius: 6px;
}

.wprh-filter-featured.wprh-custom-dropdown .wprh-dropdown-trigger {
  background: #f0f6fc;
  border-color: #2271b1;
}

.wprh-filter-featured.wprh-resources-search .wprh-search-input {
  background: #f0f6fc;
  border-color: #2271b1;
}

/* Scrollbar styling for dropdown menu */
.wprh-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.wprh-dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.wprh-dropdown-menu::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.wprh-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Layout Toggle */
.wprh-layout-toggle {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.wprh-layout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
  padding: 0;
}

.wprh-layout-btn:first-child {
  border-radius: 6px 0 0 6px;
}

.wprh-layout-btn:last-child {
  border-radius: 0 6px 6px 0;
  border-left: none;
}

.wprh-layout-btn:hover {
  color: #2271b1;
  border-color: #999;
}

.wprh-layout-btn.is-active {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
}

.wprh-layout-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.wprh-resources-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  color: #666;
}

.wprh-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-top-color: #2271b1;
  border-radius: 50%;
  animation: wprh-spin 0.8s linear infinite;
}

@keyframes wprh-spin {
  to {
    transform: rotate(360deg);
  }
}

.wprh-resources-grid-wrapper {
  position: relative;
  min-height: 100px;
}

.wprh-resources-grid-wrapper.wprh-loading .wprh-resources-grid {
  opacity: 0.5;
  pointer-events: none;
}

/* ==========================================================================
   Grid Layouts with Column Controls
   ========================================================================== */

.wprh-resources-grid.wprh-layout-grid {
  display: grid;
  gap: 25px;
}

.wprh-resources-grid.wprh-layout-grid.wprh-columns-1 {
  grid-template-columns: 1fr;
}

.wprh-resources-grid.wprh-layout-grid.wprh-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.wprh-resources-grid.wprh-layout-grid.wprh-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.wprh-resources-grid.wprh-layout-grid.wprh-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.wprh-resources-grid.wprh-layout-grid.wprh-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.wprh-resources-grid.wprh-layout-grid.wprh-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

/* List Layout */
.wprh-resources-grid.wprh-layout-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.wprh-resources-grid.wprh-layout-list .wprh-resource-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.wprh-resources-grid.wprh-layout-list .wprh-card-media {
  flex: 0 0 200px;
  position: relative;
}

.wprh-resources-grid.wprh-layout-list .wprh-card-image {
  display: block;
  height: 100%;
}

.wprh-resources-grid.wprh-layout-list .wprh-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wprh-resources-grid.wprh-layout-list .wprh-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 25px;
}

.wprh-resources-grid.wprh-layout-list .wprh-card-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 20px 25px;
  border-top: none;
  border-left: 1px solid #eee;
  max-width: 380px;
  margin-top: 0;
}

/* ==========================================================================
   Enhanced Card Styles for Shortcodes
   ========================================================================== */

.wprh-resource-card .wprh-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f0f1;
}

.wprh-resource-card .wprh-card-image {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.wprh-resource-card .wprh-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wprh-resource-card:hover .wprh-card-image img {
  transform: scale(1.05);
}

.wprh-resource-card .wprh-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.wprh-resource-card .wprh-card-placeholder .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: #a0a5aa;
}

/* Video Duration Badge */
.wprh-video-duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(44px);
  -webkit-backdrop-filter: blur(44px);
  font-weight: 500;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: -0.28px;
  color: #ffffff;
  z-index: 2;
}

/* Type Badge */
.wprh-card-type {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  line-height: 1;
  z-index: 1;
}

.wprh-card-type .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

/* Type-specific badge colors */
.wprh-type-badge-video {
  background: rgba(220, 38, 38, 0.9);
}

.wprh-type-badge-pdf {
  background: rgba(234, 88, 12, 0.9);
}

.wprh-type-badge-download {
  background: rgba(5, 150, 105, 0.9);
}

.wprh-type-badge-external-link {
  background: rgba(37, 99, 235, 0.9);
}

.wprh-type-badge-internal-content {
  background: rgba(124, 58, 237, 0.9);
}

/* Card Body */
.wprh-resource-card .wprh-card-body {
  padding: 24px 16px 20px;
}

.wprh-resource-card .wprh-card-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 140%;
  letter-spacing: -0.48px;
}

.wprh-resource-card .wprh-card-excerpt {
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: -0.32px;
}

.wprh-resource-card .wprh-card-meta {
  font-size: 13px;
  color: #8c8f94;
}

.wprh-resource-card .wprh-card-topics a {
  color: #666;
  text-decoration: none;
}

.wprh-resource-card .wprh-card-topics a:hover {
  color: #2271b1;
}

/* Card Footer */
.wprh-resource-card .wprh-card-footer {
  padding: 0 16px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

/* Hide card footer when disabled via settings */
.wprh-hide-card-footer .wprh-card-footer,
.wprh-hide-card-footer .wprh-resources-grid.wprh-layout-list .wprh-card-footer,
.wprh-hide-card-footer.wprh-resources-container .wprh-card-footer {
  display: none;
}

/* Taxonomy Pills */
.wprh-card-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #b4b4b4;
  padding: 10px 14px;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: -0.28px;
  color: #0f0f0f;
  text-decoration: none;
  transition: all 0.2s ease;
}

.wprh-card-pill:hover {
  border-color: #2271b1;
  background: #f0f6fc;
  color: #2271b1;
}

.wprh-card-pill.wprh-pill-topic {
  color: #0f0f0f;
}

.wprh-card-pill.wprh-pill-audience {
  color: #0f0f0f;
}

/* Featured Badge */
.wprh-resource-card.wprh-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2271b1, #72aee6);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.wprh-resources-pagination {
  margin-top: 30px;
}

.wprh-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.wprh-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
}

.wprh-page-btn:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #999;
}

.wprh-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wprh-page-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.wprh-page-info {
  font-size: 14px;
  color: #666;
}

/* ==========================================================================
   Collection Styles
   ========================================================================== */

.wprh-collection {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.wprh-collection-header {
  padding: 25px;
  border-bottom: 1px solid #eee;
}

.wprh-collection-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.wprh-collection-title a {
  color: inherit;
  text-decoration: none;
}

.wprh-collection-title a:hover {
  color: #2271b1;
}

.wprh-collection-count {
  display: inline-block;
  font-size: 13px;
  color: #666;
  background: #f0f0f1;
  padding: 4px 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.wprh-collection-description {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-top: 10px;
}

/* Collection Progress */
.wprh-collection-progress {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.wprh-progress-bar {
  flex: 1;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.wprh-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2271b1, #72aee6);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.wprh-progress-text {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}

/* Collection Resources Container */
.wprh-collection-resources {
  padding: 20px;
}

/* Collection Empty State */
.wprh-collection-empty {
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

.wprh-collection-error {
  padding: 20px;
  text-align: center;
  color: #a94442;
  background: #f2dede;
  border-radius: 8px;
}

/* Collection List Layout */
.wprh-collection-resources.wprh-layout-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wprh-list-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.wprh-list-item:last-child {
  border-bottom: none;
}

.wprh-list-item:hover {
  background: #f8f9fa;
}

.wprh-list-number {
  flex: 0 0 30px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #8c8f94;
}

.wprh-list-thumbnail {
  flex: 0 0 60px;
  width: 60px;
  height: 45px;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f1;
}

.wprh-list-thumbnail a {
  display: block;
  height: 100%;
}

.wprh-list-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wprh-list-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wprh-list-placeholder .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: #8c8f94;
}

.wprh-list-content {
  flex: 1;
  min-width: 0;
}

.wprh-list-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 3px;
  line-height: 1.3;
}

.wprh-list-title a {
  color: inherit;
  text-decoration: none;
}

.wprh-list-title a:hover {
  color: #2271b1;
}

.wprh-list-excerpt {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.wprh-list-meta {
  flex: 0 0 auto;
}

.wprh-list-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #666;
}

.wprh-list-type .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

.wprh-list-link {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #8c8f94;
  transition: color 0.2s;
}

.wprh-list-link:hover {
  color: #2271b1;
}

.wprh-list-link .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

/* Collection Grid Layout */
.wprh-collection-resources.wprh-layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.wprh-collection-card {
  position: relative;
}

.wprh-collection-card .wprh-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

.wprh-collection-card .wprh-card-number {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50%;
}

.wprh-collection-card .wprh-card-type {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
}

.wprh-collection-card .wprh-card-type .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: #333;
}

/* Collection Playlist Layout */
.wprh-collection-resources.wprh-layout-playlist {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wprh-playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
}

.wprh-playlist-item:last-child {
  border-bottom: none;
}

.wprh-playlist-item:hover {
  background: #f8f9fa;
}

.wprh-playlist-number {
  flex: 0 0 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #8c8f94;
}

.wprh-playlist-icon {
  flex: 0 0 20px;
  font-size: 18px;
  width: 18px;
  height: 18px;
  color: #666;
}

.wprh-playlist-info {
  flex: 1;
  min-width: 0;
}

.wprh-playlist-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wprh-playlist-title:hover {
  color: #2271b1;
}

.wprh-playlist-type {
  font-size: 12px;
  color: #8c8f94;
}

.wprh-playlist-status {
  flex: 0 0 20px;
  color: #00a32a;
}

/* Collection Nested Accordion Layout */

/* Collection-level accordion wrapper */
.wprh-collection-accordion-wrapper {
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wprh-collection-accordion-item {
  border: none;
}

.wprh-collection-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f1 100%);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
  font-family: inherit;
  border-bottom: 1px solid #d0d0d0;
}

.wprh-collection-accordion-trigger:hover {
  background: linear-gradient(135deg, #f0f0f1 0%, #e8e8e8 100%);
}

.wprh-collection-accordion-trigger:focus {
  outline: 2px solid #2271b1;
  outline-offset: -2px;
}

.wprh-collection-accordion-title {
  flex: 1;
  font-size: 24px;
  font-weight: 700;
  color: #2271b1;
  line-height: 1.3;
}

.wprh-collection-accordion-count {
  padding: 6px 12px;
  background: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  border: 1px solid #d0d0d0;
}

.wprh-collection-accordion-arrow {
  flex: 0 0 24px;
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: #2271b1;
  transition: transform 0.3s ease;
}

.wprh-collection-accordion-trigger[aria-expanded="true"]
  .wprh-collection-accordion-arrow {
  transform: rotate(180deg);
}

.wprh-collection-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.wprh-collection-accordion-item.is-open .wprh-collection-accordion-content {
  max-height: 50000px;
}

.wprh-collection-accordion-inner {
  padding: 0;
  background: #fff;
}

.wprh-collection-accordion-inner .wprh-collection-description {
  padding: 20px 25px;
  background: #fafafa;
  border-bottom: 1px solid #e0e0e0;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

/* Resource-level accordions inside collection */
.wprh-collection-resources.wprh-layout-nested-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #e0e0e0;
}

.wprh-accordion-item {
  border-bottom: 1px solid #e0e0e0;
}

.wprh-accordion-item:last-child {
  border-bottom: none;
}

.wprh-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
  font-family: inherit;
}

.wprh-accordion-trigger:hover {
  background: #f8f9fa;
}

.wprh-accordion-trigger:focus {
  outline: 2px solid #2271b1;
  outline-offset: -2px;
}

.wprh-accordion-number {
  flex: 0 0 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f1;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50%;
}

.wprh-accordion-icon {
  flex: 0 0 20px;
  font-size: 20px;
  width: 20px;
  height: 20px;
  color: #2271b1;
}

.wprh-accordion-title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

.wprh-accordion-arrow {
  flex: 0 0 20px;
  font-size: 20px;
  width: 20px;
  height: 20px;
  color: #666;
  transition: transform 0.3s ease;
}

.wprh-accordion-trigger[aria-expanded="true"] .wprh-accordion-arrow {
  transform: rotate(180deg);
}

.wprh-accordion-trigger[aria-expanded="true"] {
  background: #f8f9fa;
}

.wprh-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.wprh-accordion-item.is-open > .wprh-accordion-content {
  max-height: 5000px;
}

.wprh-accordion-inner {
  padding: 20px 20px 20px 74px;
  background: #fafafa;
  border-top: 1px solid #e0e0e0;
}

/* Video-specific accordion inner */
.wprh-accordion-video-inner {
  padding: 20px;
}

.wprh-accordion-duration {
  padding: 4px 10px;
  background: rgba(34, 113, 177, 0.1);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #2271b1;
  margin-left: auto;
  margin-right: 10px;
}

.wprh-accordion-meta {
  margin-bottom: 15px;
}

.wprh-accordion-type {
  font-size: 14px;
  color: #666;
}

.wprh-accordion-type strong {
  color: #333;
  margin-right: 5px;
}

.wprh-accordion-description {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

.wprh-accordion-description p:last-child {
  margin-bottom: 0;
}

.wprh-accordion-video-container {
  position: relative;
  margin-top: 15px;
}

.wprh-accordion-video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.wprh-accordion-video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wprh-accordion-video-thumbnail .wprh-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wprh-accordion-actions {
  display: flex;
  gap: 10px;
}

.wprh-accordion-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #2271b1;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.wprh-accordion-button:hover {
  background: #135e96;
  color: #fff;
}

.wprh-accordion-button .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Single Resource Block Styles
   ========================================================================== */

.wprh-resource-single {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Card Display */
.wprh-resource-single.wprh-display-card {
  max-width: 400px;
}

/* Full Display */
.wprh-resource-single.wprh-display-full .wprh-single-image img {
  width: 100%;
  height: auto;
}

/* Embed Display */
.wprh-resource-single.wprh-display-embed {
  background: transparent;
  box-shadow: none;
}

.wprh-resource-single.wprh-display-embed .wprh-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.wprh-resource-single.wprh-display-embed .wprh-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Link Display */
.wprh-resource-single.wprh-display-link {
  background: transparent;
  box-shadow: none;
}

.wprh-resource-single.wprh-display-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #2271b1;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s;
}

.wprh-resource-single.wprh-display-link a:hover {
  background: #135e96;
}

.wprh-resource-single.wprh-display-link .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Notices
   ========================================================================== */

.wprh-notice {
  padding: 15px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.wprh-notice-warning {
  background: #fcf8e3;
  border: 1px solid #faebcc;
  color: #8a6d3b;
}

.wprh-notice-error {
  background: #f2dede;
  border: 1px solid #ebccd1;
  color: #a94442;
}

.wprh-notice-success {
  background: #dff0d8;
  border: 1px solid #d6e9c6;
  color: #3c763d;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 1200px) {
  .wprh-resources-grid.wprh-layout-grid.wprh-columns-6 {
    grid-template-columns: repeat(4, 1fr);
  }

  .wprh-resources-grid.wprh-layout-grid.wprh-columns-5 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 1024px) {
  .wprh-article-container {
    flex-direction: column;
  }

  .wprh-article-sidebar {
    position: static;
    flex: none;
    width: 100%;
  }

  .wprh-resources-grid.wprh-layout-grid.wprh-columns-6,
  .wprh-resources-grid.wprh-layout-grid.wprh-columns-5,
  .wprh-resources-grid.wprh-layout-grid.wprh-columns-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .wprh-content-area {
    padding: 15px;
  }

  .wprh-single-resource {
    padding: 20px;
  }

  .wprh-resource-title {
    font-size: 1.5rem;
  }

  .wprh-archive-title {
    font-size: 1.8rem;
  }

  .wprh-resource-grid {
    grid-template-columns: 1fr;
  }

  .wprh-resource-download .wprh-download-box {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .wprh-download-info {
    flex-direction: column;
  }

  /* Toolbar responsive */
  .wprh-resources-toolbar {
    flex-direction: column;
  }

  .wprh-resources-search {
    max-width: 100%;
  }

  .wprh-resources-filters {
    width: 100%;
  }

  .wprh-custom-dropdown {
    flex: 1;
    min-width: 0;
  }

  /* Grid columns responsive */
  .wprh-resources-grid.wprh-layout-grid.wprh-columns-6,
  .wprh-resources-grid.wprh-layout-grid.wprh-columns-5,
  .wprh-resources-grid.wprh-layout-grid.wprh-columns-4,
  .wprh-resources-grid.wprh-layout-grid.wprh-columns-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* List layout responsive */
  .wprh-resources-grid.wprh-layout-list .wprh-resource-card {
    flex-direction: column;
  }

  .wprh-resources-grid.wprh-layout-list .wprh-card-media {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .wprh-resources-grid.wprh-layout-list .wprh-card-footer {
    border-left: none;
    border-top: 1px solid #eee;
    justify-content: flex-start;
  }

  /* Collection list responsive */
  .wprh-list-item {
    flex-wrap: wrap;
  }

  .wprh-list-meta {
    display: none;
  }

  /* Pagination responsive */
  .wprh-pagination {
    flex-wrap: wrap;
    gap: 10px;
  }

  .wprh-page-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  /* Collection header */
  .wprh-collection-header {
    padding: 20px;
  }

  .wprh-collection-title {
    font-size: 1.25rem;
  }
}

@media screen and (max-width: 480px) {
  /* Single column on mobile */
  .wprh-resources-grid.wprh-layout-grid.wprh-columns-6,
  .wprh-resources-grid.wprh-layout-grid.wprh-columns-5,
  .wprh-resources-grid.wprh-layout-grid.wprh-columns-4,
  .wprh-resources-grid.wprh-layout-grid.wprh-columns-3,
  .wprh-resources-grid.wprh-layout-grid.wprh-columns-2 {
    grid-template-columns: 1fr;
  }

  /* Collection grid responsive */
  .wprh-collection-resources.wprh-layout-grid {
    grid-template-columns: 1fr;
  }

  /* Filters stack vertically */
  .wprh-resources-filters {
    flex-direction: column;
  }

  .wprh-custom-dropdown {
    width: 100%;
  }

  /* Simplified list items */
  .wprh-list-thumbnail {
    display: none;
  }

  .wprh-list-number {
    flex: 0 0 24px;
  }
}

/* ==========================================================================
   Video Default Overlay Styles
   ========================================================================== */

.wprh-video-default-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wprh-video-default-overlay .wprh-overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.wprh-video-default-overlay .wprh-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    179.24% 346.31% at 94.9% 91.82%,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.012) 100%
  );
  z-index: 2;
}

.wprh-video-default-overlay .wprh-overlay-title {
  position: relative;
  z-index: 3;
  padding: 20px;
  color: #fff;
  font-weight: 900;
  font-size: 32px;
  line-height: 110%;
  letter-spacing: -0.64px;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  max-width: 80%;
  word-wrap: break-word;
}

.wprh-resources-grid.wprh-layout-list .wprh-overlay-title {
  font-size: 18px;
}
.wprh-resources-grid.wprh-layout-l .wprh-play-button svg {
  width: 30px;
}

/* Responsive overlay text */
@media screen and (max-width: 768px) {
  .wprh-video-default-overlay .wprh-overlay-title {
    font-size: 24px;
    padding: 15px;
  }
}

@media screen and (max-width: 480px) {
  .wprh-video-default-overlay .wprh-overlay-title {
    font-size: 18px;
    padding: 10px;
    max-width: 90%;
  }
}

/* ==========================================================================
   Video Play Button & Lightbox
   ========================================================================== */

/* Play Button */
.wprh-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 3;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  opacity: 0.9;
}

.wprh-play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

.wprh-play-button:focus {
  outline: none;
}

.wprh-play-button svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.wprh-video-card {
  cursor: pointer;
  position: relative;
}

/* Lightbox-enabled cards */
.wprh-lightbox-enabled {
  cursor: pointer;
}

.wprh-lightbox-enabled .wprh-video-card-title {
  cursor: pointer;
  color: #0f0f0f;
}

.wprh-lightbox-enabled:hover .wprh-video-card-title {
  color: #2271b1;
}

/* Lightbox Modal */
.wprh-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wprh-lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1;
}

.wprh-lightbox-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  z-index: 2;
}

.wprh-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 3;
  transition: transform 0.2s ease;
}

.wprh-lightbox-close:hover {
  transform: rotate(90deg);
}

.wprh-lightbox-close:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

.wprh-lightbox-video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
}

.wprh-lightbox-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Prevent body scroll when lightbox is open */
body.wprh-lightbox-open {
  overflow: hidden;
}

/* Responsive Lightbox */
@media screen and (max-width: 768px) {
  .wprh-lightbox-content {
    width: 95%;
  }

  .wprh-lightbox-close {
    top: -35px;
  }
}
