/* ===== Solutions Section ===== */
.royal-solutions-section {
  background: var(--royal-bg-white);
  padding: var(--royal-space-xxl) 0;
}

.royal-solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--royal-space-lg);
}

.royal-solution-card {
  background: var(--royal-bg-white);
  border-radius: var(--royal-radius-lg);
  padding: var(--royal-space-xl) var(--royal-space-lg);
  box-shadow: var(--royal-shadow);
  transition: var(--royal-transition);
  border: 1px solid var(--royal-border-light);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.royal-solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--royal-shadow-md);
}

.royal-solution-icon-bg {
  width: 100px;
  height: 100px;
  border-radius: var(--royal-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--royal-space-md);
  position: relative;
  overflow: hidden;
}

/* Multi-color gradient backgrounds */
.royal-solution-card:nth-child(1) .royal-solution-icon-bg { background: var(--royal-gradient-primary); }
.royal-solution-card:nth-child(2) .royal-solution-icon-bg { background: var(--royal-gradient-green); }
.royal-solution-card:nth-child(3) .royal-solution-icon-bg { background: var(--royal-gradient-purple); }
.royal-solution-card:nth-child(4) .royal-solution-icon-bg { background: var(--royal-gradient-orange); }
.royal-solution-card:nth-child(5) .royal-solution-icon-bg { background: var(--royal-gradient-red); }
.royal-solution-card:nth-child(6) .royal-solution-icon-bg { background: var(--royal-gradient-cyan); }

.royal-solution-icon {
  font-size: var(--royal-font-xxl);
  color: white;
}

.royal-solution-card h3 {
  margin-bottom: var(--royal-space-sm);
  color: var(--royal-text-dark);
  font-weight: 600;
}

.royal-solution-card h3 a {
  font-size: var(--royal-font-md);
}

.royal-solution-card p {
  color: var(--royal-text-light);
  line-height: 1.5;
  font-size: var(--royal-font-sm);
}

/* Solutions Page Specific Styles */
.royal-section-pain-points,
.royal-section-core-advantages,
.royal-section-solution-approach,
.royal-solutions-list-section {
  margin-bottom: 4rem;
}

/* Pain Points Grid */
.royal-pain-points-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: stretch;
  margin-top: 2rem;
}

.royal-pain-point-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--royal-bg-white);
  border-radius: var(--royal-radius-md);
  padding: 2rem;
  box-shadow: var(--royal-shadow);
  transition: var(--royal-transition);
  border: 1px solid var(--royal-border-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.royal-pain-point-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--royal-shadow-md);
}

.royal-pain-point-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--royal-radius-lg);
  background: var(--royal-gradient-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: var(--royal-font-xl);
}

/* Pain point icon color variations */
.royal-pain-point-card:nth-child(2) .royal-pain-point-icon { background: var(--royal-gradient-orange); }
.royal-pain-point-card:nth-child(3) .royal-pain-point-icon { background: var(--royal-gradient-purple); }
.royal-pain-point-card:nth-child(4) .royal-pain-point-icon { background: var(--royal-gradient-cyan); }

.royal-pain-point-card h3 {
  min-height: 2.8em;
  font-size: var(--royal-font-md);
  margin-bottom: 1rem;
  color: var(--royal-text-dark);
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.royal-pain-point-card p {
  min-height: 4.8em;
  color: var(--royal-text-light);
  line-height: 1.6;
  font-size: var(--royal-font-sm);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Core Advantages Grid */
.royal-advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
  margin-top: 2rem;
}

.royal-advantage-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--royal-bg-white);
  border-radius: var(--royal-radius-md);
  padding: 2rem;
  box-shadow: var(--royal-shadow);
  transition: var(--royal-transition);
  border: 1px solid var(--royal-border-light);
  position: relative;
  overflow: hidden;
}

.royal-advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--royal-shadow-md);
}

.royal-advantage-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: var(--royal-font-xxl);
  font-weight: 800;
  color: var(--royal-blue-100);
  z-index: 1;
}

/* Advantage number content */
.royal-advantage-card:nth-child(1) .royal-advantage-number::before { content: "01"; }
.royal-advantage-card:nth-child(2) .royal-advantage-number::before { content: "02"; }
.royal-advantage-card:nth-child(3) .royal-advantage-number::before { content: "03"; }
.royal-advantage-card:nth-child(4) .royal-advantage-number::before { content: "04"; }

.royal-advantage-number::before {
  display: block;
  font-size: var(--royal-font-xxl);
  font-weight: bold;
  color: var(--royal-primary);
  margin-bottom: 15px;
}

.royal-advantage-card h3 {
  min-height: 2.8em;
  font-size: var(--royal-font-md);
  margin-bottom: 1rem;
  color: var(--royal-text-dark);
  font-weight: 600;
  line-height: 1.4;
  position: relative;
  z-index: 2;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.royal-advantage-card p {
  min-height: 4.8em;
  color: var(--royal-text-light);
  line-height: 1.6;
  font-size: var(--royal-font-default);
  position: relative;
  z-index: 2;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Solution Approach Steps */
.royal-approach-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.royal-approach-step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  background: var(--royal-bg-white);
  border-radius: var(--royal-radius-md);
  padding: 2rem;
  box-shadow: var(--royal-shadow);
  transition: var(--royal-transition);
  border: 1px solid var(--royal-border-light);
}

.royal-approach-step:hover {
  transform: translateX(5px);
  box-shadow: var(--royal-shadow-md);
}

.royal-step-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--royal-radius-lg);
  background: var(--royal-gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--royal-font-md);
  flex-shrink: 0;
}

/* Step icon color variations */
.royal-approach-step:nth-child(2) .royal-step-icon { background: var(--royal-gradient-green); }
.royal-approach-step:nth-child(3) .royal-step-icon { background: var(--royal-gradient-purple); }
.royal-approach-step:nth-child(4) .royal-step-icon { background: var(--royal-gradient-orange); }

.royal-step-content {
  flex: 1;
}

.royal-step-content h3 {
  font-size: var(--royal-font-md);
  margin-bottom: 1rem;
  color: var(--royal-text-dark);
  font-weight: 600;
}

.royal-step-content p {
  color: var(--royal-text-light);
  line-height: 1.6;
  font-size: var(--royal-font-default);
}

/* Solutions Grid Page */
.royal-solutions-grid-page {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.royal-solution-card-page {
  background: var(--royal-bg-white);
  border-radius: var(--royal-radius-md);
  overflow: hidden;
  box-shadow: var(--royal-shadow);
  transition: var(--royal-transition);
  border: 1px solid var(--royal-border-light);
  position: relative;
}

.royal-solution-card-page:hover {
  transform: translateY(-5px);
  box-shadow: var(--royal-shadow-md);
}

.royal-solution-image {
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 62%;
  overflow: hidden;
  border-radius: var(--royal-radius);
  position: relative;
}

.royal-solution-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--royal-transition-slow);
}

.royal-solution-card-page:hover .royal-solution-image img {
  transform: scale(1.05);
}

.royal-solution-card-content {
  padding: 1.5rem;
}

.royal-solution-card-page h3 {
  font-size: var(--royal-font-md);
  margin-bottom: 1rem;
  color: var(--royal-text-dark);
  font-weight: 600;
  line-height: 1.4;
}

.royal-solution-card-page p {
  color: var(--royal-text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: var(--royal-font-sm);
}

/* Solution Meta Information */
.royal-solution-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 1.5rem 0;
  font-size: var(--royal-font-sm);
  flex-wrap: wrap;
}

.royal-solution-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  background: var(--royal-bg-light);
  border-radius: 20px;
  border: 1px solid var(--royal-border-light);
  transition: var(--royal-transition);
}

.royal-solution-meta i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* Meta icon color variations */
.royal-solution-meta span:nth-child(1) i { background: var(--royal-gradient-primary); }
.royal-solution-meta span:nth-child(2) i { background: var(--royal-gradient-orange); }
.royal-solution-meta span:nth-child(3) i { background: var(--royal-gradient-purple); }

.royal-solution-meta span:hover {
  background: var(--royal-bg-white);
  box-shadow: var(--royal-shadow-sm);
  transform: translateY(-2px);
}

.royal-solution-meta span:hover i {
  transform: scale(1.1);
}

/* Solution Tags */
.royal-solution-tags {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.royal-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 1.5rem 0 0;
}

.royal-tag,
.royal-tag-item {
  background: var(--royal-blue-100);
  color: var(--royal-blue-500);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: var(--royal-font-xs);
  font-weight: 600;
}

/* Solution Actions */
.royal-solution-actions {
  display: flex;
  gap: 1rem;
}

.royal-solution-actions .royal-btn {
  flex: 1;
  text-align: center;
  padding: 0.7rem 1rem;
}

.royal-solution-list-page {
  background: linear-gradient(180deg, var(--royal-bg-light) 0%, var(--royal-bg-white) 42%, var(--royal-bg-light) 100%);
}

.royal-solution-list-page .royal-category-directory {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.royal-solution-list-page .royal-category-row-label {
  flex: 0 0 auto;
  color: var(--royal-text-dark);
  font-size: var(--royal-font-sm);
  font-weight: 800;
}

.royal-solution-list-page .royal-category-nav-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.35rem;
  min-width: 0;
}

.royal-solution-list-page .royal-category-nav-item {
  display: inline-flex;
  align-items: center;
  max-width: 12em;
  padding: 0;
  cursor: pointer;
  border: 0;
  transition: var(--royal-transition);
  color: var(--royal-text-dark);
  background: transparent;
  font-size: var(--royal-font-sm);
  font-family: inherit;
  font-weight: 700;
  line-height: 1.6;
}

.royal-solution-list-page .royal-category-nav-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.royal-solution-list-page .royal-category-nav-item.royal-active {
  color: var(--royal-primary-blue);
  background: transparent;
}

.royal-solution-list-page .royal-category-nav-item.royal-active .royal-category-nav-text {
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 2px;
}

.royal-solution-list-page .royal-category-nav-item:hover {
  color: var(--royal-primary-blue);
  background: transparent;
  transform: none;
}

.royal-solutions-filter {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 2rem;
  background: var(--royal-bg-white);
  padding: 1.5rem;
  border-radius: var(--royal-radius-md);
  box-shadow: var(--royal-shadow);
  border: 1px solid var(--royal-border-light);
}

.royal-solution-tab-panel {
  display: none;
}

.royal-solution-tab-panel.royal-active {
  display: block;
}

.royal-solution-list-page .royal-solutions-list-section {
  margin-bottom: 3rem;
}

.royal-solution-list-page .royal-solutions-grid {
  display: grid;
  align-items: stretch;
  gap: 1.6rem;
  margin-bottom: 2.6rem;
}

.royal-scenario-list-page .royal-solutions-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.royal-case-list-page .royal-solutions-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.royal-solution-list-page .royal-solution-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  text-align: left;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: var(--royal-radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--royal-shadow-sm);
}

.royal-solution-list-page .royal-solution-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--royal-shadow-md);
}

.royal-solution-list-page .royal-solution-image {
  height: 0;
  padding-bottom: 58%;
  border-radius: var(--royal-radius-lg) var(--royal-radius-lg) 0 0;
  background: var(--royal-gradient-primary);
}

.royal-solution-list-page .royal-solution-image::after {
  display: none;
}

.royal-solution-list-page .royal-solution-image img {
  border-radius: inherit;
}

.royal-solution-list-page .royal-solution-card:hover .royal-solution-image img {
  transform: scale(1.06);
}

.royal-solution-list-page .royal-solution-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.45rem;
}

.royal-solution-eyebrow {
  margin-bottom: 0.5rem;
  color: var(--royal-primary-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.royal-solution-list-page .royal-solution-card h3 {
  min-height: 2.7em;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.royal-solution-list-page .royal-solution-card h3 a {
  display: -webkit-box;
  color: var(--royal-text-dark);
  font-size: var(--royal-font-md);
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.royal-solution-list-page .royal-solution-card p {
  min-height: 3.1rem;
  margin-bottom: 1rem;
  color: var(--royal-text-light);
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.royal-solution-list-page .royal-tags-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  min-height: 1.8rem;
  max-height: 1.8rem;
  margin: 0.2rem 0 1.2rem;
  overflow: hidden;
}

.royal-solution-list-page .royal-tag-item {
  max-width: 100%;
  color: var(--royal-primary-blue);
  background: var(--royal-blue-50);
  border: 1px solid var(--royal-blue-100);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.royal-solution-card-footer {
  margin-top: auto;
}

.royal-solution-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
  height: auto;
  color: var(--royal-primary-blue);
  background: transparent;
  border-radius: 0;
  font-weight: 800;
  box-shadow: none;
  transition: var(--royal-transition);
}

.royal-solution-detail-link:hover {
  color: var(--royal-blue-600);
  transform: translateX(3px);
  box-shadow: none;
}

.royal-case-list-page .royal-solution-card {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  min-height: 260px;
}

.royal-case-list-page .royal-solution-image {
  height: 100%;
  min-height: 260px;
  padding-bottom: 0;
  border-radius: var(--royal-radius-lg) 0 0 var(--royal-radius-lg);
}

.royal-case-list-page .royal-solution-image::after {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.6));
}

.royal-case-list-page .royal-solution-card-content {
  padding: 1.7rem;
}

.royal-case-list-page .royal-solution-eyebrow {
  color: var(--royal-cyan-500, var(--royal-primary-blue));
}

.royal-case-list-page .royal-solution-card h3 a {
  font-size: 1.1rem;
}

.royal-case-list-page .royal-solution-card h3 {
  min-height: 2.95em;
}

.royal-case-list-page .royal-solution-card p {
  -webkit-line-clamp: 3;
  min-height: 4.95em;
}

.royal-case-client-section {
  margin-top: 0.5rem;
}

.royal-case-client-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.royal-case-client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 1.2rem;
  overflow: hidden;
  border: 0;
  border-radius: var(--royal-radius-md);
  background: var(--royal-bg-white);
  box-shadow: var(--royal-shadow-sm);
  transition: var(--royal-transition);
}

.royal-case-client-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--royal-shadow-md);
}

.royal-case-client-logo img {
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
  transition: var(--royal-transition);
}

.royal-case-client-logo:hover img {
  transform: scale(1.06);
}

@media (max-width: 1200px) {
  .royal-scenario-list-page .royal-solutions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .royal-case-list-page .royal-solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 992px) {
  .royal-scenario-list-page .royal-solutions-grid,
  .royal-case-list-page .royal-solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .royal-case-list-page .royal-solution-card {
    display: flex;
    min-height: 0;
  }

  .royal-case-list-page .royal-solution-image {
    height: 0;
    min-height: 0;
    padding-bottom: 58%;
    border-radius: var(--royal-radius-lg) var(--royal-radius-lg) 0 0;
  }

  .royal-case-client-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .royal-solution-list-page .royal-category-directory {
    width: 100%;
    margin-bottom: 1.6rem;
    padding: 1rem;
  }

  .royal-solution-list-page .royal-category-nav-item {
    min-height: 32px;
    font-size: var(--royal-font-xs);
  }

  .royal-scenario-list-page .royal-solutions-grid,
  .royal-case-list-page .royal-solutions-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
    padding: 0 !important;
  }

  .royal-solution-list-page .royal-solution-card-content {
    padding: 1.2rem;
  }

  .royal-case-client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .royal-case-client-logo {
    min-height: 78px;
    padding: 0.9rem;
  }
}
