/*
Theme Name: NDS RC Child
Theme URI: https://rc-lending.co
Description: Child theme for NDS RC
Author: RC Lending
Author URI: https://rc-lending.co
Template: nds_rc
Version: 1.0.16
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nds_rc_child
*/

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

/* Reset browser defaults and remove unwanted spacing */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Fix Elementor containers to remove unwanted spacing */
.elementor-section-wrap {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.elementor-location-header,
.elementor-location-archive,
.elementor-location-single,
.elementor-location-footer {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Fix container width on Elementor sections */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Global Header Styles - Using Proper Specificity */
.elementor-location-header,
header.site-header,
[data-elementor-type="header"],
.elementor-location-header.elementor-element {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    z-index: 1000;
    background-color: var(--rc-navy);
    box-shadow: var(--rc-shadow-sm);
    transition: all 0.3s ease;
}

/* Header Logo Color */
.elementor-location-header .elementor-widget-theme-site-logo,
[data-elementor-type="header"] .elementor-widget-theme-site-logo,
.elementor-location-header .rc-logo,
[data-elementor-type="header"] .rc-logo {
    color: var(--rc-white);
}

/* Header Menu Items */
.elementor-location-header .elementor-nav-menu > li > a,
[data-elementor-type="header"] .elementor-nav-menu > li > a {
    padding: 10px 20px;
    color: var(--rc-white);
    transition: all 0.3s ease;
    font-family: var(--e-global-typography-secondary-font-family), sans-serif;
    font-size: 16px;
    font-weight: 500;
}

/* Header Menu Items Hover */
.elementor-location-header .elementor-nav-menu > li > a:hover,
[data-elementor-type="header"] .elementor-nav-menu > li > a:hover {
    color: var(--rc-gold);
    opacity: 1;
}

/* Active Menu Item */
.elementor-location-header .elementor-nav-menu > li.current-menu-item > a,
[data-elementor-type="header"] .elementor-nav-menu > li.current-menu-item > a,
.elementor-location-header .elementor-nav-menu > li.current-page-ancestor > a,
[data-elementor-type="header"] .elementor-nav-menu > li.current-page-ancestor > a {
    color: var(--rc-gold);
    font-weight: 600;
    opacity: 1;
}

/* Page Title Styles - High Specificity */
.elementor-widget-theme-page-title h1.elementor-heading-title,
.elementor-page-title h1,
.page-title,
.elementor-widget-heading h1.elementor-heading-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.2;
    color: var(--rc-white);
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Page Hero Section - High Specificity */
.elementor-page-title-section,
.page-hero,
[data-elementor-type="page"] > .elementor-section-wrap > .elementor-section:first-child,
.elementor-location-single > .elementor-section-wrap > .elementor-section:first-child {
    background-color: var(--rc-navy);
    padding: 100px 0 60px;
    margin-top: 0;
    position: relative;
}

/* Ensure consistent text colors in hero sections */
.elementor-page-title-section *,
.page-hero *,
[data-elementor-type="page"] > .elementor-section-wrap > .elementor-section:first-child *,
.elementor-location-single > .elementor-section-wrap > .elementor-section:first-child * {
    color: var(--rc-white);
}

/* Subtitle/Description Text */
.page-description,
.elementor-widget-text-editor p {
    font-family: var(--e-global-typography-secondary-font-family), sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Header Logo */
.elementor-location-header .elementor-widget-theme-site-logo img,
[data-elementor-type="header"] .elementor-widget-theme-site-logo img {
    max-height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

/* Mobile Header Styles */
@media (max-width: 1024px) {
    .elementor-location-header,
    [data-elementor-type="header"] {
        padding: 10px 0;
    }

    .elementor-location-header .elementor-widget-theme-site-logo img,
    [data-elementor-type="header"] .elementor-widget-theme-site-logo img {
        max-height: 50px;
    }
}

/* Mobile Menu Button */
.elementor-menu-toggle {
    color: var(--rc-white);
    background-color: transparent;
    border: none;
    padding: 10px;
    outline: none;
}

/* Mobile Menu Panel */
.elementor-nav-menu--dropdown {
    background-color: var(--rc-navy);
    border: none;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--rc-shadow-md);
}

.elementor-nav-menu--dropdown a {
    color: var(--rc-white);
}

.elementor-nav-menu--dropdown a:hover {
    color: var(--rc-gold);
}

/*--------------------------------------------------------------
# 1.0 Root Variables
--------------------------------------------------------------*/
:root {
    /* Primary Colors */
    --e-global-color-primary: #1C2B49;     /* Navy */
    --e-global-color-secondary: #BFA05A;    /* Gold */
    --e-global-color-text: #2D2D2D;        /* Charcoal */
    --e-global-color-accent: #00A9A5;       /* Accent Teal */
    --e-global-color-background: #FFFFFF;   /* White */
    --e-global-color-light: #F5F5F5;       /* Light Gray */
    --e-global-color-tech: #4A90E2;        /* Tech Blue */

    /* Colors (Alias for easier use) */
    --rc-navy: var(--e-global-color-primary);
    --rc-gold: var(--e-global-color-secondary);
    --rc-charcoal: var(--e-global-color-text);
    --rc-teal: var(--e-global-color-accent);
    --rc-tech-blue: var(--e-global-color-tech);
    --rc-light-gray: var(--e-global-color-light);
    --rc-white: var(--e-global-color-background);

    /* Typography */
    --e-global-typography-primary-font-family: "Avenir Pro";
    --e-global-typography-secondary-font-family: "Source Sans Pro";

    /* Brand Colors - Direct Values */
    --rc-navy: #1C2B49;
    --rc-gold: #BFA05A;
    --rc-white: #FFFFFF;
    --rc-tech-blue: #4A90E2;
    --rc-teal: #00A9A5;
    --rc-light-gray: #f8f8f8;
    
    /* Functional Colors */
    --rc-text-primary: var(--rc-navy);
    --rc-text-secondary: var(--rc-gold);
    --rc-background-light: var(--rc-light-gray);
    --rc-border-color: rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --rc-spacing-xs: 0.25rem;
    --rc-spacing-sm: 0.5rem;
    --rc-spacing-md: 1rem;
    --rc-spacing-lg: 1.5rem;
    --rc-spacing-xl: 2rem;
    
    /* Shadows */
    --rc-shadow-sm: 0 2px 4px rgba(28, 43, 73, 0.05);
    --rc-shadow-md: 0 4px 6px rgba(28, 43, 73, 0.1);
    --rc-shadow-lg: 0 10px 20px rgba(28, 43, 73, 0.1);
    
    /* Border Radius */
    --rc-radius-sm: 4px;
    --rc-radius-md: 8px;
    --rc-radius-lg: 12px;
    
    /* Transitions */
    --rc-transition-fast: 0.2s ease;
    --rc-transition-normal: 0.3s ease;
    --rc-transition-slow: 0.5s ease;
    --rc-transition-float: 0.6s cubic-bezier(0.33, 1, 0.68, 1);

    /* Typography System - Safety Net */
    --font-primary: "Avenir Pro", "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-secondary: "Source Sans Pro", sans-serif;
}

/*--------------------------------------------------------------
# 2.0 Base Typography
--------------------------------------------------------------*/
body {
    font-family: var(--font-secondary);
    color: var(--rc-charcoal);
    line-height: 1.6;
}

/* Force Playfair Display on all headings */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.elementor-widget-heading .elementor-heading-title,
.elementor-post__title,
.elementor-post__title a,
.staff-name,
.staff-card .elementor-heading-title,
.staff-card h1, .staff-card h2, .staff-card h3,
.staff-card .staff-name,
.staff-card .elementor-post__title,
.elementor-posts-container .elementor-post__title,
.elementor-posts-container .elementor-post__title a,
.elementor-grid .elementor-post__title,
.elementor-grid .elementor-post__title a,
.elementor-widget-posts .elementor-post__title,
.elementor-widget-posts .elementor-post__title a,
.elementor-grid-item .elementor-post__title,
.elementor-grid-item .elementor-post__title a,
.elementor-card-heading,
.elementor-card-title,
.elementor-card .elementor-heading-title,
.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3,
.elementor-widget-heading h4,
.elementor-widget-heading h5,
.elementor-widget-heading h6,
.elementor-widget-text-editor h1,
.elementor-widget-text-editor h2,
.elementor-widget-text-editor h3,
.elementor-widget-text-editor h4,
.elementor-widget-text-editor h5,
.elementor-widget-text-editor h6,
.elementor-tab-title,
.elementor-accordion-title,
.elementor-toggle-title,
.elementor-widget-tabs .elementor-tab-title,
.elementor-widget-accordion .elementor-accordion-title,
.elementor-widget-toggle .elementor-toggle-title,
.rc-section-title,
.rc-hero__title,
.rc-feature-card h1,
.rc-feature-card h2,
.rc-feature-card h3,
.rc-feature-card h4,
.rc-feature-card h5,
.rc-feature-card h6,
.wp-block-heading h1,
.wp-block-heading h2,
.wp-block-heading h3,
.wp-block-heading h4,
.wp-block-heading h5,
.wp-block-heading h6,
.entry-title,
.page-title,
.site-title,
.widget-title {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.3;
    color: var(--rc-navy);
}

/* Add specific styles for different heading levels */
h1, .elementor-widget-heading h1.elementor-heading-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h2, .elementor-widget-heading h2.elementor-heading-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
}

h3, .elementor-widget-heading h3.elementor-heading-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

h4, .elementor-widget-heading h4.elementor-heading-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 0.75rem;
}

h5, .elementor-widget-heading h5.elementor-heading-title {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    margin-bottom: 0.5rem;
}

h6, .elementor-widget-heading h6.elementor-heading-title {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    margin-bottom: 0.5rem;
}

/* Ensure Playfair Display for dynamic content */
.elementor *[class*="heading"],
.elementor *[class*="title"],
.elementor-widget *[class*="heading"],
.elementor-widget *[class*="title"] {
    font-family: var(--e-global-typography-primary-font-family), serif;
}

/* Staff Archive Headings - Extremely High Specificity */
.post-type-archive-staff h1,
.post-type-archive-staff h2,
.post-type-archive-staff h3,
.post-type-archive-staff h4,
.post-type-archive-staff h5,
.post-type-archive-staff h6,
.post-type-archive-staff .elementor-heading-title,
body[class*="staff"] h1,
body[class*="staff"] h2,
body[class*="staff"] h3,
body[class*="staff"] h4,
body[class*="staff"] h5,
body[class*="staff"] h6,
body[class*="staff"] .elementor-heading-title,
.elementor-posts article[class*="staff"] h1,
.elementor-posts article[class*="staff"] h2,
.elementor-posts article[class*="staff"] h3,
.elementor-posts article[class*="staff"] h4,
.elementor-posts article[class*="staff"] h5,
.elementor-posts article[class*="staff"] h6,
.elementor-widget-theme-archive-title h1,
.page-id-56 h1,
.page-id-56 h2,
.page-id-56 h3,
.page-id-56 h4,
.page-id-56 h5,
.page-id-56 h6,
.page-id-56 .elementor-heading-title,
[data-elementor-id="56"] h1,
[data-elementor-id="56"] h2,
[data-elementor-id="56"] h3,
[data-elementor-id="56"] h4,
[data-elementor-id="56"] h5,
[data-elementor-id="56"] h6,
[data-elementor-id="56"] .elementor-heading-title,
.elementor-element[data-widget_type="heading.default"] h1,
.elementor-element[data-widget_type="heading.default"] h2,
.elementor-element[data-widget_type="heading.default"] h3,
.elementor-element[data-widget_type="heading.default"] h4,
.elementor-element[data-widget_type="heading.default"] h5,
.elementor-element[data-widget_type="heading.default"] h6,
.elementor-element[data-widget_type="heading.default"] .elementor-heading-title {
    font-family: var(--e-global-typography-primary-font-family), serif;
}

/* Direct element-level overrides for staff archive page */
.elementor-heading-title {
    font-family: var(--e-global-typography-primary-font-family), serif;
}


/* Staff Template Typography */
.staff-info h1,
.staff-info .staff-name {
    font-family: "Avenir Pro", sans-serif;
    margin: 0 0 10px;
    font-size: 36px;
    color: var(--rc-navy);
}

/* Reset unwanted body padding */
body {
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Only add minimal top padding if needed for fixed header */
body:not(.elementor-editor-active):not(.elementor-editor-preview):not(.page-template-landing-page) {
    padding-top: 0 !important; /* Remove default padding */
}

/* Remove padding on landing page */
.page-template-landing-page body,
.elementor-editor-active body,
.elementor-editor-preview body {
    padding-top: 0 !important;
}

/**
 * ELEMENTOR STYLING BEST PRACTICES
 * 
 * 1. Use Elementor Site Settings for:
 *    - Color Palettes
 *    - Typography Sets
 *    - Button Styles
 *    - Form Field Styles
 *    - Container Defaults
 *    - Layout Defaults
 * 
 * 2. Use this CSS file for:
 *    - Custom CSS Classes
 *    - Non-Elementor Content Styles
 *    - Plugin Overrides
 *    - Custom Animations
 *    - Print Styles
 */

/* Custom Classes for Elementor */
.custom-shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Non-Elementor Content Styles */
.wp-block-content {
    margin-bottom: 1.5em;
}


/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
}

/* Custom Animations */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Homepage Styles */
.rc-hero-section {
    position: relative;
    overflow: hidden;
}

.rc-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(28, 43, 73, 0.95), rgba(28, 43, 73, 0.8));
    z-index: 1;
}

.rc-hero-content {
    position: relative;
    z-index: 2;
}

.rc-service-card {
    transition: var(--rc-transition-normal);
    will-change: transform;
    border-radius: var(--rc-radius-md);
    box-shadow: var(--rc-shadow-md);
}

.rc-service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--rc-shadow-lg);
}

.rc-section-title {
    position: relative;
    padding-bottom: 20px;
}

.rc-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--e-global-color-secondary);
}

.rc-section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Button Styles with maximum specificity for Elementor containers */
.elementor-widget-html .elementor-button,
.elementor-widget-button .elementor-button,
.elementor .elementor-button,
.elementor a.elementor-button,
.elementor-button,
.elementor-button-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    text-decoration: none;
    border-radius: var(--rc-radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--rc-transition-normal);
    overflow: hidden;
    z-index: 1;
    min-height: 48px;
    gap: 8px;
    background-color: var(--rc-navy);
    color: white;
    margin: 0;
    width: auto;
}

/* Outline Button with maximum specificity */
.elementor-widget-html .elementor-button[data-button-type="outline"],
.elementor-widget-button .elementor-button[data-button-type="outline"],
.elementor .elementor-button[data-button-type="outline"],
.elementor a.elementor-button[data-button-type="outline"],
[data-button-type="outline"].elementor-button,
[data-button-type="outline"].elementor-button-link {
    background-color: transparent;
    border: 2px solid var(--rc-navy);
    color: var(--rc-navy);
}

/* Outline Button Hover */
.elementor-widget-html .elementor-button[data-button-type="outline"]:hover,
.elementor-widget-button .elementor-button[data-button-type="outline"]:hover,
.elementor .elementor-button[data-button-type="outline"]:hover,
.elementor a.elementor-button[data-button-type="outline"]:hover,
[data-button-type="outline"].elementor-button:hover,
[data-button-type="outline"].elementor-button-link:hover {
    background-color: var(--rc-navy);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--rc-shadow-md);
}

/* Button Content Wrapper */
.elementor-button-content-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
}

/* Button Text */
.elementor-button-text {
    color: inherit;
    line-height: 1.4;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

/* Small Button Size */
.elementor-widget-html .elementor-button.elementor-size-sm,
.elementor-widget-button .elementor-button.elementor-size-sm,
.elementor .elementor-button.elementor-size-sm,
.elementor-button.elementor-size-sm {
    padding: 10px 20px;
    font-size: 14px;
    min-height: 40px;
}

/* Fix for HTML widget container */
.elementor-widget-html {
    width: auto;
    display: inline-block;
}

/* Secondary Button with increased specificity */
.elementor-widget-button .elementor-button[data-button-type="secondary"],
.elementor a.elementor-button[data-button-type="secondary"],
.elementor-button-secondary {
    background-color: var(--rc-gold);
    color: white;
}

/* Outline Button with increased specificity */
.elementor-widget-button .elementor-button[data-button-type="outline"],
.elementor a.elementor-button[data-button-type="outline"],
.elementor-button-outline {
    background-color: transparent;
    border: 2px solid var(--rc-navy);
    color: var(--rc-navy);
}

.elementor-widget-button .elementor-button[data-button-type="outline"]:hover,
.elementor a.elementor-button[data-button-type="outline"]:hover,
.elementor-button-outline:hover {
    background-color: var(--rc-navy);
    color: white;
}

/* Hover states with increased specificity */
.elementor-widget-button .elementor-button:hover,
.elementor a.elementor-button:hover,
.elementor-button-link:hover {
    background-color: var(--rc-dark-navy);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--rc-shadow-md);
    text-decoration: none;
}

/* Keep existing button variants but update their selectors */
/* Primary Button */
.elementor-button-primary,
.wp-block-button__link,
.button-primary,
input[type="submit"] {
    background-color: var(--rc-navy);
    color: white;
}

/* Secondary Button */
.elementor-button[data-button-type="secondary"],
.elementor-button-secondary,
.button-secondary {
    background-color: var(--rc-gold);
    color: white;
}

/* Outline Button */
.elementor-button[data-button-type="outline"],
.elementor-button-outline,
.button-outline {
    background-color: transparent;
    border: 2px solid var(--rc-navy);
    color: var(--rc-navy);
}

.elementor-button[data-button-type="outline"]:hover,
.elementor-button-outline:hover,
.button-outline:hover {
    background-color: var(--rc-navy);
    color: white;
}

/* Ghost Button */
.elementor-button[data-button-type="ghost"],
.elementor-button-ghost,
.button-ghost {
    background-color: transparent;
    color: var(--rc-navy);
    border: none;
    padding: 14px 26px;
}

.elementor-button[data-button-type="ghost"]:hover,
.elementor-button-ghost:hover,
.button-ghost:hover {
    background-color: rgba(26, 26, 26, 0.05);
}

/* Loading State */
.elementor-button.is-loading,
.button.is-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.elementor-button.is-loading::after,
.button.is-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: button-loading-spinner 0.6s linear infinite;
}

@keyframes button-loading-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Disabled State */
.elementor-button:disabled,
.button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Remove the existing button shine effect since we have new hover states */
.elementor-button::before {
    display: none;
}

/* Button Group */
.button-group {
    display: inline-flex;
    gap: 8px;
}

.button-group-vertical {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .elementor-button,
    .wp-block-button__link,
    .button,
    button,
    input[type="button"],
    input[type="submit"] {
        padding: 10px 20px;
        font-size: 15px;
        min-height: 44px;
    }
    
    .elementor-button-lg,
    .button-lg {
        padding: 14px 28px;
        font-size: 16px;
        min-height: 52px;
    }
}

/* Typography Base Styles */
body {
    font-family: var(--font-secondary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--e-global-color-text);
}

/* Heading Typography - High Specificity */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.elementor-widget-heading .elementor-heading-title,
.elementor h1, .elementor h2, .elementor h3, 
.elementor h4, .elementor h5, .elementor h6,
.rc-section-title,
.entry-title,
.widget-title,
.site-title,
.elementor-post__title,
.elementor-post__title a,
.elementor-card-title,
.elementor-widget-theme-post-title h1,
.page-title,
.elementor-widget-heading h1.elementor-heading-title,
.elementor-widget-heading h2.elementor-heading-title,
.elementor-widget-heading h3.elementor-heading-title,
.elementor-widget-heading h4.elementor-heading-title,
.elementor-widget-heading h5.elementor-heading-title,
.elementor-widget-heading h6.elementor-heading-title,
.elementor-tab-title,
.elementor-accordion-title,
.elementor-toggle-title,
.elementor-widget-tabs .elementor-tab-title,
.elementor-widget-accordion .elementor-accordion-title,
.elementor-widget-toggle .elementor-toggle-title {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.3;
}

/* Utility class for Playfair font */
.font-playfair {
    font-family: "Avenir Pro", sans-serif;
}

/* Specific heading styles */
.elementor-widget-heading h1.elementor-heading-title {
    font-family: "Avenir Pro", sans-serif;
    font-weight: 400;
}

.elementor-widget-heading h2.elementor-heading-title {
    font-family: "Avenir Pro", sans-serif;
    font-weight: 400;
}

.elementor-widget-heading h3.elementor-heading-title {
    font-family: "Avenir Pro", sans-serif;
    font-weight: 400;
}

.elementor-widget-heading h4.elementor-heading-title,
.elementor-widget-heading h5.elementor-heading-title,
.elementor-widget-heading h6.elementor-heading-title {
    font-family: "Avenir Pro", sans-serif;
    font-weight: 400;
}

/* Staff template headings */
.staff-info h1,
.staff-info h2,
.staff-info h3,
.staff-info .staff-name {
    font-family: "Avenir Pro", sans-serif;
}

/* Quote styles */
.rc-quote,
blockquote,
.elementor-widget-blockquote .elementor-blockquote__content {
    font-family: "Avenir Pro", sans-serif;
    font-style: normal;
    font-weight: 400;
}

/* Typography Utility Classes */
.font-source-sans {
    font-family: 'Source Sans Pro', sans-serif;
}

.text-light {
    font-weight: 300;
}

.text-regular {
    font-weight: 400;
}

.text-medium {
    font-weight: 500;
}

.text-semibold {
    font-weight: 600;
}

.text-bold {
    font-weight: 700;
}

/* Update existing typography styles */
.rc-large-text {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--e-global-color-text);
}

/* Staff Template Typography Updates */
.staff-info h1 {
    margin: 0 0 10px;
    font-size: 36px;
    color: var(--rc-navy, #1a1a1a);
}

.staff-position {
    font-family: 'Source Sans Pro', sans-serif;
    margin: 0 0 15px;
    font-size: 24px;
    color: var(--rc-gold, #9a8a78);
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .rc-hero-section {
        min-height: 60vh;
    }
    
    .rc-section-title {
        font-size: 2rem;
    }
    
    .rc-large-text {
        font-size: 1.1rem;
    }
}

/* Staff Single Template Styles */
.staff-single-content {
    padding: 60px 0;
}

.staff-single-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.staff-header {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.staff-image {
    flex: 0 0 300px;
}

.staff-image img {
    width: 100%;
    height: auto;
    border-radius: var(--rc-radius-md);
    box-shadow: var(--rc-shadow-md);
}

.staff-info {
    flex: 1;
}

.staff-info h1 {
    margin: 0 0 10px;
    font-size: 36px;
    color: var(--rc-navy, #1a1a1a);
}

.staff-position {
    margin: 0 0 15px;
    font-size: 24px;
    color: var(--rc-gold, #9a8a78);
    font-weight: 500;
}

.staff-nmls {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.staff-contact {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.staff-contact a {
    color: var(--rc-navy, #1a1a1a);
    text-decoration: none;
    font-size: 18px;
}

.staff-contact a:hover {
    color: var(--rc-gold, #9a8a78);
}

.staff-bio {
    margin-bottom: 40px;
    line-height: 1.6;
}

.staff-specialties {
    background: var(--rc-background-light);
    padding: var(--rc-spacing-xl);
    border-radius: var(--rc-radius-md);
}

.staff-specialties h3 {
    margin: 0 0 20px;
    color: var(--rc-navy, #1a1a1a);
}

.staff-specialties ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.staff-specialties li {
    background: white;
    padding: var(--rc-spacing-sm) var(--rc-spacing-md);
    border-radius: var(--rc-radius-sm);
    box-shadow: var(--rc-shadow-sm);
}

@media (max-width: 768px) {
    .staff-header {
        flex-direction: column;
        gap: 20px;
    }

    .staff-image {
        flex: 0 0 auto;
        max-width: 250px;
        margin: 0 auto;
    }

    .staff-contact {
        flex-direction: column;
        gap: 10px;
    }
}

/* Direct Elementor Template Rendering */
.elementor-template-direct {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

/* Fix any layout issues with Elementor content */
.elementor-template-direct .elementor-section-wrap,
.elementor-template-direct .elementor-section.elementor-section-boxed > .elementor-container {
    width: 100%;
    max-width: 100%;
}

/* Fix content width for Elementor templates */
body.single-staff {
    width: 100%;
    overflow-x: hidden;
}

body.single-staff #content {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Enhanced Utility Classes */
/* Spacing Utilities */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.my-0 { margin-top: 0; margin-bottom: 0; }
.mx-0 { margin-left: 0; margin-right: 0; }

.p-0 { padding: 0; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.py-0 { padding-top: 0; padding-bottom: 0; }
.px-0 { padding-left: 0; padding-right: 0; }

/* Flex Utilities */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow-1 { flex-grow: 1; }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; }
.text-capitalize { text-transform: capitalize; }
.text-navy { color: var(--rc-navy); }
.text-gold { color: var(--rc-gold); }

/* Enhanced Component Styles */
.rc-card {
    background: white;
    border-radius: var(--rc-radius-md);
    box-shadow: var(--rc-shadow-md);
    padding: var(--rc-spacing-lg);
    transition: var(--rc-transition-normal);
}

.rc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--rc-shadow-lg);
}

/* Enhanced Responsive Breakpoints */
/* Small devices (landscape phones) */
@media (min-width: 576px) {
    .d-sm-flex { display: flex; }
    .text-sm-left { text-align: left; }
    .text-sm-center { text-align: center; }
}

/* Medium devices (tablets) */
@media (min-width: 768px) {
    .d-md-flex { display: flex; }
    .text-md-left { text-align: left; }
    .text-md-center { text-align: center; }
}

/* Large devices (desktops) */
@media (min-width: 992px) {
    .d-lg-flex { display: flex; }
    .text-lg-left { text-align: left; }
    .text-lg-center { text-align: center; }
}

/* Extra large devices */
@media (min-width: 1200px) {
    .d-xl-flex { display: flex; }
    .text-xl-left { text-align: left; }
    .text-xl-center { text-align: center; }
}

/* Staff Card Styles */
.staff-card {
    position: relative;
    transition: transform var(--rc-transition-float), box-shadow var(--rc-transition-float);
    will-change: transform;
    background: white;
    border-radius: var(--rc-radius-md);
    overflow: hidden;
    font-family: 'Source Sans Pro', sans-serif;
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--rc-shadow-lg);
}

/* Image Container */
.staff-card .elementor-widget-image {
    overflow: hidden;
    border-radius: var(--rc-radius-md) var(--rc-radius-md) 0 0;
}

/* Image Zoom Effect */
.staff-card .elementor-widget-image img {
    transition: transform var(--rc-transition-float);
    will-change: transform;
    transform-origin: center center;
    width: 100%;
    height: auto;
}

.staff-card:hover .elementor-widget-image img {
    transform: scale(1.1);
}

/* Ensure text content stays above image */
.staff-card .elementor-widget-text-editor,
.staff-card .elementor-widget-theme-post-excerpt,
.staff-card .elementor-widget-html {
    position: relative;
    z-index: 2;
}

/* Keep existing staff card link styles */
.staff-card,
.staff-card a,
.staff-card .elementor-widget-text-editor a,
.staff-card .elementor-text-editor a {
    color: var(--rc-navy);
    text-decoration: none;
    transition: color var(--rc-transition-normal);
}

.staff-card:hover,
.staff-card a:hover,
.staff-card .elementor-widget-text-editor a:hover,
.staff-card .elementor-text-editor a:hover {
    color: var(--rc-gold);
}

/* Preserve button styles within staff card */
.staff-card .elementor-button,
.staff-card a.elementor-button {
    color: inherit;
}

/* Explicitly set these element types to use their font families */
p, span, div, li, a, button, input, textarea, select, label {
    font-family: 'Source Sans Pro', sans-serif;
}

h1, h2, h3, h4, h5, h6, .elementor-heading-title {
    font-family: 'Playfair Display', serif;
}

/* Staff Single Page Typography - High Specificity */
.single-staff h1,
.single-staff .staff-name,
.single-staff .elementor-heading-title,
.staff-single-content h1,
.staff-single-content .staff-name,
body.single-staff #main h1,
body.single-staff .elementor-widget-theme-post-title h1,
body.single-staff .elementor-widget-heading h1.elementor-heading-title,
.staff-info h1.staff-name {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.3;
    color: var(--rc-navy);
}


/* Force Playfair on all post titles in grids */
.elementor-post__title,
.elementor-post__title a,
.elementor-post__title span,
.elementor-posts .elementor-post__title * {
    font-family: var(--font-primary);
}

/* Additional specificity for Elementor grid items */
.elementor-grid-item .elementor-heading-title,
.elementor-grid-item .elementor-post__title,
.elementor-grid-item .elementor-post__title *,
.elementor-grid-item h1,
.elementor-grid-item h2,
.elementor-grid-item h3,
.elementor-grid-item h4,
.elementor-grid-item h5,
.elementor-grid-item h6 {
    font-family: var(--font-primary);
    font-weight: 400;
}

/* Staff Template Typography Updates */
.staff-info h1,
.staff-info .staff-name {
    font-family: var(--font-primary);
    margin: 0 0 10px;
    font-size: 36px;
    color: var(--rc-navy, #1a1a1a);
}

/*--------------------------------------------------------------
# 3.0 Landing Page Styles
--------------------------------------------------------------*/
/* Base Styles */
.rc-container {
    width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.rc-section-title {
    font-family: var(--e-global-typography-primary-font-family), serif;
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--rc-navy);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    position: relative;
}

.rc-section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--rc-gold);
}

/* Hero Section */
.rc-hero {
    min-height: 90vh;
    background: linear-gradient(135deg, var(--rc-navy) 0%, rgba(28, 43, 73, 0.9) 100%);
    color: var(--rc-white);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.rc-hero__content {
    /* max-width: 600px; */
    position: relative;
    z-index: 2;
}

.rc-hero__title {
    font-family: "Avenir Pro", sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 1s ease;
}

.rc-hero__subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s backwards;
}

/* Form Styles */
.rc-lead-form {
    background: var(--rc-white);
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 3;
    box-shadow: var(--shadow-lg);
}

.rc-form {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    background: var(--rc-white);
    border-radius: 8px;
}

.rc-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.rc-form__field {
    position: relative;
}

.rc-form__field input,
.rc-form__field select {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--rc-light);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition-base);
}

.rc-form__field input:focus,
.rc-form__field select:focus {
    border-color: var(--rc-gold);
    outline: none;
}

/* Button Styles */
.rc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.rc-button--primary {
    background: var(--rc-gold);
    color: var(--rc-white);
}

.rc-button--primary:hover {
    background: var(--rc-navy);
    transform: translateY(-2px);
}

.rc-button--secondary {
    background: var(--rc-navy);
    color: var(--rc-white);
}

.rc-button--secondary:hover {
    background: var(--rc-gold);
    transform: translateY(-2px);
}

/* Features Section */
.rc-features {
    padding: var(--spacing-xxl) 0;
    background: var(--rc-light);
}

.rc-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.rc-feature-card {
    background: var(--rc-white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.rc-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .rc-hero__content {
        padding: var(--spacing-lg);
        text-align: center;
    }
    
    .rc-form {
        padding: var(--spacing-md);
    }
    
    .rc-features__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-xxl: 3rem;
    }
    
    .rc-button {
        width: 100%;
    }
}

/* Override any inline styles on staff pages */
[data-elementor-type="archive"],
[data-elementor-type="archive"] *,
.elementor-posts-container .elementor-post,
.elementor-grid .elementor-grid-item {
    --e-global-typography-primary-font-family: "Avenir Pro";
}

/* Target all possible headings in staff archive with !important */
.elementor-location-archive h1,
.elementor-location-archive h2,
.elementor-location-archive h3,
.elementor-location-archive h4,
.elementor-location-archive h5,
.elementor-location-archive h6,
.elementor-location-archive .elementor-heading-title,
.elementor-posts-container .elementor-post .elementor-heading-title,
.elementor-posts-container .elementor-post h1,
.elementor-posts-container .elementor-post h2,
.elementor-posts-container .elementor-post h3,
.elementor-posts-container .elementor-post h4,
.elementor-posts-container .elementor-post h5,
.elementor-posts-container .elementor-post h6,
.elementor-post__title,
.elementor-post__title a,
.elementor-card-title {
    font-family: "Avenir Pro", sans-serif !important;
    font-weight: 400;
}



/* Loan Card Title Styles - Using Proper Nesting */
.elementor-posts-container .elementor-post__title,
.elementor-posts-container .elementor-post__title a,
.elementor-grid-item .elementor-post__title,
.elementor-grid-item .elementor-post__title a {
    font-family: "Avenir Pro", sans-serif;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--rc-navy);
}

/* Loan Archive/Grid Specific Styles */
.post-type-archive-loan .elementor-post__title,
.post-type-archive-loan .elementor-post__title a,
.tax-loan_category .elementor-post__title,
.tax-loan_category .elementor-post__title a,
body[class*="loan"] .elementor-post__title,
body[class*="loan"] .elementor-post__title a {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 15px;
}

/* Loan Card Container Styles */
.elementor-posts--thumbnail-top .elementor-post {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.elementor-posts--thumbnail-top .elementor-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Loan Card Content Spacing */
.elementor-posts--thumbnail-top .elementor-post__text {
    padding: 15px 0 0;
}

.elementor-posts--thumbnail-top .elementor-post__excerpt {
    margin-top: 10px;
}

.elementor-posts--thumbnail-top .elementor-post__excerpt p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--rc-text);
}

/* Header CTA Button Styles - Updated with Better Padding */
.header-cta-button {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    margin: 0 15px;
    background: var(--rc-navy);
    color: var(--rc-white);
    font-family: var(--e-global-typography-secondary-font-family), "Inter", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(26, 26, 26, 0.2);
    white-space: nowrap;
}

.header-cta-button:hover {
    transform: translateY(-2px);
    background: var(--rc-gold);
    box-shadow: 0 4px 8px rgba(26, 26, 26, 0.15);
    color: var(--rc-navy);
}

/* High Contrast Version */
.header-cta-button--contrast {
    background: var(--rc-white);
    color: var(--rc-navy);
    border: 2px solid var(--rc-navy);
    padding: 14px 30px;
    margin: 0 15px;
    box-shadow: 0 2px 4px rgba(26, 26, 26, 0.1);
}

.header-cta-button--contrast:hover {
    background: var(--rc-navy);
    color: var(--rc-white);
    border-color: var(--rc-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 26, 26, 0.2);
}

/* Light Version for Dark Backgrounds */
.header-cta-button--light {
    background: var(--rc-white);
    color: var(--rc-navy);
    padding: 16px 32px;
    margin: 0 15px;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

.header-cta-button--light:hover {
    background: var(--rc-gold);
    color: var(--rc-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.15);
}

/* Outline Light Version */
.header-cta-button--outline-light {
    background: transparent;
    color: var(--rc-white);
    border: 2px solid var(--rc-white);
    padding: 14px 30px;
    margin: 0 15px;
    box-shadow: none;
}

.header-cta-button--outline-light:hover {
    background: var(--rc-white);
    color: var(--rc-navy);
    border-color: var(--rc-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.15);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .header-cta-button,
    .header-cta-button--contrast,
    .header-cta-button--light,
    .header-cta-button--outline-light {
        padding: 14px 28px;
        margin: 0 10px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .header-cta-button,
    .header-cta-button--contrast,
    .header-cta-button--light,
    .header-cta-button--outline-light {
        padding: 12px 24px;
        margin: 0 8px;
        font-size: 14px;
    }
}

/* Animation for emphasis */
@keyframes ctaPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.header-cta-button--animated {
    animation: ctaPulse 2s infinite;
}

.header-cta-button--animated:hover {
    animation: none;
}

/* SVG Logo Color Classes */
.svg-white {
    filter: brightness(0) invert(1);
}

.svg-white-fill {
    fill: #ffffff;
}

.svg-white-stroke {
    stroke: #ffffff;
}

/* For specific logo placement scenarios */
.site-header .custom-logo-link .svg-white,
.elementor-widget-theme-site-logo .svg-white {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

/* Hover state - optional */
.site-header .custom-logo-link:hover .svg-white,
.elementor-widget-theme-site-logo:hover .svg-white {
    filter: brightness(0) invert(1) opacity(0.8);
}

/* Elementor Typography Overrides - Only if needed */
.elementor-widget-heading .elementor-heading-title {
    font-family: var(--font-primary) !important;
}

/* Force Avenir Pro on specific components that might resist global settings */
.elementor-post__title,
.elementor-post__title a,
.elementor-card-title,
.elementor-tab-title,
.elementor-accordion-title {
    font-family: var(--font-primary) !important;
}

/* Font Declarations */
@font-face {
    font-family: 'Avenir Next LT Pro';
    src: url('assets/fonts/AvenirNextLTPro-Regular.otf') format('opentype'),
         url('assets/fonts/AvenirNextLTPro-Regular.woff2') format('woff2'),
         url('assets/fonts/AvenirNextLTPro-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Next LT Pro';
    src: url('assets/fonts/AvenirNextLTPro-Demi.otf') format('opentype'),
         url('assets/fonts/AvenirNextLTPro-Demi.woff2') format('woff2'),
         url('assets/fonts/AvenirNextLTPro-Demi.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Next LT Pro';
    src: url('assets/fonts/AvenirNextLTPro-Bold.otf') format('opentype'),
         url('assets/fonts/AvenirNextLTPro-Bold.woff2') format('woff2'),
         url('assets/fonts/AvenirNextLTPro-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Typography System */
:root {
    --font-primary: "Avenir Next LT Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-secondary: "Source Sans Pro", sans-serif;
}

/* Root Variables */
:root {
    /* Colors */
    --rc-navy: #1C2B49;
    --rc-gold: #BFA05A;
    --rc-white: #FFFFFF;
    --rc-tech-blue: #4A90E2;
    --rc-teal: #00A9A5;
    --rc-light-gray: #f8f8f8;
    
    /* Typography */
    --font-primary: "Avenir Next LT Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-secondary: "Source Sans Pro", sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Transitions */
    --rc-transition: 0.3s ease;
    --rc-transition-slow: 0.5s ease;
}

/* Base Typography */
body {
    font-family: var(--font-secondary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--rc-charcoal);
}

/* Heading Base Styles */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.3;
    color: var(--rc-navy);
}

/* Remove individual font-family declarations since they're handled by Elementor Site Settings */
.elementor-widget-heading .elementor-heading-title,
.elementor-post__title,
.elementor-post__title a,
.elementor-card-title,
.elementor-tab-title,
.elementor-accordion-title,
.elementor-toggle-title,
.site-title,
.entry-title,
.widget-title {
    font-family: var(--font-primary);
}

/* Hero Section - Keep specific sizing */
.rc-hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

/* Section Titles - Keep specific sizing */
.rc-section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    position: relative;
}

/* Staff Template Typography - Keep specific sizing */
.staff-info h1,
.staff-info .staff-name {
    margin: 0 0 10px;
    font-size: 36px;
}

/* Post Grid Typography - Keep specific sizing */
.elementor-posts-container .elementor-post__title,
.elementor-grid-item .elementor-post__title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 10px;
}

/* Force Override Elementor Fonts */
[class*="elementor-"],
[class*="elementor-"] *,
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-widget-theme-post-title,
.elementor-widget-theme-post-content,
.elementor-widget-theme-site-title,
.elementor-widget-theme-site-logo,
.elementor-widget-nav-menu,
.elementor-widget-button,
.elementor-widget-image-box,
.elementor-widget-icon-box,
.elementor-widget-testimonial,
.elementor-widget-tabs,
.elementor-widget-accordion,
.elementor-widget-toggle,
.elementor-widget-social-icons,
.elementor-widget-sitemap,
.elementor-widget-breadcrumbs,
.elementor-widget-posts,
.elementor-widget-archive-posts,
.elementor-widget-portfolio,
.elementor-widget-slides,
.elementor-widget-form,
.elementor-widget-login,
.elementor-widget-wp-widget-categories,
.elementor-widget-wp-widget-archives,
.elementor-widget-wp-widget-meta,
.elementor-widget-wp-widget-recent-posts,
.elementor-widget-wp-widget-recent-comments,
.elementor-widget-wp-widget-rss,
.elementor-widget-wp-widget-tag_cloud,
.elementor-widget-wp-widget-nav_menu,
.elementor-widget-wp-widget-pages,
.elementor-widget-wp-widget-calendar,
.elementor-widget-wp-widget-media_audio,
.elementor-widget-wp-widget-media_image,
.elementor-widget-wp-widget-media_gallery,
.elementor-widget-wp-widget-media_video,
.elementor-widget-wp-widget-search,
.elementor-widget-wp-widget-text {
    font-family: var(--font-primary, "Avenir Pro"), var(--font-secondary, "Source Sans Pro"), sans-serif !important;
}

/* Override any Roboto Slab specifically */
*[style*="Roboto Slab"] {
    font-family: var(--font-primary, "Avenir Pro"), var(--font-secondary, "Source Sans Pro"), sans-serif !important;
}

/* SVG Gradient Effects */
.svg-gradient-navy-teal {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.svg-gradient-navy-teal img,
.svg-gradient-navy-teal svg {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1); /* Make SVG white first */
    mix-blend-mode: overlay;
    opacity: 0.95;
    transition: all 0.3s ease;
}

.svg-gradient-navy-teal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--rc-navy) 0%, var(--rc-teal) 100%);
    z-index: -1;
    opacity: 1;
    transition: all 0.3s ease;
}

/* For icons and inline SVGs */
.elementor-icon.svg-gradient-navy-teal svg path,
.elementor-icon.svg-gradient-navy-teal i {
    fill: url(#svg-gradient) !important;
    background: linear-gradient(45deg, var(--rc-navy) 0%, var(--rc-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* For Elementor icon lists */
.elementor-icon-list-icon .svg-gradient-navy-teal i,
.elementor-icon-list-icon .svg-gradient-navy-teal svg path {
    background: linear-gradient(45deg, var(--rc-navy) 0%, var(--rc-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hover effect */
.svg-gradient-navy-teal:hover img,
.svg-gradient-navy-teal:hover svg {
    opacity: 1;
    transform: scale(1.02);
}

.svg-gradient-navy-teal:hover::before {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Fix for Elementor containers */
.elementor-widget-container .svg-gradient-navy-teal {
    width: 100%;
    display: block;
}

/* Ensure proper sizing in Elementor image widgets */
.elementor-widget-image .svg-gradient-navy-teal {
    width: 100%;
    display: block;
}

.elementor-widget-image .svg-gradient-navy-teal img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Gradient Button with Sparkle Effect */
.btn-gradient-sparkle,
.elementor-widget-button .elementor-button.btn-gradient-sparkle {
    position: relative;
    background: linear-gradient(45deg, var(--rc-navy, #1C2B49) 0%, var(--rc-teal, #00A9A5) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

/* Gradient Hover Effect */
.btn-gradient-sparkle::before,
.elementor-widget-button .elementor-button.btn-gradient-sparkle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--rc-teal, #00A9A5) 0%, var(--rc-navy, #1C2B49) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

/* Sparkle Effect */
.btn-gradient-sparkle::after,
.elementor-widget-button .elementor-button.btn-gradient-sparkle::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 30%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s;
    pointer-events: none;
    z-index: -1;
}

/* Hover States */
.btn-gradient-sparkle:hover,
.elementor-widget-button .elementor-button.btn-gradient-sparkle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-gradient-sparkle:hover::before,
.elementor-widget-button .elementor-button.btn-gradient-sparkle:hover::before {
    opacity: 1;
}

.btn-gradient-sparkle:hover::after,
.elementor-widget-button .elementor-button.btn-gradient-sparkle:hover::after {
    animation: sparkle 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Sparkle Animation */
@keyframes sparkle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 0.3;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* Active State */
.btn-gradient-sparkle:active,
.elementor-widget-button .elementor-button.btn-gradient-sparkle:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Size Variants */
.btn-gradient-sparkle.btn-sm,
.elementor-widget-button .elementor-button.btn-gradient-sparkle.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-gradient-sparkle.btn-lg,
.elementor-widget-button .elementor-button.btn-gradient-sparkle.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* Disabled State */
.btn-gradient-sparkle:disabled,
.elementor-widget-button .elementor-button.btn-gradient-sparkle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Transparent Header Styles */
.elementor-location-header.transparent-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: transparent !important;
    transition: all 0.3s ease !important;
    z-index: 999;
    padding: 20px 5% !important;
    box-sizing: border-box;
}

/* Container width fix */
.elementor-location-header.transparent-header > .elementor-container {
    padding-left: 5% !important;
    padding-right: 5% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Scrolled state */
.elementor-location-header.transparent-header.header-scrolled {
    background-color: var(--rc-navy) !important;
    box-shadow: 0 2px 10px rgba(28, 43, 73, 0.1);
    padding: 10px 5% !important;
}

/* Force transparency on initial load */
.elementor-location-header.transparent-header:not(.header-scrolled) {
    background-color: transparent !important;
}

/* Override any Elementor background settings */
.elementor-location-header.transparent-header:not(.header-scrolled) .elementor-container,
.elementor-location-header.transparent-header:not(.header-scrolled) .elementor-column-wrap,
.elementor-location-header.transparent-header:not(.header-scrolled) .elementor-widget-wrap {
    background-color: transparent !important;
}

/* Navigation styles */
.elementor-location-header.transparent-header .elementor-nav-menu--main .elementor-nav-menu > li > a {
    color: var(--rc-white) !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    transition: opacity 0.3s ease;
}

.elementor-location-header.transparent-header .elementor-nav-menu--main .elementor-nav-menu > li > a:hover {
    opacity: 0.8;
}

/* Mobile menu styles */
@media (max-width: 1024px) {
    .elementor-location-header.transparent-header {
        padding: 15px 5% !important;
        background-color: var(--rc-navy) !important;
    }
    
    .elementor-location-header.transparent-header.header-scrolled {
        padding: 10px 5% !important;
    }
    
    .elementor-location-header.transparent-header .elementor-menu-toggle {
        color: var(--rc-white) !important;
    }
    
    .elementor-location-header.transparent-header .elementor-nav-menu--dropdown {
        background-color: var(--rc-navy) !important;
        margin-top: 0;
    }
}

/* Fix content padding for fixed header */
body:not(.elementor-editor-active) .elementor-location-header.transparent-header + .elementor-section {
    padding-top: 100px;
}

/* SVG Gradient Effects - Alternative Version */
.svg-gradient-navy-green-alt {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

.svg-gradient-navy-green-alt svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Apply gradient to SVG paths */
.svg-gradient-navy-green-alt svg path,
.svg-gradient-navy-green-alt svg line,
.svg-gradient-navy-green-alt svg rect,
.svg-gradient-navy-green-alt svg circle,
.svg-gradient-navy-green-alt svg polygon {
    stroke: var(--rc-teal);
    stroke-width: 2;
    fill: none;
    transition: all 0.3s ease;
}

/* Hover Effects */
.svg-gradient-navy-green-alt:hover svg path,
.svg-gradient-navy-green-alt:hover svg line,
.svg-gradient-navy-green-alt:hover svg rect,
.svg-gradient-navy-green-alt:hover svg circle,
.svg-gradient-navy-green-alt:hover svg polygon {
    stroke: var(--rc-navy);
}

/* Loan Card Specific Styles */
.elementor-posts--thumbnail-top .elementor-post .svg-gradient-navy-green-alt {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.elementor-posts--thumbnail-top .elementor-post .svg-gradient-navy-green-alt svg {
    width: 100%;
    height: 100%;
}

defs {
    position: absolute;
}

linearGradient#svg-gradient stop:first-child {
    stop-color: var(--rc-navy);
}

linearGradient#svg-gradient stop:last-child {
    stop-color: var(--rc-teal);
} 