/* ==========================================================================
   Divorce.org.uk Theme Styles
   Built on Bootstrap 5
   ========================================================================== */

:root {
    --divorce-primary: #003078;
    --divorce-secondary: #1d70b8;
    --divorce-link: #1d70b8;
    --divorce-link-hover: #003078;
    --divorce-text: #0b0c0c;
    --divorce-muted: #505a5f;
    --divorce-light: #f3f2f1;
    --divorce-border: #b1b4b6;
    --divorce-focus: #ffdd00;
    --divorce-teal: #007c7c;
    --divorce-teal-dark: #005a5a;
    --divorce-red: #d4351c;
    --divorce-orange: #f47738;
    --divorce-purple: #5a3d9e;
    --divorce-green: #00703c;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 19px;
    line-height: 1.5;
    color: var(--divorce-text);
}

a {
    color: var(--divorce-link);
    transition: color 0.15s;
}

a:hover {
    color: var(--divorce-link-hover);
}

/* ==========================================================================
   Skip Link (Accessibility)
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--divorce-focus);
    color: var(--divorce-text);
    padding: 8px 16px;
    z-index: 1100;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background: var(--divorce-primary);
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: white;
}

.logo:hover {
    color: white;
}

.logo-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.header-search .form-control {
    border: 3px solid white;
    border-radius: 0;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    height: 42px;
}

.header-search .form-control:focus {
    border-color: var(--divorce-focus);
    box-shadow: none;
}

.header-search .btn {
    background: var(--divorce-teal);
    color: white;
    border: none;
    border-radius: 0;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-family: inherit;
    height: 42px;
}

.header-search .btn:hover {
    background: var(--divorce-teal-dark);
}


/* ==========================================================================
   Main Navigation
   ========================================================================== */

.main-nav {
    background: var(--divorce-light);
    border-bottom: 1px solid var(--divorce-border);
}

.main-nav .nav-link {
    color: var(--divorce-text);
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-bottom: 4px solid transparent;
    transition: all 0.15s;
}

.main-nav .nav-link:hover {
    background: white;
    border-bottom-color: var(--divorce-secondary);
}

.main-nav .nav-link.active {
    background: white;
    border-bottom-color: var(--divorce-teal);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumb-wrapper {
    border-bottom: 1px solid var(--divorce-border);
    padding: 1rem 0;
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 1rem;
}

.breadcrumb-item a {
    color: var(--divorce-link);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--divorce-muted);
}

/* ==========================================================================
   Hero Section (Homepage)
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, var(--divorce-primary) 0%, #004494 100%);
    padding: 3.75rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Ccircle cx='300' cy='200' r='250' fill='%23ffffff' fill-opacity='0.05'/%3E%3Ccircle cx='350' cy='150' r='180' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E") no-repeat center right;
    background-size: contain;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.375rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.hero-search {
    display: flex;
    max-width: 560px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-search input {
    flex: 1;
    padding: 1.125rem 1.5rem;
    font-size: 1.1875rem;
    border: 4px solid transparent;
    font-family: inherit;
}

.hero-search input:focus {
    outline: none;
    border-color: var(--divorce-focus);
}

.hero-search button {
    background: var(--divorce-teal);
    color: white;
    border: none;
    padding: 1.125rem 2rem;
    font-size: 1.1875rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.hero-search button:hover {
    background: var(--divorce-teal-dark);
}

/* ==========================================================================
   Category Hero
   ========================================================================== */

.category-hero {
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Ccircle cx='350' cy='150' r='200' fill='%23ffffff' fill-opacity='0.05'/%3E%3Ccircle cx='380' cy='100' r='120' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E") no-repeat center right;
    background-size: contain;
}

.category-hero--teal {
    background: var(--divorce-teal);
}

.category-hero--blue {
    background: var(--divorce-primary);
}

.category-hero--purple {
    background: var(--divorce-purple);
}

.category-hero--green {
    background: var(--divorce-green);
}

.category-hero--orange {
    background: var(--divorce-orange);
}

.category-hero--red {
    background: var(--divorce-red);
}

.category-hero h1 {
    color: white;
    font-size: 2.625rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.category-hero-lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3125rem;
    max-width: 680px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* ==========================================================================
   Page Header (Simple pages)
   ========================================================================== */

.page-header {
    background: var(--divorce-light);
    padding: 3rem 0;
    border-bottom: 1px solid var(--divorce-border);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--divorce-text);
}

.page-header .lead {
    font-size: 1.25rem;
    color: var(--divorce-muted);
    margin-bottom: 0;
    max-width: 42rem;
}

/* ==========================================================================
   Article Header
   ========================================================================== */

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--divorce-border);
}

.article-header h1 {
    font-size: 2.375rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--divorce-text);
}

.article-header .lead {
    font-size: 1.375rem;
    color: var(--divorce-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ==========================================================================
   Content Area
   ========================================================================== */

.content-area {
    max-width: 42rem;
}

.content-area h2,
.article-content h2 {
    font-size: 1.625rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--divorce-text);
}

.content-area h2:first-child,
.article-content h2:first-child {
    margin-top: 0;
}

.content-area h3,
.article-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--divorce-text);
}

.content-area p,
.article-content p {
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.content-area ul,
.content-area ol,
.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}

.content-area li,
.article-content li {
    margin-bottom: 0.625rem;
    line-height: 1.5;
}

/* ==========================================================================
   Emergency Banner
   ========================================================================== */

.emergency-banner {
    background: #fef7f7;
    border-left: 6px solid var(--divorce-red);
    padding: 1.25rem 1.5rem;
}

.emergency-banner h2 {
    color: var(--divorce-red);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.emergency-banner p {
    margin: 0;
    font-size: 1.0625rem;
}

.emergency-banner a {
    color: var(--divorce-red);
    font-weight: 600;
}

/* ==========================================================================
   Topic Cards (Homepage)
   ========================================================================== */

.topic-card {
    background: white;
    border: 1px solid var(--divorce-border);
    border-top: 6px solid var(--divorce-secondary);
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: block;
    height: 100%;
}

.topic-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.topic-card--teal {
    border-top-color: var(--divorce-teal);
}

.topic-card--orange {
    border-top-color: var(--divorce-orange);
}

.topic-card--purple {
    border-top-color: var(--divorce-purple);
}

.topic-card--green {
    border-top-color: var(--divorce-green);
}

.topic-card--pink {
    border-top-color: #912b88;
}

.topic-card h3 {
    font-size: 1.375rem;
    color: var(--divorce-link);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.topic-card:hover h3 {
    text-decoration: underline;
}

.topic-card p {
    font-size: 1.0625rem;
    color: var(--divorce-muted);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Featured Cards (Category pages)
   ========================================================================== */

.featured-card {
    background: white;
    border: 1px solid var(--divorce-border);
    border-left: 6px solid var(--divorce-teal);
    padding: 1.75rem 1.75rem 1.75rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: block;
    height: 100%;
}

.featured-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-left-color: var(--divorce-primary);
    color: inherit;
}

.featured-card h2 {
    font-size: 1.375rem;
    color: var(--divorce-link);
    margin-bottom: 0.625rem;
    font-weight: 700;
}

.featured-card:hover h2 {
    text-decoration: underline;
}

.featured-card p {
    font-size: 1.0625rem;
    color: var(--divorce-muted);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Topic Links List
   ========================================================================== */

.topic-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-links li {
    border-bottom: 1px solid var(--divorce-border);
}

.topic-links li:last-child {
    border-bottom: none;
}

.topic-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    color: var(--divorce-link);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    transition: color 0.15s;
}

.topic-links a:hover {
    color: var(--divorce-link-hover);
    text-decoration: underline;
}

.topic-links .arrow {
    color: var(--divorce-border);
    font-size: 1.25rem;
    transition: transform 0.15s, color 0.15s;
}

.topic-links a:hover .arrow {
    transform: translateX(4px);
    color: var(--divorce-link);
}

/* ==========================================================================
   Info Box
   ========================================================================== */

.info-box {
    background: var(--divorce-light);
    border-left: 4px solid var(--divorce-teal);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}

.info-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.info-box p:last-child,
.info-box ul:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Warning Box
   ========================================================================== */

.warning-box {
    background: #fef7f7;
    border-left: 4px solid var(--divorce-red);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}

.warning-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--divorce-red);
}

.warning-box p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   CTA Box
   ========================================================================== */

.cta-box {
    background: var(--divorce-primary);
    color: white;
    padding: 2rem;
    margin: 2.5rem 0;
}

.cta-box h3 {
    color: white;
    font-size: 1.375rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.25rem;
}

.cta-box .btn-cta {
    display: inline-block;
    background: var(--divorce-teal);
    color: white;
    padding: 0.875rem 1.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.0625rem;
    transition: background 0.15s;
}

.cta-box .btn-cta:hover {
    background: var(--divorce-teal-dark);
    color: white;
}

/* ==========================================================================
   Summary List (Key Facts)
   ========================================================================== */

.summary-list {
    background: var(--divorce-light);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.summary-list h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--divorce-muted);
}

.summary-list dl {
    margin: 0;
}

.summary-list dt {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.summary-list dd {
    margin: 0 0 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--divorce-border);
}

.summary-list dd:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.content-table {
    width: 100%;
    margin: 1.5rem 0 2rem;
    border-collapse: collapse;
}

.content-table th,
.content-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--divorce-border);
}

.content-table th {
    background: var(--divorce-light);
    font-weight: 700;
    font-size: 1rem;
}

.content-table td {
    font-size: 1rem;
}

.content-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   Related Links
   ========================================================================== */

.related-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--divorce-border);
}

.related-links h2 {
    font-size: 1.375rem;
    margin-bottom: 1.25rem;
}

.related-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-links-list li {
    margin: 0;
    border-bottom: 1px solid var(--divorce-border);
}

.related-links-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    color: var(--divorce-link);
    text-decoration: none;
    font-weight: 600;
}

.related-links-list a:hover {
    text-decoration: underline;
}

.related-links-list .arrow {
    color: var(--divorce-border);
    transition: transform 0.15s, color 0.15s;
}

.related-links-list a:hover .arrow {
    transform: translateX(4px);
    color: var(--divorce-link);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar-box {
    background: var(--divorce-light);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--divorce-teal);
}

.sidebar-box h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--divorce-text);
}

.sidebar-box p {
    font-size: 1.0625rem;
    color: var(--divorce-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.sidebar-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-box li {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--divorce-border);
}

.sidebar-box li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-box a {
    color: var(--divorce-link);
    text-decoration: none;
    font-weight: 600;
}

.sidebar-box a:hover {
    text-decoration: underline;
}

.sidebar-cta {
    background: var(--divorce-teal);
    color: white;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.sidebar-cta h2 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.sidebar-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.0625rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.sidebar-cta .btn-sidebar {
    display: inline-block;
    background: white;
    color: var(--divorce-teal);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.15s;
}

.sidebar-cta .btn-sidebar:hover {
    background: var(--divorce-focus);
    color: var(--divorce-text);
}

/* ==========================================================================
   Section Navigation
   ========================================================================== */

.section-nav {
    background: var(--divorce-light);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.section-nav h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--divorce-teal);
    color: var(--divorce-text);
}

.section-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-nav li {
    border-bottom: 1px solid var(--divorce-border);
}

.section-nav li:last-child {
    border-bottom: none;
}

.section-nav a {
    display: block;
    padding: 0.75rem 0;
    color: var(--divorce-link);
    text-decoration: none;
    font-size: 1.0625rem;
}

.section-nav a:hover {
    text-decoration: underline;
}

.section-nav a.active {
    font-weight: 700;
    color: var(--divorce-text);
}

/* ==========================================================================
   Popular Links Box
   ========================================================================== */

.popular-links {
    background: var(--divorce-light);
    padding: 2rem;
}

.popular-links h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--divorce-border);
}

.popular-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--divorce-border);
}

.popular-links li:last-child {
    border-bottom: none;
}

.popular-links a {
    color: var(--divorce-link);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popular-links a:hover {
    text-decoration: underline;
}

.popular-links a::before {
    content: '→';
    color: var(--divorce-secondary);
}

/* ==========================================================================
   Postcode Finder Box
   ========================================================================== */

.postcode-finder {
    background: var(--divorce-teal);
    color: white;
    padding: 2rem;
}

.postcode-finder h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.postcode-finder p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.25rem;
}

.postcode-finder input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: none;
    margin-bottom: 0.75rem;
    font-family: inherit;
}

.postcode-finder button {
    width: 100%;
    background: var(--divorce-primary);
    color: white;
    border: none;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.postcode-finder button:hover {
    background: #001d49;
}

/* ==========================================================================
   Page Meta
   ========================================================================== */

.page-meta {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--divorce-border);
    font-size: 0.9375rem;
    color: var(--divorce-muted);
}

.page-meta a {
    color: var(--divorce-link);
}

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

.site-footer {
    background: var(--divorce-light);
    border-top: 1px solid var(--divorce-border);
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--divorce-text);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: var(--divorce-link);
    text-decoration: none;
    font-size: 1rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--divorce-border);
    margin-top: 3rem;
    font-size: 0.9375rem;
    color: var(--divorce-muted);
}

.footer-bottom a {
    color: var(--divorce-link);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

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

@media (max-width: 991.98px) {
    .header-search {
        display: none !important;
    }

    .section-nav {
        position: static !important;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .category-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 17px;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .category-hero {
        padding: 2rem 0;
    }

    .category-hero h1 {
        font-size: 1.75rem;
    }

    .category-hero-lead {
        font-size: 1.125rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header .lead {
        font-size: 1.125rem;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

    .article-header .lead {
        font-size: 1.125rem;
    }

    .main-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }

    .content-table th,
    .content-table td {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.section-spacing {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--divorce-text);
}

.sticky-sidebar {
    position: sticky;
    top: 1.5rem;
}

/* ==========================================================================
   Solicitor Directory Styles
   ========================================================================== */

/* Directory Header */
.directory-header {
    margin-bottom: 2rem;
}

.directory-header h1 {
    margin-bottom: 0.5rem;
}

.directory-header .lead {
    color: var(--divorce-muted);
    margin-bottom: 1rem;
}

/* Directory Controls */
.directory-controls {
    background: var(--divorce-light);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.search-box {
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--divorce-border);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--divorce-primary);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.filter-select {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    border: 2px solid var(--divorce-border);
    border-radius: 6px;
    background: #fff;
    min-width: 160px;
    cursor: pointer;
}

.filter-select:focus {
    border-color: var(--divorce-primary);
    outline: none;
}

.view-toggle {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
    background: #fff;
    border-radius: 6px;
    padding: 0.25rem;
    border: 2px solid var(--divorce-border);
}

.view-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    color: var(--divorce-muted);
    transition: all 0.2s;
}

.view-btn.active {
    background: var(--divorce-primary);
    color: #fff;
}

.view-btn:hover:not(.active) {
    background: var(--divorce-light);
}

/* Featured Section */
.featured-section {
    margin-bottom: 2.5rem;
}

.featured-section h2 {
    margin-bottom: 1rem;
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.9375rem;
    font-weight: 600;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.featured-card {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px solid #f59e0b;
    position: relative;
}

.card-ribbon {
    position: absolute;
    top: -0.625rem;
    right: 1.25rem;
    background: #f59e0b;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Directory Views */
.directory-view {
    display: none;
}

.directory-view.active {
    display: block;
}

.directory-view>h2 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
}

.count {
    font-weight: 400;
    color: var(--divorce-muted);
}

/* Tier Groups */
.tier-group {
    margin-bottom: 2rem;
}

.tier-group h3 {
    margin-bottom: 1rem;
}

.tier-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.tier-badge.tier-1 {
    background: linear-gradient(135deg, var(--divorce-primary), #0f172a);
    color: #fff;
}

.tier-badge.tier-2 {
    background: linear-gradient(135deg, #475569, #334155);
    color: #fff;
}

.tier-badge.tier-3 {
    background: #e2e8f0;
    color: #475569;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

/* Cards */
.card {
    background: #fff;
    border: 1px solid var(--divorce-border);
    border-radius: 8px;
    transition: box-shadow 0.2s, transform 0.2s;
}

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

.card-body {
    padding: 1.25rem;
}

/* Firm Card */
.firm-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.firm-header h3,
.firm-header h4 {
    margin: 0;
    font-size: 1.125rem;
    flex: 1 1 100%;
}

.firm-header h3 a,
.firm-header h4 a {
    color: var(--divorce-text);
    text-decoration: none;
}

.firm-header h3 a:hover,
.firm-header h4 a:hover {
    color: var(--divorce-primary);
}

.location {
    font-size: 0.875rem;
    color: var(--divorce-muted);
}

.excerpt {
    font-size: 0.9375rem;
    color: var(--divorce-muted);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* Person Card */
.person-header {
    display: flex;
    gap: 0.875rem;
    margin-bottom: 0.75rem;
}

.avatar {
    width: 48px;
    height: 48px;
    background: var(--divorce-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

.person-header h3,
.person-header h4 {
    margin: 0 0 0.125rem 0;
    font-size: 1.0625rem;
}

.person-header h3 a,
.person-header h4 a {
    color: var(--divorce-text);
    text-decoration: none;
}

.person-header h3 a:hover,
.person-header h4 a:hover {
    color: var(--divorce-primary);
}

.subtitle {
    font-size: 0.875rem;
    color: var(--divorce-muted);
    margin: 0;
}

.firm-link {
    font-size: 0.8125rem;
    margin: 0.125rem 0 0 0;
}

.firm-link a {
    color: var(--divorce-secondary);
}

/* Badges */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.badge {
    font-size: 0.6875rem;
    padding: 0.1875rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-hod {
    background: #dbeafe;
    color: #1e40af;
}

.badge-ranking {
    background: #dcfce7;
    color: #166534;
}

.badge-chambers {
    background: #fef3c7;
    color: #92400e;
}

.badge-partner {
    background: #f3e8ff;
    color: #6b21a8;
}

.badge-award {
    background: #fef3c7;
    color: #92400e;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: var(--divorce-light);
    border-radius: 12px;
    color: var(--divorce-muted);
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--divorce-light);
    margin-top: 0.75rem;
}

.meta {
    font-size: 0.8125rem;
    color: var(--divorce-muted);
}

.card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--divorce-primary);
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--divorce-light);
    border-radius: 8px;
}

.no-results p {
    color: var(--divorce-muted);
    margin-bottom: 1rem;
}

/* ==========================================================================
   Profile Pages (Firm & Person)
   ========================================================================== */

.profile-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--divorce-border);
}

.profile-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.profile-title-row h1 {
    margin: 0;
}

.profile-location {
    color: var(--divorce-muted);
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.profile-avatar-row {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--divorce-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    flex-shrink: 0;
}

.profile-title-block h1 {
    margin: 0 0 0.25rem 0;
}

.profile-role {
    font-size: 1.125rem;
    color: var(--divorce-muted);
    margin: 0 0 0.25rem 0;
}

.profile-firm {
    margin: 0;
}

.profile-firm a {
    color: var(--divorce-secondary);
    font-weight: 600;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.profile-content {
    margin-bottom: 2rem;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--divorce-light);
}

/* Specialism List */
.specialism-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.specialism-tag {
    padding: 0.5rem 1rem;
    background: var(--divorce-light);
    border-radius: 20px;
    font-size: 0.9375rem;
    color: var(--divorce-text);
}

/* Awards List */
.awards-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.awards-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--divorce-light);
}

.awards-list li:before {
    content: "★";
    position: absolute;
    left: 0;
    color: #f59e0b;
}

.awards-list li:last-child {
    border-bottom: none;
}

/* Background List */
.background-list {
    margin: 0;
}

.background-list dt {
    font-weight: 600;
    color: var(--divorce-muted);
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

.background-list dt:first-child {
    margin-top: 0;
}

.background-list dd {
    margin: 0.25rem 0 0 0;
}

/* Team Grid */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.team-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--divorce-light);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.team-card:hover {
    background: #e5e5e5;
}

.team-avatar {
    width: 48px;
    height: 48px;
    background: var(--divorce-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 600;
    flex-shrink: 0;
}

.team-info {
    flex: 1;
}

.team-info h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--divorce-text);
}

.team-role {
    font-size: 0.875rem;
    color: var(--divorce-muted);
    margin: 0.125rem 0 0.375rem 0;
}

.team-badges {
    display: flex;
    gap: 0.375rem;
}

.team-arrow {
    font-size: 1.25rem;
    color: var(--divorce-muted);
}

/* Profile Sidebar */
.profile-sidebar {
    position: sticky;
    top: 1.5rem;
}

.sidebar-card {
    background: #fff;
    border: 1px solid var(--divorce-border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.sidebar-card h3 {
    font-size: 1rem;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--divorce-light);
}

.contact-item {
    margin-bottom: 0.875rem;
}

.contact-item:last-of-type {
    margin-bottom: 1rem;
}

.contact-item strong {
    display: block;
    font-size: 0.8125rem;
    color: var(--divorce-muted);
    margin-bottom: 0.125rem;
}

.contact-item p {
    margin: 0;
}

.contact-item a {
    word-break: break-all;
}

.info-list {
    margin: 0;
}

.info-list dt {
    font-size: 0.8125rem;
    color: var(--divorce-muted);
    margin-top: 0.75rem;
}

.info-list dt:first-child {
    margin-top: 0;
}

.info-list dd {
    margin: 0.125rem 0 0 0;
    font-weight: 600;
}

.cta-card {
    background: linear-gradient(135deg, var(--divorce-light), #e8e8e8);
}

.cta-card p {
    font-size: 0.9375rem;
    color: var(--divorce-muted);
    margin-bottom: 1rem;
}

.firm-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: var(--divorce-light);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.firm-link-card:hover {
    background: #e5e5e5;
}

.firm-name {
    font-weight: 600;
    color: var(--divorce-text);
}

.firm-arrow {
    color: var(--divorce-muted);
}

.sidebar-note {
    padding: 0.75rem 1rem;
    background: var(--divorce-light);
    border-radius: 6px;
}

.sidebar-note p {
    margin: 0;
    color: var(--divorce-muted);
}

/* Button Utilities */
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--divorce-primary);
    color: var(--divorce-primary);
}

.btn-outline:hover {
    background: var(--divorce-primary);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }

    .view-toggle {
        margin-left: 0;
        justify-content: center;
    }

    .featured-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .profile-avatar-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-badges {
        justify-content: center;
    }
}

/* ==========================================================================
   Solicitor Profile Pages
   ========================================================================== */

/* Tier Label */
.tier-label {
    display: inline-block;
    background: var(--divorce-teal);
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Team Member */
.team-member {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--divorce-light);
}

.team-member:last-child {
    border-bottom: none;
}

.team-member h3 {
    margin-bottom: 0.25rem;
}

.team-member-meta {
    color: var(--divorce-muted);
    margin-bottom: 0.75rem;
}

/* Sidebar disclaimer */
.sidebar-disclaimer {
    color: var(--divorce-muted);
    margin-top: 1.5rem;
}

/* ==========================================================================
   Profile Pages - Hero Sections
   ========================================================================== */

.profile-hero {
    background: linear-gradient(135deg, var(--divorce-primary) 0%, #1a4a8c 100%);
    color: #fff;
    padding: 3.5rem 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -5%;
    width: 55%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.profile-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.profile-hero--person {
    background: linear-gradient(135deg, var(--divorce-teal) 0%, #005a5a 100%);
}

.profile-hero--firm {
    background: linear-gradient(135deg, var(--divorce-primary) 0%, #1a4a8c 100%);
}

.profile-hero-content {
    position: relative;
    z-index: 1;
}

/* Profile Header with Avatar/Logo */
.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    min-width: 100px;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-avatar--person {
    border-radius: 50%;
}

.profile-avatar--firm {
    border-radius: 0;
    background: #fff;
    border: none;
}

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

.profile-avatar--firm img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.profile-avatar-initials {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
}

.profile-avatar--firm .profile-avatar-initials {
    color: var(--divorce-primary);
    font-size: 1.75rem;
}

.profile-header-content {
    flex: 1;
    min-width: 0;
}

.profile-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.profile-hero-subtitle {
    font-size: 1.1875rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.profile-hero-firm {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.profile-hero-firm svg {
    opacity: 0.85;
}

.profile-hero-firm a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 1px;
    transition: border-color 0.2s ease;
}

.profile-hero-firm a:hover {
    border-color: #fff;
    color: #fff;
}

.profile-hero-offices {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.625rem;
}

/* Profile Badges */
.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.125rem;
}

.profile-badges .badge {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-ranking {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

.badge-hod {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a1a1a;
    border: none;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.badge-chambers {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-size {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero CTA Card */
.profile-hero-cta {
    background: #fff;
    color: var(--divorce-text);
    padding: 1.75rem;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.profile-hero-cta h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    color: var(--divorce-text);
}

.profile-hero-cta>p {
    font-size: 0.9375rem;
    color: var(--divorce-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* CTA Buttons */
.btn-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--divorce-teal);
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
}

.btn-cta-primary:hover {
    background: var(--divorce-teal-dark);
    color: #fff;
}

.btn-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: transparent;
    color: var(--divorce-text);
    border: 1px solid var(--divorce-border);
    border-radius: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-cta-secondary:hover {
    background: var(--divorce-light);
    border-color: var(--divorce-muted);
    color: var(--divorce-text);
}

/* ==========================================================================
   Profile Pages - Main Content Area
   ========================================================================== */

.profile-main {
    background: #fff;
    padding: 2.5rem 0 3.5rem;
}

.profile-article {
    padding-top: 0;
}

.profile-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.profile-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--divorce-text);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.profile-section--about {
    padding-top: 0.5rem;
}

.profile-content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #374151;
}

.profile-content p {
    margin-bottom: 1.25rem;
}

.profile-content p:last-child {
    margin-bottom: 0;
}

/* Info List (Professional Background) */
.info-list {
    margin: 0;
    display: grid;
    gap: 0;
}

.info-list-item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-list-item:first-child {
    padding-top: 0;
}

.info-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-list-item dt {
    width: 140px;
    min-width: 140px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--divorce-muted);
}

.info-list-item dd {
    flex: 1;
    margin: 0;
    font-size: 0.9375rem;
    color: var(--divorce-text);
}

/* Specialism Grid */
.specialism-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.625rem;
}

.specialism-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--divorce-text);
    transition: all 0.15s ease;
}

.specialism-item:hover {
    background: #f1f5f9;
    border-color: var(--divorce-teal);
}

.specialism-item svg {
    color: var(--divorce-teal);
    flex-shrink: 0;
}

/* Awards List */
.awards-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.award-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-radius: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #92400e;
}

.award-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.award-icon svg {
    color: #fff;
}

/* Contact Methods */
.contact-methods {
    display: grid;
    gap: 0.75rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    color: var(--divorce-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-method:hover {
    background: #fff;
    border-color: var(--divorce-teal);
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--divorce-teal);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method-icon svg {
    color: #fff;
}

.contact-method-content {
    flex: 1;
    min-width: 0;
}

.contact-method-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--divorce-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.125rem;
}

.contact-method-value {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--divorce-text);
}

.contact-method:hover .contact-method-value {
    color: var(--divorce-teal);
}

/* ==========================================================================
   Profile Pages - Team List
   ========================================================================== */

.team-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-member-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    transition: all 0.2s ease;
}

.team-member-card:hover {
    border-color: var(--divorce-teal);
}

.team-member-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, var(--divorce-teal) 0%, #005a5a 100%);
    color: #fff;
    font-size: 1.375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.team-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-content {
    flex: 1;
    min-width: 0;
}

.team-member-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.375rem;
}

.team-member-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.team-member-header h3 a {
    color: var(--divorce-text);
    text-decoration: none;
}

.team-member-header h3 a:hover {
    color: var(--divorce-teal);
}

.team-member-badges {
    display: flex;
    gap: 0.375rem;
}

.team-member-badges .badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.team-member-badges .badge-hod {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.team-member-badges .badge-ranking {
    background: #f1f5f9;
    color: #64748b;
    border: none;
}

.team-member-role {
    font-size: 0.9375rem;
    color: var(--divorce-muted);
    margin-bottom: 0.625rem;
}

.team-member-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.team-member-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--divorce-teal);
    text-decoration: none;
}

.team-member-link:hover {
    color: var(--divorce-teal-dark);
}

/* ==========================================================================
   Profile Pages - Sidebar
   ========================================================================== */

.profile-sidebar {
    position: sticky;
    top: 1.5rem;
}

.sidebar-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.sidebar-card--highlight {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #cbd5e1;
}

.sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--divorce-text);
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-card h3 svg {
    color: var(--divorce-teal);
}

/* Sidebar Facts */
.sidebar-facts {
    margin: 0;
}

.sidebar-fact {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-fact:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-fact:first-child {
    padding-top: 0;
}

.sidebar-fact dt {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--divorce-muted);
}

.sidebar-fact dd {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--divorce-text);
    margin: 0;
    text-align: right;
}

.sidebar-fact dd.highlight {
    color: var(--divorce-teal);
}

/* Firm Card Link */
.firm-card-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    color: var(--divorce-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.firm-card-link:hover {
    background: #fff;
    border-color: var(--divorce-teal);
}

.firm-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--divorce-text);
}

.firm-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--divorce-teal);
}

.firm-card-link:hover .firm-card-action svg {
    transform: translateX(3px);
    transition: transform 0.2s ease;
}

/* Sidebar Links */
.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Sidebar Address */
.sidebar-address {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--divorce-text);
}

.sidebar-address p {
    margin: 0;
}

.sidebar-links li {
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-links li:last-child {
    border-bottom: none;
}

.sidebar-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--divorce-secondary);
    text-decoration: none;
}

.sidebar-links a:hover {
    color: var(--divorce-teal);
}

.sidebar-links .link-arrow {
    opacity: 0.6;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.sidebar-links a:hover .link-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* Sidebar Disclaimer */
.sidebar-disclaimer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 0;
    margin-top: 0.5rem;
}

.sidebar-disclaimer svg {
    color: #d97706;
    flex-shrink: 0;
    margin-top: 2px;
}

.sidebar-disclaimer p {
    font-size: 0.8125rem;
    color: #92400e;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   Profile Pages - Responsive
   ========================================================================== */

@media (max-width: 991.98px) {
    .profile-hero {
        padding: 2.5rem 0;
    }

    .profile-hero h1 {
        font-size: 2rem;
    }

    .profile-hero-cta {
        margin-top: 2rem;
    }

    .profile-main {
        padding: 2rem 0 3rem;
    }

    .profile-sidebar {
        position: static;
        margin-top: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .profile-hero {
        padding: 2rem 0;
    }

    .profile-hero h1 {
        font-size: 1.75rem;
    }

    .profile-hero-subtitle {
        font-size: 1.0625rem;
    }

    .profile-badges .badge {
        font-size: 0.625rem;
        padding: 0.3rem 0.625rem;
    }

    .profile-section h2 {
        font-size: 1.375rem;
    }

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

    .info-list-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .info-list-item dt {
        width: auto;
        min-width: 0;
    }

    .contact-method {
        padding: 1rem;
    }

    .contact-method-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .team-member-card {
        flex-direction: column;
        padding: 1.25rem;
    }

    .team-member-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }

    .sidebar-fact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .sidebar-fact dd {
        text-align: left;
    }
}

/* ==========================================================================
   Directory Page - Find a Solicitor
   ========================================================================== */

/* Directory Hero */
.directory-hero {
    background: linear-gradient(135deg, var(--divorce-primary) 0%, #1a4a8c 100%);
    color: #fff;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.directory-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -5%;
    width: 55%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.directory-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.directory-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.directory-hero-lead {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.directory-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.directory-stat {
    display: flex;
    flex-direction: column;
}

.directory-stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.directory-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.25rem;
}

/* Directory Filters */
.directory-filters {
    background: #fff;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.filters-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filters-search {
    position: relative;
    display: flex;
    align-items: center;
}

.filters-search svg {
    position: absolute;
    left: 1rem;
    color: var(--divorce-muted);
    pointer-events: none;
}

.filters-search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0;
    background: #fff;
    transition: border-color 0.2s ease;
}

.filters-search-input:focus {
    outline: none;
    border-color: var(--divorce-teal);
}

.filters-search-input::placeholder {
    color: var(--divorce-muted);
}

.filters-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.filters-selects {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--divorce-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.filter-select {
    padding: 0.625rem 2rem 0.625rem 0.875rem;
    font-size: 0.9375rem;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23505a5f' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 0.75rem center;
    cursor: pointer;
    min-width: 160px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--divorce-teal);
}

.filters-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filters-toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--divorce-muted);
}

.toggle-buttons {
    display: flex;
    border: 1px solid #e5e7eb;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    background: #fff;
    border: none;
    color: var(--divorce-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.toggle-btn:first-child {
    border-right: 1px solid #e5e7eb;
}

.toggle-btn.active {
    background: var(--divorce-primary);
    color: #fff;
}

.toggle-btn:hover:not(.active) {
    background: #f8fafc;
}

/* Directory Main */
.directory-main {
    background: #f8fafc;
    padding: 2rem 0 3rem;
}

.directory-view {
    display: none;
}

.directory-view.active {
    display: block;
}

/* Section Header */
.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--divorce-text);
}

.section-title svg {
    color: #f59e0b;
}

.section-title .count {
    font-weight: 400;
    color: var(--divorce-muted);
}

/* Featured Section */
.featured-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.featured-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    position: relative;
    display: flex;
    flex-direction: column;
}

.featured-card-ribbon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--divorce-teal);
    color: #fff;
}

.featured-card-ribbon--firm {
    background: var(--divorce-primary);
}

.featured-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Featured Person */
.featured-person-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.featured-avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: linear-gradient(135deg, var(--divorce-teal), #005a5a);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

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

.featured-person-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.featured-person-info h3 a {
    color: var(--divorce-text);
    text-decoration: none;
}

.featured-person-info h3 a:hover {
    color: var(--divorce-teal);
}

.featured-person-role {
    font-size: 0.875rem;
    color: var(--divorce-muted);
    margin: 0 0 0.25rem 0;
}

.featured-person-firm {
    font-size: 0.875rem;
    margin: 0;
}

.featured-person-firm a {
    color: var(--divorce-link);
}

/* Featured Firm */
.featured-firm-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.featured-firm-logo {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: #f1f5f9;
    color: var(--divorce-primary);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-firm-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.featured-firm-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.375rem 0;
}

.featured-firm-info h3 a {
    color: var(--divorce-text);
    text-decoration: none;
}

.featured-firm-info h3 a:hover {
    color: var(--divorce-teal);
}

.featured-firm-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--divorce-muted);
    margin: 0 0 0.5rem 0;
}

.featured-firm-location svg {
    flex-shrink: 0;
}

/* Featured badges and tags */
.featured-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.featured-badges .badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0;
    text-transform: uppercase;
}

.featured-badges .badge-hod {
    background: #1a1a1a;
    color: #fff;
}

.featured-badges .badge-ranking {
    background: #f1f5f9;
    color: var(--divorce-muted);
}

.featured-excerpt {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--divorce-teal);
    text-decoration: none;
    margin-top: auto;
}

.featured-link:hover {
    color: var(--divorce-teal-dark);
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Tier badges */
.badge-tier {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    text-transform: uppercase;
}

.badge-tier-1 {
    background: #fef3c7;
    color: #92400e;
}

.badge-tier-2 {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-tier-3 {
    background: #f1f5f9;
    color: #475569;
}

/* Tier Groups */
.tier-group {
    margin-bottom: 2rem;
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tier-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.tier-badge--1 {
    background: #1a1a1a;
    color: #fff;
}

.tier-badge--2 {
    background: var(--divorce-primary);
    color: #fff;
}

.tier-badge--3 {
    background: #64748b;
    color: #fff;
}

.tier-count {
    font-size: 0.875rem;
    color: var(--divorce-muted);
}

/* Firms Grid */
.firms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.firm-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease;
}

.firm-card:hover {
    border-color: var(--divorce-teal);
}

.firm-card-header {
    display: flex;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

.firm-card-logo {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #f1f5f9;
    color: var(--divorce-primary);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.firm-card-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.firm-card-title h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.firm-card-title h3 a {
    color: var(--divorce-text);
    text-decoration: none;
}

.firm-card-title h3 a:hover {
    color: var(--divorce-teal);
}

.firm-card-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--divorce-muted);
    margin: 0;
}

.firm-card-location svg {
    flex-shrink: 0;
}

.firm-card-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 0.875rem;
    flex: 1;
}

.firm-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.875rem;
}

.firm-card-tags .tag {
    font-size: 0.6875rem;
    padding: 0.1875rem 0.5rem;
}

.firm-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.875rem;
    border-top: 1px solid #f1f5f9;
}

.firm-card-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--divorce-muted);
}

.firm-card-meta svg {
    flex-shrink: 0;
}

.firm-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--divorce-teal);
    text-decoration: none;
}

.firm-card-link:hover {
    color: var(--divorce-teal-dark);
}

/* People Grid */
.people-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.person-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease;
}

.person-card:hover {
    border-color: var(--divorce-teal);
}

.person-card-header {
    display: flex;
    gap: 0.875rem;
    margin-bottom: 0.75rem;
}

.person-card-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--divorce-teal), #005a5a);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

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

.person-card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.125rem 0;
}

.person-card-info h3 a {
    color: var(--divorce-text);
    text-decoration: none;
}

.person-card-info h3 a:hover {
    color: var(--divorce-teal);
}

.person-card-role {
    font-size: 0.8125rem;
    color: var(--divorce-muted);
    margin: 0 0 0.125rem 0;
}

.person-card-firm {
    font-size: 0.8125rem;
    margin: 0;
}

.person-card-firm a {
    color: var(--divorce-link);
}

.person-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.625rem;
}

.person-card-badges .badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.1875rem 0.5rem;
    border-radius: 0;
    text-transform: uppercase;
}

.person-card-badges .badge-hod {
    background: #1a1a1a;
    color: #fff;
}

.person-card-badges .badge-ranking {
    background: #f1f5f9;
    color: var(--divorce-muted);
}

.person-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    flex: 1;
}

.person-card-tags .tag {
    font-size: 0.6875rem;
    padding: 0.1875rem 0.5rem;
}

.person-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--divorce-teal);
    text-decoration: none;
    margin-top: auto;
}

.person-card-link:hover {
    color: var(--divorce-teal-dark);
}

/* No Results */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.no-results svg {
    color: var(--divorce-muted);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--divorce-text);
}

.no-results p {
    font-size: 1rem;
    color: var(--divorce-muted);
    margin-bottom: 1.5rem;
}

.btn-clear-filters {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--divorce-teal);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-clear-filters:hover {
    background: var(--divorce-teal-dark);
}

/* Directory Responsive */
@media (max-width: 991.98px) {
    .directory-hero h1 {
        font-size: 2rem;
    }

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

    .firms-grid,
    .people-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .filters-toggle {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .directory-hero {
        padding: 2rem 0;
    }

    .directory-hero h1 {
        font-size: 1.75rem;
    }

    .directory-stats {
        gap: 1.5rem;
    }

    .directory-stat-number {
        font-size: 1.5rem;
    }

    .filters-selects {
        flex-direction: column;
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .toggle-buttons {
        width: 100%;
    }

    .toggle-btn {
        flex: 1;
        justify-content: center;
    }

    .firms-grid,
    .people-grid {
        grid-template-columns: 1fr;
    }

    .tier-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ==========================================================================
   Solicitors Landing Page
   ========================================================================== */

/* Landing Hero */
.landing-hero {
    background: linear-gradient(135deg, var(--divorce-primary) 0%, #1a4a8c 100%);
    color: #fff;
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -5%;
    width: 55%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.landing-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.landing-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.landing-hero-lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

/* Landing Main */
.landing-main {
    background: #fff;
    padding: 0 0 3rem;
}

/* Browse Section */
.browse-section {
    margin-top: -2rem;
    position: relative;
    z-index: 10;
    margin-bottom: 3rem;
}

.browse-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.browse-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: var(--divorce-text);
    transition: all 0.2s ease;
}

.browse-card:hover {
    border-color: var(--divorce-teal);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.browse-card--firms:hover .browse-card-icon {
    background: var(--divorce-primary);
    color: #fff;
}

.browse-card--people:hover .browse-card-icon {
    background: var(--divorce-teal);
    color: #fff;
}

.browse-card-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--divorce-muted);
    transition: all 0.2s ease;
}

.browse-card-content {
    flex: 1;
}

.browse-card-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.375rem 0;
    color: var(--divorce-text);
}

.browse-card-content p {
    font-size: 1rem;
    color: var(--divorce-muted);
    margin: 0 0 1rem 0;
}

.browse-card-stats {
    display: flex;
    gap: 1.5rem;
}

.browse-stat {
    font-size: 0.875rem;
    color: var(--divorce-muted);
}

.browse-stat strong {
    color: var(--divorce-text);
}

.browse-card-arrow {
    color: var(--divorce-muted);
    transition: transform 0.2s ease;
}

.browse-card:hover .browse-card-arrow {
    transform: translateX(4px);
    color: var(--divorce-teal);
}

/* Featured CTA Section */
.featured-cta-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e5e7eb;
}

.featured-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.featured-cta-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 1.75rem;
    position: relative;
}

.featured-cta-label {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--divorce-teal);
    color: #fff;
    margin-bottom: 1rem;
}

.featured-cta-label--firm {
    background: var(--divorce-primary);
}

.featured-cta-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.featured-cta-avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: linear-gradient(135deg, var(--divorce-teal), #005a5a);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.featured-cta-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-cta-logo {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: #f1f5f9;
    color: var(--divorce-primary);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-cta-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.featured-cta-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--divorce-text);
}

.featured-cta-role,
.featured-cta-firm {
    font-size: 0.9375rem;
    color: var(--divorce-muted);
    margin: 0;
}

.featured-cta-firm {
    margin-top: 0.125rem;
}

.featured-cta-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9375rem;
    color: var(--divorce-muted);
    margin: 0 0 0.5rem 0;
}

.featured-cta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.featured-cta-excerpt {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.btn-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    background: var(--divorce-primary);
    color: #fff;
    text-decoration: none;
    transition: background 0.15s ease;
}

.btn-featured-cta:hover {
    background: #001d4a;
    color: #fff;
}

.btn-featured-cta--teal {
    background: var(--divorce-teal);
}

.btn-featured-cta--teal:hover {
    background: var(--divorce-teal-dark);
}

/* Guidance Section */
.guidance-section {
    padding-top: 0;
}

.guidance-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
}

.guidance-main h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--divorce-text);
    margin: 0 0 2rem 0;
}

.guidance-block {
    margin-bottom: 2.5rem;
}

.guidance-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--divorce-text);
    margin: 0 0 1rem 0;
}

.guidance-block p {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin: 0 0 1rem 0;
}

.guidance-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guidance-checklist li {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.guidance-checklist li:last-child {
    border-bottom: none;
}

.guidance-checklist svg {
    flex-shrink: 0;
    color: var(--divorce-teal);
    margin-top: 2px;
}

.guidance-checklist span {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #374151;
}

.guidance-list {
    padding-left: 1.5rem;
    margin: 0 0 1rem 0;
}

.guidance-list li {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Guidance Sidebar */
.guidance-sidebar .sidebar-card {
    margin-bottom: 1rem;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.sidebar-list li {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-link {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--divorce-teal);
}

.sidebar-link:hover {
    color: var(--divorce-teal-dark);
}

/* ==========================================================================
   Directory List Pages - Additional Styles
   ========================================================================== */

/* Hero Teal Variant (for People) */
.directory-hero--teal {
    background: linear-gradient(135deg, var(--divorce-teal) 0%, #005a5a 100%);
}

/* Featured Wide Card */
.featured-section--single {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.featured-card-wide {
    background: #fff;
    border: 1px solid #e5e7eb;
    display: flex;
}

.featured-card-wide-body {
    padding: 2rem;
    flex: 1;
}

.featured-card-ribbon--inline {
    display: inline-block;
    position: static;
    margin-bottom: 0.75rem;
}

.featured-card-ribbon--teal {
    background: var(--divorce-teal);
}

.featured-avatar--large {
    width: 80px;
    height: 80px;
    min-width: 80px;
    font-size: 2rem;
}

.featured-firm-logo--large {
    width: 80px;
    height: 80px;
    min-width: 80px;
    font-size: 2rem;
}

/* Filter Actions */
.filters-actions {
    display: flex;
    align-items: flex-end;
}

.btn-filter-clear {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: transparent;
    color: var(--divorce-muted);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-filter-clear:hover {
    background: #f8fafc;
    border-color: var(--divorce-muted);
    color: var(--divorce-text);
}

/* Directory Listing */
.directory-listing {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .browse-grid {
        grid-template-columns: 1fr;
    }

    .featured-cta-grid {
        grid-template-columns: 1fr;
    }

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

    .guidance-sidebar {
        order: -1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .landing-hero h1 {
        font-size: 2rem;
    }

    .browse-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .browse-card-stats {
        justify-content: center;
    }

    .browse-card-arrow {
        display: none;
    }

    .featured-cta-header {
        flex-direction: column;
        text-align: center;
    }

    .featured-cta-location {
        justify-content: center;
    }
}

/* ==========================================================================
   Mediator-Specific Styles
   ========================================================================== */

/* Teal variant for landing hero */
.landing-hero--teal {
    background: linear-gradient(135deg, var(--divorce-teal) 0%, #005a5a 100%);
}

/* Browse card variant for mediators */
.browse-card--mediators:hover .browse-card-icon {
    background: var(--divorce-teal);
    color: #fff;
}

.browse-grid--single {
    grid-template-columns: 1fr;
    max-width: 700px;
}

/* Featured CTA variants */
.featured-cta-grid--single {
    grid-template-columns: 1fr;
    max-width: 700px;
}

.featured-cta-card--wide {
    display: grid;
    grid-template-columns: 1fr;
}

.featured-cta-label--teal {
    background: var(--divorce-teal);
}

.featured-cta-avatar--teal {
    background: linear-gradient(135deg, var(--divorce-teal), #005a5a);
}

.featured-cta-org {
    font-size: 0.9375rem;
    color: var(--divorce-link);
    margin: 0;
}

/* Sidebar teal highlight */
.sidebar-card--teal.sidebar-card--highlight {
    border-left: 4px solid var(--divorce-teal);
}

.sidebar-card--teal h3 svg {
    color: var(--divorce-teal);
}

/* Mediator badges */
.badge-fmc {
    background: #059669;
    color: #fff;
}

.badge-legal-aid {
    background: #7c3aed;
    color: #fff;
}

.badge-child {
    background: #0891b2;
    color: #fff;
}

.badge-solicitor {
    background: var(--divorce-primary);
    color: #fff;
}

/* Mediator card styles */
.mediators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mediator-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease;
}

.mediator-card:hover {
    border-color: var(--divorce-teal);
}

.mediator-card-header {
    display: flex;
    gap: 0.875rem;
    margin-bottom: 0.75rem;
}

.mediator-card-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, var(--divorce-teal), #005a5a);
    color: #fff;
    font-size: 1.375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

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

.mediator-card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.125rem 0;
}

.mediator-card-info h3 a {
    color: var(--divorce-text);
    text-decoration: none;
}

.mediator-card-info h3 a:hover {
    color: var(--divorce-teal);
}

.mediator-card-role {
    font-size: 0.8125rem;
    color: var(--divorce-muted);
    margin: 0 0 0.125rem 0;
}

.mediator-card-org {
    font-size: 0.8125rem;
    color: var(--divorce-link);
    margin: 0;
}

.mediator-card-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--divorce-muted);
    margin: 0 0 0.625rem 0;
}

.mediator-card-location svg {
    flex-shrink: 0;
}

.mediator-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.625rem;
}

.mediator-card-badges .badge {
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 0.1875rem 0.4375rem;
    border-radius: 0;
    text-transform: uppercase;
}

.mediator-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.625rem;
    flex: 1;
}

.mediator-card-tags .tag {
    font-size: 0.6875rem;
    padding: 0.1875rem 0.5rem;
}

.mediator-card-languages {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--divorce-muted);
    margin: 0 0 0.625rem 0;
}

.mediator-card-languages svg {
    flex-shrink: 0;
}

.mediator-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--divorce-teal);
    text-decoration: none;
    margin-top: auto;
}

.mediator-card-link:hover {
    color: var(--divorce-teal-dark);
}

/* Mediator profile hero */
.profile-hero--mediator {
    background: linear-gradient(135deg, var(--divorce-teal) 0%, #005a5a 100%);
}

.profile-avatar--mediator {
    background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
    color: var(--divorce-teal);
}

.profile-hero--mediator .profile-avatar--mediator {
    background: #fff;
}

.profile-hero-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0.25rem 0 0 0;
}

.profile-hero-location svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* Featured avatar teal variant */
.featured-avatar--teal {
    background: linear-gradient(135deg, var(--divorce-teal), #005a5a);
}

/* Coverage areas */
.coverage-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.coverage-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    background: #f1f5f9;
    color: #374151;
    border: 1px solid #e2e8f0;
}

.coverage-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--divorce-teal);
    margin: 0;
}

.coverage-note svg {
    flex-shrink: 0;
}

/* Sidebar languages */
.sidebar-languages {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sidebar-languages li {
    padding: 0.25rem 0.625rem;
    font-size: 0.875rem;
    background: #f1f5f9;
    color: #374151;
}

.sidebar-org-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--divorce-text);
    margin: 0 0 0.5rem 0;
}

/* Status badges in sidebar */
.status-badge {
    display: inline-block;
    padding: 0.1875rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge--success {
    background: #d1fae5;
    color: #065f46;
}

/* Responsive */
@media (max-width: 991.98px) {
    .mediators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .mediators-grid {
        grid-template-columns: 1fr;
    }

    .browse-grid--single {
        max-width: 100%;
    }

    .featured-cta-grid--single {
        max-width: 100%;
    }
}

/* ==========================================================================
   Podcast Styles
   ========================================================================== */

/* Resource Hero (for podcasts list) */
.resource-hero {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff;
    padding: 3rem 0;
}

.resource-hero-content {
    max-width: 700px;
}

.resource-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.resource-hero-lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.resource-main {
    background: #fff;
    padding: 2rem 0 3rem;
}

.resource-intro {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #374151;
    max-width: 800px;
    margin-bottom: 2.5rem;
}

/* Podcasts Grid */
.podcasts-section {
    margin-bottom: 3rem;
}

.podcasts-section .section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.podcasts-section .section-title svg {
    color: #f59e0b;
}

.podcasts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.podcasts-grid--featured {
    grid-template-columns: repeat(3, 1fr);
}

/* Podcast Card */
.podcast-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.podcast-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.podcast-card--featured {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: #ddd6fe;
}

.podcast-card-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.podcast-card-artwork {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.podcast-card-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-card-artwork-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.podcast-card-info {
    flex: 1;
    min-width: 0;
}

.podcast-card-info .badge-featured {
    background: #7c3aed;
    color: #fff;
    font-size: 0.625rem;
    margin-bottom: 0.375rem;
}

.podcast-card-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.podcast-card-info h3 a {
    color: var(--divorce-text);
    text-decoration: none;
}

.podcast-card-info h3 a:hover {
    color: #7c3aed;
}

.podcast-card-hosts {
    font-size: 0.875rem;
    color: var(--divorce-muted);
    margin: 0;
}

.podcast-card-description {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    flex: 1;
}

.podcast-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.podcast-card-tags .tag {
    font-size: 0.6875rem;
    background: #f3e8ff;
    color: #7c3aed;
}

.podcast-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.podcast-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #7c3aed;
    text-decoration: none;
}

.podcast-card-link:hover {
    color: #5b21b6;
}

.podcast-card-spotify {
    color: #1DB954;
    transition: transform 0.15s ease;
}

.podcast-card-spotify:hover {
    transform: scale(1.1);
}

/* Podcasts Tips */
.podcasts-tips {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin-top: 2rem;
}

.podcasts-tips h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9375rem;
    color: #374151;
}

.tips-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Podcast Single Page */
.podcast-hero {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff;
    padding: 3rem 0;
}

.podcast-hero-content {
    padding-right: 2rem;
}

.podcast-hero .badge-featured {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    margin-bottom: 1rem;
}

.podcast-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
}

.podcast-hosts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.podcast-host {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: 100px;
}

.podcast-host-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.podcast-host-info {
    display: flex;
    flex-direction: column;
}

.podcast-host-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.podcast-host-role {
    font-size: 0.8125rem;
    opacity: 0.8;
}

.podcast-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.podcast-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    opacity: 0.9;
}

.podcast-awards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.podcast-award {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.podcast-hero-lead {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0;
}

/* Podcast Player Card */
.podcast-player-card {
    background: #fff;
    padding: 1.5rem;
    color: var(--divorce-text);
}

.podcast-player-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.spotify-embed {
    margin-bottom: 1rem;
}

.podcast-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.podcast-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: all 0.15s ease;
}

.podcast-link:hover {
    border-color: currentColor;
}

.podcast-link--spotify {
    color: #1DB954;
}

.podcast-link--apple {
    color: #fc3c44;
}

.podcast-link--website {
    color: var(--divorce-primary);
}

/* Podcast Main Content */
.podcast-main {
    background: #fff;
    padding: 2rem 0 3rem;
}

.podcast-article {
    max-width: 100%;
}

.podcast-section {
    margin-bottom: 2.5rem;
}

.podcast-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--divorce-text);
}

.podcast-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
}

.podcast-content h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--divorce-text);
}

.podcast-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

.podcast-content ul,
.podcast-content ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.podcast-content li {
    margin-bottom: 0.5rem;
}

.podcast-meta-footer {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: var(--divorce-muted);
}

/* Podcast Sidebar */
.podcast-sidebar .sidebar-card {
    margin-bottom: 1rem;
}

.sidebar-topics {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-topics li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9375rem;
    color: #374151;
}

.sidebar-topics li:last-child {
    border-bottom: none;
}

.sidebar-host {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-host:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-host-name {
    font-weight: 600;
    color: var(--divorce-text);
    margin: 0 0 0.125rem 0;
}

.sidebar-host-role {
    font-size: 0.875rem;
    color: var(--divorce-muted);
    margin: 0 0 0.5rem 0;
}

.sidebar-host-bio {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
    margin: 0;
}

.sidebar-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-tips li {
    font-size: 0.875rem;
    color: #374151;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-tips li:last-child {
    border-bottom: none;
}

/* Episode List */
.episode-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.episode-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: var(--divorce-text);
    transition: all 0.15s ease;
}

.episode-card:hover {
    background: #f3e8ff;
    border-color: #ddd6fe;
}

.episode-card-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.episode-card-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: #7c3aed;
    background: #f3e8ff;
    padding: 0.25rem 0.5rem;
    min-width: 2.5rem;
    text-align: center;
}

.episode-card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.episode-card-info p {
    font-size: 0.875rem;
    color: var(--divorce-muted);
    margin: 0 0 0.25rem 0;
}

.episode-card-date {
    font-size: 0.75rem;
    color: var(--divorce-muted);
}

.episode-card svg {
    color: var(--divorce-muted);
    transition: transform 0.15s ease;
}

.episode-card:hover svg {
    transform: translateX(4px);
    color: #7c3aed;
}

.btn-view-all {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #7c3aed;
}

/* Responsive */
@media (max-width: 991.98px) {

    .podcasts-grid,
    .podcasts-grid--featured {
        grid-template-columns: 1fr;
    }

    .podcast-hero .row {
        flex-direction: column;
    }

    .podcast-hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .podcast-hero h1 {
        font-size: 2rem;
    }

    .podcast-hosts {
        flex-direction: column;
    }

    .podcast-player-card {
        margin: 0 -1rem;
        border-radius: 0;
    }
}

/* ==========================================================================
   Search Page Styles
   ========================================================================== */

.search-hero {
    background: linear-gradient(135deg, var(--divorce-primary) 0%, #1e3a5f 100%);
    color: #fff;
    padding: 3rem 0;
}

.search-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.search-hero-lead {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0 0 2rem 0;
}

.search-box-large {
    max-width: 600px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-input-wrapper .search-icon {
    margin-left: 1rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    padding: 1rem;
    font-size: 1.0625rem;
    outline: none;
    min-width: 0;
}

.search-input-wrapper input::placeholder {
    color: #9ca3af;
}

.search-submit {
    background: var(--divorce-teal);
    color: #fff;
    border: solid var(--divorce-teal);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.search-submit:hover {
    border: solid var(--divorce-teal-dark);
    background: var(--divorce-teal-dark);
}

/* Search Results */
.search-main {
    background: #fff;
    padding: 2rem 0 4rem;
    min-height: 50vh;
}

.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--divorce-muted);
}

.search-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--divorce-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.results-count {
    font-size: 1rem;
    color: var(--divorce-muted);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-result-item {
    display: block;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: var(--divorce-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-result-item:hover {
    border-color: var(--divorce-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-result-header {
    margin-bottom: 0.5rem;
}

.search-result-section {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--divorce-primary);
    background: #e0f2fe;
    padding: 0.1875rem 0.5rem;
    margin-bottom: 0.375rem;
}

.search-result-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--divorce-text);
}

.search-result-item:hover .search-result-title {
    color: var(--divorce-primary);
}

.search-result-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 0.5rem 0;
}

.search-result-excerpt mark {
    background: #fef08a;
    color: inherit;
    padding: 0 0.125rem;
}

.search-result-url {
    font-size: 0.8125rem;
    color: #059669;
}

.search-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--divorce-muted);
}

.search-no-results svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.search-no-results h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--divorce-text);
}

.search-no-results p {
    margin: 0;
}

.search-error {
    padding: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 4px;
}

.search-more-results {
    text-align: center;
    padding: 1.5rem;
    color: var(--divorce-muted);
    font-size: 0.9375rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 767.98px) {
    .search-hero {
        padding: 2rem 0;
    }

    .search-hero h1 {
        font-size: 2rem;
    }

    .search-input-wrapper {
        flex-wrap: wrap;
    }

    .search-input-wrapper input {
        width: 100%;
        padding: 0.875rem 1rem;
    }

    .search-input-wrapper .search-icon {
        display: none;
    }

    .search-submit {
        width: 100%;
        padding: 0.875rem;
    }
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

.contact-page {
    background: #fff;
    padding: 3rem 0 4rem;
}

.contact-header {
    margin-bottom: 1.5rem;
}

.contact-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.contact-lead {
    font-size: 1.25rem;
    color: var(--divorce-muted);
    margin: 0;
}

.contact-intro {
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* Contact Form */
.contact-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--divorce-text);
}

.form-label .required {
    color: #dc2626;
}

.contact-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid #d1d5db;
    border-radius: 0;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--divorce-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 108, 0.1);
}

.contact-form .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-hint {
    font-size: 0.875rem;
    color: var(--divorce-muted);
    margin: 0.5rem 0 0 0;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    border: 2px solid #d1d5db;
    border-radius: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.form-check-input:checked {
    background-color: var(--divorce-primary);
    border-color: var(--divorce-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(30, 64, 108, 0.1);
}

.form-check-label {
    font-size: 0.9375rem;
    color: var(--divorce-text);
    cursor: pointer;
}

.form-check-label a {
    color: var(--divorce-primary);
}

.form-actions {
    margin-top: 2rem;
}

.btn-submit {
    display: inline-block;
    background: var(--divorce-teal);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-submit:hover {
    background: var(--divorce-teal-dark);
}

.btn-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.3);
}

.form-note {
    font-size: 0.875rem;
    color: var(--divorce-muted);
    margin-top: 1rem;
}

.form-note .required {
    color: #dc2626;
}

/* Form Messages */
.form-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.form-message svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.form-message h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.form-message p {
    margin: 0;
    font-size: 0.9375rem;
}

.form-message--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.form-message--success svg {
    color: #10b981;
}

.form-message--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.form-message--error svg {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 767.98px) {
    .contact-page {
        padding: 2rem 0 3rem;
    }
    
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin-left: -1rem;
        margin-right: -1rem;
        border-left: none;
        border-right: none;
    }
}

/* Teal button for CTA boxes */
.btn-cta-teal {
    display: inline-block;
    background: var(--divorce-teal);
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: background 0.15s ease;
}

.btn-cta-teal:hover {
    background: var(--divorce-teal-dark);
    color: #fff;
}