body .pages-bbs:has(.history-modern) {
    width: calc(100% - 48px);
    max-width: 1400px;
    margin: 28px auto 40px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #f6f8fb;
    box-shadow: 0 18px 45px rgba(20, 51, 82, .08);
}

body .pages-bbs:has(.history-modern) > .row { align-items: stretch; }
.history-modern { margin: 0; padding: 0 14px 0 0; }
.history-modern > .row { height: 100%; margin: 0; }
.history-card { overflow: hidden; padding: 0; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(20, 51, 82, .06); }
.history-hero { padding: 42px 44px 36px; background: #82aacd; }
.history-eyebrow { margin: 0 0 9px !important; color: #e8f7f3 !important; font-size: .82rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.history-hero h1 { margin: 0 0 15px; color: #fff !important; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; }
.history-hero > p:last-child { max-width: 850px; margin: 0; color: #fff; font-size: 1.08rem; line-height: 1.7; }
.history-body { padding: 36px 44px 44px; }
.history-body h4 { position: relative; margin: 34px 0 22px; padding: 0 0 12px 18px; border-bottom: 1px solid #dfe7ee; color: #173f62; font-size: 1.35rem; }
.history-body h4:first-child { margin-top: 0; }
.history-body h4::before { position: absolute; top: 1px; bottom: 12px; left: 0; width: 5px; border-radius: 3px; background: #28a96b; content: ''; }
.history-body p { color: #4c6074; font-size: 1rem; line-height: 1.72; }
.history-body b { color: #173f62; }
.history-body > .row { align-items: flex-start; margin: 0 -10px 16px; }
.history-body > .row > [class*='col-'] { padding-right: 10px; padding-left: 10px; }
.history-body img { width: 100%; border-radius: 12px !important; box-shadow: 0 6px 16px rgba(20, 51, 82, .13); }
.history-body a { color: #176f9f; font-weight: 700; }
.history-body .bb-carousel { max-width: 900px; margin: 0 auto 34px; overflow: hidden; border-radius: 15px; background: #173f62; box-shadow: 0 10px 26px rgba(20, 51, 82, .18); }
.history-body .carousel-inner, .history-body .carousel-item { border-radius: 15px; }
.history-body .carousel-item img { display: block; width: 100%; max-height: 580px; margin: auto; object-fit: contain; border-radius: 0 !important; box-shadow: none; }
.history-body .carousel-control-prev, .history-body .carousel-control-next { width: 12%; background: rgba(12, 49, 75, .22); }

body .pages-bbs:has(.history-modern) .col-lg-3 { padding: 0 0 0 14px; }
body .pages-bbs:has(.history-modern) .col-lg-3 > div { height: 100%; margin-top: 0 !important; border-radius: 18px; }

@media (max-width: 991.98px) {
    body .pages-bbs:has(.history-modern) { width: calc(100% - 30px); padding: 20px; }
    .history-modern { padding: 0 0 20px; }
    body .pages-bbs:has(.history-modern) .col-lg-3 { padding: 0; }
}

@media (max-width: 767.98px) {
    body .pages-bbs:has(.history-modern) { width: calc(100% - 20px); margin-top: 16px; padding: 10px; border-radius: 15px; }
    .history-card { border-radius: 13px; }
    .history-hero { padding: 30px 24px; }
    .history-hero > p:last-child { font-size: 1rem; }
    .history-body { padding: 26px 24px 30px; }
    .history-body h4 { margin-top: 28px; }
    .history-body .bb-carousel { margin-right: -10px; margin-left: -10px; border-radius: 10px; }
}
