/**
 * RH Page Builder 2026 Styles
 * Responsive-first approach with fluid typography
 * Independent from original page builder styles
 */

/* ==========================================================================
   Smooth Scrolling
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   Image Normalization
   ========================================================================== */

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

/* ==========================================================================
   Box Sizing Normalization
   ========================================================================== */

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

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */

:root {
    --rh-container-max-width: 1200px;
    --rh-container-padding: clamp(1rem, 4vw, 1.5rem);
    --rh-gap-base: clamp(1rem, 2vw, 2rem);
    --rh-gap-small: clamp(0.5rem, 1.5vw, 1rem);
    --rh-gap-large: clamp(2rem, 4vw, 3rem);
    
    /* Colors */
    --rh-color-black: #002244;
    --rh-color-blue: #006DC2;
    --rh-color-blue-dark: #0058a3;
    --rh-color-orange: #CD4104;
    --rh-color-orange-light: #F47F31;
    --rh-color-gray: #666666;
    --rh-color-white: #ffffff;
    --rh-color-light-blue: #F2F8FF;
    --bs-black-rgb: #002244;
    
    /* Typography - Fluid Sizes */
    --rh-font-size-xs: 14px;   /* mobile; 15px from tablet up (see media query below) */
    --rh-font-size-sm: clamp(0.75rem, 0.75vw + 0.5rem, 0.875rem);      /* 12px - 14px */
    --rh-font-size-base: clamp(0.9375rem, 0.5vw + 0.875rem, 1.0625rem); /* 15px - 17px */
    --rh-font-size-lg: clamp(1.125rem, 1vw + 0.75rem, 1.25rem);        /* 18px - 20px */
    --rh-font-size-xl: clamp(1.25rem, 1.5vw + 0.75rem, 1.875rem);      /* 20px - 30px */
    --rh-font-size-2xl: clamp(1.875rem, 2.5vw + 1rem, 2.375rem);       /* 30px - 38px */
    --rh-font-size-3xl: clamp(2rem, 4vw + 1rem, 4.375rem);            /* 32px - 70px */
    
    /* Line Heights */
    --rh-line-height-tight: 1.2;
    --rh-line-height-normal: 1.5;
    --rh-line-height-relaxed: 1.6;
    
    /* Spacing Scale */
    --rh-spacing-0: 0;
    --rh-spacing-1: clamp(0.25rem, 0.5vw, 0.5rem);
    --rh-spacing-2: clamp(0.5rem, 1vw, 1rem);
    --rh-spacing-3: clamp(0.75rem, 1.5vw, 1.5rem);
    --rh-spacing-4: clamp(1rem, 2vw, 2rem);
    --rh-spacing-6: clamp(1.5rem, 3vw, 3rem);
    --rh-spacing-8: clamp(2rem, 4vw, 4rem);
    --rh-spacing-10: clamp(2.5rem, 5vw, 5rem);
    --rh-spacing-12: clamp(3rem, 6vw, 6rem);
    --rh-spacing-16: clamp(4rem, 8vw, 8rem);
    --rh-spacing-20: clamp(5rem, 10vw, 10rem);
}

@media (min-width: 768px) {
    :root {
        --rh-font-size-xs: 15px;
    }
}

/* ==========================================================================
   Typography Base
   ========================================================================== */

body {
    font-family: 'Poppins', sans-serif;
    font-size: var(--rh-font-size-base);
    line-height: var(--rh-line-height-relaxed);
    color: var(--rh-color-black);
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */

.section {
    width: 100%;
}

.container {
    max-width: var(--rh-container-max-width);
    margin: 0 auto;
    padding-left: var(--rh-container-padding);
    padding-right: var(--rh-container-padding);
}

/* ==========================================================================
   Spacing Utilities (Responsive)
   ========================================================================== */

/* Padding options (pt, pb, pl, pr) – tablet (md) and desktop (lg) only, not mobile */
@media (min-width: 768px) {
    .pt-0 { padding-top: 0 !important; }
    .pt-1 { padding-top: 1rem !important; }
    .pt-2 { padding-top: 2rem !important; }
    .pt-3 { padding-top: 3rem !important; }
    .pt-4 { padding-top: 4rem !important; }
    .pt-5 { padding-top: 5rem !important; }
    .pt-6 { padding-top: 6rem !important; }
    .pt-8 { padding-top: 8rem !important; }
    .pt-10 { padding-top: 10rem !important; }
    .pt-12 { padding-top: 12rem !important; }

    .pb-0 { padding-bottom: 0 !important; }
    .pb-1 { padding-bottom: 1rem !important; }
    .pb-2 { padding-bottom: 2rem !important; }
    .pb-3 { padding-bottom: 3rem !important; }
    .pb-4 { padding-bottom: 4rem !important; }
    .pb-5 { padding-bottom: 5rem !important; }
    .pb-6 { padding-bottom: 6rem !important; }
    .pb-8 { padding-bottom: 8rem !important; }
    .pb-10 { padding-bottom: 10rem !important; }
    .pb-12 { padding-bottom: 12rem !important; }

    .pl-0 { padding-left: 0 !important; }
    .pl-1 { padding-left: 1rem !important; }
    .pl-2 { padding-left: 2rem !important; }
    .pl-3 { padding-left: 3rem !important; }
    .pl-4 { padding-left: 4rem !important; }
    .pl-5 { padding-left: 5rem !important; }
    .pl-6 { padding-left: 6rem !important; }
    .pl-8 { padding-left: 8rem !important; }
    .pl-10 { padding-left: 10rem !important; }
    .pl-12 { padding-left: 12rem !important; }

    .pr-0 { padding-right: 0 !important; }
    .pr-1 { padding-right: 1rem !important; }
    .pr-2 { padding-right: 2rem !important; }
    .pr-3 { padding-right: 3rem !important; }
    .pr-4 { padding-right: 4rem !important; }
    .pr-5 { padding-right: 5rem !important; }
    .pr-6 { padding-right: 6rem !important; }
    .pr-8 { padding-right: 8rem !important; }
    .pr-10 { padding-right: 10rem !important; }
    .pr-12 { padding-right: 12rem !important; }
}

/* Gap Utilities - rem values */
.gap-0 { gap: 0 !important; }
.gap-1 { gap: 1rem !important; }
.gap-2 { gap: 2rem !important; }
.gap-3 { gap: 3rem !important; }
.gap-4 { gap: 4rem !important; }
.gap-5 { gap: 5rem !important; }
.gap-6 { gap: 6rem !important; }

/* ==========================================================================
   Columns Layout (Flexbox)
   ========================================================================== */

.columns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rh-gap-base);
}

/* Vertical Alignment */
.flex-start {
    align-items: flex-start;
}

.flex-center {
    align-items: center;
}

.flex-end {
    align-items: flex-end;
}

/* ==========================================================================
   Column Widths (Mobile First)
   ========================================================================== */

.column {
    flex: 0 0 auto;
    width: 100%; /* Mobile: All columns full width */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

/* Mobile-only: No column padding; padding starts at md */
@media (max-width: 767px) {
    .column {
        order: var(--mobile-order, 0);
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .column + .column {
        margin-top: 2rem;
    }
}

/* Tablet and up: Proportional column widths */
@media (min-width: 768px) {
    .columns {
        gap: 0;
    }
    
    .w-full {
        width: 100%;
    }
    
    .w-1\/2 {
        width: calc(50% - 1rem);
    }
    
    .w-1\/3 {
        width: calc(33.333% - 1.333rem);
    }
    
    .w-2\/3 {
        width: calc(66.666% - 0.666rem);
    }
    
    .w-2\/5 {
        width: calc(40% - 1.2rem);
    }
    
    .w-3\/5 {
        width: calc(60% - 0.8rem);
    }
}

/* ==========================================================================
   Text Alignment
   ========================================================================== */

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

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

.text-right {
    text-align: right;
}

/* ==========================================================================
   Text Colors
   ========================================================================== */

.text-black {
    color: var(--rh-color-black) ;
}

.text-blue {
    color: var(--rh-color-blue);
}

.text-orange {
    color: var(--rh-color-orange);
}

/* ==========================================================================
   Heading Styles - Fluid Typography
   ========================================================================== */

/* Base heading reset - all headings have no top margin */
h1,
h2,
h3,
h4,
h5,
h6,
.heading,
.heading-xl,
.heading-lg,
.heading-md,
.heading-sm,
.card-heading,
.accordion-button {
    margin-top: 0;
    color: var(--rh-color-black);
}

/* Color utilities override default heading color (higher specificity) */
h1.text-black, h2.text-black, h3.text-black, h4.text-black, h5.text-black, h6.text-black,
.heading.text-black, .heading-xl.text-black, .heading-lg.text-black, .heading-md.text-black, .heading-sm.text-black,
.card-heading.text-black, .accordion-button.text-black {
    color: var(--rh-color-black);
}
h1.text-blue, h2.text-blue, h3.text-blue, h4.text-blue, h5.text-blue, h6.text-blue,
.heading.text-blue, .heading-xl.text-blue, .heading-lg.text-blue, .heading-md.text-blue, .heading-sm.text-blue,
.card-heading.text-blue, .accordion-button.text-blue {
    color: var(--rh-color-blue);
}
h1.text-orange, h2.text-orange, h3.text-orange, h4.text-orange, h5.text-orange, h6.text-orange,
.heading.text-orange, .heading-xl.text-orange, .heading-lg.text-orange, .heading-md.text-orange, .heading-sm.text-orange,
.card-heading.text-orange, .accordion-button.text-orange {
    color: var(--rh-color-orange);
}

.heading {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    margin-bottom: 0;
    line-height: var(--rh-line-height-tight);
}

.heading + .images {
    margin-top: 3rem;
}

/* Heading scale: XL (largest) → SM (smallest), 52px down to 16px, all responsive */
/* Heading XL - largest, 52px max */
.heading-xl {
    font-size: clamp(1.75rem, 4vw + 1.25rem, 3.25rem); /* ~28px → 52px */
    font-weight: 600;
    line-height: var(--rh-line-height-tight);
    letter-spacing: clamp(-0.8px, -0.1vw, -1.4px);
}

/* Heading LG - capped at 36px */
.heading-lg {
    font-size: clamp(1.5rem, 2.5vw + 1rem, 2.25rem); /* ~24px → 36px */
    font-weight: 600;
    line-height: var(--rh-line-height-tight);
    letter-spacing: clamp(-0.3px, -0.05vw, -0.5px);
}

/* Heading MD - capped at 24px */
.heading-md {
    font-size: clamp(1.25rem, 1.5vw + 0.875rem, 1.5rem); /* ~20px → 24px */
    font-weight: 600;
    line-height: var(--rh-line-height-tight);
    letter-spacing: 0;
}

/* Heading SM - smallest, 16px max */
.heading-sm {
    font-size: clamp(0.875rem, 0.5vw + 0.75rem, 1rem); /* ~14px → 16px */
    font-weight: 600;
    line-height: var(--rh-line-height-tight);
    letter-spacing: clamp(0.5px, 0.1vw, 1px);
    text-transform: uppercase;
    margin-bottom: 0;
}

/* ==========================================================================
   Text/Body Utilities - Fluid Typography
   ========================================================================== */

.text-regular,
.rich-text p,
.rich-text li {
    font-family: 'Poppins', sans-serif;
    font-size: var(--rh-font-size-base);
    font-style: normal;
    font-weight: 400;
    line-height: var(--rh-line-height-relaxed);
    color: var(--rh-color-black);
}

.text-large {
    font-family: 'Poppins', sans-serif;
    font-size: var(--rh-font-size-lg);
    font-style: normal;
    font-weight: 700;
    line-height: var(--rh-line-height-normal);
}

/* ==========================================================================
   Rich Text Block
   ========================================================================== */

.rich-text {
    margin-bottom: var(--rh-spacing-3);
}

.rich-text p {
    margin-bottom: var(--rh-spacing-2);
}

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

.rich-text ul,
.rich-text ol {
    margin-bottom: var(--rh-spacing-2);
    padding-left: var(--rh-spacing-3);
}

.rich-text ul {
    list-style-type: disc;
    list-style-position: outside;
}

.rich-text ol {
    list-style-type: decimal;
    list-style-position: outside;
}

.rich-text li {
    margin-bottom: var(--rh-spacing-1);
}

.rich-text a {
    color: var(--rh-color-blue);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.rich-text a:hover {
    color: var(--rh-color-blue-dark);
}

/* ==========================================================================
   Images Block
   ========================================================================== */

.images {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.images.images-align-start {
    justify-content: flex-start;
}

.images.images-align-center {
    justify-content: center;
}

.images.images-align-end {
    justify-content: flex-end;
}

/* Gap utility classes override default gap */
.images.gap-0 { gap: 0; }
.images.gap-1 { gap: 1rem; }
.images.gap-2 { gap: 2rem; }
.images.gap-3 { gap: 3rem; }
.images.gap-4 { gap: 4rem; }
.images.gap-5 { gap: 5rem; }
.images.gap-6 { gap: 6rem; }

.images img {
    width: 100%;
}

/* Height utility classes for images */
.images.h-1 img { height: 1rem; width: auto; object-fit: contain; }
.images.h-2 img { height: 2rem; width: auto; object-fit: contain; }
.images.h-3 img { height: 3rem; width: auto; object-fit: contain; }
.images.h-4 img { height: 4rem; width: auto; object-fit: contain; }
.images.h-5 img { height: 5rem; width: auto; object-fit: contain; }
.images.h-6 img { height: 6rem; width: auto; object-fit: contain; }
.images.h-8 img { height: 8rem; width: auto; object-fit: contain; }
.images.h-10 img { height: 10rem; width: auto; object-fit: contain; }
.images.h-12 img { height: 12rem; width: auto; object-fit: contain; }
.images.h-16 img { height: 16rem; width: auto; object-fit: contain; }
.images.h-20 img { height: 20rem; width: auto; object-fit: contain; }

/* ==========================================================================
   Video Block
   ========================================================================== */

.video {
    margin-bottom: var(--rh-spacing-2);
}

.video-file video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: clamp(4px, 0.5vw, 8px);
}

/* ==========================================================================
   Accordion Block
   ========================================================================== */

/* Bootstrap Accordion Structure (without Bootstrap CSS) */
.accordion {
    --bs-accordion-color: transparent;
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: transparent;
    --bs-accordion-border-radius: 0;
    --bs-accordion-inner-border-radius: 0;
    --bs-accordion-btn-padding-x: 0;
    --bs-accordion-btn-padding-y: 0;
    --bs-accordion-btn-color: inherit;
    --bs-accordion-btn-bg: transparent;
    --bs-accordion-btn-icon: none;
    --bs-accordion-btn-icon-width: 0;
    --bs-accordion-btn-focus-border-color: transparent;
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-body-padding-x: 0;
    --bs-accordion-body-padding-y: 0;
    --bs-accordion-active-color: inherit;
    --bs-accordion-active-bg: transparent;
}

.accordion-item {
    border: none;
    background: transparent;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    font-size: inherit;
    color: inherit;
    text-align: left;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    overflow-anchor: none;
    transition: none;
    cursor: pointer;
    margin-top: 0;
}

.accordion-button:not(.collapsed) {
    color: inherit;
    background-color: transparent;
    box-shadow: none;
}

.accordion-button::after {
    display: none;
}

.accordion-button:focus {
    z-index: 3;
    border-color: transparent;
    outline: 0;
    box-shadow: none;
}

.accordion-collapse {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

.accordion-collapse.show {
    height: auto;
}

.accordion-body {
    padding: 0;
    flex: 1 1 auto;
}

.collapse {
    visibility: hidden;
}

.collapse.show {
    visibility: visible;
}

.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

.drawer-block {
    margin-bottom: 0;
}

.drawer-block .accordion-item {
    border: none;
    background: transparent;
}

.drawer-block .accordion-item + .accordion-item {
    margin-top: 2rem;
}

.drawer-block .accordion-button {
    font-family: 'Poppins', sans-serif;
    color: var(--rh-color-blue);
    background: transparent;
    border: none;
    padding: var(--rh-spacing-1) 0 var(--rh-spacing-1) 0;
    padding-left: calc(clamp(20px, 2vw, 24px) + var(--rh-spacing-3));
    position: relative;
    box-shadow: none;
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
}

.drawer-block .accordion-button.heading-md {
    font-size: clamp(1.25rem, 1.5vw + 0.875rem, 1.5rem); /* same as .heading-md, max 24px */
    font-weight: 600;
    line-height: var(--rh-line-height-tight);
    letter-spacing: 0;
    margin-top: 0;
}

.drawer-block .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--rh-color-blue);
    box-shadow: none;
}

.drawer-block .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.drawer-block .accordion-button::after {
    display: none;
}

.drawer-block .accordion-button::before {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 400;
    line-height: 1;
    color: var(--rh-color-blue);
}

.drawer-block .accordion-button.collapsed::before {
    content: '+';
}

.drawer-block .accordion-button:not(.collapsed)::before {
    content: '-';
}

.drawer-block .accordion-body {
    font-family: 'Poppins', sans-serif;
    font-size: var(--rh-font-size-base);
    font-weight: 400;
    line-height: var(--rh-line-height-relaxed);
    color: var(--rh-color-black);
    padding: 0 0 0 calc(clamp(20px, 2vw, 24px) + var(--rh-spacing-3));
}

.drawer-block .accordion-collapse {
    border: none;
}

.drawer-block .drawer-cta {
    margin-top: var(--rh-spacing-3);
    margin-bottom: var(--rh-spacing-3);
}

/* ==========================================================================
   CTA Block - Button Utilities
   ========================================================================== */

.cta-block {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rh-spacing-2);
    margin-bottom: var(--rh-spacing-2);
}

.cta-block.cta-align-start {
    justify-content: flex-start;
}

.cta-block.cta-align-center {
    justify-content: center;
}

.cta-block.cta-align-end {
    justify-content: flex-end;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1vw, 8px);
    height: clamp(44px, 5vw, 48px);
    padding: 0 clamp(0.75rem, 1.25rem, 1.25rem);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: var(--rh-font-size-base);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta:hover {
    text-decoration: underline;
}

.cta-icon {
    max-width: clamp(18px, 2vw, 20px);
    max-height: clamp(18px, 2vw, 20px);
    display: inline-block;
    flex-shrink: 0;
}

/* CTA Blue - Primary Button */
.cta-blue {
    background: var(--rh-color-blue);
    color: var(--rh-color-white);
}

.cta-blue:hover {
    background-color: var(--rh-color-blue-dark);
    color: var(--rh-color-white);
    text-decoration: none;
}

/* CTA Orange */
.cta-orange {
    background: var(--rh-color-orange);
    color: var(--rh-color-white);
}

.cta-orange:hover {
    background-color: #b03803;
    color: var(--rh-color-white);
    text-decoration: none;
}

/* CTA Arrow - Text Link Style */
.cta-arrow {
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 1vw, 8px);
    background: transparent;
    border: none;
    padding: 0;
    height: auto;
    color: var(--rh-color-black);
    font-family: 'Poppins', sans-serif;
    font-size: var(--rh-font-size-base);
    font-weight: 400;
    line-height: var(--rh-line-height-relaxed);
    text-decoration: none;
}

.cta-arrow::after {
    content: '';
    display: inline-block;
    width: clamp(7px, 1vw, 9px);
    height: clamp(12px, 1.5vw, 14px);
    background-image: url('data:image/svg+xml,%3Csvg width="9" height="14" viewBox="0 0 9 14" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M8.125 7.40625L2.0625 13.5C1.75 13.7812 1.28125 13.7812 1 13.5L0.28125 12.7812C0 12.5 0 12.0312 0.28125 11.7188L5.09375 6.875L0.28125 2.0625C0 1.75 0 1.28125 0.28125 1L1 0.28125C1.28125 0 1.75 0 2.0625 0.28125L8.125 6.375C8.40625 6.65625 8.40625 7.125 8.125 7.40625Z" fill="%23CD4104"/%3E%3C/svg%3E');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.cta-arrow:hover::after {
    transform: translateX(4px);
}

/* Mobile: Full width CTAs */
.cta {
    width: 100%;
    justify-content: center;
}

/* Tablet and up: Auto width CTAs */
@media (min-width: 768px) {
    .cta {
        width: auto;
        justify-content: flex-start;
    }
}

/* ==========================================================================
   Cards Block
   ========================================================================== */

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--rh-spacing-2);
    justify-items: center;
}

.card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    text-decoration: none;
    color: inherit;
    background: var(--rh-color-white);
    border: none;
    padding: var(--rh-spacing-3) var(--rh-spacing-2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: auto;
    gap: var(--rh-spacing-2);
    border-radius: clamp(4px, 0.5vw, 8px);
    width: 100%;
}

.card:hover {
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Plain style: No hover effects */
.cards-style-plain .card:hover {
    transform: none;
    box-shadow: none;
}

.card-image {
    flex-shrink: 0;
    width: clamp(50px, 8vw, 60px);
    max-width: clamp(50px, 8vw, 60px);
    margin-bottom: 0;
}

.card-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: clamp(2px, 0.3vw, 4px);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--rh-spacing-1);
    flex: 1;
}

.card-heading {
    font-family: 'Poppins', sans-serif;
    font-size: var(--rh-font-size-lg);
    font-weight: 600;
    line-height: var(--rh-line-height-tight);
    color: var(--rh-color-blue);
    margin: 0;
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 8px);
}

.card-heading::after {
    content: '';
    display: inline-block;
    width: clamp(5px, 0.8vw, 6px);
    height: clamp(8px, 1.2vw, 10px);
    background-image: url('data:image/svg+xml,%3Csvg width="9" height="14" viewBox="0 0 9 14" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M8.125 7.40625L2.0625 13.5C1.75 13.7812 1.28125 13.7812 1 13.5L0.28125 12.7812C0 12.5 0 12.0312 0.28125 11.7188L5.09375 6.875L0.28125 2.0625C0 1.75 0 1.28125 0.28125 1L1 0.28125C1.28125 0 1.75 0 2.0625 0.28125L8.125 6.375C8.40625 6.65625 8.40625 7.125 8.125 7.40625Z" fill="%23006DC2"/%3E%3C/svg%3E');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.card:hover .card-heading::after {
    transform: translateX(3px);
}

/* Plain style: Remove chevron and use medium heading size */
.cards-style-plain .card-heading {
    font-size: var(--rh-font-size-lg); /* heading-md size */
}

.cards-style-plain .card-heading::after {
    display: none;
}

/* Stats style: Very light blue background, large numbers, no hover/chevron */
.cards-style-stats .card {
    background: #F5FAFF;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: var(--rh-spacing-3);
    border-radius: clamp(8px, 1vw, 12px);
}

.cards-style-stats .card:hover {
    transform: none;
    box-shadow: none;
}

.cards-style-stats .card-heading.heading-xl {
    font-size: clamp(1.75rem, 4vw + 1.25rem, 3.25rem) !important; /* same as .heading-xl */
    font-weight: 600 !important;
    line-height: var(--rh-line-height-tight) !important;
    letter-spacing: clamp(-0.8px, -0.1vw, -1.4px) !important;
    margin-top: 0 !important;
}

.cards-style-stats .card-heading {
    color: var(--rh-color-blue);
    margin-top: 0;
    margin-bottom: var(--rh-spacing-1);
}

.cards-style-stats .card-heading::after {
    display: none;
}

.cards-style-stats .card-content {
    align-items: flex-start;
    text-align: left;
}

.cards-style-stats .card-text {
    color: var(--rh-color-black);
    font-size: var(--rh-font-size-base);
    text-align: left;
}

.cards-style-stats .card-text p {
    text-align: left;
}

.cards-style-stats .card-text a,
.cards-style-stats .card-text u {
    text-decoration: underline;
    color: var(--rh-color-blue);
}

.card-text {
    font-family: 'Poppins', sans-serif;
    font-size: var(--rh-font-size-sm);
    font-weight: 400;
    line-height: var(--rh-line-height-relaxed);
    color: var(--rh-color-gray);
    margin: 0;
}

/* Mobile: All cards full width (single column) */
/* Already handled by grid-template-columns: 1fr above */

/* Tablet and up: Grid columns based on cards per row */
@media (min-width: 768px) {
    .cards {
        gap: var(--rh-gap-base);
    }
    
    .cards-per-row-1 {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .cards-per-row-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cards-per-row-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cards-per-row-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
        padding: var(--rh-spacing-2) var(--rh-spacing-3);
        height: 100%;
    }
    
    /* Stats style: Keep left alignment on tablet+ */
    .cards-style-stats .card {
        align-items: flex-start;
        text-align: left;
    }
    
    .card-image {
        width: auto;
        max-width: clamp(100px, 12vw, 120px);
        margin-bottom: var(--rh-spacing-3);
    }
    
    .card-content {
        align-items: center;
    }
}

/* ==========================================================================
   HTML Block
   ========================================================================== */

.html-block {
    margin-bottom: var(--rh-spacing-2);
}

.html-block iframe {
    max-width: 100%;
    border-radius: clamp(4px, 0.5vw, 8px);
}

/* ==========================================================================
   Testimonials Block
   ========================================================================== */

.testimonials {
    position: relative;
}

.testimonial {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--rh-spacing-3);
    padding: var(--rh-spacing-4) var(--rh-spacing-4);
    position: relative;
}

.testimonials-single .testimonial {
    margin-bottom: 0;
}

.testimonial-content {
    flex: 1;
    max-width: 43rem;
    text-align: left;
}

.testimonial-quote {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.5rem); /* ~20px - 24px */
    font-weight: 500;
    line-height: var(--rh-line-height-relaxed);
    margin-bottom: var(--rh-spacing-2);
    position: relative;
    padding-left: 0;
    padding-top: 0;
}

.testimonial-quote::before {
    display: none; /* Hidden on mobile */
}

.testimonial-attribution {
    margin-bottom: var(--rh-spacing-3);
    padding-left: 0;
}

.attribution-primary {
    font-family: 'Poppins', sans-serif;
    font-size: var(--rh-font-size-lg);
    font-weight: 700;
    line-height: var(--rh-line-height-tight);
    color: #1A3E62;
    margin-bottom: var(--rh-spacing-1);
}

.attribution-secondary {
    font-family: 'Poppins', sans-serif;
    font-size: var(--rh-font-size-base);
    font-weight: 400;
    line-height: var(--rh-line-height-normal);
    color: #1A3E62;
    margin-bottom: 0;
}

.testimonial-cta {
    margin-left: 0;
    margin-top: var(--rh-spacing-2);
}

.testimonial-image {
    display: none; /* Hidden on mobile */
}

/* Testimonials Slider */
.testimonials-slider {
    position: relative;
}

.testimonials-slider-container {
    position: relative;
}

.testimonials-slides {
    margin-bottom: var(--rh-spacing-2);
}

.testimonial-slide .testimonial {
    margin-bottom: 0;
}

/* Slider Arrows */
.testimonials-arrows {
    display: none; /* Hidden on mobile */
}

.arrow {
    position: absolute;
    width: clamp(36px, 4vw, 40px);
    height: clamp(36px, 4vw, 40px);
    cursor: pointer;
    pointer-events: all;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    z-index: 10;
}

.arrow::before {
    content: '';
    width: clamp(14px, 1.5vw, 16px);
    height: clamp(14px, 1.5vw, 16px);
    border-top: 3px solid var(--rh-color-blue);
    border-right: 3px solid var(--rh-color-blue);
    transition: all 0.3s ease;
}

.arrow-prev {
    left: clamp(15px, 2vw, 20px);
}

.arrow-prev::before {
    transform: rotate(-135deg);
}

.arrow-next {
    right: clamp(15px, 2vw, 20px);
}

.arrow-next::before {
    transform: rotate(45deg);
}

.arrow:hover {
    opacity: 0.7;
}

.arrow:hover::before {
    transform: scale(1.1) rotate(-135deg);
}

.arrow-next:hover::before {
    transform: scale(1.1) rotate(45deg);
}

/* Slick Dots */
.testimonials-slider .slick-dots {
    display: flex !important;
    justify-content: center;
    gap: clamp(8px, 1vw, 10px);
    padding: 0;
    margin: var(--rh-spacing-3) 0 0 0;
    list-style: none;
}

.testimonials-slider .slick-dots li {
    margin: 0;
    padding: 0;
}

.testimonials-slider .slick-dots li button {
    width: clamp(10px, 1.2vw, 12px);
    height: clamp(10px, 1.2vw, 12px);
    padding: 0;
    border: 2px solid var(--rh-color-blue);
    border-radius: 50%;
    background-color: transparent;
    font-size: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-slider .slick-dots li.slick-active button {
    background-color: var(--rh-color-blue);
}

.testimonials-slider .slick-dots li button:hover {
    background-color: var(--rh-color-blue);
    opacity: 0.7;
}

/* Tablet and up: Horizontal layout with quote icon */
@media (min-width: 768px) {
    .testimonial {
        flex-direction: row;
        text-align: left;
        padding: var(--rh-spacing-3) clamp(3rem, 6vw, 5rem);
        gap: var(--rh-spacing-3);
        align-items: center;
    }
    
    .testimonial-quote {
        padding-left: clamp(80px, 10vw, 100px);
    }
    
    .testimonial-quote::before {
        content: '';
        display: block;
        position: absolute;
        left: 0;
        top: clamp(6px, 1vw, 8px);
        width: clamp(55px, 7vw, 65px);
        height: clamp(55px, 7vw, 65px);
        background-image: url('https://www.rectanglehealth.com/wp-content/uploads/2025/10/quote.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: left top;
    }
    
    .testimonial-attribution {
        padding-left: clamp(80px, 10vw, 9rem);
    }
    
    .testimonial-cta {
        margin-left: clamp(80px, 10vw, 9rem);
    }
    
    .testimonial-image {
        display: block;
        flex: 0 0 auto;
        width: clamp(180px, 20vw, 200px);
        height: clamp(180px, 20vw, 200px);
        order: 2;
        align-self: center;
    }
    
    .testimonial-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    
    .testimonials-arrows {
        display: block;
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        pointer-events: none;
    }
}

/* ==========================================================================
   Image Carousel Block
   ========================================================================== */

.image-carousel {
    width: 100%;
    position: relative;
    margin-bottom: var(--rh-spacing-2);
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: clamp(4px, 0.5vw, 8px);
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity var(--transition-duration, 1s) ease-in-out;
    pointer-events: none;
}

.carousel-image.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.carousel-container .carousel-image:first-child {
    opacity: 1;
    position: relative;
}

/* ==========================================================================
   Block Spacing
   ========================================================================== */

.block + .block {
    margin-top: 2rem;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Override: heading size combos use tighter spacing (higher specificity than .block + .block) */
.block.heading-sm + .block.heading-xl,
.block.heading-sm + .block.heading-lg {
    margin-top: .5rem;
}

/* Heading blocks override block spacing when context calls for it (higher specificity) */
.block.heading-sm + .block.heading-xl,
.block.heading-sm + .block.heading-lg {
    margin-top: .5rem;
}

.block.heading + .rich-text {
    margin-top: 1rem;
}

/* Override general block spacing for specific combinations */
.rich-text + .cta-block {
    margin-top: 2rem;
}

/* ==========================================================================
   Background Utilities
   ========================================================================== */

.bg-lines {
    background-image: url('https://www.rectanglehealth.com/wp-content/uploads/2025/11/lines-bg.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.bg-lines-white {
    background-image: url('https://www.rectanglehealth.com/wp-content/uploads/2025/11/lines-bg-white.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.bg-orange-bridge {
    background-image: url('https://www.rectanglehealth.com/wp-content/uploads/2025/11/bg-orange-bridge.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.bg-lightblue-gradient {
    background: linear-gradient(0deg, rgba(223, 236, 245, 0.00) 0.65%, #DFECF5 99.35%);
}

.bg-lightblue {
    background-color: #f0f9ff;
}

/* Section background options (utility classes) */
.bg-white {
    background-color: var(--rh-color-white);
}

.bg-light-blue {
    background-color: #DFECF4;
}

.bg-dark-blue {
    background-color: #001F3A;
    color: var(--rh-color-white);
}

.bg-dark-blue .heading,
.bg-dark-blue .heading-xl,
.bg-dark-blue .heading-lg,
.bg-dark-blue .heading-md,
.bg-dark-blue .heading-sm,
.bg-dark-blue .card-heading,
.bg-dark-blue .rich-text p,
.bg-dark-blue .text-black {
    color: var(--rh-color-white);
}

.bg-dark-blue a:not(.btn) {
    color: rgba(255, 255, 255, 0.9);
}

.bg-dark-blue a:not(.btn):hover {
    color: var(--rh-color-white);
}

.text-white {
    color: var(--rh-color-white);
}

.bg-navy {
    background-color: #001F3A;
    color: white;
}
.bg-navy .text-black,
.bg-navy .rich-text p {
    color: white;
}

/* ==========================================================================
   HubSpot Form Block
   ========================================================================== */

.hbspt-form {
    width: 100%;
    max-width: 100%;
}

.hbspt-form iframe {
    max-width: 100%;
}

/* Form container and layout */
.hbspt-form form .hs-form {
    font-family: 'Poppins', sans-serif;
}

.hbspt-form form fieldset {
    margin-bottom: 0;
}

.hbspt-form form .hs-form-field {
    margin-bottom: 0;
}

.hbspt-form form .hs-form-field:last-child {
    margin-bottom: 0;
}

/* Two-column row (First name / Last name) – full width, equal columns */
.hbspt-form form .form-columns-2,
.hbspt-form .form-columns-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 100%;
    width: 100%;
}

/* Override HubSpot’s injected width:50%; float:left on .hs-form-field */
.hbspt-form fieldset.form-columns-2 .hs-form-field,
.hbspt-form form fieldset.form-columns-2 .hs-form-field {
    width: auto !important;
    float: none !important;
    min-width: 0;
}

.hbspt-form form .form-columns-2 .hs-form-field {
    min-width: 0; /* allow grid item to shrink and use space */
}

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

/* Text inputs – clean borders, subtle shadow on focus */
.hbspt-form form input[type="text"],
.hbspt-form form input[type="email"],
.hbspt-form form input[type="tel"] {
    width: 100% !important;
    box-sizing: border-box;
    height: 52px;
    padding: 0 .75rem;
    margin-bottom: 0.5rem;
    background-color: var(--rh-color-white);
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    font-size: var(--rh-font-size-base);
    font-family: 'Poppins', sans-serif;
    color: var(--rh-color-black);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hbspt-form form input[type="text"]:focus,
.hbspt-form form input[type="email"]:focus,
.hbspt-form form input[type="tel"]:focus {
    outline: none;
    border-color: var(--rh-color-blue);
    box-shadow: 0 0 0 3px rgba(0, 109, 194, 0.15);
}

.hbspt-form form .hs-form-field input::placeholder,
.hbspt-form form input::placeholder {
    color: #888;
    font-style: italic;
}

/* Textarea */
.hbspt-form form textarea,
.hbspt-form textarea {
    width: 100% !important;
    box-sizing: border-box;
    min-height: 128px;
    padding: .75rem;
    margin-bottom: 0.5rem;
    background-color: var(--rh-color-white);
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    font-size: var(--rh-font-size-base);
    font-family: 'Poppins', sans-serif;
    color: var(--rh-color-black);
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hbspt-form form textarea:focus,
.hbspt-form textarea:focus {
    outline: none;
    border-color: var(--rh-color-blue);
    box-shadow: 0 0 0 3px rgba(0, 109, 194, 0.15);
}

.hbspt-form form textarea::placeholder {
    color: #888;
    font-style: italic;
}

/* Select / dropdown */
.hbspt-form form select {
    box-sizing: border-box;
    width: 100% !important;
    height: 52px;
    padding: 0 .75rem;
    margin-bottom: 0.5rem;
    background-color: var(--rh-color-white);
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23002244' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-position: right .75rem center;
    background-repeat: no-repeat;
    font-size: var(--rh-font-size-base);
    font-family: 'Poppins', sans-serif;
    color: var(--rh-color-black);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hbspt-form form select:focus {
    outline: none;
    border-color: var(--rh-color-blue);
    box-shadow: 0 0 0 3px rgba(0, 109, 194, 0.15);
}

/* Override HubSpot’s injected width:95% on .hs-input (form-columns-1, etc.) – exclude checkbox/radio */
.hbspt-form fieldset .hs-input:not([type="checkbox"]):not([type="radio"]),
.hbspt-form form fieldset .hs-input:not([type="checkbox"]):not([type="radio"]),
.hbspt-form form .hs-input:not([type="checkbox"]):not([type="radio"]) {
    width: 100% !important;
    color: var(--rh-color-black) !important;
}

.hbspt-form form select.hs-input.is-placeholder {
    color: #888 !important;
}

/* Links in form (e.g. Privacy Policy) */
.hbspt-form form a {
    color: var(--rh-color-blue);
    text-decoration: underline;
    font-weight: 500;
}

.hbspt-form form a:hover {
    color: var(--rh-color-blue-dark);
    text-decoration: underline;
}

/* First two fields: fill grid cells so they use full horizontal space */
.hbspt-form form .form-columns-2 .hs-input {
    width: 100%;
    min-width: 0;
}

.hbspt-form fieldset.form-columns-1 .input {
    margin-right: 0 !important;
}

/* Override HubSpot’s margin-right on two-column row .input */
.hbspt-form fieldset.form-columns-2 .input,
.hbspt-form form fieldset.form-columns-2 .input {
    margin-right: 0 !important;
}

.hbspt-form form ul {
    padding: 0;
    list-style: none;
}

.hbspt-form form .hs_submit {
    margin-top: 1rem;
    position: relative;
}

/* Submit button – primary CTA, brand blue */
.hbspt-form form input[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    padding: 0 1.5rem;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: var(--rh-font-size-base);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--rh-color-blue);
    color: var(--rh-color-white);
    box-shadow: 0 2px 8px rgba(0, 109, 194, 0.25);
}

.hbspt-form form input[type="submit"]:hover {
    background-color: var(--rh-color-blue-dark);
    color: var(--rh-color-white);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 109, 194, 0.35);
}

.hbspt-form .hs-input[type="radio"] {
    margin-top: 5px;
    margin-right: 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    border: 1px solid #4a4a4a;
    padding: 9px;
    display: inline-block;
    position: relative;
    width: 25px;
    height: 25px;
    border-radius: 100%;
}

/* Checkbox – small square, not text-input style (legal consent and all checkboxes) */
.hbspt-form input[type="checkbox"],
.hbspt-form form input[type="checkbox"],
.hbspt-form form .legal-consent-container input[type="checkbox"],
.hbspt-form form .hs-form-booleancheckbox input[type="checkbox"] {
    margin-right: 12px;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--rh-color-white);
    border: 2px solid #d0d0d0;
    border-radius: 6px;
    display: inline-block;
    position: relative;
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    padding: 0 !important;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hbspt-form input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 109, 194, 0.2);
}

.hbspt-form input[type="checkbox"]:checked {
    background-color: var(--rh-color-blue);
    border-color: var(--rh-color-blue);
}

.hbspt-form input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid var(--rh-color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Labels – visible labels (e.g. above textarea) */
.hbspt-form form label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: var(--rh-font-size-base);
    font-weight: 600;
    color: var(--rh-color-black);
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

.hbspt-form form .hs-fieldtype-text label span,
.hbspt-form form .hs-phone label span,
.hbspt-form .hs-fieldtype-select label span,
.hbspt-form .hs-fieldtype-textarea label span {
    display: none !important;
}

.hbspt-form .hs-fieldtype-checkbox label,
.hbspt-form .hs-form-checkbox label,
.hbspt-form .hs-form-radio label {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-transform: capitalize;
    font-weight: 400;
    font-size: 18px;
    align-items: center;
    letter-spacing: normal;
    font-family: 'Poppins', sans-serif;
}

.hbspt-form .hs-fieldtype-checkbox label span,
.hbspt-form .hs-fieldtype-checkbox label {
    font-weight: 700;
    text-transform: capitalize;
    font-size: 18px;
    letter-spacing: normal;
}

.hbspt-form .hs-form-checkbox label span,
.hbspt-form .hs-form-radio label span {
    display: flex;
    flex: 1;
    font-size: 18px;
    font-weight: 400;
    text-transform: capitalize;
    letter-spacing: normal;
}

.hbspt-form .hs-form-checkbox,
.hbspt-form .hs-form-radio {
    margin-bottom: 10px;
}

.hbspt-form form .legal-consent-container .hs-richtext p {
    font-size: var(--rh-font-size-sm);
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    color: var(--rh-color-black);
    line-height: 1.5;
}

.hbspt-form .hs-form fieldset,
.hbspt-form form fieldset {
    max-width: 100% !important;
    width: 100%;
}

.hbspt-form form .hs-form-required,
.hbspt-form form .hs-error-msg,
.hbspt-form .hs-error-msgs label {
    color: #cd4104 !important;
    font-weight: normal;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.hbspt-form form .hs-form-booleancheckbox {
    margin-top: 20px;
}

/* Legal consent / subscription checkbox – much smaller font */
.hbspt-form form .hs-fieldtype-booleancheckbox,
.hbspt-form form .legal-consent-container,
.hbspt-form form [class*="LEGAL_CONSENT"].hs-fieldtype-booleancheckbox {
    font-size: 0.75rem !important; /* 12px */
}

.hbspt-form form .legal-consent-container .hs-form-booleancheckbox-display > span,
.hbspt-form form .hs-fieldtype-booleancheckbox .hs-form-booleancheckbox-display > span,
.hbspt-form form .hs-fieldtype-booleancheckbox label {
    font-size: 0.75rem !important;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.4;
    color: #002244;
    font-family: 'Poppins', sans-serif;
}

.hbspt-form form .legal-consent-container .hs-richtext,
.hbspt-form form .legal-consent-container .hs-richtext p,
.hbspt-form form .hs-fieldtype-booleancheckbox .hs-richtext,
.hbspt-form form .hs-fieldtype-booleancheckbox .hs-richtext p {
    font-size: 0.75rem !important;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.4;
    color: #1f1f1f;
    font-family: 'Poppins', sans-serif;
}

.hbspt-form form input.form-control {
    margin: 0px;
}

/* Responsive Iframe */
.responsive-iframe {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 0;
    padding-bottom: 56%; /* 16:9 aspect ratio */
    overflow: hidden;
    margin: 0 auto;
    border-radius: 12px;
}

.responsive-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   Header & Navigation Styles (Ported from main theme)
   ========================================================================== */

header {
    position: relative;
    z-index: 99;
    box-shadow: 0px 0px 44px 0px rgba(0, 0, 0, 0.05);
}

#top-bar {
    background-color: #dcebf6;
    position: relative;
    z-index: 10;
}

#top-bar .nav {
    justify-content: flex-end;
    --bs-nav-link-padding-x: 0;
}

#top-bar .nav-item + .nav-item {
    margin-left: 1.5rem;
}

#top-bar .nav-link {
    color: var(--rh-color-black);
    font-size: var(--rh-font-size-sm);
    font-weight: 500;
    position: relative;
}

#top-bar .nav-link:before {
    content: "";
    display: block;
    position: absolute;
    height: 2px;
    width: 0%;
    left: 0;
    bottom: 13px;
    background-color: var(--rh-color-orange);
    z-index: -1;
    transition: all 350ms ease-in-out;
}

#top-bar .nav-link:hover:before {
    width: 100%;
}

#main-header {
    position: relative;
}

#main-header:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 9;
    pointer-events: none;
    box-shadow: 0px 0px 44px 0px rgba(0, 0, 0, 0.05);
}

#main-header .navbar-brand {
    padding: 0;
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

#main-header .navbar-brand svg,
#main-header .navbar-brand img {
    max-width: 100%;
}

#main-header .navbar-brand:hover {
    transform: scale(1);
}

#main-header #main-menu {
    display: flex;
    justify-content: flex-end;
    max-width: 100%;
}

#main-header #main-menu .navbar-nav {
    flex-basis: 65%;
}

#main-header #main-menu .right {
    display: flex;
    align-items: center;
}

#main-header .navbar {
    --bs-navbar-padding-y: 0;
    --bs-navbar-brand-margin-end: 3rem;
    --bs-navbar-nav-link-padding-x: 1.25rem;
    position: relative;
    z-index: 1;
}

#main-header .navbar-nav {
    --bs-nav-link-padding-y: 1.75rem;
}

#main-header .nav-link {
    font-size: 0.8rem;
    color: var(--rh-color-black);
    font-weight: 500;
    position: relative;
}

#main-header .nav-link:before {
    content: "";
    display: block;
    position: absolute;
    height: 2px;
    width: 0px;
    left: var(--bs-navbar-nav-link-padding-x);
    right: var(--bs-navbar-nav-link-padding-x);
    top: calc(50% + 7px);
    background-color: var(--rh-color-orange);
    z-index: -1;
    transition: all 350ms ease-in-out;
}

#main-header .nav-link.active:before {
    width: calc(100% - (var(--bs-navbar-nav-link-padding-x) * 2));
}

#main-header .nav-item:hover .nav-link:before {
    width: calc(100% - (var(--bs-navbar-nav-link-padding-x) * 2));
}

#main-header .dropdown-toggle::after {
    display: none;
}

#main-header .dropdown-menu {
    background: linear-gradient(209.58deg, #f7f7f7 0%, #ffffff 100%);
    display: block;
    --bs-dropdown-spacer: 0;
    --bs-dropdown-border-width: 0;
    --bs-dropdown-border-radius: 0 0 0.5rem 0.5rem;
    margin-top: 0px;
    opacity: 0;
    padding: 1.5rem 0 1rem;
    pointer-events: none;
    min-width: 258px;
}

#main-header .nav-item.dropdown:hover > .dropdown-menu,
#main-header .dropdown-menu.show {
    opacity: 1;
    pointer-events: all;
}

#main-header .dropdown-item {
    --bs-dropdown-item-padding-x: 0;
    --bs-dropdown-item-padding-y: 0.5rem;
    color: var(--rh-color-black);
    font-size: 0.8rem;
    font-weight: 500;
}

#main-header .dropdown-item:hover {
    background: none;
}

#main-header .dropdown-item span.main-text {
    position: relative;
}

#main-header .dropdown-item span.main-text:before {
    content: "";
    display: block;
    position: absolute;
    height: 2px;
    width: 0%;
    left: 0;
    bottom: 2px;
    background-color: var(--rh-color-orange);
    z-index: -1;
    transition: all 350ms ease-in-out;
}

#main-header .dropdown-item.active span.main-text:before,
#main-header .dropdown-item:hover span.main-text:before {
    width: 100%;
}

#main-header .dropdown-item span.sub-text {
    display: block;
    font-size: 0.6rem;
    font-weight: 400;
    white-space: pre-wrap;
}

#main-header .dropdown-menu .nav-item {
    padding: 0 1.5rem;
}

#main-header .dropdown-menu .nav-item.dropdown:hover {
    background-color: #fff;
}

#main-header .dropdown-menu .nav-item.dropdown {
    position: static;
}

#main-header .dropdown-menu .dropdown-menu {
    position: absolute;
    left: 100%;
    top: 0;
    min-height: calc(100% + 0.5rem);
    min-width: 185px;
    padding: 1rem 0;
    background: #fff;
}

.search-toggle-wrapper .dropdown-menu {
    --bs-dropdown-spacer: 32px !important;
    min-width: 340px;
    max-width: 100%;
    padding: 0.5rem !important;
    right: 0;
}

.search-toggle-wrapper a:hover svg path {
    fill: var(--rh-color-orange);
    transition: all 350ms ease-in-out;
}

/* Simple Header Styles */
.simple-header {
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.simple-header .navbar {
    padding: 1.5rem 0;
    min-height: auto;
    max-height: 95px;
}

.simple-header .navbar-brand {
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    height: auto;
    max-height: 50px;
}

.simple-header .navbar-brand:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.simple-header .navbar-brand img,
.simple-header .navbar-brand svg {
    height: auto;
    max-height: 100%;
    width: auto;
}

.simple-header .btn {
    transition: all 0.3s ease;
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
}

.simple-header .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.simple-header .right-side-logo {
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    height: auto;
    max-height: 45px;
}

.simple-header .right-side-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.simple-header .right-side-logo img,
.simple-header .right-side-logo svg {
    height: auto;
    max-height: 100%;
    width: auto;
}

/* Sticky Header */
.sticky #site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.sticky.wp-bar-showing #site-header {
    top: 32px;
}

.sticky #site-header #main-header {
    background-color: #fff;
}

/* .sticky {
    padding-top: 140px;
} */

/* ==========================================================================
   Footer Styles - Redesigned to match screenshot
   ========================================================================== */

footer {
    position: relative;
    z-index: 10;
    background: linear-gradient(244deg, #165492 28.62%, #002244 78.08%), radial-gradient(50.61% 41.39% at 50.59% 41.65%, #29538d 0%, #002244 100%);
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

/* Footer Top Section - Navigation Columns */
#footer-top {
    padding: 4rem 0 2.5rem;
}

#footer-top .row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

#footer-top .col-lg-auto {
    flex: 0 0 auto;
    min-width: 0;
}

#footer-top .widget-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: none;
    letter-spacing: normal;
}

#footer-top .nav {
    --bs-nav-link-color: #fff;
    --bs-nav-link-hover-color: #ccc;
    --bs-nav-link-padding-x: 0;
    --bs-nav-link-padding-y: 0.5rem;
    --bs-nav-link-font-size: 0.875rem;
    font-weight: 400;
}

#footer-top .nav-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer-top .nav-link:hover,
#footer-top .nav-link:focus {
    color: #ccc;
}

/* Footer Mid Section - Logo, Reviews, Copyright */
#footer-mid {
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#footer-mid .row {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

#footer-logo {
    margin-bottom: 1.5rem;
}

#footer-logo img {
    max-width: 200px;
    height: auto;
}

#footer-mid .widget-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

#footer-mid .reviews a {
    display: inline-block;
}

#footer-mid .reviews img {
    max-height: 40px;
    width: auto;
}

#footer-mid p {
    font-size: 0.75rem;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 0.75rem;
}

#footer-mid p:last-child {
    margin-bottom: 0;
}

/* Footer Bottom Section - Legal Links */
#footer-bot {
    padding: 1.5rem 0;
    background: #002244;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer-bot .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    --bs-nav-link-color: #fff;
    --bs-nav-link-hover-color: #ccc;
    --bs-nav-link-padding-x: 0;
    --bs-nav-link-padding-y: 0;
    --bs-nav-link-font-size: 0.75rem;
}

#footer-bot .nav-link {
    color: #fff;
    text-decoration: underline;
    transition: color 0.2s ease;
}

#footer-bot .nav-link:hover,
#footer-bot .nav-link:focus {
    color: #ccc;
}

/* Social Links */
footer .social-links {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

footer .social-links li {
    margin: 0;
    padding: 0;
}

footer .social-links a {
    display: block;
    transition: opacity 0.2s ease;
}

footer .social-links a:hover {
    opacity: 0.7;
}

footer .social-links img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Simple Footer */
.simple-footer {
    padding: 76px 0 !important;
    background: rgb(0,34,68) !important;
    background: linear-gradient(90deg, rgba(0,34,68,1) 0%, rgba(0,119,205,1) 100%) !important;
}

.simple-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 30px;
}

.simple-footer img {
    height: 100%;
}

.simple-footer .copy p {
    color: #fff !important;
    font-size: 14px !important;
    line-height: 15px !important;
}

.simple-footer .copy > *:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Responsive Header & Footer Styles
   ========================================================================== */

@media (max-width: 991px) {
    #main-header .navbar-brand {
        transform: none;
        padding: 24px 0;
    }

    /* .sticky {
        padding-top: 140px;
    } */

    #main-header #main-menu {
        height: 0;
        overflow: hidden;
        flex-direction: column;
        padding: 0;
        display: none;
    }

    #main-header:before {
        display: none;
    }

    #main-header #main-menu.show {
        height: auto;
        overflow: visible;
    }

    #main-header #main-menu.collapsing,
    #main-header #main-menu.show {
        display: flex;
    }

    #main-header #main-menu .right {
        justify-content: space-between;
        padding: 15px 0 30px;
    }

    #main-header .dropdown-menu {
        opacity: 1;
        pointer-events: all;
        height: 0;
        padding: 0 15px;
        overflow: hidden;
        border: none;
        background-color: #f7f7f7;
        border-radius: 0;
    }

    #main-header .dropdown-menu.opened {
        height: auto;
    }

    #main-header .nav-link {
        padding: 15px 0;
    }

    #main-header .navbar-nav {
        width: 100%;
    }

    .navbar-toggler {
        --bs-navbar-toggler-padding-x: 0;
        --bs-navbar-toggler-padding-y: 0;
        --bs-navbar-toggler-focus-width: 0;
        --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28205, 65, 4, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        border: none;
    }

    .simple-header .navbar {
        padding: 1rem 0;
        max-height: none;
    }

    .simple-header .container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .simple-header .navbar-brand {
        flex: 0 0 auto;
        margin-right: 0.5rem;
        max-height: none;
    }

    .simple-header .btn {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
        margin-left: 0.5rem !important;
        order: 2;
    }

    .simple-header .right-side-logo {
        order: 3;
        margin-left: auto !important;
        max-height: none;
    }
}

@media (max-width: 767px) {
    .sticky.wp-bar-showing #site-header {
        top: 46px;
    }

    #footer-top .col-12:not(:last-child) {
        margin-bottom: 2rem;
    }

    #footer-mid .col-12:last-child {
        margin-top: 1rem;
    }
}

@media (max-width: 575px) {
    #main-header .navbar-brand {
        --bs-navbar-brand-padding-y: 1rem;
        max-width: 159px;
    }

    .simple-header .navbar {
        padding: 0.75rem 0;
    }

    .simple-header .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .simple-header .navbar-brand img,
    .simple-header .navbar-brand svg {
        max-width: 150px;
    }

    .simple-header .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .simple-header .right-side-logo img,
    .simple-header .right-side-logo svg {
        max-width: 120px;
    }
}

/* ==========================================================================
   Responsive Footer Styles
   ========================================================================== */

@media (max-width: 767px) {
    #footer-top {
        padding: 3rem 0 2rem;
    }

    #footer-top .row {
        flex-direction: column;
        gap: 2rem;
    }

    #footer-top .col-12 {
        margin-bottom: 1.5rem;
    }

    #footer-top .widget-title {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }

    #footer-top .nav-link {
        font-size: 0.8125rem;
    }

    #footer-mid {
        padding: 2rem 0;
    }

    #footer-mid .row {
        flex-direction: column;
        gap: 2rem;
    }

    #footer-logo {
        margin-bottom: 1rem;
    }

    #footer-logo img {
        max-width: 150px;
    }

    #footer-mid p {
        font-size: 0.6875rem;
    }

    #footer-bot {
        padding: 1.25rem 0;
    }

    #footer-bot .nav {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    #footer-bot .nav-link {
        font-size: 0.6875rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #footer-top {
        padding: 3.5rem 0 2.25rem;
    }

    #footer-top .row {
        gap: 1.5rem;
    }

    #footer-top .col-md-6 {
        flex: 0 0 calc(50% - 0.75rem);
    }

    #footer-mid {
        padding: 2.25rem 0;
    }

    #footer-mid .row {
        gap: 2rem;
    }

    #footer-mid p {
        font-size: 0.6875rem;
    }
}

@media (min-width: 768px) {
    #footer-mid .container {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 2rem;
    }

    #footer-top .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 992px) {
    #footer-top {
        padding: 4rem 0 2.5rem;
    }

    #footer-top .col-lg-auto {
        flex: 0 0 auto;
        min-width: 160px;
    }

    #footer-mid .row {
        gap: 3rem;
        align-items: flex-start;
    }

    #footer-mid .col-lg {
        flex: 1;
    }

    #footer-mid p {
        font-size: 0.75rem;
    }
}

@media (min-width: 1200px) {
    #footer-top .container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    #footer-mid .row {
        gap: 4rem;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    #main-header .navbar-brand {
        max-width: 130px;
        margin: 0;
    }

    #main-header #main-menu {
        display: flex;
    }

    #main-header .navbar-nav {
        flex: 1;
        justify-content: space-evenly;
    }

    #main-header .nav-link {
        padding: 24px 10px;
    }

    #main-header .nav-link:before {
        left: 10px;
        right: 10px;
    }

    #main-header .nav-item:hover .nav-link:before {
        width: calc(100% - 20px);
    }
/* 
    .sticky {
        padding-top: 118px;
    } */
}

body.simple-layout .main-body {
    margin-top: 0;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    body.simple-layout .main-body {
        padding-top: 1.5rem;
    }
}

/* ==========================================================================
   Page Builder 2026 Template Specific Styles
   ========================================================================== */

/* Prevent duplicate footer rendering */
footer + footer {
    display: none !important;
}