/* Search bar + Dropdown */
.guides-search-only {
	width: 672px;
}

.guides-search{
  position: relative;
  margin: 20px auto 18px;
}

.guides-search-bar{
  position: relative;
}

.guides-search-icon{
  position: absolute !important;
  left: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 20px !important;
  height: 20px !important;
  pointer-events: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Z'/%3E%3C/svg%3E");
}

input[type="search"].guides-search-input{
	display: block;
  padding-left: 45px;
  padding-right: 18px;
  font-size: 16px !important;
  color: #0F1729;
	border-radius: 12px;
	border: 1px solid #E5E7EB !important;
	height: 56px !important;
	box-shadow: 
		#FFFFFF 0px 0px 0px 0px,
		#E63746 0px 0px 0px 2px,
		#0000000D 0px 1px 2px 0px;
}

.guides-search-results{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  width: 100%;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  z-index: 9999;
}

.guides-search-list{
  max-height: 340px;
  overflow: auto;
}

.guides-search-empty{
  padding: 14px 16px;
  font-size: 14px;
  color: #6b7280;
}

.guides-search-item{
  position: relative;
  display: block;
  padding: 14px 44px 14px 16px;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid #f1f5f9;
}

.guides-search-item:first-child{ border-top: 0; }

.guides-search-item:hover {
	text-decoration: none;
}

.guides-search-title{
  display: block;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: #0F1729;
}

.guides-search-desc{
  display: -webkit-box;
  margin-top: 6px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guides-search-item::after{
  content: "→";
  position: absolute;
  right: 16px;
  top: 14px;
  color: #6b7280;
  font-size: 18px;
  line-height: 1;
}

/* Filters Panel */
.page-list-container{
	max-width: 1200px;
	margin: auto;
}

.filter-sidebar {
    position: sticky;
    top: 44px;
    align-self: flex-start;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.guides-filters-card{
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
	margin: auto;
}

.guides-filters-card-title{
  font-weight: 400;
  font-size: 16px;
  color: #0F1729;
  margin-bottom: 16px;
}

.guides-filters-card-divider{
  height: 1px;
  background: #E5E7EB;
  margin: 16px 0;
}

.filter-section-head{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  padding: 10px 0;
  cursor: pointer;
}

.filter-section-head:hover{
	background: transparent;
}

.filter-section-label{
  font-weight: 500;
  color: #0F1729;
  font-size: 14px;
}

.filter-section-chev{
  width: 16px;
  height: 16px;
  opacity: 0.7;
  background: no-repeat center/contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19 9-7 7-7-7'/%3E%3C/svg%3E");
  transition: transform 160ms ease;
}

.filter-section--collapsed .filter-section-chev{
  transform: rotate(-90deg);
}

.filter-section--collapsed .filter-section-body{
  display: none;
}

.filter-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 0;
  font-size: 14px;
}

.filter-item-left{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.filter-item-cb{
  width: 16px !important;
  height: 16px !important;
  border-radius: 4px;
  accent-color: #ef4444;
}

.filter-item-text{
  color: #6b7280;
}

.filter-item-count{
  padding: 2px 6px;
  border-radius: 4px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-item-disabled{
  opacity: 0.45;
}

/* Count line */
.guides-count{
  font-size: 14px;
  color: #6b7280;
   margin: 0 0 24px;
}

/* Cards grid */
.guides-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.popular-guides-group .guides-grid{
	  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card{
  display: flex;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 2px solid #F3F4F6;
  border-radius: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.guide-card:hover{
  border-color: #E637464D;
	box-shadow: 
		#00000000 0px 0px 0px 0px,
		#00000000 0px 0px 0px 0px,
		#0000001A 0px 10px 15px -3px,
		#0000001A 0px 4px 6px -4px;
  transform: translateY(-1px);
	text-decoration: none;
}

.guide-card-icon{
  width: 48px;
  height: 48px;
	display: none !important;
}

.guide-card-body{ min-width: 0; }

.guide-card-title{
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  color: #0F1729;
  margin-top: 8px;
}

.guide-card-desc{
  margin-top: 8px;
  font-size: 14px;
  color: #6b7280;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-card-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-card-badges-top{ margin-top: 0; }
.guide-card-badges-bottom{ margin-top: 12px; }

.guide-card-tag-badge, .guide-card-use-badge{
	display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 12px;
}

.guide-card-tag-badge {
	color: #4B5565;
	background: #F3F4F6;
	border-radius: 999px;
	font-weight: 600;
}

.guide-card-use-badge{
	color: #6B7280;
	background: #F9FAFB;
	border-radius: 6px;
	border: 1px solid #F3F4F6;
	font-weight: 500;
}


.guides-empty{
  padding: 16px;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  color: #6b7280;
  background: #fff;
}

.guides-cards-loading{
  opacity: 0.75;
  pointer-events: none;
}

.guide-card-icon-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #ccc;
  margin: auto;           
}

.guide-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px){
  .guides-grid{ grid-template-columns: 1fr; }
	
	.popular-guides-group .guides-grid{
	  grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 768px){
	/* Search + dropdown */
	
	.guides-search-only {
		width: 95%;
	}
	
	/* Filters */
	.page-list-section.dark-background.has-background {
		padding: 40px 20px !important;
	}
	
	.page-list-container {
		width: 95%;
	}
	
	.filter-sidebar {
        position: relative;
        top: auto;
        max-height: none;
	}
}

@media screen and (max-width: 576px) {
	
}