/* ===================================================
   Credit Page — Clean Rewrite
   =================================================== */

/* Page Wrapper */
.cr-page {
    padding: 0 0 80px 0;
}

/* ===== BANNER ===== */
.cr-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 55px;
    min-height: 440px;
    background: #111;
}

/* Gradient BG layer */
.cr-banner__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #111 0%, #1c1c1c 40%, rgba(0,0,0,0.3) 70%, transparent 100%);
    z-index: 1;
}

/* Body layout */
.cr-banner__body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 440px;
    padding: 60px 70px;
}

/* Left content */
.cr-banner__left {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Badge pill */
.cr-banner__badge {
    display: inline-block;
    background: rgba(133,198,53,0.15);
    border: 1px solid rgba(133,198,53,0.4);
    color: #85c635;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 50px;
    margin-bottom: 22px;
    width: fit-content;
}

/* Title */
.cr-banner__title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 10px;
}

.cr-banner__title span {
    color: #85c635;
}

/* Subtitle */
.cr-banner__sub {
    font-size: 28px;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
}

/* Feature chips */
.cr-banner__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cr-banner__chips span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
}

.cr-banner__chips span i {
    color: #85c635;
    font-size: 12px;
}

/* Right image */
.cr-banner__right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 55%;
    z-index: 0;
}

.cr-banner__right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0.6;
}

/* ===== SECTION ===== */
.cr-section {
    margin-bottom: 60px;
}

.cr-section__title {
    margin-bottom: 35px;
}

.cr-section__title h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.cr-section__subtitle {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.cr-section__desc {
    font-size: 15px;
    color: #777;
    line-height: 1.5;
    max-width: 680px;
}

/* ===== LAYOUT ===== */
.cr-layout {
    display: flex;
    gap: 0;
    align-items: flex-start;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
}

/* ===== LEFT NAV ===== */
.cr-nav {
    width: 300px;
    flex-shrink: 0;
    border-right: 1px solid #e8e8e8;
    background: #fafafa;
    display: flex;
    flex-direction: column;
}

.cr-nav__item {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e8e8e8;
    padding: 22px 24px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    line-height: 1.35;
    position: relative;
}

.cr-nav__item:last-child {
    border-bottom: none;
}

.cr-nav__item:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}

.cr-nav__item.active {
    background: #fff;
    color: #1a1a1a;
    font-weight: 700;
}

.cr-nav__item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--color-accent, #85c635);
    border-radius: 0 2px 2px 0;
}

/* ===== RIGHT CONTENT ===== */
.cr-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    min-height: 420px;
}

.cr-panel {
    display: none;
    padding: 40px 50px;
    animation: panelIn 0.25s ease;
}

.cr-panel.active {
    display: block;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cr-panel h3 {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.cr-panel p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 14px;
}

.cr-panel ul {
    padding-left: 20px;
    margin: 10px 0 14px 0;
}

.cr-panel ul li {
    font-size: 16px;
    color: #555;
    line-height: 1.65;
    margin-bottom: 8px;
}

/* ===== CTA ===== */
.cr-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    border-radius: 20px;
    padding: 60px 60px;
    margin-top: 40px;
}

.cr-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.cr-cta__left {
    flex: 1;
}

.cr-cta h2 {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.15;
}

.cr-cta p {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 480px;
}

.cr-cta__btns {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Stats */
.cr-cta__stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.cr-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.cr-stat__num {
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.cr-stat__num span {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-accent, #85c635);
    margin-left: 3px;
}

.cr-stat__label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Override btn colours inside dark CTA */
.cr-cta .cr-btn--outline {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.2);
    color: #fff !important;
}

.cr-cta .cr-btn--outline:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.4);
    color: #fff !important;
    box-shadow: none;
}


/* ===== BUTTONS ===== */
.cr-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.cr-btn--primary {
    background: var(--color-accent, #85c635);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(133,198,53,0.35);
}

.cr-btn--primary:hover {
    background: #77b52c;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(133,198,53,0.4);
}

.cr-btn--outline {
    background: #fff;
    color: #1a1a1a !important;
    border: 1px solid #ddd;
}

.cr-btn--outline:hover {
    border-color: var(--color-accent, #85c635);
    color: var(--color-accent, #85c635) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .cr-layout {
        flex-direction: column;
        border-radius: 14px;
    }
    .cr-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .cr-nav__item {
        flex: 1 1 calc(50% - 1px);
        border-right: 1px solid #e8e8e8;
        border-bottom: 1px solid #e8e8e8;
        text-align: center;
        padding: 16px 14px;
        font-size: 13px;
    }
    .cr-nav__item.active::after {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        border-radius: 2px 2px 0 0;
    }
    .cr-panel {
        padding: 30px 24px;
    }
    .cr-banner__title {
        font-size: 42px;
    }
    .cr-banner__sub {
        font-size: 22px;
    }
    .cr-cta {
        padding: 40px 30px;
    }
    .cr-cta__inner {
        flex-direction: column;
        gap: 35px;
    }
    .cr-cta__stats {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
    }
    .cr-stat {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .cr-banner__body {
        padding: 40px 25px;
        min-height: auto;
    }
    .cr-banner__right {
        display: none;
    }
    .cr-banner__left {
        max-width: 100%;
    }
    .cr-banner__title {
        font-size: 32px;
        word-break: break-word;
    }
    .cr-banner__sub {
        font-size: 18px;
    }
    .cr-banner__chips span {
        font-size: 13px;
        padding: 6px 12px;
    }
    .cr-nav__item {
        flex: 1 1 100%;
        border-right: none;
    }
    .cr-cta {
        padding: 40px 20px;
    }
    .cr-cta__btns {
        flex-direction: column;
    }
    .cr-btn {
        width: 100%;
        justify-content: center;
    }
}
