/*
=================================================================
CSS for Homepage Shortcode Layout
=================================================================
*/

/* 
 * 1. Target the specific layout wrapper used by the homepage shortcode.
 *    We turn it into a flexible container.
*/
.apus-listing-warpper.only_main > .row {
    display: flex;
    flex-wrap: wrap; /* Allows columns to stack on mobile */
    align-items: flex-start; /* Aligns columns to the top */
}

/* 
 * 2. Define the Filter Widget as the left column (sidebar).
*/
.apus-listing-warpper.only_main .wrapper-filters1 {
    flex: 0 0 33%; /* Do not grow, do not shrink, base width of 33% */
    max-width: 350px; /* Optional: Prevents it from getting too wide on huge screens */
    padding-right: 30px; /* Creates space between the filter and the results */
    box-sizing: border-box;
}

/* 
 * 3. Define the Listing Results as the main column.
*/
.apus-listing-warpper.only_main .main-results {
    flex: 1; /* Allow this column to grow and fill the remaining space */
    min-width: 0; /* A flexbox fix to prevent content overflow */
}

/*
 * 4. Tidy up the filter fields inside the new sidebar.
 *    This ensures they stack neatly in a single column.
*/
.apus-listing-warpper.only_main .wrapper-top-filter {
    display: flex;
    flex-direction: column;
}

/* 
 * Instead of a large 'gap', we apply a smaller bottom margin 
 * to each individual filter field for better control.
*/
.apus-listing-warpper.only_main .wrapper-top-filter > div {
    margin-bottom: 8px; /* You can adjust this value. Try numbers between 8px and 15px. */
}

/*
=================================================================
Definitive CSS for Widening Directory Layout (Universal Compatibility)
=================================================================
*/

/*
 * This is a forceful override using a high-specificity path and !important.
 * It targets the main container specifically on pages that contain
 * the apus-main-content ID and the directory structure.
*/
#apus-main-content .main-page.full-default {
    max-width: 1600px !important;
}

/*
 * This rule adjusts the column proportions within the now-wider container
 * to give more space to the results list.
*/
#apus-main-content .sidebar-left {
    width: 28%;
}

#apus-main-content .main-results {
    width: 72%;
}

/*
=================================================================
Custom Styling for Text-Based Filter Fields
=================================================================
*/

/* --- 1. Style all the main text input fields --- */
.search_first_name input#search_first_name,
.search_last_name input#search_last_name,
.search_street_name input#search_street_name, /* Added Street Name */
.search_postal_code input#search_postal_code,
.search_phone_number input#search_phone_number {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    height: 44px;
    padding: 0 15px;
    width: 100%;
    font-size: 14px;
    color: #555;
    box-shadow: none;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

/* --- 2. Add the hover and focus effect to all text fields --- */
.search_first_name input#search_first_name:hover,
.search_first_name input#search_first_name:focus,
.search_last_name input#search_last_name:hover,
.search_last_name input#search_last_name:focus,
.search_street_name input#search_street_name:hover, /* Added Street Name */
.search_street_name input#search_street_name:focus, /* Added Street Name */
.search_postal_code input#search_postal_code:hover,
.search_postal_code input#search_postal_code:focus,
.search_phone_number input#search_phone_number:hover,
.search_phone_number input#search_phone_number:focus {
    border-color: #00babc;
    outline: none;
}

/*
=================================================================
Final Optimized CSS for Full-Width Directory Layout
=================================================================
*/

/* --- 1. Force Full-Width Layout on Directory Pages --- */

/*
 * This is the key fix. We target the main container only on job listing
 * archive pages and force it to be much wider.
*/
body.post-type-archive-job_listing #main-container.container {
    max-width: 1600px; /* Expands the container to a much larger width */
    width: 95%;      /* Ensures a little space on the very edges of the screen */
}


/* --- 2. Adjust Column Proportions --- */

/*
 * The original design looks like a 25% / 75% split.
 * We'll change the theme's 33% / 67% split (col-md-4/8) to match.
*/
body.post-type-archive-job_listing .sidebar-left {
    width: 25%; /* Make the filter sidebar narrower */
}

body.post-type-archive-job_listing .main-results {
    width: 75%; /* Give the listings results more space */
}


/* --- 3. Refine Filter Panel & Listing Cards --- */

/* Style the filter sidebar as a clean "card" */
.sidebar-listing .wrapper-filters1 {
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fff;
}

/* Add consistent spacing below each filter block */
.job_filters .search_keywords,
.job_filters .select-categories,
.job_filters .filter-item-wrapper,
.job_filters .select-types,
.job_filters .field-region,
.job_filters .search_location,
.job_filters .search_distance_wrapper {
    margin-bottom: 20px !important;
}

/* Style all filter labels for consistency */
.job_filters label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #333;
}

/* Style the main "Filter" button */
.job_filters .btn-filter {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
    background-color: #ff5a3c; /* A vibrant orange-red from your original image */
    border: none;
}
.job_filters .btn-filter:hover {
    background-color: #e04a2c;
}

/* --- Popular Searches Section --- */
.popular-searches-heading {
    text-align: center;
    margin-bottom: 40px;
}

.directory-heading {
    font-size: 2.5rem;
    color: #005a87;
}

.popular-searches-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.popular-searches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    transition: max-height 0.5s ease-in-out;
    overflow: hidden;
}

.search-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.search-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.search-link:hover {
    background-color: #eaf4fc;
    color: #005a87;
}

.search-icon {
    color: #005a87;
    margin-right: 15px;
    font-size: 1rem;
}

.search-text {
    flex-grow: 1;
}

.search-card-hidden {
    display: none; /* Hidden by default */
}

.show-more-container {
    text-align: center;
    margin-top: 30px;
}

.show-more-button {
    background-color: #fff;
    color: #005a87;
    border: 2px solid #005a87;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.show-more-button:hover {
    background-color: #005a87;
    color: #fff;
}

/* --- Basic Styles --- */
.ks-homepage {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}
.ks-homepage section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.ks-homepage h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #005a87;
}

/* --- Hero Section --- */
.hero-section {
    background-color: #f8f9fa;
    padding: 80px 20px;
}
.hero-content h1 {
    font-size: 3.5rem;
    color: #005a87;
    margin-bottom: 10px;
}
.hero-content .subtitle {
    font-size: 1.25rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 30px auto;
}
.search-form {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}
.search-field {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.search-field label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.search-field input, .search-field select {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 250px;
}
.search-button {
    padding: 15px 30px;
    background-color: #005a87;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.search-button:hover {
    background-color: #004a70;
}

/* --- Value Props Section --- */
.props-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
}
.prop-item {
    flex: 1;
    max-width: 350px;
}
.prop-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2a4d69;
}
.prop-item p {
    color: #555;
}
.prop-item .icon { /* Placeholder for icons */
    font-size: 2.5rem;
    color: #005a87;
    margin-bottom: 15px;
}

/* --- CITIES SECTION - ICON VERSION --- */
.cities-section {
    background-color: #f8f9fa; /* A very light grey background for the whole section */
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive grid */
    gap: 25px;
}

.city-card {
    background-color: #ffffff; /* White background for the card */
    border: 1px solid #e9ecef; /* Subtle border */
    border-radius: 12px;
    padding: 30px 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.city-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 90, 135, 0.1);
    border-color: #cce3f6;
}

.city-card-icon svg {
    width: 64px;
    height: 64px;
    color: #005a87; /* Main brand color */
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.city-card:hover .city-card-icon svg {
    color: #004a70; /* Darker shade on hover */
}

.city-card-title {
    color: #2a4d69;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.city-card:hover .city-card-title {
    color: #005a87;
}

/* --- COMING SOON SECTION - REFINED --- */
.coming-soon {
    /* This ensures all direct children are centered by default */
    text-align: center;
}
.coming-soon p {
    max-width: 700px;
    margin: 0 auto 20px auto;
    color: #555;
}
.coming-soon h3 {
    font-size: 1.5rem;
    color: #2a4d69;
    margin-top: 40px; /* Adds space above */
    margin-bottom: 20px; /* Adds space below */
}
.specialty-list {
    list-style: none;
    padding: 0;
    display: flex; /* Changed to flex for better control */
    flex-wrap: wrap; /* Allows pills to wrap on small screens */
    justify-content: center; /* This is the key to centering the pills */
    gap: 15px;
}
.specialty-list li {
    background-color: #eaf4fc;
    padding: 10px 20px;
    border-radius: 25px; /* More of a "pill" shape */
    color: #005a87;
    font-weight: 500;
    border: 1px solid #cce3f6;
}

/* --- Health Hub Section --- */
.article-card {
    display: flex;
    text-align: left;
    gap: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}
.article-card img {
    width: 300px;
    height: 100%;
    object-fit: cover;
}
.article-content {
    padding: 30px;
}
.article-content h3 {
    margin-top: 0;
}
.read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: #005a87;
    text-decoration: none;
}
.read-more:hover {
    text-decoration: underline;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .ks-homepage h2 { font-size: 2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .search-form { flex-direction: column; align-items: stretch; }
    .search-field input, .search-field select { min-width: 100%; }
    .props-grid { flex-direction: column; align-items: center; }
    .article-card { flex-direction: column; }
    .article-card img { width: 100%; height: 200px; }
}

/* For the img tag version */
.listing-image {
    width: 300px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
}

.listing-image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures proper cropping */
}

@media (max-width: 768px) {
    .listing-image {
        width: 300px;
        height: 300px;
    }
}

.listing-image-inner {
    border: 3px solid #fff; /* White border */
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1); /* Subtle outer shadow */
}

.listing-image-inner:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

/* Social Share Container */
.direct-social-share {
    margin: 25px 0;
    padding: 20px;
    background: #1B2639; /* Deep blue background */
    border-radius: 8px;
    text-align: left;
    color: white;
    font-family: inherit;
}

/* Message Styling */
.share-encouragement {
    font-size: 1.05em;
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.share-encouragement i {
    margin-right: 10px;
    color: #4CAF50; /* Green healthcare icon */
}

.share-line {
    display: inline-block;
    margin-top: 3px;
}

/* Social Icons Grid */
.social-icons-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icons-inline .social-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: all 0.25s ease;
    background-color: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
}

.social-icons-inline .social-icon:hover {
    background-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Platform Colors on Hover */
.social-icons-inline .facebook:hover { background-color: #1877F2 !important; }
.social-icons-inline .twitter:hover { background-color: #000000 !important; }
.social-icons-inline .linkedin:hover { background-color: #0A66C2 !important; }
.social-icons-inline .pinterest:hover { background-color: #E60023 !important; }
.social-icons-inline .whatsapp:hover { background-color: #25D366 !important; }

/* X/Twitter Icon Specific */
.fa-x-twitter {
    font-size: 0.9em;
    position: relative;
    top: 1px;
}

/* X/Twitter icon fallback */
.fa-x-twitter:before {
    content: "X";
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: 1.1em;
    position: relative;
    top: -1px;
}

/* If Font Awesome loads properly, hide the fallback */
.fa-brands.fa-x-twitter:before {
    content: "" !important;
}

/* SVG icon styling */
.x-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.x-icon-svg {
    width: 18px;
    height: 18px;
}

/* Hide Font Awesome icon if SVG is present */
.x-icon-wrapper + .fa-x-twitter {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .direct-social-share {
        padding: 16px;
        margin: 20px 0;
    }
    
    .social-icons-inline {
        gap: 10px;
    }
    
    .social-icons-inline .social-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .share-encouragement {
        font-size: 0.98em;
    }
}

/* Accessibility - Screen Reader Text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Show More/Less Button Styles */
.show-more-container {
    text-align: center;
    margin-top: 1.5rem;
}

.show-more-button {
    background: #f8fafc;
    color: #2b6cb0;
    border: 1px solid #e0e6ed;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-button:hover {
    background: #ebf4ff;
    border-color: #3498db;
}

/* Grid Items - Hidden by default beyond first 9 */
.doctors-directory .three-column-grid .grid-item:nth-child(n+7) {
    display: none;
}

/* When expanded - Show all items */
.doctors-directory .three-column-grid.expanded .grid-item {
    display: block !important;
}

/* Button state when expanded */
.doctors-directory .three-column-grid.expanded + .show-more-container .show-more-button {
    background: #ebf4ff;
}

/* ===== About Us Page ===== */
.page-about-us {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #4a5568;
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.about-hero {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ebf4ff 100%);
  border-radius: 0 0 20px 20px;
  margin-bottom: 3rem;
}

.about-hero h1 {
  color: #2c3e50;
  font-size: 2.4rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.3;
}

.about-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Mission Section */
.about-mission {
  padding: 3rem 0;
  border-bottom: 1px solid #e0e6ed;
}

.about-mission h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.about-mission h2:after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #3498db;
  margin: 15px auto 0;
}

.about-mission p {
  max-width: 800px;
  margin: 1.5rem auto;
  font-size: 1.1rem;
}

/* Features Grid */
.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 2rem 0;
}

.about-feature-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  border: 1px solid #e0e6ed;
  transition: all 0.3s ease;
}

.about-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.about-feature-card h3 {
  color: #2c3e50;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-feature-card h3 .dashicons {
  color: #3498db;
  font-size: 24px;
}

.about-feature-card ul {
  padding-left: 20px;
}

.about-feature-card li {
  margin-bottom: 8px;
}

/* Why It Matters */
.about-mission[style*="background-color"] {
  padding: 3rem 20px;
  border-radius: 10px;
  margin: 3rem 0;
}

.about-mission[style*="background-color"] h3 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Trust Badges */
.about-trust {
  text-align: center;
  padding: 3rem 0;
}

.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 2rem;
}

.trust-badge {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  height: 100px;
}

/* CTA Section */
.about-cta {
  text-align: center;
  padding: 3rem 0;
  background: #f8fafc;
  border-radius: 10px;
  margin: 3rem 0;
}

.about-cta .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.about-cta .button:first-child {
  background: #3498db;
  color: white;
}

.about-cta .button:first-child:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.about-cta .button:last-child:hover {
  background: #ebf4ff;
}

.about-cta p em {
  font-style: normal;
  color: #718096;
}

/* Responsive */
@media (max-width: 768px) {
  .about-hero {
    padding: 3rem 20px;
  }
  
  .about-hero h1 {
    font-size: 2rem;
  }
  
  .trust-badges {
    gap: 20px;
  }
  
  .trust-badge {
    padding: 15px;
    height: auto;
  }
}

/* ===== Province Tabs Widget ===== */
.province-tabs-container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Consistent H2 Heading with Hover Effect */
.province-tabs-heading {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin: 0 auto 3rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e6ed;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.province-tabs-heading:hover {
    color: #3498db;
    border-bottom-color: #3498db;
    transform: translateX(-50%) translateY(-2px);
}

.province-tabs-widget {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  border: 1px solid #e0e6ed;
  overflow: hidden;
}

/* Tab Headers */
.province-tabs-header {
  display: flex;
  border-bottom: 1px solid #e0e6ed;
  background: #f8fafc;
}

.province-tab {
  flex: 1;
  padding: 15px 10px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  text-align: center;
}

.province-tab:hover {
  color: #2b6cb0;
  background: #ebf4ff;
}

.province-tab.active {
  color: #2c3e50;
  border-bottom: 3px solid #3498db;
  background: #fff;
}

/* Cities Grid */
.province-cities {
  display: none;
}

.province-cities.active {
  display: block;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 25px;
}

.city-link {
  color: #2b6cb0;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: block;
}

.city-link:hover {
  color: #1a4b8c;
  background: #ebf4ff;
  transform: translateX(3px);
}

.city-hidden {
  display: none;
}

/* Footer Links */
.cities-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px 25px;
  border-top: 1px dashed #e0e6ed;
  margin-top: -10px;
}

.show-more-btn {
  background: #f8fafc;
  color: #2b6cb0;
  border: 1px solid #e0e6ed;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.show-more-btn:hover {
  background: #ebf4ff;
  border-color: #3498db;
}

.show-more-btn .dashicons {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.show-more-btn.active .dashicons {
  transform: rotate(180deg);
}

.view-all-link {
  color: #3498db;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.view-all-link:hover {
  color: #1a4b8c;
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .cities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cities-footer {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .province-tabs-header {
    flex-wrap: wrap;
  }
  
  .province-tab {
    flex: 1 0 50%;
    padding: 12px 5px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .cities-grid {
    grid-template-columns: 1fr;
  }
  
  .province-tab {
    flex: 1 0 100%;
  }
  
  .province-tabs-heading {
    font-size: 1.6rem;
  }
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    margin: 5rem auto;
    max-width: 1200px;
    padding: 0 25px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Heading */
.testimonials-heading {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin: 0 auto 3rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e0e6ed;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.testimonials-heading:hover {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* Slider Container */
.testimonials-slider {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}

/* Testimonial Cards */
.testimonial-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.09);
    padding: 35px 0;
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
    margin: 0 15px;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    border-color: #3498db;
}

/* Content Area */
.testimonial-content {
    padding: 0 35px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
}

.testimonial-icon {
    color: #3498db;
    font-size: 30px;
    margin-right: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

.testimonial-text {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.75;
    margin: 0;
}

/* Author/Location */
.testimonial-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #718096;
    border-top: 1px dashed #e0e6ed;
    padding: 20px 35px 0;
    margin-top: 20px;
}

.testimonial-author {
    font-weight: 500;
    color: #2c3e50;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
    gap: 25px;
}

.slider-prev, .slider-next {
    background: #f8fafc;
    border: 1px solid #e0e6ed;
    color: #2b6cb0;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev:hover, .slider-next:hover {
    color: #fff;
    background: #3498db;
    border-color: #3498db;
}

.slider-dots {
    display: flex;
    gap: 12px;
}

.slider-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e0e6ed;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: #3498db;
    transform: scale(1.15);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .testimonial-content {
        padding: 0 30px;
    }
    .testimonial-meta {
        padding: 18px 30px 0;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 0 20px;
    }
    .testimonial-card {
        padding: 30px 0;
    }
    .testimonial-content {
        padding: 0 25px;
    }
    .testimonial-icon {
        font-size: 26px;
        margin-right: 15px;
    }
    .slider-controls {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .testimonial-content {
        padding: 0 20px;
    }
    .testimonial-meta {
        padding: 15px 20px 0;
        flex-direction: column;
        gap: 5px;
    }
    .testimonial-author, 
    .testimonial-location {
        width: 100%;
    }
}

/* Show More/Less Button Styles */
.show-more-container {
    text-align: center;
    margin-top: 1.5rem;
}

.show-more-button {
    background: #f8fafc;
    color: #2b6cb0;
    border: 1px solid #e0e6ed;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-button:hover {
    background: #ebf4ff;
    border-color: #3498db;
}

/* Hidden items */
.search-card-hidden {
    display: none;
}

/* When expanded */
.popular-searches-grid.expanded .search-card-hidden {
    display: block;
}

/* Button text change */
.popular-searches-grid.expanded + .show-more-container .show-more-button {
    background: #ebf4ff;
}

/* Popular Searches Heading - Larger Size */
.popular-searches-heading {
    text-align: center;
    margin-bottom: 2rem; /* Increased spacing */
}

.directory-heading {
    color: #2c3e50;
    font-size: 2.2rem; /* Increased from default (was likely 1.5rem) */
    font-weight: 600;
    display: inline-block;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e6ed;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0 0 1.5rem;
    line-height: 1.3;
}

.directory-heading:hover {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .directory-heading {
        font-size: 1.8rem; /* Slightly smaller on mobile */
    }
}

.popular-searches-title {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e6ed;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.3;
}

.directory-heading:hover {
    color: #3498db;
    border-bottom-color: #3498db;
}
.popular-searches-container {
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.popular-searches-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.search-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e0e6ed;
    overflow: hidden;
}

.search-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.search-link {
    display: flex;
    align-items: center;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    gap: 12px;
    min-width: 0; /* Fixes flexbox overflow */
}

.search-icon {
    color: #2b6cb0;
    font-size: 18px;
    background: #ebf4ff;
    padding: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.search-card:hover .search-icon {
    background: #2b6cb0;
    color: white;
}

.search-text {
    font-size: 15px;
    font-weight: 600;
    color: #2b6cb0;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.search-card:hover .search-text {
    color: #1a4b8c;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .popular-searches-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 480px) {
    .popular-searches-grid {
        grid-template-columns: 1fr;
    }
    
    .search-text {
        white-space: normal;
    }
}

/* Main Container */
.doctors-directory {
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Widget Headings */
.doctors-directory h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e6ed;
}

/* List Styles */
.doctors-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
	scroll-margin-top: 2rem;
}

.doctors-list li {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
	will-change: transform;
    transition: all 0.3s ease;
    border: 1px solid #e0e6ed;
}

.doctors-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.doctors-list a {
    display: block;
    padding: 1rem 1.25rem;
    color: #34495e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.doctors-list a:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.doctors-list a:hover {
    color: #3498db;
}

/* Widget 2 Specific Styling */
.doctors-directory .widget-2 h3 {
    color: #7f8c8d;
    border-bottom-color: #f1f5f9;
}

.doctors-directory .widget-2 .doctors-list li {
    background: #f8fafc;
}

/* Additional styles for the doctors directory */
.doctors-directory .widget-2 {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.doctors-directory .widget-2 .related-listings-title .dashicons {
    background: #e2e8f0;
    color: #4a5568;
}

.doctors-directory .widget-2 .related-listings-title:hover .dashicons {
    background: #4a5568;
    color: white;
}

.no-results {
    color: #718096;
    font-size: 14px;
    padding: 10px 16px;
    background: #f8fafc;
    border-radius: 6px;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .doctors-list {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 480px) {
    .doctors-list {
        grid-template-columns: 1fr;
    }
    
    .doctors-directory h3 {
        font-size: 1.3rem;
    }
}

/* Three Column Grid Layout */
.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.grid-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #d6e4ff;
}

.grid-item .listing-link {
    display: flex;
    align-items: center;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}

.grid-item .dashicons-arrow-right-alt {
    color: #2b6cb0;
    font-size: 18px;
    background: #ebf4ff;
    padding: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.grid-item:hover .dashicons-arrow-right-alt {
    background: #2b6cb0;
    color: white;
}

.grid-item .listing-name {
    font-size: 15px;
    font-weight: 600;
    color: #2b6cb0;
    transition: color 0.3s ease;
    word-break: break-word;
}

.grid-item:hover .listing-name {
    color: #1a4b8c;
    text-decoration: underline;
}

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

@media (max-width: 600px) {
    .three-column-grid {
        grid-template-columns: 1fr;
    }
}

/* Page-specific Breadcrumb */
.page-breadcrumb-container {
    padding: 8px 0;
    margin-top: -30px;
    margin-bottom: -30px; /* Added space below breadcrumb */
    position: relative;
    z-index: 1;
}

.page-breadcrumb-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-breadcrumb-container .custom-breadcrumb {
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.page-breadcrumb-container .custom-breadcrumb a {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

/* Specialty Text Styling */
.breadcrumb-specialty {
    color: #2d3748; /* Dark gray-blue color */
    font-weight: 500; /* Medium weight */
    margin-left: 4px; /* Perfect arrow spacing */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-breadcrumb-container {
        margin: -15px 0 30px 0;
        padding: 10px 15px;
        background: rgba(255,255,255,0.9);
    }
    
    .page-breadcrumb-container .custom-breadcrumb {
        font-size: 13px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Scrollbar styling */
    .page-breadcrumb-container .custom-breadcrumb::-webkit-scrollbar {
        height: 2px;
    }
    
    .page-breadcrumb-container .custom-breadcrumb::-webkit-scrollbar-thumb {
        background: #ddd;
    }
}

/* Hide breadcrumb but keep the title */
.apus-breadscrumb .breadcrumb {
    display: none !important;
}

/* ====================== */
/* BREADCRUMB CONTAINER */
/* ====================== */
.apus-inner-bread {
    margin: 0 0 15px 0;
}

.breadscrumb-inner {
    font-size: 14px;
    padding: 16px;
    background: rgba(24, 33, 49, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: #666;
    line-height: 1.5;
    transition: all 0.3s ease;
}

/* Hover effect to match */
.breadscrumb-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #d6e4ff;
}

/* ====================== */
/* BREADCRUMB TITLE */
/* ====================== */
.bread-title {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* ====================== */
/* BREADCRUMB LINKS */
/* ====================== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    align-items: center;
		justify-content: center; /* Center items */
}

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

/* Remove default separators */
.breadcrumb > * + *:before {
    content: "" !important;
    margin: 0 !important;
}

/* Style links */
.breadcrumb a {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.breadcrumb a:first-child {
    margin-left: 0;
}

.breadcrumb a:hover {
    color: #1a4b8c;
    text-decoration: underline;
}

/* Current page item */
.breadcrumb .active {
    color: #2d3748;
    font-weight: 600;
    margin-left: 4px;
}

/* Custom arrow separator */
.breadcrumb li:not(:last-child)::after {
    content: "›";
    color: #a0aec0;
    margin: 0 4px;
    font-size: 16px;
}

/* ====================== */
/* LISTINGS CONTAINER */
/* ====================== */
.job_listings.job_listings_cards {
    display: grid;
    gap: 12px; /* Reduced from 20px */
    margin-top: 15px; /* Reduced from 20px */
}

/* ====================== */
/* INDIVIDUAL LISTING CARD */
/* ====================== */
.job-list-style {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    padding: 16px; /* Reduced from 20px */
    transition: all 0.3s ease;
}

.job-list-style:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #d6e4ff;
}

/* ====================== */
/* LISTING CONTENT */
/* ====================== */
.listing-content-inner .listing-title a {
    font-size: 18px;
    font-weight: 600;
    color: #2b6cb0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 6px; /* Reduced from default */
}

.listing-content-inner .listing-title a:hover {
    color: #1a4b8c;
    text-decoration: underline;
}

.listing-content-inner .listing-tagline {
    font-size: 15px;
    color: #4a5568;
    margin: 6px 0; /* Reduced from 8px */
    line-height: 1.5;
}

/* ====================== */
/* META INFORMATION */
/* ====================== */
.listing-content-inner .listing-meta-container {
    margin-top: 12px; /* Reduced from 15px */
    padding-top: 12px; /* Reduced from 15px */
    border-top: 1px solid #edf2f7;
}

.listing-content-inner .listing-meta {
    display: flex;
    align-items: center;
    margin-bottom: 6px; /* Reduced from 8px */
    font-size: 14px;
    color: #4a5568;
}

/* Icon alignment fixes */
.listing-content-inner .listing-meta i {
    margin-right: 8px;
    color: #718096;
    font-size: 16px;
    width: 20px;
    text-align: center;
    position: relative;
    top: 1px;
}

/* Phone number specific styling */
.listing-content-inner .phone-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px; /* Reduced from 5px */
}

.listing-content-inner .phone-show {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.listing-content-inner .phone-show span.bg-theme {
    background: #ebf4ff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 4px; /* Reduced from 5px */
}

/* ====================== */
/* SAVE BUTTON */
/* ====================== */
.listing-content-inner .listing-bookmark {
    margin-top: 12px; /* Reduced from 15px */
}

.listing-content-inner .listing-bookmark a {
    display: inline-flex;
    align-items: center;
    color: #718096;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.listing-content-inner .listing-bookmark a:hover {
    color: #2b6cb0;
}

.listing-content-inner .listing-bookmark .ti-heart {
    margin-right: 6px;
    font-size: 16px;
}

/* ====================== */
/* RESPONSIVE ADJUSTMENTS */
/* ====================== */
@media (max-width: 768px) {
    .job_listings.job_listings_cards {
        gap: 10px; /* Tighter on mobile */
    }
    
    .job-list-style {
        padding: 14px; /* Slightly reduced */
    }
    
    .listing-content-inner .listing-title a {
        font-size: 16px;
    }
    
    .listing-content-inner .listing-tagline {
        font-size: 14px;
    }
    
    .listing-content-inner .listing-meta {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .job_listings.job_listings_cards {
        gap: 8px; /* Even tighter on small mobile */
    }
    
    .job-list-style {
        padding: 12px;
    }
    
    .listing-content-inner .listing-meta-container {
        margin-top: 10px;
        padding-top: 10px;
    }
}

/* Breadcrumb - Matching Related Listings Style */
.custom-breadcrumb {
    font-size: 14px;
    margin: 0 0 15px 0;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    color: #666;
    line-height: 1.5;
}

/* Remove CSS-generated arrows */
.custom-breadcrumb > * + *:before {
    content: "" !important;
    margin: 0 !important;
}

/* Style links and HTML arrows */
.custom-breadcrumb a {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 4px; /* Spacing around HTML arrows */
}

.custom-breadcrumb a:first-child {
    margin-left: 0; /* Remove left margin on first item */
}

.custom-breadcrumb a:hover {
    color: #1a4b8c;
    text-decoration: underline;
}

.current-provider {
    color: #2d3748;
    font-weight: 500;
    margin-left: 4px; /* Match arrow spacing */
}

/* Match widget's hover effect */
.custom-breadcrumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #d6e4ff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-breadcrumb {
        padding: 12px;
        font-size: 13px;
    }
    .custom-breadcrumb a {
        margin: 0 3px; /* Tighter spacing on mobile */
    }
}

/* Related Listings Widget - Final Styling */
.related-listings-container {
    padding: 5px 0;
    margin-top: 15px;
}

/* Title with search icon - medium weight */
.related-listings-title {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500; /* Your preferred medium weight */
    padding-top: 10px;
}

.related-listings-title .dashicons-search {
    color: #2b6cb0;
    font-size: 20px;
    background: #ebf4ff;
    padding: 6px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rest of the CSS remains unchanged */
.related-listings {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-listing-item {
    margin-bottom: 12px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.related-listing-item:last-child {
    margin-bottom: 0;
}

.listing-link {
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: inherit;
}

.listing-link .dashicons-arrow-right-alt {
    color: #2b6cb0;
    font-size: 18px;
    background: #ebf4ff;
    padding: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
    transition: all 0.3s ease;
}

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

.listing-name {
    font-size: 16px;
    font-weight: 600;
    color: #2b6cb0;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
    word-break: break-word;
    line-height: 1.4;
}

.listing-location {
    font-size: 14px;
    color: #666;
    display: block;
    line-height: 1.4;
}

/* Hover Effects */
.related-listing-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #d6e4ff;
}

.related-listing-item:hover .dashicons-arrow-right-alt {
    background: #2b6cb0;
    color: white;
}

.related-listing-item:hover .listing-name {
    color: #1a4b8c;
    text-decoration: underline;
}

.related-listings-title:hover .dashicons-search {
    background: #2b6cb0;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .related-listing-item {
        padding: 14px;
    }
    .listing-link {
        gap: 12px;
    }
    .related-listings-title {
        font-size: 16px;
    }
}

/* Dynamic City Widget - Modern Styling with Show More */
.dynamic-city-widget-container {
    margin-top: 20px;
    padding: 0;
}

.dynamic-city-title {
    font-size: 18px;
    font-weight: 500;
    color: #2d3748;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dynamic-city-title .dashicons-location-alt {
    color: #2b6cb0;
    font-size: 20px;
    background: #ebf4ff;
    padding: 6px;
    border-radius: 50%;
}

.city-child-pages-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.city-child-page-item {
    margin-bottom: 12px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    overflow: hidden; /* For smooth animations */
}

.city-child-page-item:last-child {
    margin-bottom: 0;
}

.city-page-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
}

.city-page-link .dashicons-arrow-right-alt {
    color: #2b6cb0;
    font-size: 18px;
    background: #ebf4ff;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.city-page-name {
    font-size: 16px;
    font-weight: 600;
    color: #2b6cb0;
    line-height: 1.4;
}

/* Hover Effects */
.city-child-page-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #d6e4ff;
}

.city-child-page-item:hover .dashicons-arrow-right-alt {
    background: #2b6cb0;
    color: white;
}

.city-child-page-item:hover .city-page-name {
    color: #1a4b8c;
    text-decoration: underline;
}

/* Show More/Less Functionality */
.city-child-page-hidden {
    display: none;
}

.city-show-toggle {
    display: block;
    text-align: center;
    padding: 12px;
    margin-top: 8px;
    color: #2b6cb0;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.city-show-toggle:hover {
    background: #ebf4ff;
    color: #1a4b8c;
    text-decoration: none;
    border-color: #d6e4ff;
}

/* Animation for showing/hiding items */
.city-child-page-item {
    transition: 
        transform 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease,
        max-height 0.3s ease,
        padding 0.3s ease,
        margin 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .dynamic-city-title {
        font-size: 16px;
    }
    
    .city-child-page-item {
        padding: 14px;
    }
    
    .city-page-link {
        gap: 10px;
    }
    
    .city-page-name {
        font-size: 15px;
    }
    
    .city-show-toggle {
        padding: 10px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .city-show-toggle {
        display: none;
    }
    
    .city-child-page-hidden {
        display: block !important;
    }
}
/* ========================================================= */
/* --- Kellysearch.com - V1 Profile Styles (Final Version) --- */
/* ========================================================= */

/* --- 1. Global & Variables --- */
.apus-single-listing-wrapper {
    /* Kellysearch Brand Palette */
    --ks-primary-blue: #005a87;
    --ks-primary-dark: #003e5c;
    --ks-secondary-blue: #eaf4fc;
    --ks-accent-blue: #3a6a8a;
    --ks-text-dark: #2d3748;
    --ks-text-medium: #4a5568;
    --ks-text-light: #718096;
    --ks-border-color: #dee2e6;
    --ks-background-light: #f8f9fa;
    --ks-background-white: #ffffff;
    --ks-success-green: #2f855a;
    --ks-success-green-bg: #c6f6d5;
	--ks-rating-gold: #ffb400; 
    
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- 2. Breadcrumbs --- */
/*.breadcrumb-container {
    margin-bottom: 25px;
    padding: 12px 20px;
    background-color: var(--ks-background-white);
    border: 1px solid var(--ks-border-color);
    border-radius: 8px;
    font-size: 14px;
}*/

/* --- 3. Provider Summary Card --- */
.provider-summary-card {
    background-color: var(--ks-background-white);
    border: 1px solid var(--ks-border-color);
    border-radius: 12px;
    margin-bottom: 35px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.provider-summary-grid-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--ks-border-color);
}
/* --- (Additions for Rating) --- */

.provider-summary-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.rating-stars {
    display: inline-flex;
    color: var(--ks-rating-gold);
}

.rating-stars .dashicons {
    font-size: 20px;
    line-height: 1; /* Ensures consistent vertical alignment */
}

/* Use a slightly different color for empty stars for better contrast */
.rating-stars .dashicons-star-empty {
    color: #dcdcdc;
}

.rating-reviews {
    font-size: 14px;
    font-weight: 500;
    color: var(--ks-text-medium);
    position: relative;
    top: 1px; /* Small adjustment for perfect alignment with stars */
}
.provider-summary-identity { display: flex; align-items: center; gap: 20px; flex-grow: 1; }
.provider-summary-avatar img { border-radius: 50%; width: 90px; height: 90px; border: 3px solid var(--ks-background-white); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
h1.provider-summary-name { font-size: 2.5rem !important; font-weight: 700 !important; color: var(--ks-text-dark) !important; margin: 0 0 4px 0 !important; }
h2.provider-summary-specialty { font-size: 2rem !important; margin: 0 !important; color: var(--ks-text-medium) !important; font-weight: 500 !important; }
h2.provider-summary-specialty strong { color: var(--ks-text-dark); }
.provider-summary-actions-wrapper { flex-shrink: 0; }
.provider-summary-actions { display: flex; gap: 12px; }
.button-action { display: inline-block; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px; transition: all 0.2s ease; border: 1px solid transparent; text-align: center; }
.button-action.primary { background-color: var(--ks-primary-blue); color: #fff; border-color: var(--ks-primary-blue); }
.button-action.primary:hover { background-color: var(--ks-primary-dark); border-color: var(--ks-primary-dark); }
.button-action.secondary { background-color: var(--ks-background-white); color: var(--ks-text-dark); border-color: var(--ks-border-color); }
.button-action.secondary:hover { background-color: var(--ks-background-light); border-color: #cbd5e0; }

.summary-card-excerpt { padding: 20px 5px; font-size: 1.5rem; color: var(--ks-text-medium); line-height: 1.6; border-bottom: 1px solid var(--ks-border-color); }
.summary-card-excerpt a.read-more-link { font-weight: 600; color: var(--ks-primary-blue); text-decoration: none; }
.summary-card-excerpt a.read-more-link:hover { text-decoration: underline; }

.provider-summary-key-info { display: flex; flex-wrap: wrap; gap: 10px; padding: 25px 0; border-bottom: 1px solid var(--ks-border-color); }
.info-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 20px; font-size: 14px; font-weight: 500; background-color: var(--ks-background-light); color: var(--ks-text-medium); border: 1px solid #e2e8f0; }
.info-tag .dashicons { font-size: 18px; color: var(--ks-accent-blue); }
.info-tag.verified { background-color: var(--ks-success-green-bg); color: var(--ks-success-green); border-color: #9ae6b4; }
.info-tag.verified .dashicons { color: var(--ks-success-green); }

.provider-summary-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px 30px; padding-top: 25px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; line-height: 1.6; }
.contact-item .dashicons { font-size: 24px; color: var(--ks-primary-blue); margin-top: 4px; }
.contact-item strong { display: block; margin-bottom: 3px; font-weight: 600; color: var(--ks-text-dark); font-size: 15px; }
.contact-item a { text-decoration: none; color: var(--ks-primary-blue); font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }

/* --- 4. Main Accordion Container --- */
.professional-profile-container { background-color: var(--ks-background-white); border: 1px solid var(--ks-border-color); border-radius: 12px; padding: 0 30px; }
.professional-profile-container .widget-title { display: none; }
.profile-accordion { border-bottom: 1px solid var(--ks-border-color); }
.profile-accordion:last-child { border-bottom: none; }
.accordion-toggle { display: none; }
.profile-section-title { display: flex; align-items: center; justify-content: space-between; padding: 25px 0; cursor: pointer; transition: background-color 0.2s ease; }
.profile-section-title:hover .accordion-h2-title { color: var(--ks-primary-blue); }
.accordion-h2-title { display: flex; align-items: center; justify-content: space-between; font-size: 2rem; font-weight: 600; color: var(--ks-text-dark); margin: 0; padding: 0; width: 100%; transition: color 0.2s ease; }
.accordion-h2-title .dashicons { color: var(--ks-primary-blue); font-size: 24px; margin-right: 15px; }
.accordion-icon { display: inline-block; width: 14px; height: 14px; position: relative; transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); flex-shrink: 0; }
.accordion-icon::before, .accordion-icon::after { content: ""; position: absolute; background-color: var(--ks-text-light); transition: background-color 0.2s ease; }
.profile-section-title:hover .accordion-icon::before, .profile-section-title:hover .accordion-icon::after { background-color: var(--ks-primary-blue); }
.accordion-icon::before { top: 50%; left: 0; width: 100%; height: 3px; transform: translateY(-50%); border-radius: 2px;}
.accordion-icon::after { top: 0; left: 50%; width: 3px; height: 100%; transform: translateX(-50%); border-radius: 2px;}
.accordion-toggle:checked ~ .profile-section-title .accordion-icon { transform: rotate(135deg); }

.profile-accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out; padding: 0 15px; color: var(--ks-text-medium); font-size: 1.5rem; line-height: 1.7; }
.accordion-toggle:checked ~ .profile-accordion-content { max-height: 5000px; padding: 15px 15px 30px 15px; transition: max-height 0.5s ease-in, padding 0.5s ease-in; }

/* --- 5. Styled Content Inside Accordion Panels --- */
.profile-accordion-content p { margin-bottom: 1.5em; }
.profile-accordion-content ul { list-style: none; padding-left: 0; margin: 1.5em 0; }
.profile-accordion-content .content-section ul li { background-color: var(--ks-background-light); border-left: 4px solid var(--ks-accent-blue); border-radius: 0 6px 6px 0; padding: 15px 20px; margin-bottom: 12px; }
.profile-accordion-content .content-section ul li strong { display: block; color: var(--ks-text-dark); font-weight: 600; margin-bottom: 5px; }

/* Special Summary Box (for "Approach to Care") */
.care-summary { background-color: var(--ks-secondary-blue); border-left: 5px solid var(--ks-primary-blue); padding: 20px 25px; margin: 25px 0; font-style: italic; font-size: 1.05em; border-radius: 0 8px 8px 0; }
.care-summary p { margin-bottom: 0; }

/* Disclaimers */
.conditions-disclaimer, .services-disclaimer { display: block; background-color: var(--ks-background-light); border-left: 3px solid #cbd5e0; padding: 15px 20px; margin: 25px 0 15px 0; font-size: 14px; color: var(--ks-text-medium); border-radius: 0 4px 4px 0; line-height: 1.6; }

/* FAQ Specific Styles */
.profile-accordion-content .faq-section dl { margin-top: 1.5em; padding-left: 5px; }
.profile-accordion-content .faq-section dt { font-weight: 600; color: var(--ks-text-dark); margin-bottom: 10px; position: relative; padding-left: 35px; font-size: 17px; line-height: 1.4; }
.profile-accordion-content .faq-section dt::before { content: "Q."; position: absolute; left: 0; top: 1px; font-size: 16px; font-weight: 700; color: var(--ks-primary-blue); }
.profile-accordion-content .faq-section dd { margin-left: 35px; margin-bottom: 30px; padding-left: 20px; border-left: 3px solid var(--ks-border-color); line-height: 1.7; }
.profile-accordion-content .faq-section dd:last-of-type { margin-bottom: 0; }

/* Insurance Section Styles */
.insurance-container h3 { font-size: 1.1rem; color: var(--ks-text-dark); margin-top: 20px; margin-bottom: 10px; }
.insurance-list-simple { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.insurance-list-simple li { padding: 10px; background-color: transparent; border: none; }
.insurance-list-simple .dashicons { color: var(--ks-success-green); }

/* --- 6. Responsive Adjustments --- */
@media (max-width: 768px) {
    .provider-summary-grid-top, .provider-summary-identity { flex-direction: column; align-items: center; text-align: center; }
    .provider-summary-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
    h1.provider-summary-name { font-size: 1.75rem !important; }
    h2.provider-summary-specialty { font-size: 1.1rem !important; }
    .professional-profile-container { padding: 0 15px; }
}

/* --- Map Container --- */
/* --- Fix CLS from Google Maps Iframe --- */
.map-container-responsive {
  width: 100%;
  background-color: #e0e0e0; /* Good fallback while map loads */
  border-radius: 6px; /* Optional: match your site's styling */
  overflow: hidden; /* Keeps the iframe corners rounded */
}

.map-container-responsive iframe {
  display: block; /* Removes any default bottom margin */
  width: 100%;
  border: 0;
  /* The magic property for CLS. Adjust if your map isn't a 4:3 ratio. */
  aspect-ratio: 4 / 3; 
}