/* ========================================
   PrestaMax MX - Subpage Styles
   Professional layouts for articles, blogs,
   reviews, guides, tools, and legal pages.
   ======================================== */

/* ========================================
   PAGE HERO - Premium gradient with pattern
   ======================================== */
.page-hero {
    padding: 56px 0 48px;
    background: linear-gradient(135deg, #0A1628 0%, #0D2847 40%, #0052FF 100%);
    color: var(--white);
    margin-top: 72px;
    position: relative;
    overflow: hidden;
}

.page-hero::before,
.page-hero::after {
    display: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 16px;
    max-width: 750px;
    letter-spacing: -0.5px;
}

.page-hero .hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin-bottom: 0;
}

.page-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.2px;
}

.page-hero.hero-center {
    text-align: center;
}

.page-hero.hero-center h1,
.page-hero.hero-center .hero-desc {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   BREADCRUMB - Refined
   ======================================== */
.breadcrumb {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 14px 0;
    margin-top: 72px;
}

.breadcrumb + .page-hero {
    margin-top: 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
    font-size: 13px;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li::after {
    content: '›';
    margin: 0 10px;
    color: var(--gray-400);
    font-size: 14px;
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s;
}

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

.breadcrumb-list li:last-child span {
    color: var(--dark);
    font-weight: 600;
}

/* ========================================
   ARTICLE META BAR
   ======================================== */
.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    margin-bottom: 40px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    flex-wrap: wrap;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    top: -20px;
    z-index: 5;
}

.article-meta-bar .meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 82, 255, 0.25);
}

.meta-author-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
}

.meta-divider {
    width: 1px;
    height: 22px;
    background: var(--gray-200);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

.meta-item .meta-icon {
    font-size: 15px;
}

/* ========================================
   TL;DR SUMMARY BOX
   ======================================== */
.tldr-box {
    background: linear-gradient(135deg, #EEF4FF 0%, #F5F9FF 50%, #EEF8EE 100%);
    border: 1px solid rgba(0, 82, 255, 0.12);
    border-radius: 16px;
    padding: 32px 36px;
    margin-bottom: 44px;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 82, 255, 0.06);
}

.tldr-box::before {
    content: '📋';
    position: absolute;
    top: -16px;
    left: 24px;
    background: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 18px;
    border: 1px solid rgba(0, 82, 255, 0.12);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.tldr-box .tldr-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tldr-box .tldr-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 82, 255, 0.15);
}

.tldr-box ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
}

.tldr-box li {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: var(--dark-500);
    padding: 5px 0 5px 36px !important;
    position: relative !important;
    display: block !important;
}

.tldr-box li .tldr-check {
    position: absolute !important;
    left: 0 !important;
    top: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    margin-top: 1px;
}

/* ========================================
   ARTICLE CONTENT - Typography
   ======================================== */
.article-body {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 0 60px;
}

.article-body h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin: 52px 0 20px;
    padding-top: 36px;
    position: relative;
    letter-spacing: -0.3px;
}

.article-body h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.article-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
}

.article-body h2:first-child::before {
    display: none;
}

.article-body h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--dark-700);
    margin: 36px 0 14px;
    letter-spacing: -0.2px;
}

.article-body p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--dark-500);
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 18px 0;
    padding-left: 0;
    list-style: none;
}

.article-body ul li,
.article-body ol li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-500);
    margin-bottom: 10px;
    padding-left: 28px;
    position: relative;
}

.article-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* Override article-body styles for TL;DR box */
.tldr-box ul,
.article-body .tldr-box ul {
    padding-left: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.tldr-box li,
.article-body .tldr-box li {
    padding-left: 32px !important;
    margin-bottom: 2px !important;
    position: relative !important;
    display: block !important;
}

.tldr-box li::before,
.article-body .tldr-box li::before {
    display: none !important;
}

.article-body ol {
    counter-reset: list-counter;
}

.article-body ol li {
    counter-increment: list-counter;
}

.article-body ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-body a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 82, 255, 0.3);
    transition: all 0.2s;
}

.article-body a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.article-body strong {
    color: var(--dark);
    font-weight: 700;
}

/* ========================================
   COMPARISON TABLE - Premium
   ======================================== */
.table-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--gray-100) 0%, #EDF1F7 100%);
}

.comparison-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    min-width: 700px;
    font-size: 14px;
}

.comparison-table thead th {
    background: linear-gradient(135deg, #0A1628 0%, #1A3050 100%);
    color: var(--white);
    padding: 18px 20px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-table thead th:first-child {
    border-radius: 16px 0 0 0;
}

.comparison-table thead th:last-child {
    border-radius: 0 16px 0 0;
}

.comparison-table tbody td {
    padding: 20px 20px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
    color: var(--dark-500);
    transition: background 0.2s;
}

.comparison-table tbody tr {
    transition: all 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: linear-gradient(90deg, #F0F5FF 0%, #FAFCFF 100%);
}

.comparison-table tbody tr:hover td {
    color: var(--dark);
}

.comparison-table tbody tr:first-child {
    background: linear-gradient(90deg, #F0FFF4 0%, #FAFFFE 100%);
}

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

.comparison-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 16px;
}

.comparison-table tbody tr:last-child td:last-child {
    border-radius: 0 0 16px 0;
}

/* Table lender cell */
.table-lender {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-lender img {
    width: 100px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.table-lender-info {
    display: flex;
    flex-direction: column;
}

.table-lender-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 15px;
}

.table-lender-usp {
    font-size: 11px;
    color: var(--secondary-dark);
    font-weight: 600;
}

.table-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.table-badge.recommended {
    background: linear-gradient(135deg, #00C853, #00E676);
    color: var(--white);
}

.table-badge.new {
    background: var(--gradient-accent);
    color: var(--white);
}

.table-value {
    font-weight: 600;
    color: var(--dark-700);
}

.table-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: #FFFFFF !important;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 82, 255, 0.25);
}

.table-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.35);
    color: var(--white);
}

/* ========================================
   LENDER OFFER CARDS - Modern
   ======================================== */
.offer-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
}

.lender-offer-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.lender-offer-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.lender-offer-card.card-featured {
    border-color: var(--secondary);
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.15);
}

.card-ribbon {
    position: absolute;
    top: 0;
    right: 24px;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 6px 14px 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0 0 8px 8px;
    z-index: 2;
}

.card-ribbon.ribbon-green {
    background: linear-gradient(135deg, #00C853, #00E676);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 0;
    gap: 16px;
}

.card-top-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-rank {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}

.card-logo {
    height: 36px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
}

.card-name-group {
    display: flex;
    flex-direction: column;
}

.card-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
}

.card-usp {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-dark);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--accent);
    font-weight: 700;
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 20px 28px;
}

.card-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 16px;
    border-right: 1px solid var(--gray-200);
}

.card-stat:first-child {
    padding-left: 0;
}

.card-stat:last-child {
    border-right: none;
}

.card-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-stat-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--dark);
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    gap: 16px;
}

.card-badge-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--gray-500);
    flex-wrap: wrap;
}

.card-badge-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: none;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
}

.card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 255, 0.4);
    color: var(--white);
}

/* ========================================
   PROS & CONS - Visual
   ======================================== */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0;
}

.pros-card,
.cons-card {
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.pros-card {
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
    border: 1px solid #C8E6C9;
}

.cons-card {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFF3E0 100%);
    border: 1px solid #FFCDD2;
}

.pros-card h4,
.cons-card h4 {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pros-card h4 { color: #2E7D32; }
.cons-card h4 { color: #C62828; }

.pros-card ul,
.cons-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-card li,
.cons-card li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.pros-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2E7D32;
    font-weight: 700;
}

.cons-card li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: #C62828;
    font-weight: 700;
}

/* ========================================
   INFO / WARNING BOXES
   ======================================== */
.callout-box {
    border-radius: 14px;
    padding: 24px 28px;
    margin: 32px 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.callout-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.callout-box .callout-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.7);
}

.callout-box .callout-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.callout-box .callout-content p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.callout-info {
    background: linear-gradient(135deg, #E8F1FE, #EDE7F6);
    border: 1px solid #C5D9F7;
}
.callout-info::after { background: #1565C0; }
.callout-info h4 { color: #1565C0; }

.callout-warning {
    background: linear-gradient(135deg, #FFF5EB, #FFF8E1);
    border: 1px solid #FFD9A8;
}
.callout-warning::after { background: #E65100; }
.callout-warning h4 { color: #E65100; }

.callout-success {
    background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
    border: 1px solid #B2DFBC;
}
.callout-success::after { background: #2E7D32; }
.callout-success h4 { color: #2E7D32; }

.callout-danger {
    background: linear-gradient(135deg, #FFEBEE, #FCE4EC);
    border: 1px solid #F5B7B7;
}
.callout-danger::after { background: #C62828; }
.callout-danger h4 { color: #C62828; }

/* ========================================
   FAQ SECTION - Article Pages
   ======================================== */
.faq-section-article {
    margin: 48px 0 32px;
    padding-top: 40px;
    border-top: 2px solid var(--gray-100);
}

.faq-section-article h2 {
    margin-top: 0;
    padding-top: 0;
}

.faq-section-article h2::before {
    display: none;
}

/* ========================================
   KEY FACTS - Enhanced
   ======================================== */
.key-facts-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 32px 0;
}

.key-facts-header {
    background: linear-gradient(135deg, #0A1628 0%, #1A3050 100%);
    color: var(--white);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.key-facts-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-facts-header img {
    height: 48px;
    width: auto;
    object-fit: contain;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.key-facts-body {
    padding: 0;
}

.key-fact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    border-bottom: 1px solid var(--gray-100);
}

.key-fact-row:last-child {
    border-bottom: none;
}

.key-fact-row:nth-child(even) {
    background: var(--gray-100);
}

.key-fact-label {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

.key-fact-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    text-align: right;
}

/* ========================================
   RATING BREAKDOWN - Visual
   ======================================== */
.rating-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 32px 0;
}

.rating-card-header {
    background: linear-gradient(135deg, #0A1628, #1A3A5C);
    color: var(--white);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.rating-big-number {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
}

.rating-big-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rating-stars-row {
    font-size: 20px;
    letter-spacing: 2px;
}

.rating-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.rating-bars-body {
    padding: 24px 28px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.rating-bar-item:last-child {
    margin-bottom: 0;
}

.rbar-label {
    width: 130px;
    font-size: 13px;
    color: var(--dark-500);
    font-weight: 500;
    flex-shrink: 0;
}

.rbar-track {
    flex: 1;
    height: 10px;
    background: var(--gray-100);
    border-radius: 5px;
    overflow: hidden;
}

.rbar-fill {
    height: 100%;
    border-radius: 5px;
    background: var(--gradient-primary);
    transition: width 0.6s ease;
}

.rbar-value {
    width: 32px;
    text-align: right;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
}

/* ========================================
   RELATED ARTICLES
   ======================================== */
.related-section {
    margin-top: 52px;
    padding: 36px;
    background: linear-gradient(135deg, #F5F7FA 0%, #EDF1F7 100%);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
}

.related-section h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-section h3::before {
    content: '📚';
    font-size: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.related-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-link:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.1);
    transform: translateY(-2px);
}

.related-link .related-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 10px;
}

.related-link span {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-700);
    line-height: 1.4;
}

/* ========================================
   DISCLOSURE BOX
   ======================================== */
.disclosure-box {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 36px 0;
    font-size: 13px;
    line-height: 1.8;
    color: var(--gray-500);
    position: relative;
    padding-left: 28px;
}

.disclosure-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gray-300);
    border-radius: 4px 0 0 4px;
}

.disclosure-box strong {
    color: var(--dark-500);
}

/* ========================================
   BLOG CARDS - Enhanced Hub
   ======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin: 36px 0;
}

.blog-article-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.blog-article-card:hover {
    box-shadow: 0 12px 36px rgba(0, 82, 255, 0.1), 0 0 0 1px rgba(0, 82, 255, 0.15);
    transform: translateY(-6px);
    border-color: transparent;
}

.blog-card-gradient {
    height: 4px;
    background: var(--gradient-primary);
    transition: height 0.3s ease;
}

.blog-article-card:hover .blog-card-gradient {
    height: 6px;
}

.blog-card-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.blog-tag {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.blog-tag.tag-guide { background: #E3F2FD; color: #1565C0; }
.blog-tag.tag-tips { background: #E8F5E9; color: #2E7D32; }
.blog-tag.tag-review { background: #FFF3E0; color: #E65100; }
.blog-tag.tag-news { background: #F3E5F5; color: #7B1FA2; }
.blog-tag.tag-compare { background: #E8EAF6; color: #283593; }

.blog-card-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-card-content h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-card-content h3 a:hover {
    color: var(--primary);
}

.blog-card-content .blog-excerpt {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--gray-400);
}

.blog-card-footer .read-more-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.blog-card-footer .read-more-link:hover {
    gap: 8px;
}

/* ========================================
   CATEGORY CARDS - Hub pages
   ======================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.cat-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.cat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.cat-card:hover::before {
    opacity: 1;
}

.cat-card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.cat-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.cat-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.cat-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: gap 0.2s;
}

.cat-card:hover .cat-card-link {
    gap: 10px;
}

/* ========================================
   CTA BANNER - In-article
   ======================================== */
.cta-banner {
    background: linear-gradient(135deg, #0A1628 0%, #0D2847 40%, #0052FF 100%);
    border-radius: 20px;
    padding: 52px 44px;
    text-align: center;
    margin: 52px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before,
.cta-banner::after {
    display: none;
}

.cta-banner h3 {
    font-size: 30px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.3px;
}

.cta-banner p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .btn {
    position: relative;
    z-index: 1;
    background: var(--white);
    color: var(--primary) !important;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 16px 36px;
    font-size: 16px;
}

.cta-banner .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    color: var(--primary) !important;
}

/* ========================================
   STEP-BY-STEP PROCESS
   ======================================== */
.steps-vertical {
    margin: 32px 0;
    position: relative;
}

.steps-vertical::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gray-200);
}

.step-v-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    position: relative;
}

.step-v-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 82, 255, 0.3);
}

.step-v-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    margin-top: 10px;
}

.step-v-content p {
    font-size: 15px;
    color: var(--dark-500);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   CALCULATOR - Premium
   ======================================== */
.calc-premium {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin: 36px 0;
}

.calc-premium-header {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 28px 36px;
}

.calc-premium-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.calc-premium-body {
    padding: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.calc-result-highlight {
    background: linear-gradient(135deg, #E8F0FF, #F0F7FF);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
}

.calc-result-highlight .result-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.calc-result-highlight .result-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}

/* ========================================
   PAGE HERO SMALL - Legal/Contact pages
   ======================================== */
.page-hero.page-hero-sm {
    padding: 36px 0 28px;
}

.page-hero.page-hero-sm h1 {
    font-size: 34px;
}

/* ========================================
   STATS SECTION - About page
   ======================================== */
.stats-section {
    padding: 72px 0;
    background: var(--gradient-hero);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-card {
    padding: 28px 16px;
}

.stat-card .stat-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

.stat-card .stat-num {
    font-size: 40px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}

.stat-card .stat-lbl {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   CONTACT PAGE - Professional layout
   ======================================== */
.contact-section {
    padding: 56px 0 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1060px;
    margin: 0 auto;
}

.contact-form-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-form-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.contact-form-card > p {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 28px;
}

.contact-info-sidebar {
    padding-top: 8px;
}

.contact-info-sidebar h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
}

.info-card {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.2s;
}

.info-card:hover {
    background: var(--primary-light);
}

.info-card .info-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-card .info-details h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.info-card .info-details p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

.info-card .info-details a {
    color: var(--primary);
    font-weight: 600;
}

.social-links {
    margin-top: 28px;
}

.social-links h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.social-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-500);
    transition: all 0.2s;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.active {
    display: block;
}

.form-success .success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.form-success h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-success p {
    font-size: 15px;
    color: var(--gray-500);
}

/* ========================================
   ABOUT PAGE - Values and Team cards
   ======================================== */
.about-section {
    padding: 72px 0;
}

.about-section.bg-alt {
    background: var(--gray-100);
}

.about-content {
    max-width: 820px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
}

.about-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-top: 32px;
    margin-bottom: 16px;
}

.about-content p {
    font-size: 16px;
    color: var(--dark-500);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.about-content li {
    font-size: 16px;
    color: var(--dark-500);
    line-height: 1.8;
    margin-bottom: 8px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.value-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.value-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.value-card:hover::before {
    opacity: 1;
}

.value-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.value-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 0;
}

.team-roles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.role-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.2s;
}

.role-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.role-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.role-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========================================
   CONTACT FORM GROUPS
   ======================================== */
.c-form-group {
    margin-bottom: 20px;
}

.c-form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-700);
    margin-bottom: 8px;
}

.c-form-group input,
.c-form-group select,
.c-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--dark);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.c-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.c-form-group input:focus,
.c-form-group select:focus,
.c-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1);
}

.c-form-group input::placeholder,
.c-form-group textarea::placeholder {
    color: var(--gray-400);
}

.btn-contact {
    background: var(--gradient-primary);
    color: var(--white);
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(0, 82, 255, 0.3);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 82, 255, 0.4);
}

/* ========================================
   CALCULATOR PREMIUM EXTRAS
   ======================================== */
.calc-group {
    margin-bottom: 24px;
}

.calc-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-700);
    margin-bottom: 8px;
}

.calc-display {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.calc-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--dark);
    transition: border-color 0.2s;
}

.calc-group input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1);
}

.btn-calc {
    background: var(--gradient-primary);
    color: var(--white);
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(0, 82, 255, 0.3);
}

.btn-calc:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 82, 255, 0.4);
}

.results-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-top: 32px;
    display: none;
}

.results-card.active {
    display: block;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.amort-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

.amort-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 16px;
}

.amort-table th {
    background: var(--dark);
    color: var(--white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

.amort-table th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}

.amort-table th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

.amort-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--dark-500);
}

.amort-table tr:nth-child(even) {
    background: var(--gray-100);
}

.amort-table tr:last-child td:first-child {
    border-radius: 0 0 0 var(--radius-sm);
}

.amort-table tr:last-child td:last-child {
    border-radius: 0 0 var(--radius-sm) 0;
}

/* Simulator-specific */
.sim-group {
    margin-bottom: 28px;
}

.sim-group label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: var(--dark-700);
    margin-bottom: 12px;
}

.sim-display {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.sim-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.sim-radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: var(--dark-500);
}

.sim-radio-option:hover {
    border-color: var(--primary);
}

.sim-radio-option input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sim-radio-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.urgency-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 8px;
}

.sim-results {
    display: none;
    margin-top: 32px;
}

.sim-results.active {
    display: block;
}

.sim-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.rec-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
}

.rec-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.rec-card.best {
    border-color: var(--secondary);
}

.rec-card.best::before {
    content: 'Mejor opcion';
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.rec-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.rec-rating {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.rec-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.rec-detail {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.rec-detail-label {
    color: var(--gray-500);
}

.rec-detail-value {
    font-weight: 600;
    color: var(--dark-700);
}

.rec-badge {
    font-size: 12px;
    color: var(--secondary-dark);
    margin-bottom: 16px;
    font-weight: 500;
}

.rec-match {
    display: inline-block;
    background: #E8F5E9;
    color: var(--secondary-dark);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Cookie table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.cookie-table th {
    background: var(--dark);
    color: var(--white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.cookie-table th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}

.cookie-table th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

.cookie-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--dark-500);
}

.cookie-table tr:nth-child(even) {
    background: var(--gray-100);
}

.cookie-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

.cookie-type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.badge-essential { background: #E8F5E9; color: #2E7D32; }
.badge-analytics { background: #E3F2FD; color: #1565C0; }
.badge-marketing { background: #FFF3E0; color: #E65100; }

/* Rating bar (editorial page) */
.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rating-bar .rating-bar-label {
    font-size: 14px;
    color: var(--dark-500);
    min-width: 160px;
    flex-shrink: 0;
}

.rating-bar .rating-bar-track {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar .rating-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
}

.rating-bar .rating-bar-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    min-width: 40px;
    text-align: right;
}

/* Methodology card */
.methodology-card {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 24px 0;
}

.methodology-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

/* Highlight box */
.highlight-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 24px 0;
}

.highlight-box p {
    color: var(--dark-700);
    margin-bottom: 0;
}

/* Legal updated badge */
.legal-updated {
    background: var(--gray-100);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 32px;
}

/* ========================================
   ENHANCED - Table row numbering
   ======================================== */
.comparison-table tbody {
    counter-reset: table-row;
}

.comparison-table tbody tr {
    counter-increment: table-row;
}

.comparison-table tbody tr td:first-child .table-lender::before {
    content: counter(table-row);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--gray-100);
    color: var(--gray-500);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.comparison-table tbody tr:first-child td:first-child .table-lender::before {
    background: var(--gradient-primary);
    color: var(--white);
}

/* ========================================
   ENHANCED - Article quote block
   ======================================== */
.article-body blockquote {
    margin: 32px 0;
    padding: 24px 28px 24px 32px;
    background: linear-gradient(135deg, #F8FAFF 0%, #F0F5FF 100%);
    border-left: 4px solid var(--primary);
    border-radius: 0 14px 14px 0;
    font-size: 17px;
    font-style: italic;
    color: var(--dark-700);
    line-height: 1.7;
    position: relative;
}

.article-body blockquote::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 16px;
    font-size: 48px;
    color: var(--primary);
    opacity: 0.3;
    font-style: normal;
    line-height: 1;
}

/* ========================================
   ENHANCED - Section divider
   ======================================== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
    margin: 0;
    border: none;
}

/* ========================================
   ENHANCED - Lender card rank badge
   ======================================== */
.lender-rank {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 82, 255, 0.25);
}

/* ========================================
   ENHANCED - Blog card image placeholder
   ======================================== */
.blog-card-img {
    height: 180px;
    background: linear-gradient(135deg, #E8F0FF 0%, #F0F7FF 50%, #E8F5E9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.blog-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(transparent, rgba(255,255,255,0.8));
}

/* ========================================
   RESPONSIVE - Subpages
   ======================================== */
/* ========================================
   RESPONSIVE - Subpages Mobile
   ======================================== */

@media (max-width: 1024px) {
    .calc-premium-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* --- Page Hero --- */
    .page-hero {
        padding: 32px 0 28px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .page-hero .hero-desc {
        font-size: 15px;
    }

    .page-hero .hero-badge {
        font-size: 12px;
        padding: 6px 14px;
    }

    .page-hero.page-hero-sm {
        padding: 24px 0 20px;
    }

    .page-hero.page-hero-sm h1 {
        font-size: 24px;
    }

    /* --- Breadcrumb --- */
    .breadcrumb {
        padding: 10px 0;
    }

    .breadcrumb-list {
        font-size: 12px;
    }

    /* --- Article Meta Bar --- */
    .article-meta-bar {
        flex-direction: column;
        gap: 10px;
        padding: 14px 16px;
        top: -14px;
        border-radius: 10px;
    }

    .meta-divider {
        display: none;
    }

    .meta-author-avatar {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    /* --- TL;DR Box --- */
    .tldr-box {
        padding: 24px 20px;
        border-radius: 12px;
        margin-bottom: 32px;
    }

    .tldr-box ul {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .tldr-box li {
        font-size: 13px;
        line-height: 1.4;
        gap: 6px;
        padding: 3px 0;
    }

    /* --- Article Body --- */
    .article-body {
        padding: 0 0 40px;
    }

    .article-body h2 {
        font-size: 22px;
        margin: 36px 0 16px;
        padding-top: 24px;
    }

    .article-body h3 {
        font-size: 18px;
        margin: 24px 0 10px;
    }

    .article-body p {
        font-size: 15px;
        line-height: 1.75;
        margin-bottom: 16px;
    }

    .article-body ul li,
    .article-body ol li {
        font-size: 15px;
        line-height: 1.7;
        padding-left: 24px;
    }

    /* --- Callout Boxes --- */
    .callout-box {
        padding: 18px 16px;
        border-radius: 12px;
        flex-direction: column;
        gap: 10px;
    }

    .callout-box .callout-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        border-radius: 10px;
    }

    .callout-box .callout-content h4 {
        font-size: 14px;
    }

    .callout-box .callout-content p {
        font-size: 13px;
    }

    /* --- Comparison Table --- */
    .table-section {
        padding: 40px 0;
    }

    .comparison-wrapper {
        border-radius: 12px;
    }

    .comparison-table {
        font-size: 12px;
        min-width: 600px;
    }

    .comparison-table thead th {
        padding: 12px 14px;
        font-size: 10px;
    }

    .comparison-table tbody td {
        padding: 14px;
    }

    .table-lender {
        gap: 8px;
    }

    .table-lender img {
        width: 60px;
        height: 24px;
    }

    .table-lender-name {
        font-size: 13px;
    }

    .table-lender-usp {
        font-size: 10px;
    }

    .table-cta-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    /* --- Offer Cards (subpages) --- */
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }

    .card-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 14px 16px;
    }

    .card-stat {
        border-right: none;
        padding: 0;
    }

    .card-stat-label {
        font-size: 10px;
    }

    .card-stat-value {
        font-size: 14px;
    }

    .card-top {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 16px 0;
        gap: 10px;
    }

    .card-logo {
        height: 28px;
        max-width: 100px;
    }

    .card-name {
        font-size: 17px;
    }

    .card-usp {
        font-size: 12px;
    }

    .card-rating {
        font-size: 13px;
    }

    .card-bottom {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 12px 16px;
        gap: 10px;
    }

    .card-badge-row {
        justify-content: center;
        font-size: 11px;
        gap: 8px;
    }

    .card-cta {
        justify-content: center;
        font-size: 14px;
        padding: 12px 16px;
    }

    .card-ribbon {
        font-size: 10px;
        padding: 4px 10px 6px;
        right: 16px;
    }

    /* --- Steps Vertical --- */
    .step-v-item {
        gap: 14px;
    }

    .step-v-number {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .steps-vertical::before {
        left: 18px;
    }

    .step-v-content h4 {
        font-size: 16px;
        margin-top: 6px;
    }

    .step-v-content p {
        font-size: 14px;
    }

    /* --- Blog Grid --- */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-content h3 {
        font-size: 17px;
    }

    /* --- Category Grid --- */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cat-card {
        padding: 24px 20px;
    }

    /* --- Related & Disclosure --- */
    .related-section {
        padding: 24px 20px;
        margin-top: 36px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .related-link {
        padding: 12px 14px;
    }

    .disclosure-box {
        padding: 16px 20px;
        font-size: 12px;
        margin: 28px 0;
    }

    /* --- CTA Banner --- */
    .cta-banner {
        padding: 32px 20px;
        border-radius: 16px;
        margin: 36px 0;
    }

    .cta-banner h3 {
        font-size: 22px;
    }

    .cta-banner p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .cta-banner .btn {
        padding: 14px 28px;
        font-size: 14px;
        border-radius: 10px;
    }

    /* --- Rating Card --- */
    .rating-card-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .rating-big-number {
        font-size: 40px;
    }

    .rating-bars-body {
        padding: 16px 20px;
    }

    .rbar-label {
        width: 100px;
        font-size: 12px;
    }

    /* --- Key Facts --- */
    .key-facts-header {
        padding: 14px 20px;
    }

    .key-fact-row {
        padding: 12px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    /* --- Stats Section (About) --- */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .stat-card .stat-num {
        font-size: 28px;
    }

    .stat-card .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    /* --- Values/Team --- */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .value-card {
        padding: 24px 20px;
    }

    .team-roles-grid {
        grid-template-columns: 1fr;
    }

    /* --- Contact --- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-form-card {
        padding: 24px 20px;
    }

    .contact-form-card h2 {
        font-size: 20px;
    }

    /* --- Calculator --- */
    .calc-premium {
        margin: 20px 0;
    }

    .calc-premium-header {
        padding: 20px 24px;
    }

    .calc-premium-header h3 {
        font-size: 18px;
    }

    .calc-premium-body {
        padding: 24px;
        gap: 24px;
    }

    .calc-result-highlight .result-value {
        font-size: 28px;
    }

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

    .sim-radio-group {
        grid-template-columns: 1fr;
    }

    .sim-results-grid {
        grid-template-columns: 1fr;
    }

    /* --- About --- */
    .about-section {
        padding: 48px 0;
    }

    .about-content h2 {
        font-size: 24px;
    }

    .about-content p {
        font-size: 15px;
    }

    /* --- Rating Bar --- */
    .rating-bar {
        flex-wrap: wrap;
    }

    .rating-bar .rating-bar-label {
        min-width: 100%;
    }

    /* --- Legal --- */
    .legal-updated {
        padding: 12px 16px;
        font-size: 13px;
    }

    /* --- Cookie Table --- */
    .cookie-table {
        font-size: 12px;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 8px 12px;
    }

    /* --- Amortization Table --- */
    .amort-table {
        font-size: 12px;
    }

    .amort-table th,
    .amort-table td {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 24px;
    }

    .page-hero .hero-desc {
        font-size: 14px;
    }

    .article-body h2 {
        font-size: 20px;
    }

    .article-body h3 {
        font-size: 17px;
    }

    .article-body p,
    .article-body ul li,
    .article-body ol li {
        font-size: 14px;
    }

    .card-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 12px 14px;
    }

    .card-stat-value {
        font-size: 13px;
    }

    .card-top {
        padding: 14px 14px 0;
    }

    .card-bottom {
        padding: 10px 14px;
    }

    .card-name {
        font-size: 15px;
    }

    .tldr-box {
        padding: 20px 16px;
    }

    .tldr-box li {
        font-size: 12px;
    }

    .comparison-table {
        min-width: 520px;
    }

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

    .cta-banner h3 {
        font-size: 20px;
    }

    .related-section h3 {
        font-size: 16px;
    }

    .blog-card-content h3 {
        font-size: 16px;
    }

    .step-v-number {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .steps-vertical::before {
        left: 16px;
    }
}

/* ========================================
   PAGE ANIMATIONS - Smooth entrance
   ======================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-hero h1 {
    animation: fadeUp 0.6s ease-out;
}

.page-hero .hero-badge {
    animation: fadeUp 0.5s ease-out;
}

.page-hero .hero-desc {
    animation: fadeUp 0.7s ease-out 0.1s both;
}

/* Smooth content section transitions */
.article-body h2,
.table-section .section-header,
.cta-banner,
.related-section,
.faq .section-header {
    animation: fadeUp 0.5s ease-out both;
}

/* Table row stagger animation */
.comparison-table tbody tr {
    animation: fadeUp 0.4s ease-out both;
}

.comparison-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.comparison-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.comparison-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.comparison-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.comparison-table tbody tr:nth-child(5) { animation-delay: 0.25s; }

/* Blog card stagger */
.blog-article-card:nth-child(1) { animation: fadeUp 0.4s ease-out 0.05s both; }
.blog-article-card:nth-child(2) { animation: fadeUp 0.4s ease-out 0.1s both; }
.blog-article-card:nth-child(3) { animation: fadeUp 0.4s ease-out 0.15s both; }
.blog-article-card:nth-child(4) { animation: fadeUp 0.4s ease-out 0.2s both; }
.blog-article-card:nth-child(5) { animation: fadeUp 0.4s ease-out 0.25s both; }
.blog-article-card:nth-child(6) { animation: fadeUp 0.4s ease-out 0.3s both; }

/* Step animation */
.step-v-item:nth-child(1) { animation: fadeUp 0.4s ease-out 0.1s both; }
.step-v-item:nth-child(2) { animation: fadeUp 0.4s ease-out 0.2s both; }
.step-v-item:nth-child(3) { animation: fadeUp 0.4s ease-out 0.3s both; }
.step-v-item:nth-child(4) { animation: fadeUp 0.4s ease-out 0.4s both; }
.step-v-item:nth-child(5) { animation: fadeUp 0.4s ease-out 0.5s both; }

/* Smooth focus states for all interactive elements */
.table-cta-btn,
.card-cta,
.cat-card-link,
.blog-card-footer .read-more-link {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Better selection colors */
::selection {
    background: rgba(0, 82, 255, 0.15);
    color: var(--dark);
}
