/* ==========================================================================
   Sunny Days Therapy - Resources / Blog Page Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   RESOURCES HERO
   -------------------------------------------------------------------------- */
.sds-resources-hero {
  background: linear-gradient(135deg, #DEE9F5 0%, #C8DCF0 100%);
  padding: 140px 40px 70px;
  box-sizing: border-box;
}

.sds-resources-hero__container {
  max-width: 1200px;
  margin: 0 auto;
}

.sds-resources-hero__title {
  color: #0A2E5C;
  font-family: Sora, sans-serif;
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.1;
}

.sds-resources-hero__subtitle {
  color: #555;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  max-width: 640px;
}

/* --------------------------------------------------------------------------
   TOOLBAR: FILTERS + SEARCH
   -------------------------------------------------------------------------- */
.sds-resources {
  background: #FFFFFF;
  padding: 50px 40px 80px;
}

.sds-resources__container {
  max-width: 1200px;
  margin: 0 auto;
}

.sds-resources__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.sds-resources__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 280px;
}

.sds-resources__filters button.sds-resources__filter,
button.sds-resources__filter {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #D7E3F0;
  background: #F3F7FB;
  color: #3A5A7A;
  font-family: Inter, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 12px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: auto !important;
}

.sds-resources__filters button.sds-resources__filter:hover,
button.sds-resources__filter[data-category="all"]:hover {
  border-color: #A8C4DC;
  background: #DCE8F4;
  color: #2A4A6A;
}

.sds-resources__filters button.sds-resources__filter[data-category="parent-resources"] {
  background: #F0F9F5;
  border-color: #C5E6D6;
  color: #1A6B4A;
}

.sds-resources__filters button.sds-resources__filter[data-category="parent-resources"]:hover {
  background: #D7EFE4;
  border-color: #9FD4B8;
  color: #14553A;
}

.sds-resources__filters button.sds-resources__filter[data-category="student-resources"] {
  background: #FFF8F0;
  border-color: #F0D4B0;
  color: #8A5A20;
}

.sds-resources__filters button.sds-resources__filter[data-category="student-resources"]:hover {
  background: #F5E4CC;
  border-color: #E0B888;
  color: #6E4818;
}

.sds-resources__filters button.sds-resources__filter[data-category="clinician-resources"] {
  background: #F5F0FA;
  border-color: #D5C8E8;
  color: #5A4580;
}

.sds-resources__filters button.sds-resources__filter[data-category="clinician-resources"]:hover {
  background: #E6DCF2;
  border-color: #C0AAD8;
  color: #473568;
}

.sds-resources__filters button.sds-resources__filter[data-category="tips"] {
  background: #FFF9EC;
  border-color: #EBD9A0;
  color: #7A6510;
}

.sds-resources__filters button.sds-resources__filter[data-category="tips"]:hover {
  background: #F3E9C4;
  border-color: #DCC87A;
  color: #5F4E0C;
}

.sds-resources__filters button.sds-resources__filter[data-category="aba-therapy"] {
  background: #F0F6FC;
  border-color: #C5D8F0;
  color: #2A5A9A;
}

.sds-resources__filters button.sds-resources__filter[data-category="aba-therapy"]:hover {
  background: #D8E6F6;
  border-color: #A8C4E4;
  color: #21487C;
}

.sds-resources__filters button.sds-resources__filter[data-category="early-intervention"] {
  background: #F0F7FB;
  border-color: #C0D8E8;
  color: #2A6A8A;
}

.sds-resources__filters button.sds-resources__filter[data-category="early-intervention"]:hover {
  background: #D6EAF2;
  border-color: #A4C8DA;
  color: #21556E;
}

.sds-resources__filters button.sds-resources__filter[data-category="insurance-coverage"] {
  background: #F7F5F2;
  border-color: #DDD5C8;
  color: #5A5040;
}

.sds-resources__filters button.sds-resources__filter[data-category="insurance-coverage"]:hover {
  background: #E8E2D8;
  border-color: #C9BDAA;
  color: #473F33;
}

.sds-resources__filters button.sds-resources__filter.is-active,
.sds-resources__filters button.sds-resources__filter[data-category].is-active {
  background: #0A2E5C;
  border-color: #0A2E5C;
  color: #FFFFFF;
}

.sds-resources__filters button.sds-resources__filter.is-active:hover,
.sds-resources__filters button.sds-resources__filter[data-category].is-active:hover {
  background: #082448;
  border-color: #082448;
  color: #FFFFFF;
}

.sds-resources__search {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.sds-resources__search-input {
  width: 220px;
  max-width: 100%;
  padding: 0.7rem 1.4rem;
  border: 1px solid #666;
  border-radius: 6px !important;
  font-size: 14px;
  background: white;
  transition: all 0.3s;
}

.sds-resources__search-input:focus {
  outline: none;
  border-color: #2970C5;
  box-shadow: 0 0 0 3px rgba(41, 112, 197, 0.12);
}

.sds-resources__search button.sds-resources__search-btn,
button.sds-resources__search-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none !important;
  background: #2970C5 !important;
  color: #ffffff !important;
  font-family: Inter, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  cursor: pointer;
  white-space: nowrap;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.2 !important;
}

.sds-resources__search button.sds-resources__search-btn:hover,
button.sds-resources__search-btn:hover {
  background: #7caff6 !important;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   ARTICLE GRID (shared look with home .sds-blog__*)
   -------------------------------------------------------------------------- */
.sds-resources__grid.sds-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.sds-resources .sds-blog__card {
  min-width: 0;
}

.sds-resources .sds-blog__card.is-hidden {
  display: none;
}

.sds-resources .sds-blog__card-link {
  display: block;
  text-decoration: none !important;
}

.sds-resources .sds-blog__card-title a {
  color: inherit;
  text-decoration: none !important;
}

.sds-resources .sds-blog__card-title a:hover {
  color: #2970C5;
}

.sds-resources__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #666;
  font-size: 15px;
  padding: 40px 20px;
}

/* Screen reader only */
.sds-resources .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .sds-resources__grid.sds-blog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .sds-resources-hero {
    padding: 40px 20px 40px;
  }

  .sds-resources-hero__title {
    font-size: 24px;
  }

  .sds-resources {
    padding: 40px 20px 60px;
  }

  .sds-resources__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sds-resources__search {
    width: 100%;
  }

  .sds-resources__search-input {
    flex: 1;
    width: auto;
  }

  .sds-resources__grid.sds-blog__grid {
    grid-template-columns: 1fr;
  }
}
