.f2m-directory {
    --f2m-blue: #2563eb;
    --f2m-blue-dark: #1e3a8a;
    --f2m-navy: #071330;
    --f2m-text: #4b5563;
    --f2m-muted: #6b7280;
    --f2m-bg: #f4f7fb;
    --f2m-white: #ffffff;
    --f2m-border: #dbe5f1;
    --f2m-shadow: 0 24px 70px rgba(7, 19, 48, 0.10);

    width: 100%;
    color: var(--f2m-text);
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.6;
}

.f2m-directory *,
.f2m-directory *::before,
.f2m-directory *::after {
    box-sizing: border-box;
}

.f2m-directory img {
    max-width: 100%;
    height: auto;
}

.f2m-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.f2m-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 44px;
    align-items: center;
    padding: 48px;
    background: var(--f2m-white);
    border: 1px solid rgba(219, 229, 241, 0.9);
    border-radius: 30px;
    box-shadow: var(--f2m-shadow);
}

.f2m-logo-link {
    display: inline-flex;
    margin-bottom: 24px;
}

.f2m-logo,
.f2m-directory .custom-logo {
    display: block;
    width: 290px;
    max-height: 110px;
    object-fit: contain;
    object-position: left center;
}

.f2m-eyebrow,
.f2m-kicker {
    margin: 0 0 8px;
    color: var(--f2m-blue);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.f2m-hero h1 {
    margin: 0;
    color: var(--f2m-navy);
    font-size: clamp(2.6rem, 5vw, 4.55rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.f2m-hero h1 span {
    color: var(--f2m-blue);
}

.f2m-intro {
    max-width: 680px;
    margin: 22px 0 24px;
    color: var(--f2m-text);
    font-size: 1.04rem;
}

.f2m-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--f2m-blue);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
}

.f2m-status-dot {
    width: 9px;
    height: 9px;
    background: var(--f2m-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
}

.f2m-search-panel {
    position: relative;
    overflow: hidden;
    padding: 34px;
    color: var(--f2m-white);
    background: linear-gradient(135deg, #0f172a, var(--f2m-blue-dark));
    border-radius: 26px;
}

.f2m-search-panel::before {
    position: absolute;
    top: -110px;
    right: -90px;
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.f2m-search-panel > * {
    position: relative;
    z-index: 1;
}

.f2m-search-panel h2 {
    margin: 0 0 8px;
    color: var(--f2m-white);
    font-size: 1.65rem;
    line-height: 1.2;
}

.f2m-search-panel p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.78);
}

.f2m-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    color: #64748b;
    background: var(--f2m-white);
    border-radius: 14px;
}

.f2m-search-box:focus-within {
    outline: 3px solid rgba(147, 197, 253, 0.55);
}

.f2m-search-box input {
    width: 100%;
    min-height: 54px;
    padding: 0;
    color: var(--f2m-navy);
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
}

.f2m-search-feedback {
    min-height: 24px;
    margin: 12px 0 0 !important;
    font-size: 0.84rem;
}

.f2m-section {
    margin-top: 24px;
    padding: 38px;
    background: var(--f2m-white);
    border: 1px solid var(--f2m-border);
    border-radius: 26px;
    box-shadow: 0 16px 45px rgba(7, 19, 48, 0.06);
}

.f2m-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.f2m-heading h2 {
    margin: 0;
    color: var(--f2m-navy);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.15;
}

.f2m-count {
    margin: 0;
    color: var(--f2m-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.f2m-featured-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
    overflow: hidden;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 22px;
}

.f2m-featured-media {
    min-height: 320px;
    background: #eaf1fb;
}

.f2m-featured-media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.f2m-placeholder {
    display: grid;
    min-height: 320px;
    place-items: center;
    color: rgba(255,255,255,.85);
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    font-size: 2rem;
    font-weight: 700;
}

.f2m-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px;
}

.f2m-badge {
    align-self: flex-start;
    padding: 6px 10px;
    color: var(--f2m-blue);
    background: #dbeafe;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.f2m-featured-content h3 {
    margin: 16px 0 12px;
    color: var(--f2m-navy);
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    line-height: 1.08;
}

.f2m-featured-content h3 a {
    color: inherit;
    text-decoration: none;
}

.f2m-featured-content p {
    margin: 0;
}

.f2m-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
}

.f2m-card-footer time {
    color: var(--f2m-muted);
    font-size: 0.84rem;
}

.f2m-button,
.f2m-row-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--f2m-white) !important;
    background: var(--f2m-blue);
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 160ms ease, background 160ms ease;
}

.f2m-button {
    min-height: 46px;
    padding: 0 18px;
}

.f2m-button:hover,
.f2m-row-link:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.f2m-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--f2m-border);
    border-radius: 18px;
}

.f2m-table {
    width: 100%;
    border-collapse: collapse;
}

.f2m-table th,
.f2m-table td {
    padding: 17px 20px;
    text-align: left;
    border-bottom: 1px solid #e7edf5;
}

.f2m-table th {
    color: var(--f2m-muted);
    background: #f8fafc;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.f2m-table th:last-child,
.f2m-table td:last-child {
    text-align: right;
}

.f2m-table tbody tr {
    transition: background 150ms ease;
}

.f2m-table tbody tr:hover {
    background: #f8fbff;
}

.f2m-table tbody tr:last-child td {
    border-bottom: 0;
}

.f2m-product-name {
    color: var(--f2m-navy) !important;
    font-weight: 650;
    text-decoration: none !important;
}

.f2m-table time {
    color: var(--f2m-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.f2m-row-link {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.86rem;
}

.f2m-empty {
    padding: 32px;
    color: var(--f2m-muted);
    text-align: center;
}

.f2m-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 8px 10px;
    color: var(--f2m-muted);
    font-size: 0.84rem;
}

.f2m-footer div {
    display: flex;
    flex-direction: column;
}

.f2m-footer strong {
    color: var(--f2m-navy);
    font-size: 1rem;
}

.f2m-footer p {
    margin: 0;
}

@media (max-width: 900px) {
    .f2m-hero,
    .f2m-featured-card {
        grid-template-columns: 1fr;
    }

    .f2m-hero {
        padding: 30px;
    }

    .f2m-featured-media,
    .f2m-featured-media img,
    .f2m-placeholder {
        min-height: 260px;
    }
}

@media (max-width: 620px) {
    .f2m-hero,
    .f2m-section {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .f2m-search-panel,
    .f2m-featured-content {
        padding: 24px;
    }

    .f2m-logo,
    .f2m-directory .custom-logo {
        width: 225px;
    }

    .f2m-heading,
    .f2m-card-footer,
    .f2m-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .f2m-button {
        width: 100%;
    }

    .f2m-table th:nth-child(2),
    .f2m-table td:nth-child(2) {
        display: none;
    }

    .f2m-table th,
    .f2m-table td {
        padding: 14px;
    }
}
