/* =============================================
   SolutionMall Solution Page Styles
   ============================================= */

/* Solution Page Body */
.solution-page {
  background: #0a1628;
  color: #e2e8f0;
}

/* Solution Hero */
.sol-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
  overflow: hidden;
}

.sol-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sol-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sol-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 40, 0.3) 0%,
    rgba(10, 22, 40, 0.7) 50%,
    rgba(10, 22, 40, 0.95) 100%
  );
}

.sol-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
}

.sol-back-btn {
  display: inline-block;
  color: #60a5fa;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.sol-back-btn:hover {
  color: #93c5fd;
}

.sol-number {
  font-size: 0.85rem;
  font-weight: 600;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  background: rgba(59, 130, 246, 0.15);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.sol-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.sol-subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.sol-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sol-tag {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Main Content */
.sol-main {
  padding: 3rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.sol-section {
  margin-bottom: 4rem;
}

.sol-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
  position: relative;
}

.sol-section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #3b82f6;
}

/* Overview Grid */
.sol-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .sol-overview-grid {
    grid-template-columns: 1fr;
  }
}

.sol-overview-text p {
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.sol-key-points {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sol-key-point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.kp-icon {
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.sol-overview-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.sol-overview-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* Architecture Diagram */
.sol-arch-diagram {
  background: rgba(15, 30, 60, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
}

.arch-layer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.arch-node {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  min-width: 140px;
  transition: all 0.3s;
}

.arch-node:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateY(-2px);
}

.arch-node-primary {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  min-width: 200px;
}

.arch-node-cabinet {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  min-width: 280px;
}

.arch-node-device {
  min-width: 120px;
}

.arch-node-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.arch-node-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
}

.arch-node-sub {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.arch-arrow-down {
  color: #3b82f6;
  font-size: 0.85rem;
  margin: 0.5rem 0;
  font-weight: 500;
}

/* Products Grid */
.sol-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.sol-product-card {
  background: rgba(15, 30, 60, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.sol-product-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

.sol-product-num {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(59, 130, 246, 0.3);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.sol-product-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
}

.sol-product-card p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sol-product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sol-product-specs span {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
}

/* Workflow */
.sol-workflow {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.sol-workflow::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #3b82f6, rgba(59, 130, 246, 0.1));
}

.workflow-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  position: relative;
}

.workflow-num {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.workflow-content {
  background: rgba(15, 30, 60, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  flex: 1;
}

.workflow-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
}

.workflow-content p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

/* Specs Table */
.sol-specs-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.sol-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.sol-specs-table th {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  font-weight: 600;
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.9rem;
}

.sol-specs-table td {
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  color: #94a3b8;
  font-size: 0.9rem;
}

.sol-specs-table td:first-child {
  color: #e2e8f0;
  font-weight: 500;
}

.sol-specs-table tr:last-child td {
  border-bottom: none;
}

.sol-specs-table tr:hover td {
  background: rgba(59, 130, 246, 0.05);
}

/* Selection Guide */
.sol-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.sel-card {
  background: rgba(15, 30, 60, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
}

.sel-card-featured {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.1);
}

.sel-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.75rem;
}

.sel-card p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sel-tag {
  display: inline-block;
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.sel-tag-featured {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

/* CTA Section */
.sol-cta-section {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.3), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  margin-bottom: 3rem;
}

.sol-cta-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 1rem;
}

.sol-cta-content p {
  color: #94a3b8;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.sol-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Related Solutions */
.sol-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.sol-related-card {
  background: rgba(15, 30, 60, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.3s;
  display: block;
}

.sol-related-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.sol-related-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(59, 130, 246, 0.4);
  margin-bottom: 0.5rem;
}

.sol-related-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* Footer */
.sol-footer {
  background: rgba(5, 12, 25, 0.95);
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  padding: 2rem 0;
  margin-top: 2rem;
}

.sol-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}

.sol-footer-logo {
  height: 36px;
  width: auto;
}

.sol-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.sol-footer-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.sol-footer-links a:hover {
  color: #60a5fa;
}

.sol-footer-copy {
  color: #475569;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .sol-hero {
    min-height: 50vh;
  }
  .sol-main {
    padding: 2rem 1rem;
  }
  .sol-cta-section {
    padding: 2rem 1.5rem;
  }
  .sol-footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .sol-workflow::before {
    display: none;
  }
}

/* ══════════════════════════════════════════════
   SOLUTION PAGE EXTENDED STYLES
══════════════════════════════════════════════ */
.sol-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  overflow: hidden;
  color: #fff;
}
.sol-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sol-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.sol-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,33,71,0.92) 0%, rgba(26,58,110,0.85) 50%, rgba(14,165,233,0.65) 100%);
}
.sol-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.sol-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.sol-back-link:hover { color: #38bdf8; }
.sol-eyebrow {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.sol-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.sol-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 60ch;
  line-height: 1.7;
  margin-bottom: 20px;
}
.sol-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.sol-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(14,165,233,0.2);
  border: 1px solid rgba(14,165,233,0.4);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 600;
}
.sol-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Main Layout */
.sol-main { padding: 64px 0; }
.sol-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.sol-content { display: flex; flex-direction: column; gap: 48px; }
.sol-section {}
.sol-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0d2147;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #dbeafe;
}

/* Spec Table */
.spec-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(148,163,184,0.24); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table tr:nth-child(even) { background: #f8fafc; }
.spec-table tr:hover { background: #eff6ff; }
.spec-label { padding: 12px 20px; font-weight: 700; color: #0d2147; width: 40%; border-bottom: 1px solid rgba(148,163,184,0.16); }
.spec-value { padding: 12px 20px; color: #475569; border-bottom: 1px solid rgba(148,163,184,0.16); }

/* Modules Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.module-card {
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(148,163,184,0.24);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.06);
  transition: all 0.24s ease;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15,23,42,0.10);
  border-color: #bfdbfe;
}
.module-title { font-size: 14px; font-weight: 700; color: #0d2147; margin-bottom: 6px; }
.module-desc { font-size: 13px; color: #475569; line-height: 1.5; }

/* Products */
.products-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.product-tag {
  padding: 8px 16px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.product-tag:hover { background: #dbeafe; }

/* Why Grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.why-card {
  padding: 24px;
  background: linear-gradient(135deg, #0d2147, #1a3a6e);
  border-radius: 16px;
  color: #fff;
}
.why-icon { font-size: 28px; margin-bottom: 12px; }
.why-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.6; }

/* Sidebar */
.sol-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(148,163,184,0.24);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(15,23,42,0.08);
}
.sidebar-title { font-size: 15px; font-weight: 700; color: #0d2147; margin-bottom: 10px; }
.sidebar-desc { font-size: 13px; color: #475569; margin-bottom: 16px; line-height: 1.5; }
.sidebar-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 10px;
  transition: all 0.24s ease;
}
.sidebar-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(14,165,233,0.35); }
.sidebar-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid rgba(148,163,184,0.4);
  color: #0d2147;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.24s ease;
}
.sidebar-btn-secondary:hover { border-color: #0ea5e9; color: #0ea5e9; }
.sidebar-contact { display: flex; flex-direction: column; gap: 10px; }
.sidebar-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-contact a:hover { color: #0ea5e9; }
.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sidebar-links a {
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  padding: 4px 0;
  border-bottom: 1px solid rgba(148,163,184,0.12);
}
.sidebar-links a:hover { color: #0ea5e9; }

/* Responsive */
@media (max-width: 1024px) {
  .sol-layout { grid-template-columns: 1fr; }
  .sol-sidebar { position: static; }
}
@media (max-width: 768px) {
  .modules-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .sol-hero { min-height: 50vh; }
}

/* Logo filter for solution pages */
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.site-header:not(.scrolled) .brand-logo {
  filter: brightness(0) invert(1);
}
.site-header.scrolled .brand-logo {
  filter: none;
}
.site-header.scrolled .nav-link {
  color: var(--text, #1e293b) !important;
}
.site-header.scrolled .nav-link:hover {
  color: var(--brand, #1d6fce) !important;
}

/* Footer logo - always show blue (footer has white background) */
.site-footer .brand-logo,
.footer-logo-link .brand-logo {
  filter: none !important;
}
