/* ============================================================
   PRACTICE AREAS — practice-areas.css
   Covers: hub page + detail page
   Firm list cards reuse firms-listing.css (.firm_list_card etc.)
   FAQ accordion reuses firm-detail.css (.faq_item etc.)
   ============================================================ */

/* ============================================================
   1. HUB — HEADER
   ============================================================ */

.pa_hub_header {
  background: linear-gradient(135deg, #0d1f35 0%, #182d48 100%);
  padding: 56px 0 48px;
  text-align: center;
}

.pa_hub_badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(198, 166, 100, 0.18);
  border: 1px solid rgba(198, 166, 100, 0.35);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.pa_hub_h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.pa_hub_highlight {
  color: var(--gold);
}

.pa_hub_sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 28px;
}

.pa_hub_stats_row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.pa_hub_stats_row i {
  color: var(--gold);
  margin-right: 5px;
}

/* ============================================================
   2. HUB — GRID
   ============================================================ */

.pa_hub_grid_section {
  background: #f5f7fa;
  padding: 52px 0 60px;
}

.pa_hub_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pa_hub_card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8ecf1;
  overflow: hidden;
  transition:
    box-shadow 0.25s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.pa_hub_card:hover {
  box-shadow: 0 10px 36px rgba(24, 45, 72, 0.12);
  transform: translateY(-3px);
  border-color: rgba(24, 45, 72, 0.14);
}

.pa_hub_card_icon {
  background: linear-gradient(135deg, #0d1f35 0%, #182d48 100%);
  padding: 24px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.pa_hub_card_icon i {
  font-size: 26px;
  color: var(--gold);
}

.pa_hub_card_body {
  padding: 20px 24px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pa_hub_card_name {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
}

.pa_hub_card_desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  flex: 1;
}

.pa_hub_card_footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f0f2f5;
  margin-top: auto;
}

.pa_hub_card_count {
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
}

.pa_hub_card_count i {
  margin-right: 4px;
  color: var(--gold);
}

.pa_hub_card_cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.15s ease;
}

.pa_hub_card:hover .pa_hub_card_cta {
  gap: 8px;
  color: var(--gold);
}

/* ============================================================
   3. HUB — SEO TEXT BLOCK
   ============================================================ */

.pa_hub_seo {
  background: #fff;
  padding: 60px 0;
}

.pa_hub_seo_inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.pa_hub_seo_text h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 16px;
}

.pa_hub_seo_text p {
  font-size: 14px;
  color: #666;
  line-height: 1.75;
  margin-bottom: 16px;
}

.pa_hub_seo_list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.pa_hub_seo_list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--dark);
  font-weight: 500;
}

.pa_hub_seo_list i {
  color: var(--gold);
  font-size: 15px;
  flex-shrink: 0;
}

.pa_hub_seo_aside {
  position: sticky;
  top: 88px;
}

.pa_hub_seo_card {
  background: var(--blue);
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
}

.pa_hub_seo_card > i {
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}

.pa_hub_seo_card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.pa_hub_seo_card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ============================================================
   4. DETAIL — HEADER
   ============================================================ */

.pa_detail_header {
  background: linear-gradient(135deg, #0d1f35 0%, #182d48 100%);
  padding: 44px 0 36px;
}

.pa_detail_header_inner {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.pa_detail_icon_wrap {
  width: 80px;
  height: 80px;
  background: rgba(198, 166, 100, 0.15);
  border: 2px solid rgba(198, 166, 100, 0.35);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pa_detail_icon_wrap i {
  font-size: 32px;
  color: var(--gold);
}

.pa_detail_label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 10px;
}

.pa_detail_h1 {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.pa_detail_intro {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 20px;
}

.pa_detail_stats_strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.pa_detail_stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.pa_detail_stat i {
  color: var(--gold);
  font-size: 12px;
}

/* ============================================================
   5. DETAIL — BODY LAYOUT
   ============================================================ */

.pa_detail_body {
  background: #f5f7fa;
  padding: 36px 0 60px;
}

.pa_detail_layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

/* ============================================================
   6. DETAIL — MAIN COLUMN SECTIONS
   ============================================================ */

.pa_detail_main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pa_section {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecf1;
  padding: 28px;
}

.pa_section_header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f2f5;
}

.pa_section_icon {
  width: 36px;
  height: 36px;
  background: rgba(24, 45, 72, 0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pa_section_icon i {
  font-size: 15px;
  color: var(--blue);
}

.pa_section_title {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  flex: 1;
}

.pa_result_count {
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  background: #f0f2f5;
  padding: 4px 10px;
  border-radius: 20px;
}

/* View all row */
.pa_view_all_row {
  margin-top: 20px;
  text-align: center;
}

.pa_view_all_btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: rgba(24, 45, 72, 0.06);
  color: var(--blue);
  border: 1.5px solid rgba(24, 45, 72, 0.15);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.pa_view_all_btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ============================================================
   7. DETAIL — SUB-PRACTICE AREAS GRID
   ============================================================ */

.pa_children_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.pa_child_card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f8fafc;
  border: 1.5px solid #e8ecf1;
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.pa_child_card:hover {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 4px 16px rgba(24, 45, 72, 0.08);
}

.pa_child_card_icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(24, 45, 72, 0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.pa_child_card:hover .pa_child_card_icon {
  background: var(--blue);
}

.pa_child_card_icon i {
  font-size: 16px;
  color: var(--blue);
  transition: color 0.2s ease;
}

.pa_child_card:hover .pa_child_card_icon i {
  color: #fff;
}

.pa_child_card_body {
  flex: 1;
  min-width: 0;
}

.pa_child_card_name {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 4px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pa_child_card:hover .pa_child_card_name {
  color: var(--blue);
}

.pa_child_card_desc {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pa_child_card_meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #aaa;
  font-weight: 600;
}

.pa_child_card_meta i {
  font-size: 11px;
  color: var(--gold);
}

.pa_child_card_arrow {
  margin-left: auto;
  color: #ccc;
  font-size: 10px;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.pa_child_card:hover .pa_child_card_arrow {
  color: var(--blue);
  transform: translateX(3px);
}

/* ============================================================
   8. DETAIL — SIDEBAR
   ============================================================ */

.pa_detail_sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pa_sidebar_card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecf1;
  padding: 20px;
}

.pa_sidebar_title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f2f5;
}

.pa_sidebar_title i {
  color: var(--gold);
  font-size: 13px;
}

/* State list */
.pa_state_list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.pa_state_link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: #555;
  transition:
    background 0.18s,
    color 0.18s;
}

.pa_state_link:hover {
  background: rgba(24, 45, 72, 0.06);
  color: var(--blue);
}

.pa_state_link .fa-location-dot {
  color: var(--gold);
  font-size: 12px;
  flex-shrink: 0;
}

.pa_state_arrow {
  margin-left: auto;
  font-size: 10px;
  color: #ccc;
}

.pa_see_all_states {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  padding: 6px 10px;
  transition: opacity 0.18s;
}

.pa_see_all_states:hover {
  opacity: 0.7;
}

/* Related areas */
.pa_related_list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pa_related_link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: #555;
  transition:
    background 0.18s,
    color 0.18s;
}

.pa_related_link:hover {
  background: rgba(24, 45, 72, 0.06);
  color: var(--blue);
}

.pa_related_link i {
  width: 24px;
  height: 24px;
  background: rgba(24, 45, 72, 0.06);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--blue);
  flex-shrink: 0;
}

/* Stats card */
.pa_sidebar_stats {
  background: var(--blue);
  border-color: transparent;
}

.pa_sidebar_stats .pa_sidebar_title {
  color: rgba(255, 255, 255, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pa_sidebar_stats .pa_sidebar_title i {
  color: var(--gold);
}

.pa_stats_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pa_stat_box {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
}

.pa_stat_val {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.pa_stat_key {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* CTA card */
.pa_sidebar_cta {
  background: linear-gradient(135deg, #182d48 0%, #1e3a5f 100%);
  border-color: transparent;
  text-align: center;
  padding: 24px 20px;
}

.pa_cta_icon {
  font-size: 28px;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.pa_sidebar_cta h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.pa_sidebar_cta p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
  margin-bottom: 16px;
}

.pa_cta_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 11px 20px;
  background: var(--gold);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.pa_cta_btn:hover {
  opacity: 0.88;
}

/* ============================================================
   8. RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .pa_hub_grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pa_hub_seo_inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pa_hub_seo_aside {
    position: static;
  }

  .pa_hub_seo_card {
    max-width: 480px;
    margin: 0 auto;
  }

  .pa_detail_layout {
    grid-template-columns: 1fr;
  }

  .pa_detail_sidebar {
    position: static;
    /* Show sidebar after main on mobile */
    order: 2;
  }

  .pa_detail_main {
    order: 1;
  }

  .pa_detail_header_inner {
    flex-direction: column;
    gap: 20px;
  }

  .pa_hub_stats_row {
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .pa_hub_header {
    padding: 40px 0 36px;
  }

  .pa_hub_grid_section {
    padding: 36px 0 44px;
  }

  .pa_hub_grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pa_hub_card {
    flex-direction: row;
    align-items: stretch;
  }

  .pa_hub_card_icon {
    width: 72px;
    min-height: 72px;
    border-radius: 0;
    flex-shrink: 0;
    padding: 20px 16px;
    justify-content: center;
  }

  .pa_hub_card_icon i {
    font-size: 22px;
  }

  .pa_hub_card_body {
    padding: 16px 18px;
    gap: 6px;
  }

  .pa_hub_card_name {
    font-size: 15px;
  }

  .pa_hub_card_desc {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .pa_detail_body {
    padding: 24px 0 40px;
  }

  .pa_section {
    padding: 20px;
  }

  .pa_stats_grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .pa_stat_val {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .pa_hub_h1 {
    font-size: 26px;
  }

  .pa_hub_stats_row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .pa_detail_stats_strip {
    gap: 10px;
  }

  .pa_stats_grid {
    grid-template-columns: 1fr 1fr;
  }
}
