/* General Styling */
:root {
    --color-purple-dark: #6A057F;
    --color-purple-light: #9B59B6;
    --color-blue-dark: #2B2D63;
    --color-blue-light: #7E88D8;
    --color-blue-very-light: #AED6F1; /* For light backgrounds */
    --color-white: #FBFBFB;
    --color-black: #222222;
    --color-grey-dark: #555555;
    --color-grey-light: #EEEEEE;

    --font-primary: 'Poppins', sans-serif;

    --header-height: 80px;
    --container-width: 1400px;
  
  /* NEW */
  --color-green-light: #00D3C3;
  --color-orange: #FF6B57;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
}

.main-nav ul.hs-menu-children-wrapper {
  display: block;
}

.main-nav .hs-menu-children-wrapper li {
  margin: 0;
}
.content-wrapper {
  margin: 0 auto;
  padding: 0 1rem;
}

@media screen and (min-width: 1380px) {
  .content-wrapper {
    padding: 0;
  }
}

.dnd-section > .row-fluid {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.dnd-section .dnd-column {
  padding: 0;
}

@media (max-width: 767px) {
  .dnd-section .dnd-column {
    padding: 0;
  }
}



/* CSS variables */

:root {
  --column-gap: 2.13%;
  --column-width-multiplier: 8.333;
}

/* Mobile layout */

.row-fluid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}


  .row-fluid .span1,
  .row-fluid .span2,
  .row-fluid .span3,
  .row-fluid .span4,
  .row-fluid .span5,
  .row-fluid .span6,
  .row-fluid .span7,
  .row-fluid .span8,
  .row-fluid .span9,
  .row-fluid .span10,
  .row-fluid .span11,
  .row-fluid .span12{
  min-height: 1px;
  width: 100%;
}

/* Desktop layout */

@media (min-width: 768px) {
  .row-fluid {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  
    .row-fluid .span1 {
      width: calc(var(--column-width-multiplier) * 1% * 1 - var(--column-gap) * (11 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span2 {
      width: calc(var(--column-width-multiplier) * 1% * 2 - var(--column-gap) * (10 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span3 {
      width: calc(var(--column-width-multiplier) * 1% * 3 - var(--column-gap) * (9 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span4 {
      width: calc(var(--column-width-multiplier) * 1% * 4 - var(--column-gap) * (8 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span5 {
      width: calc(var(--column-width-multiplier) * 1% * 5 - var(--column-gap) * (7 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span6 {
      width: calc(var(--column-width-multiplier) * 1% * 6 - var(--column-gap) * (6 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span7 {
      width: calc(var(--column-width-multiplier) * 1% * 7 - var(--column-gap) * (5 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span8 {
      width: calc(var(--column-width-multiplier) * 1% * 8 - var(--column-gap) * (4 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span9 {
      width: calc(var(--column-width-multiplier) * 1% * 9 - var(--column-gap) * (3 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span10 {
      width: calc(var(--column-width-multiplier) * 1% * 10 - var(--column-gap) * (2 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span11 {
      width: calc(var(--column-width-multiplier) * 1% * 11 - var(--column-gap) * (1 * var(--column-width-multiplier) / 100));
    }
  
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--color-blue-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-blue-light);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-black);
    line-height: 1.2;
    margin-bottom: 0.8em;
}

h1 { font-size: 2.8em; font-weight: 700; }
h2 { font-size: 2.2em; font-weight: 600; margin-bottom: 1.2em; }
h3 { font-size: 1.6em; font-weight: 600; }
h4 { font-size: 1.3em; font-weight: 600; }

p {
    margin-bottom: 1em;
}

ul {
    list-style: none;
}

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

.bg-dark-blue {
    background-color: var(--color-blue-dark);
    padding: 80px 0;
  color: var(--color-white);
  text-align: center;
}

.bg-dark-blue + .bg-dark-blue > .row-fluid {
  position: relative;
}

.bg-dark-blue + .bg-dark-blue > .row-fluid:before {
  content: "";
  top: -80px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-white);
  position: absolute;
}

.bg-dark-blue.dnd-section h2 {
  color: var(--color-white);
}
.bg-dark-blue.dnd-section .benefit-card h3, .bg-dark-blue.dnd-section .benefit-for-item h3 {
  color: var(--color-white);
}

.bg-dark-blue p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-white);
}

.empty-section .row-fluid  {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.bg-light-blue {
    background-color: var(--color-blue-light);
    color: var(--color-white);
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}
.bg-light-blue:before {
  content: "";
  position: absolute;
  width: 1372px;
  height: 1380px;
  left: -567px;
  top: -208px;

  background: radial-gradient(45.11% 45.11% at 50% 50%, #00D3C3 0%, rgba(43, 45, 99, 0) 100%);
}
.bg-light-blue:after {
  content: "";
  position: absolute;
  width: 1696px;
  height: 1566px;
  left: 1039px;
  top: -666px;

background: radial-gradient(45.11% 45.11% at 50% 50%, #00D3C3 0%, rgba(43, 45, 99, 0) 100%);
}
.dnd-section.bg-light-blue h2, .dnd-section.bg-light-blue p {
    color: var(--color-white);
}
.dnd-section.bg-light-blue > .row-fluid {
  position: relative;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 20px 25px;;
    border-radius: 7px;
  font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
  color: var(--color-white);
}

.btn-plain {
  color: #FF6B57;
  font-size: 20px;
  padding: 0;
}

.btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: var(--color-orange);
}

.btn-primary:hover {
    border: 3px solid #FFF;
  color: var(--color-white);
}

.btn-secondary {
  border: 3px solid #FF6B57;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.30);
  color: var(--color-white);
}

.btn-outline-secondary {
    background-color: transparent;
    color: var(--color-blue-dark);
    border-color: var(--color-blue-dark);
}

.btn-outline-secondary:hover {
    background-color: var(--color-blue-very-light);
    color: var(--color-blue-dark);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Header */
[data-global-resource-path*="header.html"] {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header {
  background-color: var(--color-white);
  padding: 25px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-nav {
    /* flex: 1; /* This was implicit or could be set, ensure it takes space */ */
    flex-grow: 1; /* Allow it to grow and take available space */
    flex-shrink: 1; /* Allow it to shrink if needed, but we'll try to prevent wrapping */
    flex-basis: auto; /* Default basis */
    justify-content: flex-end; /* Push items to the right to accommodate logo and buttons */
    display: flex; /* Ensure it's a flex container for its own items */
    margin-right: 20px; /* Add some space before the buttons */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px; /* Adjust as needed */
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.main-header .logo a {
  display: flex;
  gap: 30px;
  font-size: 22px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  align-items: center;
  color: var(--color-black);
}

.main-nav ul {
    display: flex;
    align-items: center;
    margin-right: 0;
}

.main-nav li {
    margin-left: 20px;
    position: relative;
}

.main-nav a {
    color: var(--color-black);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-blue-dark);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: var(--color-blue-dark);
}

/* Dropdown Menu */
.dropdown-arrow {
    font-size: 0.7em;
    vertical-align: middle;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content, .hs-menu-children-wrapper {
    display: none;
    position: absolute;
    background-color: var(--color-white);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    padding: 10px 0;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    margin-top: 10px; /* Space between main nav and dropdown */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown-content a, .hs-menu-children-wrapper a {
    color: var(--color-black);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-weight: 400;
}

.dropdown-content a:hover, .hs-menu-children-wrapper a:hover {
    background-color: var(--color-blue-very-light);
    color: var(--color-blue-dark);
}

.dropdown:hover .dropdown-content , .hs-item-has-children:hover .hs-menu-children-wrapper {
    display: block;
    opacity: 1;
    visibility: visible;
}

.header-btn {
    margin-left: 20px;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--color-black);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(114deg, var(--color-blue-dark) 10.49%, var(--color-blue-light) 76.58%);
    color: var(--color-white);
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 600px;
}
.hero-section-with-gradient {
  background: linear-gradient(104deg, var(--color-blue-dark) 21.73%, var(--color-blue-light) 77.79%);
   position: relative;
}
.hero-section-with-gradient:after {
  position: absolute;
  content: "";
  width: 1124px;
  height: 1124px;
  flex-shrink: 0;
  border-radius: 1124px;
  background: radial-gradient(45.11% 45.11% at 50% 50%, var(--color-green-light) 0%, rgba(126, 136, 216, 0.00) 100%);
  right: -562px;
  top: 176px;
}

.hero-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    min-width: 450px;
    text-align: left;
    padding-right: 20px;
}

.hero-section h1 {
  font-size: 54px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  margin-bottom: 30px;
  color: var(--color-white);
}

.dnd-section.hero-section h2 {
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--color-green-light);
  text-transform: uppercase;
  text-align: left;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 50px;
    color: var(--color-white);
}
.hero-ctas {
  display: flex;
  gap: 15px;
}

.hero-ctas .btn {
    margin-right: 15px;
}

.hero-image {
    flex: 1;
    min-width: 400px;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

.hero-section.hero-small {
    min-height: 400px;
    padding: 60px 0;
}

.hero-section.hero-small .container {
    flex-direction: column;
    text-align: center;
}

section.hero-small {
  padding: 0;
}

.hero-section.hero-small .hero-content {
    text-align: center;
    padding-right: 0;
}

.hero-section.hero-small h1 {
    font-size: 2.8em;
}

.hero-section.hero-small .hero-image img, .hero-small .hero-image img {
    max-width: 80%;
    margin-top: 30px;
}

/* Section Common Styling */
section {
    padding: 80px 0;
}

section h2, .dnd-section h2 {
    /*text-align: center;*/
    margin-bottom: 40px;
    font-size: 2.5em;
    color: var(--color-black);
}

/* Section: The Power of UCF Common Controls */
.section-common-controls {
    padding: 100px 0;
    background-color: var(--color-white);
}

.common-controls-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

.common-controls-text {
    flex: 2;
}

.common-controls-visual {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.common-controls-visual img {
    max-width: 100%;
    height: auto;
}

.common-controls-benefits {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.benefit-item {
    flex: 1;
    min-width: 220px;
    padding: 60px 45px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: 15px;
    border: 2px solid var(--color-green-light);
  background: var(--color-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.benefit-item i, .benefit-item svg {
    font-size: 3em;
    height: 48px;
    color: var(--color-green-light);
    fill: var(--color-green-light);
    margin-bottom: 17px;
}

.benefit-item h3 {
    font-size: 28px;
  font-weight: 600;
    margin-bottom: 11px;
}
.benefit-item p {
  font-size: 18px;
}

/* Section: How It Works */
.section-how-it-works {
    padding: 0;
}

.how-it-works-grid {
    display: flex;
    gap: 100px;
    flex-wrap: wrap;
}

.how-it-works-grid h2 {
  font-size: 42px;
  font-style: normal;
  font-weight: 700;
  text-align: left;
  margin-bottom: 30px;
}

.how-it-works-text {
    flex: 1;
  font-size: 18px;
    min-width: 400px;
}

.how-it-works-text ul, .list-with-icon ul {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
}

.how-it-works-text li, .list-with-icon li {
    margin-bottom: 10px;
  text-align: left;
}

.how-it-works-text li i, .list-with-icon li i {
    color: var(--color-green-light);
    margin-right: 10px;
}

.how-it-works-diagram {
    flex: 1;
    min-width: 350px;
    text-align: center;
}

.how-it-works-diagram img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

/* Section: Market Segments */
.section-market-segments {
    padding: 80px 0;
    text-align: center;
}

.segments-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.segment-item {
    padding: 25px;
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    width: 220px;
}

.segment-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.segment-icon, .segment-item svg {
    width: 60px; /* Adjust icon size */
    height: 60px;
    margin-bottom: 15px;
}

.segment-item h3 {
    margin: 0;
    color: var(--color-blue-dark);
}

.segments-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1em;
    color: var(--color-grey-dark);
}

/* Section: Call to Action (CTA) */
.section-cta {
    padding: 60px 0;
    background-color: var(--color-purple-dark);
    color: var(--color-white);
    text-align: center;
}

.section-cta h2 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.section-cta p {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons .btn {
    margin: 0 10px;
}

/* Footer */
.main-footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 50px 0 30px;
    font-size: 0.95em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    /*filter: brightness(0) invert(1); /* Makes logo white if it's dark */
}
.footer-brand .footer-logo-container {
  display: flex;
  gap: 30px;
  color: var(--color-white);
  font-size: 22px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px;
  margin-bottom: 33px;
  align-items: center;
}

.footer-brand p {
    font-size: 0.85em;
    color: var(--color-white);
}

.footer-nav h3,
.footer-legal h3,
.footer-social h3 {
    color: var(--color-green-light);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.footer-nav ul li,
.footer-legal ul li,
.footer-social ul li {
    margin-bottom: 10px;
}

.footer-nav a,
.footer-legal a,
.footer-social a {
    color: var(--color-white);
}

.footer-nav a:hover,
.footer-legal a:hover,
.footer-social a:hover {
    color: var(--color-blue-very-light);
}

.footer-social i {
    margin-right: 8px;
    font-size: 1.2em;
}

/* Common Controls Page Specific Styling */
.section-content {
    padding: 80px 0;
}

.control-types-summary {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.type-box {
    background-color: var(--color-white);
    border: 1px solid var(--color-blue-very-light);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    width: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.type-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.type-box img {
    height: 50px;
    margin-bottom: 15px;
}

.type-box h3 {
    color: var(--color-purple-dark);
    margin-bottom: 10px;
}

.section-impact-zones, .section-control-types {
    padding: 80px 0;
}

.impact-zones-grid, .control-types-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.impact-zones-grid ul, .control-types-list ul {
    columns: 2; /* Two columns for wide screens */
    column-gap: 40px;
    list-style: disc; /* Use bullets for lists */
    padding-left: 20px;
  width: 100%;
}

.impact-zones-grid li, .control-types-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
  text-align: left;
}

.impact-zones-grid li::marker, .control-types-list li::marker {
  color: var(--color-green-light);
}

.control-types-list.two-columns ul {
    flex: 1;
    min-width: 300px;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: stretch;
}

.features-grid .feature-item {
  width: 360px;
  max-width: 100%;
  padding: 60px 52px;
  border-radius: 15px;
  border: 2px solid var(--color-green-light);
  text-align: center;
  background-color: var(--color-white);
}

.features-grid .feature-item p {
  color: var(--color-black);
}

.features-grid .feature-item i {
  font-size: 3.5em;
    color: var(--color-green-light);
    margin-bottom: 18px;
}

/* Products Page Specific Styling */
.section-product-category {
    padding: 80px 0;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
    padding: 80px 90px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-radius: 15px;
border: 2px solid var(--color-blue-light);
}

.product-card-container h2 {
  color: var(--color-blue-light);
  font-weight: 700;
  text-align: center;
}

.product-card.reverse {
    flex-direction: row-reverse;
}

.product-card-content {
    flex: 1;
    min-width: 400px;
}

.product-card-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.product-card-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card .feature-list {
    list-style: disc;
    padding-left: 20px;
    width: 100%;
    margin-bottom: 25px;
}

.product-card .feature-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.product-card .feature-list li::marker {
   color: var(--color-green-light);
}

/* Legacy Products Accordion */
.legacy-products-section {
  border-radius: 15px;
  border: 2px solid var(--color-blue-light);
  padding: 80px 85px 80px 90px;
}

.legacy-products-section h3 {
  font-size: 42px;
}

.legacy-products-section .accordion {
  margin-top: 88px;
}
.accordion-item {
    margin-bottom: 15px;
    border: 1px solid var(--color-grey-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    background-color: var(--color-blue-light);
}

.accordion-header {
  background-color: var(--color-blue-light);
    color: var(--color-white);
    padding: 18px 25px;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--color-blue-light);
}

.accordion-header i {
    transition: transform 0.3s ease;
}
.accordion-header i.fa-minus {
    display: none;
}
.accordion-header i.fa-plus {
    display: block;
}

.accordion-header.active i.fa-plus {
    display: none;
}
.accordion-header.active i.fa-minus {
    display: block;
}

.accordion-content {
    padding: 0px 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
   background-color: var(--color-blue-light);
  color: var(--color-white);
}

.accordion-content p {
    padding: 15px 0;
    margin-bottom: 0;
    color: var(--color-white);
}

/* UC Control Center & API Gateway specific styling */
.section-benefits .benefits-grid,
.section-who-benefits .benefits-for-grid, .dnd-module .benefits-grid, .dnd-module .benefits-for-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.benefit-card, .benefit-for-item {
    padding: 64px 30px;
    border-radius: 15px;
    border: 2px solid var(--color-green-light);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover, .benefit-for-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.benefit-card i, .benefit-for-item i {
    font-size: 3.5em;
    color: var(--color-green-light);
    margin-bottom: 20px;
}

.benefit-card h3, .benefit-for-item h3 {
    font-size: 28px;
  font-weight: 600;
    margin-bottom: 10px;
}


/* About Us Page Specific Styling */
.section-team {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background-color: var(--color-white);
  border-radius: 15px;
  border: 2px solid var(--color-green-light);
  background: #FBFBFB;
    padding: 0px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
}

.team-member .profile-pic {
    width: calc(100% + 4px);
    height: auto;
    border-radius: 15px;
    border: 2px solid var(--color-green-light);
    object-fit: cover;
  aspect-ratio: 1;
  margin-left: -2px;
  margin-top: -2px;
}

.team-member .team-member-info {
  padding: 40px 33px 55px 33px;
}

.team-member h3 {
    margin-bottom: 5px;
}

.team-member .title {
    color: var(--color-green-light);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.section-contact {
    padding: 80px 0;
}

.contact-grid {
    display: flex;
    gap: 150px;
    flex-wrap: wrap;
    justify-content: center;
  flex-direction: row-reverse;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 350px;
}

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

.contact-form {
border: 2px solid var(--color-blue-light);
    background: rgba(255, 255, 255, 0.10);
    padding: 40px 60px 50px 60px;
  border-radius: 15px;
}

.contact-info h3, .contact-form h3 {
    margin-bottom: 25px;
    color: var(--color-white);
}

.contact-info .items {
  margin-top: 60px;
  display: flex;
  gap: 30px;
  line-height: 29px;
  flex-direction: column;
}

.contact-info p {
    margin-bottom: 15px;
}
.contact-info .items p {
  margin: 0;
  line-height: 29px;
  width: 100%;
  display: flex;
  gap: 40px;
}
  
.contact-info a {
  color: var(--color-white);
}

.contact-info i, .contact-info svg {
    margin-right: 0px;
    color: var(--color-green-light);
    font-size: 1.8em;
  height: 29px;
}

.form-group {
    margin-bottom: 20px;
}

[data-hsfc-id=Renderer] .hsfc-ErrorAlert {
text-align: left;
}
.contact-form form {
  display: flex;
  gap: 15px;
  flex-direction: column;
}

.form-group label, .form-group .hs-form-field label, [data-hsfc-id=Renderer] .hsfc-FieldLabel, .hs-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-white)!important;
  text-align: left;
}

.hs-form-field .hs-error-msg {
  color: red!important;
}

[data-hsfc-id=Renderer] .hsfc-FieldLabel span, .hs-form-field label span {
  background: transparent!important;
  color: var(--color-white)!important;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.contact-form [data-hsfc-id=Renderer] .hsfc-TextareaInput,
.contact-form [data-hsfc-id=Renderer] .hsfc-TextInput,
.contact-form .hs-input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 15px;
    border: 2px solid var(--color-blue-light);
    font-family: var(--font-primary);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: transparent!important;
  color: var(--color-white)!important;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus,
.contact-form [data-hsfc-id=Renderer] .hsfc-TextareaInput:focus,
.contact-form [data-hsfc-id=Renderer] .hsfc-TextInput:focus,
.contact-form .hs-input:focus {
    border-color: var(--color-blue-light);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

textarea {
    resize: vertical;
}
.menu-toggle .fas.fa-close {
  display: none;
}
.menu-toggle.active .fas.fa-close {
  display: block;
}
.menu-toggle.active .fas.fa-bars {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-nav ul {
        margin-right: 20px;
    }

    .main-nav li {
        margin-left: 20px;
    }

    .hero-section h1 {
        font-size: 3em;
    }

    .hero-section p {
        font-size: 1.1em;
    }

    .common-controls-content,
    .how-it-works-grid,
    .product-card,
    .product-card.reverse,
    .contact-grid {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .common-controls-text,
    .how-it-works-text,
    .product-card-content,
    .contact-info,
    .contact-form {
        min-width: unset;
        width: 100%;
        padding-right: 0;
    }
  
  .contact-form {
    padding: 30px;
  }

    .hero-image,
    .common-controls-visual,
    .how-it-works-diagram,
    .product-card-image {
        text-align: center;
    }

    .product-card-image img {
        max-width: 80%;
    }

    .impact-zones-grid ul, .control-types-list ul {
        columns: 1; /* Single column on smaller screens */
    }

    .team-grid, .benefits-grid, .benefits-for-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }

    .main-header .container {
        /*flex-wrap: wrap;*/
        justify-content: space-between;
    }

    .logo {
        width: auto;
        text-align: center;
    }

    .main-nav {
        /*display: none; /* Hide full nav on small screens */
        /*width: 100%;
        order: 3; /* Push to bottom on small screen */
        flex-grow: 1; /* Allow it to grow and take available space */
        flex-shrink: 1; /* Allow it to shrink if needed, but we'll try to prevent wrapping */
        flex-basis: auto; /* Default basis */
        justify-content: flex-end; /* Push items to the right to accommodate logo and buttons */
        display: none; /* Ensure it's a flex container for its own items */
        margin-right: 20px; /* Add some space before the buttons */
    }

    .main-nav.active {
        display: block; /* Show when active */
        position: absolute;
        height: calc(100vh - 121px);
        width: 100%;
        background: var(--color-white);
        top: 121px;
        left: 0;
    }
  
  .main-nav.active .widget-type-menu, .main-nav.active .widget-type-menu .hs_cos_wrapper_type_menu, .main-nav.active .widget-type-menu .hs_cos_wrapper_type_menu .hs-menu-wrapper {
    max-height: 100%;
    display: block;
  }
  body.dark-mode .dropdown-content a, body.dark-mode .hs-menu-children-wrapper a {
        color: var(--color-white)!important;
  }
  .main-nav ul {
    display: block;
        align-items: center;
        /* Adjust margin as needed, perhaps remove the default margin-right */
        margin-right: 0;
        opacity: 1;
        visibility: visible;
      height: 100%;
      overflow-y: auto;
  }

    .main-nav ul:not(.hs-menu-children-wrapper) {
      padding: 0px 20px;
       /* flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 10px 0;
        background-color: var(--color-white);
        border-top: 1px solid var(--color-grey-light);*/
    }
  
  body.dark-mode .main-nav ul {
    background: var(--color-black);
  }
  .main-nav li {
    margin-left: 0px;
  }
  
  .main-nav li.hs-menu-depth-1 > a {
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    padding: 15px 0;
    display: inline-block;
  }

    .main-nav li.hs-menu-depth-2 {
        margin-left: 20px; /* Current spacing, keep or slightly reduce if necessary */
        /* Consider reducing to 25px or 20px if wrapping still occurs */    
        /*
        margin: 0;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid var(--color-grey-light);
        */
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .dropdown-content, .hs-menu-children-wrapper{
        position: static; /* Make dropdown content flow in document */
        width: 100%;
        box-shadow: none;
        border-top: 1px solid var(--color-grey-light);
        padding: 0;
        transform: translateX(0); /* Remove centering transform */
        margin-top: 0;
    }

    .dropdown-content a , .hs-menu-children-wrapper a {
        padding-left: 40px; /* Indent dropdown items */
        background: rgba(126, 136, 216, 0.10);;
        border-bottom: 1px solid var(--color-white);
    }
    .dropdown-content a:last-child, .hs-menu-children-wrapper a:last-child {
        border-bottom: none;
    }

    .header-btn {
        margin-left: 15px; /* Reduce from 20px if necessary to free up space */

     /*   margin-left: 0;
        margin-top: 15px;
        width: 100%;*/
    }

    .menu-toggle {
        display: block; /* Show hamburger icon */
        position: initial;
        right: 20px;
        top: 25px;
    }

    .hero-section {
        padding: 60px 0;
        min-height: auto;
    }
  .hero-section .container {
    flex-direction: column;
  }

    .hero-content, .hero-image {
        text-align: center;
        min-width: unset;
        padding-right: 0;
    }

    .hero-ctas {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .hero-ctas .btn {
        margin-right: 0;
        width: 100%;
    }

    .section-common-controls,
    .section-how-it-works,
    .section-market-segments,
    .section-product-category,
    .section-content,
    .section-impact-zones,
    .section-control-types,
    .section-team,
    .section-contact {
        padding: 60px 0;
    }

    .benefit-item, .segment-item, .type-box, .team-member, .benefit-card, .benefit-for-item {
        width: 100%;
        max-width: 350px; /* Constrain width for better look on small screens */
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-nav ul, .footer-legal ul, .footer-social ul {
        padding-left: 0;
    }
  .footer-brand .footer-logo-container {
      justify-content: center;
    }
  .legacy-products-section {
    padding: 40px 45px 40px 50px;
  }
  .product-card {
    padding: 40px 50px;
  }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.2em; }

    .main-header {
        padding: 10px 0;
    }

    .logo img {
        height: 40px;
    }

    .menu-toggle {
        font-size: 1.5em;
        top: 18px;
        right: 15px;
    }
  
  .main-nav.active {
    height: calc(100vh - 91px);
    top: 91px;
  }

    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .hero-section p {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .section-common-controls,
    .section-how-it-works,
    .section-market-segments,
    .section-product-category,
    .section-content,
    .section-impact-zones,
    .section-control-types,
    .section-team,
    .section-contact {
        padding: 40px 0;
    }

    .accordion-header {
        font-size: 1em;
        padding: 15px 20px;
    }
    .accordion-content {
        padding: 0 20px;
    }
    
    .main-header .logo span {
      display: none;
    }
  .legacy-products-section {
    padding: 20px 25px 20px 30px;
  }
  .product-card {
    padding: 20px 30px;
  }
}

/* Dark Mode Styling */
body.dark-mode {
    --color-purple-dark: #A569BD; /* Lighter purple for dark background */
    --color-purple-light: #C39BD3;
    --color-blue-dark: #2B2D63; /* Lighter blue for dark background */
    --color-blue-light: #7E88D8;
    --color-blue-very-light: #34495E; /* Darker blue for light backgrounds in dark mode */
    --color-white: #FFFFFF; /* Dark background */
    --color-black: #000000; /* Light text */
    --color-grey-dark: #BBBBBB; /* Lighter grey for text */
    --color-grey-light: #2D3748; /* Darker grey for backgrounds */

    background-color: var(--color-black); /* This is now the dark background */
    color: var(--color-white); /* This is now the light text */
}

/* Adjustments for elements that use specific colors or shadows */
body.dark-mode a {
    color: var(--color-blue-light);
}

body.dark-mode a:hover {
    color: var(--color-blue-very-light);
}

body.dark-mode .btn, body.dark-mode .btn:hover {
  color: var(--color-white);
}

body.dark-mode .main-header {
    background-color: var(--color-black); /* Dark header */
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

body.dark-mode .main-nav a {
    color: var(--color-white);
}
body.dark-mode .main-header .logo a {
  color: var(--color-white);
}

body.dark-mode .main-nav a:hover,
body.dark-mode .main-nav a.active {
    color: var(--color-blue-light);
}

body.dark-mode .main-nav a.active::after {
    background-color: var(--color-blue-light);
}

body.dark-mode .dropdown-content, body.dark-mode .hs-menu-children-wrapper {
    background-color: var(--color-white);
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
}

body.dark-mode .dropdown-content a, body.dark-mode .hs-menu-children-wrapper a {
    color: var(--color-black);
}

body.dark-mode .dropdown-content a:hover, body.dark-mode .hs-menu-children-wrapper a:hover {
    background-color: var(--color-blue-very-light);
    color: var(--color-white);
}

body.dark-mode .menu-toggle {
    color: var(--color-white);
}

body.dark-mode .dnd-section.hero-section h2 {
    color: var(--color-green-light);
}

body.dark-mode .hero-section h1,
body.dark-mode .hero-section p {
    color: var(--color-white);
}

body.dark-mode .hero-image img {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

body.dark-mode .section-content, body.dark-mode .section-content .section-common-controls {
  background-color: var(--color-black);
}

body.dark-mode section h2,
body.dark-mode .dnd-section h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: var(--color-white); /* Text will be light in dark mode */
}

body.dark-mode .benefit-item,
body.dark-mode .segment-item,
body.dark-mode .type-box,
body.dark-mode .team-member,
body.dark-mode .benefit-for-item {
    background-color: var(--color-black); /* Darker background for cards */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

body.dark-mode .hero-section-with-gradient, body.dark-mode .hero-section {
  background: linear-gradient(0deg, rgba(28, 28, 28, 0.60) 0%, rgba(28, 28, 28, 0.60) 100%), linear-gradient(114deg, #2B2D63 10.49%, #7E88D8 76.58%);
}

body.dark-mode .bg-dark-blue {
  background: linear-gradient(0deg, rgba(28, 28, 28, 0.60) 0%, rgba(28, 28, 28, 0.60) 100%), #2B2D63;
}

body.dark-mode .bg-light-blue {
  background: linear-gradient(0deg, rgba(28, 28, 28, 0.60) 0%, rgba(28, 28, 28, 0.60) 100%), #7E88D8;
}

body.dark-mode .benefit-item:hover,
body.dark-mode .segment-item:hover,
body.dark-mode .type-box:hover,
body.dark-mode .team-member:hover,
body.dark-mode .benefit-card:hover,
body.dark-mode .benefit-for-item:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

body.dark-mode .features-grid .feature-item {
  background-color: transparent;
}

body.dark-mode .features-grid .feature-item p {
  color: var(--color-white);
}

body.dark-mode .segment-icon,
body.dark-mode .type-box img,
body.dark-mode .benefit-for-item i {
    filter: brightness(0) invert(1) hue-rotate(180deg); /* Adjust icons for dark mode */
}


body.dark-mode .section-cta.bg-purple {
    background-color: var(--color-purple-dark); /* Ensure it uses dark mode purple */
}

/*
body.dark-mode .main-footer {
    background-color: var(--color-white);
    color: var(--color-black);
}

body.dark-mode .footer-brand .footer-logo {
    filter: none;
}

body.dark-mode .footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}
*/

body.dark-mode .footer-nav h3,
body.dark-mode .footer-legal h3,
body.dark-mode .footer-social h3 {
    color: var(--color-green-light);
}


body.dark-mode .footer-nav a,
body.dark-mode .footer-legal a,
body.dark-mode .footer-social a {
    color: var(--color-white);
}

/* Icon button for theme toggle */
.btn-icon {
    background-color: transparent;
    border: none;
    padding: 10px;
    font-size: 1.5em;
    color: var(--color-black); /* Default light mode color */
    cursor: pointer;
    transition: color 0.3s ease;
    margin-right: 15px; /* Space between toggle and Get a Demo button */
}

.btn-icon:hover {
    color: var(--color-blue-dark);
}

body.dark-mode .btn-icon {
    color: var(--color-white); /* Dark mode color */
}

body.dark-mode .btn-icon:hover {
    color: var(--color-blue-light);
}

/* Ensure the hero-graphic and other images retain their visibility/contrast */
body.dark-mode .hero-section .hero-image img,
body.dark-mode .common-controls-visual img,
body.dark-mode .how-it-works-diagram img,
body.dark-mode .product-card-image img {
    filter: brightness(0.85); /* Slightly dim images for dark mode, adjust as needed */
}

body.dark-mode .product-card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

body.dark-mode .product-card-image img {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}