/* ============================================================
   All Resources hub — sidebar filters + paginated card grid.
   Mirrors HubSpot's /en-in/resources layout.
   ============================================================ */

.ar-section {
  padding: 2rem 0 4rem;
  background: #fff;
}
@media (min-width: 768px) {
  .ar-section { padding: 3rem 0 5rem; }
}

/* ----- Sidebar ----- */

.ar-sidebar {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 1.25rem;
  position: sticky;
  top: 100px;
}
@media (max-width: 767px) {
  .ar-sidebar { position: static; margin-bottom: 1.5rem; }
}

.ar-search {
  position: relative;
  margin-bottom: 1.25rem;
}
.ar-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1.125rem;
}
.ar-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  font-size: 0.875rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  outline: none;
  background: #fafafa;
  transition: border-color .15s ease, background .15s ease;
}
.ar-search input:focus {
  border-color: #f26739;
  background: #fff;
}

.ar-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-family: var(--DMSans), 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #111928;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  margin-bottom: 0.5rem;
  text-align: left;
}
.ar-filter:hover { background: #FFF8F1; }
.ar-filter.is-active {
  background: #1A56DB;
  color: #fff;
}
.ar-filter.is-active .ar-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.ar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  background: #F3F4F6;
  color: #6B7280;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.ar-filter-group {
  border-top: 1px solid #f3f4f6;
  padding-top: 1rem;
  margin-top: 1rem;
}

.ar-filter-heading {
  font-family: var(--DMSans), 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1A56DB;
  margin: 0 0 0.625rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ar-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.875rem;
  color: #4B5563;
  cursor: pointer;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
  margin-bottom: 2px;
  position: relative;
}
.ar-checkbox:hover {
  background: #FFF8F1;
  color: #f26739;
}
.ar-checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #f26739;
  cursor: pointer;
  flex-shrink: 0;
}
.ar-checkbox span:not(.ar-checkbox__count) { flex: 1; line-height: 1.4; }

.ar-checkbox__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 18px;
  padding: 0 6px;
  background: #F3F4F6;
  color: #9CA3AF;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
}

/* ----- Grid ----- */

.ar-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (min-width: 576px) {
  .ar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .ar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ar-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  position: relative;
}
.ar-card:hover {
  transform: translateY(-3px);
  border-color: #f26739;
  box-shadow: 0 12px 28px rgba(242, 103, 57, 0.14);
  text-decoration: none;
  color: inherit;
}
.ar-card.is-hidden { display: none; }

.ar-card__icon-wrap {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF8F1;
}
.ar-card__icon-wrap i {
  font-size: 2.5rem;
  color: #f26739;
}

.ar-card__body {
  padding: 1.125rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.ar-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.625rem;
}
.ar-card__badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #6b7280;
  background: #FFF8F1;
  border-radius: 4px;
  letter-spacing: 0.01em;
}

.ar-card__title {
  font-family: var(--DMSans), 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111928;
  margin: 0 0 0.5rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ar-card__desc {
  font-size: 0.8125rem;
  color: #6B7280;
  line-height: 1.5;
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ar-card__arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  transition: color .15s ease, transform .15s ease;
}
.ar-card:hover .ar-card__arrow {
  color: #f26739;
  transform: translate(2px, -2px);
}
.ar-card__arrow i { font-size: 1.125rem; }

/* ----- Empty + Pagination ----- */

.ar-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #6b7280;
  background: #fafafa;
  border: 1px dashed #e5e7eb;
  border-radius: 14px;
}
.ar-empty i { font-size: 3rem; color: #d1d5db; margin-bottom: 1rem; display: block; }
.ar-empty h3 { font-size: 1.125rem; color: #111928; margin: 0 0 .5rem; font-weight: 600; }

.ar-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.ar-pagination__pages {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.25rem;
}
.ar-pagination__btn,
.ar-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4B5563;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
}
.ar-pagination__btn:hover:not(:disabled),
.ar-pagination__page:hover {
  border-color: #1A56DB;
  color: #1A56DB;
}
.ar-pagination__btn:disabled { opacity: .4; cursor: not-allowed; }
.ar-pagination__page.is-active {
  background: #1A56DB;
  border-color: #1A56DB;
  color: #fff;
}
.ar-pagination__page.is-active:hover { color: #fff; }
.ar-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  color: #9CA3AF;
}
