.expert__cases {
    padding: 5rem 1.5rem;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4299e1;
    border-radius: 2px;
}
.section-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 700px;
    margin: 2rem auto 0;
    line-height: 1.7;
}
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}
.case-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    width: -webkit-fill-available;
    transition: 
    transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28), 
    box-shadow 0.3s ease-out,
    opacity 0.5s ease-out;
    position: relative;
    border: 1px solid #edf2f7;
    transform: translateY(20px);
    opacity: 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
}
.case-card.visible {
    transform: translateY(0);
    opacity: 1;
}
.case-card:hover {
  box-shadow: 0 8px 16px rgba(66, 153, 225, 0.12);
  transform: translateY(-8px) !important; 
}
.case-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #4299e1;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.2);
}
.case-badge i {
    font-size: 0.9rem;
}
.case-icon {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ebf4ff;
    position: relative;
    overflow: hidden;
}
.case-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, #ebf4ff 0%, #d6e6ff 100%);
  z-index: 1;
}
.case-icon i {
    font-size: 3.5rem;
    color: #3182ce;
    position: relative;
    z-index: 2;
}
.case-content {
    padding: 1.8rem;
}
.case-category {
    display: inline-block;
    background: #ebf8ff;
    color: #3182ce;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}
.case-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
    position: relative;
    padding-bottom: 0.8rem;
}
.case-name::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #4299e1;
    border-radius: 2px;
}
.case-desc {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    box-sizing: border-box;
    word-wrap: break-word;
}
.case-stats {
    display: flex;
    gap: 1vh;
    margin-bottom: 1.5rem;
    flex-direction: row;
    justify-content: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-label {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.3rem;
}
.case-result {
    background: #f0f9ff;
    border-left: 3px solid #4299e1;
    padding: 1.2rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1.2rem;
}
.result-title {
    font-weight: 600;
    color: #3182ce;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.result-desc {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    box-sizing: border-box;
    word-wrap: break-word;
}
.light-accent {
    position: absolute;
    z-index: 0;
    opacity: 0.08;
    pointer-events: none;
}
.light-accent.circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 15px solid #4299e1;
    top: 5%;
    left: 5%;
}
.light-accent.triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #63b3ed;
    bottom: 10%;
    right: 5%;
}
@media (max-width: 1200px) {
  .expert__cases {
    padding: 4rem 1rem;
  }
  .case-name {
    font-size: 1.4rem;
  }
  .section-subtitle {
    font-size: 1.1rem;
  }
}
@media (max-width: 992px) {
  .cases-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  .case-icon i {
    font-size: 3rem;
  }
  .case-content {
    padding: 1.5rem;
  }
  .case-name {
    font-size: 1.3rem;
  }
}
@media (max-width: 768px) {
  .expert__cases {
    padding: 3rem 1rem;
  }
  .section-title::after {
    width: 60px;
    height: 3px;
  }
  .section-subtitle {
    font-size: 1rem;
    margin: 1.5rem auto 0;
  }
  .case-icon {
    height: 120px;
  }
  .case-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  .result-title {
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .cases-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
    justify-items: center;
  }
  .stat-value {
    font-size: 18px;
  }
  .stat-label {
    font-size: 14px !important;
  }
}
@media (max-width: 576px) {
  .expert__cases {
    padding: 2.5rem 0.8rem;
  }
  .case-card {
    border-radius: 12px;
  }
  .cases-grid {
    padding: 1vh;
  }
  .case-content {
    padding: 1.2rem;
  }
  .case-name {
    font-size: 1.2rem;
  }
  .case-desc {
    font-size: 1rem;
  }
  .case-badge {
    top: 12px;
    right: 12px;
  }
  .light-accent.circle {
    width: 200px;
    height: 200px;
    border-width: 10px;
  }
  .light-accent.triangle {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #63b3ed;
  }
}