/* --------------------------------------
Lozenge Filters
-------------------------------------- */
.hayne-filter-container {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 2rem;
justify-content: center;
}

.hayne-lozenge {
background-color: #f3f4f6;
color: #4b5563;
border: 1px solid #e5e7eb;
border-radius: 9999px;
padding: 8px 20px;
font-size: 14px;
font-family: 'Prompt', sans-serif;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}

.hayne-lozenge:hover {
background-color: #e5e7eb;
border-color: #d1d5db;
}

.hayne-lozenge.active {
background-color: #132659; /* Brand Navy */
color: #ffffff;
border-color: #132659;
}

/* --------------------------------------
CSS Masonry Grid
-------------------------------------- */
.hayne-masonry-grid {
column-count: 1;
column-gap: 2rem;
transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
.hayne-masonry-grid { column-count: 2; }
}

@media (min-width: 1024px) {
.hayne-masonry-grid { column-count: 3; }
}

/* Fallback message */
.hayne-no-results {
width: 100%;
text-align: center;
padding: 3rem;
font-size: 18px;
color: #6b7280;
font-family: 'Prompt', sans-serif;
}

/* --------------------------------------
Resource Card
-------------------------------------- */
.hayne-resource-card {
break-inside: avoid-column;
page-break-inside: avoid;
display: inline-block; /* Fixes Webkit column shadow/margin clipping bugs */
width: 100%;
margin-bottom: 2rem;
background: #ffffff;
border: 1px solid #f3f4f6;
border-radius: 12px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
font-family: 'Prompt', sans-serif;
}

.hayne-resource-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hayne-rc-img img {
width: 100%;
height: auto;
display: block;
object-fit: cover;
aspect-ratio: 594 / 420;
}

.hayne-rc-content {
padding: 1.5rem;
}

.hayne-rc-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 12px;
border-radius: 999px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 1rem;
}

.hayne-rc-title {
font-size: 1.25rem;
font-weight: 700;
color: #132659;
margin-top: 0;
margin-bottom: 0.75rem;
line-height: 1.3;
}

.hayne-rc-title a {
color: inherit;
text-decoration: none;
}

.hayne-rc-excerpt {
font-size: 0.875rem;
color: #6b7280;
line-height: 1.6;
margin-bottom: 1.5rem;
}

.hayne-rc-footer {
display: flex;
justify-content: space-between;
align-items: center;
border-top: 1px solid #f3f4f6;
padding-top: 1rem;
}

.hayne-rc-readmore {
color: #5EAC92; /* Teal */
font-size: 14px;
font-weight: 600;
text-decoration: none;
display: flex;
align-items: center;
gap: 5px;
transition: color 0.3s ease;
}

.hayne-rc-readmore:hover {
color: #0DADEA; /* Cyan */
}

/* --------------------------------------
Load More Button
-------------------------------------- */
.hayne-load-more-wrapper {
width: 100%;
text-align: center;
margin-top: 2rem;
margin-bottom: 2rem;
}

.hayne-load-more-btn {
background-color: #0DADEA; /* Cyan */
color: #ffffff;
font-family: 'Prompt', sans-serif;
font-weight: 600;
font-size: 16px;
padding: 12px 32px;
border-radius: 100px;
border: none;
cursor: pointer;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease, transform 0.2s ease;
display: inline-flex;
align-items: center;
gap: 10px;
}

.hayne-load-more-btn:hover {
background-color: #5EAC92; /* Teal */
transform: translateY(-2px);
}

.hayne-load-more-btn:disabled {
background-color: #9ca3af;
cursor: not-allowed;
transform: none;
box-shadow: none;
}

/* --------------------------------------
Bookmark Button (Icon & Text)
-------------------------------------- */
.hayne-bookmark-btn {
background: none;
border: none;
color: #9ca3af;
cursor: pointer;
font-size: 14px;
font-family: 'Prompt', sans-serif;
font-weight: 600;
display: flex;
align-items: center;
gap: 6px;
transition: color 0.3s ease;
padding: 0;
}

.hayne-bookmark-btn:hover {
color: #466BB0;
}

.hayne-bookmark-btn i.fa-solid {
color: #466BB0; /* Active saved color */
}

/* --------------------------------------
Feedback (Thumbs) Widget
-------------------------------------- */
.hayne-feedback-widget {
background: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 8px;
padding: 12px 16px;
display: inline-flex;
align-items: center;
gap: 12px;
font-family: 'Prompt', sans-serif;
margin: 20px 0;
}

.hayne-fb-text {
font-size: 14px;
color: #4b5563;
font-weight: 600;
}

.hayne-vote-btn {
background: none;
border: none;
cursor: pointer;
font-size: 18px;
color: #9ca3af;
transition: color 0.3s, transform 0.2s;
padding: 0;
}

.hayne-vote-btn:hover:not(:disabled) {
color: #0DADEA;
transform: scale(1.1);
}

.hayne-feedback-widget.has-voted .hayne-fb-text {
color: #5EAC92;
}

.hayne-vote-btn:disabled {
cursor: default;
opacity: 0.5;
}

/* --------------------------------------
Bookmark List
-------------------------------------- */
.hayne-bookmark-list {
list-style: none;
padding: 0;
margin: 0;
}

.hayne-bookmark-list li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 8px;
margin-bottom: 10px;
font-family: 'Prompt', sans-serif;
}

.hayne-bookmark-list a {
color: #132659;
font-weight: 600;
text-decoration: none;
}