body {
  font-family: 'Roboto', sans-serif !important;
}

/* =========================================
    NEW PRODUCT CARD POLISH (THE "HEADER BAR" LOOK)
    ========================================= */

/* 1. General Card container polish */
.card {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden; /* Clips the child elements to the rounded corners */
    margin-bottom: 2rem;
    background-color: transparent !important; /* Prevents gray background bleed */
}

/* 2. The Header Bar Styling */
.card-header {
    background-color: #40a56d !important;
    color: #ffffff !important;
    padding: 15px !important;
    margin: -1px -1px 0 -1px !important; /* Negative margin pulls it flush to the very edge */
    border-radius: 4px 4px 0 0;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    border-bottom: none !important;
}

/* 3. Ensure the card body sits nicely against the header */
.card-body {
    /*background-color: #f5f5f5;*/
    padding: 20px;
}


/* ==========================================================================
    GLOBAL HEADER (FULL BLEED + STICKY)
    ========================================================================= */
.header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1050 !important;
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-bottom: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.5rem max(1.5rem, calc((100vw - 1320px) / 2)) !important;
}
.header .grid-child {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}
.header .navbar-brand,
.header .brand-logo {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  height: auto !important;
}
.header .navbar-brand img {
  max-height: 65px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}
.header .container-nav {
  flex-grow: 1 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}
.header a,
.header .nav-link,
.header .mod-menu a {
  color: #00843d !important;
  font-family: Roboto, sans-serif;
  font-weight: 300 !important;
  font-size: 1.1rem !important;
  padding: 0.5rem 1.5rem !important;
  text-transform: none !important;
  text-decoration: none !important;
}
.header a:hover {
  color: #004d24 !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2300843d' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
/* ==========================================================================
    GREEN HERO BRANDING BAR
    ========================================================================= */
.bg-brand-green {
  background-color: #00843d !important;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  max-width: 100vw;
  padding: 3rem 0;
}
.container-hero {
  max-width: 1140px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  padding: 0 15px;
}
.hero-title {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), -1px -1px 1px rgba(0, 0, 0, 0.3);
  margin: 0 0 0.25rem 0;
}
.hero-tagline {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-style: italic;
  color: #e0f2e9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  margin: 0 0 1rem 0;
}
.hero-logo-heart {
  max-height: 150px;
  width: auto;
}
.hero-phone {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), -1px -1px 1px rgba(0, 0, 0, 0.3);
}
.hero-illustration-large {
  max-height: 280px;
  width: auto;
  background: #ffffff;
  padding: 10px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
@media (max-width: 991px) {
  .hero-title,
  .hero-tagline,
  .hero-phone {
    text-align: center !important;
  }
}
/* ==========================================================================
    SPLIT HERO SECTION (T.E.N.S. & CHRONIC PAIN)
    ========================================================================= */
.hero-box {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 300px;
  padding: 3rem;
  color: #ffffff;
}
.hero-tens {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/baby-back-view-blur-1497394.jpg') center/cover;
}
.hero-pain {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/adult-art-body-922436.jpg') center/cover;
}
.text-glow-white {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
}
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
@media (max-width: 767px) {
  .hero-box {
    min-height: 250px;
  }
}
/* =========================================
    AUTOMATED CATEGORY MENU (FLUSH & EQUAL)
    ========================================= */
.automated-product-menu {
  margin-top: -2.5rem !important;
  margin-left: -2.5rem !important;
  margin-right: -2.5rem !important;
  margin-bottom: 2.5rem !important;
}
.automated-product-menu.card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.automated-product-menu ul {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}
.automated-product-menu li {
  list-style: none !important;
  margin: 0 !important;
  flex: 1 1 0px !important;
}
@media (min-width: 992px) {
  .automated-product-menu ul {
    flex-direction: row !important;
  }
  .automated-product-menu li:not(:last-child) a {
    border-right: 1px solid rgba(255, 255, 255, 0.3) !important;
  }
  .automated-product-menu li:first-child a {
    /*border-top-left-radius: 4px !important;*/
  }
  .automated-product-menu li:last-child a {
    /*border-top-right-radius: 4px !important;*/
  }
}
.automated-product-menu a {
  display: block !important;
  text-align: center !important;
  width: 100% !important;
  background-color: #009edb !important;
  color: #ffffff !important;
  border-radius: 0 !important;
  padding: 1rem 1.5rem !important;
  font-size: 1.1rem !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease-in-out !important;
}
.automated-product-menu a:hover {
  background-color: #007bb5 !important;
  color: #ffffff !important;
}
.automated-product-menu li.active>a {
  background-color: #00843d !important;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2) !important;
  cursor: default !important;
}
/* =========================================
    MAIN CONTENT CONSTRAINT & OVERLAP
    ========================================= */
.container-component {
  max-width: 1140px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  background-color: #ffffff !important;
  margin-top: -60px !important;
  position: relative;
  z-index: 100;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  padding: 2.5rem !important;
  border-radius: 4px;
}
/* =========================================
    HOMEPAGE CONTENT STYLES
    ========================================= */
.btn-brand-blue {
  background-color: #009edb;
  color: #ffffff;
  border-radius: 0;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  transition: all 0.2s ease-in-out;
}
.btn-brand-blue:hover {
  background-color: #007bb5;
  color: #ffffff;
  transform: translateY(-2px);
}
.card-brand-green {
  background-color: #00843d !important;
  height: 300px !important;
  min-height: 300px !important;
  max-height: 300px !important;
  position: relative;
  width: 100%;
}
.product-img {
  position: absolute;
  bottom: 30px;
  left: 35px;
  width: 100%;
  height: 250px !important;
  max-width: 250px !important;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.15));
}
.btn-outline-success.brand-outline {
  color: #00843d;
  border: 2px solid #00843d;
  border-radius: 0;
  font-weight: bold;
  text-transform: uppercase;
}
.btn-outline-success.brand-outline:hover {
  background-color: #00843d;
  color: #ffffff;
}
.footer-margin {
  margin-top: 100px !important;
}
/* Unified Footer Styles */
.footer,
.container-footer {
  padding: 0 !important;
  background-color: #00843d !important;
  /* Set your desired margin here once */
  margin-top: 150px !important;
}

.container-footer {
  background-image: none !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  /* Removed the duplicate margin-top from here */
}

/* Ensure the child elements maintain the width */
.footer .grid-child,
.container-footer .grid-child {
  padding: 0 !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
}

.container-footer .custom {
  text-align: center;
  margin: 0 auto !important;
  width: 100%;
}
/* ==========================================================================
    4. NAVIGATION DROPDOWNS (METISMENU OVERRIDE)
    ========================================================================== */
@media (min-width: 992px) {
  .header .metismenu-item.parent { position: relative !important; }
  .header .mm-toggler { display: none !important; }
  .mm-toggler { color: #00843d !important; }
  .mm-collapse { display: none !important; }
  .mm-collapse.mm-show { display: block !important; padding-left: 1rem !important; border-left: 2px solid #00843d !important; margin-top: 0.5rem !important; }
  .metismenu-item.parent>a::after { content: "▼"; font-size: 0.7rem; margin-left: 10px; color: #00843d; }
  .header ul.mm-collapse { display: none !important; position: absolute !important; top: 100% !important; left: 0 !important; z-index: 1050 !important; min-width: 240px !important; background-color: #ffffff !important; border: 1px solid rgba(0, 0, 0, 0.05) !important; border-radius: 0 0 4px 4px !important; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important; padding: 0.5rem 0 !important; margin: 0 !important; }
  .header .metismenu-item.parent:hover>ul.mm-collapse { display: block !important; }
  .header ul.mm-collapse a { display: block !important; padding: 0.6rem 1.5rem !important; color: #333333 !important; font-size: 1rem !important; font-weight: 400 !important; text-decoration: none !important; transition: all 0.2s ease-in-out; }
  .header ul.mm-collapse a:hover { background-color: #f8f9fa !important; color: #00843d !important; padding: 0.6rem 1.2rem 0.6rem 1.8rem !important; }
}

@media (min-width: 992px) {
  /* Added ID for desktop specificity as well, just in case */
  .header .nav-facebook-icon, .header .item-122 a { 
    display: flex !important; align-items: center !important; border-left: 1px solid #ccc !important; padding-left: 1.5rem !important; margin-left: 0.5rem !important; text-indent: -9999px !important; white-space: nowrap !important; width: 35px !important; overflow: hidden !important; 
  }
  .header .nav-facebook-icon::before, .header .item-122 a::before { 
    content: "\f09a" !important; font-family: "Font Awesome 6 Brands" !important; font-size: 1.2rem !important; display: block !important; text-indent: 0 !important; color: #00843d !important; 
  }
}

@media (max-width: 991px) {
  /* Targets both the class and ID with `#my-mobile-menu` prefix to win the specificity battle */
  #my-mobile-menu .nav-facebook-icon, 
  #my-mobile-menu .item-122 a { 
    display: flex !important; align-items: center !important; justify-content: center !important; border-left: none !important; padding: 1rem 0 !important; margin: 0 !important; font-size: 0 !important; width: 100% !important; 
  }
  #my-mobile-menu .nav-facebook-icon::before, 
  #my-mobile-menu .item-122 a::before { 
    content: "\f09a" !important; font-family: "Font Awesome 6 Brands" !important; font-size: 1.5rem !important; color: #00843d !important; 
  }
  
  .offcanvas { text-align: left !important; }
  .navbar-brand { margin-right: auto !important; padding-left: 1rem !important; }
  .offcanvas-body { display: flex !important; flex-direction: column !important; justify-content: flex-start !important; align-items: flex-start !important; padding-top: 1rem !important; }
  .navbar-brand { order: -1 !important; margin-bottom: 2rem !important; margin-right: auto !important; }
}

@media (min-width: 992px) {
  .module-desktop-menu { display: block; }
  .module-mobile-menu { display: none; }
}
@media (max-width: 991px) {
  .module-desktop-menu { display: none; }
  .module-mobile-menu { display: block; }
}
@media (max-width: 991px) {
    /* Hide sub-menus initially */
    #my-mobile-menu li ul.mm-collapse {
        display: none !important;
        background: #f8f9fa !important;
        padding: 0 !important;
    }
    /* Show when parent is toggled */
    #my-mobile-menu li.is-open > ul.mm-collapse {
        display: block !important;
    }
    /* Ensure the parent link looks clickable */
    #my-mobile-menu li.parent > a::after {
        content: " ▼"; font-size: 0.9rem; margin-left: 8px;
    }
}
@media (max-width: 991px) {
  /* Fix the hamburger trigger icon */
  #my-mobile-trigger {
    background: none !important; border: none !important; padding: 10px !important; 
    cursor: pointer; display: flex !important; flex-direction: column; justify-content: center; gap: 6px;
  }
  #my-mobile-trigger span, 
  #my-mobile-trigger span::before, 
  #my-mobile-trigger span::after {
    display: block; width: 25px; height: 3px; background: #00843d; border-radius: 2px; content: '';
  }
  #my-mobile-trigger span { position: relative; }
  #my-mobile-trigger span::before { position: absolute; top: -9px; left: 0; }
  #my-mobile-trigger span::after { position: absolute; top: 9px; left: 0; }
  
  /* 1. Reset the entire mobile menu container (Updated with smooth transitions) */
  #my-mobile-menu {
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    width: 100vw !important;
    background: #ffffff !important; /* Force uniform white background */
    padding: 20px 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    
    /* --- ANIMATION PROPERTIES --- */
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-15px) !important;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s ease-in-out !important;
  }
  
  /* Ensure all LI items have a transparent background */
  #my-mobile-menu li {
    list-style: none !important;
    text-align: center !important;
    margin: 0 !important;
    background: transparent !important; /* Force transparent */
  }
  
  /* --- SMOOTH OPEN STATE --- */
  #my-mobile-menu.open { 
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
  
  /* 2. Remove the vertical lines and force center alignment */
  #my-mobile-menu ul, #my-mobile-menu li {
    list-style: none !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border-left: none !important; /* Removes those vertical lines */
  }
  /* 3. Style the links */
  #my-mobile-menu li a {
    padding: 15px 0 !important;
    display: block !important;
    color: #00843d !important;
    text-decoration: none !important;
    font-size: 1.2rem !important;
    font-weight: 500 !important;
  }
  /* 4. Ensure nested sub-lists also center align */
  #my-mobile-menu li ul {
    background: #f8f9fa !important;
    padding: 10px 0 !important;
  }
}
/* ==========================================================================
    DESKTOP GRID (STRICT 2-COLUMN UNIFORM GRID)
    ========================================================================== */
@media (min-width: 992px) {
  .blog-items.masonry-2 { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 30px !important; position: static !important; width: 100% !important; }
  .blog-items.masonry-2 .blog-item { position: static !important; width: 100% !important; display: flex !important; flex-direction: column !important; margin: 0 !important; }
  .blog-items.masonry-2 .blog-item .card { height: 100% !important; margin: 0 !important; }
  .blog-items.masonry-2 .blog-item:empty { display: none !important; }
}
/* ==========================================================================
    GLOBAL CLEANUP
    ========================================================================== */
.com-content-article img { max-width: 100% !important; height: auto !important; object-fit: contain !important; }

/* Footer Fixes */


/* Tighten the row and columns */
@media (min-width: 768px) {
    #mod-custom118 .row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 40px !important; /* Closer together */
    }
    #mod-custom118 .col-md-6 {
        flex: 0 0 auto !important; /* Columns only take space they need */
        width: auto !important;
        max-width: 40% !important;
    }
}

/* Force mobile stack */
@media (max-width: 767px) {
    #mod-custom118 .row {
        display: flex !important;
        flex-direction: column !important;
    }
}

@media (min-width: 768px) {
    .container-footer .row {
        justify-content: center !important;
    }
    .col-md-6 {
        display: flex !important;
        justify-content: center !important; /* Forces the internal <p> tag to center */
    }

  .footer .grid-child {
    padding-top: 150px;
  }
}

/* Only push the green section away from the content above it */
footer.w-100 {
    margin-top: 50px !important;
  margin-bottom: 50px !important;
}

/* Ensure the copyright bar stays tight to the green footer */
.bg-dark {
    margin-top: 0 !important;
}

/* Mobile spacing between product cards */
@media (max-width: 767px) {
    #mod-custom113 .col-md-4 {
        margin-bottom: 50px !important; /* Increase this number to spread them out more */
    }
    
    /* Remove bottom margin from the last card so the footer spacing isn't affected */
    #mod-custom113 .col-md-4:last-child {
        margin-bottom: 0 !important;
    }
}

/* =========================================
    FLEXIBLE PRODUCT CARD FIXES
    ========================================= */

/* 1. Reset: Remove rigid pixel constraints */
.com-content-category-blog__item .card {
    max-width: 900px !important;
    width: 100% !important; /* Allow card to fill its parent container */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 2. Responsive Layout for blog items */
.blog-items {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
}

/* 1. Create a fixed-height container for images */
.com-content-category-blog__item .col-md-4 {
    height: 250px !important; /* Set this to the height you want for all image boxes */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

/* 2. Force images to fit the box without distorting */
.com-content-category-blog__item img {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* 4. Flexible Card Width */
.com-content-category-blog__item {
    width: 95% !important;     /* Occupy most of the screen width */
    max-width: 900px !important; /* Never exceed 900px */
    margin-bottom: 2rem !important;
}

/* Ensure all link buttons have a consistent height on desktop */
@media (min-width: 768px) {
    .btn.w-100.h-100 {
        min-height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
/* =========================================
    ACCORDION STYLING - CLEANED
    ========================================= */

/* 1. Reset: Remove all default Joomla/Bootstrap spacing and borders */
.com-content-category-blog__items,
.com-content-category-blog__item,
.blog-items,
.blog-item,
.accordion {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* 2. Accordion Item Base */
.accordion-item {
    border: none !important;
    position: relative !important;
  
}

/* 3. Title (Button) Styling */
.accordion-button {
    position: relative;
    background-color: #f7fcf7 !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    padding: 15px 20px !important;
    box-shadow: none !important;
    border: none !important;
}

/* 4. Bootstrap Arrow (default behavior) */
.accordion-button::after {
    background-size: 1.25rem;
    transition: transform 0.2s ease-in-out;
}

/* 5. Green Half-Width Line */
.accordion-button::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px; /* Aligns with padding */
    width: 50%;
    height: 3px;
    background-color: #008000 !important;
}

/* 6. Cleanup spacing and focus state */
.accordion-button:focus {
    box-shadow: none !important;
}

.accordion-body {
    padding: 15px 20px !important;
}

/* Bring back the arrow icon manually */
.accordion-button::after {
    display: block !important;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform 0.2s ease-in-out;
}

/* Rotate the arrow when the item is expanded */
.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

/* Force hide the subcategories container */
.com-content-category-blog__children,
.cat-children {
    display: none !important;
}

.container-component>:first-child, .container-sidebar-left>:first-child, .container-sidebar-right>:first-child, .container-component>*+*, .container-sidebar-left>*+*, .container-sidebar-right>*+* 
{
  margin-bottom: 1em !important;
}

/* Indent the accordion content */
.accordion-body {
    padding-left: 40px !important; /* Adjust this value (e.g., 30px, 50px) to suit your preference */
    padding-right: 20px !important; /* Keep some padding on the right for balance */
    padding-top: 15px !important;
    padding-bottom: 20px !important;
}

/* Layout for the reading grid */
.reading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Prevent images from blowing up on larger screens */
@media (min-width: 768px) {
    .reading-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 250px)); /* Caps the width at 250px */
        justify-content: start; /* Keeps items aligned nicely if they don't fill the row */
    }
}

/* Make images react to being clicked */
.reading-grid a {
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: block;
}

.reading-grid a:hover {
    transform: scale(1.05); /* Slight zoom effect */
    opacity: 0.9;
}

.reading-grid img {
    border-radius: 8px; /* Softer, modern edges */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    width: 100%;
}

.suggested-reading-title {
    margin-top: 30px;
    border-bottom: 2px solid #008000; /* Matching your green theme */
    padding-bottom: 10px;
    display: inline-block;
}

/* Style for the archive list inside the accordion */
.archive-list {
    list-style-type: none; /* Removes standard bullets */
    padding: 0;
}

.archive-list li {
    margin-bottom: 10px;
}

.archive-list a {
    color: #008000; /* Green to match your line */
    font-weight: 600;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
}

.archive-list a:hover {
    color: #333;
    text-decoration: underline;
}

/* 1. Remove the default bullet */
.archive-list {
    list-style-type: none;
    padding: 0;
}

/* 2. Add the document icon before each link */
.archive-list li a::before {
    content: "\f15c"; /* This is the FontAwesome code for 'file-alt' */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: #008000; /* Green to match your line */
    display: inline-block;
    width: 20px;
}

#pdf-list {
    /* Replace '150px' with the actual height of your sticky header.
       If your header is 100px tall, set this to 120px or 130px 
       to give it a little breathing room.
    */
    scroll-margin-top: 200px !important; 
}

/* Mobile spacing between product cards */
@media (max-width: 767px) {
#pdf-list {
    /* Replace '150px' with the actual height of your sticky header.
       If your header is 100px tall, set this to 120px or 130px 
       to give it a little breathing room.
    */
    scroll-margin-top: 250px !important; 
}
}

/* This ONLY targets items if the page has the class 'trends-blog' */
.trends-blog .com-content-category-blog__item.blog-item {
    border-bottom: 2px solid #008000 !important;
    margin-bottom: 40px !important;
    padding-bottom: 40px !important;
    display: block !important;
}

/* Remove the border from the very last item on that specific page */
.trends-blog .com-content-category-blog__items .com-content-category-blog__item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


/* 1. Remove bullets and padding */
ul.striped {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 2. Style the items with bottom borders only */
ul.striped li {
    padding: 15px 0;
    border-bottom: 1px solid #dcdcdc; /* Only bottom border */
}

/* 3. Ensure the last item has no border */
ul.striped li:last-child {
    border-bottom: none;
}

/* REMOVED: ul.striped li:first-child { border-top: ... } */

/* Contact page styling */
.contact-info address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 20px;
}

.map-container {
    border: 5px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Adds a soft "lift" effect */
    border-radius: 8px;
    overflow: hidden;
}

/* Optional: Make the email link look like a professional button */
.email-btn a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #008000;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.email-btn a:hover {
    background-color: #006400;
}

/* Force the map container and iframe to have visible dimensions */
.map-container {
    display: block !important;
    width: 100% !important;
    height: 300px !important;
    overflow: hidden;
}

.map-container iframe {
    display: block !important;
    width: 100% !important;
    height: 300px !important;
    border: 0 !important;
}

/* Specifically target the card within the main-bottom position to remove styling */
.main-bottom.card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}


.main-bottom .card-body {
    padding: 0 !important;
}

.credentials-container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 30px !important;
}
.credentials-text { flex: 2 !important; min-width: 300px !important; }
.credentials-image { flex: 1 !important; min-width: 200px !important; text-align: center !important; }
.credentials-image img { max-width: 100% !important; height: auto !important; }

@media (max-width: 768px) {
    .credentials-container { flex-direction: column !important; }
    .credentials-image { order: -1 !important; margin-bottom: 20px; }

  .product-img {left:15px;}
}

/* 1. Ensure the product menu container can be sticky */
.automated-product-menu {
    position: -webkit-sticky !important; /* Safari support */
    position: sticky !important;
    top: 63px !important; /* Adjust this value to match the exact height of your main header */
    z-index: 1040 !important; /* Slightly lower than your main header (1050) */
    background-color: #ffffff !important; /* Ensures it's opaque when pinned */
    transition: box-shadow 0.2s ease;
}

/* 2. Optional: Add a subtle shadow when it becomes sticky */
.automated-product-menu.is-pinned {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

@media (max-width: 991px) {
    .automated-product-menu {
        position: static !important; /* Disables sticky and returns to normal flow */
        top: auto !important;
    }
}

/* Force the product navigation card to have no background */
.automated-product-menu.card {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Also strip the background from the body if the module adds it */
.automated-product-menu .card-body {
    background: transparent !important;   
}

/* Allow the container to grow, but constrain the images */
.auto-height {
    height: auto !important;
    padding: 15px !important;
}

/* Force all images in this specific column to respect the container width */
.auto-height img {
    max-height: 100px !important; /* Adjust this value (e.g., 80px or 120px) to find the perfect stack size */
    width: auto !important;
    margin-bottom: 10px !important;
}

/* Styling for the 2x2 image grid */
.image-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-grid-item {
    flex: 0 0 calc(50% - 5px); /* Forces 2 per row */
    background: #ffffff;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Adds a "lifted" look */
    transition: transform 0.2s ease;
}

.image-grid-item:hover {
    transform: translateY(-2px); /* Subtle interaction on hover */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-grid-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}