/* ══════════════════════════════════════════════════════════════════
   HEADER-NEW.CSS
   Styles for the simplified 5-group navigation (Platform / Solutions /
   Governance / Ecosystem / Build), added per client feedback point #2
   ("Simplify the navigation dramatically").

   This file is intentionally separate from style.css / responsive.css:
   if the new header design is not approved, restore the previous
   includes/header.php and simply remove the <link> to this file -
   nothing in style.css or responsive.css needs to be touched.
   ══════════════════════════════════════════════════════════════════ */

/* ── Solutions mega-menu: audience card grid (all 5 in one row) ──── */
.mm-solutions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .9rem;
}

.mm-solution-card {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1rem;
    border: 1px solid #E4EEF8;
    border-radius: 12px;
    color: inherit;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.mm-solution-card:hover {
    box-shadow: 0 4px 16px rgba(36, 125, 198, .1);
    transform: translateY(-2px);
    border-color: var(--PrimaryColor);
    color: inherit;
}

.mm-solution-card .mm-solution-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #EAF3FC;
    color: var(--PrimaryColor);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mm-solution-card .mm-solution-icon svg {
    width: 18px;
    height: 18px;
}

.mm-solution-card h5 {
    font-size: .9rem;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
}

.mm-solution-card p {
    font-size: .78rem;
    line-height: 1.45;
    color: #6b7280;
    margin: 0;
}

/* ── Slightly wider panel for the 3-col Solutions card grid ──────── */
.mm-panel--solutions .container {
    max-width: 1140px;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .mm-solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .mm-solutions-grid {
        grid-template-columns: 1fr;
    }

    .mm-solution-card {
        padding: .85rem;
    }
}

/* ── Solutions panel: link to the full Services Directory ────────── */
.mm-solutions-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid #E4EEF8;
    font-size: .85rem;
    font-weight: 600;
    color: var(--PrimaryColor);
}

.mm-solutions-more:hover {
    color: var(--PrimaryColor);
    text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════════
   SERVICES DIRECTORY PAGE (pages/services-directory.php)
   Part of the same navigation-simplification work - the full service
   catalog moved out of the header dropdown onto its own searchable page.
   ══════════════════════════════════════════════════════════════════ */

.service-directory-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: #F8FAFC;
    border: 1px solid #E4EEF8;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.service-directory-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    flex: 1 1 auto;
    justify-content: flex-end;
}

.service-directory-count {
    font-size: .88rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 1.1rem;
}

.service-directory-count #service_total_result {
    color: var(--PrimaryColor);
    font-weight: 700;
}

.service-directory-pill {
    border: 1px solid #dfe3e8;
    background: #fff;
    color: #374151;
    font-size: .82rem;
    font-weight: 600;
    padding: .5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.service-directory-pill:hover {
    border-color: var(--PrimaryColor);
}

.service-directory-pill.active {
    background: var(--PrimaryColor);
    border-color: var(--PrimaryColor);
    color: var(--WhiteColor);
}

.service-directory-category {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--PrimaryColor);
    margin-bottom: .3rem;
}

.service-directory-desc {
    font-size: .78rem;
    line-height: 1.45;
    color: #6b7280;
    margin: .35rem 0 0;
}

.service-directory-search {
    position: relative;
    flex: 1 1 260px;
    max-width: 380px;
    margin: 0;
}

/* Standalone search box reused on pages/digital-providers.php - centered, not inside a filter toolbar */
.service-directory-search.provider-search {
    flex: none;
    max-width: 480px;
    margin: 0 auto 1.75rem;
}

@media (max-width: 767px) {
    .service-directory-controls {
        /* flex-direction: column; */
        align-items: stretch;
        padding: 1rem;
    }

    .service-directory-search {
        max-width: 100%;
    }

    .service-directory-filters {
        justify-content: flex-start;
    }
}

.service-directory-search input {
    width: 100%;
    padding: .75rem 1rem .75rem 2.75rem;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    font-size: .95rem;
    color: var(--PrimaryColor);
}

.service-directory-search input:focus {
    outline: none;
    border-color: var(--PrimaryColor);
    box-shadow: 0 0 0 3px rgba(36, 125, 198, .12);
}

.service-directory-search svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
}

.service-directory-card {
    display: block;
    background: #fff;
    border: 1px solid #E4EEF8;
    border-radius: 14px;
    padding: 1.1rem;
    text-align: center;
    color: inherit;
    height: 100%;
    transition: box-shadow .2s, transform .2s;
}

.service-directory-card:hover {
    box-shadow: 0 4px 16px rgba(36, 125, 198, .1);
    transform: translateY(-2px);
    color: inherit;
}

.service-directory-title {
    font-size: .9rem;
    font-weight: 600;
    color: #1f2937;
}

/* ══════════════════════════════════════════════════════════════════
   MEETINGS HUB PAGE (pages/meetings.php)
   Card visuals match the existing Meetings mega-menu design
   (.event-img-bx in style.css) - reproduced here since those rules
   are scoped to .header-outer and don't apply outside the dropdown.
   ══════════════════════════════════════════════════════════════════ */

.meetings-hub-tabs {
    display: flex;
    gap: .5rem;
    border-bottom: 1px solid #E4EEF8;
    margin-bottom: 1.75rem;
}

.meetings-hub-tab {
    background: none;
    border: none;
    padding: .75rem 1.25rem;
    font-size: .9rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.meetings-hub-tab:hover {
    color: var(--PrimaryColor);
}

.meetings-hub-tab.active {
    color: var(--PrimaryColor);
    border-bottom-color: var(--PrimaryColor);
}

.meetings-hub-card {
    display: block;
    color: #374151;
}

.meetings-hub-card:hover {
    color: var(--PrimaryColor);
}

.meetings-hub-thumb {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: .75rem;
    aspect-ratio: 16 / 10;
    background: #eef2f6;
}

.meetings-hub-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .2s ease;
}

.meetings-hub-card:hover .meetings-hub-thumb img {
    transform: scale(1.04);
}

.meetings-hub-title {
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.35;
}

