
/*
Theme Name: EPIC Research
Description: EPIC Research WordPress Theme, based on Twenty Twenty Five.
Author: Jayne Ion
Version: 1.1
Text Domain: epic-research
*/

/* --- General Styles --- */
a {
  text-decoration-thickness: 1px !important;
  text-underline-offset: .1em;
}

/* Focus styles for accessibility */
:where(.wp-site-blocks *:focus) {
  outline-width: 2px;
  outline-style: solid;
}

/* Search block styles */
.wp-block-search__input {
  width: 100%;
  padding: 8px 10px;
  margin: 0;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}
.wp-block-search__button {
  margin-left: 10px !important;
  padding: 10px 20px;
  border: none !important;
}
.wp-block-search__button:hover {
  border: none !important;
}

/* Image thumbnail styles */
.pt-cv-thumb-wrapper .pt-cv-thumbnail img {
  width: 200px !important;
  height: auto !important;
}



/* ========================= */
/* Resource Filter Pills CSS */
/* ========================= */

.resource-filter {
  margin-bottom: 2rem;
}

.filter-pills-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  justify-content: flex-start;

}

.filter-pill {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 120px;
  margin-bottom: 0.5rem;

}

.filter-pill-btn {
  background: #01999D;
  border: 1px solid #ccc;
  border-radius: 6px !important;
  padding: 0.5em 1em;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  transition: background 0.2s, border 0.2s;
  outline: none;
  font-size: 1em;
  min-width: 100px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-pill.open .filter-pill-btn,
.filter-pill-btn:hover {
  background: #01787B;
  border-color: #999;
}

.filter-pill {
  position: relative !important; /* Ensure the dropdown is positioned relative to the pill */
}

.filter-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;

  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(60,60,100,0.08);
  z-index: 10;
  min-width: 220px;
  padding: 0.5em 1em;
  margin-top: 0.2em;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.filter-pill.open .filter-dropdown {
  display: block;
  opacity: 1;
}


.filter-pill.single .filter-dropdown {
  display: none !important;
}

.filter-pill.single .filter-pill-btn {
  padding-right: 2.5em;
}

.filter-pill .checkbox {
  margin: 0.3em 0;
  padding: 0.4em 0;
}

.filter-pill .checkbox label {
  font-weight: 400;
  color: #3d3d6b;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.filter-pill .checkbox:hover label {
  background-color: #f0f0f0;
  border-radius: 4px;
}

.filter-pill .cvp-count {
  color: #8a8ad6;
  font-size: 0.95em;
}

.filter-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.filter-pill.search-pill {
  min-width: 240px;
  flex: 1 1 240px;
}

@media (max-width: 700px) {
  .filter-pills-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .filter-pill {
    min-width: 0;
    width: 100%;
  }
  .filter-dropdown {
    min-width: 90vw;
    left: 0;
    right: 0;
  }
}

/* Additional styles from refactored JS */
.cvp-pill-container {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cvp-pill {
  padding: 6px 14px;
  border-radius: 3px;
  background-color: #686868 !important;
  color: #fff !important;
  border: none;
  cursor: pointer;
  font-size: 14px !important;
  position: relative;
}

.cvp-checkbox-wrapper {
  height: 300px;
  display: none;
  flex-direction: column;
  border: 1px solid #ddd;
  background: #f9f9f9;
  padding: 10px;
  margin-bottom: 10px;
  box-sizing: border-box;
  position: absolute;
  z-index: 1000;
}

cvp-checkbox:hover {
  border: 1px solid #000;
}

.cvp-scroll-area {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  max-height: 240px;
}

.cvp-top-buttons {
  display: flex;
  justify-content: space-between; /* Push buttons to opposite ends */
  align-items: center;
  margin-bottom: 10px;
  padding: 0 8px; /* Optional: add horizontal padding */
}

.cvp-btn {
  background-color: #0078d4;
  color: white;
  border: 1px solid #686868;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px !important;
  transition: background-color 0.3s ease;
}

.cvp-btn:hover {
  background-color: #686868;
	color: #fff;
}

/* Container for the banner image and overlay content */

.category-banner-image {
  width: 100%;
  margin: 0;
  padding: 0;
  top: 0;
}

.category-banner-block {
  position: relative;
  display: block;
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

.category-banner-block img {
  width: 100%;
  height: auto;
  display: block;
}

/* Overlay container */
.category-title-description {
  position: absolute;
  top: 20%;
  left: 5%; /* Changed from -20% to 5% for visibility */
  z-index: 2;
  text-align: left;
  max-width: 90%;
}

/* Heading style with background */
.category-title-description h1 {
  font-size: 2.5rem;
  max-width: 60%; /* Increased from 30% for better readability */
 /* background: rgba(255, 255, 255, 0.9); /* Slightly more opaque for contrast */
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .category-title-description {
    top: 10%;
    left: 5%;
  }

  .category-title-description h1 {
    font-size: 1.8rem;
    max-width: 80%;
  }
}

@media (max-width: 480px) {
  .category-title-description h1 {
    font-size: 1.4rem;
    max-width: 90%;
  }
}

.category-banner-block.no-title .category-title-description {
  display: none;
}

/* Category title colors by parent category */
.category-banner-block.parent-help-with-everyday-things .category-title-description h1 {
  color: #3A3A80;
}
.category-banner-block.parent-health-disability-services .category-title-description h1 {
  color: #06A3AD;
}
.category-banner-block.parent-carer-support .category-title-description h1 {
  color: #F3954A;
}
.category-banner-block.parent-legal-advocacy .category-title-description h1 {
  color: #F282A0;
}