/* ==========================================================================

LOZENGE FILTERS
========================================================================== */
.hayne-cs-filter-container {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 3rem;
justify-content: center;
}

.hayne-cs-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-cs-lozenge:hover {
background-color: #e5e7eb;
border-color: #d1d5db;
}

.hayne-cs-lozenge.active {
background-color: #132659;
color: #ffffff;
border-color: #132659;
}

/* ==========================================================================
2. MAIN ARCHIVE GRID
========================================================================== */
.hayne-cs-masonry-grid {
display: grid;
grid-template-columns: repeat(1, 1fr);
gap: 2rem;
width: 100%;
}

@media (min-width: 768px) {
.hayne-cs-masonry-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
.hayne-cs-masonry-grid { grid-template-columns: repeat(3, 1fr); }
}

.hayne-cs-card {
display: flex;
flex-direction: column;
width: 100%;
background: #ffffff;
border: 1px solid #e5e7eb;
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, border-color 0.3s ease;
font-family: 'Prompt', sans-serif;
height: 100%;
}

.hayne-cs-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
border-color: #5EAC92;
}

.hayne-cs-logo-wrap {
height: 220px;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
background-color: #f8f9fa;
border-bottom: 1px solid #e5e7eb;
padding: 30px;
flex-shrink: 0;
}

.hayne-cs-logo-wrap a {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}

.hayne-cs-logo {
max-height: 100%;
max-width: 100%;
object-fit: contain;
mix-blend-mode: multiply;
}

.hayne-cs-content {
padding: 2rem;
display: flex;
flex-direction: column;
flex-grow: 1;
}

.hayne-cs-cat-tag {
display: inline-block;
color: #466BB0;
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 1rem;
}

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

.hayne-cs-title a {
color: inherit;
text-decoration: none;
transition: color 0.3s ease;
}

.hayne-cs-card:hover .hayne-cs-title a {
color: #5EAC92;
}

.hayne-cs-excerpt {
font-size: 0.875rem;
color: #4b5563;
line-height: 1.6;
margin-bottom: 2rem;
flex-grow: 1;
}

.hayne-cs-footer {
display: flex;
justify-content: flex-start;
align-items: center;
border-top: 1px solid #f3f4f6;
padding-top: 1.25rem;
margin-top: auto;
}

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

.hayne-cs-readmore:hover {
color: #132659;
}

.hayne-cs-readmore i {
font-size: 12px;
transition: transform 0.3s ease;
}

.hayne-cs-card:hover .hayne-cs-readmore i {
transform: translateX(4px);
}

.hayne-cs-load-more-wrapper {
text-align: center;
margin-top: 3rem;
}

.hayne-cs-load-more-btn {
background-color: #132659;
color: #ffffff;
border: none;
border-radius: 100px;
padding: 12px 30px;
font-size: 16px;
font-weight: 600;
font-family: 'Prompt', sans-serif;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 10px;
transition: all 0.3s ease;
}

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

.hayne-cs-load-more-btn:disabled {
opacity: 0.7;
cursor: not-allowed;
transform: none;
}

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

/* ==========================================================================
3. COMPACT CAROUSEL SHORTCODE
========================================================================== */
.hayne-cs-carousel-wrapper {
position: relative;
width: 100%;
max-width: 100%;
padding: 1rem 3rem;
margin: 0 auto;
box-sizing: border-box;
font-family: 'Prompt', sans-serif;
}

.hayne-cs-carousel-track {
display: flex;
gap: 1.5rem;
overflow-x: auto;
scroll-behavior: smooth;
-ms-overflow-style: none;
scrollbar-width: none;
scroll-snap-type: x mandatory;
padding: 1rem 0.5rem;
}

.hayne-cs-carousel-track::-webkit-scrollbar {
display: none;
}

.hayne-cs-compact-card {
background-color: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 10px;
display: flex;
flex-direction: column;
text-align: center;
transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
flex: 0 0 260px;
scroll-snap-align: start;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
overflow: hidden;
}

@media (max-width: 768px) {
.hayne-cs-compact-card {
flex: 0 0 calc(100% - 2rem);
}
}

.hayne-cs-compact-card:hover {
transform: translateY(-4px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
border-color: #5EAC92;
}

.hayne-cs-compact-logo-wrap {
height: 120px;
width: 100%;
background-color: #f8f9fa;
border-bottom: 1px solid #e5e7eb;
padding: 1rem 1.5rem;
display: flex;
align-items: center;
justify-content: center;
}

.hayne-cs-compact-logo-wrap a {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}

.hayne-cs-compact-logo {
max-height: 100%;
max-width: 100%;
object-fit: contain;
mix-blend-mode: multiply;
}

.hayne-cs-compact-content {
padding: 1.25rem;
display: flex;
flex-direction: column;
flex-grow: 1;
align-items: center;
}

.hayne-cs-compact-title {
font-size: 1rem;
font-weight: 700;
color: #132659;
margin: 0 0 1rem 0;
line-height: 1.3;
}

.hayne-cs-compact-title a {
color: inherit;
text-decoration: none;
transition: color 0.3s ease;
}

.hayne-cs-compact-card:hover .hayne-cs-compact-title a {
color: #5EAC92;
}

.hayne-cs-compact-readmore {
color: #5EAC92;
font-size: 13px;
font-weight: 600;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 6px;
transition: color 0.3s ease;
margin-top: auto;
}

.hayne-cs-compact-readmore:hover {
color: #132659;
}

.hayne-cs-compact-readmore i {
font-size: 11px;
transition: transform 0.3s ease;
}

.hayne-cs-compact-card:hover .hayne-cs-compact-readmore i {
transform: translateX(4px);
}

.hayne-cs-nav-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: #132659;
color: white;
border: none;
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 10;
opacity: 0.8;
transition: opacity 0.3s ease, background 0.3s ease;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hayne-cs-nav-btn:hover {
opacity: 1;
background: #5EAC92;
}

.hayne-cs-nav-prev { left: 0; }
.hayne-cs-nav-next { right: 0; }

@media (max-width: 768px) {
.hayne-cs-nav-btn { display: none; }
.hayne-cs-carousel-wrapper { padding: 1rem 0; }
}