/* Resource Download Section - Figma Design */
.resource-download-section {
  background-color: var(--secondary-yellow, #F2BF45);
}

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

.resource-download-section .dis-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

/* Left Content - First Column */
.resource-lts {
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
}

.resource-linner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
/* Tag Styling */
.resource-tags {
  background: var(--background-cards-bg-primary, #F4F4F4);
  border-radius: 10px;
  color: var(--secondary-green, #75B24E);
  display: inline-block;
  font-family: var(--font-family-body, 'Gotham', sans-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.0512px;
  padding: 8px;
  margin-bottom: 32px;
}

/* Title Styling - H1 */
.resource-linner h1 {
  /* color: var(--text-text-primary, #000000); */
  font-family: var(--font-family-title, "Aftika Soft", sans-serif);
  font-size: var(--font-size-h1, 60px);
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.732px;
  margin: 0 0 24px;
  white-space: pre-wrap;
}

/* Description Styling - Body */
.resource-linner p {
  color: var(--text-text-primary, #000000);
  font-family: var(--font-family-body, 'Gotham', sans-serif);
  font-size: var(--font-size-body, 17px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.0544px;
  margin: 0 0 24px;
  max-width: 736px;
  white-space: pre-wrap;
}

/* Right Image - Second Column */
.resource-rts {
  width: 100%;
  padding: 0;
  display: flex;
  align-items: stretch;
}

.resource-imgs {
  width: 100%;
  max-width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.resource-imgs img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 10px;
  display: block;
}

/* Responsive - Tablet */
@media(max-width:1280px){
  .resource-linner h1 {
    font-size: 48px;
  }
}

@media(max-width:1024px){
  .resource-linner h1 {
    font-size: 40px;
  }
  
  .resource-badge {
    position: relative !important;
    top: unset !important;
    left: unset !important;
    background: #75b24e !important;
    color: #ffffff !important;
    border-radius: 3px !important;
    text-transform: uppercase;
  }
}

/* Error Message */
.resource-download-error {
  padding: 40px;
  text-align: center;
  color: var(--text-text-primary, #000000);
  font-family: var(--font-family-body, 'Gotham', sans-serif);
  font-size: var(--font-size-body, 17px);
}

/* Responsive - Mobile */
@media(max-width:767px){
  .resource-download-section .content-wrapper {
    padding: 0 24px;
  }

  .resource-download-section .dis-flex {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .resource-lts {
    order: 2;
  }
  
  .resource-rts {
    order: 1;
  }
  
  .resource-linner {
    padding: 0;
  }
  
  .resource-linner h1 {
    font-size: 32px;
  }
  
  .resource-tags {
    margin-bottom: 24px;
  }
}

/* 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-section .content-wrapper {
    padding: 0 24px;
  }

  .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%;
  margin-bottom: 5px;
  margin-right: 5px;
  padding: 8px;
  position: relative !important;
  top: unset !important;
  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, #000000);
  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;
}

.resource-badge__wrapper {
  height: auto;
  left: 10px;
  position: absolute;
  right: 10px;
  top: 10px;
}

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

.resources-slider a:hover > .resource__btn span {
  background-color: #004a9e !important;
  color: #f2bf45 !important;
}

@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: 0; {# 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 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;
  }
  
  .resource-badge__wrapper {
    left: unset;
    position: relative;
    right: unset;
    top: unset;
  }
  
  .resources-mobile .resource-mobile-badges {
    padding: 10px !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .resources-mobile .resource-mobile-badges {
    align-items: unset !important;
  }

  .resources-mobile .resource-image-wrapper .resource-badge {
    border-radius: 10px !important;
    background: #fff !important;
    color: #75b24e !important;
    display: inline-block !important;
    text-transform: capitalize;
    font-size: 17px;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 11px;
    line-height: 1.06;
  }
  
  .resources-section .content-wrapper {
    padding-right: 0;
  }
  
  .resources-section .resources-title {
    padding-right: 24px;
  }
}
