/* Blog Card & Post Styles
 * Extracted from style.css for conditional loading
 * Loaded on: blog, home, category, tag, archive pages
 */

/* ========================================
   BLOG STYLES - 2025 REDESIGN
   Premium Magazine Aesthetic
   ======================================== */

/* Blog Post Cards - Homepage & Archive */
.blog-post-card {
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.2);
}

.blog-post-card img {
  transition: transform 0.5s ease;
  object-position: center 20%; /* Prioritize showing faces/heads */
}

.blog-post-card:hover img {
  transform: scale(1.05);
}

/* Blog Cards Grid - Proper aspect ratio for featured images */
.blog-cards-grid .wp-block-post-featured-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-cards-grid .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* Show upper portion of image to avoid cutting off heads */
  border-radius: 16px 16px 0 0;
}

/* Featured Post Card */
.blog-featured-card {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-featured-card:hover {
  box-shadow: 0 12px 50px rgba(255, 215, 0, 0.25);
}

.blog-featured-card img {
  transition: transform 0.6s ease;
}

.blog-featured-card:hover img {
  transform: scale(1.08);
}

/* Blog Post Content Styling */
.blog-post-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--wp--preset--color--dark-charcoal);
}

.blog-post-content h2 {
  color: var(--wp--preset--color--gold-deep);
  font-family: var(--wp--preset--font-family--heading);
  font-size: 32px;
  font-weight: 700;
  margin-top: 60px;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.blog-post-content h3 {
  color: var(--wp--preset--color--gold-deep);
  font-family: var(--wp--preset--font-family--heading);
  font-size: 24px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 15px;
}

.blog-post-content p {
  margin-bottom: 20px;
}

.blog-post-content a {
  color: var(--wp--preset--color--gold-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

.blog-post-content a:hover {
  color: var(--wp--preset--color--gold-bright);
  text-decoration-thickness: 3px;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 25px 0;
  padding-left: 30px;
}

.blog-post-content li {
  margin-bottom: 15px;
  line-height: 1.8;
}

.blog-post-content li::marker {
  color: var(--wp--preset--color--gold-deep);
  font-weight: 700;
}

.blog-post-content blockquote {
  background: var(--wp--preset--color--burgundy);
  color: var(--wp--preset--color--white);
  border-left: 4px solid var(--wp--preset--color--gold-bright);
  padding: 40px;
  margin: 60px 0;
  border-radius: 8px;
  font-style: italic;
  font-size: 24px;
  line-height: 1.6;
}

.blog-post-content blockquote cite {
  display: block;
  margin-top: 20px;
  font-size: 16px;
  color: var(--wp--preset--color--gold-bright);
  font-style: normal;
  font-weight: 700;
}

/* Blog Featured Image */
.blog-post-featured-image {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Social Share Buttons */
.social-share-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.social-share-buttons .share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--dark-charcoal);
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.social-share-buttons .share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
  background: var(--wp--preset--color--gold-bright);
  color: var(--wp--preset--color--rich-black);
}

.social-share-buttons .share-btn.facebook:hover {
  background: #1877f2;
  color: white;
}

.social-share-buttons .share-btn.twitter:hover {
  background: #1da1f2;
  color: white;
}

.social-share-buttons .share-btn.linkedin:hover {
  background: #0a66c2;
  color: white;
}

.social-share-buttons .share-btn.copy-link:hover {
  background: var(--wp--preset--color--gold-bright);
  color: var(--wp--preset--color--rich-black);
}

/* Author Bio Card */
.author-bio-card {
  box-shadow: var(--wp--custom--shadows--card);
  border-width: 2px;
  transition: all 0.3s ease;
}

.author-bio-card:hover {
  box-shadow: var(--wp--custom--shadows--gold-glow);
  transform: translateY(-2px);
}

.author-bio-card img.author-avatar,
.author-bio-card .author-avatar img {
  object-fit: cover;
  box-shadow: var(--wp--custom--shadows--soft);
  border: 2px solid var(--wp--preset--color--gold-metallic);
}

.pl-latest-videos {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pl-latest-videos__featured {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pl-latest-videos__thumb img {
  width: 100%;
  height: auto;
  min-height: 150px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--wp--preset--color--rich-black);
}

.pl-latest-videos__title {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  color: var(--wp--preset--color--gold-shimmer);
  text-decoration: none;
}

.pl-latest-videos__title:hover,
.pl-latest-videos__item-title:hover {
  color: var(--wp--preset--color--gold-deep);
}

.pl-latest-videos__cta {
  display: inline-block;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--gold-deep) 100%);
  color: var(--wp--preset--color--rich-black);
  font-weight: 700;
  text-decoration: none;
}

.pl-latest-videos__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.pl-latest-videos__item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
}

.pl-latest-videos__item-thumb img {
  width: 84px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--wp--preset--color--warm-beige);
}

.pl-latest-videos__item-title {
  color: var(--wp--preset--color--white);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

/* ========================================
   QUERY PAGINATION (single authority)
   Covers: blog landing, archives, search
   ======================================== */

/* Pagination Container */
.wp-block-query-pagination.wp-block-query-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin-top: 40px;
  padding: 20px 0;
}

/* Previous link - text style */
.wp-block-query-pagination-previous.wp-block-query-pagination-previous {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #C5A059;
  text-decoration: none;
  white-space: nowrap;
  padding: 0;
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wp-block-query-pagination-previous.wp-block-query-pagination-previous:hover {
  color: var(--wp--preset--color--primary);
}

/* Next link - pill button style */
.wp-block-query-pagination-next.wp-block-query-pagination-next {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--wp--preset--color--white);
  text-decoration: none;
  white-space: nowrap;
  padding: 14px 28px;
  background: transparent;
  border: 1px solid #C5A059;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.wp-block-query-pagination-next.wp-block-query-pagination-next:hover {
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}

/* Arrow inside prev/next */
.wp-block-query-pagination-previous-arrow.wp-block-query-pagination-previous-arrow,
.wp-block-query-pagination-next-arrow.wp-block-query-pagination-next-arrow {
  display: inline;
  color: inherit;
}

/* Page numbers container */
.wp-block-query-pagination-numbers.wp-block-query-pagination-numbers {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Page number circles */
.wp-block-query-pagination-numbers.wp-block-query-pagination-numbers .page-numbers {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 500;
  color: #C5A059;
  text-decoration: none;
  border: 1px solid #C5A059;
  background: transparent;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.wp-block-query-pagination-numbers.wp-block-query-pagination-numbers .page-numbers:hover {
  background: rgba(197, 160, 89, 0.15);
  color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
}

/* Current page - filled gold */
.wp-block-query-pagination-numbers.wp-block-query-pagination-numbers .page-numbers.current {
  background: linear-gradient(135deg, var(--wp--preset--color--gold-metallic), var(--wp--preset--color--primary), #E8C252);
  color: #111;
  border-color: var(--wp--preset--color--primary);
  font-weight: 600;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Ellipsis */
.wp-block-query-pagination-numbers.wp-block-query-pagination-numbers .page-numbers.dots {
  width: auto;
  min-width: 20px;
  height: auto;
  border: none;
  background: transparent;
  box-shadow: none;
}

/* Focus states */
.wp-block-query-pagination a:focus-visible,
.wp-block-query-pagination .page-numbers:focus-visible {
  outline: 2px solid var(--wp--preset--color--gold-shimmer);
  outline-offset: 2px;
}

/* Mobile pagination */
@media (max-width: 599px) {
  .wp-block-query-pagination.wp-block-query-pagination {
    gap: 8px;
    flex-wrap: wrap;
  }

  .wp-block-query-pagination-numbers.wp-block-query-pagination-numbers .page-numbers {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .wp-block-query-pagination-next.wp-block-query-pagination-next {
    padding: 10px 20px;
    font-size: 0.875rem;
  }
}

/* Blog Comments Styling */
.blog-comments {
  background: var(--wp--preset--color--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.blog-comments .wp-block-comment-template {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.blog-comments .wp-block-comment-author-name {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  color: var(--wp--preset--color--gold-deep);
  font-size: 18px;
}

.blog-comments .wp-block-comment-content {
  color: var(--wp--preset--color--dark-charcoal);
  line-height: 1.8;
  margin-top: 15px;
}

.blog-comments .wp-block-comment-date {
  font-size: 14px;
  color: var(--wp--preset--color--warm-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-comments .wp-block-comment-reply-link {
  color: var(--wp--preset--color--gold-deep);
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-comments .wp-block-comment-reply-link:hover {
  color: var(--wp--preset--color--gold-bright);
}

/* Post Comment Form */
.blog-comments .wp-block-post-comments-form {
  margin-top: 40px;
}

.blog-comments .wp-block-post-comments-form input[type="text"],
.blog-comments .wp-block-post-comments-form input[type="email"],
.blog-comments .wp-block-post-comments-form input[type="url"],
.blog-comments .wp-block-post-comments-form textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-family: var(--wp--preset--font-family--body);
  font-size: 16px;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.blog-comments .wp-block-post-comments-form input:focus,
.blog-comments .wp-block-post-comments-form textarea:focus {
  border-color: var(--wp--preset--color--gold-bright);
  outline: 2px solid var(--wp--preset--color--gold-bright);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.blog-comments .wp-block-post-comments-form input[type="submit"] {
  background: var(--wp--preset--gradient--burgundy-orange);
  color: var(--wp--preset--color--white);
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(128, 0, 32, 0.3);
}

.blog-comments .wp-block-post-comments-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(128, 0, 32, 0.4);
}

/* Post Navigation */
.post-navigation a {
  color: var(--wp--preset--color--gold-deep);
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: var(--wp--preset--font-family--heading);
}

.post-navigation a:hover {
  color: var(--wp--preset--color--gold-bright);
}

.post-navigation .post-navigation-link-previous {
  text-align: left;
}

.post-navigation .post-navigation-link-next {
  text-align: right;
}

/* Blog Search Form */
.wp-block-search {
  max-width: 600px;
  margin: 0 auto;
}

.wp-block-search__input {
  font-size: 18px;
  padding: 18px 25px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.wp-block-search__input:focus {
  border-color: var(--wp--preset--color--gold-bright);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
  outline: 2px solid var(--wp--preset--color--gold-bright);
  outline-offset: 2px;
  border-radius: 8px;
}

.wp-block-search__button {
  background: var(--wp--preset--color--gold-bright);
  color: var(--wp--preset--color--rich-black);
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  padding: 18px 30px;
  border: none;
  transition: all 0.3s ease;
}

.wp-block-search__button:hover {
  background: var(--wp--preset--color--gold-shimmer);
  transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 782px) {
  .blog-post-content {
    font-size: 16px;
  }

  .blog-post-content h2 {
    font-size: 28px;
    margin-top: 40px;
  }

  .blog-post-content h3 {
    font-size: 22px;
    margin-top: 30px;
  }

  .blog-post-content blockquote {
    font-size: 20px;
    padding: 30px 20px;
    margin: 40px 0;
  }

  .blog-featured-card .wp-block-columns {
    flex-direction: column !important; /* Override WP core inline flex-direction */
  }

  .blog-featured-card .wp-block-column {
    flex-basis: 100% !important; /* Override WP core inline flex-basis */
  }

  .social-share-buttons {
    gap: 12px;
  }

  .social-share-buttons .share-btn {
    width: 40px;
    height: 40px;
  }

  .blog-comments {
    padding: 25px 20px;
  }

  .post-navigation {
    flex-direction: column;
    gap: 20px;
  }

  .post-navigation .post-navigation-link-previous,
  .post-navigation .post-navigation-link-next {
    text-align: center;
    width: 100%;
  }
}

/* Tablet Breakpoint */
@media (max-width: 1199px) and (min-width: 783px) {
  .blog-post-content {
    font-size: 17px;
  }

  .blog-post-content h2 {
    font-size: 30px;
  }
}

/* Enhanced Read More Links - Matching Global Buttons */
/* Enhanced Read More Links - Matching Global Buttons - FORCE OVERRIDES */
body .wp-block-read-more {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  font-family: var(--wp--preset--font-family--heading) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  padding: 12px 30px !important;
  border-radius: 50px !important;
  background-color: var(--wp--preset--color--gold-bright) !important;
  color: var(--wp--preset--color--rich-black) !important;
  text-decoration: none !important;
  text-align: center !important;
  transition: all 0.2s ease !important;
  line-height: 1.2 !important;
  border: none !important;
  box-shadow: none !important;

  /* Centering Fixes */
  width: fit-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
}

body .wp-block-read-more:hover {
  transform: translateY(-2px) !important;
  background-color: var(--wp--preset--color--gold-deep) !important;
  color: var(--wp--preset--color--rich-black) !important;
  text-decoration: none !important;
}

body .wp-block-read-more:focus-visible {
  outline: 2px solid var(--wp--preset--color--gold-bright) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.3) !important;
}

/* Blog Page Specific Overrides */
body.blog main,
body.single-post main,
body.page-template-page-blog main {
  background: var(--wp--preset--color--rich-black);
}

/* Ensure blog post titles are properly sized */
.blog-post-card .wp-block-post-title {
  display: flex;
  align-items: center;
}

/* Add subtle animation to cards on load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-post-card {
  animation: fadeInUp 0.6s ease forwards;
}

.blog-post-card:nth-child(1) {
  animation-delay: 0.1s;
}

.blog-post-card:nth-child(2) {
  animation-delay: 0.2s;
}

.blog-post-card:nth-child(3) {
  animation-delay: 0.3s;
}

.blog-post-card:nth-child(4) {
  animation-delay: 0.4s;
}

.blog-post-card:nth-child(5) {
  animation-delay: 0.5s;
}

.blog-post-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Button Style Overrides for Dark Backgrounds */
.wp-block-button.is-style-fill .wp-block-button__link {
  border: 2px solid transparent; /* Ensure sizing matches outline */
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  border: 2px solid currentColor !important;
}
.has-rich-black-background-color
  .wp-block-button.is-style-outline
  .wp-block-button__link {
  color: var(--wp--preset--color--golden-yellow, #ffd700) !important;
}
.has-rich-black-background-color
  .wp-block-button.is-style-fill
  .wp-block-button__link.has-gold-deep-background-color {
  background-color: var(--wp--preset--color--gold-deep, #b8860b) !important;
  color: var(--wp--preset--color--white) !important;
}

/* Blog Page Search Bar - Dark Theme with Gold */
/* Blog Page Search Bar - Dark Theme with Gold */
.blog-search-dark .wp-block-search__inside-wrapper {
  background: transparent !important;
  border: 1px solid var(--wp--preset--color--primary) !important;
  border-radius: 6px;
  max-width: 400px;
  margin: 0 auto; /* Center it */
}

.blog-search-dark .wp-block-search__input {
  background: transparent !important;
  color: var(--wp--preset--color--white) !important; /* White text for better contrast on dark bg */
  border: none !important;
  font-size: 0.85rem;
}

.blog-search-dark .wp-block-search__input::placeholder {
  color: rgba(255, 255, 255, 0.7) !important; /* Lighter white placeholder */
}

.blog-search-dark .wp-block-search__button {
  background: transparent !important;
  border: none !important;
  padding: 8px;
  cursor: pointer;
}

.blog-search-dark .wp-block-search__button:hover svg {
  fill: var(--wp--preset--color--white) !important;
}

.blog-search-dark .wp-block-search__button svg {
  fill: var(--wp--preset--color--primary) !important;
  width: 18px;
  height: 18px;
  transition: fill 0.3s ease;
}

/* ========================================
   HERO VIDEO STYLES
   ======================================== */

/* Hero Video Container */
.hero-trailer {
  margin-bottom: 30px;
}

.hero-trailer video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--wp--custom--shadows--card);
  transition: all 0.3s ease;
}

.hero-trailer video:hover {
  box-shadow: var(--wp--custom--shadows--gold);
  transform: translateY(-2px);
}

/* Ensure video controls are accessible */
.hero-trailer video::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive video sizing */
@media (max-width: 1023px) {
  .hero-trailer {
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .hero-trailer video {
    border-radius: 8px;
  }

  .hero-media-wrapper {
    gap: 20px;
  }
}

/* Hero Media Wrapper - Stack video and image vertically */
.hero-media-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (max-width: 767px) {
  .hero-media-wrapper {
    gap: 20px;
  }
}

/* ========================================
   CONTENT LAYERING & Z-INDEX SYSTEM
   Ensures proper stacking of content elements
   ======================================== */

/* Text content gets higher z-index for readability */
.blog-post-card h1,
.blog-post-card h2,
.blog-post-card h3,
.blog-post-card h4,
.blog-post-card h5,
.blog-post-card h6,
.blog-post-card p,
.blog-post-card span,
.blog-post-card a,
.blog-post-card h1,
.blog-post-card h2,
.blog-post-card h3,
.blog-post-card h4,
.blog-post-card h5,
.blog-post-card h6,
.blog-post-card p,
.blog-post-card span,
.blog-post-card a {
  position: relative;
  z-index: 10;
}

/* Interactive elements get highest z-index */
.blog-post-card a,
.blog-post-card button,
.blog-post-card a,
.blog-post-card button {
  position: relative;
  z-index: 20;
}

/* Ensure text readability on dark backgrounds */
.has-rich-black-background-color h1,
.has-rich-black-background-color h2,
.has-rich-black-background-color h3,
.has-rich-black-background-color h4,
.has-rich-black-background-color h5,
.has-rich-black-background-color h6,
.has-rich-black-background-color p,
.has-rich-black-background-color span,
.has-black-background-color h1,
.has-black-background-color h2,
.has-black-background-color h3,
.has-black-background-color h4,
.has-black-background-color h5,
.has-black-background-color h6,
.has-black-background-color p,
.has-black-background-color span,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section p,
.hero-section span,
.about-section h1,
.about-section h2,
.about-section h3,
.about-section h4,
.about-section h5,
.about-section h6,
.about-section p,
.about-section span,
.premiere-banner-section h1,
.premiere-banner-section h2,
.premiere-banner-section h3,
.premiere-banner-section h4,
.premiere-banner-section h5,
.premiere-banner-section h6,
.premiere-banner-section p,
.premiere-banner-section span {
  position: relative;
  z-index: 15;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Subtle shadow for better readability */
}

/* Ensure buttons and links are always clickable */
.has-rich-black-background-color a:not(.pl-carousel__nav),
.has-rich-black-background-color button:not(.pl-carousel__nav),
.has-black-background-color a:not(.pl-carousel__nav),
.has-black-background-color button:not(.pl-carousel__nav),
.hero-section a,
.hero-section button,
.about-section a,
.about-section button,
.premiere-banner-section a,
.premiere-banner-section button {
  position: relative;
  z-index: 25;
}

/* Video elements should be above background effects */
video,
iframe,
.wp-block-video,
.hero-trailer {
  position: relative;
  z-index: 12;
}

/* Images should be above background effects */
.blog-post-card img,
.blog-post-card .wp-block-image,
.blog-post-card figure,
.blog-post-card img,
.blog-post-card .wp-block-image,
.blog-post-card figure {
  position: relative;
  z-index: 8;
}

/* ========================================
   ACTION CARDS - LIQUID GLASS MORPHISM
   Requirements: Glass morphism effect for Take Action section cards
   ======================================== */

/* Liquid Glass Card Effect */
.action-card-glass {
  /* Glass morphism background */
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.85) 0%,
    rgba(45, 45, 45, 0.75) 50%,
    rgba(26, 26, 26, 0.85) 100%
  ) !important;

  /* Backdrop blur for glass effect */
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);

  /* Gold border with transparency */
  border: 1px solid rgba(255, 215, 0, 0.2);

  /* Layered shadows for depth */
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 215, 0, 0.1);

  /* Smooth transitions */
  transition: all 0.3s ease;
}

/* Glass card hover effect */
.action-card-glass:hover {
  /* Enhanced glow on hover */
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 215, 0, 0.2),
    inset 0 1px 0 rgba(255, 215, 0, 0.15);

  /* Subtle lift */
  transform: translateY(-4px);
}

/* Baby Steps Image - Centered with proper fit */
.baby-steps-card-image img {
  object-fit: contain;
  object-position: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
}

/* Form inputs in glass cards */
.action-card-glass input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.action-card-glass input:focus {
  border-color: rgba(255, 215, 0, 0.5);
  outline: 2px solid var(--wp--preset--color--gold-bright);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
  border-radius: 8px;
}

/* Fix blog card button text overflow */
#latest-blog-card-content a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  box-sizing: border-box;
}

/* Ensure button fits properly on smaller cards */
@media (max-width: 1200px) {
  #latest-blog-card-content a {
    font-size: 0.9rem !important;
    padding: 12px 20px !important;
  }
}

@media (max-width: 1023px) {
  #latest-blog-card-content a {
    font-size: 0.85rem !important;
    padding: 12px 16px !important;
  }
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .action-card-glass {
    /* Slightly less blur on mobile for performance */
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    backdrop-filter: blur(15px) saturate(180%);
  }

  .baby-steps-card-image img {
    padding: 15px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .action-card-glass {
    transition: none !important;
  }

  .action-card-glass:hover {
    transform: none !important;
  }
}

/* Background image fallbacks - Requirements 1.4 */
.hero-section {
  /* Fallback background color if image fails to load */
  background-color: var(--wp--preset--color--rich-black) !important;
}

.hero-section .wp-block-cover__image-background {
  /* Graceful degradation for background images */
  transition: opacity 0.3s ease;
}

.hero-section .wp-block-cover__image-background:not([src]),
.hero-section .wp-block-cover__image-background[src=""] {
  /* Hide broken images */
  opacity: 0;
}

/* Enhanced background image error handling */
.hero-section.bg-image-error {
  /* Applied by JavaScript when background image fails to load */
  background: linear-gradient(
    135deg,
    var(--wp--preset--color--rich-black) 0%,
    var(--wp--preset--color--dark-charcoal) 50%,
    var(--wp--preset--color--rich-black) 100%
  ) !important;
}

/* Blog post featured image styles */
.blog-post-card .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Specific fallback for Awakening Giants post — uses featured image via WP */
/* Hardcoded URL removed; use wp-block-post-featured-image for fallback */

.post-spryte-loriano-awakening-giants .blog-post-card {
  position: relative;
}

.post-spryte-loriano-awakening-giants
  .blog-post-card
  > *:not(.wp-block-post-featured-image) {
  position: relative;
  z-index: 2;
}

.hero-section.bg-image-error::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 215, 0, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 215, 0, 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
}

/* About section background fallback */
.about-section {
  background-color: var(--wp--preset--color--rich-black) !important;
}

.about-section.bg-image-error {
  background: linear-gradient(
    135deg,
    var(--wp--preset--color--rich-black) 0%,
    var(--wp--preset--color--dark-charcoal) 50%,
    var(--wp--preset--color--rich-black) 100%
  ) !important;
}

/* Video error handling and fallbacks - Requirements 3.3 */
.hero-trailer video {
  /* Ensure video has a minimum height even if it fails to load */
  min-height: 200px;
  background-color: var(--wp--preset--color--dark-charcoal);
  background-image:
    linear-gradient(45deg, var(--wp--preset--color--dark-charcoal) 25%, transparent 25%),
    linear-gradient(-45deg, var(--wp--preset--color--dark-charcoal) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--wp--preset--color--dark-charcoal) 75%),
    linear-gradient(-45deg, transparent 75%, var(--wp--preset--color--dark-charcoal) 75%);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0px;
}

/* video::before removed — replaced elements (video, img) cannot have pseudo-elements */
.hero-trailer .video-loading-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--wp--preset--color--white);
  font-size: 1rem;
  z-index: 1;
}

/* Video fallback poster styling */
.video-fallback-poster {
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
}

.video-fallback-poster:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Enhanced video error state */
.hero-trailer.video-error video {
  display: none;
}

.hero-trailer.video-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: linear-gradient(135deg, var(--wp--preset--color--dark-charcoal) 0%, var(--wp--preset--color--rich-black) 100%);
  border-radius: 16px;
  border: 2px dashed rgba(255, 215, 0, 0.3);
}

/* JavaScript failure fallbacks - Requirements 1.4 */
.no-js .hero-section,
.js-error .hero-section {
  /* Ensure hero section still looks good without JavaScript */
  background-color: var(--wp--preset--color--rich-black);
}

/* Enhanced JavaScript error fallbacks */
.js-error .premiere-banner-countdown,
.no-js .premiere-banner-countdown {
  /* Hide countdown if JavaScript fails */
  display: none;
}


/* Fallback message for JavaScript-dependent features */
.js-fallback-message {
  display: none;
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  color: var(--wp--preset--color--white);
  margin: 20px 0;
}

.js-error .js-fallback-message,
.no-js .js-fallback-message {
  display: block;
}

/* Ensure interactive elements remain accessible without JavaScript */
.no-js .wp-block-button,
.js-error .wp-block-button {
  /* Buttons should still work for navigation */
  opacity: 1;
  pointer-events: auto;
}


/* ========================================
   HERO SECTION - FINAL LAYOUT ENHANCEMENTS
   Task 8.2: Final spacing and visual hierarchy improvements
   Requirements: 2.2, 3.5, 4.3
   ======================================== */

/* Enhanced content flow and spacing */
.hero-section .wp-block-column:first-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}

/* Improved element spacing within text column */
.hero-section .wp-block-column:first-child > * {
  margin-top: 0;
  margin-bottom: 0;
}

.hero-section .wp-block-column:first-child > *:not(:last-child) {
  margin-bottom: 25px;
}

.hero-section .wp-block-column:first-child h1 {
  margin-bottom: 30px !important;
}

.hero-section .wp-block-column:first-child .wp-block-quote {
  margin: 35px 0 !important;
}

.hero-section .wp-block-column:first-child .hero-trailer {
  margin: 40px 0;
}

.hero-section .wp-block-column:first-child .wp-block-buttons {
  margin-top: 35px !important;
}

/* Enhanced Cat Miller image column positioning */
.hero-section .wp-block-column:last-child {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
}

/* Improved responsive content alignment */
@media (min-width: 1024px) {
  .hero-section .wp-block-column:first-child {
    justify-content: center;
    padding-top: 40px;
  }

  .hero-section .wp-block-column:last-child {
    align-items: center;
    padding-top: 0;
  }
}

/* Enhanced mobile content flow */
@media (max-width: 767px) {
  .hero-section .wp-block-column:first-child > *:not(:last-child) {
    margin-bottom: 20px;
  }

  .hero-section .wp-block-column:first-child h1 {
    margin-bottom: 25px !important;
  }

  .hero-section .wp-block-column:first-child .wp-block-quote {
    margin: 30px 0 !important;
  }

  .hero-section .wp-block-column:first-child .hero-trailer {
    margin: 30px 0;
  }
}

/* Performance optimization for hero section */
.hero-section {
  will-change: transform;
  transform: translateZ(0);
}

.hero-section .hero-trailer,
.hero-section .wp-block-image:not(.hero-logo) {
  will-change: transform;
  transform: translateZ(0);
}

/* ========================================
   HERO QUOTE - LEFT-ALIGNED WITH GOLD BORDER
   ======================================== */

.hero-section .hero-quote-left,
.hero-section .wp-block-quote.hero-quote-left {
  border: none !important;
  border-left: 4px solid var(--wp--preset--color--primary) !important;
  padding-left: 30px !important;
  text-align: left;
  margin: 30px 0 40px 0 !important;
}

.hero-section .hero-quote-left p,
.hero-section .wp-block-quote.hero-quote-left p {
  color: var(--champagne, #f7e7ce) !important;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.8;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive quote sizing */
@media (max-width: 767px) {
  .hero-section .hero-quote-left p,
  .hero-section .wp-block-quote.hero-quote-left p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero-section .hero-quote-left p,
  .hero-section .wp-block-quote.hero-quote-left p {
    font-size: 1rem;
  }
}

/* ==========================================================================
   BLOG REDESIGN - Pull Quotes & Author Cards (2025)
   ========================================================================== */

/* Pull Quote Block - Full Gold Border Box */
.pull-quote-block.pull-quote-block {
  border: 3px solid var(--wp--preset--color--gold-deep);
  background: var(--wp--preset--color--white) !important; /* Override WP inline background */
  padding: 24px 28px !important; /* Override WP inline padding */
  margin: 40px 0 !important; /* Override WP inline margin */
  border-radius: 8px;
}

.pull-quote-block p {
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--wp--preset--color--burgundy, #800020);
  margin: 0;
  text-align: center;
}

/* Responsive pull quote sizing */
@media (max-width: 767px) {
  .pull-quote-block.pull-quote-block {
    padding: 20px 24px !important; /* Override WP inline padding */
    margin: 30px 0 !important; /* Override WP inline margin */
  }

  .pull-quote-block p {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .pull-quote-block {
    padding: 16px 20px !important; /* Override WP inline padding */
  }

  .pull-quote-block p {
    font-size: 1rem;
  }
}

/* Author Card Social Icons */
.author-bio-card .wp-social-links,
.author-bio-card .wp-block-social-links {
  justify-content: flex-start;
  gap: 12px;
  margin-top: 12px;
}

.author-bio-card .wp-social-link {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.author-bio-card .wp-social-link:hover {
  transform: scale(1.1);
}

.author-bio-card .wp-social-link a {
  color: var(--wp--preset--color--gold-deep) !important;
}

.author-bio-card .wp-social-link:hover a {
  color: var(--wp--preset--color--gold-shimmer) !important;
}

@media screen and (max-width: 599px) {
  .author-bio-card {
    padding: 20px !important;
  }

  .author-bio-card .wp-block-columns {
    flex-direction: column !important;
    text-align: center;
  }

  .author-bio-card .author-avatar {
    margin-bottom: 20px;
  }

  .author-bio-card .wp-social-links,
  .author-bio-card .wp-block-social-links {
    justify-content: center;
  }
}

/* Full-Width Featured Image on Single Posts */
.single .wp-block-post-featured-image.alignfull {
  margin-left: 0;
  margin-right: 0;
  max-width: 100vw;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.single .wp-block-post-featured-image.alignfull img {
  border-radius: 0 !important;
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

/* Responsive featured image */
@media (max-width: 767px) {
  .single .wp-block-post-featured-image.alignfull img {
    max-height: 350px;
  }
}

@media (max-width: 480px) {
  .single .wp-block-post-featured-image.alignfull img {
    max-height: 250px;
  }
}

/* Blog Card Hover Effect — duplicate of lines 12-21, removed */

/* ========================================
   DARK BLOG CARDS - 2025 Dark Theme
   ======================================== */

/* Dark Blog Post Cards */
.blog-post-card {
  background: var(--wp--preset--color--dark-charcoal);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 12px 40px rgba(255, 215, 0, 0.15),
    0 0 0 1px rgba(255, 215, 0, 0.1);
}

/* Dark Card Title Links */
.blog-post-card .wp-block-post-title a {
  color: var(--wp--preset--color--gold-shimmer);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-post-card .wp-block-post-title a:hover {
  color: var(--wp--preset--color--cream);
}

/* Dark Card Excerpt */
.blog-post-card .wp-block-post-excerpt__excerpt {
  color: var(--wp--preset--color--warm-gray);
}

/* Dark Card Date and Meta */
.blog-post-card .wp-block-post-date,
.blog-post-card .wp-block-post-author-name {
  color: var(--wp--preset--color--warm-gray);
}

/* Dark Card Read More */
.blog-post-card .wp-block-read-more {
  color: var(--wp--preset--color--gold-shimmer);
  transition: color 0.2s ease;
}

.blog-post-card .wp-block-read-more:hover {
  color: var(--wp--preset--color--cream);
}

/* Blog card Read More - text link style instead of pill button */
.blog-post-card .wp-block-read-more {
  background: none !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  width: auto !important;
  margin: 0 !important;
  align-self: auto !important;
  box-shadow: none !important;
  transform: none !important;
}

.blog-post-card .wp-block-read-more:hover {
  background: none !important;
  transform: none !important;
}

/* Dark Card Image Hover */
.blog-post-card img {
  transition: transform 0.5s ease;
}

.blog-post-card:hover img {
  transform: scale(1.05);
}


/* Dark Sidebar Widgets */
.has-rich-black-background-color .sidebar-widget {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Dark Theme Post Content */
.has-rich-black-background-color .wp-block-post-content {
  color: var(--wp--preset--color--cream);
}

.has-rich-black-background-color .wp-block-post-content h2,
.has-rich-black-background-color .wp-block-post-content h3,
.has-rich-black-background-color .wp-block-post-content h4 {
  color: var(--wp--preset--color--gold-shimmer);
}

.has-rich-black-background-color .wp-block-post-content a {
  color: var(--wp--preset--color--gold-shimmer);
}

.has-rich-black-background-color .wp-block-post-content a:hover {
  color: var(--wp--preset--color--cream);
}

/* Semi-transparent cards let particles shimmer through */
.particle-section .blog-post-card {
    background-color: rgba(45, 45, 45, 0.85) !important;
}

.particle-section .blog-post-card:hover {
    background-color: rgba(45, 45, 45, 0.75) !important;
}

/* ========================================
   GLOBAL ANTI-COLLISION RULES
   No UI element may overlap another
   ======================================== */
.wp-block-columns {
    overflow: visible;
}

.wp-block-column {
    min-width: 0;
}

.wp-block-buttons,
.wp-block-button {
    max-width: 100%;
    overflow: hidden;
}

