/* Powered by section layout */
.powered-by-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
    text-align: right;
}

.powered-by-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.powered-by-link {
    text-decoration: none;
    color: inherit;
}

.powered-by-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.main-content-section {
    position: fixed;
    left: 17.666667%; /* width of sidebar */
    top: 48px; /* height of navbar */
    right: 0;
    bottom: 48px; /* height of footer */
    width: 83.333333%; /* col-md-9 */
    min-width: 0;
    max-width: 100vw;
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 48px - 48px);
    overflow-y: auto;
    padding: 24px;
    box-sizing: border-box;
    background: #fff;
    margin-left: 0;
}

.row.gx-0 {
    height: calc(100vh - 48px - 48px); /* header and footer height */
    min-height: 0;
}

.footer {
    height: 48px;
    min-height: 48px;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    border-top: 1px solid #e5e5e5;
}

/* Remove unwanted gaps */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    min-height: 48px;
    height: 48px;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e5e5;
}

.bc-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.bc-brand-text {
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
}

.navbar .navbar-brand img {
    height: 32px;
    width: 32px;
}

.main-content, .container-fluid, .row, .main-content > .container-fluid {
    margin: 0;
    padding: 0;
}

.sidebar {
    position: fixed;
    top: 48px; /* height of navbar */
    left: 0;
    height: 100%;
    width: 16.666667%; /* col-md-3 */
    background: #f8f9fa;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0;

    overflow-y: auto;
    border-right: 1px solid #e5e5e5;
    z-index: 100;
}

@media (max-width: 991.98px) {
    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
    }
}

.col-md-9, .col-lg-10, .px-4, .py-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0;
}

@media (max-width: 991.98px) {
    .main-content {
        margin-left: 0;
    }

    .main-content-section {
        position: static;
        left: 0;
        top: auto;
        right: 0;
        bottom: auto;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        max-height: none;
        padding: 16px;
    }

    .row.gx-0 {
        height: auto !important;
    }
}

/* User manual images */
.img-fluid {
    max-width: min(100%, 760px) !important;
    height: auto !important;
    min-width: 0 !important;
    display: block;
}

@media (max-width: 767.98px) {
    .navbar {
        height: auto;
        min-height: 64px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .bc-navbar-inner {
        justify-content: center;
        text-align: center;
    }

    .navbar .navbar-brand {
        justify-content: center;
        width: 100%;
    }

    .bc-brand-text {
        white-space: normal;
    }

    .powered-by-wrap {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .powered-by-stack {
        align-items: center;
    }

    .footer {
        height: auto;
        min-height: 48px;
        padding: 0.75rem 0;
    }
}

.blucross-main-content {
    flex: 1 1 auto;
    padding-top: 48px;
    background:
        radial-gradient(circle at top right, rgba(26, 111, 183, 0.08), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
}

@media (max-width: 767.98px) {
    .blucross-main-content {
        padding-top: 76px;
    }
}

.blucross-brand {
    text-decoration: none;
}

.bc-brand-text {
    color: #0f172a;
}

.bc-brand-subtext {
    display: block;
    font-size: 0.72rem;
    line-height: 1.1;
    color: #64748b;
}

.blucross-project-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.blucross-project-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: rgba(26, 111, 183, 0.08);
    color: #1a6fb7;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blucross-project-links a:hover {
    background: #1a6fb7;
    color: #fff;
}

.blucross-project-link-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: #1a6fb7;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.blucross-footer {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.blucross-footer .container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.bc-credits-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.bc-credits-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 2rem;
    background: linear-gradient(135deg, #062b55 0%, #0d4f91 48%, #1890d7 100%);
    color: #fff;
    box-shadow: 0 28px 70px rgba(2, 28, 67, 0.18);
}

.bc-credits-hero::after {
    content: '';
    position: absolute;
    inset: auto -60px -60px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.bc-credits-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bc-credits-hero h1 {
    margin: 1rem 0 0.8rem;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.05;
    font-weight: 800;
}

.bc-credits-hero p {
    max-width: 760px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
}

.bc-credits-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.bc-credits-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bc-credits-btn:hover {
    transform: translateY(-1px);
}

.bc-credits-btn-primary {
    background: #fff;
    color: #0d4f91;
    box-shadow: 0 12px 30px rgba(5, 22, 54, 0.18);
}

.bc-credits-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.bc-credits-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.bc-credit-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    padding: 1.4rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.bc-credit-card h2,
.bc-credit-card h3 {
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 0.7rem;
}

.bc-credit-card p,
.bc-credit-card li {
    color: #475569;
    line-height: 1.75;
}

.bc-credit-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.bc-credit-card--wide {
    grid-column: span 7;
}

.bc-credit-card--side {
    grid-column: span 5;
}

.bc-credit-card--half {
    grid-column: span 6;
}

.bc-credit-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.bc-credit-stat {
    background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
    border: 1px solid rgba(26, 111, 183, 0.12);
    border-radius: 18px;
    padding: 1rem;
}

.bc-credit-stat strong {
    display: block;
    font-size: 1.35rem;
    color: #0d4f91;
}

.bc-credit-link-list {
    display: grid;
    gap: 0.85rem;
}

.bc-credit-link-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.bc-credit-link-item a {
    color: #0d4f91;
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
}

.bc-credit-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.bc-credit-notice {
    border-left: 4px solid #1a6fb7;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
}

@media (max-width: 991.98px) {
    .bc-credit-card--wide,
    .bc-credit-card--side,
    .bc-credit-card--half {
        grid-column: span 12;
    }

    .bc-credit-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .blucross-project-links {
        width: 100%;
        justify-content: center;
    }

    .bc-credits-page {
        padding: 1.25rem 0.85rem 2.5rem;
    }

    .bc-credits-hero {
        padding: 1.4rem;
        border-radius: 22px;
    }

    .bc-credits-actions {
        flex-direction: column;
    }

    .bc-credits-btn {
        width: 100%;
    }

    .bc-credit-stat-grid {
        grid-template-columns: 1fr;
    }

    .bc-credit-link-item {
        flex-direction: column;
        align-items: flex-start;
    }
}