/* Resource Article Section */
.resource-article-section {
  background-color: var(--background-grey, #f4f4f4);
}

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

/* Hero Section - From Resource Download Module */
.resource-hero-section {
  width: 100%;
  padding: 40px 0;
  position: relative;
}

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

{#
.resource-hero-section .dis-flex {
  display: grid;
  grid-template-columns: 8fr 4fr; /* 8 columns for text, 4 columns for image */
  gap: 32px;
  align-items: stretch;
}
#}

.resource-hero-section .dis-flex {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -16px;
  gap: unset !important;
}

.resource-hero-content-wrapper .dis-flex > div {
  width: calc(100% / 2 - 32px);
  margin: 0 16px;
  flex-direction: unset !important;
  gap: unset !important;
}

/* Left Content - First Column */
.resource-lts {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-24, 24px);
  padding: var(--spacing-52, 52px) 0;
}

.resource-lts .resource-linner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  /* gap: var(--spacing-24, 24px); */
}

/* Tag Wrapper */
.resource-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Tag Styling */
.resource-tags {
  background: var(--background-cards-bg-primary, #F4F4F4);
  border-radius: var(--button-button-radius, 10px);
  color: var(--secondary-green, #75B24E);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  font-family: var(--font-family-body, 'Gotham:Medium', sans-serif);
  font-size: var(--font-size-body-small, 16px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.0512px;
  padding: 8px;
}

/* 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;
  min-width: 100%;
  padding-right: 24px;
}

/* Description Styling - Body */
.resource-linner p {
  color: var(--text-text-primary, #000000);
  font-family: var(--font-family-body, 'Gotham:Book', 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;
  max-width: 736px;
}

/*
.resource-lts .resource-linner p:last-of-type {
  margin: 0;
}
*/

/* 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 {
  {#
  max-width: 608px !important;
  height: 511px !important; 
  width:auto !important;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 10px !important;
  display: block;
  margin: 0 0 0 auto;
  #}
  height: auto !important;
  width: 100% !important;
  object-fit: unset !important;
  object-position: unset !important;
  border-radius: 10px !important;
  display: block;
  margin: 0;
}

/* Article Content Section - From Blog Single Module */
.resource-article-content {
  width: 100%;
  padding: 72px 0;
  position: relative;
}

.article-content-wrapper {
  max-width: 1088px;
  margin: 0 auto;
  width: 100%;
  padding: 0 48px;
}

/* Typography Styles for Article Body */
.article-content-wrapper h2 {
  font-family: var(--font-family-title, 'Aftika Soft', sans-serif);
  font-size: var(--font-size-h2, 46px);
  font-weight: 900;
  line-height: 1.01;
  letter-spacing: -0.2898px;
  color: var(--text-text-primary, #12122C);
  margin: 0 0 20px 0;
}

.article-content-wrapper h3 {
  font-family: var(--font-family-title, 'Aftika Soft', sans-serif);
  font-size: var(--font-size-h3, 33px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.0891px;
  color: var(--text-text-primary, #12122C);
  margin: 0 0 20px 0;
}

.article-content-wrapper h4 {
  font-family: var(--font-family-title, 'Aftika Soft', sans-serif);
  font-size: var(--font-size-h4, 25px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.075px;
  color: var(--text-text-primary, #12122C);
  margin: 0 0 20px 0;
}

.article-content-wrapper p {
  font-family: var(--font-family-body, 'Gotham:Book', sans-serif);
  font-size: var(--font-size-body, 17px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.0544px;
  color: var(--primary-primary-colour-black, #000);
  margin: 0 0 20px 0;
}

.article-content-wrapper ul,
.article-content-wrapper ol {
  font-family: var(--font-family-body, 'Gotham:Book', sans-serif);
  font-size: var(--font-size-body, 17px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.0544px;
  color: var(--primary-primary-colour-black, #000);
  margin: 0;
  padding-left: 25.5px;
}

.article-content-wrapper li {
  margin-bottom: 15px;
}

.article-content-wrapper li:last-child {
  margin-bottom: 0;
}

.article-content-wrapper img {
  width: 100%;
  height: auto;
  border-radius: var(--image-image-radius, 10px);
  margin: 20px 0;
}

/* Error Message */
.resource-article-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);
}

/* Related Resources Section - From Resource Download Module */
.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;
}

/* 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;
}

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

.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;
}

.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 {
  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;
}

.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;
}

.resources-section .resource-card:hover .access-resource-button {
  background-color: #004A9E !important;
  color: #F2BF45 !important;
}

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

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

@media (max-width: 1024px) {
  {#
  .resource-hero-section .dis-flex {
    grid-template-columns: 1fr; /* Single column on tablet */
  }
  #}
  
  .resource-lts {
    {# order: 2; #}
    padding: 0;
  }
  
  {#
  .resource-rts {
    order: 1;
  }
  #}  

  .resource-hero-content-wrapper .resource-linner h1 {
    font-size: 37px;
    padding-right: 0;
  }

  .resources-section .resources-grid {
    display: none;
  }
  
  .resources-mobile {
    display: block;
    margin-top: 24px;
  }
  
  .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);
  }
  
  .resources-mobile a.resource-card * {
    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;
  }
  
  .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;
  }
  
  .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;
  }
  
  .resources-mobile .resource-image-wrapper .resource-badge {
    display: none;
  }
  
  .resources-mobile .resource-access-btn {
    display: none;
  }
  
  .resources-mobile .resource-mobile-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
  }
  
  .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-article-content {
    padding: 48px 0;
  }

  .article-content-wrapper h2 {
    font-size: 32px;
  }
  
  .article-content-wrapper h3 {
    font-size: 28px;
  }
  
  .article-content-wrapper h4 {
    font-size: 22px;
  }
  
  .resource-lts .resource-linner p:last-of-type {
    margin: 0 0 24px;
  }
}

@media (max-width: 991px) {
  .resource-hero-section .resource-lts {
    order: 2;
    padding: 0;
  }

  .resource-hero-section .resource-rts {
    order: 1;
    margin-bottom: 24px !important;
  }

  .resource-hero-section .dis-flex {
    margin: 0;
  }

  .resource-hero-content-wrapper .dis-flex > div {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 767px) {
  .resource-article-section .content-wrapper {
    padding: 0 24px;
  }

  {#
  .resource-hero-section .dis-flex {
    grid-template-columns: 1fr;
    gap: 24px;
    display: flex !important;
  }
  #}
    
  .resource-linner h1 {
    font-size: 32px;
  }

  .resource-hero-content-wrapper {
    padding: 0 24px;
  }

  .resource-article-content {
    padding: 32px 0;
  }

  .article-content-wrapper {
    padding: 0 24px;
    gap: 20px;
  }

  .article-content-wrapper h2 {
    font-size: 28px;
  }
  
  .article-content-wrapper h3 {
    font-size: 24px;
  }
  
  .article-content-wrapper h4 {
    font-size: 20px;
  }

  .resources-section {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .resources-section .content-wrapper {
    padding: 0 24px;
  }

  .resources-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .resource-imgs img {
    height: 246px !important;
    width: 100% !important;
  }  
}
