/* Content Hub — loaded AFTER front styles to win cascade */

body.body_theme5 .t5-mega-nav__trigger {
    background: transparent !important;
    border: 0 !important;
    cursor: pointer;
    font: inherit;
    text-transform: none !important;
}

body.body_theme5 .t5-mega-nav__panel--sections {
    width: min(420px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
}

body.body_theme5 .t5-mega-nav__panel--sections .t5-mega-nav__panel-inner {
    overflow: hidden;
}

body.body_theme5 .t5-mega-nav__panel--sections .t5-mega-nav__head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: start !important;
    direction: inherit;
}

body.body_theme5 .t5-mega-nav__panel--sections .t5-mega-nav__eyebrow,
body.body_theme5 .t5-mega-nav__panel--sections .t5-mega-nav__subtitle {
    text-transform: none !important;
    text-align: start !important;
}

body.body_theme5 .t5-mega-nav__sections {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 12px !important;
    margin: 0 !important;
    max-height: min(70vh, 520px);
    overflow-x: hidden !important;
    overflow-y: auto !important;
    list-style: none !important;
}

body.body_theme5 a.t5-mega-nav__section-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(20, 33, 171, 0.08) !important;
    background: #fff !important;
    text-decoration: none !important;
    color: #1f2937 !important;
    text-transform: none !important;
    box-sizing: border-box !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body.body_theme5 a.t5-mega-nav__section-card:hover,
body.body_theme5 a.t5-mega-nav__section-card:focus-visible {
    background: rgba(20, 33, 171, 0.05) !important;
    border-color: rgba(20, 33, 171, 0.18) !important;
    box-shadow: 0 6px 18px rgba(20, 33, 171, 0.08);
    outline: none;
}

body.body_theme5 .t5-mega-nav__section-thumb {
    display: block !important;
    flex: 0 0 52px !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #f3f4f6 !important;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

body.body_theme5 .t5-mega-nav__section-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
}

body.body_theme5 .t5-mega-nav__section-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 2px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    text-align: start !important;
}

body.body_theme5 .t5-mega-nav__section-title {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #111827 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.body_theme5 .t5-mega-nav__section-sub {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    color: #6b7280 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.body_theme5 .t5-mega-nav__section-arrow {
    flex: 0 0 auto !important;
    color: #9ca3af !important;
    font-size: 0.75rem !important;
}

body.body_theme5 a.t5-mega-nav__section-card:hover .t5-mega-nav__section-arrow {
    color: #1421AB !important;
}

/* Explore landing */
body.body_theme5 .t5-explore {
    padding: 28px 0 48px;
}

body.body_theme5 .t5-explore__header {
    margin-bottom: 28px;
}

body.body_theme5 .t5-explore__hero {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 18px;
    background: #eef1f6;
}

body.body_theme5 .t5-explore__hero img {
    display: block;
    width: 100%;
    height: min(240px, 40vw);
    object-fit: cover;
}

body.body_theme5 .t5-explore__title {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    color: #111827;
    text-transform: none !important;
}

body.body_theme5 .t5-explore__subtitle {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 1rem;
    max-width: 40rem;
    text-transform: none !important;
}

body.body_theme5 .t5-explore__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (min-width: 768px) {
    body.body_theme5 .t5-explore__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }
}

@media (min-width: 1100px) {
    body.body_theme5 .t5-explore__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

body.body_theme5 a.t5-explore-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    background: #fff !important;
    text-decoration: none !important;
    color: inherit !important;
    text-transform: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.body_theme5 a.t5-explore-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

body.body_theme5 .t5-explore-card__media {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 1 / 1;
    background: #f3f4f6;
    overflow: hidden;
}

body.body_theme5 .t5-explore-card__media img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body.body_theme5 .t5-explore-card__body {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 14px !important;
    text-align: start !important;
}

body.body_theme5 .t5-explore-card__title {
    display: block !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    color: #111827 !important;
    text-transform: none !important;
}

body.body_theme5 .t5-explore-card__excerpt {
    display: block !important;
    font-size: 0.8125rem !important;
    color: #6b7280 !important;
    line-height: 1.45 !important;
    text-transform: none !important;
}

body.body_theme5 .t5-explore__empty {
    text-align: center;
    padding: 48px 16px;
    color: #6b7280;
}

/* Explore detail */
body.body_theme5 .t5-explore-detail {
    padding: 28px 0 56px;
}

body.body_theme5 .t5-explore-detail__layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    align-items: start !important;
}

@media (min-width: 992px) {
    body.body_theme5 .t5-explore-detail__layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
        gap: 36px !important;
    }
}

body.body_theme5 .t5-explore-detail__media {
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

body.body_theme5 .t5-explore-detail__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
}

body.body_theme5 .t5-explore-detail__eyebrow {
    margin: 0 0 8px;
    color: #1421AB;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: none !important;
}

body.body_theme5 .t5-explore-detail__title {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    color: #111827;
    text-transform: none !important;
}

body.body_theme5 .t5-explore-detail__content {
    margin-top: 16px;
    color: #374151;
    line-height: 1.75;
    text-transform: none !important;
}

body.body_theme5 .t5-explore-detail__content p {
    margin-bottom: 0.85rem;
    text-transform: none !important;
}

body.body_theme5 a.t5-explore-detail__back {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 24px !important;
    font-weight: 600 !important;
    color: #1421AB !important;
    text-decoration: none !important;
    text-transform: none !important;
}
