/* ================================================== */
/* Paskolos7 theme — red #C61828 / amber #F4A403     */
/* green buttons #62CA77 (from Bank24 theme)          */
/* Loaded after template style.css + responsive.css   */
/* ================================================== */

:root {
    --p7-red: #C61828;
    --p7-red-dark: #9C1120;
    --p7-red-soft: #E4546A;
    --p7-amber: #F4A403;
    --p7-amber-dark: #C48800;
    --p7-green: #62CA77;
    --p7-green-dark: #4FAE63;
    --primary-color: #17161A;
    --secondary-color: #C61828;
    --theme-color: #C61828;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* ---------- Buttons: green (Bank24) ---------- */
.btn_style_one {
    background: var(--p7-green);
    color: #ffffff;
    box-shadow: 0 4px 14px rgb(98 202 119 / 45%);
}

.btn_style_one::before {
    background: var(--p7-green-dark);
}

.btn_style_one:hover {
    color: #ffffff;
    box-shadow: 0 6px 18px rgb(79 174 99 / 55%);
}

.btn_style_two {
    border-color: var(--p7-red);
}

.btn_style_two:hover {
    background: var(--p7-red);
    border-color: var(--p7-red);
    color: #ffffff;
}

/* Apply buttons inside the comparison table */
.p7_apply_btn {
    padding: 14px 34px;
    font-size: 16px;
    line-height: 26px;
    white-space: nowrap;
}

/* ---------- Tag text: amber ---------- */
.tag_text {
    background: rgb(244 164 3 / 14%);
}

.tag_text h6 {
    color: var(--p7-amber-dark);
}

/* ---------- Header ---------- */
.main_header_inner .main_header_logo img {
    max-height: 56px;
    width: auto;
}

.main-menu .navigation > li > a,
.mobile-menu .navigation li > a,
.mobile-menu .navigation li ul li > a {
    font-family: var(--primary-font);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.32px;
    text-transform: none;
}

.sticky-header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.07);
    transform: translateY(-100%);
    transition: transform 400ms ease;
    z-index: 998;
}

.fixed-header .sticky-header {
    transform: translateY(0);
}

/* ---------- Hero ---------- */
.p7_hero .shape_one {
    position: absolute;
    left: 4%;
    top: 16%;
    width: 42px;
    height: 42px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.p7_hero .shape_two {
    position: absolute;
    right: 6%;
    top: 12%;
    width: 58px;
    height: 58px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
}

.p7_hero {
    position: relative;
    padding: 70px 0 0;
    background:
        radial-gradient(760px 420px at 85% 8%, rgb(198 24 40 / 7%), transparent 65%),
        radial-gradient(560px 380px at 4% 88%, rgb(244 164 3 / 10%), transparent 60%),
        #ffffff;
    overflow: hidden;
}

.p7_hero_inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.p7_hero_content {
    flex: 1 1 52%;
    text-align: left;
    padding-bottom: 90px;
}

.p7_hero_content .tag_text {
    margin-bottom: 18px;
}

.p7_hero_content h1 {
    font-size: 58px;
    font-weight: 800;
    line-height: 66px;
    margin-bottom: 22px;
}

.p7_hero_content h1 span {
    color: var(--p7-red);
}

.p7_hero_content p {
    color: #6A6A6A;
    font-family: var(--secondary-font);
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 30px;
    max-width: 540px;
}

.p7_hero_cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 38px;
}

.p7_hero_stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 22px 0 0;
    margin: 0;
    list-style: none;
    border-top: 1px solid rgb(23 22 26 / 8%);
}

.p7_hero_stats li {
    display: flex;
    flex-direction: column;
}

.p7_hero_stats strong {
    color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 26px;
    font-weight: 800;
    line-height: 30px;
}

.p7_hero_stats span {
    color: #6A6A6A;
    font-family: var(--secondary-font);
    font-size: 14px;
    line-height: 22px;
}

/* Hero visual: CSS-only loan offer card */
.p7_hero_visual {
    position: relative;
    flex: 1 1 48%;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p7_hero_glow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgb(244 164 3 / 18%), rgb(198 24 40 / 10%));
    filter: blur(2px);
}

.p7_loan_card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 18px;
    padding: 30px 30px 26px;
    box-shadow: 0px 24px 70px 0px rgb(23 22 26 / 16%);
    border-top: 5px solid var(--p7-amber);
}

.p7_loan_card_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.p7_loan_card_top strong {
    color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 17px;
    font-weight: 800;
}

.p7_loan_card_badge {
    padding: 5px 12px;
    border-radius: 30px;
    background: rgb(98 202 119 / 14%);
    color: #2FAE4A;
    font-family: var(--primary-font);
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
}

.p7_loan_card_row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.p7_loan_card_row span {
    color: #8A8A8A;
    font-family: var(--secondary-font);
    font-size: 14px;
}

.p7_loan_card_row strong {
    color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 22px;
    font-weight: 800;
    line-height: 28px;
}

.p7_loan_card_row strong em {
    font-style: normal;
    color: var(--p7-red);
}

.p7_loan_card_bar {
    position: relative;
    height: 8px;
    margin: 14px 0 24px;
    border-radius: 10px;
    background: #F0F0F6;
}

.p7_loan_card_bar i {
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border-radius: 50%;
    background: var(--p7-red);
    box-shadow: 0 0 0 5px rgb(198 24 40 / 18%);
}

.p7_loan_card_bar .fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 62%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--p7-amber), var(--p7-red));
}

.p7_loan_card_split {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.p7_loan_card_fact {
    flex: 1;
    padding: 14px 16px;
    border-radius: 12px;
    background: #F8F8FC;
}

.p7_loan_card_fact span {
    display: block;
    color: #8A8A8A;
    font-family: var(--secondary-font);
    font-size: 12px;
    line-height: 18px;
}

.p7_loan_card_fact strong {
    color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 16px;
    font-weight: 800;
    line-height: 22px;
}

.p7_loan_card .p7_loan_card_btn {
    display: block;
    text-align: center;
    padding: 14px 20px;
    border-radius: 60px;
    background: var(--p7-green);
    color: #ffffff;
    font-family: var(--primary-font);
    font-size: 16px;
    font-weight: 700;
    line-height: 26px;
    box-shadow: 0 8px 22px rgb(98 202 119 / 45%);
    transition: background 400ms ease;
}

.p7_loan_card .p7_loan_card_btn:hover {
    background: var(--p7-green-dark);
    color: #ffffff;
}

.p7_float_card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 14px 44px 0px rgb(23 22 26 / 12%);
}

.p7_float_card_one {
    left: -12px;
    top: 8%;
}

.p7_float_card_two {
    right: -14px;
    bottom: 10%;
}

.p7_float_icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(111deg, var(--p7-amber) 19.42%, var(--p7-red) 73.08%);
    color: #ffffff;
    font-size: 18px;
}

.p7_float_info {
    display: flex;
    flex-direction: column;
}

.p7_float_info strong {
    color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
}

.p7_float_info span {
    color: #6A6A6A;
    font-family: var(--secondary-font);
    font-size: 13px;
    line-height: 18px;
}

.p7_hero_visual .shape_five {
    position: absolute;
    left: 2%;
    bottom: 6%;
    z-index: 2;
    animation: p7_spin 14s linear infinite;
}

@keyframes p7_spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---------- Loan comparison table ---------- */
.p7_loans {
    position: relative;
    padding: 40px 0 110px;
    background: #F7F7FB;
}

.p7_table_wrap {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 10px 22px;
    box-shadow: 0px 10px 60px 0px rgb(0 0 0 / 6%);
}

.p7_table_scroll {
    overflow-x: auto;
}

.p7_table_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin: 0 12px;
    padding: 14px 2px 4px;
    color: #8A8A8A;
    font-family: var(--secondary-font);
    font-size: 12px;
    line-height: 18px;
}

.p7_table_error {
    margin: 18px 14px 8px;
    padding: 16px 18px;
    border-radius: 10px;
    background: rgb(198 24 40 / 6%);
    border: 1px dashed rgb(198 24 40 / 35%);
    color: var(--p7-red-dark);
    font-family: var(--secondary-font);
    font-size: 14px;
    line-height: 22px;
}

.p7_table_error button {
    margin-left: 10px;
    padding: 4px 14px;
    border: none;
    border-radius: 30px;
    background: var(--p7-red);
    color: #ffffff;
    font-family: var(--primary-font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.p7_skeleton {
    padding: 6px;
}

.p7_skeleton_row {
    height: 74px;
    margin: 10px 12px;
    border-radius: 10px;
    background: linear-gradient(100deg, #F1F1F7 40%, #FAFAFE 50%, #F1F1F7 60%);
    background-size: 200% 100%;
    animation: p7_shimmer 1.4s ease infinite;
}

@keyframes p7_shimmer {
    from { background-position: 120% 0; }
    to { background-position: -80% 0; }
}

/* ---------- Loan type tabs ---------- */
.p7_tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.p7_tab {
    padding: 10px 22px;
    border-radius: 40px;
    border: 1px solid #E3E3EE;
    background: #ffffff;
    color: #555555;
    font-family: var(--primary-font);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    cursor: pointer;
    transition: all 300ms ease;
}

.p7_tab:hover {
    border-color: var(--p7-green);
    color: var(--p7-green-dark);
}

.p7_tab.active {
    background: var(--p7-green);
    border-color: var(--p7-green);
    color: #ffffff;
    box-shadow: 0 4px 14px rgb(98 202 119 / 35%);
}

/* loan type chips under the provider name in the "Visos" tab */
.p7_type_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.p7_type_tag {
    display: inline-block;
    padding: 3px 10px;
    border: none;
    border-radius: 20px;
    background: #F3F3FA;
    color: #6E6E7E;
    font-family: var(--secondary-font);
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
}

.p7_type_tag:hover {
    background: rgb(244 164 3 / 14%);
    color: var(--p7-amber-dark);
}

.p7_table {
    width: 100%;
    min-width: 940px;
    border-collapse: collapse;
}

.p7_table thead {
    background: linear-gradient(111deg, var(--p7-red-soft) 19.42%, var(--p7-red) 73.08%);
}

.p7_table thead th {
    background: transparent;
    color: #ffffff;
    font-family: var(--primary-font);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 18px 20px;
    text-align: left;
}

.p7_table thead th:first-child {
    border-radius: 10px 0 0 0;
}

.p7_table thead th:last-child {
    border-radius: 0 10px 0 0;
    text-align: center;
}

.p7_table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid rgb(23 22 26 / 7%);
    vertical-align: middle;
    color: #444444;
    font-family: var(--secondary-font);
    font-size: 15px;
    line-height: 24px;
}

.p7_table tbody tr:last-child td {
    border-bottom: none;
}

.p7_table tbody tr {
    transition: background 300ms ease;
}

.p7_table tbody tr:hover {
    background: rgb(244 164 3 / 6%);
}

/* provider cell: logo + name + rating */
.p7_cell_provider {
    min-width: 210px;
}

.p7_cell_provider img {
    max-height: 44px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
}

.p7_provider_name {
    display: block;
    margin-top: 6px;
    color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
}

.p7_rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgb(244 164 3 / 14%);
    color: var(--p7-amber-dark);
    font-family: var(--primary-font);
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.p7_cell_terms .p7_term {
    display: inline-block;
}

.p7_rating i {
    font-size: 11px;
}

.p7_cell_terms strong {
    color: var(--primary-color);
    font-weight: 700;
}

.p7_terms_sep {
    color: #C3C3CF;
    padding: 0 4px;
}

.p7_cell_approval {
    white-space: nowrap;
}

.p7_cell_approval strong {
    color: var(--primary-color);
    font-weight: 700;
}

.p7_free_badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-family: var(--primary-font);
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.p7_free_yes {
    background: rgb(98 202 119 / 14%);
    color: #2FAE4A;
}

.p7_free_no {
    background: #EDEDF3;
    color: #6E6E80;
}

.p7_table_note {
    margin: 18px 12px 0;
    color: #8A8A8A;
    font-family: var(--secondary-font);
    font-size: 13px;
    line-height: 22px;
}

/* ---------- Knowledge cards ---------- */
.p7_knowledge {
    position: relative;
    padding: 110px 0 60px;
}

.p7_know_card {
    position: relative;
    margin-bottom: 40px;
    padding: 34px 30px 36px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0px 10px 60px 0px rgb(0 0 0 / 6%);
    overflow: hidden;
    transition: transform 500ms ease, box-shadow 500ms ease;
}

.p7_know_card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 20px 60px 0px rgb(244 164 3 / 18%);
}

.p7_know_icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(111deg, var(--p7-amber) 19.42%, var(--p7-red) 73.08%);
    color: #ffffff;
    font-size: 26px;
}

.p7_know_card h3 {
    color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 22px;
    font-weight: 700;
    line-height: 30px;
    margin-bottom: 12px;
}

.p7_know_card p {
    color: #6A6A6A;
    font-family: var(--secondary-font);
    font-size: 15px;
    line-height: 26px;
    margin: 0;
}

/* ---------- Testimonials ---------- */
.testimonial_section {
    padding-top: 60px;
}

.testimonial_block_one .thumb_box .p7_avatar {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(111deg, var(--p7-amber) 19.42%, var(--p7-red) 73.08%);
    color: #ffffff;
    font-family: var(--primary-font);
    font-size: 22px;
    font-weight: 800;
}

/* ---------- CTA ---------- */
.cta_section {
    padding: 40px 0 110px;
}

.cta_inner {
    background: linear-gradient(111deg, var(--p7-red-soft) 19.42%, var(--p7-red) 73.08%);
}

.cta_inner h3 {
    max-width: 640px;
    margin: 0 auto 30px;
    text-align: center;
}

.p7_cta_btn {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta_inner .cta_image {
    display: none;
}

/* ---------- Footer ---------- */
.footer_widget .footer_logo img {
    max-height: 52px;
    width: auto;
}

.p7_footer_note {
    font-size: 13px;
    line-height: 22px;
    color: rgb(255 255 255 / 75%);
    margin: 10px 0 0;
}

/* ---------- Scroll top ---------- */
.scroll-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 400ms ease, visibility 400ms ease;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 1199px) {
    .p7_hero_content h1 {
        font-size: 48px;
        line-height: 56px;
    }

    .p7_float_card_one {
        left: 0;
    }

    .p7_float_card_two {
        right: 0;
    }
}

@media only screen and (max-width: 991px) {
    .p7_hero {
        padding: 40px 0 0;
    }

    .p7_hero .shape_one,
    .p7_hero .shape_two,
    .p7_hero_visual .shape_five {
        display: none;
    }

    .p7_hero_inner {
        flex-direction: column;
        gap: 20px;
    }

    .p7_hero_content {
        flex-basis: 100%;
        text-align: center;
        padding-bottom: 0;
    }

    .p7_hero_content p {
        margin-left: auto;
        margin-right: auto;
    }

    .p7_hero_cta {
        justify-content: center;
    }

    .p7_hero_stats {
        justify-content: center;
        gap: 28px;
    }

    .p7_hero_visual {
        width: 100%;
        min-height: 0;
        margin: 30px 0 70px;
    }

    .p7_loan_card {
        max-width: 420px;
    }

    .p7_loans,
    .p7_knowledge {
        padding-top: 20px;
    }

    .cta_inner h3 {
        font-size: 28px;
        line-height: 38px;
    }

    .cta_inner .cta_image {
        display: none;
    }
}

@media only screen and (max-width: 600px) {
    .p7_hero_content h1 {
        font-size: 36px;
        line-height: 44px;
    }

    .p7_hero_stats {
        gap: 20px;
    }

    .p7_hero_stats strong {
        font-size: 22px;
    }

    .p7_float_card_one {
        top: -6px;
    }

    .p7_float_card_two {
        bottom: -6px;
    }

    .p7_float_card {
        padding: 10px 12px;
    }

    .p7_loan_card {
        padding: 24px 20px 22px;
    }

    .cta_inner {
        padding: 60px 24px;
    }
}

/* ---------- Comparison table: stacked cards on mobile/tablet ---------- */
@media only screen and (max-width: 991px) {
    .p7_table_scroll {
        overflow-x: visible;
    }

    .p7_table {
        display: block;
        min-width: 0;
    }

    .p7_table thead {
        display: none;
    }

    .p7_table tbody {
        display: block;
    }

    .p7_table tbody tr {
        display: block;
        margin: 0 6px 14px;
        padding: 18px 16px 16px;
        background: #ffffff;
        border: 1px solid rgb(23 22 26 / 8%);
        border-radius: 12px;
    }

    .p7_table tbody tr:last-child {
        margin-bottom: 0;
    }

    .p7_table tbody td {
        display: block;
        padding: 0;
        border-bottom: none;
    }

    .p7_cell_provider {
        text-align: center;
        margin-bottom: 14px;
    }

    .p7_table .p7_cell_terms {
        display: block;
        padding: 10px 0;
        border-bottom: 1px dashed rgb(23 22 26 / 10%);
        text-align: left;
    }

    .p7_table .p7_cell_approval,
    .p7_table .p7_cell_free {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 10px 0;
        border-bottom: 1px dashed rgb(23 22 26 / 10%);
        text-align: left;
    }

    .p7_table .p7_cell_terms::before,
    .p7_table .p7_cell_approval::before,
    .p7_table .p7_cell_free::before {
        display: block;
        flex-shrink: 0;
        content: attr(data-label);
        margin-bottom: 4px;
        color: #8A8A8A;
        font-family: var(--primary-font);
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    .p7_table .p7_cell_terms {
        line-height: 26px;
    }

    .p7_cell_apply {
        margin-top: 14px;
    }

    .p7_apply_btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* ---------- Page head (inner pages) ---------- */
.p7_pagehead {
    position: relative;
    min-height: 127px;
    padding: 16px 0 12px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background:
        radial-gradient(700px 300px at 50% 0%, rgb(198 24 40 / 6%), transparent 70%),
        #ffffff;
    overflow: hidden;
    border-bottom: 1px solid #E9E9F0;
}

.p7_pagehead .container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.p7_pagehead_title {
    color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 36px;
    font-weight: 800;
    line-height: 44px;
    margin-bottom: 4px;
}

.p7_pagehead_sub {
    color: #6A6A6A;
    font-family: var(--secondary-font);
    font-size: 15px;
    line-height: 22px;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.p7_pagehead .tag_text {
    margin-bottom: 2px;
    padding: 3px 14px;
}

.p7_pagehead .tag_text h6 {
    font-size: 11px;
    line-height: 16px;
}

.p7_breadcrumb {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0 0 0 8px;
    position: absolute;
    top: 2px;
    left: 0;
    color: #8A8A8A;
    font-family: var(--secondary-font);
    font-size: 13px;
}

@media only screen and (max-width: 1319px) {
    .p7_breadcrumb {
        left: 12px;
    }
}

.p7_breadcrumb li + li:before {
    content: "/";
    margin-right: 8px;
}

.p7_breadcrumb a {
    color: var(--p7-red);
    font-weight: 600;
    text-decoration: none;
}

.p7_breadcrumb a:hover {
    color: var(--p7-red-dark);
}

/* ---------- Article + sidebar ---------- */
.p7_article_section {
    padding: 90px 0 40px;
}

.p7_prose h2 {
    color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    margin: 38px 0 18px;
}

.p7_prose h2:first-child {
    margin-top: 0;
}

.p7_prose h3 {
    color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    margin: 28px 0 14px;
}

.p7_prose p {
    color: #555555;
    font-family: var(--secondary-font);
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 18px;
}

.p7_prose ul,
.p7_prose ol {
    color: #555555;
    font-family: var(--secondary-font);
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 18px;
    padding-left: 24px;
}

.p7_prose blockquote {
    margin: 30px 0;
    padding: 26px 30px;
    background: rgb(244 164 3 / 8%);
    border-left: 4px solid var(--p7-amber);
    border-radius: 0 10px 10px 0;
    color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 19px;
    font-weight: 600;
    line-height: 30px;
}

.p7_prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 22px;
    font-family: var(--secondary-font);
    font-size: 15px;
}

.p7_prose table th {
    background: rgb(244 164 3 / 12%);
    color: var(--p7-amber-dark);
    font-family: var(--primary-font);
    font-weight: 700;
    text-align: left;
    padding: 10px 14px;
}

.p7_prose table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgb(23 22 26 / 8%);
    color: #555555;
}

/* ---------- Sidebar ---------- */
.p7_sidebar {
    position: sticky;
    top: 100px;
}

.p7_side_card {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 26px;
    margin-bottom: 24px;
    box-shadow: 0px 10px 60px 0px rgb(0 0 0 / 6%);
}

.p7_side_title {
    color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.p7_side_list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #444444;
    font-family: var(--secondary-font);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dashed rgb(23 22 26 / 10%);
    transition: color 300ms ease;
}

.p7_side_list li:last-child a {
    border-bottom: none;
}

.p7_side_list li a i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(244 164 3 / 12%);
    color: var(--p7-amber-dark);
    font-size: 14px;
    flex-shrink: 0;
    transition: background 300ms ease, color 300ms ease;
}

.p7_side_list li a:hover {
    color: var(--p7-red);
}

.p7_side_list li a:hover i {
    background: linear-gradient(111deg, var(--p7-amber) 19.42%, var(--p7-red) 73.08%);
    color: #ffffff;
}

.p7_side_cta {
    background: linear-gradient(111deg, var(--p7-red-soft) 19.42%, var(--p7-red) 73.08%);
}

.p7_side_cta .p7_side_title {
    color: #ffffff;
}

.p7_side_cta p {
    color: rgb(255 255 255 / 90%);
    font-family: var(--secondary-font);
    font-size: 15px;
    line-height: 25px;
    margin-bottom: 18px;
}

/* ---------- Company (lender) fact sheet ---------- */
.p7_company {
    padding: 50px 0 10px;
    background: #F7F7FB;
}

.p7_company_card {
    background: #ffffff;
    border-radius: 14px;
    padding: 34px 36px 30px;
    box-shadow: 0px 10px 60px 0px rgb(0 0 0 / 6%);
}

.p7_company_brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgb(23 22 26 / 8%);
}

.p7_company_brand figure {
    margin: 0;
}

.p7_company_brand figure img {
    max-height: 52px;
    width: auto;
}

.p7_company_btn {
    white-space: nowrap;
}

.p7_facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.p7_facts li {
    background: #F7F7FB;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
}

.p7_facts li strong {
    align-self: start;
    word-break: break-word;
    color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
}

.p7_facts li span {
    color: #8A8A8A;
    font-family: var(--secondary-font);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ---------- Prose lists ---------- */
.p7_steps {
    margin: 0 0 18px;
    padding-left: 20px;
}

.p7_steps li {
    color: #555555;
    font-family: var(--secondary-font);
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 10px;
}

.p7_checks {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.p7_checks li {
    position: relative;
    padding: 6px 0 6px 30px;
    color: #555555;
    font-family: var(--secondary-font);
    font-size: 16px;
    line-height: 26px;
}

.p7_checks li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgb(98 202 119 / 14%);
    color: #1e9e35;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
}

/* ---------- Pros & cons ---------- */
.p7_proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 34px 0 10px;
}

.p7_pc_block {
    border-radius: 12px;
    padding: 26px 26px 20px;
}

.p7_pc_plus {
    background: rgb(98 202 119 / 10%);
}

.p7_pc_minus {
    background: rgb(198 24 40 / 6%);
}

.p7_pc_block h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

.p7_pc_plus h4 i {
    color: #2fae4a;
}

.p7_pc_minus h4 i {
    color: var(--p7-red);
}

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

.p7_pc_block ul li {
    position: relative;
    padding: 6px 0 6px 22px;
    color: #555555;
    font-family: var(--secondary-font);
    font-size: 15px;
    line-height: 24px;
}

.p7_pc_block ul li:before {
    content: "\2022";
    position: absolute;
    left: 6px;
    color: var(--p7-red);
    font-weight: 700;
}

.p7_pc_plus ul li:before {
    color: #2fae4a;
}

/* ---------- Sidebar contact list ---------- */
.p7_contact_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.p7_contact_list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 0;
    color: #555555;
    font-family: var(--secondary-font);
    font-size: 15px;
    line-height: 23px;
}

.p7_contact_list li i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(244 164 3 / 12%);
    color: var(--p7-amber-dark);
    font-size: 14px;
    flex-shrink: 0;
}

.p7_contact_list li a {
    color: var(--p7-red);
    font-weight: 600;
    text-decoration: none;
}

.p7_contact_list li a:hover {
    color: var(--p7-red-dark);
}

/* ---------- Company FAQ ---------- */
.p7_company_faq {
    margin-top: 60px;
}

.p7_company_faq .section_title {
    margin-bottom: 34px;
}

/* ---------- Loan type cards (hub pages) ---------- */
.p7_types {
    padding: 60px 0 40px;
}

.p7_type_card {
    position: relative;
    margin-bottom: 40px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0px 10px 60px 0px rgb(0 0 0 / 6%);
    overflow: hidden;
    transition: transform 500ms ease, box-shadow 500ms ease;
}

.p7_type_card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 20px 60px 0px rgb(244 164 3 / 16%);
}

.p7_type_icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(111deg, rgb(244 164 3 / 16%) 19.42%, rgb(198 24 40 / 10%) 73.08%);
    color: var(--p7-red);
    font-size: 44px;
}

.p7_type_body {
    padding: 24px 26px 28px;
}

.p7_type_body h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.p7_type_body h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.p7_type_body h3 a:hover {
    color: var(--p7-red);
}

.p7_type_body p {
    color: #6A6A6A;
    font-family: var(--secondary-font);
    font-size: 15px;
    line-height: 25px;
    margin-bottom: 16px;
}

.p7_type_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--p7-red);
    font-family: var(--primary-font);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.p7_type_link i {
    transition: transform 300ms ease;
}

.p7_type_link:hover {
    color: var(--p7-red-dark);
}

.p7_type_link:hover i {
    transform: translateX(4px);
}

/* ---------- Inner page responsive ---------- */
@media only screen and (max-width: 991px) {
    .p7_pagehead {
        height: auto;
        padding: 12px 0 16px;
    }

    .p7_breadcrumb {
        position: static;
        align-self: flex-start;
        padding-left: 8px;
        margin-bottom: 10px;
    }

    .p7_pagehead_title {
        font-size: 34px;
        line-height: 42px;
    }

    .p7_pagehead_sub {
        padding: 0 12px;
    }

    .p7_article_section {
        padding: 40px 0 20px;
    }

    .p7_sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .p7_company {
        padding-top: 30px;
    }

    .p7_company_card {
        padding: 24px 20px;
    }

    .p7_company_brand {
        justify-content: center;
        text-align: center;
    }

    .p7_facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .p7_proscons {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 600px) {
    .p7_pagehead_title {
        font-size: 30px;
        line-height: 38px;
    }

    .p7_prose h2 {
        font-size: 26px;
        line-height: 34px;
    }
}

@media only screen and (max-width: 480px) {
    .p7_facts {
        grid-template-columns: 1fr;
    }
}

/* ---------- Calculator ---------- */
.p7_calc_row {
    margin-bottom: 26px;
}

.p7_calc_label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.p7_calc_label span {
    color: #6A6A6A;
    font-family: var(--secondary-font);
    font-size: 14px;
    font-weight: 600;
}

.p7_calc_label strong {
    color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 20px;
    font-weight: 800;
}

.p7_calc_row input[type="range"] {
    width: 100%;
    height: 8px;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--p7-amber), var(--p7-red)) no-repeat #F0F0F6;
    background-size: 50% 100%;
    outline: none;
    cursor: pointer;
}

.p7_calc_row input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--p7-red);
    box-shadow: 0 2px 8px rgb(198 24 40 / 30%);
    cursor: grab;
}

.p7_calc_row input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--p7-red);
    cursor: grab;
}

.p7_calc_results {
    background: #F7F7FB;
    border-radius: 12px;
    padding: 26px 26px 22px;
    height: 100%;
}

.p7_calc_main {
    padding-bottom: 18px;
    border-bottom: 1px dashed rgb(23 22 26 / 12%);
    margin-bottom: 16px;
}

.p7_calc_main span {
    display: block;
    color: #6A6A6A;
    font-family: var(--secondary-font);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.p7_calc_main strong {
    color: var(--p7-red);
    font-family: var(--primary-font);
    font-size: 40px;
    font-weight: 800;
    line-height: 44px;
}

.p7_calc_facts {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.p7_calc_facts li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
}

.p7_calc_facts li span {
    color: #6A6A6A;
    font-family: var(--secondary-font);
    font-size: 14px;
}

.p7_calc_facts li strong {
    color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.p7_calc_bar {
    height: 10px;
    border-radius: 10px;
    background: #E8E8F0;
    overflow: hidden;
}

.p7_calc_bar_fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--p7-amber), var(--p7-red));
    transition: width 200ms ease;
}

.p7_calc_bar_label span {
    display: block;
    margin-top: 8px;
    color: #8A8A8A;
    font-family: var(--secondary-font);
    font-size: 12px;
    line-height: 18px;
}

.p7_calc_note {
    margin: 22px 4px 0;
    color: #8A8A8A;
    font-family: var(--secondary-font);
    font-size: 13px;
    line-height: 21px;
}

@media only screen and (max-width: 991px) {
    .p7_calc_results {
        margin-top: 10px;
    }
}

.p7_wordmark {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
}

/* ---------- Footer entity block (inside footer_bottom) ---------- */
.footer_entity {
    padding: 0;
    margin: 10px 0 0;
}

.footer_entity p {
    color: rgb(255 255 255 / 65%);
    font-family: var(--secondary-font);
    font-size: 13px;
    line-height: 22px;
    margin: 0 0 4px;
}

.footer_entity p {
    color: rgb(255 255 255 / 65%);
    font-family: var(--secondary-font);
    font-size: 13px;
    line-height: 22px;
    margin: 0 0 6px;
}

.footer_entity p:last-child {
    margin-bottom: 0;
}

.footer_entity a {
    color: rgb(255 255 255 / 80%);
    text-decoration: underline;
}

@media only screen and (min-width: 768px) {
    .footer_bottom .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        flex-wrap: wrap;
    }

    .footer_bottom .copyright {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .footer_entity {
        margin: 0;
        text-align: right;
    }

    .footer_entity p:last-child {
        margin-bottom: 0;
    }
}

.footer_entity a:hover {
    color: #ffffff;
}

.footer_entity strong {
    color: rgb(255 255 255 / 90%);
}
