/* ===== Solution Detail Page ===== */

/* ===== Main Image ===== */
.sol-main-img {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
}
.sol-main-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* ===== Description ===== */
.sol-description {
  margin-bottom: 40px;
}
.sol-description h2,
.sol-features h2,
.sol-gallery h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(var(--primary-rgb), 0.1);
  color: #1a1a2e;
}
.sol-desc-text {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.9;
}

/* ===== Features ===== */
.sol-features {
  margin-bottom: 40px;
}
.sol-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.sol-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}
.sol-feature-item:hover {
  background: rgba(var(--primary-rgb), 0.04);
  border-color: rgba(var(--primary-rgb), 0.12);
  transform: translateX(4px);
}
.sol-feature-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: #fff;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.sol-feature-item span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
}

/* ===== Gallery ===== */
.sol-gallery {
  margin-bottom: 20px;
}
.sol-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sol-gallery-item {
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
}
.sol-gallery-item::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.sol-gallery-item:hover::after {
  opacity: 1;
}
.sol-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.sol-gallery-item:hover img {
  transform: scale(1.08);
}

/* ===== Gallery Lightbox ===== */
.sol-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.sol-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.sol-lb-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sol-lb-close:hover {
  background: rgba(255,255,255,0.2);
}
.sol-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sol-lb-nav:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}
.sol-lb-prev { left: 24px; }
.sol-lb-next { right: 24px; }
.sol-lb-main {
  max-width: 75%;
  max-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.sol-lb-main img {
  max-width: 100%;
  max-height: 65vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: opacity 0.3s;
}
.sol-lb-strip {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  max-width: 80%;
  overflow-x: auto;
}
.sol-lb-strip img {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.4;
  border: 2px solid transparent;
  transition: all 0.3s;
  flex-shrink: 0;
}
.sol-lb-strip img:hover {
  opacity: 0.7;
}
.sol-lb-strip img.active {
  opacity: 1;
  border-color: var(--accent);
}
.sol-lb-counter {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-top: 12px;
  font-weight: 500;
}

/* ===== Sidebar ===== */
.sol-sidebar {
  position: sticky;
  top: 100px;
}
.sol-sidebar-card {
  background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
  border-radius: 20px;
  padding: 32px 24px 24px;
  border: 1px solid rgba(var(--primary-rgb), 0.08);
  box-shadow: 0 4px 24px rgba(var(--primary-rgb), 0.06);
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.sol-sidebar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}
.sol-sidebar-icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 16px;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.25);
}
.sol-sidebar-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a2e;
}
.sol-sidebar-card p {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 20px;
  line-height: 1.6;
}
.sol-sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}
.sol-sidebar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
  color: #fff;
}
.sol-sidebar-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 18px 0;
}
.sol-sidebar-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6b7280;
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.3s;
}
.sol-sidebar-contact-item:hover {
  color: var(--primary);
}
.sol-sidebar-contact-item i {
  color: var(--primary);
  font-size: 0.85rem;
}
.sol-sidebar-list {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.sol-sidebar-list h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}
.sol-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.sol-sidebar-link:hover {
  background: rgba(var(--primary-rgb), 0.06);
  color: var(--primary);
}
.sol-sidebar-link i:first-child {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--primary);
  flex-shrink: 0;
}
.sol-sidebar-link span {
  flex: 1;
}
.sol-sidebar-link .fa-chevron-right {
  font-size: 0.7rem;
  color: #9ca3af;
  transition: transform 0.3s;
}
.sol-sidebar-link:hover .fa-chevron-right {
  transform: translateX(3px);
  color: var(--primary);
}

/* ===== CTA Section ===== */
.sol-cta {
  background: #f8fafc;
}
.sol-cta-card {
  display: flex;
  background: #111827;
  border-radius: 24px;
  overflow: hidden;
  height: 180px;
  position: relative;
}
.sol-cta-content {
  flex: 1;
  display: flex;
  padding: 24px 30px;
  position: relative;
}
.sol-cta-accent {
  width: 4px;
  background: linear-gradient(180deg, var(--accent), #d4a017);
  border-radius: 4px;
  flex-shrink: 0;
  margin-right: 28px;
}
.sol-cta-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sol-cta-text h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
}
.sol-cta-text h2 span {
  color: var(--accent);
}
.sol-cta-text p {
  color: #9ca3af;
  font-size: 0.82rem;
  margin-bottom: 19px;
  line-height: 1.4;
}
.sol-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #111827;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 22px;
  font-size: 0.85rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content;
  box-shadow: 0 4px 15px rgba(0, 200, 255, 0.3);
}
.sol-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 200, 255, 0.45);
  color: #111827;
}
.sol-cta-img {
  width: 45%;
  position: relative;
  overflow: hidden;
}
.sol-cta-img::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(90deg, #111827, transparent);
  z-index: 1;
  border-radius: 0 60px 60px 0;
}
.sol-cta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.sol-cta-card:hover .sol-cta-img img {
  transform: scale(1.05);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .sol-main-img img {
    height: 280px;
  }
  .sol-features-grid {
    grid-template-columns: 1fr;
  }
  .sol-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sol-sidebar {
    position: static;
  }
  .sol-cta-card {
    flex-direction: column;
  }
  .sol-cta-img {
    width: 100%;
    height: 220px;
  }
  .sol-cta-img::before {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, #111827, transparent);
    border-radius: 0;
  }
  .sol-cta-content {
    padding: 32px 28px;
  }
  .sol-cta-text h2 {
    font-size: 1.4rem;
  }
}
@media (max-width: 575px) {
  .sol-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}
