.projects-alt-style{
    margin-top: 5em;
    padding-bottom: 8em !important;
}
.projects-header-alt {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}



.intro-text {
  flex: 1;
}

.projects-subtitle {
  margin: 0 0 10px;
  color: #ad3b51 !important;
}

.projects-intro-paragraph {
  max-width: 600px;
  margin: 0;
  
}

.view-filter {
  display: flex;
  gap: 40px;
  min-width: 450px;
  padding: 20px;
}

.view-toggle-alt {
  margin-top: 0;
}

.view-label {
  display: block;
  font-weight: bold;
}

.filter-label{
    display: block;
  font-weight: bold;
}

.projects-alt-style .toggle-grid,
.projects-alt-style .toggle-list {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.view-buttons {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  align-items: center;
}

.filters-button-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filters-button-group button {
  background: none;
  border: 1px solid #ccc;
  padding: 0.3rem 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.filters-button-group button.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.isotope-loader {
  text-align: center;
}

#isotope_list {
  opacity: 0;
}

button.alt {
    border: none;
    height: 20px;
    padding: 0;

}
button.alt:hover{
    background:none;
    color:#991a34 ;
}
button.alt.is-checked{
    background:none;
    color: #991a34 ;
}


.label-placeholder {
  padding-bottom: 5px;}

.project-category-filters button {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: inherit;
  display: inline-block; /* key to avoid block-level stretch */
  cursor: pointer;
}

#category-filters button:hover,
#category-filters button.is-checked {
  color: #991a34;
  background: none;
}
 button.alt {
  all: unset;
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
  cursor: pointer;
  color: inherit;
}

button.alt.hover-underline-effect {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

 button.alt.hover-underline-effect::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #991a34;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

 button.alt.hover-underline-effect:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

 button.alt:hover,
 button.alt.is-checked {
  color: #991a34;
}


.toggle-grid svg,
.toggle-list svg {
  width: 20px;
  height: 20px;
  fill: #000; /* black by default */
  transition: fill 0.3s ease;
  cursor: pointer;
}

.toggle-grid:hover svg,
.toggle-list:hover svg {
  fill: #c00; /* red on hover */
}

.toggle-grid.is-active svg,
.toggle-list.is-active svg {
  fill: #c00; /* red when active */
}



/*.hover-underline-effect {*/
/*  position: relative;*/
/*  display: inline-block;*/
/*  color: inherit;*/
/*  text-decoration: none;*/
/*  transition: color 0.3s ease;*/
/*  cursor:pointer;*/
/*}*/

/*.hover-underline-effect::after {*/
/*  content: '';*/
/*  position: absolute;*/
/*  bottom: -4px;*/
/*  left: 0;*/
/*  width: 100%;*/
/*  height: 2px;*/
/*  transform: scaleX(0);*/
/*  transform-origin: right;*/
/*  transition: transform 0.3s ease;*/
/*}*/

/*.hover-underline-effect:hover::after {*/
/*  transform: scaleX(1);*/
/*  transform-origin: left;*/
/*} */

/* Hide breadcrumbs until JS confirms */
.breadcrumb.mmg-breadcrumb {
  opacity: 0;
  transition: opacity 0.3s ease;
  visibility: hidden;
}
.breadcrumb.mmg-breadcrumb.ready {
  opacity: 1;
  visibility: visible;
}

