body { scroll-behavior: smooth; }

/* Town badges: force a red pill with accessible hover/focus */
  .town-badge {

    color: #fff !important;
    border: 0 !important;
    text-decoration: none;
    transition: background-color .15s ease, transform .08s ease, box-shadow .15s ease;
  }
  .town-badge:hover { background-color: #361346 !important;  }
  .town-badge:focus-visible {
    outline: none;
    box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .25);
  }

  /* County card header: subtle red emphasis */
  .county-card .card-header {
    border-left: 4px solid #361346;
  }
  .county-card .card-header a {
    color: inherit;
    transition: color .15s ease, text-decoration-color .15s ease;
    text-decoration-color: transparent;
    text-underline-offset: .2rem;
  }
  .county-card .card-header a:hover { color: #361346; text-decoration: underline; }
  .county-card .card-header a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .25);
    border-radius: .25rem;
  }

  /* Card hover state: gentle red glow */
  .county-card .card:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.08), 0 0 0 .15rem rgba(220, 53, 69, .08);
  }
  
  .county-card .card-header a {
    color: inherit;
    transition: color .2s ease;
  }
  
  .county-card .card-header a:hover,
.county-card .card-header a:focus {
  color: #361346 !important;
  font-weight: 600;
}






  
  span.h1-small {
    font-size: 18px; text-transform:uppercase; display: block;
  }

    /* Desktop left TOC */
    .left-menu { position: sticky; top: 80px; max-height: calc(100vh - 80px); overflow-y: auto; padding-right: 15px; border-right: 1px solid #eee; }
    .left-menu a { display: block; padding: 8px 0; color: #555; text-decoration: none; transition: color 0.2s; font-weight: bold;  }
    .left-menu a:hover, .left-menu a.active { color: #A31824; font-weight: bold; }

     /* Content */
    .content-section { padding-bottom: 40px; }
    h2 { margin-top: 0; scroll-margin-top: 80px; }
  
    .content-section img {
    width: 100%; height: auto; max-width: 600px;
  }

    /* Mobile dropdown TOC */
    @media (max-width: 767.98px) {
      .left-menu { display: none; }
      .mobile-menu-container { border-bottom: 1px solid #ddd; margin-bottom: 20px; }
      .mobile-menu-inner { padding: 10px 12px; }
      .mobile-toc .dropdown-toggle { width: 100%; text-align: left; }
      .mobile-toc .dropdown-menu { width: 100%; }
      .mobile-toc .dropdown-item.active { font-weight: 600; color: #A31824; background-color: transparent !important; }
    }
  

  
  
  
 /* Clinic Card Styles */
        .clinic-card {
            background-color: white;
            border-radius: 0.75rem; /* rounded-xl */
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); /* shadow-lg */
            overflow: hidden;
            transition: box-shadow 0.3s ease; /* transition duration-300 */
        }
        .clinic-card:hover {
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); /* hover:shadow-xl */
        }

        /* Responsive Layout (Mobile first, then MD breakpoint) */
        .clinic-card .card-layout {
            display: block; /* Default block for mobile */
        }
        
        /* Image Container Styling */
        .clinic-card .card-image-container {
            flex-shrink: 0;
        }

        .clinic-card .card-image {
            height: 14rem; /* h-56 */
            width: 100%;
            object-fit:contain;
        }

        /* Content Area Styling */
        .clinic-card .card-content {
            padding: 1.5rem; /* p-6 */
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        
        .clinic-card .title-rating-row {
            display: flex;
            flex-direction: column;
            margin-bottom: 0.5rem; /* mb-2 */
        }
        
        .clinic-card .clinic-title {
            font-size: 1.5rem; /* text-2xl */
            font-weight: 800; /* font-extrabold */
            color: #111827; /* text-gray-900 */
            line-height: 1.25; /* leading-tight */
        }

        .clinic-card .rating {
            margin-top: 0.25rem; /* mt-1 */
            font-size: 0.875rem; /* text-sm */
            font-weight: 500; /* font-medium */
            color: #f59e0b; /* text-amber-500 */
        }

        .clinic-card .location-info {
            font-size: 0.875rem; /* text-sm */
            color: #4b5563; /* text-gray-600 */
            margin-bottom: 1rem; /* mb-4 */
            display: flex;
            align-items: center;
        }

        .clinic-card .location-icon {
            color: #361346; /* text-teal-600 */
            margin-right: 0.5rem; /* mr-2 */
        }
        
        .clinic-card .location-text {
            font-weight: 600; /* font-semibold */
            color: #374151; /* text-gray-700 */
        }

        .clinic-card .distance-badge {
            margin-left: 1rem; /* ml-4 */
            font-size: 0.75rem; /* text-xs */
            background-color: rgba(184,26,40,0.2);; /* bg-teal-100 */
            color: #361346; /* text-teal-800 */
            padding: 0.125rem 0.5rem; /* px-2 py-0.5 */
            border-radius: 9999px; /* rounded-full */
            font-weight: 700; /* font-bold */
        }

        .clinic-card .summary-text {
            color: #374151; /* text-gray-700 */
            margin-bottom: 1rem; /* mb-4 */
            line-height: 1.625; /* leading-relaxed */
            border-left: 4px solid #361346; /* border-l-4 border-teal-400 */
            padding-left: 0.75rem; /* pl-3 */
            font-style: italic;
        }

        .clinic-card .accreditations-section {
            margin-top: 1rem; /* mt-4 */
        }
        
        .clinic-card .accreditation-title {
            font-size: 1rem; /* text-md */
            font-weight: 700; /* font-bold */
            color: #1f2937; /* text-gray-800 */
            margin-bottom: 0.5rem; /* mb-2 */
        }

        .clinic-card .accreditation-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem; /* gap-2 */
            font-size: 0.875rem; /* text-sm */
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .clinic-card .accreditation-list a {
            display: inline-block;
            background-color: #dbeafe; /* bg-blue-100 */
            color: #1e40af; /* text-blue-800 */
            padding: 0.25rem 0.75rem; /* px-3 py-1 */
            border-radius: 9999px; /* rounded-full */
            transition: background-color 0.3s ease;
            text-decoration: none;
        }
        
        .clinic-card .accreditation-list a:hover {
            background-color: #bfdbfe; /* hover:bg-blue-200 */
        }

        /* Footer Buttons */
       .clinic-card  .card-footer {
            margin-top: 1.5rem; /* mt-6 */
            padding-top: 1rem; /* pt-4 */
            border-top: 1px solid #f3f4f6; /* border-t border-gray-100 */
        }

        .clinic-card .button-group {
            display: flex;
            flex-direction: column;
            gap: 0.75rem; /* space-y-3 */
        }

        /* Custom button classes (defined in original <style> block) */
        .clinic-card .btn-primary {
            background-color: #361346; /* Teal color */
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: 0.5rem;
            font-weight: 600;
            transition: background-color 0.3s ease, transform 0.1s ease;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
            cursor: pointer;
            border: none;
            text-align: center;
            text-decoration: none;
            width: 100%; /* w-full */
            box-sizing: border-box;
        }
        .clinic-card .btn-primary:hover {
            background-color: #aa41ce;
        }
        .clinic-card .btn-secondary {
            background-color: #2b7a04;
            color: #ffffff;
            padding: 0.75rem 1.5rem;
            border-radius: 0.5rem;
            font-weight: 600;
            transition: background-color 0.3s ease;
            text-align: center;
            text-decoration: none;
            width: 100%; /* w-full */
            box-sizing: border-box;
            display: inline-block;
        }
        .clinic-card .btn-secondary:hover {
          background-color: #1e5205;
          color: #ffffff;
        }

  
  @media (min-width: 640px) {
  .clinic-card .title-rating-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .clinic-card .button-group {
    flex-direction: row;
    gap: 1rem;           /* your spacing */
  }

  /* Make each direct child of .button-group take equal width */
  .clinic-card .button-group > * {
    flex: 1 1 0;
  }

  /* Keep the actual buttons full-width inside their flex child */
  .clinic-card .btn-primary,
  .clinic-card .btn-secondary {
    width: 100%;
  }
}
  

        @media (min-width: 768px) { /* md: breakpoint equivalent */
            .clinic-card .card-layout {
                display: flex;
            }
            .clinic-card .card-image-container {
                /* Fixed width for the image container on desktop */
                width: 280px; 
            }
            .clinic-card .card-image {
                /* Image fills the container height */
                height: 100%; 
            }
            .clinic-card .card-content {
                flex: 1; /* md:w-2/3 equivalent (remaining space) */
            }
        } 
  
  
  /* --- FAQ Accordion Styles --- */
        .faq-wrapper {
            display: flex;
            flex-direction: column;
            gap: 1rem; /* space-y-4 */
        }

        .faq-item {
            background-color: #fff;
            border-radius: 0.75rem; /* rounded-xl */
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
            overflow: hidden;
            border: 1px solid #e5e7eb;
            transition: box-shadow 0.3s ease-in-out;
        }
        .faq-item:hover {
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* hover:shadow-xl */
        }

        /* Summary (Question) Styles */
        .faq-item summary {
            display: flex;
            align-items: center;
            padding: 1.25rem; /* p-5 */
            cursor: pointer;
            font-size: 1.125rem; /* text-lg */
            font-weight: 600; /* font-semibold */
            color: #000000;
            transition: background-color 0.15s ease-in-out;
            list-style: none; /* Remove default marker */
        }

        .faq-item summary:hover {
            color: #A31824;
        }
        .faq-item summary::-webkit-details-marker {
            display: none;
        }

        /* Chevron Icon Styles */
        .chevron-icon {
            width: 1.25rem; /* w-5 */
            height: 1.25rem; /* h-5 */
            margin-right: 1rem; /* mr-4 */
            flex-shrink: 0;
            transition: transform 0.3s ease-in-out;
        }

        /* Rotate the chevron when the details element is open */
        .faq-item[open] .chevron-icon {
            transform: rotate(90deg);
        }

        /* Answer Content Styles */
        .faq-answer {
            padding: 0 1.25rem 1.25rem 1.25rem; /* px-5 pb-5 pt-3 */
            color: #374151;
            border-top: 1px solid #e5e7eb;
        }

        .faq-answer p {
            margin-top: 0.75rem;
            line-height: 1.6;
        }

