.resource-video-module {
  position: relative;
  /*
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  */
}

/* Hero Section - Blue Background */
.resource-video-module .resource-video-hero {
  background-color: var(--Primary-colour-Blue, #004A9E);
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.resource-video-module .resource-video-hero .content-wrapper {
  max-width: 1504px;
  margin: 0 auto;
}

.resource-video-module .hero-content {
  text-align: center;
  max-width: 1248px;
  margin: 0 auto;
  padding: 0; {# 52px 0px #}
}

/* Tag Badge */
.resource-video-module .resource-tag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background-color: #FFFFFF;
  color: #59B041;
  border-radius: 999px;
  font-family: var(--Font-Family-Body, "Gotham");
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: capitalize;
  margin-bottom: 24px;
}

/* Resource Title */
.resource-video-module .resource-title {
  color: #FFFFFF;
  font-family: var(--Font-Family-Title, "Aftika Soft");
  font-size: var(--Font-Size-H1, 60px);
  font-style: normal;
  font-weight: 900;
  line-height: 110%;
  letter-spacing: -0.732px;
  margin: 0 0 24px 0;
}

/* Hero Description */
.resource-video-module .resource-hero-description,
.resource-hero-date p,
.resource-hero-description a {
  color: #FFFFFF;
  font-family: var(--Font-Family-Body, "Gotham");
  font-size: var(--Font-Size-Body, 17px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.0544px;
  margin: 0;
}

.resource-hero-date {
  margin: 24px 0 0;
}

.resource-hero-date p {
  margin: 0;
}

/* Text Block Above Video */
.resource-video-module .resource-video-text-block {
  background-color: #FFFFFF;
  padding: 96px 0 72px 0;
}

.resource-video-module .resource-video-text-block .content-wrapper {
  max-width: 1504px;
  margin: 0 auto;
  padding: 0 48px;
}

.resource-video-module .resource-video-text-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.resource-video-module .resource-video-text-content h2 {
  color: var(--Text-text-primary);
  font-family: var(--Font-Family-Title, "Aftika Soft");
  font-size: var(--Font-Size-H2, 46px);
  font-weight: 900;
  line-height: 101%;
  letter-spacing: -0.2898px;
  margin: 0 0 24px 0;
}

.resource-video-module .resource-video-text-content p {
  font-family: var(--Font-Family-Body, "Gotham");
  font-size: var(--Font-Size-Body, 17px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.0544px;
  color: var(--Text-text-primary);
  margin: 0 0 20px 0;
}

.resource-video-module .resource-video-text-content p:last-child {
  margin-bottom: 0;
}

.resource-video-module .resource-video-text-content h1,
.resource-video-module .resource-video-text-content h3,
.resource-video-module .resource-video-text-content h4,
.resource-video-module .resource-video-text-content h5,
.resource-video-module .resource-video-text-content h6 {
  color: var(--Text-text-primary);
  font-family: var(--Font-Family-Title, "Aftika Soft");
  margin: 0 0 16px 0;
}

/* Video Player Section */
.resource-video-module .resource-video-player-section {
  padding: 72px 0;
  background-color: #FFFFFF;
}

.resource-video-module .resource-video-player-section .content-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1504px;
  margin: 0 auto;
  padding: 0 48px;
}

.resource-video-module .resource-video-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 1246px;
  margin: 0 auto;
}

/* Video Thumbnail Wrapper */
.resource-video-module .video-thumbnail-wrapper {
  position: relative;
  width: 100%;
  height: unset; /* 687px */
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.resource-video-module .video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Play Button - Green Circle */
.resource-video-module .video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  background-color: #75b24e;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}

.resource-video-module .video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: #6ba044;
}

.resource-video-module .video-play-button svg {
  width: 42px;
  height: 42px;
  margin-left: 5px;
  display: block;
}

/* Video Content */
.resource-video-module .video-content {
  width: 100%;
  height: 687px;
  border-radius: 10px;
  overflow: hidden;
}

.resource-video-module .youtube-video,
.resource-video-module .hubspot-video,
.resource-video-module .wistia-video,
.resource-video-module .vimeo-video {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.resource-video-module .youtube-video iframe,
.resource-video-module .wistia-video iframe,
.resource-video-module .vimeo-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

.resource-video-module .hubspot-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Article Content Below Video */
.resource-video-module .video-article-content {
  width: 100%;
  max-width: 1248px;
  text-align: left;
}

.resource-video-module .video-description-below {
  width: 100%;
  max-width: 1248px;
  text-align: left;
  font-family: var(--Font-Family-Body, "Gotham");
  font-size: var(--Font-Size-Body, 17px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.0544px;
  color: var(--Text-text-primary);
}

.resource-video-module .video-article-content p {
  font-family: var(--Font-Family-Body, "Gotham");
  font-size: var(--Font-Size-Body, 17px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.0544px;
  color: var(--Text-text-primary);
  margin: 0 0 20px 0;
}

.resource-video-module .video-article-content p:last-child {
  margin-bottom: 0;
}

.resource-video-module .video-article-content h2 {
  font-family: var(--Font-Family-Title, "Aftika Soft");
  font-size: var(--Font-Size-H2, 46px);
  font-weight: 900;
  line-height: 101%;
  letter-spacing: -0.2898px;
  margin: 32px 0 24px 0;
}

/* Error Message */
.resource-video-module .resource-video-error {
  padding: 40px;
  text-align: center;
  color: var(--Text-text-primary);
}

/* Mobile Styles */
@media(max-width: 767px) {
  .resource-video-module .resource-title {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .resource-video-module .resource-hero-description,
  .resource-hero-date p {
    font-size: 15px;
  }

  .resource-hero-date {
    margin: 16px 0 0;
  }
  
  .resource-video-module .resource-video-text-block {
    padding: 60px 0 40px 0;
  }

  .resource-video-module .resource-video-text-block .content-wrapper {
    padding: 0 24px;
  }

  .resource-video-module .resource-video-text-content {
    max-width: 100%;
  }

  .resource-video-module .resource-video-text-content h2 {
    font-size: 32px;
    margin: 0 0 16px 0;
  }

  .resource-video-module .resource-video-player-section {
    padding: 40px 0;
  }

  .resource-video-module .resource-video-player-section .content-wrapper {
    padding: 0 24px;
  }

  .resource-video-module .resource-video-container {
    gap: 24px;
  }

  .resource-video-module .video-thumbnail-wrapper {
    height: auto;
    min-height: unset; /* 300px */
    aspect-ratio: 16/9;
  }

  .resource-video-module .video-play-button {
    width: 80px;
    height: 80px;
  }

  .resource-video-module .video-play-button svg {
    width: 36px;
    height: 36px;
  }

  .resource-video-module .video-content {
    height: auto;
    min-height: 300px;
    aspect-ratio: 16/9;
  }

  .resource-video-module .video-article-content h2 {
    font-size: 32px;
    margin: 24px 0 16px 0;
  }

  /*
  .resource-video-module {
    padding-top: 0 !important;
  }
  */
}

/* Related Resources Section - Styles from Resources Related HubDB Cards */
.resources-section {
  width: 100%;
  box-sizing: border-box;
  padding-top: 80px;
  padding-bottom: 132px;
}

.resources-section .content-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Header Section */
.resources-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 10;
}

.resources-title h2 {
  color: var(--Text-text-Blue, #004A9E);
  font-family: var(--Font-Family-Title, "Aftika Soft");
  font-size: var(--Font-Size-H2, 46px);
  font-style: normal;
  font-weight: 900;
  line-height: 101%;
  letter-spacing: -0.29px;
  margin: 0;
  text-decoration: none;
}

.resources-header-btn {
  flex-shrink: 0;
}

/* Resources Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  padding-top: 24px;
  width: 100%;
}

/* Resource Card */
.resources-section .resource-card {
  background: var(--Background-white, #FFFFFF);
  border: 1px solid var(--primary-blue, #004a9e);
  border-radius: 11px;
  box-shadow: 0px 66px 19px 0px rgba(143, 143, 143, 0.00), 0px 43px 17px 0px rgba(143, 143, 143, 0.01), 0px 24px 14px 0px rgba(143, 143, 143, 0.05), 0px 11px 11px 0px rgba(143, 143, 143, 0.09), 0px 3px 6px 0px rgba(143, 143, 143, 0.10);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .resources-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Image Wrapper */
.resource-image-wrapper {
  height: 175px;
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.resource-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Resource Badge */
.resource-badge {
  background: var(--Background-white, #FFF);
  display: inline-block;
  font-size: var(--Form-Button, 17px);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 100%;
  padding: 8px;
  position: absolute;
  top: 10px;
  z-index: 2;
}

/* Left Badge (Tag Text) */
.resource-badge-left {
  border-radius: 10px;
  color: var(--Secondary-Green, #75b24e);
  font-family: var(--Font-Family-Title, "Aftika Soft");
  left: 10px;
}

/* Right Badge (Type) */
.resource-badge-right {
  background: var(--Secondary-Green, #75b24e);
  border-radius: 3px;
  color: var(--Background-white, #FFF);
  font-family: var(--Font-Family-Title, "Aftika Soft");
  font-size: var(--Form-Button, 17px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 100%;
  right: 10px;
  text-transform: uppercase;
}

/* Card Content */
.resource-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  gap: 0;
  min-height: 0;
}

.resource-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin: 0;
  margin-bottom: 0;
  padding: 0;
  padding-bottom: 0;
}

/* Resource Title */
.resources-section .resource-title {
  color: var(--Text-text-primary);
  font-family: var(--Font-Family-Title, "Aftika Soft");
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 110%;
  letter-spacing: 0.0462px;
  margin: 0 0 16px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  width: 100%;
}

/* Resource Description */
.resource-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  align-self: stretch;
  overflow: hidden;
  color: #6F7482;
  text-overflow: ellipsis;
  font-family: var(--Font-Family-Body, 'Gotham', sans-serif);
  font-size: var(--Font-Size-Body, 17px);
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: -0.054px;
  margin: 0;
  padding: 0;
  width: 100%;
}

.resource-description p {
  display: inline;
  margin: 0;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

/* Access Resource Button */
.resource-access-btn {
  width: 100%;
  flex-shrink: 0;
  margin-top: 24px;
  padding: 0;
}

.access-resource-button {
  background-color: #D7DCEA;
  border-radius: var(--button-button-radius, 10px);
  color: var(--Text-text-secondary, #6F7482);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--button-primary-tb-padding, 18px) var(--button-primary-lr-padding, 23px);
  text-align: center;
  text-decoration: none !important;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--Font-Family-Title, "Aftika Soft");
  font-size: var(--Form-Button, 17px);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.access-resource-button:hover,
.access-resource-button:focus {
  background-color: #004A9E !important;
  color: #F2BF45 !important;
}

/* Reflect button hover when hovering the entire card */
.resources-section .resource-card:hover .access-resource-button {
  background-color: #004A9E !important;
  color: #F2BF45 !important;
}

/* Mobile Styles for Related Resources */
.resources-mobile {
  display: none;
}

@media(max-width:1024px){
  .resources-section .resources-grid {
    display: none;
  }
  
  .resources-mobile {
    display: block;
    margin-top: 24px;
  }
  
  /* Make mobile cards clickable - target anchor tag directly to override global link styles */
  .resources-mobile a.resource-card {
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0px 2px 8px 0px rgba(143, 143, 143, 0.15);
    display: flex;
    flex-direction: column;
  }
  
  .resources-mobile a.resource-card:link,
  .resources-mobile a.resource-card:visited,
  .resources-mobile a.resource-card:hover,
  .resources-mobile a.resource-card:focus,
  .resources-mobile a.resource-card:active {
    text-decoration: none !important;
    color: inherit;
  }
  
  .resources-mobile a.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px 0px rgba(143, 143, 143, 0.2);
  }
  
  /* Make all child elements non-clickable and remove link styles */
  .resources-mobile a.resource-card * {
    pointer-events: none;
    text-decoration: none !important;
    color: inherit;
  }
  
  /* Specifically ensure text elements never show decoration */
  .resources-mobile a.resource-card h5,
  .resources-mobile a.resource-card .resource-title,
  .resources-mobile a.resource-card .resource-description,
  .resources-mobile a.resource-card .resource-description p,
  .resources-mobile a.resource-card .resource-badge,
  .resources-mobile a.resource-card .resource-image-wrapper,
  .resources-mobile a.resource-card .resource-image-wrapper img,
  .resources-mobile a.resource-card .resource-card-content,
  .resources-mobile a.resource-card .resource-text,
  .resources-mobile a.resource-card .resource-mobile-badges {
    pointer-events: none;
    text-decoration: none !important;
    color: inherit;
  }
  
  /* Override for all states */
  .resources-mobile a.resource-card:hover *,
  .resources-mobile a.resource-card:focus *,
  .resources-mobile a.resource-card:active *,
  .resources-mobile a.resource-card:visited * {
    pointer-events: none;
    text-decoration: none !important;
    color: inherit;
  }
  
  .resources-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    position: relative;
  }
  
  .resources-title {
    width: 100%;
  }
  
  .resources-title h2 {
    font-size: 36px;
  }
  
  .resources-header-btn {
    display: none;
  }
  
  /* Mobile Slider - Native CSS Scroll with Drag */
  .resources-mobile {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: visible;
  }
  
  .resources-slider {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 16px;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scroll-padding: 0 16px;
  }
  
  .resources-slider::-webkit-scrollbar {
    display: none;
  }
  
  .resources-slider-track {
    display: flex;
    gap: 16px;
    user-select: none;
    will-change: transform;
    padding-right: 16px;
  }
  
  .resources-mobile .resource-card {
    flex: 0 0 calc(100% - 32px);
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    min-width: calc(100% - 32px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: auto;
  }
  
  /* Ensure last card can scroll fully into view */
  .resources-mobile .resource-card:last-child {
    scroll-snap-stop: normal;
  }
  
  .resources-slider.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
  }
  
  .resources-mobile-btn {
    margin-top: 34px;
    text-align: center;
  }
  
  /* Hide desktop badges on image in mobile */
  .resources-mobile .resource-image-wrapper .resource-badge {
    display: none;
  }
  
  /* Hide desktop Access Resource button in mobile */
  .resources-mobile .resource-access-btn {
    display: none;
  }
  
  /* Show mobile badges at bottom */
  .resources-mobile .resource-mobile-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
  }
  
  /* Mobile Badge Positioning */
  .resources-mobile .resource-badge-mobile-left {
    position: static !important;
    left: auto !important;
    top: auto !important;
    background: #F4F4F4 !important;
    border-radius: 10px;
    color: #75b24e !important;
    font-family: var(--Font-Family-Title, "Aftika Soft");
    font-size: var(--Form-Button, 17px);
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 100%;
    padding: 8px;
    display: inline-block;
  }
  
  .resources-mobile .resource-badge-mobile-right {
    position: static !important;
    right: auto !important;
    top: auto !important;
    background: #75b24e !important;
    border-radius: 3px;
    color: #FFFFFF !important;
    font-family: var(--Font-Family-Title, "Aftika Soft");
    font-size: var(--Form-Button, 17px);
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 100%;
    padding: 8px;
    text-transform: uppercase;
    display: inline-block;
  }
  
  .resources-section .content-wrapper {
    padding: 0 24px;
  }
}
