/* =========================================
   1. VARIABLES & SETUP
   ========================================= */

:root {
  /* -- Palette -- */
  --acf-bg-primary: #FFF7EE;
  --acf-bg-secondary: #F2FBDD;
  --acf-bg-accent: #F3F3F3;
   
  /* -- Spacing System -- */
  --space-xs: 5px;
  --space-sm: 10px;
  --space-md: 20px;
  --space-lg: 30px;
  --space-xl: 40px;
 
  /* -- Component Spacing -- */
  --button-spacing: 20px;
  --list-item-spacing: 5px;
  --section-spacing: 30px;
 
  /* -- Legacy Padding Vars -- */
  --acf-padding1-top: var(--space-lg);
  --acf-padding1-bottom: var(--space-xl);
  --acf-padding1-sides: var(--space-xs);
  --acf-padding2-top: var(--space-lg);
  --acf-padding2-bottom: var(--space-md);
  --acf-padding2-sides: var(--space-xs);
 
  /* -- Highlight Colors -- */
  --highlight-cream: #FFF7EE;
  --highlight-cream-transparent: rgba(255, 247, 238, 0);
  --highlight-green: #F2FBDD;
  --highlight-green-transparent: rgba(242, 251, 221, 0);
}

/* Universal Reset */
* {
  box-sizing: border-box !important;
}

/* Utility Helpers */
.text-center { text-align: center !important; }
.right-margin-desktop { margin-right: 40%; }
.hover-white { transition: background-color 0.2s ease; }
.hover-white:hover { background-color: white; }
p:empty { display: none; }
.home p#breadcrumbs { display: none; }

/* Background Utilities */
div.acf-bg-row-primary { background-color: var(--acf-bg-primary) !important; }
div.acf-bg-row-secondary { background-color: var(--acf-bg-secondary) !important; }
div.acf-bg-row-accent { background-color: var(--acf-bg-accent) !important; }
div.acf-padding { padding: 50px 0px 40px 0px !important; }
div.acf-padding2 { padding: var(--acf-padding2-top) var(--acf-padding2-sides) var(--acf-padding2-bottom) var(--acf-padding2-sides) !important; }


/* =========================================
   2. TYPOGRAPHY
   ========================================= */

/* Headings & Text */
h3 { margin-bottom: var(--space-sm) !important; }

.content-box p { margin-bottom: 15px; }

/* Product Straps - Inherit from Theme */
.product-strap { font-family: inherit; font-size: 19px; font-weight: 700; }
.product-strap-small { font-size: 13px; font-weight: normal; }
.product-strap-light { font-family: inherit !important; font-size: 17px; font-weight: 400 !important; }

mark { background-color: #D9F3A3; color: black; }
.highlight-text-green { text-decoration: none; box-shadow: inset 0 -1.5em 0 aliceblue; color: inherit; }

.styled-heading { position: relative; display: inline-block; color: #333333; }
.styled-heading::after { content: ''; position: absolute; left: 0; bottom: -0.3em; width: 70px; height: 3px; background-color: #333333; }

/* Modern Blockquote */
.modern-blockquote {
  position: relative;
  border-left: 5px solid #5A3A6D;
  background: #ffffff;
  color: #444;
  padding: 1em 1.5em 1em 4em;
  margin: 1.5em 0;
  font-style: italic;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(122, 176, 91, 0.08);
}
.modern-blockquote::before {
  content: "❝";
  font-size: 3.3em;
  color: #5A3A6D;
  position: absolute;
  left: .2em;
  top: -0.15em;
  font-weight: bold;
  text-shadow: 1px 2px 4px #dad0e7, 0 0 0 #fff;
  font-style: normal;
}

/* Gradient Highlighted Text */
.highlighted-text { position: relative; display: inline; padding: 0px; }
.highlighted-text:before {
  content: "";
  position: absolute;
  top: 0; left: -2px; right: -2px; bottom: 0;
  z-index: -1;
  background: linear-gradient(to bottom,
      var(--highlight-color-transparent, rgba(240, 248, 255, 0)),
      color-mix(in srgb, var(--highlight-color, #F0F8FF) 20%, transparent) 10%,
      var(--highlight-color, #F0F8FF) 40%,
      var(--highlight-color, #F0F8FF) 60%,
      color-mix(in srgb, var(--highlight-color, #F0F8FF) 20%, transparent) 90%,
      var(--highlight-color-transparent, rgba(240, 248, 255, 0))
    ),
    linear-gradient(to right,
      var(--highlight-color-transparent, rgba(240, 248, 255, 0)),
      color-mix(in srgb, var(--highlight-color, #F0F8FF) 10%, transparent) 2%,
      color-mix(in srgb, var(--highlight-color, #F0F8FF) 20%, transparent) 5%,
      var(--highlight-color, #F0F8FF) 25%,
      var(--highlight-color, #F0F8FF) 75%,
      color-mix(in srgb, var(--highlight-color, #F0F8FF) 20%, transparent) 95%,
      color-mix(in srgb, var(--highlight-color, #F0F8FF) 10%, transparent) 98%,
      var(--highlight-color-transparent, rgba(240, 248, 255, 0))
    );
  background-clip: padding-box;
}
.highlighted-text-cream { --highlight-color: var(--highlight-cream); --highlight-color-transparent: var(--highlight-cream-transparent); }
.highlighted-text-green { --highlight-color: var(--highlight-green); --highlight-color-transparent: var(--highlight-green-transparent); }


/* =========================================
   3. BUTTONS (MATCHING LICENSE PLATE STYLE)
   ========================================= */

/* Standard Buttons Wrapper */
.g-button {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
  margin-top: var(--button-spacing);
  margin-bottom: var(--button-spacing);
}
.g-button:first-of-type { margin-top: var(--space-sm); }
.g-button .fa { padding-right: 12px; transform: rotate(-10deg); font-size: 1.1em; }

/* The "Get Quotes" Button Itself */
.g-button-link {
  /* Match License Plate Colors */
  background-color: #24544C !important;
  color: white !important;
  border: 1px solid #ffffff !important; /* Replaced the white/grey border */
  
  /* Match License Plate Font & Shape */
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  text-transform: none !important;
  border-radius: 10px !important;
  
  /* Size & Spacing */
  padding: 12px 24px !important;
  font-size: 24px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  
  /* Clean up old shadows */
  text-shadow: none !important; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}
.g-button-link:hover {
    background-color: #D9F3A3 !important;
    color: #333 !important;
    transform: scale(1.02) !important; 
    transition: .3s !important; 
}

/* Small Buttons */
.g-button-small {
  display: inline-block;
  position: relative;
  margin-top: 13px;
  margin-bottom: 0px !important;
  padding: 10px 20px 10px 50px !important;
  
  /* Match Style */
  border: 2px solid #ffffff;
  border-radius: 10px;
  background: linear-gradient(to bottom, #8ac831 0%, #7fb72d 100%);
  text-align: center;
  transition: .5s;
}
.g-button-small .fa { position: absolute; top: 8px; left: 12px; font-size: 28px; transform: rotate(-20deg); }

.g-button-small-link {
  color: white !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  text-transform: none !important;
  font-size: 16px;
  line-height: 1.4;
  text-shadow: none;
}
.g-button-small:hover { transform: scale(1.05) !important; transition: .3s !important; }

/* Adjust spacing when button follows list/p */
p + .g-button, ul + .g-button, ol + .g-button { margin-top: 0; }


/* =========================================
   4. LISTS & MARKERS
   ========================================= */

.no-ul { text-decoration: none; }
.no-bullet ul, .no-bullet ol { list-style: none; padding-left: 0; margin-left: 0; }
.list-with-gap { margin-top: var(--space-md) !important; }
.padded-list li { padding: var(--space-sm); }

/* Font Awesome Markers */
.custom-marker > ::marker { color: #88C530; font-size: 1em; content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.custom-marker > li { padding-left: .5em; padding-bottom: .3em; font-weight: bold; }

.custom-marker-2 > ::marker { color: #88C530; font-size: 1em; content: '\f138'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.custom-marker-2 > li { padding-left: .5em; padding-bottom: .3em; }

.custom-marker-3 > ::marker { color: #88C530; font-size: 1em; content: '\f005'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.custom-marker-3 > li { padding-left: .5em; padding-bottom: .3em; }

.custom-marker-light > ::marker { color: #88C530; font-size: 1em; content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: bold; }
.custom-marker-light > li { padding-left: .5em; padding-bottom: .3em; font-weight: 400; }

/* Key Takeaways Box */
.key-takeaways { padding: 0 !important; margin: 0; }
.key-takeaways li { font-size: 16px; list-style: none; position: relative; padding-left: 34px; margin-bottom: var(--space-sm); }
.key-takeaways li::before { content: "\f0c8"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; top: 0; color: #24544C; padding-right: 16px; font-size: 0.6em; }

/* Custom Icon List */
.custom-icon-list { list-style: none; padding: 15px 0; margin: 0; font-weight: bold; }
.custom-icon-list li { position: relative; padding-left: 32px; margin-bottom: var(--space-sm); line-height: 24px; }
.custom-icon-list li:before { font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; top: 50%; transform: translateY(-50%); content: "\f00c"; color: #5eba49; font-size: 20px; }
.custom-icon-list li.icon-clock:before { content: "\f017" !important; color: #5eba49 !important; }
.custom-icon-list a { color: #1e66d6; text-decoration: none; margin: 0 2px; }
.custom-icon-list a:hover { text-decoration: underline; }

/* Colored Bullets */
.green-bullets, .red-bullets, .purple-bullets { padding: 0 !important; list-style: none !important; margin: 0; }
.green-bullets li, .red-bullets li, .purple-bullets li { margin: 0 0 10px 0; position: relative; padding-left: 26px; }
.green-bullets li:before, .red-bullets li:before, .purple-bullets li:before { font-family: 'Font Awesome 5 Free', 'FontAwesome'; content: '\f111'; font-weight: 900; position: absolute; left: 0; top: 0.3em; font-size: 0.8em; }
.green-bullets li:before { color: #24544C; }
.red-bullets li:before { color: #EF444C; }
.purple-bullets li:before { color: #6B21A8; }

/* Header Ticks */
.tick h4::after { font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f058"; color: green; margin-left: 5px; font-size: 0.8em; }


/* =========================================
   5. NAVIGATION & BREADCRUMBS
   ========================================= */

.nav li li { position: relative; line-height: 1.6em; }
.select_page { color: white !important; }
.nav-drop-title-wrap { font-size: 16px; }

#main-header {
  background-image: url(https://www.cleangreencars.co.uk/wp-content/uploads/2017/08/bg-clean-green-cars-1.png);
  background-position: left top;
  background-repeat: repeat-x;
}

/* Mobile Nav Logic */
.mobile_nav::before { content: 'Menu'; vertical-align: top; line-height: 2.2em; color: white; }
.mobile_nav.opened .mobile_menu_bar:before { content: '\4d'; }
.mobile_menu_bar:before { transition: all .4s ease; transform: rotate(0deg); display: block; }
.mobile_nav.opened .mobile_menu_bar::before { transition: all .4s ease; transform: rotate(90deg); display: block; }

/* Kadence Trigger Fix */
#kadence-off-canvas-trigger260250_086b38-f5,
#kadence-off-canvas-trigger260250_086b38-f5:visited,
#kadence-off-canvas-trigger260250_086b38-f5:focus,
#kadence-off-canvas-trigger260250_086b38-f5:active {
  color: #333333 !important;
}

/* Manual Breadcrumbs */
nav.manual-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; padding: 0.4em 0.1em; border-radius: 8px; font-weight: bold; }
nav.manual-breadcrumbs span { display: flex; align-items: center; }
nav.manual-breadcrumbs span:not(:first-child)::before { content: '►'; color: #24544C; font-size: 0.8em; margin: 0 0.75em; }
nav.manual-breadcrumbs a { text-decoration: none; display: block; color: #24544C; transition: background-color 0.2s ease, border-color 0.2s ease; }
nav.manual-breadcrumbs span:first-child a,
nav.manual-breadcrumbs span:not(:first-child):not(.breadcrumb-last) a { background-color: #fcfaf0; border-radius: 1.5em; padding: 0.2em 0.6em; border: 1px solid transparent; }
nav.manual-breadcrumbs span:first-child a { border-radius: 8px; padding: 0.5em; line-height: 0; }
nav.manual-breadcrumbs span:first-child a svg { width: 1.25em; height: 1.25em; }
nav.manual-breadcrumbs .breadcrumb-last { color: #24544C; padding: 0.5em 0; }
nav.manual-breadcrumbs a:hover { background-color: #fff!important; border-color: #24544C!important; }

.yoast-breadcrumbs { font-size: 12px; }
.pagination { clear: both; text-align: center; padding: var(--space-md) 0; }
.pagination a { margin: 0 5px; padding: 5px 10px; border: 1px solid #ddd; text-decoration: none; color: #333; }
.pagination a:hover { background-color: #ddd; }


/* =========================================
   6. MAIN LAYOUT & CONTAINERS
   ========================================= */

/* Content Spacing */
.main-content-area p { line-height: 1.65; margin-bottom: 1.5em; }
.main-content-area h1, .main-content-area h2, .main-content-area h3, .main-content-area h4, .main-content-area h5, .main-content-area h6 { line-height: 1.4; }
.main-content-area h2 { margin-top: 2em; margin-bottom: 0.75em; }
.main-content-area h3 { margin-top: 1.75em; margin-bottom: 0.75em; }
.main-content-area h4 { margin-top: 1.5em; margin-bottom: 0.5em; }
.main-content-area ul, .main-content-area ol { margin-bottom: 1.5em; line-height: 1.65; }
.main-content-area ul li, .main-content-area ol li { margin-bottom: 0.75em; }
.main-content-area ul ul, .main-content-area ol ol, .main-content-area ul ol, .main-content-area ol ul { margin-top: 0.75em; }
.main-content-area > *:first-child { margin-top: 0 !important; }
.main-content-area > *:last-child { margin-bottom: 0 !important; }

/* Info Box */
.info-box {
  border: 0px solid #1a73e8;
  background-color: #F0F8FF;
  border-radius: 5px;
  padding: var(--space-md);
  display: flex;
  align-items: flex-start;
  margin: var(--space-sm) 0;
  position: relative;
  padding-left: 60px;
}
.info-box .info-content { display: flex; flex-direction: column; }
.info-box::before { content: "\f0eb"; font-family: "Font Awesome 5 Free"; font-weight: 400; position: absolute; left: 14px; top: 30px; font-size: 48px; color: #808080; }

/* Flex Menus & Containers */
.cont-menu { 
    font-family: inherit; 
    font-weight: 700;
    display: flex !important; 
    flex-wrap: wrap !important; 
    list-style-type: none !important; 
    margin-left: 19px !important; 
    padding: 0px !important; 
}
.cont-menu li { flex: 0 0 24% !important; border: 1px solid rgb(221,221,221) !important; border-radius: 6px; margin: 4px !important; margin-left: 0px !important; margin-right: 8px !important; padding: 20px !important; min-height: 110px !important; background: white; justify-content: center; }
.cont-menu li:after { content: '\25BA'; color: rgba(0,91,199,0.51); font-size: 1.6em; position: absolute; bottom: 0; left: 0; right: 0; height: 25px; text-align: center; }

.cont-menu-2 { display: flex !important; flex-wrap: wrap !important; list-style-type: none !important; }
.cont-menu-2 li { flex: 0 0 31% !important; justify-content: center; }

.cont-menu2 { 
    font-family: inherit;
    font-weight: 700;
    display: flex !important; 
    flex-wrap: wrap !important; 
    list-style-type: none !important; 
    margin-left: 5px !important; 
    padding: 0px !important; 
}
.cont-menu2 li { font-size: 19px; flex: 0 0 24% !important; border: 1px solid rgb(221,221,221) !important; border-radius: 6px; margin: 4px !important; margin-left: 0px !important; margin-right: 8px !important; padding: 20px !important; min-height: 110px !important; background: white; text-align: center; line-height: 1.3em !important; position: relative; }
.cont-menu2 li:after { content: "\25BA"; color: rgba(0,91,199,0.51); font-size: 1.25em !important; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); height: 29px; text-align: center; }

.flex-container { 
    font-family: inherit; 
    font-weight: 700;
    font-size: 17px; 
    display: grid !important; 
    grid-template-columns: repeat(4, 1fr) !important; 
    gap: 5px !important; 
    padding: 0 !important; 
    list-style-type: none !important; 
}
.flex-container li { box-sizing: border-box !important; margin: 5px !important; line-height: 1.8em !important; }
.flex-container li:hover { text-decoration: underline !important; text-decoration-color: #005ab5 !important; }
.flex-container ul { list-style-type: none !important; margin: 0 !important; padding: 0 !important; }
.flex-container ul li { margin-bottom: 2px !important; }
.menu-text-padding { padding-right: 20px !important; }

/* Image Helpers */
.logo-carousel-pro .sp-lc-logo img { margin: 0 auto; height: 45px; width: auto !important; display: block; }
.sp-lcp-carousel-wrapper { position: relative; margin-bottom: 10px !important; }
.icon-overlay { position: relative; display: inline-block; }
.icon-overlay img { display: block; width: 100%; height: auto; }
.icon-overlay::after { content: "\f030"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; top: 10px; right: 10px; font-size: 24px; color: white; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); pointer-events: none; }
.circle-image-padded { padding: 2px; border-radius: 50%; background-color: #f4f4f4; display: inline-block; }
.circle-image-padded img { width: 65px; height: 65px; border-radius: 50%; object-fit: cover; display: block; }


/* =========================================
   7. TABLES
   ========================================= */

/* Type 1: Responsive */
.table-responsive-2 { border: 1px solid #b3adad; border-collapse: collapse; padding: var(--space-xs); margin-bottom: var(--section-spacing); margin-top: var(--section-spacing); table-layout: fixed; width: 100%; word-wrap: break-word; }
.table-responsive-2 th { border: 1px solid #b3adad; padding: 5px; background: #f0f0f0; color: #313030; }
.table-responsive-2 td { border: 1px solid #b3adad; text-align: center; padding: 5px; background: #ffffff; color: #313030; }

/* Type 2: Flex */
.table-flex table { width: 100% !important; }
.table-flex tr { display: flex; flex-direction: row; flex-wrap: wrap; }
.table-flex tr:nth-child(even) { background-color: #f2f2f2; }
.table-flex th, .table-flex td { flex-basis: 0; flex-grow: 1; padding: 0.5rem; border: 1px solid #ccc; box-sizing: border-box; }
.table-flex th { flex-basis: 0; flex-grow: 1; text-align: left; }

/* Type 3: Modern Minimal */
.modern-table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.modern-table thead { background: #f8f9fa; border-bottom: 2px solid #dee2e6; }
.modern-table th { padding: 12px; text-align: left; font-weight: 600; color: #495057; text-transform: uppercase; font-size: 16px; letter-spacing: 0.5px; position: sticky; top: 0; z-index: 1; background: #f8f9fa; }
.modern-table td { padding: 12px; border-bottom: 1px solid #e9ecef; color: #212529; word-break: break-word; white-space: normal; }
.modern-table tbody tr:last-child td { border-bottom: none; }
.modern-table tbody tr:hover { background-color: #f8f9fa; transition: background-color 0.2s ease; }
.modern-table.striped tbody tr:nth-child(even) { background-color: #f8f9fa50; }
.modern-table.compact th, .modern-table.compact td { padding: 6px 8px; }
.modern-table.borderless td { border-bottom: none; }


/* =========================================
   8. SPECIAL MODULES
   ========================================= */

/* Author Box */
.author-box { display: flex; align-items: flex-start; font-family: inherit; margin: 10px 0; border: 0px solid #ccc; border-radius: 5px; padding: 10px; }
.author-box img { width: 100px; height: 100px; object-fit: cover; margin-right: 10px; border-radius: 50%; }
.author-box-info { display: flex; flex-direction: column; align-items: flex-start; }
.written-by, .author-title, .author-box-info h3 { font-size: 0.9em; line-height: 1; }
.author-box-info h3 { font-size: 1.2em; font-weight: normal; }
.additional-info { display: flex; align-items: center; }
.additional-info p { font-size: 0.7em; line-height: 1; }
.time-to-read { display: flex; align-items: flex-start; }
.time-to-read i { align-self: flex-start; margin-right: 0px; }
.time-to-read p { margin-left: 5px; padding-right: 5px; }
.time-to-read::before { content: "|"; margin-right: 5px; margin-left: 5px; font-size: 0.8em; line-height: 1; }
.more-about-author { font-size: 0.8em; line-height: 1.2; }

/* Expert Views */
.expert-info { font-size: 14px !important; }
.expert-view-item { clear: both; overflow: hidden; margin-bottom: var(--space-md); padding-top: var(--space-md); }
.expert-view-thumbnail { float: left; margin-right: var(--space-md); width: auto; }
.expert-view-content { overflow: hidden; font-style: italic; }
.expert-view-content h3 { font-style: normal; }
.expert-views-main-title { font-size: 1.8em; font-weight: bold; margin-bottom: 1em; color: #5A3A6D; }

.expert-view-layout-pullout .expert-view-pullout-item { position: relative; border-left: 10px solid #5A3A6D; padding-left: 20px; margin-bottom: 2.5em; }
.expert-view-layout-pullout .expert-view-pullout-content .expert-view-title { font-size: 1.2em; margin-top: 0; margin-bottom: 0.5em; line-height: 1.3; }
.expert-view-layout-pullout .expert-view-pullout-content .expert-view-title a { color: #333333; text-decoration: none; }
.expert-view-layout-pullout .expert-view-pullout-content .expert-view-title a:hover { text-decoration: underline; }
.expert-view-layout-pullout .expert-view-excerpt { font-size: 1em; line-height: 1.6; }

.expert-view-layout-list .expert-view-item { display: flex; margin-bottom: 1.5em; gap: 15px; }
.expert-view-layout-list .expert-view-thumbnail { width: 100px; height: 100px; object-fit: cover; flex-shrink: 0; }
.expert-view-layout-list .expert-view-content { flex-grow: 1; }
.expert-view-layout-list .expert-view-content .expert-view-title { margin-top: 0; font-size: 1.5em; font-weight: bold; }

/* Expert Accordion Groups */
.expert-view-group-title-default { font-size: 1.3em; font-weight: normal; color: #5A3A6D; margin-top: 2em; margin-bottom: 1em; padding-bottom: 0.5em; border-bottom: 2px solid #eee; }
.expert-view-grouped-container .expert-view-group-title-default:first-child { margin-top: 0; }
.expert-view-bullet-list { list-style-type: disc; padding-left: 20px; margin-bottom: 2em; }
.expert-view-bullet-list li { margin-bottom: 0.5em; }
.expert-view-bullet-list li a { color: #333333; text-decoration: none; }
.expert-view-bullet-list li a:hover { text-decoration: underline; color: #5A3A6D; }
.expert-view-group { border-bottom: 2px solid #eee; }
.expert-view-group:first-child { border-top: 2px solid #eee; }
.expert-view-group-title { margin: 0; font-size: 1.3em; font-weight: normal; }
.expert-view-group-toggle { display: flex; justify-content: flex-start; align-items: center; width: 100%; padding: 1em 0; margin: 0; background: none; border: none; cursor: pointer; text-align: left; color: #5A3A6D; font: inherit; }
.expert-view-group-icon { flex-shrink: 0; margin-right: 0.75em; width: 0.8em; height: 0.8em; border-style: solid; border-color: #5A3A6D; border-width: 0 0.15em 0.15em 0; transform: rotate(45deg); transition: transform 0.2s ease-in-out; }
.expert-view-group.is-open .expert-view-group-icon { transform: rotate(-135deg); margin-top: 0; }
.expert-view-group-content { display: none; padding-bottom: 1em; padding-left: 1.55em; }

/* Expert Loaders */
li.expert-view-group-show-more { list-style-type: none; margin-top: 1em; margin-left: -20px; }
button.expert-view-group-more-btn, button.expert-views-show-more { background: none; border: none; padding: 0; cursor: pointer; color: #5A3A6D; font-size: 0.9em; font-weight: bold; display: inline-flex; align-items: center; }
button.expert-view-group-more-btn:hover, button.expert-views-show-more:hover { text-decoration: underline; color: #333; }
.evg-more-icon { font-weight: bold; font-size: 1.2em; line-height: 1; margin-right: 0.3em; color: #5A3A6D; }
button.expert-view-group-more-btn:hover .evg-more-icon, button.expert-views-show-more:hover .evg-more-icon { color: #333; }
.evg-more-remaining { color: #777; font-weight: normal; margin-left: 0.25em; }
.expert-views-loader { text-align: left; margin-top: 1.5em; }
button.expert-views-show-more .evg-more-icon { transition: transform 0.2s; }
button.expert-views-show-more.evg-loading .evg-more-icon { animation: evg-spin 1s linear infinite; border-width: 0.15em; border-top-color: transparent; border-radius: 50%; width: 0.8em; height: 0.8em; }
button.expert-views-show-more.evg-loading .evg-more-text { margin-left: 0.5em; }
@keyframes evg-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Last Modified Expert Block */
.last-modified-expert-flex { display: flex !important; align-items: center; gap: 18px; padding: 10px 18px 10px 10px; border-radius: 8px; margin-bottom: 1em; font-size: 15px; width: 100%; }
.last-modified-expert-image { flex: 0 0 auto; margin: 0; padding: 0; display: flex; align-items: flex-start; flex-shrink: 0; }
.last-modified-expert-info { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; padding-top: 0; min-width: 0; white-space: pre-line; justify-content: center; }
.expert-row { display: flex; align-items: baseline; margin: 0; padding: 0; line-height: 1.5; white-space: pre-line; }
.expert-image { width: 60px !important; height: 60px !important; object-fit: cover; border-radius: 50px; border: 1px solid #5A3A6D; display: block; margin: 0; }
.post-category-link, .post-category-link:visited { color: #2271b1; text-decoration: underline; font-weight: 500; }
.post-category-link:hover { color: #135e96; }
.read-time { display: block; margin-top: 0; font-size: 1em !important; }
.last-modified-expert-info strong { font-weight: 600; }
.last-modified-expert-info > p { margin: 0; line-height: 1.5; }

/* Team Grid */
.team-socials-simple { display: flex; flex-wrap: wrap; gap: 15px; }
.team-socials-simple a { text-decoration: none; font-size: 32px; transition: transform 0.2s ease-in-out; }
.team-socials-simple a:hover { transform: scale(1.1); }
.team-socials-simple .ts-link-facebook i { color: #1877F2; }
.team-socials-simple .ts-link-twitter i { color: #000000; }
.team-socials-simple .ts-link-linkedin i { color: #0A66C2; }
.team-socials-simple .ts-link-instagram i { color: #E4405F; }
.team-socials-simple .ts-link-youtube i { color: #FF0000; }
.team-socials-simple .ts-link-email i { color: #777; }

.team-grid-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 45px; margin-top: 20px; }
.team-card { border: 1px solid #eee; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); overflow: hidden; text-align: left; background: #fff; transition: transform 0.2s ease, box-shadow 0.2s ease; height: 100%; display: flex; flex-direction: column; }
.team-card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
.team-card-image-link { display: block; border-bottom: 1px solid #eee; flex-shrink: 0; }
.team-card-image-link img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.team-card-content { padding: 20px; flex-grow: 1; }
.team-card-name { font-size: 1.5rem; font-weight: normal; margin: 0 0 5px; line-height: 1.2; color: #5A3A6D; }
.team-card-name a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.team-card-name a:hover { color: #734a8a; text-decoration: underline; }
.team-card-title { font-size: 1rem; color: #666; margin: 0 0 5px; }
.team-card-summary { font-size: 0.95rem; color: #666; line-height: 1.5; margin-bottom: 15px; font-style: italic; }
.team-card-summary p { margin: 0; }
.team-card-socials { padding: 20px; border-top: 1px solid #f0f0f0; flex-shrink: 0; }
.team-card-socials .team-socials-simple { justify-content: flex-start; gap: 12px; }
.team-card-socials .team-socials-simple a { font-size: 28px; }

/* =========================================
   9. FORMS & QUOTES (Button Formatting Removed)
   ========================================= */

/* Quote Block */
.quote-block { padding: 0px; --heading-font: inherit; --body-font: inherit; --button-font: inherit; }
.quote-block h2 { font-size: 2.2rem; line-height: 1.3; color: #333333; }
.quote-block .flexform { display: flex; gap: 15px; margin-bottom: 20px; }
.quote-block input[type="text"] { flex: 1; padding: 12px 15px; font-size: 1.1rem; border: 2px solid #e1e1e1; border-radius: 4px; transition: border-color 0.3s ease; }
.quote-block input[type="text"]:focus { border-color: #4a90e2; outline: none; }
.quote-block button { background-color: #ffffff; color: #1e3a8a; padding: 12px 25px; border: 2px solid #1e3a8a; font-size: 1.1rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.quote-block button:hover { background-color: #1e3a8a; color: white; box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2); }
.quote-block button.purple { color: #5b21b6; border-color: #5b21b6; }
.quote-block button.purple:hover { background-color: #5b21b6; color: white; box-shadow: 0 2px 4px rgba(91, 33, 182, 0.2); }
.quote-block button.forest { color: #166534; border-color: #166534; }
.quote-block button.forest:hover { background-color: #166534; color: white; box-shadow: 0 2px 4px rgba(22, 101, 52, 0.2); }
.quote-block button.wine { color: #9f1239; border-color: #9f1239; }
.quote-block button.wine:hover { background-color: #9f1239; color: white; box-shadow: 0 2px 4px rgba(159, 18, 57, 0.2); }
.quote-block button.bronze { color: #92400e; border-color: #92400e; }
.quote-block button.bronze:hover { background-color: #92400e; color: white; box-shadow: 0 2px 4px rgba(146, 64, 14, 0.2); }
.quote-block .fa { font-size: 1.2rem; }
.quote-block .product-strap-small { color: #666666; margin-top: 10px; line-height: 1.4; }
.quote-block .product-strap-small a { text-decoration: none; }
.quote-block .product-strap-small a:hover { text-decoration: underline; }

.quote-container { background-color: #ffb6c1; border-radius: 25px; padding: 40px 20px; text-align: center; max-width: 800px; margin: 0 auto; }
.quote-container h1 { color: #333; font-size: 32px; }

/* General Form Groups */
.form-group { display: flex; gap: 15px; justify-content: center; margin-bottom: 20px; }
.form-group input { padding: 12px 20px; font-size: 18px; border: none; border-radius: 5px; width: 300px; }
.form-group button { background-color: #6cb33f; color: white; padding: 12px 30px; border: none; font-size: 18px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.help-text { color: #666; font-size: 14px; }
.help-text a { color: #0066cc; text-decoration: none; }

/* Flexform Utility - Formatted Removed */
.flexform, .flexform-2 { display: flex !important; flex-flow: row wrap !important; align-items: center !important; box-sizing: border-box !important; }
.flexform label, .flexform-2 label { margin: 5px 10px 5px 0 !important; }
.flexform input, .flexform-2 input,
.flexform select, .flexform-2 select { margin: 5px 10px 5px 0 !important; padding: 10px !important; font-size: 22px !important; }
.flexform button, .flexform-2 button { 
    padding: 9px 14px !important; 
    font-size: 24px !important; 
    background-color: #24544C !important; 
    border: 1px solid #ddd !important; 
    color: white !important; 
    cursor: pointer !important; 
    
    /* Formatting removed to allow global overrides */
}
.flexform button:hover, .flexform-2 button:hover { background-color: #457f21 !important; }
.flexform input::placeholder, .flexform textarea::placeholder,
.flexform-2 input::placeholder, .flexform-2 textarea::placeholder { color: #999999 !important; opacity: 1 !important; font-size: 22px !important; }


/* =========================================
   10. TOC & ACCORDION
   ========================================= */

/* Table of Contents */
.toc-container { padding: 20px 0; padding-left: 0; padding-right: 0; }
ul.toc { list-style-type: none; padding: 0; margin: 0; margin-bottom: 20px; }
ul.toc li { margin-bottom: 10px; position: relative; padding-bottom: 10px; border-bottom: 1px solid #ddd; width: 100%; }
ul.toc li a { color: #333; text-decoration: none; font-size: 16px; line-height: 1.5; display: inline-block; width: 100%; }
ul.toc li a:hover { text-decoration: underline; }
ul.toc li:nth-of-type(n+4) { display: none; }
ul.toc .jump { position: absolute; right: 0; bottom: 10px; font-size: 14px; text-align: right; color: #65BB32; }
ul.toc .jump:hover { text-decoration: underline; }
ul.toc .fa-arrow-down { margin-left: 5px; }
.toc-toggle .show-less { display: none; }
.toc-toggle { cursor: pointer; color: #65BB32; text-align: center; text-transform: uppercase; margin-top: 0px; }
.toc-toggle span { font-weight: bold; }
.toc-container .toc-item a { display: flex; justify-content: space-between; align-items: center; }
.toc-container .toc-item a span { white-space: nowrap; }
.toc-container .toc-item a .title { flex-grow: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80%; }
.fa-angle-down, .fa-angle-up { font-size: 20px; vertical-align: bottom; }

/* AMP Accordion */
amp-accordion h4.question { font-size: 19.5px !important; background-color: #F4F4F4; padding: 10px !important; border: none; line-height: 1.6em !important; color: #666666 !important; }
amp-accordion div.answer { padding: var(--mrkfaq-accordion-answer-padding); font-size: 15px !important; background-color: var(--mrkfaq-accordion-answer-font-bg-color); color: var(--mrkfaq-accordion-answer-font-color); line-height: 1.8em !important; }
amp-accordion section { border-width: 1px !important; border-color: #f4f4f4 !important; }


/* =========================================
   11. MEDIA QUERIES (Ordered Large -> Small)
   ========================================= */

/* Desktop/Large Tablet specific */
@media (min-width: 1026px) {
  .flexform select { width: 280px !important; }
}

@media (max-width: 1025px) {
  .g-button { flex-direction: column !important; align-items: stretch !important; }
  .flexform { flex-direction: column !important; align-items: stretch !important; }
  .flexform input { margin: 10px 0 !important; }
  .cont-menu-2 li { flex: 0 0 46% !important; }
  div.acf-padding { padding: 30px 0px 30px 0px !important; }
  .right-margin-desktop { margin-right: 0; }
}

@media (max-width: 980px) {
  .cont-menu li, .cont-menu2 li { flex: 0 0 24% !important; }
}

@media (max-width: 768px) {
  /* Menus & Grid */
  .cont-menu li, .cont-menu2 li { flex: 0 0 31% !important; }
  .table-flex td { font-size: 0.8rem; }
  div.acf-padding { padding: 30px 0px 30px 0px !important; }

  /* Forms & Quotes */
  .quote-block { padding: 0px; }
  .quote-block .flexform { flex-direction: column; gap: 10px; }
  .quote-block button { width: 100%; justify-content: center; }
   
  /* Mobile Search */
  div.asl_m .probox .proinput { margin: 10px 0 0 0; }
}

/* Mobile Large */
@media (max-width: 600px) {
  .flex-container { grid-template-columns: repeat(2, 1fr) !important; }
  .flex-container li { margin: 5px !important; }
  .info-box::before { display: none; }
  .info-box { padding-left: 20px; }
  .expert-view-thumbnail { float: none; margin-right: 0; display: block; margin-bottom: 15px; width: 100%; }
  .form-group { flex-direction: column; align-items: center; }
  .form-group input, .form-group button { width: 100%; max-width: 300px; }
   
  /* Mobile Table */
  .modern-table { font-size: 11px; border-radius: 6px; display: block; }
  .modern-table th, .modern-table td { padding: 6px 8px; font-size: 11px; white-space: normal; }
  .modern-table th { letter-spacing: 0.3px; }
   
  /* Blockquote */
  .modern-blockquote::before { top: 0.0em; }
}

/* Mobile Small */
@media (max-width: 480px) {
  .custom-icon-list li { padding-left: 28px; }
  .custom-icon-list li:before { font-size: 18px; }
  .et-box-content { padding: 27px 27px 17px 27px !important; } /* Originally max-width 479px */
}

@media (max-width: 450px) {
  .cont-menu-2 li { flex: 0 0 96% !important; }
}

@media (max-width: 400px) {
  .cont-menu li, .cont-menu2 li { flex: 0 0 46% !important; }
  .cont-menu li:after { font-size: 1.5em; }
}