/*
=================================================================
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;
}

/* ==========================================================================
   State Columns Container Widget (Homepage - Find by State & City)
   ========================================================================== */

/* Main container for the entire "Find by State & City" section */
.state-columns-container {
  max-width: 1200px; 
  margin: 3rem auto 4rem; 
  padding: 0 20px; 
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif);
  text-align: center; 
}

/* Heading for the State Columns section - Styled like Testimonials Heading */
.state-columns-heading {
    color: var(--text-color-dark, #2c3e50);
    font-size: 2rem;
    font-weight: 600;
    text-align: center; 
    margin: 0 auto 3rem; 
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--border-color-light, #e0e6ed);
    display: inline-block; 
    position: relative; 
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}
/* Remove left/transform if text-align:center on parent is enough */
/* .state-columns-heading {
    left: 50%;
    transform: translateX(-50%); 
} */

.state-columns-heading:hover {
    color: var(--theme-primary-color, #3498db);
    border-bottom-color: var(--theme-primary-color, #3498db);
}

/* Grid container for all state columns */
.state-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 25px; 
  justify-content: flex-start; 
  text-align: left; 
}

/* Individual column holding multiple state groups */
.state-column {
  flex: 1 1 calc(33.333% - 17px); /* Adjusted for 25px gap: (25px * 2/3) */
  min-width: 270px; /* Increased min-width slightly */
}

/* A group for a single state's heading and its city list */
.state-group {
  margin-bottom: 30px; 
}
.state-group:last-child {
    margin-bottom: 0; 
}

/* Heading for each state (e.g., "California") */
.state-name-heading {
  font-size: 1.5em; /* INCREASED from 1.25em / 1.4em */
  font-weight: 600;
  margin-bottom: 14px; /* INCREASED from 12px */
  border-bottom: 1px solid var(--border-color-medium, #cbd5e0); 
  padding-bottom: 10px; /* INCREASED from 8px */
}
.state-name-heading a {
  text-decoration: none;
  color: var(--theme-primary-color, #005691);
}
.state-name-heading a:hover {
  text-decoration: underline;
  color: var(--theme-primary-hover, #004080);
}

/* List of cities under each state heading */
.city-list-under-state {
  list-style-type: none;
  padding-left: 0;
  margin-top: 0;
}

.city-list-under-state li {
  margin-bottom: 12px; /* INCREASED from 10px for better spacing */
  font-size: 1.4rem; /* INCREASED from 0.95rem / 0.9em */
}
.city-list-under-state li:last-child {
    margin-bottom: 0;
}

.city-list-under-state li a {
  text-decoration: none;
  color: var(--text-color-medium, #4a5568);
  display: inline-block; 
  padding: 2px 0; 
}
.city-list-under-state li a:hover {
  color: var(--theme-accent-color, #1c6969);
  text-decoration: underline;
}

/* "View All [State] Cities..." link */
.view-all-state-cities {
    display: inline-block; 
    margin-top: 14px; /* INCREASED */
    font-weight: 700; 
    font-size: 1.5rem; /* INCREASED */
    color: var(--theme-secondary-color, #2b6cb0);
}
.view-all-state-cities:hover {
    color: var(--theme-secondary-hover, #1a4b8c);
}

/* CSS for initially hidden state columns (for "View All States" button) */
.state-column.hidden-state-column {
  display: none;
}
.state-list-grid.expanded .state-column.hidden-state-column {
  display: flex; 
  flex-direction: column; 
}

/* General Show More/Less Button Styles (from your provided CSS) */
.show-more-container { /* This class wraps your button */
    text-align: center;
    margin-top: 1.5rem; /* This is from your .show-more-container */
}

.show-more-button, 
.view-all-states-button.button { /* Apply to both general and specific state button */
    background: var(--bg-light, #f8fafc); /* Using variables */
    color: var(--theme-secondary-color, #2b6cb0);
    border: 1px solid var(--border-color-light, #e0e6ed);
    border-radius: var(--border-radius-sm, 4px);
    padding: 10px 20px; /* INCREASED from 8px 16px for better click target */
    font-size: 1.5rem;  /* INCREASED from 14px (approx 0.875rem) */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex; /* if you want icons inside later */
    align-items: center;
    gap: 8px;
}

.show-more-button:hover,
.view-all-states-button.button:hover {
    background: var(--bg-medium, #ebf4ff);
    border-color: var(--theme-primary-color, #3498db); /* Match example hover */
    color: var(--theme-primary-color, #3498db); /* Match example hover */
}

/* Container for the "View All States & Cities" button */
.view-all-states-container { /* This specifically wraps the main toggle button */
    text-align: center;
    margin-top: 30px; 
    padding-top: 20px; 
    border-top: 1px solid var(--border-color-light); 
}
/* The .view-all-states-button.button selector above will style the button itself */


/* Responsive Adjustments for State Columns Widget */
@media (max-width: 1024px) {
    .state-column {
        flex-basis: calc(50% - 12.5px); 
        min-width: 250px; /* Adjusted */
    }
    .state-columns-heading { /* Match testimonials heading if it also reduces */
        font-size: 1.8rem; 
        margin-bottom: 2.5rem;
    }
    .state-name-heading {
        font-size: 1.25em; /* Adjust tablet heading */
    }
    .city-list-under-state li {
        font-size: 0.95rem; /* Adjust tablet city font */
    }
}

@media (max-width: 768px) {
    .state-columns-container {
        margin-top: 2rem;
        margin-bottom: 3rem;
    }
    .state-list-grid {
        gap: 20px;
    }
    .state-column {
        flex-basis: calc(50% - 10px); 
        min-width: unset; 
    }
    .state-name-heading {
        font-size: 1.2em; /* Further adjust mobile heading */
    }
    .city-list-under-state li {
        font-size: 0.9rem; /* Further adjust mobile city font */
    }
    .show-more-button, .view-all-states-button.button {
        padding: 8px 16px; /* Revert to original button padding on smaller screens */
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) { 
    .state-column {
        flex-basis: 100%; 
    }
    .state-columns-heading {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
     .state-name-heading {
        font-size: 1.15em; 
    }
    .city-list-under-state li {
        font-size: 0.875rem; /* ~14px */
    }
}

/* 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;
    }
}
/* ============================================ */
/* ACCORDION HEADER STYLING */
/* ============================================ */

.accordion-header {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px 50px 16px 20px;
    margin-bottom: 8px;
    font-size: 18px; /* H2 size */
    font-weight: 500;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.accordion-header:hover {
    background-color: #ebf4ff;
    border-color: #c3dafe;
}

.accordion-header.active {
    background-color: #2b6cb0;
    color: white;
    border-color: #2b6cb0;
}

/* Arrow styling */
.accordion-header::after {
    content: '\25BC';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: inherit;
    transition: all 0.3s ease;
}

.accordion-header.active::after {
    transform: translateY(-50%) rotate(180deg);
    color: white;
}

/* ============================================ */
/* HEADING TYPOGRAPHY */
/* ============================================ */

/* H2 headings in accordion headers */
.accordion-header h2 {
    font-size: 18px !important;
    margin: 0;
    color: inherit;
    font-weight: inherit;
}

/* H3 headings in content */
.accordion-content h3 {
    font-size: 14px !important;
    margin: 15px 0 10px 0 !important;
    color: #2b6cb0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================ */
/* ACCORDION CONTENT STYLING */
/* ============================================ */

.accordion-content {
    padding: 20px;
    font-size: 15px;
    line-height: 1.6;
    background: white;
    border-radius: 0 0 6px 6px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-top: none;
}

/* ============================================ */
/* FAQ Section Styling (within #listing-description) */
/* ============================================ */

/* Target the accordion content specifically for the FAQ section.
   This assumes your "Frequently Asked Questions..." H2 is unique enough,
   or you can add a specific class to its .accordion-content if needed.
   For now, we'll style all dl/dt/dd within any .accordion-content,
   but you might want to make the selector more specific if dl lists are used elsewhere.
   A good way is to add a class to the FAQ accordion-content div itself.
   e.g., <div class="accordion-content faq-section-content">
*/

#listing-description .accordion-content dl {
    margin-top: 1em; /* Space above the start of the Q&A list */
    margin-bottom: 1em;
    padding-left: 0; /* Reset browser default for dl */
}

#listing-description .accordion-content dt { /* Question */
    font-weight: 600; /* Bolder for question */
    color: var(--text-color-dark); /* Defined in your :root */
    font-size: 1.05em; /* Slightly larger than answer text */
    margin-top: 1.8em; /* More space above each new question */
    margin-bottom: 0.6em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid var(--border-color-light); /* Subtle separator */
    display: flex; /* Allows for icon alignment */
    align-items: flex-start; 
    line-height: 1.4; /* Adjust for better spacing if question wraps */
}

#listing-description .accordion-content dt:first-child {
    margin-top: 0.5em; /* Less top margin for the very first question */
}

#listing-description .accordion-content dt::before { /* Optional: Question Icon */
    content: "\f223"; /* Dashicon for 'help' or 'editor-help' */
    font-family: "dashicons";
    margin-right: 0.6em;
    color: var(--theme-accent-color); /* Use your defined accent color */
    font-size: 1.2em; /* Relative to dt font size */
    flex-shrink: 0; /* Prevent icon from shrinking */
    position: relative;
    top: 0.05em; /* Fine-tune vertical alignment */
}

#listing-description .accordion-content dd { /* Answer */
    margin-left: 0; /* Reset browser default */
    padding-left: calc(1.2em + 0.6em); /* Indent to align with text after icon (icon_size + margin_right) */
    margin-bottom: 1.8em; /* Space after each answer */
    color: var(--text-color-medium);
    line-height: 1.7; /* Good readability for answers */
}

/* Remove default margins from paragraphs inside dd for cleaner spacing */
#listing-description .accordion-content dd p {
    margin-top: 0;
    margin-bottom: 0.75em; /* Space between paragraphs within an answer */
}
#listing-description .accordion-content dd p:last-child {
    margin-bottom: 0;
}

/* Styling for the introductory paragraph before the <dl> if it exists */
#listing-description .accordion-content > p:first-of-type {
    /* This targets the "Here are answers to some common questions..." paragraph */
    font-size: 1em; /* Or slightly larger if preferred */
    color: var(--text-color-medium);
    margin-bottom: 1.5em;
    padding-bottom: 0.75em;
    border-bottom: 1px dashed var(--border-color-light); /* Optional separator */
}

/* Make bold text within dd more prominent if needed */
#listing-description .accordion-content dd strong,
#listing-description .accordion-content dd b {
    color: var(--text-color-dark); /* Make it stand out a bit more */
    font-weight: 600;
}

/* ============================================ */
/* RESPONSIVE ADJUSTMENTS */
/* ============================================ */

@media (max-width: 768px) {
    .accordion-header {
        padding: 14px 40px 14px 15px;
        font-size: 16px;
    }
    
    .accordion-header h2 {
        font-size: 16px !important;
    }
    
    .accordion-content h3 {
        font-size: 13px !important;
    }
}
/* Accordion Styles */
.profile-accordion {
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.profile-accordion:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.accordion-toggle {
    display: none;
}

/* Make Professional Details match other widget titles exactly */
.professional-profile-container .widget-title {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    padding-top: 10px;
}

/* Optional: If you want the icon styling to match too */
.professional-profile-container .widget-title .dashicons {
    color: #2b6cb0;
    font-size: 20px;
    background: #ebf4ff;
    padding: 6px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .professional-profile-container .widget-title {
        font-size: 16px;
    }
}

.profile-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    margin: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    transition: all 0.3s ease;
}

.profile-section-title:hover {
    color: #2b6cb0;
}

.profile-section-title .dashicons {
    color: #2b6cb0;
    font-size: 18px;
    margin-right: 10px;
}

.accordion-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    position: relative;
}

.accordion-icon:before,
.accordion-icon:after {
    content: "";
    position: absolute;
    background-color: #2b6cb0;
    transition: transform 0.3s ease;
}

.accordion-icon:before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.accordion-icon:after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.accordion-toggle:checked ~ .profile-section-title .accordion-icon:after {
    transform: translateX(-50%) rotate(90deg);
}

.profile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-toggle:checked ~ .profile-accordion-content {
    max-height: 2000px; /* Arbitrary large value */
    padding-bottom: 15px;
}

/* Maintain existing field styles */
.profile-fields-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.profile-field-label {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
    margin-bottom: 4px;
}

.profile-field-value {
    font-size: 15px;
    color: #2d3748;
    font-weight: 400;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-fields-list {
        grid-template-columns: 1fr;
    }
    
    .profile-section-title {
        font-size: 15px;
        padding: 12px 0;
    }
}

/* Default styles for larger screens */
.header-gallery-wrapper.header-top-job.style-white {
    height: 250px; /* Adjust the height as needed */
    overflow: hidden;
}

.header-gallery-wrapper.header-top-job.style-white .photo-item {
    height: 100%;
}

.header-gallery-wrapper.header-top-job.style-white .photo-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Media query for tablets */
@media (max-width: 1000px) {
    .header-gallery-wrapper.header-top-job.style-white {
        height: 420px; /* Adjust the height for tablets */
    }
}

/* Media query for tablets */
@media (max-width: 600px) {
    .header-gallery-wrapper.header-top-job.style-white {
        height: 500px; /* Adjust the height for tablets */
    }
}

/* Media query for mobile devices */
@media (max-width: 420px) {
    .header-gallery-wrapper.header-top-job.style-white {
        height: 600px; /* Adjust the height for mobile devices */
    }

    .header-gallery-wrapper.header-top-job.style-white .photo-item img {
        object-fit: contain; /* Ensure the entire image is visible */
    }

    /* Adjust other elements if necessary */
    .entry-header-content-inner {
        padding: 10px; /* Add padding to ensure content fits */
    }

    .entry-title {
        font-size: 24px; /* Adjust font size for mobile */
    }

    .listing-tagline {
        font-size: 16px; /* Adjust font size for mobile */
    }
}