/* ==========================================================================
   FindaLawyer123 - Authentic Signature Theme Stylesheet
   Replicating the iconic Karma Teal-Grey design with modern performance
   ========================================================================== */

:root {
  --primary-teal: #3d5866;
  --dark-teal: #2b3e48;
  --deep-header: #30434b;
  --accent-teal: #4c6d7d;
  --light-teal: #f0f4f6;
  --border-color: #dce1e3;
  --text-dark: #333333;
  --text-muted: #666666;
  --bg-grey: #f7f9fa;
  --card-bg: #ffffff;
  --slider-bg: #E7E9E6;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #f3f5f6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--dark-teal);
  text-decoration: underline;
}

#tt-wide-layout {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 0 15px rgba(0,0,0,0.06);
}

.site-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Top Header Bar & Navigation
   ========================================================================== */

#header {
  background: linear-gradient(180deg, #37505c 0%, #293d47 100%);
  position: relative;
  border-bottom: 3px solid #23343d;
}

.header-overlay {
  background-image: url('../images/overlay-rays.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  padding: 24px 0 20px;
}

.top-bar-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
}

.main-nav ul li a {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: capitalize;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav ul li a:hover,
.main-nav ul li.active a {
  background: rgba(255, 255, 255, 0.15);
  color: #f1f8fa;
  text-decoration: none;
}

.btn-add-listing {
  background: #c34b38 !important;
  color: #fff !important;
  border: 1px solid #9f3625;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.btn-add-listing:hover {
  background: #a83827 !important;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: #ffffff;
  font-size: 20px;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* ==========================================================================
   Featured Law Firms Showcase Slider
   ========================================================================== */

.featured-slider-box {
  position: relative;
  background: var(--slider-bg);
  border: 1px solid #d5d8d4;
  border-radius: 4px;
  margin: 15px 0 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  overflow: hidden;
}

.slider-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  background: #c34b38;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 15px;
  letter-spacing: 1px;
  border-bottom-right-radius: 6px;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  z-index: 10;
}

.slider-inner {
  display: flex;
  align-items: center;
  padding: 30px 35px;
  gap: 30px;
}

.slider-text {
  flex: 1;
}

.slider-text h2 {
  font-size: 26px;
  color: #2b3e48;
  margin-bottom: 12px;
  font-weight: 700;
}

.slider-text h2 a {
  color: #2b3e48;
  text-decoration: none;
}

.slider-text h2 a:hover {
  color: var(--primary-teal);
}

.slider-text p {
  color: #555555;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.locatedin-badge {
  display: inline-block;
  background: #3d5866;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.slider-photo {
  flex: 0 0 380px;
}

.slider-photo img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: block;
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 15px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #bcc3c0;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.slider-dot.active {
  background: #3d5866;
  transform: scale(1.25);
}

/* ==========================================================================
   Zip Code Search Widget
   ========================================================================== */

.zip-search-widget {
  background: #fdfdfd;
  border: 1px solid #dce1e3;
  border-radius: 5px;
  padding: 20px 24px;
  margin: 30px 0 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.zip-search-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-teal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zip-search-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.form-group-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-label-inline {
  font-weight: 600;
  font-size: 13px;
  color: #444444;
}

.zip-select, .zip-input {
  padding: 8px 12px;
  border: 1px solid #ccd2d6;
  border-radius: 4px;
  font-size: 14px;
  color: #333333;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.zip-select:focus, .zip-input:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 2px rgba(61, 88, 102, 0.15);
}

.arrow-icon {
  width: 24px;
  height: auto;
  vertical-align: middle;
}

.btn-zip-search {
  background: #c34b38;
  color: #ffffff;
  border: none;
  padding: 9px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s;
}

.btn-zip-search:hover {
  background: #a83827;
  transform: translateY(-1px);
}

/* Shared public buttons (pricing/submission pages) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s, border-color .16s, color .16s, box-shadow .16s, transform .16s;
}

.btn-primary {
  background: linear-gradient(135deg, #476574, #3d5866);
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(61, 88, 102, .22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3d5866, #2f4653);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(61, 88, 102, .28);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary-teal);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--light-teal);
  border-color: var(--accent-teal);
  color: var(--dark-teal);
}

.btn-block {
  width: 100%;
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid rgba(61, 88, 102, .35);
  outline-offset: 2px;
}

/* ==========================================================================
   Headings & Content Sections
   ========================================================================== */

h1.home-title {
  font-size: 26px;
  color: var(--dark-teal);
  margin: 25px 0 15px;
  font-weight: 700;
  line-height: 1.3;
}

.home-intro-text {
  font-size: 14px;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 25px;
}

.home-intro-text p {
  margin-bottom: 12px;
}

.message_karma_tealgrey {
  background: #476270;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 20px;
  font-weight: 700;
  margin: 30px 0 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

/* ==========================================================================
   5-Column States Table (.Rtable)
   ========================================================================== */

.Rtable--5cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 35px;
}

.Rtable--3cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 35px;
}

@media (max-width: 991px) {
  .Rtable--5cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .Rtable--3cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .Rtable--5cols,
  .Rtable--3cols {
    grid-template-columns: 1fr;
  }
}

/* Category Description Box */
.catdesc {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 24px 28px;
  margin: 15px 0 25px;
  line-height: 1.75;
  color: #333333;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.catdesc h2 {
  font-size: 20px;
  color: #1e3a47;
  margin: 22px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e2e8ec;
}

.catdesc h2:first-of-type {
  margin-top: 15px;
}

.catdesc h3 {
  font-size: 16px;
  color: #2b4c5d;
  margin: 18px 0 8px;
  font-weight: 700;
}

.catdesc p {
  margin-bottom: 14px;
}

.catdesc ul, .catdesc ol {
  margin: 10px 0 16px 24px;
}

.catdesc li {
  margin-bottom: 8px;
}

.catdesc strong {
  color: #1a2f3a;
}

.Rtable-cell {
  padding: 10px 14px;
  border-right: 1px solid #edf0f2;
  border-bottom: 1px solid #edf0f2;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s ease;
}

.Rtable-cell:hover {
  background: #eef4f7;
}

.Rtable-cell a {
  color: #333333;
  display: block;
  width: 100%;
}

.Rtable-cell a:hover {
  color: var(--primary-teal);
  text-decoration: none;
  font-weight: 600;
}

.state-count-badge {
  font-size: 11px;
  color: #888888;
  background: #e5e9ec;
  padding: 2px 6px;
  border-radius: 10px;
}

/* ==========================================================================
   Practice Areas Grid
   ========================================================================== */

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 15px;
  margin-bottom: 35px;
}

.practice-card {
  background: #fdfdfd;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.practice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  border-color: var(--primary-teal);
}

.practice-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--light-teal);
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.practice-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.practice-info h4 a {
  color: var(--dark-teal);
}

.practice-info span {
  font-size: 12px;
  color: #777777;
}

/* ==========================================================================
   Lawyer Directory Listing Cards
   ========================================================================== */

.lawyers-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.lawyer-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 22px 25px;
  display: flex;
  gap: 20px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.lawyer-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: #b5c4cc;
}

.lawyer-card.featured-card {
  border-left: 4px solid #c34b38;
}

.lawyer-main {
  flex: 1;
}

/* Featured image in listing cards (same as findalawyer123.com, 2:1 like dealerpic) */
.lawyer-card-img-wrap {
  flex: 0 0 170px;
  width: 170px;
  max-height: 92px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #e6ebee;
  background: #f4f7f8;
  align-self: flex-start;
}

.lawyer-card-img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: block;
}

.lawyer-card-img-placeholder {
  width: 170px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef3f6, #e2e9ed);
  color: #9fb3bd;
  border-radius: 4px;
  flex: 0 0 170px;
}

.lawyer-card-img-placeholder i {
  font-size: 34px;
}

/* Profile page featured image (matches original dealerpic 200x100) */
.profile-img-wrap {
  flex: 0 0 200px;
  width: 200px;
  max-height: 100px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e6ebee;
  background: #f4f7f8;
  align-self: stretch;
}

.profile-img-wrap img {
  width: 100%;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
  display: block;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.lawyer-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-teal);
  margin-bottom: 8px;
}

.lawyer-title a {
  color: var(--dark-teal);
}

.lawyer-title a:hover {
  color: var(--primary-teal);
}

.lawyer-location {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lawyer-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}

.lawyer-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.area-pill {
  font-size: 12px;
  background: #eef3f6;
  color: #446170;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.lawyer-actions {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  border-left: 1px solid #edf0f2;
  padding-left: 20px;
}

.btn-phone {
  background: #3d5866;
  color: #ffffff;
  text-align: center;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.btn-phone:hover {
  background: #2b3e48;
  color: #fff;
  text-decoration: none;
}

.btn-website {
  background: #f4f6f7;
  color: #333333;
  border: 1px solid #ccd2d6;
  text-align: center;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.btn-website:hover {
  background: #e8ecee;
  text-decoration: none;
}

.btn-profile {
  color: var(--primary-teal);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   Pagination Styling
   ========================================================================== */

.karma-pages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 30px 0 40px;
}

.karma-pages a, .karma-pages span {
  padding: 7px 13px;
  border: 1px solid #d2d8db;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  color: #444444;
  background: #ffffff;
  text-decoration: none;
}

.karma-pages a:hover {
  background: #3d5866;
  color: #ffffff;
  border-color: #3d5866;
}

.karma-pages .current {
  background: #3d5866;
  color: #ffffff;
  border-color: #3d5866;
}

.karma-pages .inactive {
  color: #aaaaaa;
  background: #f7f7f7;
  cursor: not-allowed;
}

/* ==========================================================================
   Single Lawyer Profile
   ========================================================================== */

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  margin: 25px 0 40px;
}

.profile-main-box {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 30px;
}

.profile-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
  margin-bottom: 25px;
}

.profile-title {
  font-size: 28px;
  color: var(--dark-teal);
  margin-bottom: 10px;
}

.profile-badge {
  display: inline-block;
  background: #e8f3ea;
  color: #277e38;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.profile-bio {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.profile-bio p {
  margin-bottom: 16px;
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: start;
  position: sticky;
  top: 20px;
}

.profile-sidebar-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  position: static;
  box-shadow: 0 1px 2px rgba(16, 32, 42, .03);
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-teal);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7ecee;
  position: relative;
}

.sidebar-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 38px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-teal);
}

.sidebar-title i {
  color: var(--primary-teal);
  font-size: 15px;
}

/* Shared sidebar link lists */
.sidebar-link-list,
.sidebar-article-list,
.article-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-link-list li + li {
  border-top: 1px solid #eef2f3;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  color: #40535d;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.sidebar-link:hover {
  color: var(--primary-teal);
  text-decoration: none;
}

.sidebar-link.is-current {
  color: var(--dark-teal);
  font-weight: 700;
}

.sidebar-count {
  flex: 0 0 auto;
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 10px;
  background: #eef2f4;
  color: #5f6d75;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
}

.sidebar-link.is-current .sidebar-count {
  background: var(--light-teal);
  color: var(--primary-teal);
}

/* Recent / related article lists */
.sidebar-article-item {
  padding: 10px 0;
}

.sidebar-article-item:first-child {
  padding-top: 0;
}

.sidebar-article-item:last-child {
  padding-bottom: 0;
}

.sidebar-article-item + .sidebar-article-item {
  border-top: 1px solid #eef2f3;
}

.sidebar-article-title {
  display: block;
  color: var(--dark-teal);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

.sidebar-article-title:hover {
  color: var(--accent-teal);
  text-decoration: none;
}

.sidebar-article-meta {
  display: block;
  margin-top: 4px;
  color: #66757c;
  font-size: 11.5px;
  line-height: 1.4;
}

.sidebar-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef2f3;
  color: var(--primary-teal);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.sidebar-view-all:hover {
  color: var(--dark-teal);
  text-decoration: none;
}

.sidebar-view-all i {
  font-size: 10px;
  transition: transform .15s ease;
}

.sidebar-view-all:hover i {
  transform: translateX(3px);
}

/* Submission-page sidebar */
.sidebar-check-list,
.sidebar-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-check-list li {
  position: relative;
  padding: 7px 0 7px 24px;
  color: #4f626b;
  font-size: 13px;
  line-height: 1.5;
}

.sidebar-check-list li i {
  position: absolute;
  left: 0;
  top: 9px;
  color: #2e7d32;
  font-size: 11px;
}

.sidebar-step-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f3;
  color: #4f626b;
  font-size: 13px;
  line-height: 1.5;
}

.sidebar-step-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.sidebar-step-list .step-num {
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--light-teal);
  color: var(--primary-teal);
  font-size: 11px;
  font-weight: 700;
}

.sidebar-help-text {
  margin: 0 0 14px;
  color: #66757c;
  font-size: 12.5px;
  line-height: 1.65;
}

/* Category strip above the blog grid */
.blog-category-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 20px 0 4px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 32, 42, .03);
}

.blog-category-nav-label {
  flex: 0 0 auto;
  color: #5f6f77;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.blog-category-nav-label i {
  margin-right: 4px;
  color: var(--primary-teal);
}

.blog-category-chips {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.blog-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid #dfe6e9;
  border-radius: 20px;
  background: #f8fafb;
  color: #4f626b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.blog-category-chip:hover {
  background: var(--light-teal);
  border-color: var(--accent-teal);
  color: var(--dark-teal);
  text-decoration: none;
}

.blog-category-chip.is-active {
  background: var(--primary-teal);
  border-color: var(--primary-teal);
  color: #ffffff;
}

.blog-category-chip.is-active:hover {
  background: var(--dark-teal);
  border-color: var(--dark-teal);
  color: #ffffff;
}

.blog-category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 10px;
  background: rgba(61, 88, 102, .08);
  color: #5f6d75;
  font-size: 10px;
  font-weight: 700;
}

.blog-category-chip.is-active .blog-category-count {
  background: rgba(255, 255, 255, .22);
  color: #ffffff;
}

/* Article table of contents */
.article-toc-list li {
  margin: 0;
}

.article-toc-list a {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 2px solid #e2e8ea;
  color: #4f626b;
  font-size: 12.5px;
  line-height: 1.45;
  text-decoration: none;
}

.article-toc-list a:hover {
  border-left-color: var(--primary-teal);
  background: #f7fafb;
  color: var(--dark-teal);
  text-decoration: none;
}

.article-toc-list .toc-level-3 a {
  padding-left: 24px;
  color: #66757c;
  font-size: 12px;
}

.article-content h2,
.article-content h3 {
  scroll-margin-top: 20px;
}

.contact-row {
  margin-bottom: 14px;
  font-size: 14px;
}

.contact-label {
  font-weight: 700;
  color: #666;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-val {
  color: #222;
  font-size: 14px;
}

/* ==========================================================================
   Blogs Section
   ========================================================================== */

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
  margin: 25px 0 40px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.07);
}

.blog-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card h3 a {
  color: var(--dark-teal);
}

.blog-card p {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 15px;
}

.blog-read-more {
  font-weight: 700;
  color: var(--primary-teal);
  font-size: 13px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

#footer {
  background: #25333b;
  color: #a1b0b8;
  padding: 40px 0 25px;
  font-size: 13px;
  border-top: 3px solid #1c272d;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #c4d0d6;
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #33444e;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */

@media (max-width: 900px) {
  .Rtable--5cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .slider-inner {
    flex-direction: column;
    padding: 25px;
  }
  .slider-photo {
    flex: auto;
    width: 100%;
  }
  .slider-photo img {
    height: 200px;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-sidebar {
    position: static;
  }
  .blog-category-nav {
    align-items: flex-start;
  }
  .blog-category-nav-label {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 600px) {
  .Rtable--5cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-nav {
    display: none;
    width: 100%;
    margin-top: 15px;
  }
  .main-nav.active {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .zip-search-form {
    flex-direction: column;
    align-items: stretch;
  }
  .lawyer-card {
    flex-direction: column;
  }
  .lawyer-card-img-wrap,
  .lawyer-card-img-placeholder {
    flex: 0 0 auto;
    width: 100%;
    max-height: 180px;
  }
  .lawyer-card-img {
    height: 180px;
  }
  .lawyer-card-img-placeholder {
    height: 180px;
  }
  .profile-header {
    flex-direction: column;
  }
  .profile-img-wrap {
    width: 100%;
    flex: 0 0 auto;
    max-height: 200px;
    align-self: auto;
  }
  .profile-img-wrap img {
    height: 100%;
    min-height: 0;
    max-height: 200px;
  }
  .lawyer-actions {
    border-left: none;
    border-top: 1px solid #edf0f2;
    padding-left: 0;
    padding-top: 15px;
  }
}

/* ==========================================================================
   Law Firm Map (Leaflet / OpenStreetMap)
   Replicates the Geo Mashup "Law Firm Map" section on FindaLawyer123.com
   and the "Plumbing Company Map" section on PlumberSearch.org.
   ========================================================================== */

.lawyer-map {
  width: 100%;
  height: 400px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #e7e9e6;
  margin-bottom: 30px;
  z-index: 1;
}

.leaflet-container {
  font-family: var(--font-main);
}

.lawyer-map-fallback {
  padding: 18px 20px;
  background: #f7f9fa;
  border: 1px dashed var(--border-color);
  border-radius: 4px;
  font-size: 13px;
}

.lawyer-map-fallback p {
  font-weight: 700;
  color: var(--dark-teal);
  margin-bottom: 10px;
}

.lawyer-map-fallback a {
  display: block;
  padding: 3px 0;
  color: var(--primary-teal);
}

.lawyer-pin-wrap {
  background: transparent;
  border: none;
}

.lawyer-pin {
  width: 30px;
  height: 30px;
  background: #c34b38;
  border: 2px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lawyer-pin i {
  transform: rotate(45deg);
  color: #fff;
  font-size: 13px;
}

.lawyer-popup {
  font-size: 13px;
  line-height: 1.5;
  min-width: 180px;
}

.lawyer-popup strong {
  color: var(--dark-teal);
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.lawyer-popup-loc {
  color: #666;
  font-size: 12px;
  margin-bottom: 6px;
}

.lawyer-popup-loc i {
  color: #c34b38;
}

.lawyer-popup-link {
  color: var(--primary-teal);
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
}

.lawyer-popup-link:hover {
  text-decoration: underline;
}

/* Marker cluster colors matching the theme (teal/grey + red accent) */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgba(195, 75, 56, 0.55);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: #c34b38;
  color: #ffffff;
  font-weight: 700;
}

.marker-cluster-small div { border-radius: 50% !important; }

/* Admin coordinate picker map */
#coord-map {
  width: 100%;
  height: 320px;
  border: 1px solid var(--admin-border, #e0e4e7);
  border-radius: 4px;
  background: #e7e9e6;
}

@media (max-width: 600px) {
  .lawyer-map {
    height: 300px;
  }
}

/* ==========================================================================
   Phase 2 additions � see-more, ratings, reviews, tags, breadcrumbs, ads
   Appended only; no existing rule was modified.
   ========================================================================== */

/* --- Breadcrumbs --- */
.fl-breadcrumbs {
  margin: 20px 0 10px;
  font-size: 13px;
  color: #777;
}
.fl-breadcrumbs a { color: #555; text-decoration: none; }
.fl-breadcrumbs a:hover { color: var(--accent-teal); text-decoration: underline; }
.fl-breadcrumbs strong { color: #333; font-weight: 600; }

/* --- "See more" expandable description --- */
.see-more { margin: 8px 0 0; }
.see-more-text { display: inline; }
.see-more-rest[hidden] { display: none; }
.see-more-toggle {
  display: inline-block;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-teal);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.see-more-toggle:hover { text-decoration: underline; color: var(--dark-teal); }
.see-more-toggle i { font-size: 11px; margin-left: 2px; transition: transform .15s ease; }
.see-more-toggle.is-open i { transform: rotate(180deg); }

/* --- Rating stars --- */
.lawyer-rating { margin: 4px 0 2px; }
.rating-block { display: inline-flex; align-items: center; gap: 5px; }
.rating-stars { color: #f0a500; font-size: 13px; letter-spacing: 1px; }
.rating-stars .fa-star-half-alt { color: #f0a500; }
.rating-count { font-size: 12px; color: #777; }

/* --- Tag pills --- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-pill {
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: #fff;
  color: var(--primary-teal);
  font-size: 12px;
  text-decoration: none;
}
.tag-pill:hover { background: var(--light-teal); border-color: var(--accent-teal); color: var(--dark-teal); }
.tag-pill.is-current { background: var(--primary-teal); border-color: var(--primary-teal); color: #fff; }
.article-tags { margin-top: 22px; padding-top: 18px; border-top: 1px solid #eee; }

/* --- Recent Law Firms sidebar list --- */
.fl-recent-list { list-style: none; margin: 0; padding: 0; }
.fl-recent-list li {
  padding: 9px 0;
  border-bottom: 1px solid #eef1f2;
  font-size: 13px;
  line-height: 1.45;
}
.fl-recent-list li:last-child { border-bottom: 0; }
.fl-recent-link { display: block; font-weight: 600; color: var(--dark-teal); text-decoration: none; }
.fl-recent-link:hover { color: var(--accent-teal); text-decoration: underline; }
.fl-recent-loc,
.fl-recent-phone { display: block; color: #777; font-size: 12px; margin-top: 3px; }
.fl-recent-phone i { color: #c34b38; }
.fl-recent-loc i { color: #c34b38; }

/* --- Reviews --- */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-grey);
  margin-bottom: 20px;
}
.reviews-score { font-size: 30px; font-weight: 700; color: var(--dark-teal); line-height: 1; }
.reviews-score small { display: block; font-size: 11px; font-weight: 400; color: #777; margin-top: 4px; }
.reviews-bars { flex: 1; min-width: 190px; }
.reviews-bar-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #777; margin-bottom: 3px; }
.reviews-bar { flex: 1; height: 7px; background: #e3e8ea; border-radius: 4px; overflow: hidden; }
.reviews-bar span { display: block; height: 100%; background: #f0a500; border-radius: 4px; }

.review-item {
  padding: 15px 0;
  border-bottom: 1px solid #eef1f2;
}
.review-item:last-child { border-bottom: 0; }
.review-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.review-author { font-weight: 700; color: var(--dark-teal); font-size: 14px; }
.review-date { font-size: 11px; color: #999; }
.review-title { font-weight: 600; font-size: 14px; margin: 6px 0 4px; color: #333; }
.review-body { font-size: 13px; line-height: 1.65; color: #555; }

.review-form { margin-top: 22px; padding: 20px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-grey); }
.review-form h3 { font-size: 16px; color: var(--dark-teal); margin: 0 0 4px; font-weight: 700; }
.review-form-note { font-size: 12px; color: #888; margin: 0 0 14px; }
.review-form label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 5px; color: #444; }
.review-form .rf-field { margin-bottom: 12px; }
.review-form input[type="text"],
.review-form input[type="email"],
.review-form textarea,
.review-form select { width: 100%; }
.star-picker { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 3px; }
.star-picker input { position: absolute; opacity: 0; pointer-events: none; }
.star-picker label { font-size: 21px; color: #d8dde0; cursor: pointer; margin: 0; }
.star-picker label:hover,
.star-picker label:hover ~ label,
.star-picker input:checked ~ label { color: #f0a500; }

.review-msg-ok { background: #e8f5e9; border: 1px solid #b7dfb9; color: #2e7d32; padding: 11px 13px; border-radius: 4px; font-size: 13px; margin-bottom: 14px; }
.review-msg-err { background: #fdecea; border: 1px solid #f5c2c0; color: #a8352a; padding: 11px 13px; border-radius: 4px; font-size: 13px; margin-bottom: 14px; }

/* --- AdSense units --- */
.adsense-unit { margin: 24px 0; text-align: center; }
.adsense-label {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #a8b3b9;
  margin-bottom: 5px;
}
.adsense-sidebar { margin: 0 0 22px; }
.adsense-footer { margin: 26px 0 0; }

/* --- Contact form grid on narrow screens --- */
@media (max-width: 620px) {
  .fl-contact-form > div:first-of-type { grid-template-columns: 1fr !important; }
}
