/* Template 007: Fpfcorp editorial refresh. Keep legacy article-page selectors intact. */
.template-007 {
    --brand: #303f86;
    --accent: #ed5b25;
    --ink: #182238;
    --muted: #667085;
    --line: #e3e7ef;
    --surface: #edf0f7;
    color: var(--ink);
    background: #fff;
    font-family: "Avenir Next", "Segoe UI", "PingFang SC", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
.template-007 h1, .template-007 h2, .template-007 h3,
.template-007 h4, .template-007 h5, .template-007 h6 {
    font-family: inherit;
    color: var(--ink);
    line-height: 1.3;
    font-weight: 700;
}
.template-007 a { color: var(--brand); transition: color .18s ease, background-color .18s ease; }
.template-007 a:hover { color: #202d65; }
.template-007 a:focus-visible, .template-007 button:focus-visible,
.template-007 input:focus-visible, .template-007 summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.template-007 .container { width: min(100%, 1232px); padding-left: 28px; padding-right: 28px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 108px; }
.site-brand { display: block; flex: 0 1 auto; max-width: 280px; color: var(--ink); }
.site-brand h1 { padding: 0; margin: 0; font-size: 30px; line-height: 1.2; }
.site-brand img { display: block; width: auto; height: auto; max-width: 230px; max-height: 64px; object-fit: contain; }
.site-utilities { display: flex; align-items: center; gap: 26px; }
.site-utility-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; list-style: none; padding: 0; margin: 0; }
.site-utility-links a { color: var(--muted); font-size: 12px; }
.site-search-link { display: grid; place-items: center; width: 38px; height: 38px; border-left: 1px solid var(--line); }
.site-menu-toggle { display: none; }
.site-navigation.collapse { display: block; height: auto !important; }
.site-navigation ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0 30px; padding: 0; margin: 0; list-style: none; }
.site-navigation a { position: relative; display: block; padding: 17px 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.site-navigation a[aria-current="page"] { color: var(--brand); }
.site-navigation a[aria-current="page"]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: var(--accent); }
.site-language { position: relative; color: var(--muted); font-size: 12px; }
.site-language summary { cursor: pointer; white-space: nowrap; }
.site-language summary i { margin-right: 4px; }
.site-language-options { position: absolute; right: 0; top: calc(100% + 12px); z-index: 20; padding: 8px; width: 180px; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 12px 30px #18223812; }
.site-language-options a { display: block; padding: 8px 10px; color: var(--ink); }
.site-language-options a:hover { background: var(--surface); }
.home-page { padding-top: 32px; }
.home-feature { overflow: hidden; background: var(--surface); border-radius: 10px; }
.home-feature .carousel-inner > .item { margin: 0; padding: 0; }
.feature-layout { display: grid; grid-template-columns: 48% 52%; min-height: 426px; }
.feature-copy { align-self: center; padding: 44px 40px 84px; }
.feature-copy h2 { font-size: clamp(27px, 2.65vw, 37px); letter-spacing: -.035em; line-height: 1.17; margin: 0 0 22px; overflow-wrap: anywhere; }
.feature-copy h2 a { color: var(--ink); }
.feature-copy h2 a:hover { color: var(--brand); }
.feature-copy p { font-size: 15px; line-height: 1.65; color: #525d73; margin: 0 0 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feature-read { display: inline-flex; align-items: center; min-height: 42px; padding: 10px 20px; border-radius: 4px; background: var(--brand); color: #fff !important; font-size: 12px; font-weight: 700; text-transform: none; }
.feature-read:hover { background: #202d65; }
.feature-image { display: flex; align-items: center; justify-content: center; min-width: 0; background: #e2e7f1; padding: 24px; }
.feature-image img { display: block; width: 100%; height: 378px; object-fit: contain; }
.feature-controls { position: absolute; bottom: 22px; left: 40px; display: flex; align-items: center; gap: 14px; }
.feature-control { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #bdc5d7; border-radius: 50%; background: transparent; color: var(--ink); font-size: 22px; line-height: 1; }
.feature-control:hover { background: #fff; }
.feature-count { color: #525d73; font-size: 12px; font-variant-numeric: tabular-nums; }
.home-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 46px; }
.home-latest, .home-sidebar { min-width: 0; }
.home-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 15px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.home-section-heading h2, .home-search h2 { font-size: 23px; letter-spacing: -.025em; margin: 0; }
.home-section-heading > a { font-size: 12px; text-transform: capitalize; white-space: nowrap; }
.home-section-heading > a i { margin-left: 6px; }
.home-article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
.home-article { min-width: 0; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.article-image { display: block; overflow: hidden; background: var(--surface); border-radius: 6px; aspect-ratio: 8 / 5; }
.article-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-copy { padding-top: 15px; }
.article-category { display: inline-block; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.home-article h3 { font-size: 20px; letter-spacing: -.025em; line-height: 1.4; margin: 0 0 11px; overflow-wrap: anywhere; }
.home-article h3 a, .popular-article h3 a { color: var(--ink); }
.home-article h3 a:hover, .popular-article h3 a:hover { color: var(--brand); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.article-meta i { margin-right: 3px; }
.article-copy > p { font-size: 13px; line-height: 1.75; color: var(--muted); margin: 12px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-sidebar > section { margin-bottom: 34px; }
.home-search { background: var(--surface); padding: 22px; border-radius: 6px; }
.home-search h2 { font-size: 19px; margin-bottom: 14px; }
.home-search label { font-weight: 700; margin: 0; }
.home-search form { display: flex; border: 1px solid #ccd2e0; border-radius: 4px; background: #fff; }
.home-search input { width: 100%; min-width: 0; height: 43px; border: 0; padding: 0 10px; background: transparent; color: var(--ink); font-family: inherit; font-size: 12px; }
.home-search button { flex: 0 0 40px; border: 0; background: transparent; color: var(--brand); }
.home-search input::placeholder { color: var(--muted); }
.home-sidebar .home-section-heading { margin-bottom: 0; }
.home-sidebar .home-section-heading h2 { font-size: 20px; }
.popular-article { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: start; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.popular-article::before, .popular-article::after { display: none; }
.popular-image { display: block; width: 76px; height: 62px; overflow: hidden; border-radius: 4px; background: var(--surface); }
.popular-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.popular-article h3 { font-size: 13px; line-height: 1.5; margin: 0 0 7px; overflow-wrap: anywhere; }
.popular-article .article-meta { display: block; font-size: 10px; }
.home-topics ul, .home-links ul { list-style: none; margin: 0; padding: 0; }
.home-topics a { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; }
.home-topics i { color: var(--muted); }
.home-links li { padding: 8px 0; font-size: 12px; overflow-wrap: anywhere; }
.home-empty { color: var(--muted); padding: 24px 0; }
.template-007 .site-footer { margin-top: 64px; background: #f7f8fb; color: var(--muted); border-top: 1px solid var(--line); padding: 28px 0; }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; }
.site-footer-inner p { margin: 0; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.site-footer-links a { color: var(--muted); }
.site-back-top { flex-shrink: 0; }
.site-back-top i { margin-left: 8px; }
/* Shared chrome also applies to archive and detail pages. */
.template-007 #page-content:not(.home-page) .box, .template-007 #page-content .widget { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 20px; }
.template-007 .single-page .box > h1 { font-size: clamp(27px, 3vw, 38px); line-height: 1.25; }
.template-007 .single-page .box > .info { margin: 16px 0 28px; }
.template-007 .single-page .box p { line-height: 1.85; }
.template-007 .single-page .box { overflow-wrap: anywhere; }
.template-007 .single-page .box img { max-width: 100%; height: auto; }
@media (max-width: 1050px) {
    .site-utility-links { gap: 8px 14px; }
    .site-utilities { gap: 18px; }
    .site-navigation ul { gap: 0 24px; }
    .site-navigation a { font-size: 13px; }
    .feature-layout { min-height: 370px; }
    .feature-copy { padding: 32px 30px 72px; }
    .feature-copy h2 { font-size: 29px; }
    .feature-image img { height: 322px; }
    .feature-controls { left: 30px; }
    .home-content-grid { gap: 28px; grid-template-columns: minmax(0, 1fr) 270px; }
    .home-article-grid { gap: 28px 20px; }
    .home-article h3 { font-size: 18px; }
}
@media (max-width: 850px) {
    .site-utility-links { display: none; }
    .home-content-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .home-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
    .home-sidebar > section { margin: 0; }
    .home-search { grid-column: 1 / -1; }
    .home-sidebar .home-links { grid-column: 1 / -1; }
    .feature-layout { grid-template-columns: 50% 50%; }
    .feature-copy h2 { font-size: 26px; }
    .feature-image { padding: 15px; }
}
@media (max-width: 600px) {
    .template-007 .container { padding-left: 20px; padding-right: 20px; }
    .site-masthead { min-height: 84px; gap: 12px; }
    .site-brand { max-width: 170px; }
    .site-brand img { max-width: 170px; max-height: 48px; }
    .site-brand h1 { font-size: 24px; }
    .site-utilities { margin-left: auto; gap: 10px; }
    .site-language summary { font-size: 0; }
    .site-language summary i { font-size: 18px; }
    .site-language summary::marker { font-size: 10px; }
    .site-search-link { display: none; }
    .site-menu-toggle { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font-size: 18px; }
    .site-navigation.collapse { display: none; }
    .site-navigation.collapse.in { display: block; }
    .site-navigation ul { display: block; padding-bottom: 14px; }
    .site-navigation a { padding: 10px 0; font-size: 14px; }
    .site-navigation a[aria-current="page"]::after { display: none; }
    .home-page { padding-top: 20px; }
    .home-feature { border-radius: 7px; }
    .feature-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .feature-image { grid-row: 1; padding: 12px 20px; }
    .feature-image img { height: 220px; }
    .feature-copy { padding: 26px 24px 72px; }
    .feature-copy h2 { font-size: 26px; margin-bottom: 18px; }
    .feature-copy p { font-size: 13px; margin-bottom: 20px; }
    .feature-controls { left: 24px; bottom: 20px; }
    .home-content-grid { padding-top: 32px; }
    .home-section-heading h2 { font-size: 22px; }
    .home-article-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .home-article h3 { font-size: 21px; }
    .article-copy > p { font-size: 14px; }
    .home-sidebar { grid-template-columns: minmax(0, 1fr); }
    .home-sidebar .home-search, .home-sidebar .home-links { grid-column: auto; }
    .popular-article { grid-template-columns: 90px minmax(0, 1fr); }
    .popular-image { width: 90px; height: 70px; }
    .popular-article h3 { font-size: 14px; }
    .site-footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .template-007 .site-footer { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .template-007 *, .template-007 *::before, .template-007 *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
