/* ============================================================
   ChestnutCMS - Modern Homepage Styles
   Bootstrap 5.3 + Swiper 11 + AOS
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --sw-blue-dark: #0a1e32;
  --sw-blue: #0d2847;
  --sw-blue-light: #143660;
  --sw-accent: #0d6efd;
  --sw-accent-light: #3d8bfd;
  --sw-gold: #c9a84c;
  --sw-gray-50: #f8f9fa;
  --sw-gray-100: #f0f2f5;
  --sw-gray-200: #e9ecef;
  --sw-gray-600: #6c757d;
  --sw-text: #212529;
  --sw-text-light: rgba(255,255,255,0.85);
  --sw-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --sw-shadow: 0 4px 20px rgba(0,0,0,0.08);
  --sw-shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --sw-radius: 12px;
  --sw-radius-sm: 8px;
  --sw-transition: 0.3s ease;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--sw-text);
  overflow-x: hidden;
}

.section-padding {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sw-blue-dark);
  margin-bottom: 8px;
}
.section-header .subtitle {
  font-size: 0.95rem;
  color: var(--sw-gray-600);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.section-header .divider {
  width: 50px;
  height: 3px;
  background: var(--sw-accent);
  margin: 16px auto 0;
  border-radius: 2px;
}
.bg-light-gray { background: var(--sw-gray-50); }
.bg-dark { background: var(--sw-blue-dark); color: #fff; }

/* ---- Header / Navbar ---- */
.navbar-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 0 20px;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background var(--sw-transition), box-shadow var(--sw-transition), height var(--sw-transition);
  background: transparent;
}
.navbar-modern.scrolled {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
  height: 64px;
}
.navbar-modern .navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color var(--sw-transition);
}
.navbar-modern .navbar-brand span {
  display: inline-block;
  padding: 4px 0;
}
.navbar-modern.scrolled .navbar-brand { color: var(--sw-blue-dark); }
.navbar-brand { display: flex !important; align-items: center; gap: 10px; }
.navbar-logo-img { height: 64px; width: auto; display: block; }
.navbar-modern.scrolled .navbar-logo-img { height: 52px; }
.navbar-modern .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px !important;
  transition: color var(--sw-transition);
  white-space: nowrap;
}
.navbar-modern .nav-link:hover,
.navbar-modern .nav-link:focus { color: #fff !important; }
.navbar-modern.scrolled .nav-link { color: var(--sw-text) !important; }
.navbar-modern.scrolled .nav-link:hover { color: var(--sw-accent) !important; }
.navbar-modern .dropdown-menu {
  border: 1px solid rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.7);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  padding: 8px 0;
  margin-top: 10px;
  min-width: 170px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}
.navbar-modern .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.navbar-modern.scrolled .dropdown-menu::before {
  top: -14px;
  height: 14px;
}
.navbar-modern .dropdown-item {
  padding: 8px 20px;
  font-size: 0.875rem;
  color: var(--sw-text);
  transition: background var(--sw-transition), color var(--sw-transition);
}
.navbar-modern .dropdown-item:hover {
  background: rgba(13,110,253,0.06);
  color: var(--sw-accent);
}
.navbar-modern.scrolled .dropdown-menu {
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,0,0,0.08);
  margin-top: 14px;
}
.navbar-modern .dropdown-submenu .dropdown-menu {
  margin-top: -8px;
}
.navbar-modern .navbar-toggler {
  border: none;
  padding: 4px 8px;
  color: #fff;
}
.navbar-modern.scrolled .navbar-toggler { color: var(--sw-blue-dark); }
.navbar-modern .navbar-toggler:focus { box-shadow: none; }
.navbar-modern .nav-search {
  width: 120px;
  max-width: 120px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.85rem;
  padding: 6px 12px;
  box-sizing: border-box;
  transition: all var(--sw-transition);
}
.navbar-modern .nav-search::placeholder { color: rgba(255,255,255,0.5); }
.navbar-modern .nav-search:focus {
  outline: none;
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.2);
}
.navbar-modern.scrolled .nav-search {
  border-color: var(--sw-gray-200);
  background: var(--sw-gray-100);
  color: var(--sw-text);
}
.navbar-modern.scrolled .nav-search::placeholder { color: var(--sw-gray-600); }
.navbar-modern.scrolled .nav-search:focus {
  border-color: var(--sw-accent);
  background: #fff;
}

@media (max-width: 991.98px) {
  .navbar-modern { height: 60px; background: rgba(10,30,50,0.96); }
  .navbar-modern .navbar-toggler-icon {
    filter: invert(1);
  }
  .navbar-logo-img { height: 36px; }
  .navbar-modern .navbar-brand { font-size: 1.1rem; gap: 6px; }
  .navbar-modern.scrolled { height: 56px; }
  .navbar-modern.scrolled .navbar-logo-img { height: 32px; }
  .navbar-modern.scrolled .navbar-toggler-icon {
    filter: none;
  }
  .navbar-modern .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,30,50,0.99);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
  }
  .navbar-modern.scrolled .navbar-collapse {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
  }
  .navbar-modern .nav-search { width: 100%; margin-top: 8px; }
}

/* ---- Hero Swiper ---- */
.hero-swiper {
  width: 100%;
  height: 100vh;
  min-height: 600px;
}
.hero-swiper .swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-color: var(--sw-blue-dark);
}
.hero-swiper .swiper-slide .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(10,30,50,0.88) 0%, rgba(20,54,96,0.65) 100%);
  z-index: 1;
}
.hero-swiper .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
}
.hero-swiper .hero-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero-swiper .hero-content h2 i {
  font-style: normal;
  display: block;
  line-height: 1.5;
}
.hero-swiper .hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--sw-text-light);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-swiper .hero-content .btn-hero {
  display: inline-block;
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--sw-accent);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all var(--sw-transition);
  letter-spacing: 0.5px;
}
.hero-swiper .hero-content .btn-hero:hover {
  background: #0b5ed7;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,110,253,0.4);
  color: #fff;
}
.hero-swiper .swiper-pagination-bullet {
  width: 30px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.4);
  opacity: 1;
  transition: all var(--sw-transition);
}
.hero-swiper .swiper-pagination-bullet-active {
  width: 50px;
  background: #fff;
}
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  color: rgba(255,255,255,0.6);
  transition: color var(--sw-transition);
}
.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover { color: #fff; }
@media (max-width: 768px) {
  .hero-swiper { height: 70vh; min-height: 420px; }
  .hero-swiper .swiper-button-next,
  .hero-swiper .swiper-button-prev { display: none; }
}

/* ---- Stats Counter ---- */
.stats-section {
  padding: 60px 0;
  background: #fff;
  border-bottom: 1px solid var(--sw-gray-200);
}
.stat-item { text-align: center; padding: 20px 0; }
.stat-item .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--sw-blue-dark);
  line-height: 1;
}
.stat-item .stat-plus {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sw-accent);
}
.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--sw-gray-600);
  margin-top: 8px;
}

/* ---- Product Showcase ---- */
.product-showcase {
  padding: 80px 0;
}
.product-showcase.alt { background: var(--sw-gray-50); }
.product-showcase .product-image img {
  max-width: 100%;
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow);
}
.product-showcase .product-info { padding: 20px 0; }
.product-showcase .product-info h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sw-blue-dark);
  margin-bottom: 16px;
}
.product-showcase .product-info .feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.product-showcase .product-info .feature-list li {
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--sw-text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.product-showcase .product-info .feature-list li::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  background: var(--sw-accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
}
.product-showcase .btn-outline-primary {
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--sw-transition);
}
.product-showcase .btn-outline-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13,110,253,0.25);
}

/* ---- Feature Cards ---- */
.feature-card {
  background: #fff;
  border-radius: var(--sw-radius);
  padding: 36px 24px;
  height: 100%;
  box-shadow: var(--sw-shadow-sm);
  transition: all var(--sw-transition);
  border: 1px solid var(--sw-gray-200);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sw-shadow-lg);
}
.feature-card .feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--sw-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--sw-accent), #6610f2);
}
.feature-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sw-blue-dark);
  margin-bottom: 12px;
}
.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-card ul li {
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--sw-gray-600);
}
.feature-card ul li::before {
  content: "\2022";
  color: var(--sw-accent);
  font-weight: bold;
  margin-right: 8px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--sw-gray-600);
  line-height: 1.7;
  margin: 0;
}

/* ---- News Tabs + Testimonials ---- */
.news-section { padding: 80px 0; }
.news-tabs .nav-pills .nav-link {
  color: var(--sw-text);
  border-radius: 50px;
  padding: 8px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--sw-transition);
}
.news-tabs .nav-pills .nav-link.active {
  background: var(--sw-blue-dark);
  color: #fff;
}
.news-tabs .nav-pills .nav-link:hover:not(.active) {
  background: var(--sw-gray-100);
}
.news-tabs .news-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--sw-gray-200);
  gap: 12px;
}
.news-tabs .news-item:last-child { border-bottom: none; }
.news-tabs .news-item a {
  color: var(--sw-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--sw-transition);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-tabs .news-item a:hover { color: var(--sw-accent); }
.news-tabs .news-item .news-date {
  font-size: 0.8rem;
  color: var(--sw-gray-600);
  white-space: nowrap;
}

/* Testimonial Swiper */
.testimonial-swiper {
  background: var(--sw-blue-dark);
  border-radius: var(--sw-radius);
  padding: 40px 32px;
  color: #fff;
}
.testimonial-swiper .swiper-slide { height: auto; }
.testimonial-swiper .testimonial-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--sw-text-light);
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  padding-left: 24px;
}
.testimonial-swiper .testimonial-text::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 2.5rem;
  color: var(--sw-accent);
  font-style: normal;
  line-height: 1;
}
.testimonial-swiper .testimonial-author {
  font-weight: 600;
  font-size: 0.95rem;
}
.testimonial-swiper .testimonial-company {
  font-size: 0.8rem;
  color: var(--sw-gray-600);
}
.testimonial-swiper .swiper-pagination { position: static; margin-top: 20px; text-align: left; }
.testimonial-swiper .swiper-pagination-bullet { background: rgba(255,255,255,0.3); }
.testimonial-swiper .swiper-pagination-bullet-active { background: #fff; }

/* ---- Application Areas Swiper ---- */
.app-swiper { padding: 0 40px; }
.app-swiper .swiper-slide { height: auto; }
.app-card {
  position: relative;
  border-radius: var(--sw-radius);
  overflow: hidden;
  box-shadow: var(--sw-shadow);
  transition: transform var(--sw-transition);
}
.app-card:hover { transform: translateY(-4px); }
.app-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.app-card .app-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
}
.app-card .app-card-overlay a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.app-card .app-card-overlay a:hover { color: var(--sw-accent-light); }
.app-swiper .swiper-button-next,
.app-swiper .swiper-button-prev {
  color: var(--sw-blue-dark);
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: var(--sw-shadow-sm);
}
.app-swiper .swiper-button-next::after,
.app-swiper .swiper-button-prev::after { font-size: 0.9rem; font-weight: bold; }
@media (max-width: 768px) {
  .app-swiper { padding: 0; }
  .app-swiper .swiper-button-next,
  .app-swiper .swiper-button-prev { display: none; }
}

/* ---- Client Logo Swiper ---- */
.client-section { padding: 60px 0; }
.client-swiper { padding: 20px 0; }
.client-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}
.client-swiper .client-logo {
  max-width: 140px;
  max-height: 80px;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all var(--sw-transition);
}
.client-swiper .client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--sw-blue-dark), var(--sw-blue));
  padding: 70px 0;
  text-align: center;
  color: #fff;
}
.cta-banner h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 1.05rem;
  color: var(--sw-text-light);
  margin-bottom: 28px;
}
.cta-banner .btn-cta {
  padding: 14px 44px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  background: #fff;
  color: var(--sw-blue-dark);
  text-decoration: none;
  transition: all var(--sw-transition);
  display: inline-block;
}
.cta-banner .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  color: var(--sw-blue-dark);
}

/* ---- Footer ---- */
.footer-modern {
  background: #0d2847;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-modern h5 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-modern h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--sw-accent);
  border-radius: 1px;
}
.footer-modern address { font-size: 0.9rem; line-height: 2; }
.footer-modern address div { display: flex; align-items: baseline; }
.footer-modern address i { flex-shrink: 0; width: 18px; margin-right: 8px; color: var(--sw-accent-light); }
.footer-modern a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color var(--sw-transition); }
.footer-modern a:hover { color: #fff; }
.footer-modern .footer-links { list-style: none; padding: 0; margin: 0; }
.footer-modern .footer-links li { padding: 4px 0; }
.footer-modern .footer-links li::before {
  content: "\203A";
  margin-right: 8px;
  color: var(--sw-accent);
}
.footer-modern .footer-news-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.88rem;
}
.footer-modern .footer-news-item:last-child { border-bottom: none; }
.footer-modern .footer-about {
  font-size: 0.88rem;
  line-height: 1.8;
  text-align: justify;
}
.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 16px 0;
  margin-top: 40px;
  font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---- Unified Block Header (About / Areas) ---- */
.block-header { margin-bottom: 28px; }
.block-eng {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #0047AB;
  margin-bottom: 6px;
  font-weight: 600;
}
.block-cn {
  font-size: 2rem;
  font-weight: 800;
  color: var(--sw-blue-dark);
  margin-bottom: 8px;
}
.block-divider {
  width: 50px;
  height: 3px;
  background: #0047AB;
  border-radius: 2px;
}

/* ---- About Section ---- */
.about-section { background: #fff; padding: 50px 0; }
.about-desc {
  font-size: 0.95rem;
  color: var(--sw-gray-600);
  line-height: 1.9;
  margin-bottom: 20px;
}
.about-desc:last-child { margin-bottom: 0; }
.about-btn {
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 8px;
  transition: all var(--sw-transition);
}
.about-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13,110,253,0.25);
}

/* About Stat Cards */
.about-stat-card {
  background: var(--sw-gray-50);
  border-radius: var(--sw-radius);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--sw-transition);
  border: 1px solid transparent;
}
.about-stat-card:hover {
  background: #fff;
  border-color: var(--sw-gray-200);
  box-shadow: var(--sw-shadow);
  transform: translateY(-3px);
}
.about-stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(13,110,253,0.1), rgba(13,110,253,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--sw-accent);
}
.about-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--sw-blue-dark);
  line-height: 1.2;
}
.about-stat-number .stat-plus {
  font-size: 1.4rem;
  color: var(--sw-accent);
}
.about-stat-label {
  font-size: 0.85rem;
  color: var(--sw-gray-600);
  margin-top: 4px;
}

/* ---- Practice Areas ---- */
.areas-section { padding: 70px 0; }
.areas-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}
.areas-header-row .block-header {
  text-align: left;
  margin-bottom: 0;
}
.areas-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 22px;
  font-size: 0.85rem;
  color: var(--sw-gray-600);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 50px;
  background: var(--sw-gray-100);
  backdrop-filter: blur(12px);
  border: 1px solid var(--sw-gray-200);
  transition: all 0.35s ease;
}
.areas-more-link:hover {
  color: #fff;
  background: #2355B4;
  border-color: #2355B4;
  box-shadow: 0 4px 14px rgba(35,85,180,0.25);
}
.areas-more-link i {
  font-size: 0.7rem;
  transition: transform var(--sw-transition);
}
.areas-more-link:hover i {
  transform: translateX(3px);
}
.area-card {
  background: #fff;
  border-radius: var(--sw-radius);
  padding: 24px;
  height: 100%;
  box-shadow: var(--sw-shadow-sm);
  border: 1px solid var(--sw-gray-200);
  transition: all var(--sw-transition);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}
.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sw-shadow);
  border-color: var(--sw-accent);
}
.area-card .area-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--sw-radius-sm);
  background: linear-gradient(135deg, rgba(13,110,253,0.1), rgba(102,16,242,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--sw-accent);
  transition: all var(--sw-transition);
  overflow: hidden;
}
.area-card .area-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.area-card:hover .area-icon {
  background: #2355B4;
  color: #fff;
}
.area-card .area-text { flex: 1; }
.area-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sw-blue-dark);
  margin-bottom: 4px;
}
.area-card p {
  font-size: 0.85rem;
  color: var(--sw-gray-600);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Lawyer Team ---- */
.lawyer-section { background: #fff; }

/* Hero search area */
.lawyer-hero {
  position: relative;
  min-height: 700px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lawyer-hero-default {
  background: linear-gradient(135deg, var(--sw-blue-dark), var(--sw-blue));
}
.lawyer-hero-overlay {
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(10,30,50,0.85) 0%, rgba(13,40,71,0.7) 100%);
}
/* 有背景图：无遮罩，内容直接放图上 */
.lawyer-hero-inner {
  width: 100%;
  padding: 70px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 有背景图时文字加阴影保可读 */
.lawyer-hero.has-bg .lawyer-hero-subtitle,
.lawyer-hero.has-bg .lawyer-hero-title,
.lawyer-hero.has-bg .lawyer-hero-text,
.lawyer-hero.has-bg .lawyer-hero-summary {
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.lawyer-hero-content { color: #fff; }
.lawyer-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.lawyer-hero-textside { flex: 1; }
.lawyer-hero-btnside { flex-shrink: 0; padding-top: 6px; }
.lawyer-btn {
  padding: 10px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  transition: all var(--sw-transition);
}
.lawyer-btn:hover {
  background: #fff;
  color: var(--sw-blue-dark);
  border-color: #fff;
}
.lawyer-hero-label {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.lawyer-hero-eng {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
  font-weight: 400;
}
.lawyer-hero-title {
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}
.lawyer-divider {
  width: 50px;
  height: 3px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  margin-bottom: 28px;
}
.lawyer-hero-summary {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  line-height: 1.7;
  font-weight: 400;
}
.lawyer-search-box { width: 100%; }
.lawyer-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lawyer-search-row .lawyer-search-input {
  flex: 1;
  min-width: 0;
}
.lawyer-search-row .lawyer-search-select {
  width: 140px;
  flex-shrink: 0;
}
.lawyer-search-row .lawyer-search-btn {
  flex-shrink: 0;
}
.lawyer-search-input,
.lawyer-search-select {
  height: 46px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.9rem;
  border-radius: 6px;
}
.lawyer-search-input::placeholder { color: rgba(255,255,255,0.5); }
.lawyer-search-input:focus,
.lawyer-search-select:focus {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  box-shadow: none;
}
.lawyer-search-select option { color: #333; background: #fff; }
.lawyer-search-btn {
  height: 46px;
  padding: 0 20px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* Lawyer cards */
.lawyer-card {
  background: #fff;
  border-radius: var(--sw-radius);
  overflow: hidden;
  box-shadow: var(--sw-shadow-sm);
  border: 1px solid var(--sw-gray-200);
  transition: all var(--sw-transition);
}
.lawyer-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sw-shadow-lg);
}
.lawyer-avatar {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: linear-gradient(135deg, var(--sw-blue), var(--sw-blue-light));
  overflow: hidden;
}
.lawyer-avatar img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.lawyer-card:hover .lawyer-avatar img {
  transform: scale(1.08);
}
.lawyer-avatar .lawyer-avatar-fallback {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.6);
}
.lawyer-avatar .lawyer-avatar-fallback.d-none { display: none; }
.lawyer-info {
  padding: 20px;
  text-align: center;
}
.lawyer-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sw-blue-dark);
  margin-bottom: 4px;
}
.lawyer-info .lawyer-title {
  font-size: 0.85rem;
  color: var(--sw-accent);
  font-weight: 500;
  margin-bottom: 8px;
}
.lawyer-info .lawyer-areas {
  font-size: 0.82rem;
  color: var(--sw-gray-600);
  margin: 0;
}

/* ---- News & Insights Section ---- */
.news-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}
.news-header-row .block-header {
  text-align: left;
  margin-bottom: 0;
}

/* Premium pill category links */
.news-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.news-cat-link {
  display: inline-block;
  padding: 8px 22px;
  font-size: 0.85rem;
  color: var(--sw-gray-600);
  text-decoration: none;
  background: var(--sw-gray-50);
  border: 1px solid var(--sw-gray-200);
  border-radius: 50px;
  transition: all 0.35s ease;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.news-cat-link:hover {
  color: #fff;
  background: #2355B4;
  border-color: #2355B4;
  box-shadow: 0 4px 14px rgba(35,85,180,0.25);
  transform: translateY(-1px);
}

/* Stage: positions buttons relative to cards, no overflow clipping */
.news-cards-stage {
  position: relative;
}

/* Viewport: clips only the sliding track */
.news-cards-viewport {
  overflow: hidden;
}
.news-cards-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Card: 3:4 ratio (taller than wide), no side padding, gap handles spacing */
.news-card {
  flex: 0 0 calc((100% - 40px) / 3);
  max-width: calc((100% - 40px) / 3);
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 3 / 4;
}
.news-card:hover {
  color: inherit;
}
.news-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sw-gray-200);
  border-radius: var(--sw-radius);
  overflow: hidden;
  transition: all 0.35s ease;
}
.news-card:hover .news-card-inner {
  border-color: transparent;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* Image — top half of card */
.news-card-img {
  position: relative;
  flex: 0 0 60%;
  min-height: 0;
  overflow: hidden;
  background: var(--sw-gray-100);
}
.news-card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-card-img img {
  transform: scale(1.06);
}
.news-card-img.no-img {
  background: linear-gradient(135deg, var(--sw-blue-dark) 0%, var(--sw-blue-light) 100%);
}

/* Body — bottom half of card, flex pushes link to bottom */
.news-card-body {
  flex: 1;
  min-height: 0;
  padding: 18px 20px 14px;
  display: flex;
  flex-direction: column;
}
.news-card-date {
  font-size: 0.78rem;
  color: var(--sw-gray-600);
  flex-shrink: 0;
  margin-bottom: 8px;
}
.news-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sw-blue-dark);
  line-height: 1.6;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 12px;
  transition: color var(--sw-transition);
}
.news-card-link {
  font-size: 0.82rem;
  color: var(--sw-gray-600);
  font-weight: 500;
  flex-shrink: 0;
  transition: color var(--sw-transition);
}
.news-card:hover .news-card-link {
  color: var(--sw-accent);
}
.news-card-link i {
  font-size: 0.7rem;
  margin-left: 4px;
  transition: transform var(--sw-transition);
}
.news-card:hover .news-card-link i {
  transform: translateX(4px);
}

/* Nav buttons: in stage (not viewport), so not clipped. 1/3 overlaps card edge. */
.news-nav-btn {
  position: absolute;
  top: 25%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  color: var(--sw-blue-dark);
  cursor: pointer;
  z-index: 3;
  font-size: 0.85rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.news-nav-btn:hover {
  background: #0047AB;
  color: #fff;
  border-color: #0047AB;
  box-shadow: 0 4px 18px rgba(0,71,171,0.3);
}
.news-prev { left: 12px; }
.news-next { right: 12px; }

/* Pagination dots */
.news-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.news-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sw-gray-200);
  cursor: pointer;
  transition: all var(--sw-transition);
}
.news-dot.active {
  background: #0047AB;
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 991px) {
  .news-cards-track { gap: 16px; }
  .news-nav-btn { width: 36px; height: 36px; }
}
@media (max-width: 767px) {
  .news-header-row { flex-direction: column; align-items: flex-start; }
  .news-cards-track { gap: 12px; }
  .news-nav-btn { width: 32px; height: 32px; }
}

/* ---- Honors & Certifications Section ---- */

/* Header: title left, nav buttons right */
.cert-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.cert-header-row .block-header {
  text-align: left;
  margin-bottom: 0;
}

/* Nav buttons inline with header */
.cert-nav-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cert-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--sw-gray-200);
  background: #fff;
  color: var(--sw-blue-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}
.cert-nav-btn:hover {
  background: #0047AB;
  color: #fff;
  border-color: #0047AB;
}
.cert-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Image carousel — no card frames, pure images */
.cert-images-viewport {
  overflow: hidden;
}
.cert-images-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cert-item {
  flex: 0 0 calc((100% - 72px) / 4);
  max-width: calc((100% - 72px) / 4);
  box-sizing: border-box;
}
.cert-item {
  background: #fff;
  border-radius: var(--sw-radius-sm);
  overflow: hidden;
}
.cert-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--sw-radius-sm);
}

/* Pagination */
.cert-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.cert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sw-gray-200);
  cursor: pointer;
  transition: all var(--sw-transition);
}
.cert-dot.active {
  background: #0047AB;
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 991px) {
  .cert-images-track { gap: 16px; }
  .cert-item {
    flex: 0 0 calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
  }
}
@media (max-width: 575px) {
  .cert-header-row { flex-direction: column; align-items: flex-start; }
  .cert-images-track { gap: 12px; }
  .cert-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ---- Contact Us CTA Section ---- */
.contact-banner {
  position: relative;
  padding: 100px 0;
}
.contact-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sw-blue-dark) 0%, var(--sw-blue-light) 100%),
              url('../images/contact-bg.jpg') center/cover no-repeat;
  background-blend-mode: overlay;
}
.contact-cta {
  color: #fff;
  padding: 40px 0;
}
.contact-cta-eng {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
  margin: 0 0 8px;
}
.contact-cta-cn {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}
.contact-cta .block-divider {
  margin: 16px 0 24px;
}
.contact-cta-btn {
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 500;
  display: table;
  margin: 0 auto;
}
.contact-cta-btn i {
  margin-left: 8px;
  transition: transform var(--sw-transition);
}
.contact-cta-btn:hover i {
  transform: translateX(4px);
}

/* ---- Professional List ---- */
/* List hero cover */
.lawyer-list-hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
}
.lawyer-list-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lawyer-list-cover-placeholder {
  background: linear-gradient(135deg, var(--sw-blue-dark), var(--sw-blue-light));
}
.lawyer-list-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,30,50,0.85) 0%, rgba(10,30,50,0.3) 50%, rgba(10,30,50,0.1) 100%);
  display: flex;
  align-items: center;
}
.lawyer-list-hero-name {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.lawyer-list-hero-desc {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  max-width: 700px;
  line-height: 1.4;
}

/* Breadcrumb below hero */
.lawyer-breadcrumb {
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--sw-gray-600);
}
.lawyer-breadcrumb i {
  color: var(--sw-gray-600);
  margin-right: 6px;
  font-size: 0.8rem;
}
.lawyer-breadcrumb a {
  color: var(--sw-gray-600);
  text-decoration: none;
}
.lawyer-breadcrumb a:hover { color: var(--sw-accent); }
.lawyer-breadcrumb span { color: var(--sw-gray-600); margin: 0 4px; }

.lawyer-filter-bar {
  padding: 16px 0;
}
.lawyer-filter-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.lawyer-filter-input {
  flex: 1;
  min-width: 160px;
  border-radius: 6px;
  font-size: 0.85rem;
}
.lawyer-filter-select {
  width: 180px;
  flex-shrink: 0;
  border-radius: 6px;
  font-size: 0.85rem;
}
.lawyer-filter-btn {
  border-radius: 6px;
  padding: 8px 24px;
  font-size: 0.85rem;
  background: #0047AB;
  border-color: #0047AB;
}
.lawyer-filter-btn:hover { background: #003d91; border-color: #003d91; }

.lawyer-list-section { background: var(--sw-gray-50); }
.lawyer-list-section .section-padding { padding-top: 24px; padding-bottom: 60px; }
.lawyer-list-section .row { --bs-gutter-x: 36px; }

/* Card: 1:2 ratio, 5:4 image/content */
.lawyer-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: 2 / 3;
  background: #fff;
  border: 1px solid var(--sw-gray-200);
  border-radius: var(--sw-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s ease;
}
.lawyer-card:hover {
  color: inherit;
  border-color: transparent;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.lawyer-card-img {
  position: relative;
  flex: 0 0 60%;
  overflow: hidden;
  background: var(--sw-gray-100);
}
.lawyer-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}
.lawyer-card:hover .lawyer-card-img img { transform: scale(1.05); }
.lawyer-card-img.no-img {
  background: linear-gradient(135deg, var(--sw-blue-dark), var(--sw-blue-light));
}
.lawyer-position-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.15);
  color: #fff;
  font-size: 0.72rem;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 400;
  border: 1px solid rgba(255,255,255,0.15);
  letter-spacing: 0.5px;
  z-index: 2;
  letter-spacing: 0.5px;
  z-index: 2;
}
.lawyer-card-body {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}
.lawyer-card-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--sw-blue-dark);
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sw-gray-200);
}
.lawyer-tags-title {
  font-size: 0.8rem;
  color: var(--sw-blue-dark);
  margin: 10px 0 6px;
  font-weight: 600;
}
.lawyer-card-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lawyer-tag {
  display: block;
  font-size: 0.75rem;
  color: var(--sw-gray-600);
  font-weight: 400;
  padding: 2px 0;
  line-height: 1.6;
  border-bottom: none;
}
.lawyer-tag i {
  color: #0047AB;
  font-size: 0.6rem;
  margin-right: 4px;
}
.lawyer-pagebar {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--sw-gray-600);
  line-height: 2.5;
}
.lawyer-pagebar span {
  margin-left: 12px;
  font-size: 0.85rem;
}
.lawyer-pg-btn {
  display: inline-block;
  min-width: 36px;
  padding: 0 8px;
  margin: 0 2px;
  border-radius: 6px;
  border: 1px solid var(--sw-gray-200);
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--sw-transition);
}
.lawyer-pg-btn:hover { background: #2355B4; border-color: #2355B4; color: #fff; }
.lawyer-pg-btn.active {
  background: #2355B4;
  border-color: #2355B4;
  color: #fff;
}
.lawyer-pg-btn.disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.lawyer-pg-btn.disabled:hover { background: #fff; border-color: var(--sw-gray-200); color: #333; }
.lawyer-pagebar span {
  display: inline-block;
  border: 1px solid var(--sw-gray-200);
  background: #fff;
  color: #333;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-left: 8px;
}

/* ---- Professional Detail ---- */
.lawyer-detail-hero {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--sw-blue-dark);
}
.lawyer-detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,30,50,0.6) 0%, rgba(10,30,50,0.15) 60%, rgba(10,30,50,0.3) 100%);
  display: flex;
  align-items: flex-end;
}
.lawyer-detail-bio {
  display: flex;
  align-items: flex-end;
  gap: 48px;
  color: #fff;
}
.lawyer-detail-portrait-wrap {
  flex-shrink: 0;
  line-height: 0;
}
.lawyer-detail-portrait {
  display: block;
  width: 300px;
  height: 414px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.lawyer-detail-text { padding-bottom: 48px; }
.lawyer-detail-name {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.lawyer-detail-position {
  font-size: 1rem;
  opacity: 0.85;
  margin: 0 0 12px;
}
.lawyer-detail-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.lawyer-detail-tags-label {
  font-size: 0.85rem;
  opacity: 0.7;
}
.lawyer-detail-tag {
  display: inline-block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 3px 14px;
  border-radius: 20px;
}

/* Detail nav bar */
.lawyer-detail-nav {
  background: #fff;
  border-bottom: 1px solid var(--sw-gray-200);
  position: sticky;
  top: 72px;
  z-index: 100;
}
.lawyer-detail-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lawyer-detail-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
}
.lawyer-detail-tabs li a {
  display: block;
  padding: 16px 24px;
  font-size: 0.95rem;
  color: var(--sw-gray-600);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all var(--sw-transition);
}
.lawyer-detail-tabs li.active a {
  color: #0047AB;
  border-bottom-color: #0047AB;
  font-weight: 600;
}
.lawyer-detail-tabs li a:hover { color: #0047AB; }
.lawyer-detail-back {
  font-size: 0.9rem;
  color: var(--sw-gray-600);
  text-decoration: none;
  transition: color var(--sw-transition);
}
.lawyer-detail-back:hover { color: #0047AB; }

.lawyer-detail-content {
  background: #fff;
  scroll-margin-top: 130px;
}
.lawyer-detail-body {
  font-size: 1rem;
  line-height: 2;
  color: var(--sw-text);
}
.lawyer-detail-body h2 {
  scroll-margin-top: 140px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sw-blue-dark);
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sw-gray-200);
}
.lawyer-detail-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lawyer-detail-cover-placeholder {
  background: linear-gradient(135deg, var(--sw-blue-dark), var(--sw-blue-light));
}

@media (max-width: 767px) {
  .lawyer-list-hero { min-height: 450px; }
  .lawyer-list-hero-desc { font-size: 1.6rem; }
  .lawyer-filter-input, .lawyer-filter-select { width: 100%; flex: auto; }
  .lawyer-detail-hero { height: auto; min-height: 400px; }
  .lawyer-detail-overlay { padding: 100px 0 40px; position: relative; }
  .lawyer-detail-bio { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .lawyer-detail-portrait { width: 200px; height: 276px; }
  .lawyer-detail-name { font-size: 1.5rem; }
  .lawyer-detail-tags { justify-content: center; }
  .lawyer-detail-tabs li a { padding: 12px 14px; font-size: 0.85rem; }
  .lawyer-card { flex-direction: row; aspect-ratio: auto; margin: 0 4px; }
  .lawyer-card-img { flex: 0 0 50%; }
  .lawyer-card-body { flex: 0 0 50%; }
  .lawyer-card-img img { object-position: top; }
  .lawyer-list-section .row { margin-left: 0; margin-right: 0; }
}

/* ---- Areas List Page ---- */
.areas-list-hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
}
.areas-list-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.areas-list-cover-placeholder {
  background: linear-gradient(135deg, var(--sw-blue-dark), var(--sw-blue-light));
}
.areas-list-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,30,50,0.85) 0%, rgba(10,30,50,0.3) 50%, rgba(10,30,50,0.1) 100%);
  display: flex;
  align-items: center;
  padding-bottom: 0;
  text-align: left;
}
.areas-list-hero-name {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.areas-list-hero-desc {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  max-width: 700px;
  line-height: 1.4;
}
.areas-list-section { background: #fff; overflow-x: hidden; }
.areas-breadcrumb {
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--sw-gray-600);
}
.areas-breadcrumb i { color: var(--sw-gray-600); margin-right: 6px; font-size: 0.8rem; }
.areas-breadcrumb a { color: var(--sw-gray-600); text-decoration: none; }
.areas-breadcrumb a:hover { color: var(--sw-accent); }
.areas-breadcrumb span { margin: 0 4px; color: var(--sw-gray-600); }

/* Areas list cards */
.areas-list-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sw-gray-200);
  border-radius: var(--sw-radius);
  padding: 28px 24px;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s ease;
}
.areas-list-card:hover {
  color: inherit;
  border-color: var(--sw-accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.areas-list-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--sw-radius-sm);
  background: linear-gradient(135deg, rgba(13,110,253,0.1), rgba(102,16,242,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--sw-accent);
  margin-bottom: 16px;
  overflow: hidden;
}
.areas-list-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.areas-list-card:hover .areas-list-card-icon { background: #2355B4; color: #fff; }
.areas-list-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sw-blue-dark);
  margin: 0 0 8px;
}
.areas-list-card p {
  font-size: 0.85rem;
  color: var(--sw-gray-600);
  line-height: 1.6;
  flex: 1;
  margin: 0 0 12px;
}
.areas-list-card-more {
  font-size: 0.82rem;
  color: var(--sw-gray-600);
  font-weight: 500;
  transition: color var(--sw-transition);
}
.areas-list-card:hover .areas-list-card-more { color: var(--sw-accent); }
.areas-list-card-more i {
  font-size: 0.7rem;
  margin-left: 4px;
  transition: transform var(--sw-transition);
}
.areas-list-card:hover .areas-list-card-more i { transform: translateX(3px); }

/* ---- Areas Detail Page ---- */
.areas-detail-hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
}
.areas-detail-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.areas-detail-hero {
  background-size: cover;
  background-position: center;
}
.areas-detail-hero .areas-detail-overlay {
  background: linear-gradient(to top, rgba(10,30,50,0.85) 0%, rgba(10,30,50,0.3) 50%, rgba(10,30,50,0.1) 100%);
}
.areas-detail-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin: 8px 0 0;
  max-width: 600px;
  line-height: 1.6;
}
.areas-detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,30,50,0.85) 0%, rgba(10,30,50,0.3) 50%, rgba(10,30,50,0.1) 100%);
  display: flex;
  align-items: flex-end;
  padding-bottom: 40px;
}
.areas-detail-name-tag {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin: 0 0 4px;
  letter-spacing: 1px;
}
.areas-detail-name {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.areas-detail-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
  max-width: 600px;
  line-height: 1.6;
}
/* Company hero: left-center, swapped font sizes */
.company-hero-overlay {
  align-items: center !important;
  padding-bottom: 0 !important;
}
.company-hero-overlay .areas-detail-name {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 12px;
}
.company-hero-overlay .areas-detail-desc {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  opacity: 1;
  max-width: 800px;
}
.areas-detail-section { background: #fff; }
.areas-detail-section .section-padding { padding-top: 24px; padding-bottom: 60px; }
.areas-detail-body {
  background: #fff;
  border-radius: var(--sw-radius);
  padding: 28px 32px;
  border: 1px solid var(--sw-gray-200);
  font-size: 1rem;
  line-height: 2;
  color: var(--sw-text);
}
.areas-detail-breadcrumb {
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--sw-gray-600);
  border-bottom: 1px solid var(--sw-gray-200);
}
.areas-detail-breadcrumb i { color: var(--sw-gray-600); margin-right: 6px; font-size: 0.8rem; }
.areas-detail-breadcrumb a { color: var(--sw-gray-600); text-decoration: none; }
.areas-detail-breadcrumb a:hover { color: var(--sw-accent); }
.areas-detail-breadcrumb span { color: var(--sw-gray-600); margin: 0 4px; }
.areas-breadcrumb-row { display: flex; justify-content: space-between; align-items: center; }
.areas-back-link { font-size: 0.85rem; color: var(--sw-gray-600); text-decoration: none; white-space: nowrap; }
.areas-back-link:hover { color: var(--sw-accent); }
.areas-back-link i { font-size: 0.75rem; }

/* Sidebar */
.areas-detail-sidebar {
  background: #fff;
  border-radius: var(--sw-radius);
  padding: 20px;
  border: 1px solid var(--sw-gray-200);
}
.areas-sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sw-blue-dark);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sw-gray-200);
}
.areas-sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--sw-gray-600);
  text-decoration: none;
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  transition: all var(--sw-transition);
}
.areas-sidebar-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.areas-sidebar-link:hover { color: var(--sw-blue-dark); background: var(--sw-gray-100); }
.areas-sidebar-link.active {
  color: #2355B4;
  font-weight: 600;
  border-bottom-color: #2355B4;
}

/* Article list */
.areas-article-item {
  background: #fff;
  border-radius: var(--sw-radius);
  padding: 20px 24px;
  border: 1px solid var(--sw-gray-200);
  margin-bottom: 12px;
  transition: all 0.3s ease;
}
.areas-article-item:hover { border-color: #2355B4; box-shadow: var(--sw-shadow-sm); }
.areas-article-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sw-blue-dark);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}
.areas-article-title:hover { color: #2355B4; }
.areas-article-summary {
  font-size: 0.85rem;
  color: var(--sw-gray-600);
  line-height: 1.6;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.areas-article-date {
  font-size: 0.78rem;
  color: var(--sw-gray-600);
}
.areas-article-pagebar {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.areas-pagebar {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--sw-gray-600);
  line-height: 2.5;
}
.areas-pagebar span {
  display: inline-block;
  border: 1px solid var(--sw-gray-200);
  background: #fff;
  color: #333;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-left: 8px;
}

@media (max-width: 991px) {
  .areas-detail-sidebar { margin-bottom: 20px; }
}
@media (max-width: 767px) {
  .areas-list-hero { min-height: 300px; }
  .areas-list-hero-desc { font-size: 1.6rem; }
  .areas-detail-hero { min-height: 260px !important; }
  .areas-detail-name { font-size: 1.6rem; }
  .areas-detail-desc { font-size: 0.9rem; max-width: 100%; }
  .areas-detail-overlay { padding-bottom: 24px; }
  .company-hero-overlay .areas-detail-name { font-size: 0.85rem; margin-bottom: 6px; }
  .company-hero-overlay .areas-detail-desc { font-size: 1.4rem; }
  .areas-detail-name-tag { font-size: 0.8rem; }
  .news-detail-body,
  .section-article-body,
  .lawyer-detail-body,
  .areas-detail-body,
  .job-item-article {
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .news-detail-body *,
  .section-article-body *,
  .lawyer-detail-body *,
  .areas-detail-body *,
  .job-item-article * {
    text-wrap-mode: wrap !important;
    white-space: normal !important;
  }
}

/* ---- News List Tabs ---- */
.news-list-tabs {
  background: #fff;
}
.news-list-tabs-inner {
  display: flex;
  gap: 0;
}
.company-tabs-wrapper {
  display: flex;
  gap: 0;
  padding: 0;
}
.company-tabs-wrapper .news-list-tab {
  background: #f8f9fa;
  border-color: #ced4da;
}
.company-tabs-wrapper .news-list-tab:first-child { border-radius: 0; }
.company-tabs-wrapper .news-list-tab:last-child { border-radius: 0; }

/* ---- Honors List ---- */
.honors-filter-tabs {
  display: flex;
  justify-content: flex-end;
  gap: 0;
}
.honors-filter-tab {
  padding: 8px 20px;
  font-size: 0.88rem;
  color: var(--sw-gray-600);
  text-decoration: none;
  font-weight: 500;
  background: #f8f9fa;
  border: 1px solid var(--sw-gray-300);
  margin-left: -1px;
  transition: all 0.2s ease;
}
.honors-filter-tab:first-child {
  border-radius: 6px 0 0 6px;
  margin-left: 0;
}
.honors-filter-tab:last-child {
  border-radius: 0 6px 6px 0;
}
.honors-filter-tab:hover {
  background: #2355B4;
  color: #fff;
  border-color: #2355B4;
}
.honors-filter-tab.active {
  background: #2355B4;
  color: #fff;
  border-color: #2355B4;
}
.honors-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.honors-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 24px 20px 20px;
  background: #fff;
  border: 1px solid var(--sw-gray-200);
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
  height: 260px;
  overflow: hidden;
}
.honors-item:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.honors-item-cover {
  flex-shrink: 0;
  align-self: center;
  width: 200px;
  height: 140px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--sw-gray-100);
  display: block;
}
.honors-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.honors-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-self: stretch;
}
.honors-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sw-gray-200);
  flex-shrink: 0;
}
.honors-item-header .honors-item-tag {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #2355B4;
  background: rgba(35,85,180,0.08);
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}
.honors-item-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sw-text);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}
.honors-item-desc {
  font-size: 0.87rem;
  color: var(--sw-gray-600);
  line-height: 1.7;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--sw-gray-300) transparent;
}

/* Webkit scrollbar: thin, no arrows */
.honors-item-desc::-webkit-scrollbar { width: 4px; }
.honors-item-desc::-webkit-scrollbar-track { background: transparent; }
.honors-item-desc::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 2px; }
.honors-item-desc::-webkit-scrollbar-button { display: none; }
.honors-item-desc img { max-width: 100%; height: auto; }
.honors-item-tag-wrap {
  flex-shrink: 0;
  align-self: flex-start;
}
.honors-item-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: #2355B4;
  background: rgba(35,85,180,0.08);
  padding: 4px 12px;
  border-radius: 3px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}
.honors-item:hover .honors-item-tag {
  background: #2355B4;
  color: #fff;
}
@media (max-width: 767px) {
  .honors-item { flex-direction: column; gap: 12px; padding: 16px; }
  .honors-item-cover { width: 100%; height: 180px; }
  .honors-item-tag-wrap { align-self: flex-end; }
  .honors-filter-tab { padding: 8px 14px; font-size: 0.85rem; }
}
.news-list-tab {
  flex: 1;
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--sw-gray-600);
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--sw-gray-200);
  border-radius: 0;
  margin-left: -1px;
  position: relative;
}
.news-list-tab:first-child {
  margin-left: 0;
  border-radius: 6px 0 0 6px;
}
.news-list-tab:last-child {
  border-radius: 0 6px 6px 0;
}
.news-list-tab:hover {
  background: var(--sw-gray-100);
  color: var(--sw-blue-dark);
}
.news-list-tab.active {
  background: #2355B4;
  color: #fff;
  border-color: #2355B4;
  z-index: 1;
}
.news-list-tab.active:hover {
  background: #1e4a9e;
  color: #fff;
}

@media (max-width: 767px) {
  .news-list-tab { padding: 8px 10px; font-size: 0.82rem; }
}

/* ---- News Detail ---- */
.news-detail-meta {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.news-detail-meta i { margin-right: 4px; opacity: 0.7; }
.news-detail-source { display: inline-flex; align-items: center; }

.news-detail-body {
  background: #fff;
  border-radius: var(--sw-radius);
  padding: 36px 40px !important;
  border: 1px solid var(--sw-gray-200);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--sw-text);
}
.news-detail-body img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--sw-radius-sm);
  margin: 16px 0;
  text-indent: 0;
}
.news-detail-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sw-blue-dark);
  margin: 32px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sw-gray-200);
}
.news-detail-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sw-blue-dark);
  margin: 24px 0 12px;
}
.news-detail-body h4 { font-size: 1.1rem; font-weight: 600; color: var(--sw-text); margin: 20px 0 10px; }
.news-detail-body h5 { font-size: 1rem; font-weight: 600; color: var(--sw-text); margin: 16px 0 8px; }
.news-detail-body h6 { font-size: 0.95rem; font-weight: 600; color: var(--sw-gray-600); margin: 12px 0 6px; }
.news-detail-body p {
  margin: 0 0 16px;
  text-indent: 1.5em;
}
.news-detail-body blockquote {
  border-left: 4px solid #2355B4;
  background: var(--sw-gray-50);
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 0 var(--sw-radius-sm) var(--sw-radius-sm) 0;
  font-size: 0.95rem;
  color: var(--sw-gray-600);
}
.news-detail-body a { color: var(--sw-accent); text-decoration: underline; }
.news-detail-body a:hover { color: #0056b3; }
.news-detail-body ul, .news-detail-body ol { padding-left: 2em; margin: 8px 0 16px; }
.news-detail-body li { margin-bottom: 4px; }
.news-detail-body hr { border: none; border-top: 1px solid var(--sw-gray-200); margin: 24px 0; }
.news-detail-body table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 0.95rem; }
.news-detail-body th, .news-detail-body td { border: 1px solid var(--sw-gray-200); padding: 8px 12px; text-align: left; }
.news-detail-body th { background: var(--sw-gray-50); font-weight: 600; }
.news-detail-body pre { background: var(--sw-gray-50); border: 1px solid var(--sw-gray-200); border-radius: var(--sw-radius-sm); padding: 16px; overflow-x: auto; font-size: 0.9rem; line-height: 1.6; font-family: "SF Mono", Monaco, Menlo, monospace; }
.news-detail-body code { font-family: "SF Mono", Monaco, Menlo, monospace; font-size: 0.9em; background: var(--sw-gray-100); padding: 2px 6px; border-radius: 4px; }
.news-detail-body pre code { background: none; padding: 0; border-radius: 0; }
.news-detail-body .list-paddingleft-1 { padding-left: 2em; }
.news-detail-body .list-paddingleft-2 { padding-left: 4em; }

/* Sidebar news items */
.news-sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--sw-gray-200);
  transition: all var(--sw-transition);
}
.news-sidebar-item:last-child { border-bottom: none; }
.news-sidebar-item:hover { color: #2355B4; }
.news-sidebar-item.active { color: #2355B4; font-weight: 500; }
.news-sidebar-hot {
  flex-shrink: 0;
  width: 16px;
  padding-top: 2px;
  font-size: 0.7rem;
  color: #e74c3c;
  text-align: center;
}
.news-sidebar-item-text {
  flex: 1;
  min-width: 0;
}
.news-sidebar-item-date {
  display: block;
  font-size: 0.75rem;
  color: var(--sw-gray-600);
}
.news-sidebar-item-title {
  display: block;
  font-size: 0.88rem;
  color: var(--sw-text);
  line-height: 1.6;
  margin-bottom: 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-sidebar-item:hover .news-sidebar-item-title {
  color: #2355B4;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .news-detail-body { padding: 20px 16px !important; line-height: 1.8; background: #fff !important; font-size: 0.95rem; }
  .news-detail-body h1 { font-size: 1.35rem; margin: 24px 0 16px; }
  .news-detail-body h2 { font-size: 1.25rem; margin: 20px 0 12px; }
  .news-detail-body h3 { font-size: 1.15rem; margin: 16px 0 8px; }
  .news-detail-body h4 { font-size: 1.05rem; }
  .news-detail-body h5 { font-size: 0.95rem; }
  .news-detail-body h6 { font-size: 0.9rem; }
  .news-detail-body p { text-indent: 1em !important; margin-bottom: 10px !important; line-height: inherit !important; }
  .news-detail-body ul,
  .news-detail-body ol { padding-left: 1.5em; margin: 8px 0 16px; }
  .news-detail-body li { margin-bottom: 6px; }
  .news-detail-body li p { text-indent: 0 !important; margin-bottom: 4px !important; line-height: inherit !important; }
  .news-detail-body table { font-size: 0.85rem; }
  .news-detail-body th, .news-detail-body td { padding: 6px 8px; }
  .news-detail-body .list-paddingleft-2 { padding-left: 2em; }
}

/* ---- Job/Recruitment List ---- */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.job-item {
  background: #fff;
  border: 1px solid var(--sw-gray-200);
  border-radius: var(--sw-radius-sm);
  padding: 28px 32px;
  transition: all 0.3s ease;
}
.job-item:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-color: #2355B4;
}
.job-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sw-gray-200);
}
.job-item-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sw-blue-dark);
  margin: 0;
}
.job-item-subtitle {
  font-size: 0.85rem;
  color: var(--sw-gray-600);
  margin-top: 4px;
}
.job-item-subtitle i {
  margin-right: 4px;
  color: var(--sw-accent);
  font-size: 0.8rem;
}
.job-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.job-item-date {
  font-size: 0.78rem;
  color: var(--sw-gray-600);
}
.job-item-date i {
  margin-right: 4px;
  opacity: 0.6;
}
.job-item-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: #2355B4;
  background: rgba(35,85,180,0.08);
  padding: 4px 14px;
  border-radius: 3px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}
.job-item:hover .job-item-tag {
  background: #2355B4;
  color: #fff;
}
.job-item-article {
  font-size: 1rem;
  line-height: 2;
  color: var(--sw-text);
}
.job-item-article img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--sw-radius-sm);
  margin: 16px 0;
  text-indent: 0;
}
.job-item-article h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sw-blue-dark);
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sw-gray-200);
}
.job-item-article h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sw-blue-dark);
  margin: 22px 0 12px;
}
.job-item-article p {
  margin: 0 0 16px;
  text-indent: 2em;
}
.job-item-article blockquote {
  border-left: 4px solid #2355B4;
  background: var(--sw-gray-50);
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 0 var(--sw-radius-sm) var(--sw-radius-sm) 0;
  font-size: 0.95rem;
  color: var(--sw-gray-600);
}

@media (max-width: 767px) {
  .job-item {
    padding: 16px;
  }
  .job-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .job-item-article p {
    text-indent: 1.5em;
  }
}

/* ---- General helpers ---- */
.gap-4 { gap: 1.5rem; }
/* ---- Consultation Form Background ---- */
.consultation-form-bg {
  background-size: cover;
  background-position: center;
  position: relative;
}
.consultation-form-bg > * { position: relative; z-index: 1; }

/* ---- Article body responsive ---- */
.section-article-body img,
.job-item-article img,
.lawyer-detail-body img,
.areas-detail-body img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  text-indent: 0;
}
.section-article-body table,
.news-detail-body table,
.job-item-article table,
.lawyer-detail-body table,
.areas-detail-body table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
}

/* ---- Custom form responsive ---- */
@media (max-width: 575.98px) {
  .consultation-form-bg input[type="text"],
  .consultation-form-bg input[type="email"],
  .consultation-form-bg input[type="tel"],
  .consultation-form-bg textarea,
  .consultation-form-bg select {
    width: 100% !important;
    box-sizing: border-box;
  }
}

/* ---- Job Table (recruitment list) ---- */
.job-table {
  border: 1px solid var(--sw-gray-200);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.job-table-header {
  text-align: center;
  background: #0047AB;
  color: #fff;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.92rem;
}
.job-table-row {
  border-bottom: 1px solid #e8e8e8;
}
.job-table-row:last-child {
  border-bottom: none;
}
.job-row-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 60px;
  padding: 14px 20px;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.95rem;
  background: #fafbfc;
}
.job-row-header:hover {
  background: #eef1f5;
}
.job-row-title {
  font-weight: 600;
  color: #1a1a2e;
}
.job-row-location {
  color: #555;
  font-size: 0.9rem;
}
.job-row-date {
  color: #888;
  font-size: 0.85rem;
}
.job-toggle {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}
.job-row-body {
  display: none;
  padding: 20px 24px;
  background: #fff;
  border-top: 1px solid #eee;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #333;
}
.job-row-body.open {
  display: block;
}
.job-row-body img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--sw-radius-sm);
  margin: 16px 0;
}
.job-row-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sw-blue-dark);
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sw-gray-200);
}
.job-row-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sw-blue-dark);
  margin: 22px 0 12px;
}
.job-row-body p {
  margin: 0 0 16px;
  text-indent: 2em;
}
.job-row-body blockquote {
  border-left: 4px solid #2355B4;
  background: var(--sw-gray-50);
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 0 var(--sw-radius-sm) var(--sw-radius-sm) 0;
  font-size: 0.95rem;
  color: var(--sw-gray-600);
}
@media (max-width: 768px) {
  .job-table-header,
  .job-row-header {
    grid-template-columns: 1.5fr 0.8fr 0.8fr 50px;
    padding: 12px 10px;
    font-size: 0.82rem;
    gap: 4px;
  }
  .job-row-body {
    padding: 14px 12px;
  }
  .job-row-body p {
    text-indent: 1.5em;
  }
  .job-row-title {
    font-size: 0.88rem;
  }
  .job-row-location,
  .job-row-date {
    font-size: 0.78rem;
  }
}
