/* =================== RESOURCES PAGE STYLES =================== */
/* Dedicated CSS for resources.html to avoid conflicts with template styles */

/*
 * Reset white-text rules from styles.css:
 *   .leadsonline h1-h4 { color: #ffffff }   (0,1,1)
 *   .leadsonline p     { color: rgba(255,255,255,0.92) }  (0,1,1)
 * resources.css loads last, so equal-specificity rules here win by source order.
 * All sections on this page have light backgrounds — headings and body copy should be dark.
 */
.resources-page h1,
.resources-page main h2,
.resources-page main h3,
.resources-page main h4 { color: #0a1740; }

.resources-page main p { color: #4b5563; }

/* Resources Header Section */
.resources-header {
  background: white;
  padding: 80px 0 60px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.resources-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.resources-header .case-studies-header {
  text-align: left;
  margin: 0;
  max-width: 100%;
}

.resources-header .case-studies-title {
  color: #000000;
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 16px;
  font-family: 'Barlow', sans-serif;
}

.resources-header .case-studies-subtitle {
  color: #000000;
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0 0 32px 0;
  max-width: 100%;
  font-family: 'Barlow', sans-serif;
}

/* Filters Section Wrapper */
.resources-filters-section {
  background: white;
  position: relative;
  z-index: 100;
  overflow: visible;
  padding: 0;
}

.resources-filters-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Filters Section */
.resources-filters {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  padding-bottom: 85px;
  border-top: 1px solid #e5e7eb;
  z-index: inherit;
  background: white;
}

.resources-filter-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #1f2937;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
  z-index: inherit;
}

.resources-filter-link:hover {
  color: #2563eb;
}

.resources-filter-link .dropdown-arrow {
  width: 10px;
  height: 6px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* Dropdown Container */
.resources-filter-dropdown {
  position: relative;
  z-index: 200;
}

/* Dropdown Menu */
.resources-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 500;
  margin: 0;
}

.resources-filter-dropdown.open .resources-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.resources-filter-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Items */
.resources-dropdown-item {
  display: block;
  padding: 10px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #1f2937;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.resources-dropdown-item:hover {
  background-color: #f3f4f6;
  color: #2563eb;
}

/* All Resources Link */
.resources-all-link {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #1f2937;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.resources-all-link:hover {
  color: #2563eb;
}

/* Featured Webinars Banner */
.featured-webinars-banner {
  background: #f5f5f0;
  padding: 40px 0 50px;
  margin-bottom: 0;
}

.featured-webinar-card {
  display: none;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
  max-width: 1000px;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(8px);
}

.featured-webinar-card.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.featured-webinar-image {
  flex: 0 0 40%;
  position: relative;
  background: #0A2B5C;
  min-height: 400px;
}

.featured-webinar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-webinar-content {
  flex: 1;
  padding: 36px 40px 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-webinar-category {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.featured-webinar-title {
  font-family: 'Barlow', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 12px;
}

.featured-webinar-desc {
  font-family: 'Barlow', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #4b5563;
  margin-bottom: 16px;
}

.featured-webinar-meta {
  margin-bottom: 20px;
}

.featured-webinar-date {
  font-family: 'Barlow', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
}

.featured-webinar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  background: #2563eb;
  border: 2px solid #2563eb;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: fit-content;
}

.featured-webinar-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
  transform: translateX(3px);
}

.featured-webinar-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.featured-pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.featured-pagination-dot:hover {
  background-color: #9ca3af;
  transform: scale(1.2);
}

.featured-pagination-dot.active {
  background-color: #1a1a2e;
  transform: scale(1.3);
}

/* Dynamic Section Header */
.resources-section-header {
  display: none;
  background: white;
  padding: 0 0 16px 0;
  margin-bottom: 32px;
  border-bottom: 2px solid #e5e7eb;
}

.resources-section-title {
  font-family: 'Barlow', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  text-align: left;
}

/* Highlights Section (Default View) */
.resources-highlights {
  display: none;
  margin-top: 0;
  padding-top: 10px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.resources-highlights.active {
  display: block;
}

/* Category Section Styling */
.resources-category-section {
  margin-bottom: 80px;
}

.resources-category-section:last-child {
  margin-bottom: 0;
}

.resources-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
}

.resources-category-title {
  font-family: 'Barlow', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

.resources-view-all {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.resources-view-all:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Success Stories Section - Just positioning */
.resources-success-stories {
  display: none;
  margin-top: 0;
  padding-top: 10px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.resources-success-stories.active {
  display: block;
}

/* Customer Stories Section - Just positioning */
.resources-customer-stories {
  display: none;
  margin-top: 0;
  padding-top: 10px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.resources-customer-stories.active {
  display: block;
}

/* Customer Stories Image Adjustments - Fill top of image area */
.resources-customer-stories .case-study-image,
.resources-highlights .resources-category-section:nth-child(2) .case-study-image {
  background: #0A2B5C;
}

.resources-customer-stories .case-study-image.case-study-placeholder {
  min-height: 200px;
}

.resources-customer-stories .case-study-image.case-study-placeholder-alt {
  min-height: 200px;
  background: #1A4731;
}

.resources-customer-stories .case-study-image img,
.resources-highlights .resources-category-section:nth-child(2) .case-study-image img {
  object-fit: cover;
  object-position: top;
}

/* Webinars Section - Just positioning */
.resources-webinars {
  display: none;
  margin-top: 0;
  padding-top: 10px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.resources-webinars.active {
  display: block;
}

/* Brochures Section - Just positioning */
.resources-brochures {
  display: none;
  margin-top: 0;
  padding-top: 10px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.resources-brochures.active {
  display: block;
}

.resources-blogs {
  display: none;
  margin-top: 0;
  padding-top: 10px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.resources-blogs.active {
  display: block;
}

/* Product Tags - Resources Page Only */
.resources-grid .case-study-product-tag {
  font-size: 0.45rem;
  padding: 4px 8px;
  margin-bottom: 8px;
}

/* Card Titles - Resources Page Only */
.resources-grid .case-study-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
}

/* Card Pagination Transitions */
.resources-grid .case-study-card {
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

.resources-grid .case-study-card.fade-out {
  opacity: 0;
}

/* Base state — neutralise cellhawk's opacity:0 + translateY(50px).
   cellhawk-overrides.css uses an IntersectionObserver to add .visible;
   the resources page has no observer, so cards must start fully visible. */
html body.leadsonline .resources-highlights .resources-grid .case-study-card,
html body.leadsonline .resources-success-stories .resources-grid .case-study-card,
html body.leadsonline .resources-customer-stories .resources-grid .case-study-card {
  opacity: 1;
  transform: none;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease-in-out;
}

/* Subtle hover — matches webinar card feel */
html body.leadsonline .resources-highlights .resources-grid .case-study-card:hover,
html body.leadsonline .resources-success-stories .resources-grid .case-study-card:hover,
html body.leadsonline .resources-customer-stories .resources-grid .case-study-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

html body.leadsonline .resources-highlights .resources-grid .case-study-card:hover .case-study-image img,
html body.leadsonline .resources-success-stories .resources-grid .case-study-card:hover .case-study-image img,
html body.leadsonline .resources-customer-stories .resources-grid .case-study-card:hover .case-study-image img {
  transform: none;
}

/* Success Stories Pagination */
.resources-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding-bottom: 60px;
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.pagination-dot:hover {
  background-color: #9ca3af;
  transform: scale(1.1);
}

.pagination-dot.active {
  background-color: #3575e2;
}

/* Webinar Card Styles */
.webinar-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.webinar-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.webinar-image {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #0A2B5C;
  overflow: hidden;
}

/* More specific selector to override cellhawk-overrides.css */
.resources-grid .webinar-image {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #0A2B5C;
  overflow: hidden;
}

.webinar-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* More specific selector to override cellhawk-overrides.css */
.resources-grid .webinar-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.webinar-duration {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Barlow', sans-serif;
}

.webinar-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.webinar-product-tag {
  display: inline-block;
  background: #e5e7eb;
  color: #4b5563;
  font-size: 0.6rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  width: fit-content;
  font-family: 'Barlow', sans-serif;
}

.webinar-date {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 12px;
  font-family: 'Barlow', sans-serif;
}

.webinar-title {
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  font-family: 'Barlow', sans-serif;
}

.webinar-desc {
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  font-family: 'Barlow', sans-serif;
}

.webinar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.3s;
  font-family: 'Barlow', sans-serif;
  margin-top: auto;
}

.webinar-link::after {
  content: '→';
  display: inline-block;
  transition: transform 0.3s ease;
}

.webinar-link:hover {
  color: #1d4ed8;
  gap: 12px;
  text-decoration: none;
}

.webinar-link:hover::after {
  transform: translateX(4px);
}

/* Brochure Pagination */
.brochure-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding-bottom: 60px;
}

.brochure-page-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #d1d5db;
  color: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  font-size: 0;
}

.brochure-page-btn:hover {
  background-color: #9ca3af;
  transform: scale(1.2);
}

.brochure-page-btn.active {
  background-color: #3575e2;
  transform: scale(1.3);
}

/* Brochure Filter Bar */
.brochure-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  padding: 0;
  justify-content: center;
}

.brochure-filter-btn {
  padding: 10px 20px;
  background-color: #f3f4f6;
  color: #4b5563;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.brochure-filter-btn:hover {
  background-color: #e5e7eb;
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-2px);
}

.brochure-filter-btn.active {
  background-color: #2563eb;
  color: white;
  border-color: #2563eb;
  transform: translateY(-2px);
}

.resources-videos {
  display: none;
  margin-top: 0;
  padding-top: 40px;
  padding-bottom: 80px;
  z-index: 1;
  overflow: visible;
}

.resources-videos.active {
  display: block;
}


.resources-videos-divider {
  height: 2px;
  background: #e5e7eb;
  margin-top: 16px;
  margin-bottom: 32px;
}

/* White Papers Empty State */
.empty-state-message {
  text-align: center;
  padding: 40px 40px;
  max-width: 600px;
  margin: 0 auto;
}

.empty-state-message svg {
  margin: 0 auto 32px;
  display: block;
  opacity: 0.6;
}

.empty-state-message h2 {
  font-family: 'Barlow', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 16px;
}

.empty-state-message p {
  font-family: 'Barlow', sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}

/* Customer Story Content - Adjust Right Padding */
.resources-customer-stories .resources-grid .case-study-content,
.resources-highlights .resources-category-section:nth-child(2) .case-study-content {
  padding-right: 20px;
}

/* Watch Video link — same style as case-study-link but not intercepted by modal JS */
.resources-grid .case-study-video-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.resources-grid .case-study-video-link::after {
  content: '→';
  display: inline-block;
  transition: transform 0.3s ease;
}

.resources-grid .case-study-video-link:hover {
  color: #0a1740;
  gap: 12px;
}

.resources-grid .case-study-video-link:hover::after {
  transform: translateX(4px);
}

/* Customer Story Actions - Spacing Between Links */
.resources-customer-stories .case-study-actions,
.resources-highlights .case-study-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Customer Story Video Button - Smaller Size */
.resources-customer-stories .btn.btn-primary,
.resources-highlights .btn.btn-primary {
  padding: 10px 24px;
  font-size: 0.9rem;
  border-radius: 40px;
}

/* All Resources Mode - Show all sections with category headers */
body.all-resources-mode .resources-success-stories .resources-pagination {
  display: none;
}

/* All Resources Mode Pagination */
body.all-resources-mode .all-resources-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding: 60px 0;
}

.all-resources-pagination {
  display: none;
}

.all-resources-pagination-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.all-resources-pagination .pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.all-resources-pagination .pagination-dot:hover {
  background-color: #9ca3af;
  transform: scale(1.1);
}

.all-resources-pagination .pagination-dot.active {
  background-color: #3575e2;
}

body.all-resources-mode .resources-success-stories,
body.all-resources-mode .resources-customer-stories,
body.all-resources-mode .resources-webinars,
body.all-resources-mode .resources-brochures,
body.all-resources-mode .resources-blogs {
  padding-top: 0;
  margin-bottom: 80px;
}

body.all-resources-mode .resources-success-stories .container,
body.all-resources-mode .resources-customer-stories .container,
body.all-resources-mode .resources-webinars .container,
body.all-resources-mode .resources-brochures .container,
body.all-resources-mode .resources-blogs .container {
  position: relative;
}

/* Add category headers using ::before pseudo-elements */
body.all-resources-mode .resources-success-stories .container::before,
body.all-resources-mode .resources-customer-stories .container::before,
body.all-resources-mode .resources-webinars .container::before,
body.all-resources-mode .resources-brochures .container::before,
body.all-resources-mode .resources-blogs .container::before {
  content: '';
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
}

body.all-resources-mode .resources-success-stories .container::before {
  content: 'Success Stories';
}

body.all-resources-mode .resources-customer-stories .container::before {
  content: 'Customer Stories';
}

body.all-resources-mode .resources-webinars .container::before {
  content: 'Webinars';
}

body.all-resources-mode .resources-brochures .container::before {
  content: 'Brochures';
}

body.all-resources-mode .resources-blogs .container::before {
  content: 'Blogs';
}

/* Hide sections in all-resources mode if they have no visible cards */
body.all-resources-mode .resources-success-stories.no-visible-cards,
body.all-resources-mode .resources-customer-stories.no-visible-cards,
body.all-resources-mode .resources-webinars.no-visible-cards,
body.all-resources-mode .resources-brochures.no-visible-cards,
body.all-resources-mode .resources-blogs.no-visible-cards {
  display: none;
}

/* ===== Product Filter Mode (separate from pagination all-resources-mode) ===== */
body.product-filter-active .resources-success-stories,
body.product-filter-active .resources-customer-stories,
body.product-filter-active .resources-webinars,
body.product-filter-active .resources-brochures,
body.product-filter-active .resources-blogs,
body.product-filter-active .resources-videos {
  padding-top: 0;
  margin-bottom: 80px;
}

body.product-filter-active .resources-success-stories .container,
body.product-filter-active .resources-customer-stories .container,
body.product-filter-active .resources-webinars .container,
body.product-filter-active .resources-brochures .container,
body.product-filter-active .resources-blogs .container,
body.product-filter-active .resources-videos .container {
  position: relative;
}

body.product-filter-active .resources-success-stories .container::before,
body.product-filter-active .resources-customer-stories .container::before,
body.product-filter-active .resources-webinars .container::before,
body.product-filter-active .resources-brochures .container::before,
body.product-filter-active .resources-blogs .container::before,
body.product-filter-active .resources-videos .container::before {
  content: '';
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
}

body.product-filter-active .resources-success-stories .container::before { content: 'Success Stories'; }
body.product-filter-active .resources-customer-stories .container::before { content: 'Case Studies'; }
body.product-filter-active .resources-webinars .container::before { content: 'Webinars'; }
body.product-filter-active .resources-brochures .container::before { content: 'Brochures'; }
body.product-filter-active .resources-blogs .container::before { content: 'Blogs'; }
body.product-filter-active .resources-videos .container::before { content: 'Videos'; }
body.product-filter-active .resources-videos .resources-category-header { display: none; }

body.product-filter-active .resources-success-stories.no-visible-cards,
body.product-filter-active .resources-customer-stories.no-visible-cards,
body.product-filter-active .resources-webinars.no-visible-cards,
body.product-filter-active .resources-brochures.no-visible-cards,
body.product-filter-active .resources-blogs.no-visible-cards,
body.product-filter-active .resources-videos.no-visible-cards {
  display: none;
}

body.product-filter-active .resources-success-stories .resources-pagination {
  display: none;
}

body.leadsonline .no-product-match-msg {
  display: none;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  color: #6b7280;
  padding: 16px 0 32px;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .resources-header .case-studies-title {
    font-size: 2rem;
  }

  .resources-filters {
    flex-wrap: wrap;
    padding-bottom: 160px;
  }

  .resources-header .container {
    padding: 0 20px;
  }

  .resources-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .resources-category-title {
    font-size: 1.5rem;
  }

  .resources-category-section {
    margin-bottom: 60px;
  }

  body.all-resources-mode .resources-success-stories .container::before,
  body.all-resources-mode .resources-customer-stories .container::before,
  body.all-resources-mode .resources-webinars .container::before,
  body.all-resources-mode .resources-brochures .container::before {
    font-size: 1.5rem;
  }

  body.all-resources-mode .resources-success-stories,
  body.all-resources-mode .resources-customer-stories,
  body.all-resources-mode .resources-webinars,
  body.all-resources-mode .resources-brochures {
    margin-bottom: 60px;
  }

  /* Featured Webinar Banner Responsive */
  .featured-webinars-banner {
    padding: 40px 0 60px;
  }

  .featured-webinar-card {
    flex-direction: column;
  }

  .featured-webinar-image {
    flex: 0 0 250px;
    min-height: 250px;
  }

  .featured-webinar-content {
    padding: 32px 24px;
  }

  .featured-webinar-title {
    font-size: 1.5rem;
  }

  .featured-webinar-desc {
    font-size: 1rem;
  }
}

/* ============================================================
   SHARE BUTTON STYLES
   ============================================================ */
.case-study-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.case-study-tag-row .case-study-product-tag {
  margin-bottom: 0;
}

.case-study-share-wrapper {
  position: relative;
}

/* Override global button rule for icon-only share button */
body.leadsonline.resources-page .case-study-share-btn {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  background-image: none;
  border: none;
  box-shadow: none;
  padding: 4px;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  border-radius: 6px;
}

.case-study-share-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.case-study-share-btn img {
  filter: invert(38%) sepia(73%) saturate(1000%) hue-rotate(196deg) brightness(92%) contrast(90%);
}

.case-study-share-btn:hover {
  background: rgba(53, 117, 226, 0.1);
}

.share-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  min-width: 160px;
  z-index: 100;
  border: 1px solid #e5e7eb;
}

.share-dropdown[hidden] {
  display: none;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.share-option:hover {
  background: #f3f4f6;
}

.share-facebook:hover {
  color: #1877f2;
}

.share-linkedin:hover {
  color: #0a66c2;
}

/* ============================================================
   STORY MODAL SHARE ICONS
   ============================================================ */
.story-modal-share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.story-modal-share-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.story-modal-share-icons {
  display: flex;
  gap: 10px;
}

.story-modal-share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #2563eb;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}

.story-modal-share-icon:hover {
  background: rgba(37, 99, 235, 0.08);
  opacity: 0.8;
}

.story-modal-share-icon.share-facebook:hover {
  color: #2563eb;
}

.story-modal-share-icon.share-linkedin:hover {
  color: #2563eb;
}
