/* ==========================================================================
   FBM — Khoa Quản trị Kinh doanh, Đại học Kinh tế Quốc dân
   Theme stylesheet (Bootstrap 5.3 layer)
   ========================================================================== */

:root {
    --fbm-primary: #007cba;
    --fbm-primary-dark: #005a87;
    --fbm-primary-light: #34e2e4;
    --fbm-blue: #006ba1;
    --fbm-red: #7a00df;
    --fbm-text: #333333;
    --fbm-muted: #777777;
    --fbm-border: #e3e3e3;
    --fbm-bg-soft: #ebebeb;
    --fbm-header-h: 150px;
    --fbm-container: 1250px;
    --fbm-radius: 4px;
    --fbm-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 5px 20px rgba(0, 0, 0, .06);
    --fbm-shadow-lg: 0 3px 8px rgba(0, 0, 0, .1), 0 10px 30px rgba(0, 0, 0, .12);

    /* Bootstrap overrides */
    --bs-primary: #007cba;
    --bs-primary-rgb: 0, 124, 186;
    --bs-link-color: #007cba;
    --bs-link-color-rgb: 0, 124, 186;
    --bs-link-hover-color: #005a87;
    --bs-border-radius: 4px;
    --bs-body-color: #333333;
    --bs-body-font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--bs-body-font-family);
    font-size: 15px;
    line-height: 1.6;
    color: var(--fbm-text);
    background: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #2b2b2b;
}

a {
    color: var(--fbm-primary);
    text-decoration: none;
    transition: color .18s ease;
}

a:hover {
    color: var(--fbm-primary-dark);
}

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

.container {
    max-width: var(--fbm-container);
}

.btn-primary {
    --bs-btn-bg: var(--fbm-primary);
    --bs-btn-border-color: var(--fbm-primary);
    --bs-btn-hover-bg: var(--fbm-primary-dark);
    --bs-btn-hover-border-color: var(--fbm-primary-dark);
    --bs-btn-active-bg: var(--fbm-primary-dark);
    --bs-btn-active-border-color: var(--fbm-primary-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--fbm-primary);
    --bs-btn-border-color: var(--fbm-primary);
    --bs-btn-hover-bg: var(--fbm-primary);
    --bs-btn-hover-border-color: var(--fbm-primary);
    --bs-btn-active-bg: var(--fbm-primary);
    --bs-btn-active-border-color: var(--fbm-primary);
}

/* "Xem thêm" pill button — khớp Flatsome .button.is-outline.lowercase */
.btn-more {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 2px solid var(--fbm-primary);
    color: var(--fbm-primary);
    background: transparent;
    border-radius: 10px;
    padding: .3rem .85rem;
    font-size: .8125rem;
    font-weight: 700;
    text-transform: lowercase;
    line-height: 1.7;
    transition: background .18s ease, color .18s ease;
}

.btn-more:hover {
    background: var(--fbm-primary);
    color: #fff;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1080;
    background: var(--fbm-primary);
    color: #fff;
    padding: .5rem 1rem;
}

.skip-link:focus {
    left: 0;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Header — logo trái, slogan giữa, biểu trưng NEU + cờ ngôn ngữ phải
   -------------------------------------------------------------------------- */

.site-header {
    background: #fff;
    position: relative;
    z-index: 30;
}

.header-main {
    min-height: var(--fbm-header-h);
    display: flex;
    align-items: center;
    padding: .75rem 0;
}

.header-logo img {
    max-height: 130px;
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
}

.header-slogan {
    text-align: center;
    line-height: 1.25;
}

.header-slogan .site-title {
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--fbm-blue);
    margin: 0;
}

.header-slogan .site-title-sub {
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--fbm-red);
    margin: 0;
}

.header-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem;
}

.header-emblem img {
    max-height: 130px;
    width: auto;
}

.header-divider {
    border-top: 1px solid var(--fbm-border);
}

/* --------------------------------------------------------------------------
   Navigation — thanh đỏ, chữ hoa, dropdown nhiều cấp
   -------------------------------------------------------------------------- */

.main-nav {
    background: var(--fbm-primary);
    position: relative;
    z-index: 40;
}

.main-nav .nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .nav-item {
    position: relative;
}

.main-nav .nav-item > a {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .8rem .85rem;
    color: #fff;
    font-size: .8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.3;
}

.main-nav .nav-item > a:hover,
.main-nav .nav-item.is-active > a {
    background: rgba(0, 0, 0, .18);
    color: #fff;
}

.main-nav .nav-item > a .bi {
    font-size: .7rem;
}

/* Dropdown */
.main-nav .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    border-top: 3px solid var(--fbm-primary);
    box-shadow: var(--fbm-shadow-lg);
    list-style: none;
    margin: 0;
    padding: .35rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 60;
}

.main-nav .nav-item:hover > .nav-dropdown,
.main-nav .nav-item:focus-within > .nav-dropdown,
.main-nav .nav-dropdown .has-children:hover > .nav-dropdown,
.main-nav .nav-dropdown .has-children:focus-within > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .nav-dropdown li {
    position: relative;
}

.main-nav .nav-dropdown a {
    display: block;
    padding: .5rem 1rem;
    font-size: .8125rem;
    font-weight: 500;
    color: #444;
    border-bottom: 1px solid #f1f1f1;
    line-height: 1.4;
}

.main-nav .nav-dropdown li:last-child > a {
    border-bottom: 0;
}

.main-nav .nav-dropdown a:hover {
    background: #f7f7f7;
    color: var(--fbm-primary);
}

/* Cấp 3 — mở sang phải */
.main-nav .nav-dropdown .nav-dropdown {
    top: -.35rem;
    left: 100%;
    border-top: 0;
    border-left: 3px solid var(--fbm-primary);
}

.main-nav .nav-dropdown .has-children > a::after {
    content: "\F285"; /* bi-chevron-right */
    font-family: "bootstrap-icons";
    float: right;
    font-size: .7rem;
    opacity: .6;
}

/* Dropdown sát mép phải lật ngược hướng */
.main-nav .nav-item:last-child .nav-dropdown,
.main-nav .nav-item.flip-left > .nav-dropdown {
    left: auto;
    right: 0;
}

.main-nav .nav-item.flip-left .nav-dropdown .nav-dropdown {
    left: auto;
    right: 100%;
    border-left: 0;
    border-right: 3px solid var(--fbm-primary);
}

/* Ô tìm kiếm trên thanh nav */
.nav-search {
    display: flex;
    align-items: center;
}

.nav-search .nav-search-toggle {
    background: none;
    border: 0;
    color: #fff;
    padding: .8rem .75rem;
    font-size: 1rem;
    line-height: 1;
}

.nav-search .nav-search-form {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    max-width: 90vw;
    background: #fff;
    border-top: 3px solid var(--fbm-primary);
    box-shadow: var(--fbm-shadow-lg);
    padding: .75rem;
    display: none;
    z-index: 60;
}

.nav-search.open .nav-search-form {
    display: block;
}

/* Mobile toggle */
.nav-toggle {
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    padding: .5rem .75rem;
}

/* Offcanvas mobile menu */
.mobile-menu .accordion-button {
    font-size: .875rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: .65rem .75rem;
    color: var(--fbm-text);
}

.mobile-menu .accordion-button:not(.collapsed) {
    background: rgba(0, 124, 186, .07);
    color: var(--fbm-primary);
    box-shadow: none;
}

.mobile-menu .accordion-button:focus {
    box-shadow: none;
    border-color: var(--fbm-border);
}

.mobile-menu .mobile-link {
    display: block;
    padding: .65rem .75rem;
    font-size: .875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--fbm-text);
    border-bottom: 1px solid var(--fbm-border);
}

.mobile-menu .mobile-sublink {
    display: block;
    padding: .45rem .75rem .45rem 1.5rem;
    font-size: .8125rem;
    color: #555;
    border-bottom: 1px solid #f2f2f2;
}

.mobile-menu .mobile-sublink.level-2 {
    padding-left: 2.5rem;
    font-size: .78rem;
    color: #777;
}

/* --------------------------------------------------------------------------
   Section titles — gạch ngang hai bên như Flatsome
   -------------------------------------------------------------------------- */

.section-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 1 1 auto;
    height: 2px;
    background: var(--fbm-border);
}

.section-title--left::before {
    display: none;
}

.section-title__text {
    flex: 0 0 auto;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--fbm-primary);
    letter-spacing: .01em;
    margin: 0;
}

.section-title--dark .section-title__text {
    color: var(--fbm-text);
}

/* --------------------------------------------------------------------------
   Trang chủ — slider
   -------------------------------------------------------------------------- */

.home-slider {
    padding: 15px 0;
}

.home-slider .swiper {
    --swiper-theme-color: #fff;
    --swiper-navigation-size: 20px;
}

.home-slider .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.home-slider .swiper-button-next,
.home-slider .swiper-button-prev {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .8);
    background: rgba(0, 0, 0, .15);
    transition: background .18s ease;
}

.home-slider .swiper-button-next:hover,
.home-slider .swiper-button-prev:hover {
    background: var(--fbm-primary);
    border-color: var(--fbm-primary);
}

.home-slider .swiper-pagination-bullet-active {
    background: #fff;
}

/* --------------------------------------------------------------------------
   Trang chủ — chương trình đào tạo
   -------------------------------------------------------------------------- */

.programs-section {
    padding: 30px 0;
}

.program-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-bottom: 10px solid var(--fbm-primary);
    box-shadow: var(--fbm-shadow);
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fbm-shadow-lg);
}

.program-card__title {
    font-size: .875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--fbm-text);
    padding: 1rem .75rem .5rem;
    margin: 0;
    line-height: 1.35;
}

.program-card__media {
    padding: 0 .75rem;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-card__media img {
    max-height: 190px;
    width: auto;
    object-fit: contain;
}

.program-card__subtitle {
    font-size: .75rem;
    color: var(--fbm-muted);
    padding: .5rem .75rem 1rem;
    margin: 0;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Trang chủ — tin tức (tabs) + sidebar
   -------------------------------------------------------------------------- */

.news-section {
    padding: 30px 0;
    background: #fff;
}

.news-tabs {
    border-bottom: 1px solid var(--fbm-border);
    gap: 0;
}

.news-tabs .nav-link {
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: var(--fbm-text);
    font-size: .8125rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: .6rem .9rem;
}

.news-tabs .nav-link:hover {
    color: var(--fbm-primary);
}

.news-tabs .nav-link.active {
    color: var(--fbm-primary);
    background: transparent;
    border-bottom-color: var(--fbm-primary);
}

/* Bài viết dạng hàng ngang */
.post-row {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.post-row:last-child {
    border-bottom: 0;
}

.post-row__media {
    flex: 0 0 22%;
    max-width: 22%;
}

.post-row__thumb {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 62%;
    overflow: hidden;
    background: #f4f4f4;
    border-radius: var(--fbm-radius);
}

.post-row__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.post-row:hover .post-row__thumb img {
    transform: scale(1.05);
}

.post-row__body {
    flex: 1 1 auto;
    min-width: 0;
}

.post-row__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 .35rem;
}

.post-row__title a {
    color: var(--fbm-text);
}

.post-row__title a:hover {
    color: var(--fbm-primary);
}

.post-row__meta {
    font-size: .75rem;
    color: var(--fbm-muted);
    opacity: .85;
    margin-bottom: .35rem;
}

.post-row__excerpt {
    font-size: .8125rem;
    color: #666;
    margin: 0;
}

.post-row__divider {
    height: 2px;
    background: var(--fbm-border);
    margin-top: .5rem;
    max-width: 30px;
}

/* Sidebar — thẻ ảnh nền có tiêu đề chồng lên */
.side-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--fbm-radius);
    background: #f4f4f4;
    margin-bottom: 1rem;
    box-shadow: var(--fbm-shadow);
}

.side-card__thumb {
    position: relative;
    padding-top: 56%;
}

.side-card__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.side-card:hover .side-card__thumb img {
    transform: scale(1.06);
}

.side-card__overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: .75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, 0));
    color: #fff;
}

.side-card__title {
    font-size: .8125rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Đối tác
   -------------------------------------------------------------------------- */

.partners-section {
    padding: 17px 0;
    background: var(--fbm-bg-soft);
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    padding: .75rem;
    background: #fff;
    border-radius: var(--fbm-radius);
    box-shadow: var(--fbm-shadow);
}

.partner-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .78;
    transition: filter .2s ease, opacity .2s ease;
}

.partner-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Page header / breadcrumb
   -------------------------------------------------------------------------- */

.page-header {
    background: var(--fbm-bg-soft);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--fbm-border);
    margin-bottom: 1.75rem;
}

.page-header__title {
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--fbm-primary);
    margin: 0 0 .35rem;
}

.breadcrumb {
    --bs-breadcrumb-divider: "›";
    font-size: .8125rem;
    margin: 0;
}

.breadcrumb a {
    color: var(--fbm-muted);
}

.breadcrumb a:hover {
    color: var(--fbm-primary);
}

.breadcrumb .breadcrumb-item.active {
    color: var(--fbm-text);
}

/* --------------------------------------------------------------------------
   Danh sách bài viết (category / search)
   -------------------------------------------------------------------------- */

.archive-list .post-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #fff;
    box-shadow: var(--fbm-shadow);
    border-radius: var(--fbm-radius);
    margin-bottom: 1.25rem;
    position: relative;
    transition: box-shadow .2s ease;
}

.archive-list .post-card:hover {
    box-shadow: var(--fbm-shadow-lg);
}

.archive-list .post-card__media {
    flex: 0 0 38%;
    max-width: 38%;
}

.archive-list .post-card__thumb {
    position: relative;
    display: block;
    padding-top: 60%;
    overflow: hidden;
    border-radius: var(--fbm-radius);
    background: #f4f4f4;
}

.archive-list .post-card__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.archive-list .post-card:hover .post-card__thumb img {
    transform: scale(1.04);
}

.archive-list .post-card__title {
    font-size: 1.0625rem;
    line-height: 1.4;
    margin: 0 0 .4rem;
}

.archive-list .post-card__title a {
    color: var(--fbm-text);
}

.archive-list .post-card__title a:hover {
    color: var(--fbm-primary);
}

.archive-list .post-card__excerpt {
    font-size: .875rem;
    color: #666;
    margin: 0;
}

/* Badge ngày tháng góc trên — như Flatsome .badge.post-date */
.post-date-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    /* Ảnh nằm sau trong DOM nên mặc định vẽ đè lên badge — nâng z-index để giữ badge nổi lên trên. */
    z-index: 2;
    width: 46px;
    height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .92);
    border: 2px solid var(--fbm-primary);
    border-radius: 50%;
    color: var(--fbm-primary);
    line-height: 1;
}

.post-date-badge__day {
    font-size: .9375rem;
    font-weight: 700;
}

.post-date-badge__month {
    font-size: .625rem;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Bài viết / trang tĩnh
   -------------------------------------------------------------------------- */

.entry-title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: .65rem;
}

.entry-meta {
    font-size: .8125rem;
    color: var(--fbm-muted);
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--fbm-border);
    margin-bottom: 1.25rem;
}

.entry-content {
    font-size: .9375rem;
    line-height: 1.75;
    color: #3a3a3a;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 1.5rem 0 .75rem;
    color: var(--fbm-primary);
}

.entry-content h2 { font-size: 1.35rem; }
.entry-content h3 { font-size: 1.15rem; }
.entry-content h4 { font-size: 1rem; }

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--fbm-radius);
    margin: .5rem 0;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: .35rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--fbm-primary);
    background: #faf6f7;
    padding: .85rem 1.1rem;
    margin: 1.25rem 0;
    font-style: italic;
}

.entry-content table {
    width: 100%;
    margin-bottom: 1.25rem;
    border-collapse: collapse;
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--fbm-border);
    padding: .5rem .65rem;
    font-size: .875rem;
}

.entry-content th {
    background: #f6f6f6;
    font-weight: 700;
}

/* Bảng rộng cuộn ngang thay vì tràn trang */
.entry-content .table-scroll,
.table-responsive-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.entry-content iframe {
    max-width: 100%;
    border: 0;
}

/* --------------------------------------------------------------------------
   Sidebar chung
   -------------------------------------------------------------------------- */

.widget {
    background: #fff;
    border: 1px solid var(--fbm-border);
    border-radius: var(--fbm-radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.widget__title {
    background: var(--fbm-primary);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: .65rem .9rem;
    margin: 0;
}

.widget__body {
    padding: .75rem .9rem;
}

.widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-list li {
    border-bottom: 1px solid #f1f1f1;
}

.widget-list li:last-child {
    border-bottom: 0;
}

.widget-list a {
    display: block;
    padding: .5rem 0;
    font-size: .8125rem;
    color: #444;
}

.widget-list a:hover {
    color: var(--fbm-primary);
}

.widget-post {
    display: flex;
    gap: .65rem;
    padding: .6rem 0;
    border-bottom: 1px solid #f1f1f1;
}

.widget-post:last-child {
    border-bottom: 0;
}

.widget-post__thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: var(--fbm-radius);
    background: #f4f4f4;
}

.widget-post__title {
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.widget-post__title a {
    color: var(--fbm-text);
}

.widget-post__title a:hover {
    color: var(--fbm-primary);
}

/* --------------------------------------------------------------------------
   Phân trang
   -------------------------------------------------------------------------- */

.pagination {
    --bs-pagination-color: var(--fbm-text);
    --bs-pagination-hover-color: #fff;
    --bs-pagination-hover-bg: var(--fbm-primary);
    --bs-pagination-hover-border-color: var(--fbm-primary);
    --bs-pagination-active-bg: var(--fbm-primary);
    --bs-pagination-active-border-color: var(--fbm-primary);
    --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(0, 124, 186, .2);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--fbm-primary);
    color: rgba(255, 255, 255, .88);
    font-size: .875rem;
}

.site-footer a {
    color: rgba(255, 255, 255, .88);
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-main {
    padding: 2rem 0 1.25rem;
}

.footer-title {
    font-size: .9375rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: .9rem;
}

.footer-contact li {
    display: flex;
    gap: .55rem;
    margin-bottom: .55rem;
    line-height: 1.5;
}

.footer-contact .bi {
    flex: 0 0 auto;
    margin-top: .2rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: .5rem;
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    color: #fff;
    transition: background .18s ease, border-color .18s ease;
}

.footer-social a:hover {
    background: #fff;
    border-color: #fff;
    color: var(--fbm-primary);
    text-decoration: none;
}

.footer-map iframe {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: var(--fbm-radius);
}

.footer-bottom {
    background: rgba(0, 0, 0, .18);
    padding: .75rem 0;
    text-align: center;
    font-size: .8125rem;
}

.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--fbm-primary);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--fbm-primary);
    z-index: 900;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: var(--fbm-primary);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    :root {
        --fbm-header-h: 80px;
    }

    .header-logo img,
    .header-emblem img {
        max-height: 62px;
    }

    .header-slogan .site-title {
        font-size: 1rem;
    }

    .header-slogan .site-title-sub {
        font-size: .9rem;
    }

    .post-row__media {
        flex-basis: 34%;
        max-width: 34%;
    }

    .archive-list .post-card {
        flex-direction: column;
    }

    .archive-list .post-card__media {
        flex-basis: auto;
        max-width: 100%;
    }

    .post-date-badge {
        top: 1.5rem;
        left: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }

    .post-row {
        gap: .75rem;
    }

    .post-row__media {
        flex-basis: 38%;
        max-width: 38%;
    }

    .post-row__title {
        font-size: .875rem;
    }

    .entry-title {
        font-size: 1.35rem;
    }

    .section-title__text {
        font-size: 1.05rem;
    }

    .program-card__media img {
        max-height: 150px;
    }
}
