/* Updated: 2026-02-03 */
/* ERP Ecosystem section (Ban3 layout) */
.erp-ecosystem { 
  background: #FFFFFF; 
  padding: 56px 0 48px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: -35px;

}
.erp-ecosystem .section-title { margin-bottom: 8px; }
.erp-ecosystem .section-text { color: #555; }

/* Central illustration */
.erp-visual { display: flex; justify-content: center; align-items: center; margin: 24px auto 32px; }
.erp-visual img { width: 100%; max-width: 560px; height: auto; background: #ffffff00; }

/* Module grid */
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; width: min(920px, 90%); margin: 0 auto; padding: 0 20px; }
@media (max-width: 900px){ .module-grid { grid-template-columns: 1fr; } }

/* Accordion card */
.module-card { background: #fff; border: 1px solid #E6E8EB; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,0.06); overflow: hidden; }
.module-card > summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px 22px; list-style: none; cursor: pointer; }
.module-card > summary::-webkit-details-marker { display: none; }
.module-card .module-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: #EAF4FF; color: #015CBF; font-size: 20px; }
.module-card.module-green .module-icon { background: #EAF8E6; color: #2F8F00; }
.module-card.module-blue  .module-icon { background: #EAF0FF; color: #0B5CD0; }
.module-card .module-title { font-weight: 700; color: #111; }
.module-card .module-subtitle { font-size: 0.95rem; color: #6B7280; margin-top: 2px; }
.module-card .module-caret { color: #6B7280; transition: transform .25s ease; }
.module-card[open] .module-caret { transform: rotate(180deg); }

/* Content */
/* Smooth collapse: start closed, animate max-height/opacity/padding */
.module-content { 
  max-height: 0; 
  overflow: hidden; 
  padding: 0 22px; 
  border-top: 0; 
  display: grid; 
  gap: 10px; 
  opacity: 0; 
  transition: max-height .35s ease, opacity .25s ease, padding .25s ease, border-top .25s ease; 
}
.module-card[open] .module-content { 
  padding: 20px 22px 22px; 
  border-top: 1px solid #EEF1F4; 
  max-height: 900px; 
  opacity: 1; 
}
.module-label { font-weight: 600; margin-top: 12px; color: #222; }
.module-label.problem { color: #D32F2F; }
.module-content p { margin: 2px 0 10px; color: #374151; line-height: 1.55; }

/* Highlight note */
.module-highlight { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: #EEF5FF; color: #0B5CD0; font-weight: 600; }
.module-card.module-green .module-highlight { background: #EDF8E8; color: #2F8F00; }

/* Focus/hover affordances */
.module-card > summary:hover { background: rgba(2, 17, 79, 0.03); }
.module-card > summary:focus-visible { outline: 3px solid #8cd627; outline-offset: 3px; border-radius: 12px; }

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
  .module-content { transition: none; }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .erp-ecosystem .section-title,
  .erp-ecosystem .section-text {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

@media (max-width: 480px) {
  .erp-ecosystem .section-title,
  .erp-ecosystem .section-text {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
/* Module content images */
.module-image-wrapper {
  width: 100%;
  max-width: 500px;
  margin: 16px auto 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.module-content-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Module CTA button */
.module-cta-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0B5CD0 0%, #015CBF 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(11, 92, 208, 0.25);
}

.module-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11, 92, 208, 0.35);
}

.module-cta-btn:active {
  transform: translateY(0);
}

.module-card.module-green .module-cta-btn {
  background: linear-gradient(135deg, #2F8F00 0%, #27a800 100%);
  box-shadow: 0 4px 12px rgba(47, 143, 0, 0.25);
}

.module-card.module-green .module-cta-btn:hover {
  box-shadow: 0 6px 18px rgba(47, 143, 0, 0.35);
}
/* Dark theme overrides - Allowing inheritance */
body.dark-theme .module-card h1,
body.dark-theme .module-card h2,
body.dark-theme .module-card h3,
body.dark-theme .module-card p,
body.dark-theme .module-content p {
  color: inherit;
}