/* Mutual Funds Pakistan public theme (v2026-04-08.1) */
:root {
    --mfp-primary: #0b5ed7;
    --mfp-primary-dark: #084298;
    --mfp-accent: #198754;
    --mfp-bg: #f4f7fb;
    --mfp-surface: #ffffff;
    --mfp-text: #1f2937;
    --mfp-muted: #6b7280;
    --mfp-border: #dbe3ef;
    --mfp-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body {
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--mfp-text);
    background: linear-gradient(180deg, #f8fbff 0%, var(--mfp-bg) 100%);
}

a {
    color: #0a58ca;
}

a:hover {
    color: #084298;
}

.text-muted {
    color: #4b5563 !important;
}

.mfp-skip-link {
    position: absolute;
    left: 0.75rem;
    top: -4rem;
    z-index: 1100;
    background: #ffffff;
    color: #0b5ed7;
    border: 2px solid #0b5ed7;
    border-radius: 0.4rem;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.mfp-skip-link:focus {
    top: 0.75rem;
}

.navbar.mfp-navbar {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.93);
    border-bottom: 1px solid var(--mfp-border);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.navbar .nav-link {
    color: #334155;
    font-weight: 500;
    border-radius: 999px;
    padding-inline: 0.9rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    color: var(--mfp-primary-dark);
    background-color: rgba(13, 110, 253, 0.12);
}

.mfp-page {
    min-height: calc(100vh - 136px);
}

.mfp-surface {
    background: var(--mfp-surface);
    border: 1px solid var(--mfp-border);
    border-radius: 16px;
    box-shadow: var(--mfp-shadow);
}

.card,
.table,
.alert,
.pagination {
    border-color: var(--mfp-border);
}

.card {
    border: 1px solid var(--mfp-border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--mfp-primary) 0%, #2f7ff0 100%);
    border-color: var(--mfp-primary);
    box-shadow: 0 8px 16px rgba(13, 110, 253, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--mfp-primary-dark) 0%, #1c6ce0 100%);
    border-color: var(--mfp-primary-dark);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(11, 94, 215, 0.35);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.2rem rgba(11, 94, 215, 0.18) !important;
}

.mfp-footer {
    border-top: 1px solid var(--mfp-border);
    background: rgba(255, 255, 255, 0.8);
}

.mfp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(25, 135, 84, 0.25);
    border-radius: 999px;
    background: rgba(25, 135, 84, 0.1);
    color: #166534;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1px;
}

@media (max-width: 991.98px) {
    .navbar .nav-link {
        border-radius: 8px;
        margin-bottom: 0.25rem;
    }
}

.mfp-hero {
    padding: 1.8rem;
    border: 1px solid var(--mfp-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.14), rgba(13, 110, 253, 0) 45%),
        radial-gradient(circle at bottom left, rgba(25, 135, 84, 0.1), rgba(25, 135, 84, 0) 48%),
        #ffffff;
}

.mfp-eyebrow {
    display: inline-block;
    background: rgba(11, 94, 215, 0.1);
    color: var(--mfp-primary-dark);
    border: 1px solid rgba(11, 94, 215, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mfp-highlight-card {
    border: 1px solid var(--mfp-border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.mfp-hero-media {
    margin: 0;
    border: 1px solid var(--mfp-border);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(160deg, #f8fbff, #eef4ff);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.mfp-hero-media img {
    display: block;
    width: 100%;
    height: auto;
}

.mfp-hero-caption {
    margin: 0;
    padding: 0.6rem 0.85rem;
    font-size: 0.84rem;
    color: #334155;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid var(--mfp-border);
}

.mfp-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.68rem;
    border: 1px solid #c6d8f7;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.mfp-quick-banner {
    border: 1px dashed #c8d8f5;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    padding: 0.85rem 0.9rem;
}

.mfp-quick-banner-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.25px;
    text-transform: uppercase;
    color: #334155;
}

.mfp-quick-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.58rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d6e3f7;
    color: #1e3a8a;
    font-size: 0.78rem;
}

.mfp-stat-label {
    margin-bottom: 0.2rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: var(--mfp-muted);
}

.mfp-stat-value {
    margin-bottom: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--mfp-text);
}

.mfp-stat-date {
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.mfp-featured-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mfp-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.09);
}

.mfp-stable-card {
    min-height: 290px;
}

.mfp-filter-panel {
    border-style: dashed;
    border-width: 1px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.mfp-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(11, 94, 215, 0.25);
    border-radius: 999px;
    background: rgba(11, 94, 215, 0.08);
    color: #0c4eb6;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

.mfp-funds-table-wrap {
    border: 1px solid var(--mfp-border);
    border-radius: 14px;
    background: #fff;
}

.mfp-funds-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f2f6fc;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: #475569;
}

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


/* marker class for cache verification */
.mfp-cache-marker-20260408-1 { content: '2026-04-08.1'; }

.mfp-fund-hero {
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--mfp-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.mfp-kpi-card {
    border: 1px solid var(--mfp-border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.mfp-kpi-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: var(--mfp-muted);
    margin-bottom: 0.35rem;
}

.mfp-kpi-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.mfp-fund-nav-table-wrap {
    border: 1px solid var(--mfp-border);
    border-radius: 12px;
    background: #fff;
}

.mfp-fund-nav-table thead th {
    background: #f3f7fc;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: #475569;
}

.mfp-compare-form {
    border: 1px dashed var(--mfp-border);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.mfp-compare-fund-card {
    border: 1px solid var(--mfp-border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.mfp-compare-table-wrap {
    border: 1px solid var(--mfp-border);
    border-radius: 12px;
    background: #fff;
}

.mfp-compare-table thead th {
    background: #f3f7fc;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: #475569;
}

.mfp-compare-better {
    background: rgba(25, 135, 84, 0.12);
    color: #166534;
    font-weight: 600;
}

.mfp-compare-weaker {
    background: rgba(220, 53, 69, 0.08);
    color: #7f1d1d;
}

.mfp-blog-list {
    max-width: 900px;
}

.mfp-blog-card {
    border: 1px solid var(--mfp-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.mfp-blog-card-body {
    padding: 1.1rem 1.15rem;
}

.mfp-blog-meta {
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--mfp-muted);
    font-weight: 600;
}

.mfp-blog-link {
    text-decoration: none;
}

.mfp-blog-link:hover {
    text-decoration: underline;
}

.mfp-blog-excerpt {
    color: #374151;
    line-height: 1.6;
}

.mfp-article {
    max-width: 860px;
    margin: 0 auto;
}

.mfp-article-header {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--mfp-border);
}

.mfp-article-body {
    line-height: 1.75;
    color: #1f2937;
}

.mfp-article-body p,
.mfp-article-body ul,
.mfp-article-body ol,
.mfp-article-body blockquote {
    margin-bottom: 1rem;
}

.mfp-article-body h2,
.mfp-article-body h3,
.mfp-article-body h4 {
    margin: 1.5rem 0 0.75rem;
    line-height: 1.3;
}

.mfp-article-body img,
.mfp-article-body table {
    max-width: 100%;
}

.mfp-section-head {
    margin-bottom: 0.35rem;
}

.mfp-detail-section .card-body {
    padding-top: 1rem;
}

.mfp-skeleton-card {
    height: 180px;
    border: 1px solid var(--mfp-border);
    border-radius: 14px;
    background: linear-gradient(90deg, #f4f7fc 25%, #eef3fb 37%, #f4f7fc 63%);
    background-size: 400% 100%;
    animation: mfp-shimmer 1.4s ease infinite;
}

@keyframes mfp-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}

@media (max-width: 767.98px) {
    .mfp-hero {
        padding: 1.25rem;
    }

    .mfp-filter-panel .row > [class*="col-"],
    .mfp-compare-form .row > [class*="col-"] {
        width: 100%;
    }

    .mfp-funds-table-wrap,
    .mfp-compare-table-wrap {
        border: 0;
        background: transparent;
    }

    .mfp-funds-table thead,
    .mfp-compare-table thead {
        display: none;
    }

    .mfp-funds-table tbody tr,
    .mfp-compare-table tbody tr {
        display: block;
        border: 1px solid var(--mfp-border);
        border-radius: 12px;
        margin-bottom: 0.75rem;
        background: #fff;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    }

    .mfp-funds-table tbody td,
    .mfp-compare-table tbody th,
    .mfp-compare-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: start;
        gap: 0.75rem;
        padding: 0.6rem 0.85rem;
        border: 0;
        text-align: left !important;
    }

    .mfp-funds-table tbody td::before {
        content: attr(data-label);
        font-size: 0.74rem;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        color: var(--mfp-muted);
        font-weight: 600;
        flex: 0 0 5.5rem;
    }

    .mfp-compare-table tbody td::before {
        content: attr(data-label);
        font-size: 0.74rem;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        color: var(--mfp-muted);
        font-weight: 600;
        flex: 0 0 7rem;
    }

    .mfp-funds-table tbody td:last-child {
        justify-content: flex-end;
    }

    .mfp-compare-table tbody th {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.35px;
        color: var(--mfp-muted);
        border-bottom: 1px solid var(--mfp-border);
        border-radius: 12px 12px 0 0;
        background: #f8fbff;
    }

    .mfp-blog-card-body {
        padding: 1rem;
    }

    .mfp-article-body {
        line-height: 1.68;
    }

    .mfp-stable-card {
        min-height: 250px;
    }

    .mfp-skeleton-card {
        height: 140px;
    }
}
