/* =========================================
   1. CONTENT BOXES & FLEX MENUS
   ========================================= */

/* Info Box */
.info-box {
  border: 0px solid #1a73e8;
  background-color: #F0F8FF;
  border-radius: 10px; /* Softened corners */
  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 (Updated for Nunito) */
.cont-menu {
  font-family: inherit; /* Uses Nunito */
  font-weight: 700; /* Bold for visibility */
  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: 8px; 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; /* Uses Nunito */
  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: 8px; 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; /* Uses Nunito */
  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 Utilities */
.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; }


/* =========================================
   2. AUTHOR & EXPERT VIEWS
   ========================================= */

.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-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 View Layouts */
.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 Groups & Accordion */
.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-view-group-content .expert-view-bullet-list { margin-bottom: 0; padding-left: 20px; }

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 View Loading */
.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; }


/* =========================================
   3. TEAM
   ========================================= */

.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; }


/* =========================================
   4. QUOTE BLOCKS & FORMS
   ========================================= */

.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: 10px; transition: border-color 0.3s ease; }
.quote-block input[type="text"]:focus { border-color: #4a90e2; outline: none; }

/* Buttons with Soft Corners (Nunito Style) */
.quote-block button {
  background-color: #ffffff; color: #1e3a8a;
  padding: 12px 25px;
  border: 2px solid #1e3a8a;
  border-radius: 10px; /* Softened */
  font-size: 1.1rem;
  font-weight: 700; /* Bold for Nunito */
  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; }

.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: 10px; width: 300px; }
.form-group button { background-color: #6cb33f; color: white; padding: 12px 30px; border: none; border-radius: 10px; 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 Classes (merged) */
.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; }

/* Main CTA Button */
.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;

  /* Fonts & Rounding */
  font-family: inherit, Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
  border-radius: 10px !important;
}
.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; }


/* =========================================
   5. 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; }


/* =========================================
   6. ACCORDION STYLES
   ========================================= */

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; }


/* =========================================
   7. COMPONENT MEDIA QUERIES
   ========================================= */

@media (max-width: 1025px) {
  .flexform { flex-direction: column !important; align-items: stretch !important; }
  .flexform input { margin: 10px 0 !important; }
  .cont-menu-2 li { flex: 0 0 46% !important; }
}

@media (min-width: 1026px) {
  .flexform select { width: 280px !important; }
}

@media (max-width: 980px) {
  .cont-menu li, .cont-menu2 li { flex: 0 0 24% !important; }
}

@media (max-width: 768px) {
  .cont-menu li, .cont-menu2 li { flex: 0 0 31% !important; }
  .quote-block { padding: 0px; }
  .quote-block .flexform { flex-direction: column; gap: 10px; }
  .quote-block button { width: 100%; justify-content: center; }
}

@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; }
}

@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; }
}


/* =========================================
   8. FOOTNOTES & LEGAL
   ========================================= */

/* Generic Footnote Style */
.footnote-ref {
    font-size: 0.4em;           /* 60% of the surrounding text size */
    vertical-align: top;       /* Keeps it high but consistent */
    position: relative;        /* Allows fine-tuning position */
    top: 0.6em;               /* Moves it slightly higher up */
    font-weight: normal;       /* Keeps it thin, even in bold headings */
    line-height: 0;            /* Prevents it from breaking line spacing */
    margin-left: 0px;          /* Small breathing room */
}

/* Tighter spacing for paragraphs inside the legal text block */
.legal-text p {
    margin-top: 0;         /* Remove top gap */
    margin-bottom: 8px;    /* Adjust this number to control the space between paras */
    line-height: 1.4;      /* Keeps the text lines readable */
}

/* Optional: Ensure the container itself doesn't have extra padding */
.legal-text {
    font-size: 12px;       /* Your size */
}

/* Tighter spacing for paragraphs inside the legal text block */
.legal-text-2 p {
    margin-top: 0;          /* Remove top gap */
    margin-bottom: 8px;     /* Adjust this number to control the space between paras */
    line-height: 1.4;       /* Keeps the text lines readable */
}

/* Optional: Ensure the container itself doesn't have extra padding */
.legal-text-2 {
    font-size: 12px;        /* Your size */
    color: #ffffff;         /* CHANGED: Use 'color' instead of 'font-color' */
}

.price-highlight {
    color: #dc2626;       /* Red text to make it pop (or use #16a34a for green) */
    font-size: 1.5em;     /* 50% larger than surrounding text */
    font-weight: 800;     /* Extra bold */
    white-space: nowrap;  /* Prevents the price from breaking onto two lines */
}

.product-strap-small a,
.product-strap-small a:hover {
    color: #ffffff !important;
}