/* ==============================
   BASE
============================== */
.resource-hero__search input:focus,
.resource-hero__search input:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}
.resource-hero {
  position: relative;
 
}
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  background: #ff8800;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}
.resource-hero__inner {
  position: relative;
  z-index: 2;
}

.hero-dots {
  position: absolute;
  width: 220px;
  height: 220px;
  pointer-events: none;
  z-index: 1;
  background-repeat: no-repeat;
  background-size: contain;
}

/* 🔝 TOP LEFT */
.hero-dots--top {
  top: 0;
  left: 0;
  background-image: url('https://46119835.fs1.hubspotusercontent-na1.net/hubfs/46119835/Resource%20Hub%20V2/top-dots.png');
}

/* 🔽 BOTTOM RIGHT */
.hero-dots--bottom {
  bottom: -50px;
  right: 0px;   /* push outside */
  background-image: url('https://46119835.fs1.hubspotusercontent-na1.net/hubfs/46119835/Resource%20Hub%20V2/bottom-dots.png');
}
.resource-hub > * {
 
  margin-left: auto;
  margin-right: auto;
}
.featured-resources .container,
.browse-section .container,
.resource-library .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

* {
  box-sizing: border-box;
}
.featured-card__image,
.resource-card__image {
  width: 100%;
  object-fit: cover;
  display: block;
}
.resource-hero__search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  color: #111;
  max-height:374px;
  border-radius: 16px;
  overflow-y: auto;
  text-align: left;
  z-index: 50;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.search-suggestion__title {
  flex: 1;
}

.search-suggestion__type {
  background: #ff8800;
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap;
}
.search-suggestion {
  padding: 14px 18px;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #eee;
 display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.search-suggestion:hover {
  background: #f4f5f7;
}
body {
  font-family: "Figtree", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #111;
  margin: 0;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0;
}

/* ==============================
   HERO
============================== */
.resource-hero {
  background: #0E2F27;
  color: #fff;
  padding: 109px 120px;
  text-align: center;
  position: relative;
}

.resource-hero__inner {
  max-width: 900px;
  margin: 0 auto;
}

.resource-hero h1 {
text-align: center;
font-family: Figtree;
font-size: 57px;
font-style: normal;
font-weight: 600;
line-height: 130%; /* 74.1px */
letter-spacing: -1.32px;
  margin-bottom: 24px;
}

.resource-hero h1 span {
  color: #7ED957;
}

.resource-hero p {
text-align: center;
font-family: Figtree;
font-size: 22px;
font-style: normal;
font-weight: 400;
line-height: 150%;
  margin-bottom: 24px;

}

.resource-hero__search {
     margin: 0 auto 24px;
    max-width: 700px;
    position: relative;
    display: flex;
    width: 1000px;
    padding: 10px 20px;
    justify-content: space-between;
    align-items: center;
    border-radius: 100px;
    border: 1px solid var(--Neutral-200, #D8DCE3);
    background: var(--Neutral-50, #F7F8F9);
    color: var(--Black, #101010);
    font-family: Figtree;
    font-size: 16px;
    max-height: 56px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
}

.resource-hero__search input {
  width: 100%;
  border-radius: 999px;
  padding: 16px 20px;
  border: none;
  font-size: 16px;
}

.resource-hero__search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.resource-hero__trending {
  display: flex;
  gap: 10px;
  align-items:center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.resource-hero__trending span{
text-align: center;
font-family: Figtree;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 150%;
color:white;

}
.resource-pill {
border-radius: 56px;
  cursor:pointer;
border: 0.25px solid rgba(255, 255, 255, 0.25);
background: var(--Green-4, #0E2F27);
padding: 12px 16px;
justify-content: center;
align-items: center;
  color: #FFF;
font-family: Figtree;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 16px; /* 100% */
gap: 10px;
}

.resource-pill.is-active, .resource-pill:hover {
  background: #7ED957;
  color: #0E2F27;
}

/* ==============================
   FEATURED
============================== */
.featured-resources {
  background: #f7f8f9;
  color: #101010;
  padding: 64px 24px;
}

.featured-card__body{
padding:40px;

}
.featured-resources .section-label{
border-radius: 100px;
background: rgba(31, 89, 65, 0.10);
  padding: 10px 14px;
  max-width:fit-content;

}
.featured-resources h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.featured-resources p {
  opacity: 0.7;
  margin-bottom: 32px;
}
.featured-resources__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  height:600px;
}
.featured-resources__grid .featured-card:nth-child(2) .featured-card__image,
.featured-resources__grid .featured-card:nth-child(3) .featured-card__image {
  display: none;
}
/* big left card */
.featured-resources__grid .featured-card:nth-child(1) {
  grid-column: 1;
  grid-row: span 2;
  
}

/* right stacked cards */
.featured-resources__grid .featured-card:nth-child(2),
.featured-resources__grid .featured-card:nth-child(3) {
  grid-column: 2;
   
}
.featured-card__tags span{
display: flex;
  max-width: fit-content;
padding: 8px 10px;
justify-content: center;
align-items: center;
gap: 10px;
  border-radius: 56px;
border: 0.25px solid #FFF;
background: rgba(255, 136, 0, 0.20);
  
color: #0E2F27;
font-family: Figtree;
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 16px; /* 133.333% */
}
/* ignore old col_width classes */
.featured-card--75,
.featured-card--25,
.featured-card--50,
.featured-card--50-2 {
  grid-column: auto;
  grid-row: auto;
}


.featured-card {
  background: #fff;
  color: #111;
  border-radius: 20px;
  overflow: hidden;
}

.featured-card__image {
  height: 300px;
  background: #ccc;
}

.featured-card__body {
 margin-top: 40px;
}

.featured-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.featured-card p {
  color: #5e6f8d;
  margin-bottom: 16px;
}

.featured-card__footer {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.featured-card__footer a{
color: #101010;
font-family: Figtree;
font-size: 16px;
font-style: normal;
font-weight: 600;
line-height: 100%; /* 16px */
text-transform: capitalize;
      border-bottom: 2px solid #ff7a1a;
    text-decoration: none;
    font-weight: 600;
    color: #111;

}
.featured-card__footer span{
color: #64748B;
font-family: Figtree;
font-size: 16px;
font-style: normal;
font-weight: 500;
line-height: 150%; /

}
/* ==============================
   BROWSE BY TOPIC
============================== */
.browse-section--topic {
  padding: 99px 24px;
  padding-bottom:0px!important;
}
.browse-section--type {
  padding: 35px 24px;
}
.browse-section h2 {
  font-family: Figtree;
font-size: 48px;
font-style: normal;
font-weight: 600;
line-height: 130%; /* 62.4px */
letter-spacing: -1.32px;
  margin-bottom: 24px;
}

.browse-section p {
  color: #555;
  margin-bottom: 32px;
}

.browse-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.featured-card__image-link {
  display: block;
  cursor: pointer;
}

.featured-card h3 a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.featured-card h3 a:hover {
  color: #ff8800;
}
.browse-topic-card {
font-family: Figtree;
font-size: 20px;
    cursor:pointer;
font-style: normal;
font-weight: 400;
line-height: 150%;
  display: flex;
height: 108px;
max-width: 400px;
padding: 24px 40px;
text-align:left;
justify-content: flex-start;
align-items: center;
gap: 10px;
flex: 1 0 0;
  border-radius: 24px 0;
border: 1px solid rgba(14, 47, 39, 0.1);
background: #fff;
  transition: all 0.25s ease;
}
.browse-topic-card:hover {
  border-radius: 24px 0;
  border: 1px solid rgba(255, 136, 0, 0.25);
  background: #F7F8F9;
}

.browse-topic-card img, .browse-type-card img {
  width:44px;
}

.browse-topic-card.is-active {
  border-color: #ff7a1a;
}

/* ==============================
   BROWSE BY TYPE
============================== */
.browse-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.browse-type-card {
display: flex;
width: 140px;
  cursor:pointer;
padding: 24px;
flex-direction: column;
align-items: flex-start;
gap: 16px;
flex-shrink: 0;
  border-radius: 24px 0;
border: 1px solid rgba(14, 47, 39, 0.1);
  color:#101010;
font-family: Figtree;
font-size: 16px;
  padding-right: 15px !important;
  text-align:left;
font-style: normal;
font-weight: 400;
line-height: 150%;

}
.browse-type-card:hover {
  border-radius: 24px 0;
  border: 1px solid rgba(255, 136, 0, 0.25);
  background: #F7F8F9;
}
.browse-type-card.is-active {
  border-color: #ff7a1a;
}

/* ==============================
   FILTER LAYOUT
============================== */
.resource-library {
  background: #fff;
  padding: 30px 24px;
}
.resource-filter-search:focus,
.resource-filter-search:focus-visible {
  outline: none;
  box-shadow: none;
}
.resource-library__bar h2{
color: #0E2F27;
font-family: Figtree;
font-size: 22px;
font-style: normal;
font-weight: 400;
line-height: 150%; 
}
.resource-library__layout {
  display: grid;
  grid-template-columns: 374px 1fr;
  gap: 25px;
}
.resource-library__sort {
  display: flex;
  color: #000;
font-family: Figtree;
font-size: 18px;
font-style: normal;
font-weight: 400;
      align-items: baseline;
line-height: 100%;
  gap: 15px;
}

.sort-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sort-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 0;
  background: transparent;
  padding-right: 44px;
  color: #000;
font-family: Figtree;
font-size: 18px;
font-style: normal;
font-weight: 400;
line-height: 100%;
  cursor: pointer;
}

.sort-select-icon {
  position: absolute;
  right: 0;
  pointer-events: none;
}
/* ==============================
   FILTER SIDEBAR
============================== */
.resource-library__filters {
    display: flex;
    gap: 24px;
    max-width: 374px;
    flex-direction: column;
}
.resource-results-row span{
color: #252C34;
font-family: Figtree;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 150%; /* 24px */

}
.resource-results-row{

    display: flex;
    align-items: center;
    justify-content: space-between;
  margin-top: -14px;
}
.filters-clear-button {
  display: flex;
height: 40px;
  cursor:pointer;
padding: 10px 20px 10px 10px;
align-items: center;
  border-radius: 100px;
background: #D8DCE3;
  color: #101010;
font-family: Figtree;
font-size: 16px;
font-style: normal;
font-weight: 500;
line-height: 120%; /* 19.2px */
}
.resource-library__bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
  align-items:center;
}
.resource-card__image-link {
  display: block;
}
.resource-card__image-link,
.resource-card h3 a {
  cursor: pointer;
}
.resource-card h3 a {
  color: inherit;
  text-decoration: none;
}

.resource-card h3 a:hover {
  color: #ff8800;
}
.search-filters {
 display: flex;
height: 40px;
padding: 10px 20px 10px 10px;
align-items: center;
  gap:10px;
align-self: stretch;
border-radius: 100px;
border: 1px solid var(--Neutral-200, #D8DCE3);
background: var(--Neutral-50, #F7F8F9);
}

.filter-group {
  background: #FBFBFB;
  border-radius: 7px;
  overflow: hidden;
}

.filter-group__title {
  background: #e9edf2;
  padding: 12px 16px;
  font-weight: 600;
  border: none;
  width: 100%;
  display: flex;
  align-items:center;
  justify-content: space-between;
}
.filter-group__body label, .filter-group__body input{

cursor:pointer;

}
.filter-group__body {
  padding: 12px 16px;
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

/* scrollbar only for options */
.filter-group__body::-webkit-scrollbar {
  width: 6px;
}

.filter-group__body::-webkit-scrollbar-track {
  background: transparent;
}

.filter-group__body::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
}

/* ==============================
   CARDS
============================== */
.resource-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  
}

.resource-card__tags span {
  font-size: 12px;
  background: #ffe7cc;
  padding: 6px 10px;
  border-radius: 999px;
}

.resource-library__posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.resource-card {
  background: #fff;
  border-radius: 16px;
 
}

.resource-card__top {
  display: flex;
height: 56px;
padding: 12px 40px;
justify-content: space-between;
align-items: center;;
align-self: stretch;
  border-radius: 24px 0 0 0;

background: #EFF1F4;
}

.resource-card__type 
{display: flex;
    gap: 12px;
    align-items: center;}

img.resource-card__icon {
    width: 22px;
    height: 22px;
}

.resource-card__badge {
 font-family: Figtree;
    display: flex;
    padding: 8px 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    border-radius: 56px;
    border: 0.25px solid #FBFBFB;
    background: rgba(202, 212, 0, 0.25);
}

.resource-card__image {
  max-height: 200px;
  background: #0E2F27;
}

.resource-card__body {
padding: 20px;
    display: flex;
    /* max-width: 400px; */
    padding: 24px 40px;
    flex-direction: column;
    /* align-items: flex-start; */
    gap: 24px;
    /* align-self: stretch; */
    border-radius: 0 0 24px 0;
    background: #FBFBFB;
}
.resource-card__authors, .resource-card__meta {overflow: hidden;
color: var(--Neutral-500, #64748B);
text-overflow: ellipsis;
font-family: Figtree;
font-size: 12px;
font-style: normal;
font-weight: 500;
  line-height: 150%; }
.resource-card__topic {
  font-size: 12px;
  background: #ffe7cc;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-block;
  
}

.resource-card h3 {
  font-size: 20px;
}

.resource-card p {
  color: #5e6f8d;
 
}
.resource-card__footer{ 
  margin-bottom:24px;
  display:flex;
  gap:24px;
  justify-content:space-between;
}
.resource-card__footer a {
  border-bottom: 2px solid #ff7a1a;
  text-decoration: none;
  font-weight: 600;
  color: #111;
 
}

/* ==============================
   Pagination
============================== */
.resource-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 64px;
  gap: 20px;
}

/* LEFT + RIGHT BUTTONS */
.resource-pagination__prev,
.resource-pagination__next {
  display: flex;
  align-items: center;
  gap: 12px;
 color: #101010;
font-family: Figtree;
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 16px; /* 100% */
  background: none;
  border: 0;
  cursor: pointer;
}
.arrow-circle {
width:36px;
}
/* ORANGE CIRCLE ICON */
.resource-pagination__prev img,
.resource-pagination__next img {
  width: 36px;

}

/* CENTER NUMBERS */
.resource-pagination__numbers {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* NUMBER BUTTON */
.resource-pagination__number {
font-family: Figtree;
font-size: 18px;
font-style: normal;
font-weight: 400;
line-height: 100%; 
display: flex;
width: 24px;
height: 24px;
  cursor:pointer;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 10px;
}

/* ACTIVE PAGE */
.resource-pagination__number.is-active {
  width: 36px;
  height: 36px;
  background: #ff8800;
  font-weight:600;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* DISABLED STATE */
.resource-pagination__prev:disabled,
.resource-pagination__next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* ==============================
   MOBILE
============================== */
@media (max-width: 900px) {
  .resource-library__layout {
    grid-template-columns: 1fr;
  }

  .resource-library__posts {
    grid-template-columns: 1fr;
  }

  .featured-resources__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .featured-card:nth-child(1),
  .featured-card:nth-child(2),
  .featured-card:nth-child(3),
  .featured-card:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
 
  }
  .resource-hero__search{
max-width:700px;
}
  
  .resource-hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .resource-pagination {
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .resource-pagination__prev,
  .resource-pagination__next {
    font-size: 0;
    gap: 0;
  }

  .resource-pagination__prev img,
  .resource-pagination__next img {
    width: 38px;
    height: 38px;
  }

  .resource-pagination__numbers {
    gap: 6px;
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .resource-pagination__number {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .resource-pagination__number.is-active {
    width: 32px;
    height: 32px;
  }
    .browse-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .browse-topic-card {
    padding: 14px;
    border-radius: 12px;
  }

  .browse-topic-card span {
    font-size: 14px;
  }
   .resource-hero__search {
    width: calc(100% - 32px);
    max-width: 100%;
    margin: 0 auto 24px;
    padding: 6px 8px 6px 16px;
    max-height: none;
    min-height: 56px;
    box-sizing: border-box;
  }

  .resource-hero__search input {
    width: 100%;
    min-width: 0;
    padding: 12px 92px 12px 0;
    font-size: 14px;
    background: transparent;
  }

  .resource-hero__search button {
    right: 8px;
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
  }

  .resource-hero__search-results {
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    max-height: 260px;
    border-radius: 14px;
  }

  .search-suggestion {
    padding: 12px 14px;
    gap: 8px;
  }

  .search-suggestion__title {
    font-size: 13px;
    line-height: 1.25;
  }

  .search-suggestion__type {
    font-size: 11px;
    padding: 3px 8px;
  }
 .browse-type-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    margin: 0 auto;
    align-items: center;
}.browse-type-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    margin: 0 auto;
    align-items: center;
} 
  .browse-type-card{width:auto;}
}
@media (max-width: 768px) {
  .featured-resources__grid {
    grid-template-columns: 1fr;
  }

  .featured-resources__grid .featured-card {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .resource-hero{
  padding:50px;
  
  }
  .featured-card__footer{flex-direction:column;gap:20px;max-width:200px;align-items:center;}
}
@media (max-width: 480px) {
  .filter-group__title {
    cursor: pointer;
  }

  .filter-group__title span {
    transition: transform 0.2s ease;
  }

  .filter-group.is-open .filter-group__title span {
    transform: rotate(180deg);
  }
  .featured-card__footer {align-items:flex-start;}
}