/* Real Treasury Custom CSS */
        .wp-block-image img {
            background: none !important;
            background-color: transparent !important;
            box-shadow: none !important;
            z-index: 1 !important;
            position: relative !important;
        }
        .wp-block-image.size-large img {
            background: transparent !important;
        }
        .wp-block-image.size-large img, .wp-block-image, .wp-block-image.is-resized {
            box-shadow: none !important;
        }
        :root {
            --ast-global-color-2: #333;
            --primary-purple: #7216f4;
            --secondary-purple: #8f47f6;
            --light-purple: #c77dff;
            --dark-text: #281345;
            --gray-text: #7e7e7e;
            --success-green: #10b981; /* Add this line */
            --about-section-gap: clamp(1.5rem, 3vw, 2.5rem);
        }
        #inspector-text-control-8 {
            color: #000 !important;
        }
/* =================================================================== */
/* TREASURY PORTAL ACCESS - CLEANED FORM STYLES */
/* =================================================================== */

/* Modal and overlay */
.modal, .tpa-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1000003 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: all 0.3s ease !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Insight Hero Styles */
.insight-hero {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f8f8, #ffffff);
    text-align: center;
}

.insight-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.insight-hero .subtitle {
    font-size: 1.25rem;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

.insight-hero .cta-button {
    margin-top: 0.5rem;
}

/* Share Button Styles */
.share-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px; /* Increased from 12px 20px */
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,248,248,0.98));
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(199,125,255,0.2);
    box-shadow: 0 4px 16px rgba(114,22,244,0.08);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    font-weight: 500;
    font-size: 0.9rem;
    min-width: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.share-btn:hover::before {
    left: 100%;
}

.share-btn.linkedin { color: #0077B5; border-color: rgba(0,119,181,0.2); }
.share-btn.linkedin:hover {
    background: linear-gradient(135deg, #0077B5, #005885);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,119,181,0.25);
    border-color: #0077B5;
    text-decoration: none;
}

.share-btn.x-twitter { color: #000; border-color: rgba(0,0,0,0.15); }
.share-btn.x-twitter:hover {
    background: linear-gradient(135deg, #000, #1a1a1a);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    border-color: #000;
    text-decoration: none;
}

.share-btn.email { color: #6B7280; border-color: rgba(107,114,128,0.2); }
.share-btn.email:hover {
    background: linear-gradient(135deg, #6B7280, #4B5563);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107,114,128,0.25);
    border-color: #6B7280;
    text-decoration: none;
}

.share-btn.copy-link { color: var(--primary-purple); border-color: rgba(114,22,244,0.2); }
.share-btn.copy-link:hover {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(114,22,244,0.25);
    border-color: var(--primary-purple);
    text-decoration: none;
}

.share-btn.copied {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    color: #fff !important;
    border-color: #10B981 !important;
}

.share-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    flex-shrink: 0;
}

.share-divider {
    margin: 0 20px;
    font-size: 0.8rem;
    color: var(--gray-text);
    opacity: 0.6;
    font-weight: 400;
}

.modal.show, .tpa-modal.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Modal content wrapper */
.modal-content, .tpa-modal-content {
    width: 100% !important;
    max-width: 480px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    transform: scale(0.95) translateY(20px) !important;
    transition: transform 0.3s ease !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.modal.show .modal-content,
.tpa-modal.show .tpa-modal-content {
    transform: scale(1) translateY(0) !important;
}

/* Portal access form container */
.portal-access-form {
    width: 100% !important;
    max-width: none !important;
    min-width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    border: 1px solid rgba(199, 125, 255, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    position: relative !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* Purple top bar */
.portal-access-form:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7216f4, #8f47f6);
    border-radius: 16px 16px 0 0;
    z-index: 1;
}

/* Form title */
.portal-access-form h3 {
    margin: 0 !important;
    padding: 24px 32px 16px 32px !important;
    color: #281345 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-bottom: 1px solid #f1f5f9 !important;
    position: relative !important;
    z-index: 2 !important;
    line-height: 1.2 !important;
}

/* Close button */
.close-btn {
    position: absolute !important;
    top: 16px !important;
    right: 20px !important;
    width: 32px !important;
    height: 32px !important;
    border: none !important;
    background: rgba(107, 114, 128, 0.1) !important;
    color: #6b7280 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 20px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.close-btn:hover {
    background: rgba(107, 114, 128, 0.2) !important;
    color: #374151 !important;
    transform: scale(1.1) !important;
}

/* Form content area */
.portal-access-form .wpcf7 {
    padding: 24px 32px 32px 32px !important;
    margin: 0 !important;
}

.portal-access-form .wpcf7:has(#1a045be) {
    padding: 8px 12px !important;
}

/* Form groups and rows */
.form-row-group {
    display: flex !important;
    gap: 0px !important;
    margin-bottom: 0px !important;
}

.form-row-group .form-row {
    flex: 1 !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
}

.form-row {
    margin-bottom: 0px !important;
}

/* Labels */
.form-row label {
    display: block !important;
    margin-bottom: 2px !important;
    font-weight: 600 !important;
    color: #281345 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
}

/* Form control wrappers */
.portal-access-form .wpcf7-form-control-wrap {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    position: relative !important;
}

.portal-access-form .wpcf7-form-control,
.portal-access-form p {
    margin: 0 !important;
}

.portal-access-form p {
    padding: 0 !important;
}

.portal-access-form br {
    display: none !important;
}

/* Global CF7 layout reset */
.wpcf7,
.wpcf7 form {
    margin: 0 !important;
}

.wpcf7-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.wpcf7-form > p {
    margin: 0 !important;
    padding: 0 !important;
}

.wpcf7-form br {
    display: none !important;
}

.wpcf7-form label {
    display: block !important;
    margin-bottom: 2px !important;
    font-weight: 600 !important;
    color: #281345 !important;
}

.wpcf7-form-control-wrap {
    display: block !important;
    margin-top: 0px !important;
}

/* Input fields */
.form-control:not([type="checkbox"]),
.wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]) {
    width: 100% !important;
    padding: 2px 4px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    background: #ffffff !important;
    color: #281345 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.form-control:focus,
.wpcf7-form-control:focus:not(.wpcf7-submit):not([type="checkbox"]) {
    border-color: #8b5cf6 !important;
    outline: none !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(114, 22, 244, 0.12) !important;
    transform: none !important;
}

.form-control:hover,
.wpcf7-form-control:hover:not(.wpcf7-submit):not([type="checkbox"]) {
    border-color: #8f47f6 !important;
    background: #ffffff !important;
}

.form-control::placeholder,
.wpcf7-form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* Contact page CF7 spacing overrides */
.rt-cf7--contact-us .wpcf7 {
    padding: 8px !important;
}

.rt-cf7--contact-us .wpcf7-form {
    row-gap: 2px !important;
}

.rt-cf7--contact-us .wpcf7-form p {
    margin-bottom: 2px !important;
}

.rt-cf7--contact-us .wpcf7-form label {
    margin-bottom: 2px !important;
}

.rt-cf7--contact-us .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]) {
    padding: 2px 4px !important;
}

/* Checkbox styling */
.checkbox-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 2px !important;
    margin: 2px 0 !important;
    padding: 2px !important;
    background: #fafbfc !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
}

.checkbox-row input[type=checkbox] {
    position: relative !important;
    width: 16px !important;
    height: 12px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
    cursor: pointer !important;
    accent-color: #7216f4 !important;
}

.checkbox-row label {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    font-weight: 400 !important;
}

.checkbox-row a {
    color: #8b5cf6 !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
}

.checkbox-row a:hover {
    text-decoration: none !important;
    color: #7c3aed !important;
}

/* Submit button */
.submit-btn,
.wpcf7-form input[type=submit],
.wpcf7-submit,
input[type=submit].wpcf7-submit {
    width: 100% !important;
    padding: 16px 24px !important;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-top: 8px !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 12px rgba(114, 22, 244, 0.3) !important;
}

.submit-btn:hover,
.wpcf7-form input[type=submit]:hover,
.wpcf7-submit:hover,
input[type=submit].wpcf7-submit:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(114, 22, 244, 0.4) !important;
}

.submit-btn:active,
.wpcf7-submit:active {
    transform: translateY(0) !important;
}

/* Form response messages */
.wpcf7 .wpcf7-validation-errors,
.wpcf7-validation-errors {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    padding: 12px 16px !important;
    border: 2px solid #ef4444 !important;
    border-radius: 8px !important;
    margin-top: 16px !important;
    position: relative !important;
    z-index: 4 !important;
}

.wpcf7 .wpcf7-response-output,
.wpcf7-response-output {
    margin-top: 4px !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    opacity: 1 !important;
    visibility: hidden !important;
    display: block !important;
    font-size: 14px !important;
}

.wpcf7 .wpcf7-mail-sent-ok,
.wpcf7-mail-sent-ok {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border: 0px solid #22c55e !important;
}

.wpcf7-not-valid-tip {
    color: #dc2626 !important;
    font-size: 12px !important;
    margin-top: 4px !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .modal, .tpa-modal {
        padding: 15px !important;
    }
    
    .modal-content, .tpa-modal-content {
        max-width: 100% !important;
        max-height: 95vh !important;
    }
    
    .portal-access-form {
        border-radius: 12px !important;
    }
    
    .portal-access-form h3 {
        font-size: 20px !important;
        padding: 20px 24px 16px 24px !important;
    }
    
    .portal-access-form .wpcf7 {
        padding: 20px 24px 28px 24px !important;
    }
    
    .close-btn {
        top: 12px !important;
        right: 16px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 18px !important;
    }
    
    .form-row-group {
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .form-row-group .form-row {
        margin-bottom: 2px !important;
    }
    
    .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]) {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .modal, .tpa-modal {
        padding: 10px !important;
    }
    
    .portal-access-form h3 {
        font-size: 18px !important;
        padding: 16px 20px 12px 20px !important;
    }
    
    .portal-access-form .wpcf7 {
        padding: 16px 20px 24px 20px !important;
    }
    
    .checkbox-row {
        padding: 4px !important;
    }
    
    .checkbox-row label {
        font-size: 13px !important;
    }
}
/* Hide banner entirely on mobile */
@media (max-width: 768px) {
    .workshop-banner {
        display: none !important;
    }

    body {
        padding-top: 70px !important; /* Mobile nav height */
    }

    body.rt-no-body-padding {
        padding-top: 0 !important;
    }

    .rt-nav-container {
        height: 70px !important;
    }

    .rt-nav-wrapper {
        height: 70px !important;
    }
}


/* Body scroll lock when modal is open */
body.modal-open {
    overflow-x: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Hide any nested modals to prevent conflicts */
.modal .modal,
.modal-wrapper .modal {
    display: none !important;
}
        .cookie-policy-container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
            z-index: 1 !important;
            position: relative !important;
        }
        .cookie-policy-content {
            background: #fff;
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 4px 16px rgba(114, 22, 244, .15);
            margin-bottom: 40px;
            border: 2px solid rgba(199, 125, 255, .2);
            position: relative;
            color: #281345;
            z-index: 1 !important;
        }
        .cookie-policy-content:before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #7216f4, #8f47f6 50%, #9d4edd);
        }
        .cookie-policy-content h1 {
            color: #281345;
            margin-bottom: 30px;
            font-size: 2.5em;
            border-bottom: 3px solid #c77dff;
            padding-bottom: 10px;
            font-weight: 600;
            margin-top: 20px;
        }
        .cookie-policy-content h2 {
            color: #281345;
            margin: 30px 0 15px;
            font-size: 1.5em;
            font-weight: 600;
        }
        .cookie-policy-content h3 {
            color: #281345;
            margin: 25px 0 10px;
            font-size: 1.2em;
            font-weight: 600;
        }
        .cookie-highlight {
            background: rgba(114, 22, 244, .1);
            padding: 20px;
            border-left: 4px solid #7216f4;
            border-radius: 8px;
            margin: 20px 0;
            border: 1px solid rgba(199, 125, 255, .3);
            color: #281345;
            font-weight: 500;
        }
        .cookie-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(114, 22, 244, .1);
            border: 2px solid rgba(199, 125, 255, .2);
        }
        .cookie-table td, .cookie-table th {
            border: 1px solid rgba(199, 125, 255, .2);
            padding: 15px;
            text-align: left;
        }
        .cookie-table th {
            background: linear-gradient(135deg, #7216f4, #8f47f6);
            color: #fff;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: .5px;
            font-size: .9rem;
        }
        .cookie-table tr:nth-child(2n) {
            background: rgba(199, 125, 255, .05);
        }
        .cookie-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(135deg, hsla(0, 0%, 7%, .8), rgba(40, 19, 69, .85) 50%, hsla(0, 0%, 7%, .8));
            backdrop-filter: blur(20px) saturate(150%);
            -webkit-backdrop-filter: blur(20px) saturate(150%);
            color: #fff;
            padding: 12px 20px;
            display: none;
            z-index: 99996 !important;
            border-top: 1px solid hsla(0, 0%, 100%, .2);
            box-shadow: 0 -4px 20px rgba(0, 0, 0, .3), inset 0 1px 0 hsla(0, 0%, 100%, .1);
            overflow: hidden;
        }
        .cookie-banner:before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 50%;
            background: linear-gradient(180deg, hsla(0, 0%, 100%, .1), transparent);
            pointer-events: none;
        }
        .cookie-banner.show {
            display: block;
            animation: a .6s cubic-bezier(.4, 0, .2, 1);
        }
        @keyframes a {
            0% {
                transform: translateY(100%);
                opacity: 0;
                backdrop-filter: blur(0);
                -webkit-backdrop-filter: blur(0);
            }
            to {
                transform: translateY(0);
                opacity: 1;
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
            }
        }
        .banner-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
        }
        .banner-text {
            flex: 1;
            min-width: 280px;
            font-weight: 500;
            line-height: 1.3;
            font-size: 14px;
            margin-right: 20px;
        }
        .banner-buttons {
            display: flex;
            flex-wrap: wrap;
        }
        .cookie-btn {
            padding: 8px 16px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            transition: all .3s ease;
            text-transform: uppercase;
            letter-spacing: .3px;
            margin-left: 8px;
            text-decoration: none;
            display: inline-block;
        }
        .cookie-btn-accept {
            background: linear-gradient(135deg, #7216f4, #8f47f6);
            color: #fff;
        }
        .cookie-btn-accept:hover {
            background: linear-gradient(135deg, #8f47f6, #9d4edd);
            color: #fff;
        }
        .cookie-btn-decline {
            background: #e74c3c;
            color: #fff;
        }
        .cookie-btn-decline:hover {
            background: #c0392b;
            color: #fff;
        }
        .entry-content > * {
            margin-top: 0;
            margin-bottom: 0;
        }
        .hero-section {
            padding: 40px 0 60px;
            background: linear-gradient(135deg, #f8f8f8, #fff);
            position: relative;
            overflow: hidden;
            z-index: 1 !important;
        }
        .hero-section .wp-block-columns {
            position: relative;
            z-index: 2;
            align-items: center;
        }
        .hero-section h1 {
            font-size: 3.5rem;
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            color: #281345;
        }
        .hero-section p {
            font-size: 1.25rem;
            color: #7e7e7e;
            margin-bottom: 2rem;
            line-height: 1.7;
        }
        .hero-section img {
            border-radius: 16px;
            box-shadow: 0 8px 24px rgba(114, 22, 244, .15);
            border: 2px solid rgba(199, 125, 255, .2);
            z-index: 1 !important;
            position: relative !important;
        }
        .stats-section {
            padding: 60px 0;
            background: #fff;
            text-align: center;
            z-index: 1 !important;
            position: relative !important;
        }
        .stats-section .wp-block-column {
            padding: 2rem 1rem;
        }
        .stats-section h3 {
            font-size: 3rem;
            font-weight: 800;
            color: #7216f4;
            margin-bottom: .5rem;
            line-height: 1;
        }
        .stats-section p {
            color: #7e7e7e;
            font-weight: 500;
            margin: 0;
            font-size: 1rem;
        }
        .features-section {
            padding: 80px 0;
            background: #f8f8f8;
            text-align: center;
            z-index: 1 !important;
            position: relative !important;
        }
        .features-section h2 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: #281345;
            text-align: center;
        }
        .features-section > p {
            font-size: 1.25rem;
            color: #7e7e7e;
            max-width: 600px;
            margin: 0 auto 4rem;
            text-align: center;
        }
        .features-section .wp-block-column {
            background: linear-gradient(135deg, hsla(0, 0%, 100%, .95), hsla(0, 0%, 97%, .98) 50%, hsla(0, 0%, 100%, .95));
            backdrop-filter: blur(20px) saturate(130%);
            -webkit-backdrop-filter: blur(20px) saturate(130%);
            padding: 2.5rem;
            border-radius: 16px;
            margin: 0 15px 30px;
            box-shadow: 0 8px 32px rgba(114, 22, 244, .12), 0 0 0 1px rgba(199, 125, 255, .2), inset 0 1px 0 hsla(0, 0%, 100%, .8), inset 0 -1px 0 rgba(0, 0, 0, .03);
            transition: all .4s cubic-bezier(.4, 0, .2, 1);
            border: 2px solid rgba(199, 125, 255, .2);
            position: relative;
            overflow: hidden;
            z-index: 1 !important;
        }
        .features-section .wp-block-column:before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #7216f4, #8f47f6 50%, #9d4edd);
            border-radius: 16px 16px 0 0;
        }
        .features-section .wp-block-column:after {
            content: "";
            position: absolute;
            top: 4px;
            left: 0;
            right: 0;
            height: 30%;
            background: linear-gradient(180deg, hsla(0, 0%, 100%, .4), hsla(0, 0%, 100%, .1) 50%, transparent);
            pointer-events: none;
            border-radius: 0 0 50% 50%;
        }
        .features-section .wp-block-column:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 16px 48px rgba(114, 22, 244, .2), 0 0 0 1px rgba(199, 125, 255, .4), inset 0 1px 0 hsla(0, 0%, 100%, .9), inset 0 -1px 0 rgba(0, 0, 0, .05);
            border-color: rgba(199, 125, 255, .4);
            backdrop-filter: blur(25px) saturate(140%);
            -webkit-backdrop-filter: blur(25px) saturate(140%);
        }
        .about-section {
            padding: 80px 0;
            background: #fff;
            z-index: 1 !important;
            position: relative !important;
        }
        .about-section h2 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: #281345;
            line-height: 1.2;
        }
        .about-section p {
            font-size: 1.125rem;
            color: #7e7e7e;
            margin-bottom: 1.5rem;
            line-height: 1.7;
        }
        .about-section img {
            border-radius: 16px;
            width: 100%;
            height: 400px;
            object-fit: cover;
            box-shadow: 0 8px 24px rgba(114, 22, 244, .15);
            border: 2px solid rgba(199, 125, 255, .2);
            z-index: 1 !important;
            position: relative !important;
        }
        .cta-section {
            padding: 80px 0;
            background: linear-gradient(135deg, #7216f4, #8f47f6);
            color: #fff;
            text-align: center;
            position: relative;
            z-index: 1 !important;
        }
        .cta-section h2 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: #fff;
            line-height: 1.2;
        }
        .cta-section p {
            font-size: 1.25rem;
            margin-bottom: 2rem;
            opacity: .9;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.6;
        }
        .wp-block-button__link {
            border-radius: 8px !important;
            font-weight: 600 !important;
            padding: 12px 24px !important;
            transition: all .3s ease !important;
            text-decoration: none !important;
            border: none !important;
            cursor: pointer !important;
            display: inline-block !important;
            z-index: 2 !important;
            position: relative !important;
        }
        .wp-block-button__link:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
        }
        .wp-block-button__link:hover, .wp-block-button a, .wp-block-button a:focus, .wp-block-button a:hover, .wp-block-button a:visited {
            text-decoration: none !important;
        }
        .wp-block-button.is-style-fill .wp-block-button__link {
            background: linear-gradient(135deg, #7216f4, #8f47f6) !important;
            color: #fff !important;
        }
        .wp-block-button.is-style-outline .wp-block-button__link {
            background: #fff !important;
            color: #7216f4 !important;
            border: 2px solid #7216f4 !important;
        }
        .testimonials-section {
            padding: 100px 0;
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            position: relative;
            overflow: hidden;
        }

        .testimonials-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .testimonials-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .testimonials-header h2 {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--dark-text);
            margin-bottom: 16px;
            line-height: 1.2;
        }

        .testimonials-subtitle {
            font-size: 1.1rem;
            color: var(--gray-text);
            max-width: 500px;
            margin: 0 auto;
            line-height: 1.5;
        }

        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 32px;
            margin-bottom: 60px;
        }

        @media (max-width: 768px) {
            .testimonials-grid {
                grid-template-columns: 1fr;
                gap: 24px;
            }
        }

        .testimonial-card {
            background: #ffffff;
            border: 1px solid rgba(199, 125, 255, 0.15);
            border-radius: 16px;
            padding: 32px;
            box-shadow: 0 4px 24px rgba(114, 22, 244, 0.08),
                0 1px 4px rgba(0, 0, 0, 0.04);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .testimonial-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-purple), var(--secondary-purple));
            border-radius: 16px 16px 0 0;
        }

        .testimonial-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 40px rgba(114, 22, 244, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.08);
            border-color: rgba(199, 125, 255, 0.25);
        }

        .testimonial-content {
            margin-bottom: 24px;
        }

        .quote-icon {
            width: 32px;
            height: 32px;
            margin-bottom: 16px;
            opacity: 0.3;
        }

        .quote-icon svg {
            width: 100%;
            height: 100%;
            fill: var(--primary-purple);
        }

        .testimonial-quote {
            font-size: 1.1rem;
            line-height: 1.6;
            color: var(--dark-text);
            font-style: normal;
            margin: 0;
            font-weight: 400;
            position: relative;
        }

        .testimonial-quote::before,
        .testimonial-quote::after {
            display: none;
        }

        .testimonial-author {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            padding-top: 20px;
            border-top: 1px solid rgba(199, 125, 255, 0.1);
        }

        .author-info {
            flex: 1;
        }

        .author-name {
            font-size: 1rem;
            font-weight: 600;
            color: var(--primary-purple);
            margin-bottom: 4px;
            line-height: 1.3;
        }

        .author-title {
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--dark-text);
            margin-bottom: 2px;
            line-height: 1.3;
        }

        .author-company {
            font-size: 0.85rem;
            color: var(--gray-text);
            line-height: 1.3;
        }

        .author-rating {
            flex-shrink: 0;
            margin-left: 16px;
        }

        @media (max-width: 768px) {
            .testimonials-section {
                padding: 60px 0;
            }

            .testimonials-header h2 {
                font-size: 2rem;
            }

            .testimonials-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .testimonial-card {
                padding: 24px;
            }

            .testimonial-quote {
                font-size: 1rem;
            }

            .testimonials-container {
                padding: 0 20px;
            }
        }

        @media (max-width: 480px) {
            .testimonial-card {
                padding: 20px;
            }

            .testimonials-header {
                margin-bottom: 40px;
            }

            .quote-icon {
                width: 24px;
                height: 24px;
                margin-bottom: 12px;
            }
        }
        :root {
            --glass-purple-tint-wp-final: linear-gradient(135deg, rgba(114, 22, 244, .6), rgba(80, 15, 171, .7));
            --glass-purple-tint-hover-wp-final: linear-gradient(135deg, rgba(114, 22, 244, .7), rgba(80, 15, 171, .8));
            --glass-border-purple-wp-final: rgba(199, 125, 255, .4);
            --glass-border-purple-hover-wp-final: rgba(220, 180, 255, .7);
            --text-color-wp-final: #fff;
        }
        .button-container {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
            box-sizing: border-box;
            position: relative;
            z-index: 1;
        }
        .cta-button {
            background: var(--glass-purple-tint-wp-final) !important;
            backdrop-filter: blur(10px) !important;
            -webkit-backdrop-filter: blur(10px) !important;
            font-family: Helvetica Neue, Helvetica, Arial, sans-serif !important;
            font-size: 1.3rem !important;
            font-weight: 600 !important;
            text-decoration: none !important;
            line-height: 1.4 !important;
            text-shadow: 0 2px 5px rgba(40, 19, 69, .5) !important;
            border-radius: 12px !important;
            padding: 16px 28px !important;
            text-align: center !important;
            display: inline-block !important;
            box-sizing: border-box !important;
            width: 250px !important;
            border: 1px solid var(--glass-border-purple-wp-final) !important;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, .3) !important;
            transition: all .35s cubic-bezier(.25, .46, .45, .94) !important;
            cursor: pointer !important;
            user-select: none !important;
            -webkit-user-select: none !important;
            z-index: 2 !important;
            position: relative !important;
        }
        .cta-button, .cta-button:hover {
            color: var(--text-color-wp-final) !important;
        }
        .cta-button:hover {
            background: var(--glass-purple-tint-hover-wp-final) !important;
            transform: translateY(-6px) scale(1.05) !important;
            box-shadow: 0 14px 40px rgba(0, 0, 0, .35) !important;
            border-color: var(--glass-border-purple-hover-wp-final) !important;
        }
        .cta-button:active {
            transform: translateY(1px) scale(1.02) !important;
        }
        #treasury-stack-iframe {
            width: 100% !important;
            border: none !important;
            overflow: hidden !important;
            display: block !important;
            transition: height .3s ease !important;
            z-index: 1 !important;
            position: relative !important;
        }
        .wp-block-custom-html, .wp-block-html, [id*=treasury-stack-iframe]:parent {
            overflow: visible !important;
        }
        .entry-content iframe {
            max-width: 100% !important;
            overflow: hidden !important;
            z-index: 1 !important;
            position: relative !important;
        }
        iframe html {
            overflow-y: visible !important;
            overflow-x: hidden !important;
        }
        iframe body {
            overflow: visible !important;
            margin: 0 !important;
            padding: 0 !important;
        }
        body:not(iframe body) {
            overflow-y: auto !important;
            overflow-x: hidden !important;
        }
        .wp-block-custom-html:after, .wp-block-html:after {
            content: none !important;
            display: none !important;
        }
        body {
            font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            background: linear-gradient(135deg, #f8f8f8, #fff);
            padding: 0;
            margin: 0;
            overflow-x: hidden;
            padding-top: var(--nav-height);
        }

        body.banner-present {
            padding-top: calc(var(--nav-height) + var(--banner-height));
        }

        body.banner-minimized {
            padding-top: calc(var(--nav-height) + var(--banner-height-minimized));
            min-height: auto;
        }

body.banner-closed {
    padding-top: var(--nav-height);
    min-height: auto;
}

body.rt-no-body-padding {
    padding-top: 0 !important;
}

body.rt-no-body-padding .site-content {
    margin-top: var(--nav-height);
}

body.banner-present.rt-no-body-padding .site-content {
    margin-top: calc(var(--nav-height) + var(--banner-height));
}

body.banner-minimized.rt-no-body-padding .site-content {
    margin-top: calc(var(--nav-height) + var(--banner-height-minimized));
}

body.banner-closed.rt-no-body-padding .site-content {
    margin-top: var(--nav-height);
}

        .frosted-glass {
            background: linear-gradient(135deg, hsla(0, 0%, 100%, .85), hsla(0, 0%, 97%, .9));
            backdrop-filter: blur(20px) saturate(130%);
            -webkit-backdrop-filter: blur(20px) saturate(130%);
            border: 1px solid rgba(199, 125, 255, .2);
            box-shadow: 0 8px 32px rgba(114, 22, 244, .12), inset 0 1px 0 hsla(0, 0%, 100%, .8), inset 0 -1px 0 rgba(0, 0, 0, .03);
            border-radius: 16px;
            padding: 2rem;
            z-index: 1 !important;
            position: relative !important;
        }
        h1, h2, h3 {
            font-weight: 700;
            color: #281345;
            line-height: 1.2;
        }
        h1, h2, h3, p {
            font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
        }
        p {
            font-size: 1.125rem;
            color: #7e7e7e;
            line-height: 1.6;
        }
        .wp-block-button__link {
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: .5px;
        }
        .about-section, .cta-section, .features-section .wp-block-column, .hero-section, .wp-block-button__link {
            font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
        }
        @media (max-width:1024px) {
            .banner-content {
                flex-direction: column;
                text-align: center;
            }
            .banner-text {
                margin-right: 0;
                margin-bottom: 10px;
            }
            .cookie-btn {
                margin: 4px;
            }
        }
        @media (max-width:480px) {
            .banner-content {
                flex-direction: column;
                text-align: center;
            }
            .banner-text {
                margin-right: 0;
                margin-bottom: 10px;
            }
            .cookie-btn {
                margin: 4px;
            }
        }
        @media print {
            .cookie-banner, .modal {
                display: none !important;
            }
        }
        @media (max-width:768px) {
            .search-input {
                font-size: 16px !important;
                -webkit-appearance: none;
                border-radius: 12px;
            }
            .side-menu.open {
                transform: translateX(0);
                box-shadow: 0 12px 48px rgba(0, 0, 0, .2);
                opacity: 1;
                pointer-events: auto;
                z-index: 99998;
            }
        }
        .wp-block-site-logo, .wp-block-site-logo .custom-logo, .wp-block-site-logo img {
            background: none !important;
            background-color: transparent !important;
            z-index: 1000002 !important;
            position: relative !important;
        }
        .wp-block-site-logo .custom-logo, .wp-block-site-logo img {
            box-shadow: none !important;
        }
        .wp-block-site-logo .custom-logo-link, .wp-block-site-logo .custom-logo-link:hover, .wp-block-site-logo .custom-logo-link:hover img {
            background: none !important;
            background-color: transparent !important;
        }
        .gated-download-form {
            background: linear-gradient(135deg, hsla(0, 0%, 100%, .95), hsla(0, 0%, 97%, .98) 50%, hsla(0, 0%, 100%, .95)) !important;
            backdrop-filter: blur(20px) saturate(130%) !important;
            -webkit-backdrop-filter: blur(20px) saturate(130%) !important;
            border: 2px solid rgba(199, 125, 255, .3) !important;
            border-radius: 16px !important;
            box-shadow: 0 8px 32px rgba(114, 22, 244, .15), 0 0 0 1px hsla(0, 0%, 100%, .5), inset 0 1px 0 hsla(0, 0%, 100%, .8) !important;
            padding: 40px !important;
            margin: 40px auto !important;
            max-width: 600px !important;
            position: relative !important;
            overflow: hidden !important;
            box-sizing: border-box !important;
            z-index: 1 !important;
        }
        .gated-download-form:before {
            top: 0;
            height: 4px;
            background: linear-gradient(90deg, #7216f4, #8f47f6 50%, #9d4edd);
            border-radius: 16px 16px 0 0;
            z-index: 1;
        }
        .gated-download-form:before, .gated-download-form:after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
        }
        .gated-download-form:after {
            top: 4px;
            height: 30%;
            background: linear-gradient(180deg, hsla(0, 0%, 100%, .4), hsla(0, 0%, 100%, .1) 50%, transparent);
            pointer-events: none;
            border-radius: 0 0 50% 50%;
            z-index: 2;
        }
        .gated-download-form h3 {
            margin: 0 0 8px !important;
            padding-top: 4px !important;
            color: var(--dark-text) !important;
            font-size: 2rem !important;
            font-weight: 700 !important;
            line-height: 1.2 !important;
        }
        .gated-download-form .subtitle, .gated-download-form h3 {
            text-align: center !important;
            position: relative !important;
            z-index: 3 !important;
        }
        .gated-download-form .subtitle {
            margin: 0 0 32px !important;
            color: var(--gray-text) !important;
            font-size: 1.125rem !important;
            font-weight: 400 !important;
            line-height: 1.5 !important;
        }
        .gated-download-form .form-row {
            margin-bottom: 2px !important;
            position: relative !important;
            z-index: 3 !important;
        }
        .gated-download-form .form-row-group {
            display: flex !important;
            gap: 4px !important;
            margin-bottom: 2px !important;
        }
        .gated-download-form .form-row-group .form-row {
            flex: 1 !important;
            margin-bottom: 0 !important;
        }
        .gated-download-form .form-row label {
            display: block !important;
            margin-bottom: 2px !important;
            font-weight: 500 !important;
            color: var(--dark-text) !important;
            font-size: 16px !important;
            line-height: 1.2 !important;
        }
        .gated-download-form .wpcf7-form-control-wrap {
            margin: 0 !important;
            padding: 0 !important;
            position: relative !important;
        }
        .gated-download-form .wpcf7-form-control, .gated-download-form p {
            margin: 0 !important;
        }
        .gated-download-form p {
            padding: 0 !important;
        }
        .gated-download-form br {
            display: none !important;
        }
        .gated-download-form .wpcf7-form-control:not(.wpcf7-submit), .gated-download-form input[type=email], .gated-download-form input[type=text] {
            width: 100% !important;
            padding: 14px 16px !important;
            background: linear-gradient(135deg, hsla(0, 0%, 100%, .9), hsla(0, 0%, 97%, .95)) !important;
            border: 1px solid rgba(199, 125, 255, .2) !important;
            border-radius: 8px !important;
            font-size: 16px !important;
            transition: all .3s ease !important;
            box-sizing: border-box !important;
            color: var(--dark-text) !important;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 0 0 0 rgba(139, 92, 246, 0);
        }
        .gated-download-form .wpcf7-form-control:focus:not(.wpcf7-submit), .gated-download-form input[type=email]:focus, .gated-download-form input[type=text]:focus {
            border-color: var(--secondary-purple) !important;
            outline: none !important;
            background: hsla(0, 0%, 100%, .98) !important;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 0 0 3px rgba(139, 92, 246, .1), 0 4px 12px rgba(139, 92, 246, .15) !important;
            transform: translateY(-1px);
        }
        .gated-download-form .wpcf7-submit, .gated-download-form input[type=submit] {
            background: linear-gradient(135deg, var(--secondary-purple), var(--primary-purple)) !important;
            color: #fff !important;
            padding: 16px 28px !important;
            border: none !important;
            border-radius: 8px !important;
            font-size: 18px !important;
            font-weight: 600 !important;
            cursor: pointer !important;
            width: 100% !important;
            transition: all .3s ease !important;
            margin-top: 16px !important;
            text-transform: uppercase !important;
            letter-spacing: .5px !important;
            box-sizing: border-box !important;
            position: relative !important;
            z-index: 3 !important;
            box-shadow: 0 4px 16px rgba(114, 22, 244, .3) !important;
        }
        .gated-download-form .wpcf7-submit:hover, .gated-download-form input[type=submit]:hover {
            background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 8px 24px rgba(139, 92, 246, .4) !important;
        }
        .gated-download-form .checkbox-row {
            display: flex !important;
            align-items: flex-start !important;
            margin-bottom: 20px !important;
            position: relative !important;
            z-index: 3 !important;
        }
        .gated-download-form .checkbox-row input[type=checkbox] {
            width: auto !important;
            margin: 0 8px 0 0 !important;
            margin-top: 2px !important;
            flex-shrink: 0 !important;
            accent-color: var(--primary-purple) !important;
        }
        .gated-download-form .checkbox-row label {
            margin-bottom: 0 !important;
            color: var(--dark-text) !important;
            font-size: 16px !important;
            line-height: 1.3 !important;
            cursor: pointer !important;
        }
        @media (max-width:768px) {
            .gated-download-form {
                padding: 24px 20px !important;
                border-radius: 12px !important;
                margin: 20px auto !important;
            }
            .gated-download-form h3 {
                font-size: 1.6rem !important;
            }
            .gated-download-form .form-row-group {
                flex-direction: column !important;
                gap: 0 !important;
            }
            .gated-download-form .form-row-group .form-row {
                margin-bottom: 2px !important;
            }
        }
        .download-modal {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            z-index: 1000003 !important;
            background: linear-gradient(135deg, rgba(0, 0, 0, .4), rgba(40, 19, 69, .3) 50%, rgba(0, 0, 0, .4)) !important;
            backdrop-filter: blur(15px) saturate(120%) !important;
            -webkit-backdrop-filter: blur(15px) saturate(120%) !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            transition: all .4s cubic-bezier(.4, 0, .2, 1) !important;
        }
        .download-modal.show {
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
        }
        .download-modal-content {
            max-width: calc(100vw - 40px) !important;
            max-height: calc(100vh - 40px) !important;
            padding: 20px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            transform: scale(.9) !important;
            transition: all .4s cubic-bezier(.4, 0, .2, 1) !important;
            z-index: 1000004 !important;
        }
        .download-modal.show .download-modal-content {
            transform: scale(1) !important;
        }
        .close-btn {
            position: absolute !important;
            top: 12px !important;
            right: 16px !important;
            background: hsla(0, 0%, 100%, .9) !important;
            border: 1px solid rgba(199, 125, 255, .3) !important;
            border-radius: 50% !important;
            font-size: 18px !important;
            color: #7216f4 !important;
            cursor: pointer !important;
            z-index: 1000005 !important;
            width: 32px !important;
            height: 32px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            transition: all .3s ease !important;
            padding: 0 !important;
            line-height: 1 !important;
            font-weight: 700 !important;
        }
        .close-btn:hover {
            background: rgba(114, 22, 244, .1) !important;
            border-color: rgba(199, 125, 255, .5) !important;
            color: #333 !important;
            transform: scale(1.1) !important;
        }
        .navigation.post-navigation, .nav-links, .post-navigation, nav[class*="post-navigation"], .single-post-nav, .entry-navigation, .post-nav, [class*="post-navigation"] {
            display: none !important;
        }
        /* =================================================================== */
/* =================================================================== */
/* REAL TREASURY NAVIGATION - CLEAN VERSION
/* =================================================================== */

:root {
    --primary-purple: #7216f4;
    --secondary-purple: #8f47f6;
    --light-purple: #c77dff;
    --dark-text: #281345;
    --gray-text: #6b7280;
    --nav-height: 80px;
    --banner-height: 80px;
    --banner-height-minimized: 60px;
    /* Increased opacity for better dropdown contrast */
    --dropdown-bg: linear-gradient(135deg,
        hsla(0, 0%, 100%, .95),
        hsla(0, 0%, 97%, .95) 50%,
        hsla(0, 0%, 100%, .95));
    --dropdown-inner-bg: linear-gradient(135deg,
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0.4));
    --dropdown-border-color: rgba(199, 125, 255, .35);
}

@media (max-width: 992px) {
    :root {
        --nav-height: 70px;
    }
}

/* Main Header Container */
.rt-nav-container {
    width: 100%;
    background: linear-gradient(135deg, rgba(80, 15, 171, 0.9), rgba(40, 19, 69, 0.95));
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    transition: top 0.3s ease;
    /* CRITICAL: Remove any borders or spacing that create gaps */
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Override any banner-specific nav positioning that might interfere */
body.banner-present .rt-nav-container {
    top: 80px !important;
}

body.banner-minimized .rt-nav-container {
    top: 60px !important;
}

body.banner-closed .rt-nav-container {
    top: 0 !important;
}


.rt-nav-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem 0 1rem;
    height: 80px;
    min-height: 80px;
    box-sizing: border-box;
    position: relative;
    /* CRITICAL: Eliminate any spacing */
    margin: 0 !important;
    border: none !important;
}

/* Logo Container */
.rt-logo {
    margin-right: auto;
    padding-left: 0;
}

.rt-logo img {
    height: 48px;
    width: auto;
    background: none !important;
    box-shadow: none !important;
}

/* Navigation Menu */
.rt-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
    margin-left: auto;
    margin-right: 2rem;
}

.rt-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    /* CRITICAL: Remove any margins that create gaps */
    margin: 0 !important;
    padding: 0 !important;
}

.rt-nav-item-contact {
    order: 4;
}

.rt-nav-item-portal {
    order: 5;
}

.rt-nav-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.rt-nav-link:hover,
.rt-nav-item.active .rt-nav-link {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.rt-nav-link.has-dropdown::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #ffffff;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
    opacity: 0.8;
}

.rt-nav-item.active .rt-nav-link.has-dropdown::after {
    transform: rotate(180deg);
}

/* Create visual connection between nav item and dropdown */
.rt-nav-item.active .rt-nav-link.has-dropdown {
    position: relative;
    z-index: 1000001;
}

/*
 * Removed pseudo-element that attempted to visually bridge the
 * navigation item and its dropdown. This element caused an unwanted
 * gap when the dropdown was positioned absolutely.
 */

/* Dropdown Menu - SIMPLIFIED SEAMLESS VERSION */

.rt-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    display: flex;
    justify-content: center;

    /* Enhanced glassmorphism background for better contrast */
    background: var(--dropdown-bg) !important;
    /* Increase blur for stronger background separation */
    backdrop-filter: blur(80px) saturate(160%) brightness(1.1) !important;
    -webkit-backdrop-filter: blur(80px) saturate(160%) brightness(1.1) !important;
    border: 1px solid var(--dropdown-border-color) !important;
    border-top: none !important;
    box-shadow: 0 8px 32px rgba(114, 22, 244, .08), 0 0 0 1px rgba(255, 255, 255, .3) inset !important;
    border-radius: 0 !important;

    /* Visibility controls */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;

    z-index: 1000000;
    overflow: hidden;

    /* CRITICAL: Allow JavaScript to set positioning */
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

.rt-nav-item.active .rt-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.rt-dropdown-inner {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 2.5rem 2rem !important;
    box-sizing: border-box !important;
    display: block !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    /* Add subtle inner background for better text contrast */
    background: var(--dropdown-inner-bg) !important;
    border-radius: 8px !important;
}

/* Enhance text contrast for better readability on transparent background */
.rt-main-menu-link,
.rt-about-link,
.rt-service-title,
.rt-about-story h3,
.rt-about-story p,
.rt-about-description p {
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8) !important;
}

/* =================================================================== */
/* GAP PREVENTION - SEAMLESS CONNECTION */
/* =================================================================== */

/* Ensure nav items have no spacing */
.rt-nav-item {
    margin: 0 !important;
    padding: 0 !important;
}

.rt-nav-item * {
    margin: 0 !important;
}

/* Create seamless connection */
.rt-nav-item.active {
    position: relative;
    z-index: 1000001;
}

/* Force dropdown to connect seamlessly - no gaps */
.rt-nav-item.active .rt-dropdown {
    top: calc(100% - 1px) !important; /* Overlap by 1px to ensure no gap */
    margin: 0 !important;
    padding: 0 !important;
}

/* Override any conflicting transforms */
.rt-nav-item.active .rt-dropdown {
    transform: none !important;
}
/* Main Menu Layout */
.rt-main-menu {
    display: grid;
    grid-template-columns: 1fr 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.rt-main-menu-column h3 {
    color: var(--dark-text) !important;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.rt-main-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rt-main-menu-link {
    color: var(--dark-text) !important;
    text-decoration: none !important;
    padding: 10px 15px !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    background: none !important;
    border-radius: 8px;
    display: block;
    font-size: 1.5rem !important;
    text-align: left;
}

.rt-main-menu-link:hover {
    color: var(--primary-purple) !important;
    background: hsla(0, 0%, 100%, .5) !important;
    transform: translateX(5px);
}

/* Services Grid */
.rt-services-menu {
    max-width: 900px;
    margin: 0 auto;
}

.rt-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.rt-service-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(15px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(120%) !important;
    border-radius: 12px;
    border: 1px solid rgba(114, 22, 244, 0.15) !important;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-shadow: 
        0 4px 16px rgba(114, 22, 244, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset !important;
}

.rt-service-item:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-4px);
    box-shadow: 
        0 8px 24px rgba(114, 22, 244, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset !important;
    border-color: rgba(114, 22, 244, 0.25) !important;
}

.rt-service-title {
    color: var(--dark-text);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.rt-service-desc {
    color: var(--gray-text);
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.rt-service-cta {
    color: var(--primary-purple);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

/* Enhanced About Menu */
.rt-about-enhanced {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--about-section-gap);
    align-items: start;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.rt-about-enhanced h3 {
    color: var(--dark-text) !important;
    font-size: 1.2rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    opacity: 0.9 !important;
}

.rt-about-story {
    padding-right: 1rem;
}

.rt-about-story h3 {
    color: var(--dark-text) !important;
    font-size: 1.2rem !important;
    margin-bottom: 1rem !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.rt-about-story > p {
    color: var(--primary-purple) !important;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.rt-about-description p {
    color: var(--gray-text) !important;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem !important;
}

.rt-about-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.rt-about-link {
    color: var(--dark-text) !important;
    text-decoration: none !important;
    padding: 10px 15px !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: 8px !important;
    display: block !important;
    border: 1px solid rgba(199, 125, 255, 0.2) !important;
    font-size: 1rem !important;
}

.rt-about-link:hover {
    color: var(--primary-purple) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    transform: translateX(5px) !important;
    border-color: rgba(199, 125, 255, 0.4) !important;
}

/* Team Preview Section */
.rt-about-team {
    text-align: center;
}

.rt-about-team h3 {
    color: var(--dark-text) !important;
    font-size: 1.2rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    opacity: 0.9 !important;
}

.rt-founders-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: .5rem !important;
}

.rt-founder-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(114, 22, 244, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.rt-founder-card:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(114, 22, 244, 0.15);
    border-color: rgba(114, 22, 244, 0.3);
}

.rt-founder-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(199, 125, 255, 0.3);
    flex-shrink: 0;
}

.rt-founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Specific fix for Tracey's image in dropdown */
.rt-founder-image img[src*="TraceyHeadshot-3.webp"] {
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.2);
}

.rt-founder-info {
    text-align: left;
    flex: 1;
}

.rt-founder-name {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 1.1rem;
    line-height: 1.2;
}

.rt-founder-role {
    font-size: 0.85rem;
    color: var(--gray-text);
    opacity: 0.8;
}

.rt-team-cta {
    background: linear-gradient(135deg, #8f47f6, #7216f4);
    color: white !important;
    text-decoration: none !important;
    margin-top: .75rem !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(114, 22, 244, 0.3);
}

.rt-team-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(114, 22, 244, 0.4);
    color: white !important;
    text-decoration: none !important;
}

/* Stats Section */
.rt-about-stats {
    text-align: center;
}

.rt-about-stats h3 {
    color: var(--dark-text) !important;
    font-size: 1.2rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    opacity: 0.9 !important;
}


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

.rt-stat-item {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 0.6rem !important;
    border-radius: 12px;
    border: 1px solid rgba(114, 22, 244, 0.1);
    transition: all 0.3s ease;
    text-align: center !important;
}

.rt-stat-item:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(114, 22, 244, 0.15);
    border-color: rgba(114, 22, 244, 0.3);
}

.rt-stat-number {
    font-size: 1.6rem !important;
    font-weight: 800;
    color: var(--primary-purple);
    line-height: 1;
    margin-bottom: 0.2rem !important;
}

.rt-stat-label {
    color: var(--gray-text);
    font-weight: 500;
    font-size: 0.75rem !important;
    line-height: 1.1 !important;
}

/* Mobile responsiveness for About dropdown */
@media (max-width: 1200px) {
    .rt-about-enhanced {
        gap: 2rem !important;
        grid-template-columns: 1.8fr 1fr 1fr !important;
    }
}

@media (max-width: 768px) {
    .rt-about-enhanced {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }

    .rt-about-story {
        padding-right: 0 !important;
    }

    .rt-founders-grid {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .rt-founder-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        flex: 1;
        max-width: 120px;
    }

    .rt-founder-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .rt-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
    }

    .rt-stat-item {
        padding: 0.6rem 0.4rem !important;
    }

    .rt-stat-number {
        font-size: 1.4rem !important;
    }
}

/* CTA Button */
.rt-cta-button {
    background: linear-gradient(135deg, #8f47f6, #7216f4) !important;
    color: white !important;
    text-decoration: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(114, 22, 244, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    flex-shrink: 0;
    margin-right: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rt-cta-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(114, 22, 244, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

/* Book Meeting Button */
.rt-book-meeting {
    display: block;
    background: linear-gradient(135deg, #8f47f6, #7216f4);
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

.rt-book-meeting:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(114, 22, 244, 0.4);
    color: white;
    text-decoration: none;
}

/* Explore Dropdown Image */
.rt-explore-image {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 1rem auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(114, 22, 244, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(114, 22, 244, 0.2);
}

/* Ensure overlay positions relative to the explore image link */
.rt-explore-link {
    position: relative;
    display: block;
}

/* Overlay title used in the Insights dropdown image */
.chart-title-overlay {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--dark-text);
    padding: 12px 20px; /* Original size */
    border-radius: 16px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    width: auto;
    min-width: 320px; /* Original size */
    max-width: 90%;
    text-align: center;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.chart-title-overlay h3 {
    color: var(--dark-text);
    font-size: 1rem; /* Original size */
    margin: 0 0 4px 0; /* Original spacing */
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.chart-title-overlay p {
    color: var(--light-purple);
    font-size: 1.1rem; /* Original size */
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* New larger overlay for treasury tech market page */
.chart-title-overlay-large {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--dark-text);
    padding: 16px 28px; /* Larger padding */
    border-radius: 16px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    width: auto;
    min-width: 400px; /* Larger width */
    max-width: 90%;
    text-align: center;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.chart-title-overlay-large h3 {
    color: var(--dark-text);
    font-size: 1.2rem; /* Larger text */
    margin: 0 0 6px 0; /* Larger spacing */
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.chart-title-overlay-large p {
    color: var(--light-purple);
    font-size: 1.3rem; /* Larger text */
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .chart-title-overlay {
        padding: 8px 14px;
        top: -20px;
        line-height: 1.3;
        min-width: 260px;
    }

    .chart-title-overlay h3 {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .chart-title-overlay p {
        font-size: 0.85rem;
    }

    .chart-title-overlay-large {
        padding: 12px 20px;
        top: -20px;
        line-height: 1.3;
        min-width: 320px;
    }

    .chart-title-overlay-large h3 {
        font-size: 1rem;
        white-space: nowrap;
    }

    .chart-title-overlay-large p {
        font-size: 1.1rem;
    }
}

/* Smaller overlay text inside the main menu dropdown */
.rt-main-menu .chart-title-overlay {
    min-width: 260px;
    padding: 8px 14px;
}
.rt-main-menu .chart-title-overlay h3 {
     font-size: 0.6rem;
    white-space: nowrap;
}
.rt-main-menu .chart-title-overlay p {
    font-size: 0.6rem;
}

/* Insights Widget */
.rt-insights-widget {
    width: 100%;
    max-width: 340px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(248, 248, 248, 0.4));
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    border: 1px solid rgba(114, 22, 244, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(114, 22, 244, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.rt-insights-header {
    background: linear-gradient(135deg, rgba(114, 22, 244, 0.15), rgba(143, 71, 246, 0.2));
    color: var(--dark-text);
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(114, 22, 244, 0.2);
}

.rt-insights-header h3 {
    color: var(--dark-text) !important;
    opacity: 1;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.rt-insights-content-area {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 248, 248, 0.6));
}

.rt-insights-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rt-insight-card {
    flex: 0 0 100%;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-sizing: border-box;
    height: 100%;
}

.rt-insight-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
    margin-bottom: 12px;
}

.rt-insight-excerpt {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    flex-grow: 1;
}

.rt-insight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.rt-insight-date {
    font-size: 0.75rem;
    color: #8b5cf6;
    font-weight: 600;
    text-transform: uppercase;
}

.rt-insight-link {
    background: linear-gradient(135deg, rgba(114, 22, 244, 0.9), rgba(143, 71, 246, 0.95));
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rt-insight-link:hover {
    background: linear-gradient(135deg, rgba(143, 71, 246, 0.95), rgba(157, 78, 221, 1));
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(114, 22, 244, 0.25);
    text-decoration: none;
}

.rt-insights-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px;
    gap: 8px;
    background: linear-gradient(135deg, rgba(248, 248, 248, 0.6), rgba(255, 255, 255, 0.4));
    border-top: 1px solid rgba(114, 22, 244, 0.1);
}

.rt-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(114, 22, 244, 0.2);
    border: 1px solid rgba(114, 22, 244, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.rt-nav-dot.active {
    background: var(--primary-purple);
    transform: scale(1.1);
}

/* Mobile Toggle */
.rt-mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    z-index: 1000002;
    transition: all 0.3s ease;
}

.rt-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.rt-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff !important;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.rt-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.rt-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.rt-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Styles */
@media (max-width: 992px) {
    .rt-mobile-toggle {
        display: block !important;
        margin-left: auto;
        margin-right: 0.5rem;
    }
    
    .rt-nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) saturate(120%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(120%) !important;
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 1rem;
        height: calc(100vh - 70px);
        overflow-y: auto;
        align-items: stretch;
        z-index: 999998;
        border-top: 1px solid rgba(199, 125, 255, 0.2);
        margin-left: 0;
        margin-right: 0;
    }
    
    .rt-nav.active {
        display: flex !important;
    }
    
    .rt-nav-wrapper {
        height: 70px;
        padding: 0 1rem 0 0.5rem;
        position: relative;
    }

    .rt-logo {
        margin-right: 0;
    }
    
    .rt-nav-item {
        width: 100%;
        height: auto;
        flex-direction: column;
        align-items: stretch;
    }
    
    .rt-nav-link {
        width: 100%;
        padding: 1rem !important;
        background: rgba(255, 255, 255, 0.7) !important;
        border: 1px solid rgba(199, 125, 255, 0.2) !important;
        border-radius: 12px !important;
        justify-content: space-between;
        color: var(--dark-text) !important;
        text-shadow: none !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
    }
    
    .rt-nav-link:hover {
        background: rgba(255, 255, 255, 0.9) !important;
        border-color: rgba(199, 125, 255, 0.4) !important;
        color: var(--primary-purple) !important;
    }

    /* Maintain readable text color when menu item is active */
    .rt-nav-item.active .rt-nav-link {
        background: rgba(255, 255, 255, 0.9) !important;
        border-color: rgba(199, 125, 255, 0.4) !important;
        color: var(--primary-purple) !important;
    }

    .rt-nav-item.active .rt-nav-link.has-dropdown::after {
        border-top-color: var(--primary-purple) !important;
    }

    .rt-nav-link.has-dropdown::after {
        border-top-color: var(--dark-text) !important;
    }
    
    .rt-dropdown-inner {
        max-width: 1200px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 2.5rem 2rem !important;
        box-sizing: border-box !important;
        display: block !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        /* Slightly more opaque background on mobile */
        background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.16) 50%,
            rgba(255, 255, 255, 0.2)) !important;
        border-radius: 8px !important;
    }
    
    .rt-main-menu {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Center explore link image */
    .rt-explore-link {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .rt-insights-widget,
    .rt-main-menu-column:last-child {
        display: none !important;
    }
    
    .rt-services-grid {
        grid-template-columns: 1fr !important;
    }
    
    .rt-nav .rt-nav-item:last-child {
        margin-top: 1rem;
        padding: 0;
        background: none;
        border-radius: 0;
    }
    
    .rt-nav .rt-cta-button {
        width: 100% !important;
        text-align: center !important;
        padding: 1rem 2rem !important;
        background: linear-gradient(135deg, #8f47f6, #7216f4) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 12px !important;
        color: white !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        box-shadow: 0 4px 15px rgba(114, 22, 244, 0.3) !important;
    }
    
    .rt-nav .rt-cta-button:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(114, 22, 244, 0.4) !important;
    }
    
    .rt-main-menu-link {
        color: var(--dark-text) !important;
        text-decoration: none !important;
        padding: 12px 15px !important;
        transition: all 0.2s ease !important;
        font-weight: 500 !important;
        background: rgba(255, 255, 255, 0.5) !important;
        border-radius: 8px !important;
        display: block !important;
        margin-bottom: 0.5rem !important;
        border: 1px solid rgba(199, 125, 255, 0.2) !important;
        font-size: 1.5rem !important;
        text-align: left !important;
    }
    
    .rt-main-menu-link:hover {
        color: var(--primary-purple) !important;
        background: rgba(255, 255, 255, 0.8) !important;
        transform: translateX(5px) !important;
        border-color: rgba(199, 125, 255, 0.4) !important;
    }
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow-x: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* --- Main Banner Container --- */
.top-banner {
    background-color: #5d3a9b;
    color: white;
    width: 100%;
    padding: 12px 0;
    box-sizing: border-box;
}

/* --- Inner Content Container --- */
.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 15px;
}

/* --- Icon and Text Styling --- */
.banner-icon {
    font-size: 24px;
}

.banner-text {
    flex-grow: 1;
    text-align: center;
}

.banner-title {
    font-size: 1rem;
    font-weight: bold;
}

.banner-highlight {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.banner-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 4px;
}

/* --- Register Button --- */
.banner-register {
    background-color: #ffffff;
    color: #5d3a9b;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    white-space: nowrap;
    transition: background-color 0.3s, color 0.3s;
}

.banner-register:hover {
    background-color: #f0f0f0;
}

/* =================================================================== */
/* MODERN FOOTER STYLING */
/* =================================================================== */
.modern-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: #ffffff;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 60px;
    padding-bottom: 0;
    overflow: hidden;
}

.modern-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7216f4, #8f47f6 50%, #9d4edd);
}

.footer-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.company-section {
    padding-right: 20px;
}

.company-logo {
    margin-bottom: 20px;
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: brightness(1.1);
}

.company-tagline {
    font-size: 16px;
    line-height: 1.6;
    color: #d1d5db;
    margin-bottom: 30px;
    font-style: italic;
}

.footer-cta {
    margin-top: auto;
}

.footer-cta-button {
    background: linear-gradient(135deg, #7216f4, #8f47f6);
    color: #ffffff;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    display: inline-block;
    max-width: 240px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(114, 22, 244, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-cta-button:hover {
    background: linear-gradient(135deg, #8f47f6, #9d4edd);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(114, 22, 244, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.footer-heading {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 20px;
    color: #ffffff !important;
    position: relative;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #7216f4, #8f47f6);
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

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

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.contact-info li {
    margin-bottom: 12px;
}

.contact-email a {
    color: #c77dff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.contact-email a:hover {
    color: #8f47f6;
}

.contact-location {
    color: #9ca3af;
    font-size: 14px;
    margin-top: 8px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #d1d5db;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: linear-gradient(135deg, #7216f4, #8f47f6);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(114, 22, 244, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #c77dff;
}

/* Footer Responsive Design */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .company-section {
        grid-column: 1 / -1;
        text-align: center;
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .footer-cta-button {
        margin: 0 auto;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .modern-footer {
        padding-top: 40px;
        padding-bottom: 0;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .footer-cta-button {
        font-size: 13px;
        padding: 14px 20px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
}
/* Portal Access Modal */
.portal-access-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1000005 !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(40, 19, 69, 0.6)) !important;
    backdrop-filter: blur(20px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(120%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 20px !important;
}

.portal-access-modal.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.portal-access-modal .portal-access-form {
    width: 100% !important;
    max-width: 520px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.98) 50%, rgba(255, 255, 255, 0.95)) !important;
    backdrop-filter: blur(25px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(140%) !important;
    border: 2px solid rgba(199, 125, 255, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 8px 32px rgba(114, 22, 244, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    overflow-x: hidden !important;
    transform: scale(0.9) translateY(30px) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.portal-access-modal.show .portal-access-form {
    transform: scale(1) translateY(0) !important;
}

.portal-access-form h3 {
    background: linear-gradient(135deg, rgba(114, 22, 244, 0.1), rgba(143, 71, 246, 0.15)) !important;
    margin: 0 !important;
    padding: 32px 40px 20px 40px !important;
    color: #281345 !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(199, 125, 255, 0.2) !important;
    position: relative !important;
    z-index: 2 !important;
    line-height: 1.2 !important;
    border-radius: 20px 20px 0 0 !important;
}

.portal-access-form .subtitle {
    background: linear-gradient(135deg, rgba(114, 22, 244, 0.05), rgba(143, 71, 246, 0.08)) !important;
    margin: 0 !important;
    padding: 16px 40px 24px 40px !important;
    color: #7e7e7e !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(199, 125, 255, 0.1) !important;
    line-height: 1.5 !important;
}

.portal-access-modal .close-btn {
    position: absolute !important;
    top: 16px !important;
    right: 20px !important;
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    background: rgba(107, 114, 128, 0.1) !important;
    color: #6b7280 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 22px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    z-index: 15 !important;
    line-height: 1 !important;
    padding: 0 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.portal-access-modal .close-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
    transform: scale(1.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.portal-access-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.15)) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 0 40px 24px 40px !important;
}

.portal-access-info h4 {
    color: #1e40af !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

.portal-access-info ul {
    color: #1d4ed8 !important;
    font-size: 14px !important;
    margin: 0 !important;
    padding-left: 20px !important;
}

.portal-access-info li {
    margin-bottom: 4px !important;
}

.portal-access-granted {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.15)) !important;
    border: 2px solid rgba(34, 197, 94, 0.3) !important;
    padding: 32px 40px !important;
    margin: 24px 40px !important;
    border-radius: 12px !important;
    text-align: center !important;
}

.portal-access-granted h4 {
    color: #065f46 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
}

.portal-access-granted p {
    color: #047857 !important;
    font-size: 16px !important;
    margin-bottom: 16px !important;
}

.portal-access-granted .countdown {
    color: #059669 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

@media (max-width: 768px) {
    .portal-access-modal {
        padding: 15px !important;
    }
    .portal-access-modal .portal-access-form {
        max-width: 100% !important;
        border-radius: 16px !important;
    }
    .portal-access-form h3 {
        font-size: 22px !important;
        padding: 24px 28px 16px 28px !important;
    }
    .portal-access-form .subtitle {
        padding: 12px 28px 20px 28px !important;
        font-size: 15px !important;
    }
    .portal-access-info {
        margin: 16px 28px !important;
        padding: 20px 24px !important;
    }
}
/* =================================================================== */
/* CONTACT FORM 7 MODAL FIXES */
/* =================================================================== */

/* CRITICAL: Hide the blue response bar completely */
.portal-access-form .wpcf7-response-output {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* Hide CF7 validation errors in modal */
.portal-access-form .wpcf7-validation-errors {
    display: none !important;
}

/* Hide CF7 spinner */
.portal-access-form .wpcf7-spinner {
    display: none !important;
}

/* =================================================================== */
/* CONTACT FORM 7 CHECKBOX FIX - FINAL COMPLETE VERSION */
/* =================================================================== */

/* Reset the checkbox container */
.portal-access-form .checkbox-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin: 24px 0 !important;
    padding: 16px !important;
    background: #fafbfc !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
}

/* Reset CF7 checkbox wrapper paragraph */
.portal-access-form .checkbox-row p {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
}

/* Hide the BR tag that breaks the layout */
.portal-access-form .checkbox-row br {
    display: none !important;
}

/* Target the CF7 form control wrap - another wrapper I missed */
.portal-access-form .wpcf7-form-control-wrap {
    display: inline-flex !important;
    width: auto !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Target the CF7 form control wrapper */
.portal-access-form .wpcf7-form-control.wpcf7-checkbox {
    display: inline-flex !important;
    width: auto !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Target the CF7 checkbox list item wrapper */
.portal-access-form .wpcf7-checkbox .wpcf7-list-item {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    width: auto !important;
}

/* Style the actual checkbox input */
.portal-access-form .wpcf7-checkbox input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.2s ease !important;
}

.portal-access-form .wpcf7-checkbox input[type="checkbox"]:checked {
    background: #7216f4 !important;
    border-color: #7216f4 !important;
}

.portal-access-form .wpcf7-checkbox input[type="checkbox"]:checked::before {
    content: '✓' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

/* Hide the CF7 generated label text */
.portal-access-form .wpcf7-checkbox .wpcf7-list-item-label {
    display: none !important;
}

/* Style our custom label */
.portal-access-form .checkbox-row label {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    font-weight: 400 !important;
    flex: 1 !important;
}

/* Ensure links in the label work */
.portal-access-form .checkbox-row label a {
    color: #8b5cf6 !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
}

.portal-access-form .checkbox-row label a:hover {
    text-decoration: none !important;
    color: #7c3aed !important;
}

/* Ensure proper spacing for the entire form */
.portal-access-form .wpcf7 > p:last-child {
    margin-bottom: 0 !important;
}

/* Remove any extra margins from form elements */
.portal-access-form .wpcf7-form > p {
    margin-bottom: 0 !important;
}

/* Force hide any CF7 messages that might appear */
.portal-access-form .wpcf7-mail-sent-ok,
.portal-access-form .wpcf7-mail-sent-ng,
.portal-access-form .wpcf7-aborted,
.portal-access-form .wpcf7-spam-blocked {
    display: none !important;
}

/* =================================================================== */
/* Z-INDEX HIERARCHY FIX */
/* =================================================================== */

:root {
    --z-behind: -1;
    --z-normal: 1;
    --z-tooltip: 1000;
    --z-fixed: 1001;
    --z-sticky: 1002;
    --z-sidebar: 1003;
    --z-modal-backdrop: 1004;
    --z-modal: 1005;
    --z-dropdown: 1006;
    --z-toast: 1007;
    --z-navigation: 99999;
    --z-emergency: 100000;
}

.rt-nav-container {
    z-index: var(--z-navigation) !important;
    position: fixed !important; /* Keep navigation sticky */
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
}

/* Ensure dropdowns work correctly with banner positioning */
body.banner-present .rt-dropdown,
body.banner-minimized .rt-dropdown,
body.banner-closed .rt-dropdown {
    position: absolute !important;
    top: calc(100% - 1px) !important;
    transform: none !important;
}

.treasury-portal .side-menu,
.treasury-portal .shortlist-menu {
    z-index: var(--z-sidebar) !important;
}

.treasury-portal .side-menu-overlay,
.treasury-portal .shortlist-menu-overlay {
    z-index: calc(var(--z-sidebar) - 1) !important;
}

.treasury-portal .external-menu-toggle,
.treasury-portal .external-shortlist-toggle {
    z-index: calc(var(--z-sidebar) + 1) !important;
}

/* =================================================================== */
/* SIDEBAR POSITIONING FIX */
/* =================================================================== */

.treasury-portal .side-menu,
.treasury-portal .shortlist-menu {
    top: 80px !important;
    height: calc(100vh - 80px) !important;
}

.treasury-portal .external-menu-toggle {
    top: 120px !important;
}

.treasury-portal .external-shortlist-toggle {
    top: 120px !important;
}

@media (max-width: 992px) {
    .treasury-portal .side-menu,
    .treasury-portal .shortlist-menu {
        top: 70px !important;
        height: calc(100vh - 70px) !important;
    }
    .treasury-portal .external-menu-toggle,
    .treasury-portal .external-shortlist-toggle {
        top: 110px !important;
    }
}

body:not(.banner-closed) .treasury-portal .side-menu,
body:not(.banner-closed) .treasury-portal .shortlist-menu {
    top: 160px !important;
    height: calc(100vh - 160px) !important;
}

body:not(.banner-closed) .treasury-portal .external-menu-toggle,
body:not(.banner-closed) .treasury-portal .external-shortlist-toggle {
    top: 200px !important;
}

/* Enhanced Treasury Portal Integration with Workshop Banner */
/* Treasury portal content positioning fixes */
.treasury-portal {
    transition: margin-top 0.4s ease !important;
}

body.banner-minimized .treasury-portal {
    margin-top: 0 !important;
}

body.banner-closed .treasury-portal {
    margin-top: 0 !important;
}
.treasury-portal .external-menu-toggle {
    position: fixed;
    top: 160px; /* Start below banner + nav */
    left: 15px;
    transition: top 0.4s ease;
    z-index: calc(var(--z-sidebar) + 1);
}

.treasury-portal .external-shortlist-toggle {
    position: fixed;
    top: 160px; /* Start below banner + nav */
    right: 15px;
    transition: top 0.4s ease;
    z-index: calc(var(--z-sidebar) + 1);
}

body.banner-minimized .treasury-portal .external-menu-toggle,
body.banner-minimized .treasury-portal .external-shortlist-toggle {
    top: 170px !important; /* 70px banner + 80px nav + 20px spacing */
}

body.banner-closed .treasury-portal .external-menu-toggle,
body.banner-closed .treasury-portal .external-shortlist-toggle {
    top: 100px !important; /* 80px nav + 20px spacing */
}

.treasury-portal .side-menu,
.treasury-portal .shortlist-menu {
    top: 160px !important; /* Start below banner + nav */
    height: calc(100vh - 160px) !important;
    transition: top 0.4s ease, height 0.4s ease;
}

body.banner-minimized .treasury-portal .side-menu,
body.banner-minimized .treasury-portal .shortlist-menu {
    top: 150px !important; /* 70px banner + 80px nav */
    height: calc(100vh - 150px) !important;
}

body.banner-closed .treasury-portal .side-menu,
body.banner-closed .treasury-portal .shortlist-menu {
    top: 80px !important;
    height: calc(100vh - 80px) !important;
}

@media (max-width: 768px) {
    .treasury-portal .external-menu-toggle,
    .treasury-portal .external-shortlist-toggle {
        top: 130px !important; /* Mobile nav height + spacing */
    }
    
    body.banner-minimized .treasury-portal .external-menu-toggle,
    body.banner-minimized .treasury-portal .external-shortlist-toggle {
        top: 110px !important;
    }
    
    .treasury-portal .side-menu,
    .treasury-portal .shortlist-menu {
        top: 70px !important;
        height: calc(100vh - 70px) !important;
    }
}

/* =================================================================== */
/* MODAL Z-INDEX FIX */
/* =================================================================== */

.treasury-portal .ttp-modal,
.portal-access-modal,
.modal,
.tpa-modal,
.download-modal {
    z-index: var(--z-modal) !important;
}

.rt-dropdown {
    z-index: var(--z-dropdown) !important;
}

/* =================================================================== */
/* MOBILE SIDEBAR FIXES */
/* =================================================================== */

@media (max-width: 768px) {
    .rt-nav.active ~ .treasury-portal .side-menu,
    .rt-nav.active ~ .treasury-portal .shortlist-menu {
        transform: translateX(-100%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    body.menu-open .treasury-portal .external-menu-toggle,
    body.menu-open .treasury-portal .external-shortlist-toggle {
        display: none !important;
    }
    .treasury-portal .side-menu {
        width: 90% !important;
        transform: translateX(-100%) !important;
    }
    .treasury-portal .shortlist-menu {
        width: 90% !important;
        transform: translateX(100%) !important;
    }
}

/* =================================================================== */
/* SCROLL MANAGEMENT FIX */
/* =================================================================== */

body.modal-open,
body.side-menu-open,
body.shortlist-menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

body.modal-open.side-menu-open .treasury-portal .side-menu {
    display: none !important;
}

body.modal-open.shortlist-menu-open .treasury-portal .shortlist-menu {
    display: none !important;
}
/* =================================================================== */
/* MODAL CONTENT POSITIONING - PUSH DOWN BELOW HEADER */
/* =================================================================== */

/* Keep full-screen overlay but push content down below header */
/*
.portal-access-modal .portal-access-form,
.modal-content,
.tpa-modal-content,
.treasury-portal .ttp-modal-content {
    margin-top: 180px !important;
    max-height: calc(100vh - 200px) !important;
}

body.banner-minimized .portal-access-modal .portal-access-form,
body.banner-minimized .modal-content,
body.banner-minimized .tpa-modal-content,
body.banner-minimized .treasury-portal .ttp-modal-content {
    margin-top: 160px !important;
    max-height: calc(100vh - 180px) !important;
}

body.banner-closed .portal-access-modal .portal-access-form,
body.banner-closed .modal-content,
body.banner-closed .tpa-modal-content,
body.banner-closed .treasury-portal .ttp-modal-content {
    margin-top: 100px !important;
    max-height: calc(100vh - 120px) !important;
}

@media (max-width: 768px) {
    .portal-access-modal .portal-access-form,
    .modal-content,
    .tpa-modal-content,
    .treasury-portal .ttp-modal-content {
        margin-top: 90px !important;
        max-height: calc(100vh - 110px) !important;
    }

    body.banner-minimized .portal-access-modal .portal-access-form,
    body.banner-minimized .modal-content,
    body.banner-minimized .tpa-modal-content,
    body.banner-minimized .treasury-portal .ttp-modal-content,
    body.banner-closed .portal-access-modal .portal-access-form,
    body.banner-closed .modal-content,
    body.banner-closed .tpa-modal-content,
    body.banner-closed .treasury-portal .ttp-modal-content {
        margin-top: 90px !important;
        max-height: calc(100vh - 110px) !important;
    }
}
*/

/* Updated modal offset using padding instead of margin */
.portal-access-modal,
.modal,
.tpa-modal,
.treasury-portal .ttp-modal {
    padding-top: 180px !important;
}

body.banner-minimized .portal-access-modal,
body.banner-minimized .modal,
body.banner-minimized .tpa-modal,
body.banner-minimized .treasury-portal .ttp-modal {
    padding-top: 160px !important;
}

body.banner-closed .portal-access-modal,
body.banner-closed .modal,
body.banner-closed .tpa-modal,
body.banner-closed .treasury-portal .ttp-modal {

    padding-top: 100px !important;
}

.portal-access-modal .portal-access-form,
.modal-content,
.tpa-modal-content,
.treasury-portal .ttp-modal-content {
    max-height: calc(100vh - 160px - 40px) !important;
}

body.banner-minimized .portal-access-modal .portal-access-form,
body.banner-minimized .modal-content,
body.banner-minimized .tpa-modal-content,
body.banner-minimized .treasury-portal .ttp-modal-content {
    max-height: calc(100vh - 140px - 40px) !important;
}

body.banner-closed .portal-access-modal .portal-access-form,
body.banner-closed .modal-content,
body.banner-closed .tpa-modal-content,
body.banner-closed .treasury-portal .ttp-modal-content {
    max-height: calc(100vh - 80px - 40px) !important;
}

@media (max-width: 768px) {
    .portal-access-modal,
    .modal,
    .tpa-modal,
    .treasury-portal .ttp-modal {
        padding-top: 90px !important;

    }

    .portal-access-modal .portal-access-form,
    .modal-content,
    .tpa-modal-content,
    .treasury-portal .ttp-modal-content {
        max-height: calc(100vh - 70px - 40px) !important;
    }
}

/* Ensure content scrolls properly if needed */
.portal-access-modal .portal-access-form,
.modal-content,
.tpa-modal-content,
.treasury-portal .ttp-modal-content {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* =================================================================== */
/* PORTAL PAGE FOUC PREVENTION */
/* =================================================================== */

/* Hide portal page content initially to prevent FOUC during access verification */
body.treasury-portal-loading {
    overflow: hidden !important;
}

body.treasury-portal-loading .treasury-portal {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.4s ease, visibility 0.4s ease !important;
}

/* Show content after verification */
body.treasury-portal-ready .treasury-portal {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Loading indicator for portal page */
.treasury-portal-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(40, 19, 69, 0.95), rgba(114, 22, 244, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99997;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.treasury-portal-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.treasury-portal-loader .loader-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 40px;
}

.treasury-portal-loader .loader-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    animation: pulse 2s ease-in-out infinite;
}

.treasury-portal-loader h3 {
    color: white;
    font-size: 28px;
    margin: 0 0 16px 0;
    font-weight: 600;
}

.treasury-portal-loader p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0 0 24px 0;
}

.treasury-portal-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: treasury-spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes treasury-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Ensure smooth content transitions */
.treasury-portal .external-menu-toggle,
.treasury-portal .external-shortlist-toggle {
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

body.treasury-portal-ready .treasury-portal .external-menu-toggle,
body.treasury-portal-ready .treasury-portal .external-shortlist-toggle {
    opacity: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .treasury-portal-loader .loader-content {
        padding: 30px 20px;
    }
    
    .treasury-portal-loader .loader-icon {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    .treasury-portal-loader h3 {
        font-size: 24px;
    }
    
    .treasury-portal-loader p {
        font-size: 15px;
    }
}

/* Prevent button jumping during state changes */
.tpa-btn,
.open-portal-modal,
a[href="#openPortalModal"],
a[href="#openportalmodal"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
}

/* Smooth button state transitions */
.tpa-btn-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid rgba(255,255,255,0.9);
    border-radius: 50%;
    animation: tpa-spin 1s linear infinite;
    z-index: 1;
}

.tpa-btn-loading {
    color: transparent !important;
}

@keyframes tpa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Services Dropdown Container - UPDATED FOR COMPACT CENTER */
.rt-services-enhanced {
    display: grid;
    grid-template-columns: 280px 380px 380px; /* Keep Journey compact, narrow center, wider right */
    gap: 3.5rem; /* Increased from 3rem to push outer columns further from center */
    max-width: 1400px; /* Increased from 1200px */
    margin: 0 auto;
    min-height: 420px;
}

/* Journey Section (Left Column) - RESTORED STYLES */
.rt-services-journey {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.9),
        rgba(248, 248, 248, 0.95) 50%,
        rgba(255, 255, 255, 0.9)) !important;
    backdrop-filter: blur(15px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(120%) !important;
    border: 1px solid rgba(114, 22, 244, 0.15) !important;
    border-radius: 12px;
    padding: 1.25rem;
    color: var(--dark-text) !important;
    position: relative;
    overflow: hidden;
    height: fit-content;
    box-shadow: 0 4px 16px rgba(114, 22, 244, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.4) inset !important;
}

.rt-services-journey::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--secondary-purple));
    border-radius: 12px 12px 0 0;
    z-index: 1;
}

.rt-services-journey::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    height: 25%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1) 50%,
        transparent);
    pointer-events: none;
    border-radius: 0 0 50% 50%;
    z-index: 1;
}

.rt-services-journey > * {
    position: relative;
    z-index: 2;
}

.rt-services-journey h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-text) !important;
    text-shadow: none !important;
}

.rt-journey-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rt-journey-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(114, 22, 244, 0.1) !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(114, 22, 244, 0.05);
    text-decoration: none;
    color: inherit;
}

.rt-journey-step:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: translateX(3px);
    border-color: rgba(114, 22, 244, 0.2) !important;
    box-shadow: 0 4px 12px rgba(114, 22, 244, 0.1);
}

.rt-step-number {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(114, 22, 244, 0.2);
}

.rt-step-text {
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 500;
    color: var(--dark-text) !important;
}

/* Services Main Section (Center Column) - COMPACT VERSION */
.rt-services-main {
    display: flex;
    flex-direction: column;
}

.rt-services-header {
    text-align: center;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(199, 125, 255, 0.2);
}

.rt-services-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.rt-services-subtitle {
    color: var(--gray-text);
    font-size: 0.8rem;
    font-weight: 500;
}

.rt-services-enhanced .rt-services-grid {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Make service items more compact */
.rt-services-enhanced .rt-service-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 0.5rem;
    margin-bottom: 0.3rem;
    border: 1px solid rgba(114, 22, 244, 0.1);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rt-services-enhanced .rt-service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-purple), var(--secondary-purple));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.rt-services-enhanced .rt-service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(114, 22, 244, 0.12);
    border-color: rgba(114, 22, 244, 0.25);
    background: rgba(255, 255, 255, 0.95);
}

.rt-services-enhanced .rt-service-item:hover::before {
    opacity: 1;
}

.rt-service-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.rt-service-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.rt-services-enhanced .rt-service-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.rt-services-enhanced .rt-service-desc {
    color: var(--gray-text);
    font-size: 0.7rem;
    line-height: 1.25;
    margin-bottom: 0.4rem;
}

.rt-services-enhanced .rt-service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 500;
    transition: all 0.25s ease;
    text-transform: none;
    letter-spacing: normal;
    margin-top: auto;
    align-self: flex-start;
}

.rt-services-enhanced .rt-service-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(114, 22, 244, 0.3);
    color: white;
    text-decoration: none;
}

/* Stats Section (Right Column) - IMPROVED SPACING & TESTIMONIALS */
.rt-services-stats {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(16, 185, 129, 0.03));
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(16, 185, 129, 0.15);
    height: fit-content;
    display: flex;
    flex-direction: column;
}

.rt-services-stats h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 2rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hide stats, show testimonials */
.rt-services-stats .rt-stats-grid { 
    display: none !important; 
}

.rt-services-testimonials { 
    display: flex !important; 
    flex-direction: column !important; 
    gap: 1.5rem !important; 
}

.rt-services-testimonial { 
    background: white !important; 
    padding: 1.25rem !important; 
    border-radius: 10px !important; 
    border-left: 3px solid var(--success-green) !important; 
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08) !important; 
    border: 1px solid rgba(16, 185, 129, 0.15) !important; 
    transition: all 0.3s ease !important; 
}

.rt-services-testimonial:hover { 
    transform: translateY(-2px) !important; 
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.12) !important; 
}

.rt-services-testimonial-text { 
    font-size: 0.85rem !important; 
    color: var(--gray-text) !important; 
    font-style: italic !important; 
    line-height: 1.5 !important; 
    margin-bottom: 1rem !important; 
    position: relative !important; 
}

.rt-services-testimonial-text::before { 
    content: '"' !important; 
    position: absolute !important; 
    left: -0.5rem !important; 
    top: -0.25rem !important; 
    font-size: 1.5rem !important; 
    color: var(--success-green) !important; 
    font-weight: bold !important; 
    opacity: 0.5 !important; 
}

.rt-services-testimonial-author { 
    font-size: 0.75rem !important; 
    color: var(--dark-text) !important; 
    font-weight: 600 !important; 
    line-height: 1.3 !important; 
}

.rt-services-testimonial-title { 
    font-size: 0.7rem !important; 
    color: var(--gray-text) !important; 
    font-weight: 500 !important; 
    margin-top: 0.25rem !important; 
}

/* Mobile responsiveness adjustments */
@media (max-width: 768px) {
    .rt-services-enhanced {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        min-height: auto;
        text-align: center !important;
    }

    .rt-services-journey {
        order: 2;
    }

    .rt-services-stats {
        order: 3;
    }
}

/* Wider screens - spread out more */
@media (min-width: 1400px) {
    .rt-services-enhanced {
        grid-template-columns: 280px 400px 400px;
        gap: 2.5rem;
        max-width: 1400px;
    }
}

/* Ultra-wide screens - expand further */
@media (min-width: 1800px) {
    .rt-services-enhanced {
        grid-template-columns: 300px 450px 450px;
        gap: 4rem;
        max-width: 1600px;
    }
}

/* 4K and beyond - maximum spread */
@media (min-width: 2400px) {
    .rt-services-enhanced {
        grid-template-columns: 320px 500px 500px;
        gap: 5rem;
        max-width: 1800px;
    }
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
    .rt-services-enhanced {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        min-height: auto;
        text-align: center !important;
    }

    .rt-services-journey {
        order: 2;
    }

    .rt-services-stats {
        order: 3;
    }

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

    .rt-testimonial {
        padding: 1rem;
        margin-top: 1.25rem;
    }

    .rt-testimonial-text {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .rt-stats-grid {
        margin-bottom: 1.5rem;
    }

    .rt-stat-item {
        padding: 0.625rem;
    }

    .rt-stat-number {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .rt-services-enhanced {
        gap: 1rem;
    }

    .rt-service-features {
        display: none;
    }

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

/* Services Dropdown Testimonials */
.rt-services-stats .rt-stats-grid { display: none !important; }
.rt-services-testimonials { display: flex !important; flex-direction: column !important; gap: 1.5rem !important; }
.rt-services-testimonial { background: white !important; padding: 1.25rem !important; border-radius: 10px !important; border-left: 3px solid var(--success-green) !important; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08) !important; border: 1px solid rgba(16, 185, 129, 0.15) !important; transition: all 0.3s ease !important; }
.rt-services-testimonial:hover { transform: translateY(-2px) !important; box-shadow: 0 6px 16px rgba(16, 185, 129, 0.12) !important; }
.rt-services-testimonial-text { font-size: 0.85rem !important; color: var(--gray-text) !important; font-style: italic !important; line-height: 1.5 !important; margin-bottom: 1rem !important; position: relative !important; }
.rt-services-testimonial-text::before { content: '"' !important; position: absolute !important; left: -0.5rem !important; top: -0.25rem !important; font-size: 1.5rem !important; color: var(--success-green) !important; font-weight: bold !important; opacity: 0.5 !important; }
.rt-services-testimonial-author { font-size: 0.75rem !important; color: var(--dark-text) !important; font-weight: 600 !important; line-height: 1.3 !important; }
.rt-services-testimonial-title { font-size: 0.7rem !important; color: var(--gray-text) !important; font-weight: 500 !important; margin-top: 0.25rem !important; }
/* Performance CSS for Treasury Portal Access - Fast Integration */

/* Hide buttons during very brief initialization to prevent flickering */
.tpa-btn:not(.tpa-btn-ready):not(.tpa-btn-loading) {
    opacity: 0;
    transition: opacity 0.1s ease;
}

.tpa-btn.tpa-btn-ready {
    opacity: 1;
    transition: opacity 0.1s ease;
}

/* Optimize modal rendering for faster display */
#portalModal {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0); /* Force hardware acceleration */
}

#portalModal .tpa-modal-content {
    will-change: transform;
    backface-visibility: hidden;
}

/* Prevent layout thrashing during initialization */
.tpa-modal {
    contain: layout style paint;
}

/* Fast fade-in for buttons when ready */
.tpa-btn-ready {
    animation: tpaButtonReady 0.2s ease-out;
}

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

/* Optimize form rendering inside modal */
#portalModal .wpcf7-form {
    contain: layout style;
}

/* Reduce repaints during integration */
.portal-access-form {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Preload critical animations */
.tpa-modal.show {
    animation: tpaModalShow 0.3s ease-out;
}

@keyframes tpaModalShow {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Theme integration optimization */
[data-portal-access] {
    cursor: pointer;
    transition: opacity 0.15s ease;
}

[data-portal-access]:not(.tpa-integrated) {
    opacity: 0.7;
}

[data-portal-access].tpa-integrated {
    opacity: 1;
}

/* Prevent FOUC (Flash of Unstyled Content) */
.tpa-btn-loading {
    visibility: hidden;
}

.tpa-btn-ready {
    visibility: visible;
}

/* ------------------------------------------------------------------ */
/* Treasury Tech Categories Dropdown - Compact Styles */
/* ------------------------------------------------------------------ */

/* ENHANCED EXPAND BUTTON */
.expand-button {
    width: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    margin-top: 24px;
    margin-bottom: 24px;
}

/* Remove bottom margin when expanded */
.category-card.expanded .expand-button {
    margin-bottom: 0;
}

.expand-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(114, 22, 244, 0.03), transparent);
    transition: left 0.6s ease;
}

.expand-button:hover::before {
    left: 100%;
}

.expand-button:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.expand-button:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.expand-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.expand-text {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    transition: color 0.3s ease;
}

.expand-button:hover .expand-text {
    color: var(--primary);
}

/* ENHANCED EXPAND ICON */
.expand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(114, 22, 244, 0.2);
}

.expand-icon::before,
.expand-icon::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Horizontal line */
.expand-icon::before {
    width: 14px;
    height: 2px;
}

/* Vertical line */
.expand-icon::after {
    width: 2px;
    height: 14px;
}

.expand-button:hover .expand-icon {
    background: var(--primary-light);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(114, 22, 244, 0.3);
}

/* When expanded, hide vertical line to create minus sign */
.category-card.expanded .expand-icon::after {
    opacity: 0;
    transform: rotate(90deg);
}

.category-card.expanded .expand-icon {
    background: var(--success);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.category-card.expanded .expand-button:hover .expand-icon {
    background: #047857;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.category-card.expanded .expand-text {
    color: var(--success);
}

.category-card.expanded .expand-button:hover .expand-text {
    color: #047857;
}

/* EXPANDABLE SECTION */
.expand-section {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
    border-radius: 0 0 12px 12px;
    margin: 0 -36px -36px;
    padding: 0;
    border-top: 1px solid #e2e8f0;
}

.expand-section.expanded {
    max-height: 800px;
    opacity: 1;
    padding: 24px 36px 36px;
    margin-top: 16px;
}

/* Animation for list items - SIMPLIFIED */
.expand-section .category-features li {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* Only hide when section is collapsed */
.expand-section:not(.expanded) .category-features li {
    opacity: 0;
    transform: translateY(20px);
}

/* Show immediately when expanded */
.expand-section.expanded .category-features li {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for visual appeal */
.expand-section.expanded .category-features li:nth-child(1) { transition-delay: 0.05s; }
.expand-section.expanded .category-features li:nth-child(2) { transition-delay: 0.1s; }
.expand-section.expanded .category-features li:nth-child(3) { transition-delay: 0.15s; }
.expand-section.expanded .category-features li:nth-child(4) { transition-delay: 0.2s; }
.expand-section.expanded .category-features li:nth-child(5) { transition-delay: 0.25s; }
.expand-section.expanded .category-features li:nth-child(6) { transition-delay: 0.3s; }
.expand-section.expanded .category-features li:nth-child(7) { transition-delay: 0.35s; }
.expand-section.expanded .category-features li:nth-child(8) { transition-delay: 0.4s; }
.expand-section.expanded .category-features li:nth-child(9) { transition-delay: 0.45s; }
.expand-section.expanded .category-features li:nth-child(10) { transition-delay: 0.5s; }
.expand-section.expanded .category-features li:nth-child(11) { transition-delay: 0.55s; }

.expand-note {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
    opacity: 1;
    transform: scale(1);
    margin-bottom: 0;
}

.expand-note .emoji {
    font-size: 20px;
    display: block;
    margin-bottom: 8px;
}

.expand-note p {
    color: #92400e;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .category-card {
        overflow: hidden;
    }

    .expand-button {
        margin: 20px -28px 0;
        padding: 16px 20px;
    }

    .expand-section.expanded {
        padding: 16px 28px 28px;
        margin: 0 -28px -28px;
    }
}

@media (max-width: 768px) {
    .expand-button {
        padding: 12px 16px;
    }
    .expand-icon {
        width: 18px;
        height: 18px;
    }
    .expand-section.expanded {
        margin-top: 12px;
        max-height: 500px;
    }
    .additional-features-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 6px;
        padding: 8px;
    }
    .feature-item {
        padding: 6px 10px;
        font-size: 12px;
        gap: 6px;
    }
    .expand-note {
        padding: 12px 16px;
        font-size: 13px;
        border-radius: 6px;
    }
}

/* Insight Hero Styles */
.insight-hero {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f8ff, #ffffff);
    text-align: center;
}
.insight-hero .hero-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
    font-weight: 500;
}
.insight-hero .hero-meta span {
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(199, 125, 255, 0.1);
    border: 1px solid rgba(199, 125, 255, 0.2);
}
.insight-hero .share-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.insight-hero .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid rgba(114, 22, 244, 0.2);
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary-purple, #7216f4);
    transition: background 0.3s, color 0.3s;
}
.insight-hero .share-btn:hover {
    background: var(--primary-purple, #7216f4);
    color: #ffffff;
}
.insight-hero .share-btn.copied {
    background: #10b981;
    color: #ffffff;
}
/* Hide mobile header */
#ast-mobile-header {
    display: none !important;
}

/* =====================================================
   RT Contact Form 7 (Contact_Us - id="1a045be")
   Variant 1: Tight Professional (default)
   Variant 2: Subtle Premium Glass (toggle .rt-cf7--v2)
   ===================================================== */
.rt-cf7,
.rt-cf7--contact-us,
.wpcf7:has(.wpcf7-form#1a045be),
.wpcf7-form#1a045be {
    --rt-cf7-primary: #7216f4;
    --rt-cf7-primary-dark: #5b0acd;
    --rt-cf7-primary-soft: #9d4edd;
    --rt-cf7-accent: #281345;
    --rt-cf7-text: #131313;
    --rt-cf7-border: #bebebe;
    --rt-cf7-border-hover: #7e7e7e;
    --rt-cf7-bg: #ffffff;
    --rt-cf7-muted-bg: #f8f8f8;
    --rt-cf7-shadow: 0 0 0 4px rgba(114, 22, 244, 0.12);
}

.site-content .rt-cf7 .wpcf7,
.entry-content .rt-cf7 .wpcf7,
.site-content .rt-cf7--contact-us .wpcf7,
.entry-content .rt-cf7--contact-us .wpcf7,
.wpcf7:has(.wpcf7-form#1a045be) {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
}

.rt-cf7 .wpcf7-form,
.rt-cf7--contact-us .wpcf7-form,
.wpcf7-form#1a045be {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rt-cf7 .wpcf7-form p,
.rt-cf7--contact-us .wpcf7-form p,
.wpcf7-form#1a045be p {
    margin: 0;
}

.rt-cf7 .wpcf7-form label,
.rt-cf7--contact-us .wpcf7-form label,
.wpcf7-form#1a045be label {
    color: var(--rt-cf7-text);
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.rt-cf7 .wpcf7-form .rt-input,
.rt-cf7--contact-us .wpcf7-form .rt-input,
.wpcf7-form#1a045be .rt-input,
.rt-cf7 .wpcf7-form-control.wpcf7-text,
.rt-cf7 .wpcf7-form-control.wpcf7-email,
.rt-cf7 .wpcf7-form-control.wpcf7-tel,
.rt-cf7 .wpcf7-form-control.wpcf7-textarea,
.rt-cf7--contact-us .wpcf7-form-control.wpcf7-text,
.rt-cf7--contact-us .wpcf7-form-control.wpcf7-email,
.rt-cf7--contact-us .wpcf7-form-control.wpcf7-tel,
.rt-cf7--contact-us .wpcf7-form-control.wpcf7-textarea,
.wpcf7-form#1a045be .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]) {
    width: 100% !important;
    height: 44px !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    border: 1px solid var(--rt-cf7-border) !important;
    background-color: var(--rt-cf7-bg) !important;
    color: var(--rt-cf7-text) !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
}

.rt-cf7 .wpcf7-form textarea.rt-input,
.rt-cf7--contact-us .wpcf7-form textarea.rt-input,
.wpcf7-form#1a045be textarea {
    height: auto;
    min-height: 140px;
    resize: vertical;
}

.rt-cf7 .wpcf7-form .rt-input:hover,
.rt-cf7--contact-us .wpcf7-form .rt-input:hover,
.wpcf7-form#1a045be .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]):hover {
    border-color: var(--rt-cf7-border-hover) !important;
}

.rt-cf7 .wpcf7-form .rt-input:focus,
.rt-cf7--contact-us .wpcf7-form .rt-input:focus,
.wpcf7-form#1a045be .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]):focus {
    outline: none !important;
    border-color: var(--rt-cf7-primary) !important;
    box-shadow: var(--rt-cf7-shadow) !important;
}

.rt-cf7 .wpcf7-form .rt-btn,
.rt-cf7--contact-us .wpcf7-form .rt-btn,
.wpcf7-form#1a045be .wpcf7-submit {
    width: 100%;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #7216f4 0%, #9d4edd 100%) !important;
    color: #ffffff !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 10px 20px rgba(114, 22, 244, 0.2);
}

.rt-cf7 .wpcf7-form .rt-btn:hover,
.rt-cf7--contact-us .wpcf7-form .rt-btn:hover,
.wpcf7-form#1a045be .wpcf7-submit:hover {
    background: var(--rt-cf7-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(91, 10, 205, 0.25);
}

.rt-cf7 .wpcf7-form .rt-btn:active,
.rt-cf7--contact-us .wpcf7-form .rt-btn:active,
.wpcf7-form#1a045be .wpcf7-submit:active {
    transform: translateY(0);
}

.rt-cf7 .wpcf7-not-valid-tip,
.rt-cf7--contact-us .wpcf7-not-valid-tip,
.wpcf7-form#1a045be .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 13px;
    color: #dc2626;
    font-weight: 500;
}

.rt-cf7 .wpcf7-response-output,
.rt-cf7--contact-us .wpcf7-response-output,
.wpcf7-form#1a045be .wpcf7-response-output {
    margin: 4px 0 0;
    padding: 4px 4px;
    border-radius: 12px;
    font-size: 14px;
    border: 0px solid transparent;
}

.rt-cf7 .wpcf7-form.invalid .wpcf7-response-output,
.rt-cf7--contact-us .wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form#1a045be.invalid .wpcf7-response-output {
    border-color: #dc2626;
    background: #fef2f2;
    color: #991b1b;
}

.rt-cf7 .wpcf7-form.sent .wpcf7-response-output,
.rt-cf7--contact-us .wpcf7-form.sent .wpcf7-response-output,
.wpcf7-form#1a045be.sent .wpcf7-response-output {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #166534;
}

@media (max-width: 640px) {
    .site-content .rt-cf7 .wpcf7,
    .entry-content .rt-cf7 .wpcf7,
    .site-content .rt-cf7--contact-us .wpcf7,
    .entry-content .rt-cf7--contact-us .wpcf7,
    .wpcf7:has(.wpcf7-form#1a045be) {
        max-width: 100%;
    }
}

/* Variant 2: Subtle Premium Glass (toggle .rt-cf7--v2 on wrapper) */
.rt-cf7--v2 {
    background: var(--rt-cf7-muted-bg);
    border-radius: 16px;
    padding: 24px;
}

.rt-cf7--v2 .wpcf7-form,
.rt-cf7--v2 .wpcf7-form#1a045be {
    gap: 12px;
}

.rt-cf7--v2 .wpcf7-form .rt-input,
.rt-cf7--v2 .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]) {
    border-color: rgba(190, 190, 190, 0.7);
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

.rt-cf7--v2 .wpcf7-form .rt-input:focus,
.rt-cf7--v2 .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]):focus {
    box-shadow: 0 0 0 4px rgba(114, 22, 244, 0.14), 0 10px 20px rgba(114, 22, 244, 0.12);
}

@media (max-width: 640px) {
    .rt-cf7--v2 {
        padding: 18px;
    }
}