/* ============================================
   Attorney Directory Page Styles
   ============================================ */

:root {
  --ad-primary: #072032;
  --ad-theme: #0d8cb1;
  --ad-gold: #d4a543;
  --ad-gold-light: #f5e6c8;
  --ad-text: #333;
  --ad-text-light: #666;
  --ad-bg: #f8f9fb;
  --ad-card-bg: #ffffff;
  --ad-border: #e8ecf0;
  --ad-radius: 12px;
}

/* Hero Section */
section.ad-hero {
  background: #072032 !important;
  background-color: #072032 !important;
  padding: 160px 0 60px;
  position: relative;
  overflow: hidden;
}

.ad-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13, 140, 177, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.ad-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 165, 67, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.ad-hero .container {
  position: relative;
  z-index: 2;
}

.ad-hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.ad-hero-badge {
  display: inline-block;
  background: rgba(13, 140, 177, 0.2);
  color: #5ecfef;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.ad-hero-title {
  color: #ffffff;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.2;
}

.ad-hero-subtitle {
  color: #94a3b8;
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 30px;
}

/* Featured Attorney Section */
.ad-featured-section {
  padding: 60px 0 40px;
  background: var(--ad-bg);
}

.ad-featured-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.ad-featured-label .icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #d4a543, #f0d07a);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.ad-featured-label .text {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ad-gold);
}

.ad-featured-card {
  background: var(--ad-card-bg);
  border-radius: 16px;
  border: 1px solid var(--ad-border);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: row;
}

.ad-featured-photo-col {
  flex: 0 0 280px;
  position: relative;
  background: linear-gradient(135deg, #072032, #0a3048);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.ad-featured-photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #d4a543, #c49a3a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ad-featured-slot-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.ad-featured-info {
  flex: 1;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ad-featured-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--ad-primary);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.ad-featured-firm {
  font-size: 15px;
  color: var(--ad-theme);
  font-weight: 600;
  margin: 0 0 16px;
}

.ad-featured-bio {
  font-size: 14px;
  color: var(--ad-text-light);
  line-height: 1.7;
  margin: 0 0 20px;
  max-height: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-featured-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.ad-featured-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ad-text);
}

.ad-featured-detail i {
  color: var(--ad-theme);
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.ad-featured-languages {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ad-featured-languages .lang-tag {
  background: #eef6f9;
  color: var(--ad-theme);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
}

.ad-featured-placeholder {
  text-align: center;
  padding: 60px 20px;
  color: var(--ad-text-light);
  background: var(--ad-card-bg);
  border-radius: 16px;
  border: 1px solid var(--ad-border);
}

.ad-featured-placeholder i {
  font-size: 48px;
  color: #ddd;
  margin-bottom: 16px;
  display: block;
}

/* Search & Filter */
.ad-search-section {
  padding: 0 0 40px;
  background: var(--ad-bg);
}

.ad-search-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ad-search-box {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.ad-search-box input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 1px solid var(--ad-border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--ad-text);
  background: var(--ad-card-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.ad-search-box input:focus {
  border-color: var(--ad-theme);
  box-shadow: 0 0 0 3px rgba(13, 140, 177, 0.12);
}

.ad-search-box input::placeholder {
  color: #aab4be;
}

.ad-search-box i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #aab4be;
  font-size: 16px;
}

.ad-results-count {
  font-size: 14px;
  color: var(--ad-text-light);
  font-weight: 500;
  white-space: nowrap;
}

.ad-results-count span {
  font-weight: 700;
  color: var(--ad-theme);
}

/* Directory Grid */
.ad-directory-section {
  padding: 0 0 80px;
  background: var(--ad-bg);
}

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

.ad-card {
  background: var(--ad-card-bg);
  border-radius: var(--ad-radius);
  border: 1px solid var(--ad-border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.ad-card-header {
  position: relative;
  padding: 24px 24px 0;
  display: flex;
  gap: 16px;
}

.ad-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-card-avatar .placeholder-initials {
  font-size: 24px;
  font-weight: 700;
  color: #64748b;
}

.ad-card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ad-primary);
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}

.ad-card-firm {
  font-size: 13px;
  color: var(--ad-theme);
  font-weight: 600;
  margin: 0 0 8px;
}

.ad-card-location {
  font-size: 12px;
  color: var(--ad-text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ad-card-location i {
  font-size: 11px;
  color: #aab4be;
}

.ad-card-body {
  padding: 16px 24px 20px;
}

.ad-card-bio {
  font-size: 13px;
  color: var(--ad-text-light);
  line-height: 1.6;
  margin: 0 0 14px;
  max-height: 62px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.ad-card-langs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ad-card-langs .lang {
  background: #f0f7fa;
  color: #0a7d9e;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.ad-card-footer {
  padding: 0 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ad-card-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ad-text);
  text-decoration: none;
  transition: color 0.2s;
}

.ad-card-contact:hover {
  color: var(--ad-theme);
}

.ad-card-contact i {
  color: var(--ad-theme);
  font-size: 13px;
  width: 16px;
  text-align: center;
}

/* Empty State */
.ad-empty-state {
  text-align: center;
  padding: 80px 20px;
  grid-column: 1 / -1;
}

.ad-empty-state i {
  font-size: 56px;
  color: #dde3e8;
  margin-bottom: 20px;
  display: block;
}

.ad-empty-state h3 {
  font-size: 20px;
  color: var(--ad-primary);
  margin: 0 0 8px;
  font-weight: 700;
}

.ad-empty-state p {
  font-size: 15px;
  color: var(--ad-text-light);
  margin: 0;
}

/* Loading */
.ad-loading {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.ad-loading .spinner-border {
  width: 40px;
  height: 40px;
  color: var(--ad-theme);
}

.ad-loading p {
  margin-top: 16px;
  color: var(--ad-text-light);
  font-size: 14px;
}

/* Featured Attorneys Bar (Index Page) */
.featured-attorneys-bar {
  background: #f8f9fb;
  padding: 60px 0;
  border-bottom: 1px solid #e8ecf0;
}

.featured-attorneys-bar .section-label {
  text-align: center;
  margin-bottom: 12px;
}

.featured-attorneys-bar .section-label span {
  display: inline-block;
  background: rgba(212, 165, 67, 0.12);
  color: #b8922e;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 20px;
}

.featured-attorneys-bar .section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #072032;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.featured-attorneys-bar .section-subtitle {
  text-align: center;
  font-size: 15px;
  color: #666;
  margin: 0 0 36px;
}

.fab-cards-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.fab-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e8ecf0;
  padding: 28px 24px;
  text-align: center;
  flex: 0 1 300px;
  max-width: 340px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fab-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.fab-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid #e8ecf0;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fab-card-avatar .initials {
  font-size: 28px;
  font-weight: 700;
  color: #64748b;
}

.fab-card-name {
  font-size: 17px;
  font-weight: 700;
  color: #072032;
  margin: 0 0 2px;
}

.fab-card-firm {
  font-size: 13px;
  color: #0d8cb1;
  font-weight: 600;
  margin: 0 0 12px;
}

.fab-card-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.fab-card-rating .stars {
  color: #d4a543;
  font-size: 14px;
  letter-spacing: 2px;
}

.fab-card-rating .value {
  font-size: 14px;
  font-weight: 700;
  color: #072032;
}

.fab-card-cases {
  font-size: 12px;
  color: #888;
}

.fab-view-all {
  text-align: center;
  margin-top: 32px;
}

.fab-view-all a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0d8cb1;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid #0d8cb1;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.fab-view-all a:hover {
  background: #0d8cb1;
  color: #fff;
}

.fab-loading {
  text-align: center;
  padding: 40px;
  color: #888;
}

/* ============================================
   Responsive
   ============================================ */

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

  .ad-featured-card {
    flex-direction: column;
  }

  .ad-featured-photo-col {
    flex: none;
    height: 260px;
  }
}

@media (max-width: 991px) {
  .ad-hero-title {
    font-size: 34px;
  }

  .ad-featured-info {
    padding: 24px;
  }

  .fab-cards-container {
    gap: 16px;
  }

  .fab-card {
    flex: 0 1 260px;
  }
}

@media (max-width: 767px) {
  .ad-hero {
    padding: 140px 0 40px;
  }

  .ad-hero-title {
    font-size: 28px;
  }

  .ad-hero-subtitle {
    font-size: 15px;
  }

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

  .ad-featured-photo-col {
    height: 220px;
  }

  .ad-featured-name {
    font-size: 22px;
  }

  .ad-featured-details {
    flex-direction: column;
    gap: 10px;
  }

  .ad-search-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .ad-search-box {
    min-width: unset;
  }

  .fab-cards-container {
    flex-direction: column;
    align-items: center;
  }

  .fab-card {
    flex: none;
    width: 100%;
    max-width: 340px;
  }

  .featured-attorneys-bar {
    padding: 40px 0;
  }

  .featured-attorneys-bar .section-title {
    font-size: 24px;
  }
}
