/* ==========================================================================
   DENTAL DIRECTORY TEMPLATES - Consolidated Styles
   Includes styles for Archive, State, and City pages
   ========================================================================== */

/* 1. SHARED DIRECTORY COMPONENTS
   ========================================================================== */

/* Breadcrumbs (Unified) */
.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: #ffffff;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0.5rem;
}

.breadcrumb-current {
    color: #ffffff;
    font-weight: 500;
}

/* Light Background Breadcrumbs (for pages with light heroes) */
.city-hero .breadcrumb-link,
.state-hero .breadcrumb-link {
    color: #6b7280;
}

.city-hero .breadcrumb-link:hover,
.state-hero .breadcrumb-link:hover {
    color: #1f2937;
}

.city-hero .breadcrumb-separator,
.state-hero .breadcrumb-separator {
    color: #9ca3af;
}

.city-hero .breadcrumb-current,
.state-hero .breadcrumb-current {
    color: #1f2937;
}

/* 2. DENTISTS ARCHIVE PAGE (/dentists/)
   ========================================================================== */

.dentists-archive-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.dentists-archive-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 3rem 0 4rem;
}

.dentists-archive-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.dentists-archive-hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.dentists-archive-hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.dentists-archive-hero-title-accent {
    color: #fef08a;
}

.dentists-archive-hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Form */
.dentists-archive-search-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.dentists-archive-search-form {
    background: #ffffff;
    border-radius: 0.875rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
    .dentists-archive-search-form {
        flex-direction: row;
    }
}

.dentists-archive-search-input-wrapper {
    flex: 1;
    position: relative;
}

.dentists-archive-search-input {
    width: 100%;
    padding: 0.875rem 2.75rem 0.875rem 1.25rem;
    border-radius: 0.625rem;
    color: #111827;
    font-size: 1rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dentists-archive-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dentists-archive-search-icon {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.dentists-archive-search-button {
    background: #2563eb;
    color: #ffffff;
    padding: 0.875rem 1.75rem;
    border-radius: 0.625rem;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s, transform 0.1s;
}

.dentists-archive-search-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Stats Section */
section.dentists-archive-stats .dentists-archive-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    section.dentists-archive-stats .dentists-archive-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.dentists-archive-stat-card {
    border-radius: 0.875rem;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.2s;
}

.dentists-archive-stat-card-blue { background: linear-gradient(to bottom right, #eff6ff, #dbeafe); }
.dentists-archive-stat-card-green { background: linear-gradient(to bottom right, #f0fdf4, #dcfce7); }
.dentists-archive-stat-card-purple { background: linear-gradient(to bottom right, #faf5ff, #f3e8ff); }
.dentists-archive-stat-card-yellow { background: linear-gradient(to bottom right, #fefce8, #fef9c3); }

/* Quick Navigation */
.dentists-archive-quick-nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .dentists-archive-quick-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Popular States */
.dentists-archive-states-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .dentists-archive-states-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dentists-archive-states-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 3. STATE & CITY HERO SHARED STYLES
   ========================================================================== */

.state-hero, .city-hero {
    padding: 64px 0 48px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #e0f2fe 0%, #f3e8ff 100%);
}

.state-hero .container, .city-hero .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.hero-grid-sidebar {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .hero-grid-sidebar {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Compact CTA Box */
.compact-cta-box {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.compact-cta-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
}

.compact-cta-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.compact-cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.compact-cta-description {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.compact-phone-button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    text-align: center;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transition: all 0.2s;
}

.compact-phone-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
    color: #ffffff;
}

.compact-cta-features {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    font-weight: 500;
}

.hero-stats-container {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-stat-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 24px 32px;
    min-width: 160px;
    text-align: center;
    flex: 1 1 auto;
}

.hero-stat-box .value {
    font-size: 2rem;
    font-weight: 700;
    color: #4f46e5;
    line-height: 1;
}

.hero-stat-box .label {
    color: #6b7280;
    font-size: 1rem;
    margin-top: 4px;
}

/* Responsive Overrides */
@media (max-width: 767px) {
    .state-hero h1, .city-hero h1 {
        font-size: 2.2rem !important;
    }
    
    .hero-stats-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .hero-stat-box:last-child {
        grid-column: 1 / -1;
    }
}

/* 4. CITY-SPECIFIC STYLES
   ========================================================================== */

.nearby-cities-section {
    max-width: 854px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.nearby-cities-section > div {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e7ff;
    padding: 1.5rem;
}

.nearby-cities-section a {
    display: inline-block;
    background: #eff6ff;
    color: #1e40af;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #dbeafe;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.875rem;
}

.nearby-cities-section a:hover {
    background: #dbeafe;
}

/* 5. DIRECTORY LISTING COMPONENTS (Grid & Cards)
   ========================================================================== */

.dentists-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .dentists-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dentists-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dentist-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dentist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dentist-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dentist-card h2 a {
    color: #1f2937;
    text-decoration: none;
}

.dentist-card h2 a:hover {
    color: #2563eb;
}

/* Filter Bar */
.quick-filters-bar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.filter-btn {
    border-radius: 10px;
    padding: 8px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.pagination-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-link {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
}

.pagination-link.current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* ==========================================================================
   6. SERVICE TEMPLATES DESIGN SYSTEM (Modern Redesign)
   ========================================================================== */

/* Reset and Base Styles for Service Sections */
.family-section {
    padding: 2rem 0;
    width: 100%;
    box-sizing: border-box;
}

.family-section-white {
    background: #ffffff;
}

.family-section-gray {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.family-section-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 3rem 0;
}

.family-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Buttons */
.family-btn-primary,
.family-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.family-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.family-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
    color: #ffffff;
}

.family-btn-secondary {
    background: #ffffff;
    color: #4f46e5;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.family-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #4f46e5;
}

.family-btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* Section Headers */
.family-section-header {
    margin-bottom: 1rem;
}

.family-section-header-center {
    text-align: center;
    margin-bottom: 1.5rem;
}

.family-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.family-section-title-large {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.family-section-subtitle {
    font-size: 1rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
}

.family-section-description {
    font-size: 1rem;
    color: #6b7280;
    margin-top: 0.25rem;
    line-height: 1.6;
}

/* Content Cards */
.family-content-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.family-text-content {
    margin-bottom: 1rem;
}

.family-text-paragraph {
    font-size: 1rem;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

/* Info Box */
.family-info-box {
    background: linear-gradient(135deg, #e0f2fe 0%, #f3e8ff 100%);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.family-info-icon {
    color: #4f46e5;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.family-info-content {
    flex: 1;
}

.family-info-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.family-info-text {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Services Grid */
.family-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.family-service-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.family-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.family-service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

/* Service Icon Colors (Shared) */
.family-service-icon-blue { background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%); color: #3b82f6; }
.family-service-icon-green { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: #10b981; }
.family-service-icon-purple { background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%); color: #8b5cf6; }
.family-service-icon-pink { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); color: #ec4899; }
.family-service-icon-red { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); color: #ef4444; }
.family-service-icon-indigo { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); color: #6366f1; }

.family-service-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.family-service-description {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
}

/* Cost Grid */
.family-cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.family-cost-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 1.25rem;
    padding: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

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

.family-cost-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.family-cost-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.family-cost-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Cost Icon Colors */
.family-cost-icon-blue { background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%); color: #3b82f6; }
.family-cost-icon-green { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: #10b981; }
.family-cost-icon-purple { background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%); color: #8b5cf6; }
.family-cost-icon-pink { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); color: #ec4899; }

.family-cost-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.family-cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.family-cost-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.family-cost-price {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.family-cost-note {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Note Box */
.family-note-box {
    background: linear-gradient(135deg, #e0f2fe 0%, #f3e8ff 100%);
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 1rem;
}

.family-note-text {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.family-note-text strong {
    color: #1f2937;
}

/* Benefits Grid */
.family-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.family-benefit-item {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    transition: all 0.3s ease;
}

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

.family-benefit-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.family-benefit-icon-blue { background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%); color: #3b82f6; }
.family-benefit-icon-green { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: #10b981; }
.family-benefit-icon-purple { background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%); color: #8b5cf6; }
.family-benefit-icon-pink { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); color: #ec4899; }
.family-benefit-icon-red { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); color: #ef4444; }
.family-benefit-icon-indigo { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); color: #6366f1; }

.family-benefit-text {
    font-size: 1rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* Trust Grid */
.family-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.family-trust-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.family-trust-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.family-trust-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.5rem;
}

.family-trust-icon-green { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: #10b981; }
.family-trust-icon-purple { background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%); color: #8b5cf6; }
.family-trust-icon-blue { background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%); color: #3b82f6; }

.family-trust-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.family-trust-description {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* FAQ Section */
.family-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.family-faq-item {
    background: #ffffff;
    border-radius: 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.family-faq-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.family-faq-item.family-faq-active {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.family-faq-button {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.family-faq-button:hover {
    background: #f9fafb;
}

.family-faq-button:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

.family-faq-question {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    flex: 1;
}

.family-faq-icon {
    color: #6b7280;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.family-faq-item.family-faq-active .family-faq-icon {
    transform: rotate(180deg);
}

.family-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.family-faq-text {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.7;
    padding-bottom: 1rem;
    margin: 0;
}

/* CTA Section Large */
.family-cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.family-cta-title-large {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.family-cta-description-large {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.family-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.family-section-cta .family-btn-primary {
    background: #ffffff;
    color: #667eea;
}

.family-section-cta .family-btn-primary:hover {
    background: #f9fafb;
}

.family-section-cta .family-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.family-section-cta .family-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Overrides for Service Pages */
@media (max-width: 1024px) {
    .family-section-title-large {
        font-size: 2rem;
    }

    .family-services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .family-cost-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .family-section {
        padding: 1.5rem 0;
    }

    .family-container {
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .family-content-card {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .family-section-title,
    .family-section-title-large,
    .family-cta-title-large {
        font-size: 1.75rem;
    }

    .family-services-grid,
    .family-cost-grid,
    .family-benefits-grid,
    .family-trust-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .family-cta-buttons {
        flex-direction: column;
    }

    .family-cta-buttons .family-btn-primary,
    .family-cta-buttons .family-btn-secondary {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .family-section-title,
    .family-section-title-large {
        font-size: 1.75rem;
    }

    .family-service-card,
    .family-trust-card {
        padding: 1.5rem;
    }

    .family-faq-button {
        padding: 1.25rem;
    }

    .family-faq-question {
        font-size: 0.95rem;
    }
}

/* Dentists Archive Specific Styles */
.dentists-archive-section-header-with-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-direction: column;
    gap: 1rem;
}

.dentists-archive-section-header-with-link > div {
    text-align: left;
    width: 100%;
}

.dentists-archive-link-with-arrow {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.dentists-archive-link-with-arrow:hover {
    color: #1d4ed8;
}

.dentists-archive-link-with-arrow i {
    transition: transform 0.2s;
}

.dentists-archive-link-with-arrow:hover i {
    transform: translateX(4px);
}

.dentists-archive-states-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.dentists-archive-state-card {
    display: block;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
}

.dentists-archive-state-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.dentists-archive-state-card-content {
    padding: 1.5rem;
}

.dentists-archive-state-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.dentists-archive-state-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    transition: color 0.3s;
}

.dentists-archive-state-card:hover .dentists-archive-state-card-title {
    color: #2563eb;
}

.dentists-archive-state-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 1.125rem;
}

.dentists-archive-state-card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.dentists-archive-state-stat {
    display: flex;
    align-items: center;
}

.dentists-archive-state-stat-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

.dentists-archive-state-stat-icon-blue {
    background: #eff6ff;
    color: #2563eb;
}

.dentists-archive-state-stat-icon-green {
    background: #f0fdf4;
    color: #22c55e;
}

.dentists-archive-state-stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.dentists-archive-state-stat-label {
    font-size: 0.875rem;
    color: #4b5563;
}

/* Service Layout V2 */
.dental-services-v2-section {
    background: #f9fafb;
    padding: 3rem 0;
}

.dental-services-v2-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.dental-services-v2-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dental-services-v2-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
}

.dental-services-v2-description {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 768px;
    margin: 0 auto;
}

.dental-services-v2-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.dental-services-v2-item {
    display: block;
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.3s;
}

.dental-services-v2-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.dental-services-v2-item-content {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.dental-services-v2-icon-wrapper {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.dental-services-v2-icon-purple { background: #faf5ff; color: #9333ea; }
.dental-services-v2-icon-green { background: #f0fdf4; color: #22c55e; }
.dental-services-v2-icon-blue { background: #eff6ff; color: #2563eb; }
.dental-services-v2-icon-red { background: #fef2f2; color: #dc2626; }
.dental-services-v2-icon-yellow { background: #fefce8; color: #ca8a04; }
.dental-services-v2-icon-pink { background: #fdf2f8; color: #db2777; }
.dental-services-v2-icon-indigo { background: #eef2ff; color: #4f46e5; }
.dental-services-v2-icon-teal { background: #f0fdfa; color: #14b8a6; }

.dental-services-v2-text {
    flex: 1;
}

.dental-services-v2-item-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.dental-services-v2-item:hover .dental-services-v2-item-title {
    color: #2563eb;
}

.dental-services-v2-item-description {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Why Choose Us Section - Archive */
section.dentists-archive-why-choose {
    background: #ffffff;
    padding: 3rem 0;
}

section.dentists-archive-why-choose .dentists-archive-section-header-centered {
    text-align: center;
    max-width: 768px;
    margin: 0 auto 3rem;
}

section.dentists-archive-why-choose .dentists-archive-benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

section.dentists-archive-why-choose .dentists-archive-benefit-card {
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    background: #ffffff;
}

section.dentists-archive-why-choose .dentists-archive-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

section.dentists-archive-why-choose .dentists-archive-benefit-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

section.dentists-archive-why-choose .dentists-archive-benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

section.dentists-archive-why-choose .dentists-archive-benefit-description {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Overrides for Archive */
@media (min-width: 768px) {
    .dentists-archive-section-header-with-link {
        flex-direction: row;
    }

    .dentists-archive-states-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dental-services-v2-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .dentists-archive-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dentists-archive-container {
        padding: 0 2rem;
    }
    
    .dentists-archive-hero {
        padding: 5rem 0 6rem;
    }
    
    .dentists-archive-hero-title {
        font-size: 3.5rem;
        margin-bottom: 1.75rem;
    }
    
    .dentists-archive-hero-description {
        font-size: 1.375rem;
        line-height: 1.7;
    }
    
    .dentists-archive-states-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .dentists-archive-state-card-content {
        padding: 2rem;
    }
    
    .dental-services-v2-container {
        padding: 0 2rem;
    }
    
    .dental-services-v2-section {
        padding: 3rem 0;
    }
    
    .dental-services-v2-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .dental-services-v2-item {
        flex: 0 0 calc((100% - (3 * 1.5rem)) / 4);
        padding: 1.5rem;
    }
    
    .dental-services-v2-item-content {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
    
    .dental-services-v2-icon-wrapper {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .dental-services-v2-item-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .dental-services-v2-item-description {
        font-size: 0.875rem;
    }
    
    section.dentists-archive-why-choose .dentists-archive-benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    section.dentists-archive-why-choose .dentists-archive-benefit-card {
        padding: 2rem;
    }
}

