/* ================================================
   MEMBERSPARK DIGITAL - CUSTOM OVERRIDES
   ================================================
   
   This file contains all MemberSpark-specific style
   overrides. Load this AFTER style.css in your HTML:
   
   <link rel="stylesheet" href="css/style.css" />
   <link rel="stylesheet" href="css/memberspark-custom.css" />
   
   ================================================ */

/* ================================================
   REUSABLE TYPOGRAPHY CLASSES
   ================================================ */

/* Body text - use on paragraphs for consistent 18px styling */
.body-text {
  font-size: 18px;
  line-height: 1.75;
  font-family: "Graphik Web", Arial, sans-serif;
  font-weight: 400;
  color: #4a5568;
}

/* Body text on dark backgrounds */
.body-text-light {
  font-size: 18px;
  line-height: 1.75;
  font-family: "Graphik Web", Arial, sans-serif;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

/* Page heading - larger than content-title for main page headlines */
.page-heading {
  font-size: 48px;
  line-height: 1.25;
  font-family: "Graphik Web", Arial, sans-serif;
  font-weight: 300;
  color: #ffffff;
  margin-top: 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .page-heading {
    font-size: 32px;
  }
}

/* ================================================
   HEADER NAVIGATION
   ================================================ */

/* Make navigation bar consistent across all pages */
.header-navigation-zone .inner {
  background: #05136c !important;
  height: 64px;
}

/* Keep white background for white navbar (about page) */
.header-navigation-zone.white .inner {
  background: #ffffff !important;
}

/* Darken nav bar text for better legibility on white header */
.header-navigation-zone.white .header-text .mt,
.header-navigation-zone.white .header-menu .menu-item a {
  opacity: 0.7 !important;
}

.header-navigation-zone.white .header-menu .menu-item a:hover {
  opacity: 1 !important;
}

/* Darken Menu button text on white header */
.header-navigation-zone.white .header-auth-wrapper .block.icons {
  color: rgba(64, 82, 106, 1) !important;
}

.header-navigation-zone.white .header-auth-wrapper .block.icons:hover {
  color: #ffffff !important;
}

/* Darken logo on white header */
.header-navigation-zone.white .header-img img {
  opacity: 1;
}

/* Adjust line-height for taller navbar */
.header-text {
  line-height: 64px !important;
}

.header-menu {
  height: 64px !important;
  line-height: 64px !important;
}

.header-menu .menu-item {
  height: 64px !important;
  line-height: 64px !important;
}

/* Make tagline text larger to match menu items */
.header-text .ml84 h3,
.header-text .ml84,
.header-navigation-zone.white .header-text .ml84 h3,
.header-navigation-zone.white .header-text .ml84 {
  font-size: 14px !important;
}

/* Override Piano logo background with MemberSpark logo */
.header-img {
  background: none !important;
}

.header-img img {
  display: block;
  width: 30px;
  height: 30px;
}

/* ================================================
   HERO SECTION
   ================================================ */

.header-get-started-wrapper {
  padding-bottom: 60px;
}

.header-get-started-wrapper p {
  font-size: 18px;
  font-weight: 500;
  opacity: 1;
}

/* ================================================
   PRODUCT TILES
   ================================================ */

/* Style .product-abbreviation the same as h1 in the original */
.products-block .tile .product-abbreviation {
  font-size: 120px;
  color: #5f7eb4;
  font-family: "Graphik Web", Arial, sans-serif;
  font-weight: 300;
  margin-bottom: 12px;
  display: block;
}

/* Fix card text contrast - remove opacity, use proper gray */
.products-block .tile p {
  opacity: 1 !important;
  color: #4a5568;
}

/* Responsive sizes for product abbreviation */
@media only screen and (min-width: 1600px) and (max-width: 1919px) {
  .products-block .tile .product-abbreviation {
    font-size: 110px;
  }
}

@media only screen and (min-width: 1260px) and (max-width: 1599px) {
  .products-block .tile .product-abbreviation {
    font-size: 90px;
  }
}

@media only screen and (max-width: 1329px) {
  .products-block .tile .product-abbreviation {
    font-size: 120px;
  }
}

/* ================================================
   MENU ABOUT COLUMN LAYOUT
   ================================================ */

/* Full height container for about column */
.column.about.full-height {
  height: 100%;
}

/* About column inner wrapper - full height with relative positioning */
.about-column-inner {
  height: 100%;
  position: relative;
}

/* Address section overflow container */
.address-overflow-container {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* ================================================
   LOGO ALIGNMENT
   ================================================ */

/* Align logo image to baseline */
.align-baseline {
  vertical-align: baseline;
}

/* ================================================
   PRODUCT TILE IMAGE CENTERING
   ================================================ */

.products-block .tile .background-layer-img {
  overflow: hidden;
  text-align: center;
}

.products-block .tile .background-layer-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ================================================
   PAGE GRID / TILE SECTION
   ================================================ */

/* Wrapper for tile grid sections on standalone pages */
.tile-section-wrapper {
  background: #efeff9;
  padding: 60px 0;
}

/* Override display:none for header-get-started-wrapper inside tile sections */
.tile-section-wrapper .header-get-started-wrapper {
  display: block !important;
  max-width: 100% !important;
  margin: 0 auto;
}

/* Title styling for tile sections */
.tile-section-wrapper .header-get-started-wrapper h1.content-title {
  color: #20225e;
  margin-bottom: 50px;
  text-align: center;
}

/* Ensure help-tiles uses full width */
.tile-section-wrapper .help-tiles {
  padding-left: 100px;
  padding-right: 100px;
}

/* Ensure bordered-tiles spans full width */
.tile-section-wrapper .bordered-tiles {
  max-width: 1600px;
  width: 100%;
}

/* ================================================
   BRAND COLORS (for future use)
   ================================================

   Navy Dark: #10114B
   Sky Blue: #3B8EDE
   Cloud Gray: #DBDCE9
   Text Gray: #4A5568
   Text Light: #718096
   Border Light: #E2E8F0

   ================================================ */

/* ================================================
   RESPONSIVE STYLES
   ================================================

   Mobile-first responsive overrides for MemberSpark.
   These styles ensure proper display on tablets and phones.

   ================================================ */

/* Reset problematic desktop-first constraints */
html,
body {
  min-width: 0 !important;
  width: 100%;
  overflow-x: hidden;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  touch-action: none !important;
}

html.menu-open {
  overflow: hidden !important;
}

/* Base responsive containers */
.global-wrapper,
.header-navigation-zone .inner {
  margin: 0 20px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}


/* ================================================
   MOBILE NAVIGATION (<768px)
   ================================================ */

@media (max-width: 768px) {
  /* Header adjustments */
  .header-navigation-zone {
    min-width: 0;
  }

  .header-navigation-zone .inner {
    margin: 0 15px;
  }

  .header-text {
    font-size: 8px;
    padding-right: 10px;
  }

  .header-text .ml84 {
    margin-left: 40px;
  }

  .header-img {
    width: 25px;
    height: 25px;
    margin: 17px 0 0 10px;
    background-size: contain;
  }

  /* Hide desktop menu items on mobile */
  .header-menu {
    display: none;
  }

  .header-auth-wrapper .menu-header-menu-pages-container {
    display: none;
  }

  /* Mobile menu button */
  .header-auth-wrapper .icons.menu {
    width: 50px;
    padding: 0 15px 0 25px;
  }

  /* Hero section */
  .header-get-started-wrapper {
    padding-top: 40px;
    margin-top: 0;
  }

  .header-get-started-wrapper .logo img {
    max-width: 280px;
  }

  .header-get-started-wrapper .content-title {
    font-size: 32px !important;
    line-height: 1.3em;
    padding: 0 20px;
  }

  .header-get-started-wrapper p {
    font-size: 16px;
    line-height: 1.5em;
    padding: 0 20px;
  }

  /* Main illustration */
  .main-illustration {
    padding: 20px;
  }

  /* Brand tiles */
  .brand {
    width: 100%;
    display: block;
  }

  .brand-wrapper {
    display: block;
  }

  /* Landing page hero */
  .global-wrapper.landing .header-get-started-wrapper,
  .global-wrapper.contact-sales .header-get-started-wrapper {
    max-width: 100%;
    padding: 40px 20px;
  }
}

/* ================================================
   MOBILE MENU OVERLAY (<1024px)
   ================================================ */

@media (max-width: 1024px) {
  .main-menu-wrapper {
    min-width: 0;
    left: 0;
    right: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(245, 246, 252, 0.99);
    touch-action: none;
    -webkit-overflow-scrolling: touch;
    z-index: 9999 !important;
    pointer-events: auto;
  }

  .main-menu {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    width: 100%;
    background: rgba(245, 246, 252, 0.99);
    pointer-events: auto;
  }

  .main-menu .column-wrapper,
  .main-menu .column-about {
    width: 100%;
    display: block;
    float: none;
    min-height: 60px;
    background: rgba(245, 246, 252, 0.99);
    pointer-events: auto;
  }

  .main-menu .column {
    display: block;
    border-right: none;
    border-bottom: 2px solid #e9eaf3;
    width: 100%;
    background: rgba(245, 246, 252, 0.99);
    touch-action: auto;
    pointer-events: auto;
  }

  .main-menu .column-heading {
    width: 100%;
    display: block;
    box-sizing: border-box;
  }

  .main-menu .menu-row {
    height: auto;
    min-height: 120px;
    border-bottom: 2px solid #e9eaf3;
    width: 100%;
    display: block;
    box-sizing: border-box;
  }

  .main-menu .menu-tile {
    width: 100%;
    display: block;
  }

  .main-menu .menu-tile .product-title {
    padding-top: 30px;
    font-size: 36px;
  }

  .main-menu .menu-tile .product-description {
    padding-bottom: 30px;
  }

  /* Fill any gaps between menu sections */
  .main-menu .column-wrapper::after,
  .main-menu .column-about::after {
    content: '';
    display: block;
    width: 100%;
    height: 20px;
    background: rgba(245, 246, 252, 0.99);
  }

  /* Ensure close button is always accessible */
  .close-main-menu {
    position: fixed;
    z-index: 10000;
    pointer-events: auto;
  }
}

/* ================================================
   TABLET STYLES (769px - 1024px)
   ================================================ */

@media (min-width: 769px) and (max-width: 1024px) {
  .global-wrapper,
  .header-navigation-zone .inner {
    margin: 0 30px;
  }

  .content-title {
    font-size: 36px;
  }

  .sub-content-title {
    font-size: 20px;
  }

  /* Products in 2 columns on tablet - use flexbox from style.css */
  /* Removed conflicting fixed height and display: inline-block */
}

/* ================================================
   TABLET & BELOW (<1024px)
   ================================================ */

@media (max-width: 1024px) {
  /* System features */
  .system-features {
    display: block;
    border-left: none;
    border-right: none;
  }

  .system-features-left-column,
  .system-features-right-column {
    display: block;
    width: 100%;
    border: none;
    padding: 40px 20px;
    text-align: center;
  }

  .system-features-left-column .content-title,
  .system-features-right-column .content-title {
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .system-features-left-column .description,
  .system-features-right-column .description {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .system-features-wrapper {
    padding: 0 20px;
  }

  /* Finance instruments */
  .finance-instruments-wrapper {
    padding: 30px 20px;
  }

  .finance-instruments-wrapper .tile {
    width: 50%;
    margin-bottom: 30px;
  }

  /* Systems wrapper */
  .systems-wrapper {
    display: block;
  }

  .systems-wrapper .left-column,
  .systems-wrapper .right-column {
    display: block;
    width: 100%;
  }

  .systems-wrapper .tile {
    width: 50%;
    height: 200px;
  }

  /* From A to Z section */
  .from-a-z {
    padding: 0 20px;
  }

  .from-a-z .tile {
    width: 100%;
    display: block;
    padding: 40px 20px;
  }

  .from-a-z .tile:first-child,
  .from-a-z .tile:last-child {
    padding: 40px 20px;
  }

  .from-a-z .tile .step-number::before,
  .from-a-z .tile .step-number::after {
    display: none;
  }

  .from-a-z .tile .step-number .wrap::before,
  .from-a-z .tile .step-number .wrap::after {
    display: none;
  }

  /* Footer */
  .footer {
    padding: 0 20px;
    margin: 0 -20px;
  }

  .footer-big-zone {
    height: auto;
    padding: 60px 20px;
  }

  .footer-text-wrapper {
    display: block;
    text-align: center;
  }

  .footer-text-wrapper .va-f {
    display: block;
    margin: 0 auto 30px;
  }

  .footer-text-wrapper .va {
    display: block;
    margin: 0 auto;
  }

  .footer-text-wrapper .va .social {
    float: none;
    display: inline-block;
    margin: 0 10px;
  }

  .footer .ms-credentials {
    height: auto;
    padding: 20px 0;
  }

  .footer .ms-credentials ul {
    line-height: normal;
  }

  .footer .ms-credentials ul li {
    display: block;
    margin: 10px 0 !important;
  }

  /* Bordered tiles */
  .bordered-tiles {
    display: block;
  }

  .bordered-tiles .tile {
    display: block;
    width: 100% !important;
    border-left: none;
    border-bottom: 3px solid #dddeec;
    padding: 40px 20px;
  }

  .bordered-tiles.locations .icon {
    display: block;
    margin: 0 auto 20px;
  }

  .bordered-tiles.locations .tile .label {
    display: block;
    text-align: center;
  }

  /* Publishers grid */
  .publishers-grid-item {
    width: 49%;
    margin: 0.5%;
  }

  .publishers-grid-item.double {
    width: 100%;
  }

  /* What's New tiles */
  .whats-new-wrapper {
    padding: 0 20px 60px;
  }

  .whats-new .bordered-tiles .date {
    margin-left: 20px;
  }

  .whats-new .bordered-tiles h2 {
    margin-left: 20px;
    font-size: 18px;
    line-height: 1.4em;
  }

  /* Help tiles */
  .help-tiles {
    padding: 30px 20px;
  }

  /* Touch-friendly buttons */
  .get-started-wrapper,
  .sign-up-btn,
  .button,
  .inquire-btn {
    min-height: 44px;
    line-height: 44px;
  }

  /* Navigation accessibility */
  .header-auth-wrapper .block {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ================================================
   SMALL MOBILE (<640px)
   ================================================ */

@media (max-width: 640px) {
  .finance-instruments-wrapper .tile {
    width: 100%;
  }

  .systems-wrapper .tile {
    width: 100%;
    float: none;
  }

  .publishers-grid-item {
    width: 100%;
    margin: 20px 0;
  }
}

/* ================================================
   EXTRA SMALL MOBILE (<480px)
   ================================================ */

@media (max-width: 480px) {
  .content-title {
    font-size: 28px !important;
    line-height: 1.3em;
  }

  .sub-content-title {
    font-size: 16px !important;
    line-height: 1.5em;
  }

  .content-description {
    font-size: 15px !important;
  }

  body {
    font-size: 14px;
  }
}

/* ================================================
   MODAL CLOSE BUTTON - Visible X
   ================================================ */

.ms-modal-close {
  background: #5f7eb4 !important;
  width: 30px !important;
  height: 30px !important;
  right: -15px !important;
  top: -15px !important;
  border-radius: 50% !important;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 100;
}

.ms-modal-close:hover {
  background: #2a6db8 !important;
}

/* Create the X using pseudo-elements */
.ms-modal-close::before,
.ms-modal-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: #fff;
}

.ms-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.ms-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ================================================
   MODAL HEADER - Illustrated Top Bar
   ================================================ */

/* Apply the MemberSpark header image */
.ms-modal .ms-modal-header .header {
  height: 100%;
  background: url("../images/modal/modal-header-bg.png") 0 0 no-repeat !important;
  border-radius: 6px 6px 0 0;
}

/* Ensure modal has proper top border radius */
.ms-modal {
  border-radius: 6px;
  overflow: visible !important;
}

/* ================================================
   MODAL RESPONSIVE (<768px)
   ================================================ */

@media (max-width: 768px) {
  .ms-modal {
    width: 95%;
    min-height: 0;
  }

  /* Scale header image to fit on mobile */
  .ms-modal .ms-modal-header .header {
    background-size: 100% auto !important;
  }

  .ms-modal-content {
    height: auto !important;
  }

  .ms-modal-footer {
    height: auto;
    padding: 20px;
  }

  .ms-modal .modal-content-wrapper {
    width: 100%;
    padding: 20px;
  }

  .ms-modal-wrapper .ms-modal .modal-content .content-form ul {
    padding: 0 20px;
  }

  .ms-modal-wrapper .ms-modal .modal-content .content-form ul li {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .ms-modal-wrapper .ms-modal .modal-content .content-form ul li:nth-child(even) {
    margin-left: 0 !important;
  }

  /* Adjust form container height for mobile */
  .ms-modal-wrapper.form .ms-modal .modal-content .content-form {
    height: auto !important;
  }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */

.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }

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

  .mobile-full-width {
    width: 100%;
  }
}

/* ================================================
   DARK BACKGROUND SECTIONS - White Text Utility
   ================================================

   Add the .dark-bg class to any section wrapper that has
   a colored/dark background and needs white text.

   Example usage:
   <div class="targeting-segments-wrapper dark-bg">

   This makes .content-title, .sub-content-title, and
   .content-p-text all display in white.

   ================================================ */

.dark-bg .content-title,
.dark-bg h1.content-title {
  color: #ffffff;
}

.dark-bg .sub-content-title,
.dark-bg .content-p-text {
  color: rgba(255, 255, 255, 0.85);
}

/* Links inside dark background sections */
.dark-bg a {
  color: #ffffff;
  text-decoration: underline;
}

.dark-bg a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ================================================
   FROM A TO Z SECTION - Typography & Contrast Fix
   ================================================ */

/* Darken background for better contrast */
.from-a-z-wrapper {
  background: #5f7eb4;
}

/* Step description - increase font size and full white for contrast */
.from-a-z .tile .step-description {
  font-size: 18px;
  line-height: 1.75;
  opacity: 1;
  color: #ffffff;
}

/* Step title - ensure proper weight and full white */
.from-a-z .tile .step-title {
  font-size: 22px;
  font-weight: 500;
  color: #ffffff;
}

/* Responsive adjustments */
@media only screen and (max-width: 1259px) {
  .from-a-z .tile .step-description {
    font-size: 16px;
    line-height: 1.6;
  }

  .from-a-z .tile .step-title {
    font-size: 20px;
  }
}

@media only screen and (max-width: 768px) {
  .from-a-z .tile .step-description {
    font-size: 15px;
    line-height: 1.55;
  }

  .from-a-z .tile .step-title {
    font-size: 18px;
    margin-bottom: 20px;
  }
}

/* ================================================
   HERO SLIDER SECTION
   ================================================ */

.ms-hero-slider {
  position: relative;
  height: 500px;
  background: linear-gradient(180deg, #4a7ab5 0%, #7ba3d4 100%);
  overflow: hidden;
}

.ms-hero-slide {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.ms-hero-slide.active {
  display: block !important;
}

.ms-hero-slide-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  max-width: 800px;
  padding: 0 40px;
}

.ms-hero-slide-inner .logo {
  margin-bottom: 30px;
}

.ms-hero-slide-inner .logo img {
  max-width: 200px;
  height: auto;
}

.ms-hero-slide-inner h1 {
  color: #fff;
  font-size: 2.2em;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.3;
}

.ms-hero-slide-inner p {
  color: rgba(255,255,255,0.85);
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ms-hero-btn {
  display: inline-block;
  background: #5f7eb4;
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.3s;
}

.ms-hero-btn:hover {
  background: #2a7dcd;
  color: #fff;
}

.ms-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.ms-hero-arrow:hover {
  opacity: 1;
}

.ms-hero-arrow:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.ms-hero-arrow.prev {
  left: 40px;
}

.ms-hero-arrow.prev:before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.ms-hero-arrow.next {
  right: 40px;
}

.ms-hero-arrow.next:before {
  transform: translate(-70%, -50%) rotate(45deg);
}

@media (max-width: 768px) {
  .ms-hero-slider {
    height: 450px;
  }

  .ms-hero-slide-inner {
    padding: 0 60px;
  }

  .ms-hero-slide-inner h1 {
    font-size: 1.6em;
  }

  .ms-hero-slide-inner p {
    font-size: 0.9em;
  }

  .ms-hero-arrow.prev {
    left: 15px;
  }

  .ms-hero-arrow.next {
    right: 15px;
  }
}

/* ================================================
   CTA BANNER SECTION
   ================================================ */

.ms-cta-banner {
  background: linear-gradient(135deg, #20225e 0%, #5f7eb4 100%);
  padding: 80px 40px !important;
  text-align: center;
  border-top: 20px solid #e5e7ef;
  border-bottom: 20px solid #e5e7ef;
}

.ms-cta-banner-inner {
  max-width: 800px;
  margin: 0 auto;
}

.ms-cta-title {
  color: #fff;
  font-size: 2.5em;
  font-weight: 300;
  margin-top: 40px;
  margin-bottom: 20px;
}

.ms-cta-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
}

.ms-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.ms-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s;
}

.ms-cta-btn.primary {
  background: #fff;
  color: #20225e;
}

.ms-cta-btn.primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.ms-cta-btn.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.ms-cta-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .ms-cta-banner {
    padding: 60px 20px;
  }

  .ms-cta-title {
    font-size: 1.8em;
  }

  .ms-cta-subtitle {
    font-size: 1em;
  }

  .ms-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .ms-cta-btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ================================================
   SINGLE IMAGE WRAPPER (for Image Left/Right sections)
   ================================================ */

.single-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  padding: 40px;
}

.single-image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================================================
   TEXT LEFT COLUMN STYLING
   When using partner-wrapper text in the left column
   of a systems-wrapper layout
   ================================================ */

.systems-wrapper .left-column.text-content,
.systems-wrapper .right-column.text-content {
  background: #ffffff;
  text-align: left;
  padding-left: 100px;
}

.systems-wrapper .left-column.text-content .partner-wrapper,
.systems-wrapper .right-column.text-content .partner-wrapper {
  text-align: left;
  display: block;
  max-width: 100%;
  padding: 60px 40px 60px 0;
}

.systems-wrapper .left-column.text-content .partner-wrapper .content-title,
.systems-wrapper .left-column.text-content .partner-wrapper .sub-content-title,
.systems-wrapper .right-column.text-content .partner-wrapper .content-title,
.systems-wrapper .right-column.text-content .partner-wrapper .sub-content-title {
  text-align: left;
}

.systems-wrapper .left-column.text-content .partner-wrapper .description,
.systems-wrapper .right-column.text-content .partner-wrapper .description {
  display: block;
  text-align: left;
}

/* Responsive adjustments for text-content columns */
@media only screen and (min-width: 1260px) and (max-width: 1599px) {
  .systems-wrapper .left-column.text-content,
  .systems-wrapper .right-column.text-content {
    padding-left: 80px;
  }
}

/* ================================================
   COMPOSER FEATURES SECTION
   ================================================ */

.ms-composer-features-wrapper {
  background: #f5f6fc;
  padding: 80px 40px;
}

.ms-composer-features {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.ms-composer-features .content-title {
  color: #20225e;
  font-size: 2.2em;
  font-weight: 300;
  margin-bottom: 15px;
}

.ms-composer-features .sub-content-title {
  color: #4a5568;
  font-size: 1.1em;
  margin-bottom: 50px;
}

.ms-composer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.ms-composer-feature {
  background: #fff;
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.ms-composer-feature.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s, transform 0.6s;
}

.ms-composer-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.ms-composer-icon {
  color: #5f7eb4;
  margin-bottom: 20px;
}

.ms-composer-feature h3 {
  color: #20225e;
  font-size: 1.2em;
  font-weight: 500;
  margin-bottom: 15px;
}

.ms-composer-feature p {
  color: #4a5568;
  font-size: 0.95em;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .ms-composer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ms-composer-features-wrapper {
    padding: 60px 20px;
  }

  .ms-composer-features .content-title {
    font-size: 1.6em;
  }

  .ms-composer-grid {
    grid-template-columns: 1fr;
  }

  .ms-composer-feature {
    padding: 30px 25px;
  }
}

/* ================================================
   60/40 TEXT & IMAGE LAYOUTS
   ================================================ */

/* Text Wide (60%) / Image Narrow (40%) - Text on Left */
.systems-wrapper.text-wide-left .left-column {
  width: 60%;
}

.systems-wrapper.text-wide-left .right-column {
  width: 40%;
}

/* Text Wide (60%) / Image Narrow (40%) - Text on Right */
.systems-wrapper.text-wide-right .left-column {
  width: 40%;
}

.systems-wrapper.text-wide-right .right-column {
  width: 60%;
}

/* Ensure images scale properly in narrow column */
.systems-wrapper.text-wide-left .single-image-wrapper img,
.systems-wrapper.text-wide-right .single-image-wrapper img {
  max-width: 100%;
  height: auto;
}

/* Mobile: Stack columns */
@media (max-width: 1024px) {
  .systems-wrapper.text-wide-left .left-column,
  .systems-wrapper.text-wide-left .right-column,
  .systems-wrapper.text-wide-right .left-column,
  .systems-wrapper.text-wide-right .right-column {
    display: block;
    width: 100%;
  }
}

/* ================================================
   TEXT/IMAGE LAYOUT ALIGNMENT FIX
   ================================================ */

/* Remove left padding on description text so it aligns with heading */
.systems-wrapper .partner-wrapper .description {
  padding-left: 0;
  padding-right: 0;
}

/* Text column padding for 60/40 layouts */
.systems-wrapper.text-wide-left .left-column .partner-wrapper,
.systems-wrapper.text-wide-right .right-column .partner-wrapper {
  padding: 40px 20px 40px 0;
}

/* Image column styling for 60/40 layouts - less whitespace, larger images */
.systems-wrapper.text-wide-left .right-column,
.systems-wrapper.text-wide-right .left-column {
  padding: 20px;
}

.systems-wrapper.text-wide-left .single-image-wrapper,
.systems-wrapper.text-wide-right .single-image-wrapper {
  text-align: center;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.systems-wrapper.text-wide-left .single-image-wrapper img,
.systems-wrapper.text-wide-right .single-image-wrapper img {
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: contain;
}

/* ================================================
   TEXT/IMAGE LAYOUT CONTAINER FIX
   ================================================ */

/* Full-width white background wrapper for systems-wrapper sections */
.systems-wrapper-container {
  background: #ffffff;
  width: 100%;
}

/* Use same padding as system-features-wrapper for consistent page margins */
.systems-wrapper-container .systems-wrapper {
  padding: 0 100px;
}

/* Ensure both columns have white background */
.systems-wrapper .left-column,
.systems-wrapper .right-column {
  background: #ffffff;
}

