.ecosystem-page {
    background-color: #f7f7f7;
}
.ecosystem-page .main-header {
    background: transparent;
    border-bottom: 1px solid rgba(10, 46, 32, 0.1);
}
.ecosystem-page .main-header:not(.is-top) {
    background: rgba(247, 247, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: #e0e0e0;
}
.ecosystem-page .logo span,
.ecosystem-page .hamburger span {
    color: #111111;
    background-color: #111111;
}
.ecosystem-page.dark-theme .logo span,
.ecosystem-page.dark-theme .hamburger span {
    color: #FFFFFF;
    background-color: #FFFFFF;
}
.ecosystem-page .desktop-nav > li > a { color: #555555; }
.ecosystem-page .desktop-nav > li > a:hover { color: #111111; }
.ecosystem-page.dark-theme .desktop-nav > li > a { color: rgba(255, 255, 255, 0.7); }
.ecosystem-page.dark-theme .desktop-nav > li > a:hover { color: #FFFFFF; }

.hero-ecosystem-visual {
    min-height: 100vh;
    width: 100%;
    padding: var(--header-height-desktop) 5vw 2rem 5vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #0A2E20;
    color: #FFFFFF;
}
.ecosystem-content { padding-top: 5vh; }
.ecosystem-content h1 { font-size: clamp(3.5rem, 10vw, 6rem); font-weight: 700; line-height: 1.1; margin-bottom: 2rem; }
.ecosystem-content p { font-size: clamp(1rem, 3vw, 1.25rem); line-height: 1.6; max-width: 45ch; color: rgba(255, 255, 255, 0.9); }
.ecosystem-content p a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; opacity: 0.7; transition: opacity 0.3s ease; }
.ecosystem-content p a:hover { opacity: 1; }
.ecosystem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; width: 100%; max-width: 500px; margin: 2rem auto 0; }
.eco-block { aspect-ratio: 1 / 1; border-radius: 20%; opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.hero-ecosystem-visual.is-loaded .eco-block { opacity: 1; transform: translateY(0); }
.eco-block:nth-child(-n+4) { background-color: #104531; }
.eco-block:nth-child(n+5):nth-child(-n+8) { background-color: #16A34A; }
.eco-block:nth-child(n+9):nth-child(-n+12) { background-color: #22C55E; }
.eco-block:nth-child(n+13) { background-color: #F3F4F6; }

/* === FIX: STICKY BEHAVIOR AND LAYOUT === */
.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.partners-filters-sticky-wrapper {
    position: sticky;
    top: var(--header-height-desktop); /* Stick below the main header */
    z-index: 500;
    background-color: #f7f7f7;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}
.partners-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #111;
}
.partners-count { font-size: 1.5rem; font-weight: 600; }
.filter-dropdown, .filter-chains, .filter-search {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.filter-dropdown-toggle {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}
.filter-dropdown-toggle span { flex-grow: 1; }
.filter-dropdown-toggle .chevron { margin-left: auto; }
.filter-chains { flex-wrap: wrap; }
.chain-logo { width: 16px; height: 16px; }
.chain-more { color: #666; }
.filter-search input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    font-family: 'Albert Sans', sans-serif;
}
.filter-search svg { color: #666; }

/* === FIX: NEW GRID SECTION === */
.partners-grid-section {
    padding: 3rem 0;
    background-color: #f7f7f7;
}
.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.partner-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.partner-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.partner-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    box-shadow: 0 0 0 8px #f7f7f7;
}
.partner-name { font-size: 1.25rem; font-weight: 600; margin: 0; }
.partner-category { font-size: 1rem; color: #666; margin: 0; }

@media (max-width: 767px) {
    .ecosystem-grid { gap: 0.5rem; }
    .partners-grid { grid-template-columns: 1fr; }
    .hero-ecosystem-visual { padding-bottom: 1rem; }
    .partners-filters-sticky-wrapper {
        top: var(--header-height-mobile); /* Adjust for mobile header */
    }
}