/* =====================================================
   PLACEHOLDERLENDING SITE OVERRIDES
   Consolidated design system for consistent styling
   ===================================================== */

/* =============================
   CSS VARIABLES - DESIGN TOKENS
   ============================= */
:root {
  /* Primary Brand Colors */
  --color-primary: #29aae2; /* light / primary */
  --color-primary-dark: #1b3860; /* dark */
  --color-primary-light: #66d7f3; /* light tint */
  
  /* Secondary/Accent Colors */
  --color-accent: #98c739;
  --color-accent-dark: #7da82d;
  
  /* Neutral Colors */
  --color-dark: #333333;
  --color-gray: #6e6e6e;
  --color-gray-light: #c5c5c5;
  --color-light: #f5f5f5;
  --color-white: #ffffff;
  --color-black: #000000;
  
  /* Background Colors */
  --bg-light: #f5f5f5;
  --bg-medium: #eeeeee;
  --bg-dark: #252525;
  
  /* Semantic Colors */
  --color-success: #28a745;
  --color-warning: #ffc107;
  --color-danger: #dc3545;
  --color-info: #17a2b8;
  
  /* Spacing Scale */
  --space-xs: 5px;
  --space-sm: 10px;
  --space-md: 20px;
  --space-lg: 30px;
  --space-xl: 50px;
  --space-xxl: 100px;
  
  /* Border Radius */
  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 8px;
  --radius-round: 50%;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Font size design tokens (typography scale) */
  --font-size-xx-large: 34px;
  --font-size-x-large: 28px;
  --font-size-large: 20px;
  --font-size-medium: 16px;
  --font-size-small: 14px;
  /* Apply Now button custom color */
  --apply-now: #e26129; /* requested orange */
  --apply-now-dark: #b8491d; /* darker hover */
  --apply-now-light: #ff8b5e; /* lighter tint */
}

/* Header Apply Now button tweaks: smaller in header, responsive sizing */
#top-bar #cphTerms_lnkApplyNow,
#top-bar .themesflat-button#cphTerms_lnkApplyNow {
  /* use clamp so button grows/shrinks smoothly with viewport */
  padding: clamp(6px, 1.2vw, 12px) clamp(10px, 3vw, 28px) !important;
  font-size: clamp(12px, 1.6vw, 16px) !important;
  line-height: 1 !important;
  border-radius: 6px !important;
  display: inline-block;
  vertical-align: middle;
}

/* Reduce the header-specific has-padding-36 in top-bar to keep the button compact */
#top-bar .has-padding-36 {
  padding: 8px 18px !important;
}

/* On the smallest viewports hide the CALL US line so header stays compact and promote Apply Now */
@media (max-width: 576px) {
  /* hide the left top-bar content (CALL US) on tiny screens */
  #top-bar .top-bar-content {
    display: none !important;
  }

  /* make apply button a bit larger and easy to tap, but still responsive */
  #top-bar #cphTerms_lnkApplyNow {
    padding: clamp(10px, 4vw, 18px) clamp(14px, 8vw, 34px) !important;
    font-size: clamp(14px, 4vw, 18px) !important;
    width: auto !important;
  }
}

/* Override: ensure header and desktop nav are visible on small viewports */
@media only screen and (max-width: 992px) {
  /* prevent theme from hiding desktop nav wrapper */
  .nav-wrap {
    display: block !important;
  }

  /* ensure mainnav is visible so header links remain accessible */
  #mainnav {
    display: block !important;
  }

  /* keep top bar visible */
  #top-bar {
    display: block !important;
  }

  /* show mobile button as needed but do not hide header */
  .mobile-button {
    display: block !important;
  }
}

/* =============================
   LAYOUT UTILITIES
   ============================= */
/* Full width sections */
.section-full { 
  width: 100%; 
  margin: 0; 
  padding: 0; 
}

.container-full { 
  width: 100%; 
}

.row-full { 
  width: 100%; 
}

.full-width-img,
img.full-width { 
  width: 100%; 
  display: block; 
}

.w-100 { 
  width: 100% !important; 
}

/* Flexbox utilities */
.d-flex { 
  display: flex !important; 
}

.align-items-start { 
  align-items: flex-start !important; 
}

.align-items-center { 
  align-items: center !important; 
}

.justify-content-center { 
  justify-content: center !important; 
}

.justify-content-between { 
  justify-content: space-between !important; 
}

.flex-1 { 
  flex: 1 !important; 
}

/* =============================
   SPACING UTILITIES
   ============================= */
/* Padding */
.p-0 { padding: 0 !important; }
.p-5 { padding: 5px !important; }
.p-10 { padding: 10px !important; }
.p-15 { padding: 15px !important; }
.p-20 { padding: 20px !important; }
.p-25 { padding: 25px !important; }
.p-30 { padding: 30px !important; }
.p-40 { padding: 40px !important; }
.p-50 { padding: 50px !important; }

/* Padding Top */
.pt-10 { padding-top: 10px !important; }
.pt-15 { padding-top: 15px !important; }
.pt-20 { padding-top: 20px !important; }
.pt-25 { padding-top: 25px !important; }
.pt-30 { padding-top: 30px !important; }
.pt-40 { padding-top: 40px !important; }
.pt-50 { padding-top: 50px !important; }

/* Padding Bottom */
.pb-10 { padding-bottom: 10px !important; }
.pb-15 { padding-bottom: 15px !important; }
.pb-20 { padding-bottom: 20px !important; }
.pb-25 { padding-bottom: 25px !important; }
.pb-30 { padding-bottom: 30px !important; }
.pb-40 { padding-bottom: 40px !important; }
.pb-50 { padding-bottom: 50px !important; }
.pb-100 { padding-bottom: 100px !important; }

/* Padding Y (Top & Bottom) */
.py-10 { padding-top: 10px !important; padding-bottom: 10px !important; }
.py-15 { padding-top: 15px !important; padding-bottom: 15px !important; }
.py-20 { padding-top: 20px !important; padding-bottom: 20px !important; }
.py-25 { padding-top: 25px !important; padding-bottom: 25px !important; }
.py-30 { padding-top: 30px !important; padding-bottom: 30px !important; }
.py-40 { padding-top: 40px !important; padding-bottom: 40px !important; }
.py-50 { padding-top: 50px !important; padding-bottom: 50px !important; }

/* Padding X (Left & Right) */
.px-10 { padding-left: 10px !important; padding-right: 10px !important; }
.px-15 { padding-left: 15px !important; padding-right: 15px !important; }
.px-20 { padding-left: 20px !important; padding-right: 20px !important; }
.px-30 { padding-left: 30px !important; padding-right: 30px !important; }

/* Margins */
.m-0 { margin: 0 !important; }
.m-5 { margin: 5px !important; }
.m-10 { margin: 10px !important; }
.m-15 { margin: 15px !important; }
.m-20 { margin: 20px !important; }
.m-30 { margin: 30px !important; }

/* Margin Top */
.mt-0 { margin-top: 0 !important; }
.mt-5 { margin-top: 5px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-15 { margin-top: 15px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-30 { margin-top: 30px !important; }
.mt-40 { margin-top: 40px !important; }
.mt-50 { margin-top: 50px !important; }
.mt-4 { margin-top: 1.5rem !important; }

/* Margin Bottom */
.mb-0 { margin-bottom: 0 !important; }
.mb-5 { margin-bottom: 5px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-15 { margin-bottom: 15px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mb-50 { margin-bottom: 50px !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-5-rem { margin-bottom: 5rem !important; }

/* Margin Auto */
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* =============================
   TYPOGRAPHY
   ============================= */
/* Global heading styles to ensure headings are visually distinct site-wide */
h1 {
  font-size: var(--font-size-xx-large);
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
  color: var(--color-dark);
  font-weight: 400;
}

h2 {
  font-size: var(--font-size-x-large);
  line-height: 1.25;
  margin: 0 0 0.5rem 0;
  color: var(--color-dark);
  font-weight: 600;
}

h3 {
  font-size: var(--font-size-large);
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
  color: var(--color-dark);
  font-weight: 600;
}

h4 {
  font-size: var(--font-size-medium);
  line-height: 1.35;
  margin: 0 0 0.5rem 0;
  color: var(--color-dark);
  font-weight: 600;
}

/* Ensure headings inside collapsible panels (.content1) are still prominent but slightly reduced for hierarchy */
.content1 h1 { font-size: calc(var(--font-size-xx-large) - 4px); }
.content1 h2 { font-size: calc(var(--font-size-x-large) - 2px); }
.content1 h3 { font-size: var(--font-size-large); }
.content1 h4 { font-size: calc(var(--font-size-medium) - 2px); }

/* Text Alignment */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Font Sizes */
.font-size-xx-large { font-size: var(--font-size-xx-large) !important; }
.font-size-x-large { font-size: var(--font-size-x-large) !important; }
.font-size-larger { font-size: var(--font-size-larger) !important; }
.font-size-large { font-size: var(--font-size-large) !important; }
.font-size-medium { font-size: var(--font-size-medium) !important; }
.font-size-small { font-size: var(--font-size-small) !important; }

/* Font Weights */
.font-weight-300 { font-weight: 300 !important; }
.font-weight-400 { font-weight: 400 !important; }
.font-weight-500 { font-weight: 500 !important; }
.font-weight-600 { font-weight: 600 !important; }
.font-weight-bold { font-weight: 700 !important; }

/* =============================
   COLOR UTILITIES
   ============================= */
/* Text Colors */
.text-primary { color: var(--color-primary) !important; }
.text-accent { color: var(--color-accent) !important; }
.text-dark { color: var(--color-dark) !important; }
.text-gray { color: var(--color-gray) !important; }
.text-white { color: var(--color-white) !important; }
.text-themecolor1 { color: var(--color-primary-dark) !important; }
.text-themecolor2 { color: var(--color-primary) !important; }
.text-333 { color: var(--color-dark) !important; }
.text-fff { color: var(--color-white) !important; }
.text-6e6 { color: var(--color-gray) !important; }

/* Background Colors */
.bg-primary { background-color: var(--color-primary) !important; }
.bg-accent { background-color: var(--color-accent) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.bg-medium { background-color: var(--bg-medium) !important; }
.bg-dark { background-color: var(--bg-dark) !important; }
.bg-white { background-color: var(--color-white) !important; }
.background-themecolor1 { background-color: var(--color-primary-dark) !important; }
.background-themecolor2 { background-color: var(--color-primary) !important; }
.background-light { background-color: var(--bg-light) !important; }
.background-medium { background-color: var(--bg-medium) !important; }
.background-dark { background-color: var(--bg-dark) !important; }
.bg-color-f5f { background-color: #f5f5f5 !important; }

/* =============================
   BUTTONS
   ============================= */
/* Base Button Styles */
.themesflat-button,
.flat-button,
.btn,
button.comment-submit {
  display: inline-block;
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1.5;
}

/* Primary Apply Now Button (site-specific orange) */
.apply-now-btn,
.themesflat-button.bg-accent,
.bg-accent {
  background-color: var(--apply-now) !important;
  color: var(--color-white) !important;
  border-color: var(--apply-now) !important;
}

.apply-now-btn:hover,
.themesflat-button.bg-accent:hover {
  background-color: var(--apply-now-dark) !important;
  border-color: var(--apply-now-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
/* Focus states for accessibility */
.apply-now-btn:focus,
.themesflat-button.bg-accent:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(226,97,41,0.18);
}

/* Button Sizes */
.btn-sm {
  padding: 8px 20px;
  font-size: 12px;
}

.btn-lg,
.has-padding-36 {
  padding: 14px 36px;
  font-size: 16px;
}

/* Button with Shadow */
.has-shadow {
  box-shadow: var(--shadow-sm);
}

.has-shadow:hover {
  box-shadow: var(--shadow-md);
}

/* Outline Buttons */
.themesflat-button.outline {
  background-color: transparent !important;
  border: 2px solid var(--apply-now);
  color: var(--apply-now) !important;
}

.themesflat-button.outline:hover {
  background-color: var(--apply-now) !important;
  color: var(--color-white) !important;
  border-color: var(--apply-now) !important;
}

.themesflat-button.outline:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(226,97,41,0.18);
}

/* =============================
   SECTIONS & CONTAINERS
   ============================= */
.section {
  padding: 50px 0;
}

.flat-row {
  padding: 40px 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.row > [class*="col-"] {
  padding: 0 15px;
}

/* Heights */
.h-50 {
  height: 50px;
}

/* Boxed Layout */
.boxed { 
  overflow: hidden; 
  position: relative; 
  margin: 5px;
}

/* =============================
   FOOTER
   ============================= */
.footer {
  background-color: var(--bg-light);
  padding: 40px 0 20px;
}

.footer-bottom {
  background-color: var(--bg-dark);
  padding: 20px 0;
  margin-top: 30px;
}

.footer-bottom--black {
  background-color: var(--color-black) !important;
}

.footer-dark-text {
  color: var(--color-white) !important;
}

.footer-link {
  color: var(--color-primary-light) !important;
  transition: color var(--transition-base);
}

.footer-link:hover {
  color: var(--color-white) !important;
  text-decoration: underline;
}

.center-links {
  display: block;
  text-align: right;
}

.center-links a {
  font-size: 16px !important;
  color: var(--color-white);
  margin: 0 5px;
}

.center-links a:hover {
  color: var(--color-primary) !important;
}

/* Ensure footer links inside .center-links use the lighter theme blue and have the correct hover color */
.center-links a.footer-link {
  color: var(--color-primary-light) !important;
  transition: color var(--transition-base);
}

.center-links a.footer-link:hover {
  color: var(--color-white) !important;
  text-decoration: underline;
}

/* Footer copyright color follows the theme */
.footer-copyright {
  color: var(--color-primary-light) !important;
}

/* Right-justify footer links in their column */
.footer-links-col .center-links {
  display: block;
  text-align: right;
}

/* Keep links readable on small screens by centering them */
@media (max-width: 576px) {
  .footer-links-col .center-links {
    text-align: center;
  }
}

/* =============================
   TABLES
   ============================= */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.custom-table th,
.custom-table td {
  border: 0;
  padding: 12px;
  text-align: center;
}

.custom-table th {
  background-color: var(--bg-medium);
  font-weight: 600;
  color: var(--color-dark);
}

.custom-table tr:nth-child(even) {
  background-color: var(--bg-light);
}

.custom-table2 {
  width: 100%;
  border-collapse: collapse;
}

.custom-table2 th,
.custom-table2 td {
  font-size: large;
  border: 0;
  padding: 12px;
  text-align: left;
}

.custom-table2 th {
  background-color: var(--bg-medium);
  font-weight: 600;
}

/* =============================
   ABOUT/FEATURE BOXES
   ============================= */
.about-box {
  border-collapse: collapse;
  margin: 0 auto;
  width: 100%;
}

.about-box td {
  width: 300px;
  height: 300px;
  text-align: center;
  vertical-align: middle;
  padding: 32px 8px;
  font-size: 1.2rem;
  transition: all var(--transition-base);
}

.about-box td:hover {
  background-color: var(--bg-light);
  transform: translateY(-5px);
}

.about-box img,
.about-img {
  width: 100%;
  max-width: 100px;
  height: auto;
  object-fit: contain;
  display: inline-block;
  margin-bottom: 15px;
}

.about-box h3 {
  font-size: 20px;
  color: var(--color-dark);
  margin-bottom: 15px;
  font-weight: 600;
}

.about-box p {
  padding: 0 10px;
  color: var(--color-gray);
  line-height: 1.6;
}

/* =============================
   HOW IT WORKS
   ============================= */
.howitworks-img {
  width: auto; /* allow natural image size up to max-width */
  max-width: 250px;
  height: auto;
  object-fit: contain;
  display: inline-block !important; /* override generic img display:block */
  vertical-align: middle;
  margin: 0 20px 0 0; /* keep text inline to the right of the image */
}

/* Spacing for paragraphs that include the inline how-it-works icons */
.how-icon {
  margin-bottom: var(--space-md); /* adds vertical spacing between these sections */
}

/* Ensure icons placed inside .how-icon stay inline with their text
   and do not expand to full width on small screens. Use flexbox so
   image and text vertically center and maintain spacing. */
.how-icon {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 12px; /* space between icon and text */
  flex-wrap: nowrap; /* keep icon and text on same line when possible */
}

.how-icon img {
  display: inline-block !important;
  vertical-align: middle;
  max-width: none !important; /* prevent global img max-width from forcing 100% */
  width: 60px !important;
  height: auto !important;
  flex: 0 0 60px !important; /* fixed icon width */
}

.how-icon span {
  display: block;
  flex: 1 1 auto;
}

.howitworks-cell,
.contact-cell {
  font-size: 16px;
  padding: 20px;
}

.how-steps {
  list-style: none;
  padding: 0;
}

.how-steps li {
  margin-bottom: 30px;
  padding: 20px;
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 20px;
}

.how-steps li:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.requirements {
  list-style: disc;
  padding-left: 20px;
}

.requirements li {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-dark);
}

/* =============================
   CONTACT
   ============================= */
.contact-table p {
  font-size: 18px !important;
  line-height: 1.8;
}

.contact-table a {
  font-size: 17px !important;
  color: var(--color-primary);
  transition: color var(--transition-base);
}

.contact-table a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Contact icon styles - SVG icons that use currentColor for theme integration */
.contact-icon {
  width: 100px;
  height: 100px;
  display: inline-block;
  color: var(--color-primary);
  transition: color var(--transition-base), transform var(--transition-base);
}

.contact-icon-link {
  display: inline-block;
  text-decoration: none;
}

.contact-icon-link:hover .contact-icon {
  color: var(--color-primary-dark);
  transform: scale(1.1);
}

/* =============================
   FAQS & TOGGLES
   ============================= */
.flat-accordion {
  width: 100%;
  margin: 20px 0;
}

.flat-toggle {
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.toggle-title {
  padding: 15px 20px !important;
  height: auto !important;
  min-height: 50px;
  font-size: 18px !important;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
}

.toggle-title:hover {
  background-color: var(--color-primary-dark) !important;
}

.toggle-title.active {
  background-color: var(--color-primary-dark) !important;
}

.toggle-content {
  padding: 20px;
  font-size: 16px !important;
  background-color: var(--bg-light) !important;
  color: var(--color-dark);
  line-height: 1.8;
  display: none;
}

.toggle-content p {
  margin-bottom: 10px;
}

.collapsible {
  background-color: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  font-weight: 600;
  transition: all var(--transition-base);
}

.collapsible.active,
.collapsible:hover {
  background-color: var(--color-primary-dark) !important;
}

.content1 {
  padding: 15px 20px;
  display: none;
  overflow: hidden;
  background-color: var(--bg-light);
  font-size: 15px;
  line-height: 1.8;
}

/* Nested list indentation for content panels */
.content1 ul ul {
  padding-left: 30px; /* indent sub-bullets */
  margin-top: 6px;
}
.content1 ul ul ul {
  padding-left: 30px; /* additional indent for deeper nesting */
}
.content1 ul ul li {
  margin-bottom: 6px;
}

/* =============================
   LINKS & ANCHORS
   ============================= */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover,
a:focus {
  color: var(--color-primary-dark);
  outline: none;
}

.link-set-2 {
  color: var(--color-white);
  text-decoration: none;
  transition: all var(--transition-base);
}

.link-set-2:hover,
.link-set-2:focus {
  color: var(--color-accent);
  text-decoration: none;
  outline: 0;
}

/* =============================
   IMAGES
   ============================= */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-responsive {
  width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

/* Reusable themed check icon for feature lists */
.check-icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  display: inline-block;
}

.check-icon circle {
  fill: var(--color-primary);
}

.check-icon path {
  stroke: var(--color-white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* =============================
   ACCESSIBILITY
   ============================= */
.sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 15px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-main:focus {
  top: 0;
}

/* =============================
   RESPONSIVE DESIGN
   ============================= */
@media (max-width: 1200px) {
  .about-box td {
    width: 220px;
    height: 220px;
    padding: 20px 4px;
    font-size: 1rem;
  }
  
  .about-box h3 {
    font-size: 18px;
  }
  
  .about-box p {
    font-size: 15px;
  }
  
  .howitworks-img {
    max-width: 200px;
  }
}

@media (max-width: 992px) {
  .about-img {
    max-width: 80px;
  }
  
  .about-box td {
    width: 100%;
    height: auto;
    display: block;
    padding: 20px 10px;
    font-size: 0.95rem;
  }
  
  .about-box h3 {
    font-size: 16px;
  }
  
  .about-box p {
    font-size: 14px;
  }
  
  .howitworks-cell,
  .contact-cell {
    width: 100%;
    display: block;
    padding: 15px;
  }
  
  .contact-table p {
    font-size: 16px !important;
  }
  
  .contact-table a {
    font-size: 15px !important;
  }
  
  .howitworks-img {
    width: 100%;
    max-width: 200px;
    height: auto;
  }

  /* Stack icon above text on smaller viewports */
  .how-steps li {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .center-links a {
    font-size: 14px !important;
  }
  
  .toggle-title {
    font-size: 16px !important;
    padding: 12px 15px !important;
  }
  
  .toggle-content {
    font-size: 14px !important;
    padding: 15px;
  }
}

@media (max-width: 768px) {
  /* Hide banner images on mobile devices */
  .section-full,
  .section.section-full {
    display: none !important;
  }
  
  /* Reduce font sizes for better mobile readability */
  h1, .font-size-xx-large {
    font-size: 28px !important;
  }
  
  h2, .font-size-x-large {
    font-size: 24px !important;
  }
  
  h3, .font-size-larger {
    font-size: 20px !important;
  }
  
  .font-size-large, .font-size-large a {
    font-size: 16px !important;
  }
  
  .font-size-medium, .font-size-medium a {
    font-size: 14px !important;
  }
  
  .font-size-small, .font-size-small a {
    font-size: 12px !important;
  }
  
  /* Adjust body text */
  body {
    font-size: 14px;
    line-height: 1.6;
  }
  
  /* Adjust paragraph spacing */
  p {
    margin-bottom: 1rem;
  }
  
  /* Reduce contact box sizes on mobile */
  .contact-table td {
    padding: 15px 10px !important;
  }
  
  .contact-icon {
    width: 60px !important;
    height: 60px !important;
  }
  
  .contact-table p {
    font-size: 14px !important;
    margin-bottom: 8px;
  }
  
  .contact-table a {
    font-size: 13px !important;
  }
  
  /* Reduce map height on tablets */
  .map-container {
    height: 350px;
  }
}

@media (max-width: 576px) {
  .about-box td {
    padding: 15px 5px;
    font-size: 0.85rem;
  }
  
  .about-box h3 {
    font-size: 14px;
  }
  
  .about-box p {
    font-size: 13px;
  }
  
  .btn,
  .themesflat-button {
    padding: 10px 20px;
    font-size: 12px;
  }
  
  .has-padding-36 {
    padding: 12px 24px;
  }
  
  .py-25 {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }
  
  .pb-100 {
    padding-bottom: 50px !important;
  }
  
  .section {
    padding: 30px 0;
  }
  
  .toggle-title {
    font-size: 14px !important;
    padding: 10px 12px !important;
  }
  
  /* Further reduce font sizes on very small screens */
  h1, .font-size-xx-large {
    font-size: 24px !important;
  }
  
  h2, .font-size-x-large {
    font-size: 20px !important;
  }
  
  h3, .font-size-larger {
    font-size: 18px !important;
  }
  
  .font-size-large, .font-size-large a {
    font-size: 15px !important;
  }
  
  /* Further reduce contact box sizes on small phones */
  .contact-table td {
    padding: 10px 5px !important;
    min-height: auto !important;
  }
  
  .contact-icon {
    width: 50px !important;
    height: 50px !important;
  }
  
  .contact-table h3 {
    margin-bottom: 5px;
  }
  
  .contact-table p {
    font-size: 13px !important;
    margin-bottom: 5px;
  }
  
  .contact-table a {
    font-size: 12px !important;
    word-break: break-word;
  }
  
  .branding-address {
    font-size: 11px !important;
    line-height: 1.4;
  }

  /* Hide the contact page illustration on very small screens to save
     vertical space and prevent layout issues */
  figure img[src$="ContactLady.jpg"],
  img[src$="ContactLady.jpg"] {
    display: none !important;
  }

  /* Collapse the image column so the text column can use full width */
  .contact-image-col {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Ensure the text column expands to full width when image column hidden */
  .contact-text-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  /* Reduce map height on mobile phones */
  .map-container {
    height: 300px;
    border-radius: 5px;
  }

  /* When CALL US is hidden, float the Apply Now button to the left */
  #top-bar .top-bar-nav {
    text-align: left !important;
  }

  #top-bar .top-bar-nav .inner {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
  }

  #top-bar #cphTerms_lnkApplyNow {
    float: left !important;
    margin-right: 0.5rem !important;
  }
  /* Footer: reduce font sizes on very small viewports for improved balance
     and to prevent long legal text from dominating the screen. */
  .footer,
  .footer-legal,
  .footer-bottom,
  .footer .footer-legal p,
  .footer .footer-bottom p,
  .footer .footer-bottom .footer-copyright,
  .footer .footer-branding h3,
  .footer a,
  .footer .footer-link,
  .footer .center-links a,
  .branding-address {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  /* Make the large brand title in footer slightly smaller on tiny screens */
  .footer .footer-branding h3 {
    font-size: 18px !important;
    margin-bottom: 6px !important;
  }

  /* Legal copy slightly smaller to reduce wrapping */
  .footer .footer-legal p,
  .footer .footer-legal strong {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  /* Footer links and copyright smaller */
  .footer a,
  .footer .footer-link,
  .footer .center-links a {
    font-size: 12px !important;
  }

  .footer .footer-bottom .footer-copyright {
    font-size: 12px !important;
  }

}

/* Slider caption adjustments for very small viewports */
@media (max-width: 576px) {
  /* Slider captions: reduce font sizes on very small viewports so the
     hero text doesn't dominate the screen or overflow. The slider uses
     many inline data attributes, so force sizes with !important. */
  .rev_slider_wrapper .tp-caption {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  /* Ensure captions have internal horizontal padding so text doesn't
     sit flush against very small screens. Use box-sizing so padding is
     included in width calculations. */
  .rev_slider_wrapper .tp-caption,
  .rev_slider_wrapper .tp-resizeme {
    box-sizing: border-box !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: calc(100% - 32px) !important;
  }

  /* Main large headline inside the slider */
  .rev_slider_wrapper .tp-caption.font-weight-500,
  .rev_slider_wrapper .tp-caption.text-white.font-weight-500 {
    font-size: 22px !important;
    line-height: 1.15 !important;
  }

  /* Secondary slider text */
  .rev_slider_wrapper .tp-caption.font-weight-300,
  .rev_slider_wrapper .tp-caption.text-white.font-weight-300 {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  /* Small helper caption color class */
  .rev_slider_wrapper .tp-caption.text-6e6 {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }
  /* Add a little more spacing specifically for the first slide so the
     text doesn't feel cramped at the very top on small phones. */
  #rev-slider2 ul > li:first-child .tp-caption {
    margin-top: 14px !important;
    margin-bottom: 18px !important;
  }

  /* Extra spacing for the main large headline on the first slide */
  #rev-slider2 ul > li:first-child .tp-caption.text-white.font-weight-500 {
    margin-top: 20px !important;
    margin-bottom: 28px !important;
    margin:20px;
  }

}

/* =============================
   CONTACT & MAP STYLES
   ============================= */
.map-container {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-top: 20px;
}

.map-container iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

/* =============================
   UTILITIES & HELPERS
   ============================= */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.divider {
  height: 1px;
  background-color: var(--color-gray-light);
  margin: 30px 0;
}

.rounded {
  border-radius: var(--radius-md) !important;
}

.rounded-lg {
  border-radius: var(--radius-lg) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.position-relative {
  position: relative !important;
}

.align-top {
  vertical-align: top !important;
}

/* Display utilities */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-inline-block {
  display: inline-block !important;
}

/* =============================
   PRINT STYLES
   ============================= */
@media print {
  .no-print,
  .footer,
  .header,
  #site-header-wrap,
  button,
  .btn {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  a {
    text-decoration: underline;
  }
}

.state-faq-toggle-title.background-themecolor2 { cursor: pointer; color: var(--color-white) !important; }
.state-faq-toggle-title.background-themecolor2:hover { background-color: var(--color-primary-light) !important; color: var(--color-white) !important; }
.state-faq-toggle-title.background-themecolor2.active { color: var(--color-white) !important; }
