/* ===== LAWS.COM CASES - EXACT KUMBAYA DESIGN SYSTEM ===== */
:root {
    /* Kumbaya Colors - EXACT */
    --primary-color: #007AFF;
    --primary-hover: #0056CC;
    --secondary-color: #5856D6;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --background-primary: #FFFFFF;
    --background-secondary: #F5F5F7;
    --background-tertiary: #FBFBFD;
    --border-color: #D2D2D7;
    --success-color: #30D158;
    
    /* Typography */
    --font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 1.125rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* ===== NAVBAR - Kumbaya Exact (Frosted Glass) ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-logo h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
}

.logo-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-2xl);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 400;
    font-size: var(--font-size-base);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== BUTTONS - Kumbaya Exact ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: 50px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== HERO - Kumbaya Exact ===== */
.hero {
    padding: 40px 0 var(--spacing-3xl);
    background: linear-gradient(135deg, var(--background-tertiary) 0%, var(--background-secondary) 100%);
    text-align: center;
    margin-top: 70px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-3xl);
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    text-align: center;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn-primary {
    padding: 8px 19px;
    font-size: 11px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-xl);
}

/* ===== SECTION HEADERS - Kumbaya Exact ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== EXPERTISE CARDS GRID - Kumbaya Exact ===== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.expertise-card {
    background: var(--background-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    text-decoration: none;
    display: block;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.expertise-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 122, 255, 0.2);
}

.expertise-card:hover::before {
    opacity: 0.05;
}

.expertise-card .card-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-lg);
    display: block;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.expertise-card .card-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
    text-decoration: none;
}

.expertise-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.expertise-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-base);
}

/* ===== LIQUID GLASS PILLS - Apple 2026 Standard ===== */
.expertise-card.liquid-glass-pills {
    padding: var(--spacing-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform-style: flat;
}

.expertise-card.liquid-glass-pills:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.expertise-card.liquid-glass-pills:hover::before {
    opacity: 0;
}

.expertise-card.liquid-glass-pills .card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.expertise-card.liquid-glass-pills .stat-link {
    /* Apple Liquid Glass - true transparency */
    background: rgba(120, 120, 128, 0.12);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 4px 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgba(0, 0, 0, 0.85);
    text-decoration: none;
    box-shadow: none;
    transition: all 0.15s ease;
}

.expertise-card.liquid-glass-pills .stat-link:hover {
    background: rgba(0, 122, 255, 0.15);
    border-color: rgba(0, 122, 255, 0.25);
    color: #007aff;
}

.expertise-card.liquid-glass-pills .stat-link:active {
    background: rgba(0, 122, 255, 0.25);
    transform: scale(0.98);
}

.expertise-card.liquid-glass-pills .card-icon {
    display: none;
}

.expertise-card.liquid-glass-pills .card-badge {
    margin-bottom: var(--spacing-sm);
    padding: 6px 13px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.expertise-card.liquid-glass-pills .card-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.expertise-card.liquid-glass-pills h3 {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xs);
}

.expertise-card.liquid-glass-pills p {
    font-size: 11px;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

/* ===== FOOTER - Kumbaya Exact ===== */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.05);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-disclaimer {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-disclaimer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--font-size-xs);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== HEADER WRAPPER - Fixed Position ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* ===== MAIN NAVIGATION WITH DROPDOWNS ===== */
.main-nav {
    background: var(--background-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: relative;
    z-index: 100;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item:hover > a {
    background: var(--primary-color);
    color: white;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-primary);
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 9999;
    list-style: none;
    padding: 0;
}

.nav-item:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 12px 16px;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.15s ease;
}

.dropdown a:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== LIQUID GLASS DROPDOWNS - Apple Style ===== */
.nav-item.style-mega > .dropdown {
    left: 0;
    right: auto;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 0 0 0.5px rgba(0, 0, 0, 0.08);
    padding: 28px 36px 32px;
    min-width: 520px;
    margin-top: 8px;
}

/* Center all dropdowns */
.dropdown,
.nav-item.style-mega > .dropdown {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    max-width: 95vw;
}

.nav-item:hover > .dropdown {
    transform: translateX(-50%) translateY(0);
}

/* Fix dropdown position relative to viewport on mobile */
@media (max-width: 768px) {
    .nav-item {
        position: static !important;
    }
    
    .main-nav {
        position: relative;
    }
    
    .dropdown,
    .nav-item.style-mega > .dropdown {
        position: fixed !important;
        left: 50% !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        width: 95vw !important;
        max-width: 95vw !important;
        z-index: 9999;
    }
    
    .nav-item:hover > .dropdown {
        transform: translateX(-50%) !important;
    }
    
    /* Center dropdown content on mobile */
    .nav-item.style-mega .dropdown-columns {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 8px !important;
    }
    
    .nav-item.style-mega .dropdown-column {
        align-items: center !important;
        text-align: center;
        width: 100%;
    }
    
    .nav-item.style-mega .dropdown-column ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .nav-item.style-mega .dropdown-column ul li {
        text-align: center;
        width: 100%;
    }
    
    .nav-item.style-mega .dropdown-column ul li a {
        display: block;
        text-align: center;
        padding: 10px 20px !important;
    }
}

.nav-item.style-mega .dropdown-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.nav-item.style-mega .dropdown-column {
    display: flex;
    flex-direction: column;
}

.nav-item.style-mega .dropdown-header {
    font-size: 12px;
    font-weight: 400;
    color: #86868b;
    margin-bottom: 16px;
}

.nav-item.style-mega .dropdown-title {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
    line-height: 1.1;
}

.nav-item.style-mega .dropdown li {
    list-style: none;
}

.nav-item.style-mega .dropdown a {
    padding: 8px 0;
    border-bottom: none;
    font-size: 14px;
    color: #1d1d1f;
}

.nav-item.style-mega .dropdown a:hover {
    color: #0071e3;
    background: transparent;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: var(--background-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    padding-top: 140px; /* Space for fixed header + main-nav */
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.breadcrumb-list li {
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
}

.breadcrumb-list a {
    color: #7b7b7b;
    text-decoration: none;
}

.breadcrumb-list a:hover {
    color: var(--primary-color);
}

.breadcrumb-list span {
    color: #7b7b7b;
}

.breadcrumb-separator {
    color: #bbb;
    margin: 0 12px;
    font-size: 11px;
    font-weight: 400;
}

/* ===== CASE CARDS ===== */
.case-card {
    display: block;
    padding: var(--spacing-xl);
    background: var(--background-primary);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-md);
}

.case-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.case-header h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    flex: 1;
    margin-right: var(--spacing-md);
    line-height: 1.3;
}

.cite-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-xs);
    font-weight: 600;
    white-space: nowrap;
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.case-meta span {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.case-snippet {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.page-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.page-link:hover {
    background: rgba(0, 122, 255, 0.1);
}

.page-info {
    color: var(--text-secondary);
}

/* ===== NO DATA STATE ===== */
.no-data {
    text-align: center;
    padding: var(--spacing-3xl);
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.no-data h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
}

.no-data p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1200px) {
    .expertise-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .case-header {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .cite-badge {
        align-self: flex-start;
    }
    
    .pagination {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.65rem;
    }
}

/* ===== SEARCH BAR SECTION - Legal Forms Style ===== */
.search-bar-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
}

.search-bar-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 6px 6px 6px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.search-bar-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.15);
}

.search-bar-container input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: transparent;
    padding: 12px 0;
}

.search-bar-container input::placeholder {
    color: #94a3b8;
}

.search-bar-container button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-bar-container button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.search-examples {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.search-examples a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 0.25rem;
}

.search-examples a:hover {
    text-decoration: underline;
}

/* ===== ARTICLE SECTION - 3 COLUMN LAYOUT ===== */
.article-section {
    padding: var(--spacing-2xl) var(--spacing-xl);
}

.article-grid {
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    gap: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== LEFT SIDEBAR ===== */
.sidebar-nav {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.related-sidebar {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.related-sidebar h3 {
    margin-bottom: 16px;
    color: #333;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 12px;
}

.related-sidebar h3 .emoji {
    font-size: 1.3em;
    line-height: 1;
}

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

.state-laws-list li {
    margin-bottom: 8px;
}

.state-laws-list li:last-child {
    margin-bottom: 0;
}

.state-laws-list a {
    display: block;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.state-laws-list a:hover {
    background: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left-color: #00f2fe;
}

.state-laws-list li.active a {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* ===== MAIN ARTICLE CONTENT ===== */
.article-content {
    background: var(--background-primary);
    min-width: 0;
}

.article-header {
    margin-bottom: var(--spacing-xl);
}

.article-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

/* ===== RIGHT SIDEBAR ===== */
.right-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* ===== IMPORTANT LINKS SECTION - Legal Forms Style ===== */
.important-links-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.important-links-section h3 {
    margin-bottom: 16px;
    color: #333;
    font-size: 1.1rem;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.important-links-section h3 .emoji {
    font-size: 1.3em;
    line-height: 1;
}

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

.important-links-list > li {
    margin-bottom: 8px;
}

.important-links-list > li > a {
    display: block;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.important-links-list > li > a:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.12);
}

/* Nested links */
.important-links-list ul {
    margin-left: 0;
    margin-top: 4px;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    list-style: none;
}

.important-links-list ul li {
    margin-bottom: 0;
}

.important-links-list ul a {
    display: block;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.important-links-list ul a:hover {
    background: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===== STATE CARDS GRID ===== */
.state-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 1rem;
}

.state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.state-card:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
}

.state-card .state-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== RESPONSIVE FOR ARTICLE LAYOUT ===== */
@media (max-width: 1100px) {
    .article-grid {
        grid-template-columns: 200px 1fr;
    }
    
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-nav {
        position: static;
        order: 2;
    }
    
    .article-content {
        order: 1;
    }
    
    .breadcrumb {
        margin-top: 70px;
        padding: 12px 16px;
    }
    
    .breadcrumb-list {
        font-size: 12px;
    }
    
    .search-bar-section {
        padding: 1rem;
    }
    
    .search-bar-container {
        flex-direction: column;
        border-radius: 16px;
        padding: 12px;
    }
    
    .search-bar-container input {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    
    .search-bar-container button {
        width: 100%;
        margin-top: 8px;
    }
    
    .important-links-list ul {
        grid-template-columns: 1fr;
    }
    
    .state-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== LATEST OPINIONS SECTION - CourtListener Style ===== */
.news-section-full {
    background: var(--background-secondary, #F5F5F7);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color, #D2D2D7);
    width: 100%;
}

.news-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #007AFF;
    flex-wrap: wrap;
    gap: 8px;
}

.news-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #1D1D1F);
    margin: 0;
}

.news-subtitle {
    font-size: 0.8rem;
    color: #86868B;
}

.news-subtitle a {
    color: #007AFF;
    text-decoration: none;
}

.news-subtitle a:hover {
    text-decoration: underline;
}

/* Two Column Layout */
.news-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .news-two-column {
        grid-template-columns: 1fr;
    }
}

.news-column {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.column-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1D1D1F;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E8E8ED;
}

/* Opinion List */
.opinion-list {
    display: flex;
    flex-direction: column;
}

.opinion-item {
    display: block;
    padding: 0.875rem 0;
    border-bottom: 1px solid #E8E8ED;
    text-decoration: none;
    transition: background 0.15s ease;
}

.opinion-item:last-child {
    border-bottom: none;
}

.opinion-item:hover {
    background: rgba(0, 122, 255, 0.04);
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 4px;
}

.opinion-header {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
    align-items: center;
}

.opinion-court {
    background: #007AFF;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.opinion-date {
    font-size: 0.7rem;
    color: #86868B;
}

.opinion-cited {
    background: #30D158;
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}

.opinion-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0 0 4px 0;
    line-height: 1.35;
}

.opinion-item:hover .opinion-title {
    color: #007AFF;
}

.opinion-meta {
    font-size: 0.7rem;
    color: #86868B;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.opinion-meta .cite-count {
    color: #007AFF;
    font-weight: 600;
}

.opinion-excerpt {
    font-size: 0.8rem;
    color: #64748b;
    margin: 6px 0 0 0;
    line-height: 1.4;
}

.no-cases {
    color: #86868B;
    font-size: 0.9rem;
    padding: 1rem 0;
}

/* News Footer */
.news-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.view-all-btn {
    display: inline-block;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.view-all-btn.secondary {
    background: #ffffff;
    color: #007AFF;
    border: 2px solid #007AFF;
}

.view-all-btn.secondary:hover {
    background: #007AFF;
    color: white;
}

/* ===== LEGAL DOCUMENT FORMATTING ===== */
.legal-document {
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #1a1a1a;
    background: #ffffff;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    max-width: 100%;
    overflow-x: auto;
}

.legal-document p {
    margin-bottom: 1.5em;
    text-align: justify;
    text-indent: 2em;
}

.legal-document p:first-child {
    text-indent: 0;
}

.legal-document blockquote {
    margin: 1.5em 2em;
    padding: 1em 1.5em;
    border-left: 4px solid #007AFF;
    background: #f8f9fa;
    font-style: italic;
}

.legal-document h1, .legal-document h2, .legal-document h3 {
    font-family: var(--font-family);
    color: #1e293b;
    margin-top: 2em;
    margin-bottom: 1em;
}

.legal-document a {
    color: #007AFF;
    text-decoration: none;
}

.legal-document a:hover {
    text-decoration: underline;
}

.legal-document .footnote {
    font-size: 0.875rem;
    vertical-align: super;
}

/* Opinion Table of Contents */
.opinion-toc {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.opinion-toc h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: #1e293b;
}

.opinion-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.opinion-toc a {
    color: #007AFF;
    text-decoration: none;
    font-size: 0.875rem;
}

.opinion-toc a:hover {
    text-decoration: underline;
}

/* ===== BROWSE CASES SECTION ===== */
.browse-section {
    background: var(--background-secondary);
    padding: 2rem 0;
}

.browse-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.browse-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.browse-category {
    margin-bottom: 2rem;
}

.browse-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.browse-category h3 a {
    color: inherit;
    text-decoration: none;
}

.browse-category h3 a:hover {
    color: var(--primary-color);
}

.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.browse-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 80px;
}

.browse-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.browse-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.browse-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

.browse-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.view-all-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .browse-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .browse-card {
        padding: 0.75rem 0.5rem;
        min-height: 70px;
    }
    
    .browse-icon {
        font-size: 1.25rem;
    }
    
    .browse-name {
        font-size: 0.8rem;
    }
}

/* ===== CASE CARDS ===== */
.cases-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.case-card {
    display: block;
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
}

.case-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.case-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.case-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.cite-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.case-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Browse section note */
.browse-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}
