/*
Theme Name: crdpay theme
Theme URI: https://crdpay.com/
Author: MD Zubayer Al Hasan
Author URI: https://www.linkedin.com/in/jubayerdev
Description: A modern, lightweight, high-performance WordPress theme for the CRDPay online tools platform.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.2
License: GPL-2.0-or-later
Text Domain: crdpay-theme
*/

/* -------------------------------------------------------------
   1. RESET & DESIGN TOKENS
   ------------------------------------------------------------- */
:root {
    --crdpay-primary: #2563eb;
    --crdpay-primary-hover: #1d4ed8;
    --crdpay-primary-light: #eff6ff;
    --crdpay-accent: #4f46e5;
    --crdpay-dark: #0f172a;
    --crdpay-dark-surface: #0a0e17;
    --crdpay-bg: #ffffff;
    --crdpay-bg-subtle: #f8fafc;
    --crdpay-surface: #ffffff;
    --crdpay-text-main: #1e293b;
    --crdpay-text-muted: #64748b;
    --crdpay-border: #e2e8f0;
    --crdpay-border-subtle: #f1f5f9;
    --crdpay-radius-sm: 6px;
    --crdpay-radius-md: 10px;
    --crdpay-radius-lg: 16px;
    --crdpay-radius-xl: 20px;
    --crdpay-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --crdpay-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --crdpay-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --crdpay-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --crdpay-max-w: 1360px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-family: var(--crdpay-font-sans);
    line-height: 1.5;
    background-color: #ffffff;
    color: var(--crdpay-text-main);
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main#primary {
    flex: 1 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.crdpay-container {
    width: 100%;
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}

@media (max-width: 1023px) {
    .crdpay-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 767px) {
    .crdpay-container {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* -------------------------------------------------------------
   2. HEADER & NAVIGATION (Glassmorphic Sticky SaaS Bar)
   ------------------------------------------------------------- */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 20px -2px rgba(11, 23, 57, 0.05);
    transition: all 0.2s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.75rem;
    gap: 1.5rem;
    position: relative;
}

.site-branding {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    justify-content: flex-start;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.custom-logo-link:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.custom-logo-link img.custom-logo,
.site-branding img.custom-logo {
    display: block;
    height: 44px;
    width: auto;
    max-height: 48px;
    max-width: 200px;
    object-fit: contain;
}

@media (max-width: 640px) {
    .custom-logo-link img.custom-logo,
    .site-branding img.custom-logo {
        height: 38px;
        max-width: 165px;
    }
}

.crdpay-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s ease;
}

.crdpay-logo-link:hover {
    transform: translateY(-1px);
}

.crdpay-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.logo-bold {
    color: #1e293b;
}

.logo-light {
    color: #2563eb;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: static;
}

.main-navigation > ul.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item:hover, .nav-item.is-active {
    color: #2563eb;
    font-weight: 600;
}

.nav-dropdown-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s ease;
}

.nav-dropdown-btn:hover,
.nav-dropdown-btn:focus-visible,
.menu-item-has-children.is-open .nav-dropdown-btn {
    color: #2563eb;
    font-weight: 600;
}

.dropdown-chevron {
    transition: transform 0.2s ease;
}

.menu-item-has-children:hover .dropdown-chevron,
.menu-item-has-children.is-open .dropdown-chevron {
    transform: rotate(180deg);
}

.menu-item-has-children {
    position: relative;
}

/* Hover bridge to keep dropdown open when moving cursor down */
.menu-item-has-children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -10px;
    right: -10px;
    height: 16px;
}

/* Standard Dropdown Fallback */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    transform: none;
    background: #ffffff;
    border: 1px solid var(--crdpay-border);
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(11, 23, 57, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    width: 540px;
    padding: 0.875rem;
    z-index: 99999;
    list-style: none;
    margin: 0;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children.is-open > .sub-menu {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.375rem !important;
    align-items: stretch !important;
    animation: crdpayFadeDown 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.main-navigation .sub-menu li {
    padding: 0;
    margin: 0;
    list-style: none;
    display: block;
}

.main-navigation .sub-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.835rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.main-navigation .sub-menu a:hover {
    background: #eff6ff;
    color: #2563eb;
}

/* =============================================================
   CRDPAY FULL-CONTAINER MEGA MENU (ALL TOOLS BY CATEGORY)
   ============================================================= */
@media (min-width: 1024px) {
    .crdpay-megamenu-item {
        position: static !important;
    }
}

.crdpay-megamenu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    box-shadow: 0 30px 70px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    z-index: 10000;
    box-sizing: border-box;
    isolation: isolate;
}

@media (min-width: 1024px) {
    .crdpay-megamenu-item:hover > .crdpay-megamenu-dropdown {
        display: block !important;
        animation: crdpayFadeDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .crdpay-megamenu-item.is-open > .crdpay-megamenu-dropdown {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Mega Menu Header */
.crdpay-megamenu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.crdpay-megamenu-header-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.megamenu-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.825rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
}

.megamenu-subtext {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.megamenu-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.megamenu-view-all-link:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Mega Menu Scrollable Body */
.crdpay-megamenu-scroll-container {
    max-height: 530px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 0.35rem 0.5rem 0;
    margin-top: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.crdpay-megamenu-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.crdpay-megamenu-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.crdpay-megamenu-scroll-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 9999px;
}

/* Grid: 4 continuous waterfall column tracks (Masonry layout, zero vertical gaps) */
.crdpay-megamenu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
    align-items: start;
}

.crdpay-megamenu-track {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

/* Category Card Column */
.crdpay-megamenu-col {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.crdpay-megamenu-col:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.06);
}

.crdpay-megamenu-cat-head {
    margin-bottom: 0.5rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #e2e8f0;
}

.crdpay-megamenu-cat-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #0f172a;
}

.cat-pill-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.cat-pill-icon svg {
    width: 14px;
    height: 14px;
    color: #2563eb;
    display: inline-block;
}

.tip-icon svg {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

.cat-pill-text {
    font-size: 0.825rem;
    font-weight: 700;
    color: #0f172a;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crdpay-megamenu-col:hover .cat-pill-text {
    color: #2563eb;
}

.cat-pill-count {
    font-size: 0.7rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
    padding: 0.1rem 0.45rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.crdpay-megamenu-col:hover .cat-pill-count {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Tool Links List */
.crdpay-megamenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.175rem;
    flex: 1;
}

.crdpay-megamenu-list li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.crdpay-megamenu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.45rem;
    border-radius: 6px;
    font-size: 0.785rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: all 0.12s ease;
    line-height: 1.35;
}

.tool-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.15s, background 0.15s;
}

.crdpay-megamenu-link:hover {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
    padding-left: 0.65rem;
}

.crdpay-megamenu-link:hover .tool-dot {
    background: #2563eb;
    transform: scale(1.6);
}

.crdpay-megamenu-link .tool-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crdpay-megamenu-cat-footer {
    margin-top: 0.5rem;
    padding-top: 0.35rem;
    border-top: 1px dashed #e2e8f0;
    text-align: right;
}

.cat-more-link {
    font-size: 0.725rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.15s, transform 0.15s;
}

.cat-more-link:hover {
    color: #1d4ed8;
    transform: translateX(2px);
}

/* Mega Menu Footer */
.crdpay-megamenu-footer {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
}

.megamenu-footer-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.megamenu-footer-links {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 600;
}

.megamenu-footer-links a {
    color: #475569;
    text-decoration: none;
    transition: color 0.15s;
}

.megamenu-footer-links a:hover {
    color: #2563eb;
}

.bullet-sep {
    color: #cbd5e1;
}

/* Mobile & Tablet (< 1024px) */
@media (max-width: 1023px) {
    .main-navigation .sub-menu {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        border-radius: 12px;
        grid-template-columns: 1fr;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }

    .crdpay-megamenu-item {
        position: relative;
        width: 100%;
    }

    .crdpay-megamenu-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background: #ffffff;
        padding: 0.875rem;
        margin-top: 0.5rem;
        max-height: 480px;
        overflow-y: auto;
        display: none;
    }

    .crdpay-megamenu-item.is-open > .crdpay-megamenu-dropdown {
        display: block !important;
    }

    .crdpay-megamenu-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .crdpay-megamenu-scroll-container {
        max-height: none;
        padding: 0.5rem 0;
    }

    .crdpay-megamenu-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .crdpay-megamenu-track {
        display: contents;
    }

    .crdpay-megamenu-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.header-right-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 0;
    gap: 0.75rem;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 9999px;
    padding: 0.25rem 0.5rem 0.25rem 0.875rem;
    width: 250px;
}

.header-search-input {
    border: none;
    background: transparent;
    font-size: 0.8125rem;
    color: #1e293b;
    width: 100%;
    outline: none;
}

.header-search-btn {
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
}

.lang-switch-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
}

.lang-switch-btn:hover {
    border-color: #cbd5e1;
    color: #1e293b;
}

.btn-browse-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #2563eb;
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.125rem;
    border-radius: 9999px;
    transition: background-color 0.15s;
}

.btn-browse-tools:hover {
    background: #1d4ed8;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #cbd5e1;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    cursor: pointer;
}

@media (max-width: 992px) {
    .header-inner {
        gap: 0.75rem;
    }
    .site-branding {
        flex: 0 0 auto;
    }
    .header-right-actions {
        order: 2;
        margin-left: auto;
        flex: 0 0 auto;
    }
    .main-navigation {
        order: 3;
        flex: 0 0 auto;
    }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .main-navigation ul,
    .main-navigation > ul.nav-menu {
        display: none;
    }
    .main-navigation.is-open > ul.nav-menu {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 1.25rem 1.5rem;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
        border: 1px solid #e2e8f0;
        border-top: none;
        gap: 1rem;
        z-index: 9999;
    }
    .header-search-form { display: none; }
}

@media (max-width: 480px) {
    .header-inner {
        gap: 0.5rem;
    }
    .site-branding img.custom-logo,
    .custom-logo-link img.custom-logo {
        height: 30px;
        max-width: 115px;
    }
    .btn-browse-tools {
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    .menu-toggle {
        padding: 0.35rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* -------------------------------------------------------------
   3. HERO SECTION (SaaS Style, 1360px Container)
   ------------------------------------------------------------- */
/* -------------------------------------------------------------
   3. HERO SECTION (SaaS Style, 1360px Container, High-End Visuals)
   ------------------------------------------------------------- */
.crd-hero-section {
    padding: 4.5rem 0 5rem;
    background: radial-gradient(120% 80% at 50% 0%, #f0f7ff 0%, #f8faff 45%, #ffffff 100%);
    overflow: hidden;
    position: relative;
}

.crd-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1400px;
    height: 480px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(99, 102, 241, 0.03) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.hero-pill-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.badge-blue-pill {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 0.4rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-blue-pill::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 8px #2563eb;
}

.badge-gray-pill {
    background: rgba(255, 255, 255, 0.9);
    color: #334155;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.hero-main-title {
    font-size: 3.85rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #0b1739;
    margin: 0 0 1.35rem;
}

@media (max-width: 768px) {
    .hero-main-title {
        font-size: 2.5rem;
        line-height: 1.15;
    }
}

.gradient-blue-text {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 40%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.68;
    margin: 0 0 2rem;
    max-width: 39rem;
}

.hero-search-wrapper {
    margin-bottom: 1.35rem;
    max-width: 500px;
}

.hero-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--crdpay-radius-lg);
    padding: 0.35rem 0.4rem 0.35rem 1.15rem;
    box-shadow: 0 12px 28px -8px rgba(37, 99, 235, 0.12), 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-search-form:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 16px 32px -8px rgba(37, 99, 235, 0.16);
    transform: translateY(-1px);
}

.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #0f172a;
    background: transparent;
    font-weight: 500;
}

.hero-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.9rem;
}

.hero-search-submit {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: #ffffff;
    border-radius: 10px;
    padding: 0.65rem 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

.hero-search-submit:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.35);
}

.hero-popular-searches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0;
    font-size: 0.875rem;
}

.search-label {
    color: #64748b;
    font-weight: 600;
}

.search-tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.search-pill {
    background: rgba(255, 255, 255, 0.85);
    color: #334155;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
}

.search-pill:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    transform: translateY(-1px);
}

/* Hero Right: Mockup Illustration with Floating Badges & Animations */
.hero-visual-card {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}

.hero-avatar-wrapper {
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at 50% 45%, #dbeafe 0%, #eff6ff 40%, #ffffff 75%);
    box-shadow: 0 24px 50px -15px rgba(37, 99, 235, 0.12);
    border: 4px solid #ffffff;
}

.hero-person-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hero-visual-card:hover .hero-person-img {
    transform: scale(1.02);
}

/* Floating Animations */
@keyframes floatSlow1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes floatSlow2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
}

.float-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 0.75rem 1.25rem;
    border-radius: 18px;
    box-shadow: 0 18px 38px -10px rgba(11, 23, 57, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.float-badge:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 24px 44px -8px rgba(11, 23, 57, 0.2);
    border-color: #bfdbfe;
}

.float-badge strong {
    display: block;
    font-size: 0.875rem;
    color: #0b1739;
    font-weight: 700;
    line-height: 1.3;
}

.float-badge span {
    display: block;
    font-size: 0.725rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

/* 4-Corner Balanced Hero Widget Badges */
.float-loan {
    top: 20px;
    left: -25px;
    animation: floatSlow1 4.5s ease-in-out infinite;
}

.float-percent {
    top: 20px;
    right: -25px;
    animation: floatSlow2 5s ease-in-out infinite 0.5s;
}

.float-days {
    bottom: 25px;
    left: -25px;
    animation: floatSlow2 4.2s ease-in-out infinite 1s;
}

.float-currency {
    bottom: 25px;
    right: -25px;
    animation: floatSlow1 4.8s ease-in-out infinite 1.5s;
}

@media (max-width: 640px) {
    .float-badge {
        padding: 0.5rem 0.85rem;
        border-radius: 14px;
    }
    .float-badge strong {
        font-size: 0.775rem;
    }
    .float-badge span {
        font-size: 0.65rem;
    }
    .float-loan {
        top: 10px;
        left: -10px;
    }
    .float-percent {
        top: 10px;
        right: -10px;
    }
    .float-days {
        bottom: 15px;
        left: -10px;
    }
    .float-currency {
        bottom: 15px;
        right: -10px;
    }
}

/* -------------------------------------------------------------
   4. SECTION HEADINGS & BUTTONS
   ------------------------------------------------------------- */
.home-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-top-pill {
    display: inline-block;
    font-size: 0.725rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2563eb;
    background: #eff6ff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
    border: 1px solid #dbeafe;
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.25rem;
    gap: 1.5rem;
}

.section-title {
    font-size: 2.125rem;
    font-weight: 800;
    color: #0b1739;
    margin: 0 0 0.5rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0;
    max-width: 42rem;
}

.view-all-link {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.view-all-link:hover {
    color: #1d4ed8;
    background: #eff6ff;
    transform: translateX(2px);
}

/* -------------------------------------------------------------
   5. POPULAR TOOL CATEGORIES (10 Color Cards)
   ------------------------------------------------------------- */
.category-pills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (min-width: 640px) { .category-pills-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .category-pills-grid { grid-template-columns: repeat(5, 1fr); } }

.cat-pill-card {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 1.15rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--crdpay-radius-lg);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.cat-pill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(248, 250, 252, 0) 100%);
    pointer-events: none;
}

.cat-pill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -6px rgba(11, 23, 57, 0.1), 0 0 0 1px #93c5fd;
    border-color: #60a5fa;
}

.cat-card-arrow {
    margin-left: auto;
    font-size: 0.9rem;
    color: #cbd5e1;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateX(-4px);
}

.cat-pill-card:hover .cat-card-arrow {
    opacity: 1;
    color: #2563eb;
    transform: translateX(0);
}

.cat-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.cat-icon-box svg {
    width: 20px;
    height: 20px;
}

.cat-pill-card:hover .cat-icon-box {
    transform: scale(1.08) rotate(3deg);
}

.cat-pill-info {
    flex: 1;
}

.cat-pill-info strong {
    display: block;
    font-size: 0.925rem;
    font-weight: 700;
    color: #0b1739;
    line-height: 1.3;
}

.cat-pill-info span {
    font-size: 0.785rem;
    color: #64748b;
    font-weight: 500;
}

/* Category Icon Colors */
.cat-finance .cat-icon-box { background: #ecfdf5; color: #059669; }
.cat-datetime .cat-icon-box { background: #f5f3ff; color: #7c3aed; }
.cat-percentage .cat-icon-box { background: #fffbeb; color: #d97706; }
.cat-loan .cat-icon-box { background: #eff6ff; color: #2563eb; }
.cat-converters .cat-icon-box { background: #ecfeff; color: #0891b2; }
.cat-business .cat-icon-box { background: #fff1f2; color: #e11d48; }
.cat-education .cat-icon-box { background: #eff6ff; color: #2563eb; }
.cat-health .cat-icon-box { background: #fef2f2; color: #dc2626; }
.cat-realestate .cat-icon-box { background: #fefce8; color: #ca8a04; }
.cat-productivity .cat-icon-box { background: #eff6ff; color: #2563eb; }

/* -------------------------------------------------------------
   6. SPECIAL OFFER / VALUE PROMO BANNER
   ------------------------------------------------------------- */
.crd-promo-banner {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #f3f0ff 100%);
    border: 1.5px solid #ddd6fe;
    border-radius: var(--crdpay-radius-xl);
    padding: 2.25rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.08);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .crd-promo-banner { flex-direction: column; align-items: flex-start; padding: 1.75rem; }
}

.promo-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.promo-gift-icon {
    flex-shrink: 0;
}

.gift-box-visual {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 20px -4px rgba(124, 58, 237, 0.35);
}

.gift-icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-icon-svg svg {
    width: 28px;
    height: 28px;
    stroke: #ffffff;
}

.gift-floating-percent {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
    border: 2px solid #ffffff;
}

.promo-tag {
    font-size: 0.725rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #7c3aed;
    background: #ffffff;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 0.35rem;
    border: 1px solid #ddd6fe;
}

.promo-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e1b4b;
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
}

.promo-text {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    max-width: 40rem;
}

.promo-btn {
    background: #6366f1;
    color: #ffffff !important;
    padding: 0.85rem 1.75rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.promo-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.45);
}

/* -------------------------------------------------------------
   7. MOST POPULAR TOOLS (6 Columns Grid on Desktop)
   ------------------------------------------------------------- */
.tools-six-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
}

@media (min-width: 640px) { .tools-six-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .tools-six-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .tools-six-grid { grid-template-columns: repeat(6, 1fr); } }

.tool-white-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--crdpay-radius-lg);
    padding: 1.35rem 1.15rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    position: relative;
}

.tool-white-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -8px rgba(11, 23, 57, 0.12), 0 0 0 1px #93c5fd;
    border-color: #60a5fa;
}

.tool-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.tool-card-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tool-card-icon-box svg {
    width: 20px;
    height: 20px;
}

.tool-icon-blue { background: #eff6ff; color: #2563eb; }
.tool-icon-purple { background: #f5f3ff; color: #7c3aed; }
.tool-icon-green { background: #ecfdf5; color: #059669; }
.tool-icon-indigo { background: #eef2ff; color: #4f46e5; }
.tool-icon-red { background: #fef2f2; color: #dc2626; }

.tool-card-cat-badge {
    font-size: 0.685rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.card-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.tool-white-card:hover .card-arrow {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateX(3px);
}

.tool-card-name {
    font-size: 0.985rem;
    font-weight: 700;
    color: #0b1739;
    margin: 0 0 0.35rem;
    line-height: 1.35;
    letter-spacing: -0.015em;
}

.tool-card-text {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0 0 1.15rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* -------------------------------------------------------------
   8. DARK ACTION BANNER (Plan Smarter. Calculate Faster.)
   ------------------------------------------------------------- */
.dark-cta-card {
    background: linear-gradient(135deg, #090e1f 0%, #0f172a 40%, #1e1b4b 75%, #1e3a8a 100%);
    border-radius: 32px;
    padding: 3.5rem 3.75rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(11, 23, 57, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 992px) {
    .dark-cta-card { grid-template-columns: 1fr; padding: 2.5rem; gap: 2rem; }
    .dark-cta-mockup { display: none; }
}

.dark-badge-pill {
    display: inline-block;
    font-size: 0.725rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #93c5fd;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dark-cta-title {
    font-size: 2.65rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1rem;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.dark-cta-subtitle {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin: 0 0 2rem;
    line-height: 1.65;
}

.dark-cta-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-dark-cta {
    background: #ffffff;
    color: #090e1f !important;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.btn-dark-cta:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.btn-dark-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.85rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.btn-dark-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

/* Interactive Calculator Mockup Window */
.mockup-dashboard-window {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    color: #0b1739;
    box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.45);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.mockup-window-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.15rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.mockup-window-header .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.dot-red { background: #f87171; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }

.mockup-header-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-left: 0.5rem;
}

.mockup-input-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.mock-label {
    display: block;
    font-size: 0.685rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.mock-input-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    font-size: 0.775rem;
    font-weight: 700;
    color: #0f172a;
}

.mockup-result-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 1rem 1.15rem;
}

.mockup-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.mock-result-caption {
    font-size: 0.725rem;
    font-weight: 700;
    color: #1e40af;
}

.mock-result-val {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1.1;
}

.mock-rate-badge {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
}

.mock-progress-bar {
    height: 8px;
    background: #ffffff;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.mock-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 9999px;
}

.mock-progress-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.685rem;
    color: #475569;
    font-weight: 600;
}

.mockup-float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 0.55rem 0.95rem;
    font-size: 0.775rem;
    font-weight: 700;
    color: #0b1739;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.25);
    border: 1px solid #e2e8f0;
}

.mockup-float-card.float-cal {
    bottom: -18px;
    left: -20px;
}

.mockup-float-card.float-stat {
    top: -18px;
    right: -20px;
}

.mini-icon-badge {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mini-icon-badge.bg-green { background: #ecfdf5; color: #059669; }
.mini-icon-badge.bg-purple { background: #f5f3ff; color: #7c3aed; }
.mini-icon-badge svg { width: 14px; height: 14px; }

/* -------------------------------------------------------------
   9. HOW IT WORKS (3 Balanced Steps with Sleek Desktop Arrows)
   ------------------------------------------------------------- */
.how-it-works-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .how-it-works-steps {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
}

.step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--crdpay-radius-lg);
    padding: 2.25rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px -8px rgba(11, 23, 57, 0.1), 0 0 0 1px #93c5fd;
    border-color: #60a5fa;
}

.step-number-tag {
    font-size: 0.685rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
}

.step-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.step-icon-circle svg {
    width: 24px;
    height: 24px;
}

.step-icon-1 { background: #eff6ff; color: #2563eb; }
.step-icon-2 { background: #f5f3ff; color: #7c3aed; }
.step-icon-3 { background: #ecfdf5; color: #059669; }

.step-details {
    flex: 1;
}

.step-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0b1739;
    margin: 0 0 0.45rem;
    letter-spacing: -0.015em;
}

.step-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

.step-arrow {
    display: none;
}

@media (min-width: 768px) {
    .step-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        padding: 0 0.5rem;
    }
}

/* -------------------------------------------------------------
   10. THUMBNAIL CATEGORIES (Explore Tools by Category, 5 Cols)
   ------------------------------------------------------------- */
.thumb-categories-five-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (min-width: 640px) { .thumb-categories-five-grid { grid-template-columns: repeat(3, 1fr); gap: 1.35rem; } }
@media (min-width: 1024px) { .thumb-categories-five-grid { grid-template-columns: repeat(5, 1fr); gap: 1.35rem; } }

.thumb-cat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
}

.thumb-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.thumb-img-wrapper {
    height: 148px;
    width: 100%;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
    border-radius: 17px 17px 0 0;
}

.thumb-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.thumb-cat-card:hover .thumb-img-wrapper img {
    transform: scale(1.08);
}

.thumb-img-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.32) 0%, rgba(15, 23, 42, 0.02) 45%, rgba(15, 23, 42, 0.45) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.thumb-pill-frosted {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #0b1739;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
    z-index: 2;
}

.thumb-pill-frosted .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563eb;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.thumb-cat-body {
    position: relative;
    padding: 1.15rem 1.1rem 0.95rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 0 0 17px 17px;
}

.thumb-floating-icon {
    position: absolute;
    top: -20px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.thumb-floating-icon svg {
    width: 18px;
    height: 18px;
}

.thumb-cat-card:hover .thumb-floating-icon {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.thumb-cat-content {
    margin-bottom: 0.75rem;
}

.thumb-cat-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0b1739;
    margin: 0 0 0.3rem;
    letter-spacing: -0.015em;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.thumb-cat-card:hover .thumb-cat-body h4 {
    color: #2563eb;
}

.thumb-cat-body p {
    font-size: 0.775rem;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

.thumb-cat-footer {
    padding-top: 0.65rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.thumb-cat-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.thumb-cat-cta .cat-arrow {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.thumb-cat-card:hover .thumb-cat-cta {
    color: #2563eb;
}

.thumb-cat-card:hover .thumb-cat-cta .cat-arrow {
    transform: translateX(4px);
}

/* Category Accent Palette */
.cat-accent-blue .thumb-floating-icon { color: #2563eb; background: #eff6ff; border-color: #dbeafe; }
.cat-accent-blue .pulse-dot { background: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25); }
.cat-accent-blue:hover { border-color: #93c5fd; }

.cat-accent-sky .thumb-floating-icon { color: #0284c7; background: #f0f9ff; border-color: #e0f2fe; }
.cat-accent-sky .pulse-dot { background: #0284c7; box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25); }
.cat-accent-sky:hover { border-color: #7dd3fc; }

.cat-accent-purple .thumb-floating-icon { color: #7c3aed; background: #f5f3ff; border-color: #ede9fe; }
.cat-accent-purple .pulse-dot { background: #7c3aed; box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.25); }
.cat-accent-purple:hover { border-color: #c4b5fd; }

.cat-accent-emerald .thumb-floating-icon { color: #059669; background: #ecfdf5; border-color: #d1fae5; }
.cat-accent-emerald .pulse-dot { background: #059669; box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.25); }
.cat-accent-emerald:hover { border-color: #6ee7b7; }

.cat-accent-orange .thumb-floating-icon { color: #ea580c; background: #fff7ed; border-color: #ffedd5; }
.cat-accent-orange .pulse-dot { background: #ea580c; box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25); }
.cat-accent-orange:hover { border-color: #fdba74; }

.cat-accent-indigo .thumb-floating-icon { color: #4f46e5; background: #eef2ff; border-color: #e0e7ff; }
.cat-accent-indigo .pulse-dot { background: #4f46e5; box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.25); }
.cat-accent-indigo:hover { border-color: #a5b4fc; }

.cat-accent-amber .thumb-floating-icon { color: #d97706; background: #fffbeb; border-color: #fef3c7; }
.cat-accent-amber .pulse-dot { background: #d97706; box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.25); }
.cat-accent-amber:hover { border-color: #fcd34d; }

.cat-accent-rose .thumb-floating-icon { color: #e11d48; background: #fff1f2; border-color: #ffe4e6; }
.cat-accent-rose .pulse-dot { background: #e11d48; box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.25); }
.cat-accent-rose:hover { border-color: #fda4af; }

.cat-accent-teal .thumb-floating-icon { color: #0d9488; background: #f0fdfa; border-color: #ccfbf1; }
.cat-accent-teal .pulse-dot { background: #0d9488; box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.25); }
.cat-accent-teal:hover { border-color: #5eead4; }

.cat-accent-violet .thumb-floating-icon { color: #6366f1; background: #f5f3ff; border-color: #ede9fe; }
.cat-accent-violet .pulse-dot { background: #6366f1; box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25); }
.cat-accent-violet:hover { border-color: #a5b4fc; }

/* -------------------------------------------------------------
   11. WHY CHOOSE CRDPAY (Split Layout + 4 Features + 4 Stats + Testimonial)
   ------------------------------------------------------------- */
.why-us-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .why-us-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

.why-left-visual {
    position: relative;
}

.why-visual-frame {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(11, 23, 57, 0.14);
    border: 6px solid #ffffff;
    background: #ffffff;
    position: relative;
}

.why-user-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.why-visual-frame:hover .why-user-photo {
    transform: scale(1.03);
}

.why-float-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 0.55rem 0.95rem;
    font-size: 0.785rem;
    font-weight: 700;
    color: #0b1739;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 24px -5px rgba(0, 0, 0, 0.18);
    border: 1px solid #e2e8f0;
}

.why-float-top {
    top: 18px;
    left: 18px;
}

.why-float-bottom {
    bottom: 18px;
    right: 18px;
}

.why-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.why-four-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.15rem;
}

@media (min-width: 640px) {
    .why-four-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.why-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--crdpay-radius-lg);
    padding: 1.25rem 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.why-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -6px rgba(11, 23, 57, 0.08), 0 0 0 1px #93c5fd;
    border-color: #60a5fa;
}

.why-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.why-icon-box svg {
    width: 22px;
    height: 22px;
}

.feature-icon-green { background: #ecfdf5; color: #059669; }
.feature-icon-blue { background: #eff6ff; color: #2563eb; }
.feature-icon-purple { background: #f5f3ff; color: #7c3aed; }
.feature-icon-orange { background: #fff7ed; color: #ea580c; }

.why-item-card strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0b1739;
    margin-bottom: 0.25rem;
}

.why-item-card p {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

/* Why Choose CRDPay Bottom Row: 4 Stats (Left) + Testimonial (Right) */
.why-bottom-row {
    display: grid;
    grid-template-columns: 1.62fr 0.98fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-top: 2.75rem;
}

@media (max-width: 1100px) {
    .why-bottom-row { grid-template-columns: 1fr; gap: 1.5rem; }
}

.why-stats-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .why-stats-strip { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

.why-stat-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.25rem 1.15rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
    position: relative;
}

.why-stat-box:hover {
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: 0 14px 28px -6px rgba(37, 99, 235, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.stat-box-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.stat-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.stat-icon-wrap svg {
    width: 20px;
    height: 20px;
}

.stat-icon-blue { background: #eff6ff; color: #2563eb; border-color: #dbeafe; }
.stat-icon-purple { background: #f5f3ff; color: #7c3aed; border-color: #ede9fe; }
.stat-icon-sky { background: #f0f9ff; color: #0284c7; border-color: #e0f2fe; }
.stat-icon-green { background: #ecfdf5; color: #059669; border-color: #d1fae5; }

.stat-mini-badge {
    font-size: 0.685rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    line-height: 1;
    letter-spacing: -0.01em;
}

.badge-blue { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }
.badge-purple { background: #f5f3ff; color: #7c3aed; border: 1px solid #ede9fe; }
.badge-sky { background: #f0f9ff; color: #0284c7; border: 1px solid #e0f2fe; }
.badge-green { background: #ecfdf5; color: #059669; border: 1px solid #d1fae5; }

.stat-box-mid {
    margin-bottom: 0.65rem;
}

.why-stat-box .stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0b1739;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 0.2rem;
}

.why-stat-box .stat-label {
    display: block;
    font-size: 0.825rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.3;
}

.stat-box-bot {
    padding-top: 0.65rem;
    border-top: 1px solid #f1f5f9;
}

.why-stat-box .stat-desc {
    font-size: 0.745rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Testimonial Card */
.why-testimonial-box {
    background: linear-gradient(145deg, #f0f7ff 0%, #e0f2fe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    padding: 1.45rem 1.65rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.06);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-testimonial-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -8px rgba(37, 99, 235, 0.15);
}

.why-testimonial-quote-watermark {
    position: absolute;
    top: 14px;
    right: 18px;
    color: #3b82f6;
    opacity: 0.12;
    pointer-events: none;
}

.why-testimonial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.why-testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
    display: inline-flex;
    gap: 2px;
}

.why-testimonial-pill {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    color: #0369a1;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.22rem 0.6rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.why-testimonial-pill .live-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.why-testimonial-quote {
    font-size: 0.925rem;
    color: #0f172a;
    line-height: 1.55;
    margin: 0 0 1rem;
    font-style: normal;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.why-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.why-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

.why-testimonial-name-row {
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
}

.why-testimonial-name {
    font-size: 0.925rem;
    font-weight: 700;
    color: #0b1739;
}

.why-testimonial-role {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.15rem;
}

/* -------------------------------------------------------------
   12. LATEST ARTICLES (SaaS 3-Column Responsive Grid)
   ------------------------------------------------------------- */
.articles-tri-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .articles-tri-grid { grid-template-columns: repeat(3, 1fr); }
}

.article-snippet-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--crdpay-radius-lg);
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.article-snippet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(11, 23, 57, 0.12), 0 0 0 1px #93c5fd;
    border-color: #60a5fa;
}

.article-thumb {
    height: 210px;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-snippet-card:hover .article-thumb img {
    transform: scale(1.08);
}

.article-cat-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.685rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-info {
    padding: 1.5rem 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0b1739;
    margin: 0 0 0.65rem;
    line-height: 1.35;
}

.article-title a {
    color: inherit;
    transition: color 0.15s;
}

.article-title a:hover {
    color: #2563eb;
}

.article-excerpt {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1.15rem;
    line-height: 1.55;
    flex: 1;
}

.article-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.85rem;
}

.article-meta {
    font-size: 0.775rem;
    color: #94a3b8;
    font-weight: 500;
}

.article-read-arrow {
    color: #2563eb;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.article-snippet-card:hover .article-read-arrow {
    transform: translateX(4px);
}

/* -------------------------------------------------------------
   13. FAQ 2-COLUMN ACCORDION
   ------------------------------------------------------------- */
.faq-two-col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .faq-two-col-grid { grid-template-columns: repeat(2, 1fr); }
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: var(--crdpay-radius-lg);
    background: #ffffff;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.faq-accordion-item:hover {
    border-color: #cbd5e1;
}

.faq-accordion-item.is-open {
    border-color: #93c5fd;
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.08);
}

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 700;
    color: #0b1739;
    cursor: pointer;
    line-height: 1.35;
    gap: 1rem;
}

.faq-trigger:hover {
    color: #2563eb;
}

.faq-chevron {
    color: #64748b;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    display: flex;
    align-items: center;
}

.faq-accordion-item.is-open .faq-chevron {
    transform: rotate(180deg);
    color: #2563eb;
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

.faq-accordion-item.is-open .faq-answer {
    display: block;
}

/* -------------------------------------------------------------
   14. NEWSLETTER CTA BANNER (Matching Mockup: Lavender & Purple)
   ------------------------------------------------------------- */
.newsletter-cta-banner {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1.5px solid #ddd6fe;
    border-radius: var(--crdpay-radius-xl);
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    box-shadow: 0 8px 24px -6px rgba(124, 58, 237, 0.08);
}

@media (max-width: 900px) {
    .newsletter-cta-banner { flex-direction: column; align-items: flex-start; padding: 1.75rem; }
    .newsletter-right { width: 100%; }
}

.newsletter-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.news-icon-square {
    width: 54px;
    height: 54px;
    background: #ffffff;
    border: 1.5px solid #ddd6fe;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12);
}

.news-icon-square svg {
    width: 26px;
    height: 26px;
}

.news-top-pill {
    display: inline-block;
    font-size: 0.685rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #7c3aed;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    margin-bottom: 0.25rem;
    border: 1px solid #ddd6fe;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e1b4b;
    margin: 0 0 0.3rem;
}

.news-desc {
    font-size: 0.885rem;
    color: #64748b;
    margin: 0;
    max-width: 32rem;
    line-height: 1.5;
}

.newsletter-right {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-input {
    padding: 0.8rem 1.25rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 9999px;
    font-size: 0.9375rem;
    outline: none;
    min-width: 280px;
    background: #ffffff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.newsletter-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.newsletter-submit {
    background: #6366f1;
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    transition: background 0.15s, transform 0.15s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.newsletter-submit:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.newsletter-trust-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.725rem;
    color: #7c3aed;
    font-weight: 600;
    padding-left: 0.5rem;
}

/* Universal SVG and Color Helpers for CRDPay Homepage Components */
.w-3 { width: 0.75rem !important; }
.h-3 { height: 0.75rem !important; }
.w-4 { width: 1rem !important; }
.h-4 { height: 1rem !important; }
.w-5 { width: 1.25rem !important; }
.h-5 { height: 1.25rem !important; }
.w-6 { width: 1.5rem !important; }
.h-6 { height: 1.5rem !important; }

.bg-blue-500 { background-color: #3b82f6 !important; }
.bg-purple-500 { background-color: #8b5cf6 !important; }
.bg-amber-500 { background-color: #f59e0b !important; }
.bg-indigo-500 { background-color: #6366f1 !important; }
.text-white { color: #ffffff !important; }

/* -------------------------------------------------------------
   HOMEPAGE POLISH & SECTION ARCHITECTURE (SaaS Spacing Rhythm)
   ------------------------------------------------------------- */
.crdpay-homepage {
    width: 100%;
}

/* Section Rhythm & Padding */
.section-categories {
    background: #ffffff;
    padding: 4.5rem 0 2rem;
}

.section-promo {
    background: #ffffff;
    padding: 0.5rem 0 4rem;
}

.section-popular-tools {
    background: #f8fafc;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
    padding: 5rem 0 5.5rem;
}

.section-dark-cta {
    background: #ffffff;
    padding: 5rem 0;
}

.section-how-it-works {
    background: #f8fafc;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
    padding: 5rem 0 5.5rem;
}

.section-explore-categories {
    background: #ffffff;
    padding: 5rem 0 5.5rem;
}

.section-why-us {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 5.5rem 0 6rem;
}

.section-articles {
    background: #ffffff;
    padding: 5.5rem 0 6rem;
}

.section-faq {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 5.5rem 0 5.5rem;
}

.section-newsletter {
    background: #ffffff;
    padding: 5rem 0 6rem;
}

/* Layout and Spacing Utilities */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
.py-6 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.py-10 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.py-16 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.pt-5 { padding-top: 1.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }

.mb-6 {
    margin-bottom: 1.5rem !important;
}

.mb-8 {
    margin-bottom: 2rem !important;
}

.mb-10 {
    margin-bottom: 2.5rem !important;
}

.mb-12 {
    margin-bottom: 3rem !important;
}

.mt-12 {
    margin-top: 3rem !important;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.hero-right {
    position: relative;
}

.why-right-content {
    display: flex;
    flex-direction: column;
}

/* Category Pill Count Badge */
.cat-pill-count {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    margin-top: 0.2rem;
    transition: all 0.2s ease;
}

.cat-pill-card:hover .cat-pill-count {
    background: #eff6ff;
    color: #2563eb;
}

/* Tool Cards CTA & Alignment */
.tool-card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #2563eb;
    margin-top: auto;
    transition: color 0.15s ease;
}

.tool-cta-arrow {
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.tool-white-card:hover .tool-cta-arrow {
    transform: translateX(4px);
}

/* Explore All Directory Callout Bar */
.cat-explore-all-bar {
    margin-top: 2.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--crdpay-radius-lg);
    padding: 1.35rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.cat-explore-text {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.explore-sparkle-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #dbeafe;
}

.cat-explore-text strong {
    display: block;
    font-size: 0.985rem;
    font-weight: 700;
    color: #0b1739;
    margin-bottom: 0.2rem;
}

.cat-explore-text p {
    font-size: 0.825rem;
    color: #64748b;
    margin: 0;
}

.btn-explore-all-tools {
    background: #0b1739;
    color: #ffffff !important;
    padding: 0.75rem 1.4rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(11, 23, 57, 0.2);
    flex-shrink: 0;
}

.btn-explore-all-tools:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

@media (max-width: 768px) {
    .cat-explore-all-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }
    .btn-explore-all-tools {
        width: 100%;
        justify-content: center;
    }
}

/* FAQ Footer Support Callout */
.faq-footer-callout {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.faq-callout-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.85rem 1.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #64748b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.faq-callout-link {
    color: #2563eb;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.15s ease;
}

.faq-callout-link:hover {
    color: #1d4ed8;
    transform: translateX(3px);
}

@media (max-width: 640px) {
    .faq-callout-inner {
        flex-direction: column;
        border-radius: 16px;
        padding: 1rem 1.25rem;
        text-align: center;
        width: 100%;
    }
}

/* Article Snippet Link & Flex Alignment */
.article-thumb-link {
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.article-snippet-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-excerpt {
    flex-grow: 1;
}

/* Dark CTA Mockup Sub-elements */
.dark-cta-content {
    position: relative;
    z-index: 1;
}

.mockup-calc-body {
    position: relative;
}

.mockup-input-item {
    display: flex;
    flex-direction: column;
}

.mockup-progress-wrap {
    margin-top: 0.5rem;
}

/* -------------------------------------------------------------
   15. FOOTER (DARK 5-COLUMN, 1360px Spacious Layout)
   ------------------------------------------------------------- */
.site-footer {
    background-color: #0b1739;
    color: #94a3b8;
    padding-top: 4.5rem;
    padding-bottom: 2.5rem;
    margin-top: auto;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1.1fr 0.9fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-logo-link:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.footer-custom-logo {
    display: block;
    height: 40px;
    width: auto;
    max-height: 44px;
    max-width: 180px;
    object-fit: contain;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

.footer-desc {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 22rem;
}

.footer-social-links {
    display: flex;
    gap: 0.75rem;
}

.footer-social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: background-color 0.15s, color 0.15s, transform 0.15s;
}

.footer-social-links a:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: #94a3b8;
    transition: color 0.15s, transform 0.15s;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    word-break: break-all;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    font-size: 0.8125rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-to-top-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.back-to-top-btn:hover {
    background: #1d4ed8;
}

/* -------------------------------------------------------------
   16. BREADCRUMB NAVIGATION
   ------------------------------------------------------------- */
.crdpay-single-tool .breadcrumbs-container {
    padding-top: 1.25rem;
    padding-bottom: 0.5rem;
}

.crdpay-breadcrumbs {
    display: block;
    width: 100%;
}

.crdpay-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
    color: #64748b;
    gap: 0.5rem;
}

.crdpay-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.crdpay-breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.crdpay-breadcrumb-item a:hover {
    color: #2563eb;
}

.crdpay-breadcrumb-separator {
    color: #cbd5e1;
    font-size: 0.75rem;
    user-select: none;
}

.crdpay-breadcrumb-current {
    color: #0f172a;
    font-weight: 600;
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* -------------------------------------------------------------
   17. SINGLE TOOL HERO SECTION (55% Text / 45% Topic Visual)
   ------------------------------------------------------------- */
.tool-hero-section {
    background: radial-gradient(100% 70% at 50% 0%, #f0f7ff 0%, #f8faff 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    padding-top: 2.75rem;
    padding-bottom: 3.25rem;
}

.tool-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 380px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.tool-hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 1023px) {
    .tool-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
}

.tool-hero-centered {
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.tool-hero-centered .tool-hero-desc {
    margin-left: auto;
    margin-right: auto;
}

.tool-hero-centered .hero-key-highlights {
    justify-content: center;
}

.crd-cat-pill {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 0.775rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.crd-cat-pill:hover {
    background: #dbeafe;
    color: #1e40af;
    transform: translateY(-1px);
}

.tool-hero-title {
    font-size: 3rem; /* ~48px desktop */
    font-weight: 800;
    color: #0b1739;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin: 0 0 1.15rem 0;
}

@media (max-width: 767px) {
    .tool-hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }
}

.tool-hero-desc {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.72;
    margin: 0 0 1.75rem 0;
    max-width: 44rem;
}

.hero-key-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    padding: 0.45rem 0.95rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    backdrop-filter: blur(6px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
}

.hero-highlight-pill:hover {
    border-color: #bfdbfe;
    background: #ffffff;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.tool-hero-visual-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 3rem 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 45px -12px rgba(37, 99, 235, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8);
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

.hero-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.35rem;
    text-align: center;
}

.hero-card-icon-circle {
    width: 104px;
    height: 104px;
    border-radius: 30px;
    background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.45), 0 0 0 4px rgba(255, 255, 255, 0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-hero-visual-card:hover .hero-card-icon-circle {
    transform: scale(1.06) rotate(4deg);
}

.hero-card-glyph {
    font-size: 3.25rem;
    line-height: 1;
}

.hero-card-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.hero-mini-pill {
    font-size: 0.775rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #dbeafe;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid #bfdbfe;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.06);
}

.floating-stat-pill {
    position: absolute;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    padding: 0.55rem 1.05rem;
    border-radius: 9999px;
    border: 1px solid #dbeafe;
    box-shadow: 0 12px 24px -6px rgba(11, 23, 57, 0.12);
    font-size: 0.775rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.floating-stat-pill:hover {
    transform: scale(1.04);
}

.floating-stat-pill.float-top {
    top: -14px;
    right: -14px;
}

.floating-stat-pill.float-bottom {
    bottom: -14px;
    left: -14px;
}

/* -------------------------------------------------------------
   18. FULL-WIDTH CALCULATOR WORKSPACE (ZERO ARTIFICIAL SIDEBAR)
   ------------------------------------------------------------- */
.tool-calculator-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.tool-calculator-unified-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 14px 34px -8px rgba(11, 23, 57, 0.06), 0 2px 6px -2px rgba(0, 0, 0, 0.03);
    padding: 2.25rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-calculator-unified-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 18px 40px -10px rgba(11, 23, 57, 0.09);
}

@media (max-width: 767px) {
    .tool-calculator-unified-card {
        padding: 1.25rem 1rem;
    }
}

.tool-mount-wrapper {
    width: 100%;
}

/* Reset any nested inner container restrictions across all suites */
.tool-mount-wrapper .crdpay-tool-island,
.crdpay-business-engine,
.crdpay-payroll-engine,
.crdpay-budgeting-engine,
.crdpay-datetime-engine,
.crdpay-math-engine,
.crdpay-edu-engine,
.crdpay-percentage-engine {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.business-suite-workspace,
.payroll-suite-workspace,
.budgeting-suite-workspace,
.datetime-suite-workspace,
.math-suite-workspace,
.education-suite-workspace,
.percentage-suite-workspace,
.loans-suite-workspace,
.investing-suite-workspace,
.real-estate-suite-workspace,
.savings-suite-workspace,
.crd-calculator-workspace {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

/* -------------------------------------------------------------
   19. EDITORIAL CONTENT TYPOGRAPHY & SECTIONS
   ------------------------------------------------------------- */
.tool-editorial-section {
    background: #ffffff;
    padding: 3.5rem 0;
}

.editorial-reading-column {
    max-width: 880px;
    margin: 0 auto;
    width: 100%;
}

.crdpay-tool-article,
.crdpay-editorial-article,
.crdpay-article-prose,
.crdpay-legal-prose {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.82;
}

.crdpay-tool-article > :first-child,
.crdpay-editorial-article > :first-child,
.crdpay-article-prose > :first-child,
.crdpay-legal-prose > :first-child {
    margin-top: 0 !important;
}

.crdpay-tool-article h2,
.crdpay-editorial-article h2,
.crdpay-article-prose h2,
.crdpay-legal-prose h2 {
    font-size: 2.15rem; /* ~34px */
    font-weight: 800;
    color: #0b1739;
    margin-top: 3.5rem;
    margin-bottom: 1.35rem;
    line-height: 1.25;
    letter-spacing: -0.03em;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.crdpay-tool-article h2::after,
.crdpay-editorial-article h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
    border-radius: 2px;
}

.crdpay-tool-article h3,
.crdpay-editorial-article h3,
.crdpay-article-prose h3,
.crdpay-legal-prose h3 {
    font-size: 1.5rem; /* ~24px */
    font-weight: 700;
    color: #0f172a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.crdpay-tool-article h4,
.crdpay-editorial-article h4,
.crdpay-article-prose h4,
.crdpay-legal-prose h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #334155;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.crdpay-tool-article p,
.crdpay-editorial-article p,
.crdpay-article-prose p,
.crdpay-legal-prose p {
    margin-bottom: 1.35rem;
}

.crdpay-tool-article ul,
.crdpay-tool-article ol,
.crdpay-editorial-article ul,
.crdpay-editorial-article ol,
.crdpay-article-prose ul,
.crdpay-article-prose ol,
.crdpay-legal-prose ul,
.crdpay-legal-prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.crdpay-tool-article ul,
.crdpay-editorial-article ul,
.crdpay-article-prose ul,
.crdpay-legal-prose ul {
    list-style-type: disc;
}

.crdpay-tool-article ol,
.crdpay-editorial-article ol,
.crdpay-article-prose ol,
.crdpay-legal-prose ol {
    list-style-type: decimal;
}

.crdpay-tool-article li,
.crdpay-editorial-article li,
.crdpay-article-prose li,
.crdpay-legal-prose li {
    margin-bottom: 0.65rem;
    line-height: 1.75;
}

.crdpay-tool-article strong,
.crdpay-tool-article b,
.crdpay-editorial-article strong,
.crdpay-editorial-article b {
    font-weight: 700;
    color: #0f172a;
}

.crdpay-tool-article a,
.crdpay-editorial-article a,
.crdpay-article-prose a,
.crdpay-legal-prose a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-color: #bfdbfe;
    text-underline-offset: 3px;
    transition: color 0.15s, text-decoration-color 0.15s;
}

.crdpay-tool-article a:hover,
.crdpay-editorial-article a:hover,
.crdpay-article-prose a:hover,
.crdpay-legal-prose a:hover {
    color: #1d4ed8;
    text-decoration-color: #2563eb;
}

/* Benefits Strip on Single Tool Page */
.benefits-strip {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 2.25rem 0;
}

.benefits-strip .grid > div {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefits-strip .grid > div:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.08);
}

.benefits-strip .text-2xl {
    font-size: 1.65rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Mathematical Formula blocks */
.crdpay-tool-article .font-mono,
.crdpay-tool-article pre,
.crdpay-tool-article .formula-card {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    border-left: 5px solid #2563eb;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #0f172a;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
}

/* Article comparison tables */
.crdpay-tool-article table,
.crdpay-editorial-article table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2.25rem 0;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
}

.crdpay-tool-article th,
.crdpay-editorial-article th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1rem 1.35rem;
    border-bottom: 1px solid #cbd5e1;
    text-align: left;
}

.crdpay-tool-article td,
.crdpay-editorial-article td {
    padding: 1rem 1.35rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.975rem;
    color: #334155;
}

.crdpay-tool-article tr:last-child td,
.crdpay-editorial-article tr:last-child td {
    border-bottom: none;
}

.crdpay-tool-article tr:hover td,
.crdpay-editorial-article tr:hover td {
    background: #f8fafc;
}

/* FAQ cards inside article */
.crdpay-tool-article .space-y-4 > div {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.15rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.crdpay-tool-article .space-y-4 > div:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 24px -6px rgba(11, 23, 57, 0.08);
    transform: translateY(-2px);
}

/* -------------------------------------------------------------
   20. RELATED TOOLS SECTION & CARDS
   ------------------------------------------------------------- */
.tool-promo-section {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    padding: 3.75rem 0;
}

.related-tools-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 4.5rem 0 6rem;
}

/* -------------------------------------------------------------
   20. TOOLS ARCHIVE & CATEGORY SHOWCASE (SaaS Redesign)
   ------------------------------------------------------------- */
.tools-archive-page,
.crdpay-category-page {
    background: #ffffff;
    padding-bottom: 5rem;
}

/* Breadcrumbs Container */
.breadcrumbs-container {
    padding-top: 1.25rem;
    padding-bottom: 0.75rem;
}

.crdpay-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
}

.crdpay-breadcrumbs a {
    color: #475569;
    text-decoration: none;
    transition: color 0.15s ease;
}

.crdpay-breadcrumbs a:hover {
    color: #2563eb;
}

.crdpay-breadcrumbs .separator {
    color: #cbd5e1;
    font-size: 0.75rem;
}

.crdpay-breadcrumbs .current {
    color: #0f172a;
    font-weight: 600;
}

/* Category Hero Section */
.cat-hero-section {
    background: radial-gradient(120% 80% at 50% 0%, #f0f7ff 0%, #f8faff 50%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 4rem 1rem 4.5rem;
    position: relative;
    overflow: hidden;
}

.cat-hero-container {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

/* Badge Pill with glowing dot */
.cat-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.cat-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.cat-main-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

.cat-desc {
    font-size: 1.0625rem;
    color: #475569;
    line-height: 1.75;
    max-width: 660px;
    margin: 0 auto 2.25rem auto;
}

/* Category & Archive Search Form */
.cat-search-box-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.hero-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 9999px;
    padding: 0.35rem 0.45rem 0.35rem 1.25rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.hero-search-form:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 12px 30px -5px rgba(37, 99, 235, 0.16), 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.search-icon-left {
    color: #94a3b8;
    display: flex;
    align-items: center;
    margin-right: 0.65rem;
    flex-shrink: 0;
}

.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9375rem;
    color: #0f172a;
    padding: 0.35rem 0;
    font-family: inherit;
}

.hero-search-input::placeholder {
    color: #94a3b8;
}

.hero-search-submit {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-search-submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Category Tools Grid Section */
.cat-tools-grid-section {
    padding: 3.5rem 0 4.5rem;
    background: #ffffff;
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.section-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin: 0 0 0.35rem 0;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* Empty Tools State */
.empty-tools-state {
    padding: 3.5rem 2rem;
    text-align: center;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 16px;
    max-width: 520px;
    margin: 2rem auto;
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.empty-text {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

/* Main Tools Archive Header */
.tools-archive-header {
    margin-bottom: 3rem;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.tools-archive-intro {
    max-width: 800px;
    margin-bottom: 2rem;
}

.tools-archive-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.tools-archive-subtitle {
    font-size: 1.0625rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

.tools-archive-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tools-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    max-width: 480px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.tools-search-form:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.tools-search-icon {
    color: #94a3b8;
    display: flex;
    align-items: center;
    margin-right: 0.65rem;
}

.tools-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9375rem;
    color: #0f172a;
    background: transparent;
    font-family: inherit;
}

/* Category Filter Pills */
.cat-filter-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.cat-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.cat-pill-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.cat-pill-btn.is-active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.cat-pill-btn .pill-count {
    font-size: 0.75rem;
    opacity: 0.75;
    font-weight: 500;
}

/* Substantive Editorial Guide Section Styling */
.cat-editorial-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 4.5rem 1rem 5.5rem;
}

.cat-editorial-section .crdpay-container {
    max-width: 900px;
    margin: 0 auto;
}

.crdpay-editorial-article {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.82;
}

.crdpay-editorial-article h2 {
    font-size: 2.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin: 0 0 1.5rem 0;
    line-height: 1.25;
    position: relative;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid #e2e8f0;
}

.crdpay-editorial-article h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 65px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
    border-radius: 3px;
}

.crdpay-editorial-article h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
    margin: 2.75rem 0 1rem 0;
    line-height: 1.35;
}

.crdpay-editorial-article p {
    margin-bottom: 1.25rem;
}

.crdpay-editorial-article a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.25);
    transition: all 0.15s ease;
}

.crdpay-editorial-article a:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

/* Formula Box Styling */
.crdpay-formula-box,
.crdpay-editorial-article div.p-4.bg-white {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #2563eb !important;
    border-radius: 14px !important;
    padding: 1.35rem 1.5rem !important;
    margin: 1.75rem 0 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

.crdpay-formula-box p,
.crdpay-editorial-article div.p-4.bg-white p {
    margin: 0.65rem 0 !important;
    font-size: 0.925rem !important;
    line-height: 1.6 !important;
    color: #1e293b !important;
}

.crdpay-formula-box code,
.crdpay-editorial-article div.p-4.bg-white code,
.crdpay-editorial-article code {
    font-family: 'JetBrains Mono', Consolas, monospace !important;
    font-size: 0.875rem !important;
    background: #f1f5f9 !important;
    color: #1e40af !important;
    border: 1px solid #dbeafe !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

/* Directory of Tools Grid in Editorial */
.crdpay-editorial-tools-grid,
.crdpay-editorial-article .not-prose,
.crdpay-editorial-article .grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 0.85rem !important;
    margin: 1.75rem 0 2.5rem 0 !important;
}

.crdpay-editorial-tools-grid a,
.crdpay-editorial-article .not-prose a,
.crdpay-editorial-article .grid a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0.85rem 1.15rem !important;
    font-size: 0.925rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.crdpay-editorial-tools-grid a:hover,
.crdpay-editorial-article .not-prose a:hover,
.crdpay-editorial-article .grid a:hover {
    border-color: #3b82f6 !important;
    color: #2563eb !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 18px -4px rgba(37, 99, 235, 0.12) !important;
}

.crdpay-editorial-tools-grid a span:last-child,
.crdpay-editorial-article .not-prose a span:last-child,
.crdpay-editorial-article .grid a span:last-child {
    color: #2563eb !important;
    font-weight: 700 !important;
    transition: transform 0.2s ease !important;
}

.crdpay-editorial-tools-grid a:hover span:last-child,
.crdpay-editorial-article .not-prose a:hover span:last-child,
.crdpay-editorial-article .grid a:hover span:last-child {
    transform: translateX(4px) !important;
}

/* FAQ Accordion Interactive Styling */
.faq-two-col-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
}

@media (min-width: 768px) {
    .faq-two-col-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.faq-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
}

.faq-accordion-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.faq-accordion-item:hover {
    border-color: #cbd5e1 !important;
}

.faq-accordion-item.is-open {
    border-color: #93c5fd !important;
    box-shadow: 0 8px 22px -4px rgba(37, 99, 235, 0.08) !important;
}

.faq-trigger {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 1.15rem 1.25rem !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-family: inherit !important;
    cursor: pointer !important;
    gap: 0.75rem !important;
}

.faq-q-text,
.faq-accordion-item h4 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    transition: color 0.15s ease !important;
}

.faq-trigger:hover .faq-q-text {
    color: #2563eb !important;
}

.faq-icon {
    font-size: 1.35rem !important;
    color: #64748b !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    transition: transform 0.2s ease, color 0.15s ease !important;
}

.faq-accordion-item.is-open .faq-icon {
    color: #2563eb !important;
}

.faq-answer {
    padding: 0 1.25rem 1.25rem !important;
    font-size: 0.925rem !important;
    color: #475569 !important;
    line-height: 1.65 !important;
}

.faq-answer p {
    margin: 0 !important;
}

.faq-accordion-item.is-open .faq-answer {
    display: block !important;
}

.faq-accordion-item:not(.is-open) .faq-answer {
    display: none !important;
}

/* External References & Unordered Lists */
.crdpay-editorial-article ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 1.25rem 0 1.5rem !important;
}

.crdpay-editorial-article ul li {
    position: relative !important;
    padding-left: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
    color: #334155 !important;
}

.crdpay-editorial-article ul li::before {
    content: '→' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: #2563eb !important;
    font-weight: 700 !important;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .cat-main-title {
        font-size: 2.15rem;
    }
    .tools-archive-title {
        font-size: 2rem;
    }
    .hero-search-form {
        padding: 0.25rem 0.35rem 0.25rem 1rem;
    }
    .hero-search-submit {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    .crdpay-editorial-article h2 {
        font-size: 1.75rem;
    }
    .crdpay-editorial-article h3 {
        font-size: 1.25rem;
    }
}

.related-tools-grid,
.crdpay-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.75rem;
}

@media (min-width: 640px) {
    .related-tools-grid,
    .crdpay-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .related-tools-grid,
    .crdpay-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.crdpay-tool-card,
.crdpay-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--crdpay-radius-lg);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.crdpay-tool-card:hover,
.crdpay-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px -8px rgba(11, 23, 57, 0.12), 0 0 0 1px #93c5fd;
    border-color: #60a5fa;
}

.tool-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tool-card-icon-pill {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.tool-card-icon-pill svg {
    width: 20px;
    height: 20px;
    display: block;
}

.tool-card-cat-pill,
.crdpay-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
}

.tool-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    line-height: 1.35;
}

.tool-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.tool-card-title a:hover {
    color: #2563eb;
}

.tool-card-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
    flex-grow: 1;
}

.tool-card-footer {
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.tool-card-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap 0.15s, color 0.15s;
}

.tool-card-link:hover {
    color: #1d4ed8;
    gap: 0.625rem;
}

/* -------------------------------------------------------------
   21. ABOUT US PAGE STYLES (SaaS Architectural Editorial)
   ------------------------------------------------------------- */
.crdpay-about-page {
    background: #f8fafc;
    min-height: 100vh;
}

.about-hero-section {
    padding: 3.5rem 0 2.5rem;
    background: radial-gradient(120% 80% at 50% 0%, #f0f7ff 0%, #f8faff 50%, #f8fafc 100%);
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.about-hero-inner {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.about-hero-badge,
.contact-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 0.775rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.95rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 6px #2563eb;
}

.about-hero-title,
.contact-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #0b1739;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin: 0 0 1.25rem;
}

@media (max-width: 768px) {
    .about-hero-title,
    .contact-hero-title {
        font-size: 2.15rem;
        line-height: 1.2;
    }
}

.about-hero-subtitle,
.contact-hero-subtitle {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 44rem;
}

/* About Pillars Section */
.about-pillars-section {
    padding: 3rem 0 1.5rem;
}

.about-pillars-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    max-width: 1040px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .about-pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.about-pillar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(11, 23, 57, 0.1);
    border-color: #93c5fd;
}

.pillar-number {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1;
    pointer-events: none;
    font-family: 'JetBrains Mono', monospace;
}

.pillar-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.pillar-blue .pillar-icon-box { background: #eff6ff; color: #2563eb; }
.pillar-emerald .pillar-icon-box { background: #ecfdf5; color: #059669; }
.pillar-purple .pillar-icon-box { background: #f5f3ff; color: #7c3aed; }

.pillar-icon-box svg {
    width: 24px;
    height: 24px;
    display: block;
}

.pillar-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0b1739;
    margin: 0 0 0.5rem;
    letter-spacing: -0.015em;
}

.pillar-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* About Article Content Container */
.about-article-section {
    padding: 1.5rem 0 4.5rem;
}

.about-article-wrapper {
    max-width: 1040px;
    margin: 0 auto;
}

.about-article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 3.5rem 3.5rem;
    box-shadow: 0 12px 36px -10px rgba(11, 23, 57, 0.06);
}

@media (max-width: 768px) {
    .about-article-card {
        padding: 2rem 1.5rem;
    }
}

.about-nav-footer {
    margin-top: 3.5rem;
    padding-top: 2.25rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.about-nav-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0b1739;
    margin: 0 0 0.35rem;
}

.about-nav-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.about-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.btn-about-primary {
    background: #2563eb;
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.btn-about-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-about-secondary {
    background: #f1f5f9;
    color: #334155 !important;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.btn-about-secondary:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

/* -------------------------------------------------------------
   22. CONTACT US PAGE STYLES (Modern SaaS Forms & Direct Channels)
   ------------------------------------------------------------- */
.crdpay-contact-page {
    background: #f8fafc;
    min-height: 100vh;
}

.contact-hero-section {
    padding: 3.5rem 0 2.5rem;
    background: radial-gradient(120% 80% at 50% 0%, #f0f7ff 0%, #f8faff 50%, #f8fafc 100%);
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.contact-hero-inner {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.contact-main-section {
    padding: 3rem 0 5rem;
}

/* Alerts */
.contact-alert {
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 2.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.alert-icon {
    font-size: 1.35rem;
    font-weight: 800;
    flex-shrink: 0;
    line-height: 1.2;
}

.alert-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.alert-success {
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    color: #065f46;
}

.alert-error {
    background: #fff1f2;
    border: 1.5px solid #fecdd3;
    color: #9f1239;
}

.alert-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
}

.alert-desc {
    font-size: 0.885rem;
    margin: 0;
    line-height: 1.5;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    max-width: 1140px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 10px 30px -8px rgba(11, 23, 57, 0.05);
}

@media (max-width: 768px) {
    .contact-card {
        padding: 1.75rem 1.35rem;
    }
}

.contact-card-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.contact-card-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0b1739;
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
}

.contact-card-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Form Controls */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.925rem;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #94a3b8;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.12);
}

.btn-contact-submit {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0.95rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.btn-contact-submit:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

/* Channels List in Right Column */
.channel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.channel-item {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
}

.channel-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-indigo { background: #eef2ff; color: #4f46e5; }
.icon-purple { background: #f5f3ff; color: #7c3aed; }

.channel-body {
    flex: 1;
}

.channel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0b1739;
    margin: 0 0 0.2rem;
}

.channel-link {
    font-size: 0.925rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s;
}

.channel-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.channel-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.channel-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0.35rem 0 0;
    line-height: 1.45;
}

.channel-policy-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
    font-size: 0.8rem;
}

.channel-policy-links a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.channel-policy-links a:hover {
    text-decoration: underline;
}

.channel-policy-links .sep {
    color: #cbd5e1;
}

/* Contact Commitment Banner */
.contact-commitment-banner {
    background: linear-gradient(135deg, #090e1f 0%, #1e1b4b 60%, #1e3a8a 100%);
    border-radius: 24px;
    padding: 2.25rem 2.25rem;
    color: #ffffff;
    box-shadow: 0 16px 36px -10px rgba(11, 23, 57, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.commitment-badge {
    display: inline-block;
    font-size: 0.725rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #93c5fd;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.commitment-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.commitment-desc {
    font-size: 0.845rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.commitment-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #60a5fa !important;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.commitment-link:hover {
    color: #93c5fd !important;
    gap: 0.55rem;
}

.contact-custom-content {
    margin-top: 3.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   CRDPay Blog Single & Archive Refinements
   ========================================================================== */

/* SVG icon size constraints */
.entry-header svg.w-4,
.entry-header svg.h-4,
#crdpay-article-toc svg.w-4 {
    width: 1rem !important;
    height: 1rem !important;
    max-width: 1rem !important;
    max-height: 1rem !important;
    display: inline-block !important;
    vertical-align: middle;
    flex-shrink: 0 !important;
}

.entry-header svg.w-3\.5,
.entry-header svg.h-3\.5 {
    width: 0.875rem !important;
    height: 0.875rem !important;
    max-width: 0.875rem !important;
    max-height: 0.875rem !important;
    display: inline-block !important;
    vertical-align: middle;
    flex-shrink: 0 !important;
}

aside svg.w-6,
aside svg.h-6 {
    width: 1.5rem !important;
    height: 1.5rem !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

/* Article Prose Typography Styling */
.crdpay-article-prose {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #334155;
}

.crdpay-article-prose h2 {
    font-size: 1.625rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.crdpay-article-prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.crdpay-article-prose p {
    margin-bottom: 1.25rem;
}

.crdpay-article-prose ul,
.crdpay-article-prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.crdpay-article-prose li {
    margin-bottom: 0.5rem;
}

.crdpay-article-prose a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.15s ease;
}

.crdpay-article-prose a:hover {
    color: #1d4ed8;
}

.crdpay-article-prose strong {
    font-weight: 700;
    color: #0f172a;
}

.crdpay-article-prose table {
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.crdpay-article-prose th {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 700;
    color: #0f172a;
}

.crdpay-article-prose td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    color: #334155;
}

.crdpay-article-prose tr:nth-child(even) td {
    background-color: #fcfdfe;
}

.crdpay-article-prose pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.875rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.crdpay-article-prose code {
    background-color: #f1f5f9;
    color: #0f172a;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.875em;
    font-weight: 600;
}

.crdpay-article-prose pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    font-weight: normal;
}

.crdpay-article-prose blockquote {
    border-left: 4px solid #2563eb;
    background: #eff6ff;
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    font-style: italic;
    color: #1e3a8a;
}

/* =============================================================
   22. BLOG SINGLE ARTICLE & EDITORIAL STYLING (Premium SaaS)
   ============================================================= */
.crdpay-single-blog-page {
    background: #f8fafc;
    min-height: 100vh;
    padding: 2.5rem 0 6rem;
}

.blog-breadcrumbs-wrap {
    margin-bottom: 1.75rem;
}

.blog-single-layout {
    max-width: 880px;
    margin: 0 auto;
    width: 100%;
}

.blog-article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(11, 23, 57, 0.05), 0 2px 6px -2px rgba(0, 0, 0, 0.02);
}

/* 1. Article Header */
.blog-article-header {
    padding: 3rem 3.5rem 2.25rem;
    border-bottom: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
    .blog-article-header {
        padding: 2rem 1.5rem 1.75rem;
    }
}

.blog-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.blog-cat-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2563eb;
    background: #eff6ff;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid #dbeafe;
    text-decoration: none;
    transition: all 0.15s ease;
}

.blog-cat-pill:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.blog-meta-dot {
    color: #cbd5e1;
}

.blog-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
}

.blog-meta-icon {
    width: 15px;
    height: 15px;
    color: #94a3b8;
    flex-shrink: 0;
}

.blog-article-title {
    font-size: 2.65rem;
    font-weight: 800;
    color: #0b1739;
    letter-spacing: -0.03em;
    line-height: 1.22;
    margin: 0 0 1.25rem;
}

@media (max-width: 768px) {
    .blog-article-title {
        font-size: 1.85rem;
    }
}

.blog-article-excerpt {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #475569;
    margin: 0 0 1.75rem;
    font-weight: 400;
}

/* Author and Share Toolbar */
.blog-author-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.blog-author-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.blog-author-avatar-wrap {
    flex-shrink: 0;
}

.blog-author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    display: block;
}

.blog-author-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.blog-author-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.blog-author-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.blog-author-name a:hover {
    color: #2563eb;
}

.blog-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #059669;
}

.blog-verified-badge svg {
    color: #10b981;
}

/* Share Buttons */
.blog-share-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.blog-share-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-right: 0.25rem;
}

.blog-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.blog-share-btn.share-x:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.blog-share-btn.share-linkedin:hover {
    background: #0a66c2;
    color: #ffffff;
    border-color: #0a66c2;
}

.blog-share-btn.share-facebook:hover {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
}

.blog-share-btn.share-copy:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.blog-copy-toast {
    position: absolute;
    bottom: -32px;
    right: 0;
    background: #0b1739;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* 2. Featured Image */
.blog-article-thumbnail {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    background: #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.blog-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 3. Article Body Container */
.blog-article-body {
    padding: 3.5rem 3.5rem 4rem;
}

@media (max-width: 768px) {
    .blog-article-body {
        padding: 2rem 1.5rem 2.5rem;
    }
}

/* 4. Table of Contents Card */
.blog-toc-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.blog-toc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.blog-toc-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f172a;
}

.blog-toc-icon {
    color: #2563eb;
    display: flex;
}

.blog-toc-toggle-btn {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #2563eb;
    background: #ffffff;
    border: 1px solid #dbeafe;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.blog-toc-toggle-btn:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.blog-toc-content {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.blog-toc-list {
    margin: 0;
    padding-left: 1.25rem;
    list-style-type: decimal;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-toc-list li a {
    color: #334155;
    text-decoration: none;
    font-size: 0.9375rem;
    line-height: 1.45;
    transition: color 0.15s ease;
}

.blog-toc-list li a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.blog-toc-list li.toc-sub-item {
    margin-left: 1.25rem;
    list-style-type: circle;
    font-size: 0.875rem;
    color: #64748b;
}

/* 5. Featured Calculator Callout Box */
.blog-tool-callout {
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border: 1.5px solid #bfdbfe;
    border-radius: 18px;
    padding: 1.6rem 2rem;
    margin-bottom: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
    box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
    .blog-tool-callout {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }
}

.blog-tool-callout-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.blog-tool-callout-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.blog-tool-callout-info {
    display: flex;
    flex-direction: column;
}

.blog-tool-callout-badge {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1d4ed8;
    margin-bottom: 0.25rem;
}

.blog-tool-callout-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0b1739;
    margin: 0 0 0.25rem;
    letter-spacing: -0.015em;
}

.blog-tool-callout-desc {
    font-size: 0.875rem;
    color: #475569;
    margin: 0;
    line-height: 1.45;
}

.blog-tool-callout-btn {
    background: #2563eb;
    color: #ffffff !important;
    padding: 0.75rem 1.4rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.blog-tool-callout-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* 6. Tags Section */
.blog-tags-row {
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.blog-tags-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-right: 0.25rem;
}

.blog-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag-pill {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.blog-tag-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* 7. Author Bio Box */
.blog-author-card {
    margin-top: 3rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
}

@media (max-width: 640px) {
    .blog-author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.75rem;
    }
}

.blog-author-card-avatar {
    flex-shrink: 0;
}

.author-bio-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: block;
}

.blog-author-card-content {
    flex-grow: 1;
}

.blog-author-card-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 0.35rem;
}

.blog-author-card-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0b1739;
    margin: 0 0 0.5rem;
}

.blog-author-card-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.blog-author-card-name a:hover {
    color: #2563eb;
}

.blog-author-card-bio {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.blog-author-card-link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.15s ease, color 0.15s ease;
}

.blog-author-card-link:hover {
    color: #1d4ed8;
    gap: 0.55rem;
}

/* 8. Prev/Next Navigation */
.blog-post-nav-grid {
    margin-top: 2.75rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .blog-post-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.blog-nav-col.next {
    text-align: right;
}

.blog-nav-card {
    display: block;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.blog-nav-card:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.08);
}

.blog-nav-dir {
    display: block;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.blog-nav-card:hover .blog-nav-dir {
    color: #2563eb;
}

.blog-nav-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

/* 9. Related Articles Section */
.blog-related-section {
    margin-top: 4.5rem;
}

/* 10. Post Cards in Grid */
.crdpay-post-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--crdpay-radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.crdpay-post-card:hover {
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: 0 16px 32px -8px rgba(11, 23, 57, 0.08);
}

.post-card-main {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.post-card-cat {
    font-size: 0.725rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #2563eb;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color 0.15s ease;
}

.post-card-cat:hover {
    color: #1d4ed8;
}

.post-card-date {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.post-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b1739;
    line-height: 1.35;
    margin: 0 0 0.65rem;
}

.post-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.post-card-title a:hover {
    color: #2563eb;
}

.post-card-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 1.25rem;
    flex-grow: 1;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.post-card-author {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.post-card-link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.15s ease, color 0.15s ease;
}

.post-card-link:hover {
    color: #1d4ed8;
    gap: 0.5rem;
}

/* Formula Callouts in Articles */
.crdpay-article-prose .has-large-font-size {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e1b4b;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    border: 1px solid #c7d2fe;
    border-left: 5px solid #4f46e5;
    border-radius: 14px;
    padding: 1.25rem 1.75rem;
    margin: 2rem 0;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.06);
}

/* 11. Blog Archive & Editorial Content Section */
.blog-editorial-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 4px 20px -2px rgba(11, 23, 57, 0.04);
    position: relative;
    overflow: hidden;
}

.blog-editorial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #6366f1, #0d9488);
}

.editorial-header {
    margin-bottom: 2rem;
}

.editorial-body p {
    font-size: 0.9625rem;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 1.25rem;
}

.editorial-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #bfdbfe;
    text-underline-offset: 3px;
    transition: all 0.15s ease;
}

.editorial-link:hover {
    color: #1d4ed8;
    text-decoration-color: #2563eb;
    background: rgba(37, 99, 235, 0.06);
    border-radius: 3px;
}

.editorial-link.external-link {
    color: #0f766e;
    text-decoration-color: #99f6e4;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.editorial-link.external-link:hover {
    color: #042f2e;
    text-decoration-color: #0f766e;
    background: rgba(13, 148, 136, 0.08);
}

/* Pagination Controls */
.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.85rem;
    margin: 0 0.25rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pagination-wrapper .page-numbers:hover {
    color: #1e293b;
    border-color: #cbd5e1;
    background: #f8fafc;
}

.pagination-wrapper .page-numbers.current {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.pagination-wrapper .page-numbers.dots {
    border: none;
    background: transparent;
    box-shadow: none;
    color: #94a3b8;
}

/* 12. Blog Archive Spotlight & Layout */
.blog-archive-page {
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}

.blog-spotlight-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2.25rem;
    margin-bottom: 3.5rem;
    box-shadow: 0 4px 20px -2px rgba(11, 23, 57, 0.04);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-spotlight-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 12px 30px -4px rgba(11, 23, 57, 0.08);
}

@media (min-width: 1024px) {
    .blog-spotlight-card {
        grid-template-columns: 1.8fr 1.2fr;
        align-items: center;
        gap: 3rem;
    }
}

.spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2563eb;
    margin-bottom: 0.75rem;
}

.spotlight-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.spotlight-meta-cat {
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.spotlight-meta-proof {
    color: #059669;
    font-weight: 600;
}

.spotlight-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.spotlight-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.spotlight-title a:hover {
    color: #2563eb;
}

.spotlight-excerpt {
    font-size: 1rem;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 1.5rem;
}

.spotlight-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.spotlight-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.spotlight-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.spotlight-author {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 600;
}

.spotlight-features {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.75rem;
}

.spotlight-features-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 1rem;
    display: block;
}

.spotlight-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.spotlight-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.8125rem;
    color: #334155;
    line-height: 1.5;
}

.spotlight-features-list svg {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    color: #10b981;
    margin-top: 0.1rem;
}

.blog-grid-header {
    margin-bottom: 2rem;
}

.blog-grid-heading {
    font-size: 1.625rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 0.4rem;
}

.blog-grid-subheading {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0;
}





