/* ── Hero ─────────────────────────────────────────────── */
.mou-hero {
    background: linear-gradient(135deg, #010180 0%, #000066 60%, #03036e 100%);
    padding: 70px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.mou-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.mou-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    position: relative;
}
.mou-hero .hero-sub {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 28px;
    position: relative;
    line-height: 1.65;
}
.mou-hero .hero-divider {
    width: 56px;
    height: 4px;
    background: rgba(255,255,255,0.45);
    border-radius: 2px;
    margin: 14px auto 20px;
    position: relative;
}

/* ── Search bar (inside hero) ─────────────────────────── */
.search-wrap {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}
.search-wrap .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
}
#partnerSearch {
    width: 100%;
    padding: 15px 48px 15px 50px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    outline: none;
    color: #1a202c;
    transition: box-shadow 0.2s;
}
#partnerSearch:focus {
    box-shadow: 0 6px 32px rgba(0,0,0,0.26);
}
#clearSearch {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: none;
    color: #9ca3af;
    transition: color 0.2s;
}
#clearSearch:hover { color: #374151; }
#clearSearch svg { width: 18px; height: 18px; }

/* ── Counter badge ────────────────────────────────────── */
.partners-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 10px;
}
.result-count {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}
.result-count span {
    color: #010180;
    font-weight: 700;
}

/* ── Grid ─────────────────────────────────────────────── */
.mou-section {
    padding: 52px 0 80px;
    background: #f7f8fc;
}
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 24px;
}

/* ── Card ─────────────────────────────────────────────── */
.partner-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 14px rgba(1,1,128,0.07);
    padding: 30px 22px 22px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border: 1.5px solid transparent;
}
.partner-card.hidden {
    display: none;
}
.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(1,1,128,0.14);
    border-color: rgba(1,1,128,0.12);
    color: inherit;
    text-decoration: none;
}
.partner-logo-wrap {
    width: 112px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.partner-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(15%);
    transition: filter 0.25s;
}
.partner-card:hover .partner-logo-wrap img {
    filter: grayscale(0%);
}
.partner-initials {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: #eff0fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #010180;
}
.partner-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a202c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}
.partner-link-icon {
    margin-top: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eff0fb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}
.partner-card:hover .partner-link-icon { background: #010180; }
.partner-link-icon svg { width: 15px; height: 15px; stroke: #010180; transition: stroke 0.2s; }
.partner-card:hover .partner-link-icon svg { stroke: #fff; }

/* ── No results ───────────────────────────────────────── */
#noResults {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    grid-column: 1 / -1;
}
#noResults svg {
    width: 52px;
    height: 52px;
    stroke: #d1d5db;
    display: block;
    margin: 0 auto 16px;
}
#noResults p { font-size: 1rem; margin: 0; }
#noResults strong { color: #374151; }

@media (max-width: 576px) {
    .mou-hero h1 { font-size: 2rem; }
    .partners-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
}
