.banner-section {
  position: relative;
  background: url('../images/affairs/img_banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 185px 0 185px;
  color: white;
}
.banner-section .banner-content {
  padding: 0 var(--content-padding);
  margin: 0 auto;
  text-align: left;
}
.banner-section .banner-content .banner-text {
  margin-left: 7%;
}
.banner-section .banner-content .banner-text .banner-title {
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 43px;
  font-weight: bold;
  margin-bottom: 48px;
  line-height: 1.2;
  max-width: 40%;
  margin-right: auto;
}
.banner-section .banner-content .banner-text .banner-description {
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 40%;
  margin-right: auto;
}
.affairs-content-section {
  padding: 60px 0 80px;
  background: #fff;
}
.affairs-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: flex-start;
}
.affairs-sidebar .affairs-nav {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0;
  border: 1px solid #e9ecef;
}
.affairs-sidebar .affairs-nav .nav-section {
  border-bottom: 1px solid #e9ecef;
}
.affairs-sidebar .affairs-nav .nav-section:last-child {
  border-bottom: none;
}
.affairs-sidebar .affairs-nav .nav-section .nav-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #212529;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}
.affairs-sidebar .affairs-nav .nav-section .nav-section-title:hover {
  background: #f1f3f4;
}
.affairs-sidebar .affairs-nav .nav-section .nav-section-title.active {
  background: #241ce8;
  color: white;
}
.affairs-sidebar .affairs-nav .nav-section .nav-section-title .nav-expand {
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.3s ease;
}
.affairs-sidebar .affairs-nav .nav-section .nav-subsection {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: white;
  margin: 0;
  padding: 0;
  list-style: none;
}
.affairs-sidebar .affairs-nav .nav-section .nav-subsection.expanded {
  max-height: 300px;
}
.affairs-sidebar .affairs-nav .nav-section .nav-subsection li {
  border-bottom: 1px solid #f1f3f4;
}
.affairs-sidebar .affairs-nav .nav-section .nav-subsection li:last-child {
  border-bottom: none;
}
.affairs-sidebar .affairs-nav .nav-section .nav-subsection li .nav-link {
  display: block;
  padding: 16px 48px;
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 14px;
  color: #6c757d;
  text-decoration: none;
  transition: all 0.3s ease;
}
.affairs-sidebar .affairs-nav .nav-section .nav-subsection li .nav-link:hover {
  background: #f8f9fa;
  color: #241ce8;
}
.affairs-sidebar .affairs-nav .nav-section .nav-subsection li .nav-link.active {
  background: #e3f2fd;
  color: #241ce8;
  font-weight: 500;
  border-left: 3px solid #241ce8;
}
.affairs-sidebar .affairs-nav .nav-section.active .nav-subsection {
  max-height: 300px;
}
.affairs-main .service-header {
  margin-bottom: 60px;
}
.affairs-main .service-header .main-title {
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 32px;
  font-weight: bold;
  color: #212529;
  margin-bottom: 40px;
}
.affairs-main .service-header .service-tabs {
  display: inline-flex;
  gap: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #241ce8;
  margin-right: auto;
}
.affairs-main .service-header .service-tabs .service-tab {
  padding: 24px 28px;
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #6c757d;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}
.affairs-main .service-header .service-tabs .service-tab:not(:last-child) {
  border-right: 1px solid #241ce8;
}
.affairs-main .service-header .service-tabs .service-tab:hover {
  color: #495057;
  background: rgba(255, 255, 255, 0.5);
}
.affairs-main .service-header .service-tabs .service-tab.active {
  color: white;
  background: #241ce8;
  box-shadow: 0 2px 4px rgba(36, 28, 232, 0.2);
}
.affairs-main .service-section {
  margin-bottom: 80px;
}
.affairs-main .service-section:last-child {
  margin-bottom: 0;
}
.affairs-main .service-section .section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: #212529;
  margin-bottom: 52px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e9ecef;
  position: relative;
}
.affairs-main .service-section .section-title .title-decorator {
  width: 6px;
  height: 24px;
  background: #241ce8;
  flex-shrink: 0;
}
.affairs-main .service-section .service-description {
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #495057;
}
.affairs-main .service-section .service-description p {
  margin-bottom: 16px;
}
.affairs-main .service-section .service-description p:last-child {
  margin-bottom: 0;
}
.team-members-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.team-members-list .lawyer-card {
  display: flex;
  gap: 32px;
  padding: 32px 24px;
  background: #f7f7f8;
  transition: all 0.3s ease;
}
.team-members-list .lawyer-card:hover {
  background: #241ce8;
  color: white;
}
.team-members-list .lawyer-card:hover .lawyer-info {
  color: white;
}
.team-members-list .lawyer-card:hover .lawyer-info .lawyer-name {
  color: white;
}
.team-members-list .lawyer-card:hover .lawyer-info .lawyer-title {
  color: rgba(255, 255, 255, 0.8);
}
.team-members-list .lawyer-card:hover .lawyer-info .contact-item {
  color: rgba(255, 255, 255, 0.8);
}
.team-members-list .lawyer-card:hover .lawyer-info .contact-item .contact-icon {
  filter: brightness(10);
}
.team-members-list .lawyer-card:hover .lawyer-info .contact-item span {
  color: rgba(255, 255, 255, 0.8);
}
.team-members-list .lawyer-card:hover .specialty-tag {
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  color: white !important;
}
.team-members-list .lawyer-card .lawyer-photo {
  margin-top: -55px;
  width: 216px;
  flex-shrink: 0;
}
.team-members-list .lawyer-card .lawyer-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.team-members-list .lawyer-card .lawyer-info {
  flex: 1;
}
.team-members-list .lawyer-card .lawyer-info .lawyer-name {
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: #212529;
  margin-bottom: 8px;
}
.team-members-list .lawyer-card .lawyer-info .lawyer-name .lawyer-name-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
/*.team-members-list .lawyer-card .lawyer-info .lawyer-name .lawyer-name-link:hover {*/
/*  color: #241ce8;*/
/*}*/
.team-members-list .lawyer-card .lawyer-info .lawyer-title {
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 20px;
}
.team-members-list .lawyer-card .lawyer-info .lawyer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.team-members-list .lawyer-card .lawyer-info .lawyer-contact .contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 14px;
  color: #495057;
}
.team-members-list .lawyer-card .lawyer-info .lawyer-contact .contact-item .contact-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}
.team-members-list .lawyer-card .lawyer-info .lawyer-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.team-members-list .lawyer-card .lawyer-info .lawyer-specialties .specialty-tag {
  padding: 6px 12px;
  border: 1px solid #241ce8;
  border-radius: 4px;
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 12px;
  color: #241ce8;
  white-space: nowrap;
}
.insights-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.insights-list .insight-item {
  padding-bottom: 32px;
  border-bottom: 1px solid #e9ecef;
}
.insights-list .insight-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.insights-list .insight-item .insight-date {
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 14px;
  color: #241ce8;
  margin-bottom: 12px;
}
.insights-list .insight-item .insight-title {
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #212529;
  margin-bottom: 12px;
  line-height: 1.3;
}
.insights-list .insight-item .insight-title:hover {
  color: #241ce8;
  cursor: pointer;
}
.insights-list .insight-item .insight-summary {
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #495057;
}
.back-to-top {
  display: flex;
  justify-content: flex-end;
  margin-top: 60px;
}
.back-to-top .back-to-top-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: transparent;
  color: #040327;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: capitalize;
}
.back-to-top .back-to-top-btn:hover {
  border-color: #241ce8;
  color: #241ce8;
  transform: translateY(-1px);
}
.back-to-top .back-to-top-btn .back-to-top-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}
.back-to-top .back-to-top-btn:hover .back-to-top-icon {
  transform: translateY(-2px);
}
@media (max-width: 1200px) {
  .affairs-layout {
    grid-template-columns: 280px 1fr;
    gap: 40px;
  }
  .banner-section .banner-content .banner-text {
    margin-left: unset;
    width: 90%;
    margin: auto;
  }
  .banner-section .banner-content .banner-text .banner-title {
    font-size: 40px;
    max-width: unset;
  }
  .banner-section .banner-content .banner-text .banner-description {
    max-width: unset;
  }
}
@media (max-width: 768px) {
  .affairs-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .affairs-sidebar {
    order: 2;
  }
  .affairs-main {
    order: 1;
  }
  .banner-section {
    padding: 80px 0 60px;
  }
  .banner-section .banner-content .banner-text .banner-title {
    font-size: 32px;
  }
  .banner-section .banner-content .banner-text .banner-description {
    font-size: 16px;
  }
  .service-header .service-tabs {
    gap: 0;
  }
  .service-header .service-tabs .service-tab {
    padding: 16px 20px;
    font-size: 14px;
    text-align: left;
    border-radius: 0;
  }
  .team-members-list .lawyer-card {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }
  .team-members-list .lawyer-card .lawyer-photo {
    margin-top: 0;
    width: 100%;
    align-self: center;
  }
  .team-members-list .lawyer-card .lawyer-photo img {
    max-width: 200px;
  }
  .team-members-list .lawyer-card .lawyer-info .lawyer-contact {
    justify-content: center;
    gap: 16px;
  }
  .team-members-list .lawyer-card .lawyer-info .lawyer-contact .contact-item {
    font-size: 12px;
  }
  .team-members-list .lawyer-card .lawyer-info .lawyer-specialties {
    justify-content: center;
  }
  .back-to-top {
    margin-top: 40px;
  }
  .back-to-top .back-to-top-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  .back-to-top .back-to-top-btn .back-to-top-icon {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 480px) {
  .banner-section .banner-content .banner-text .banner-title {
    font-size: 28px;
  }
  .service-header .main-title {
    font-size: 24px;
  }
  .service-header .service-tabs {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .affairs-nav .nav-section .nav-section-title {
    padding: 16px 20px;
    font-size: 14px;
  }
  .affairs-nav .nav-section .nav-subsection li .nav-link {
    padding: 12px 36px;
    font-size: 13px;
  }
  .service-header .main-title {
    font-size: 28px;
  }
  .service-section .section-title {
    font-size: 20px;
  }
  .service-section .section-title .title-decorator {
    width: 4px;
    height: 20px;
  }
  .team-members-list .lawyer-card .lawyer-info .lawyer-name {
    font-size: 20px;
  }
  .team-members-list .lawyer-card .lawyer-info .lawyer-contact {
    flex-direction: column;
    gap: 12px;
  }
}
