/* ======================================
   TABLE OF CONTENTS:
   
   1. Common Utility Classes
   2. Layout Components
   3. Header & Navigation
   4. Cards & Content Containers
   5. Buttons & Interactive Elements
   6. Featured Images & Media
   7. Section Styles
   8. Blog Styles
   9. Service Styles
   10. Testimonials
   11. Contact Styles
   12. Widgets & Sidebars
   13. Comments
   14. Forms
   15. Pagination
   16. WordPress Block Editor Content Styles
   17. Back to Top Button
   18. About Page Styles
   19. Responsive Styles
====================================== */

/* ======================================
   1. Common Utility Classes
====================================== */
.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-grow {
  flex-grow: 1;
}

.gap-sm {
  gap: 15px;
}

.gap-md {
  gap: 30px;
}

.gap-lg {
  gap: 50px;
}

.mb-sm {
  margin-bottom: 15px;
}

.mb-md {
  margin-bottom: 30px;
}

.mb-lg {
  margin-bottom: 50px;
}

.mt-sm {
  margin-top: 15px;
}

.mt-md {
  margin-top: 30px;
}

.mt-lg {
  margin-top: 50px;
}

/* ======================================
   2. Layout Components
====================================== */
/* Grid Layouts */
.grid {
  display: grid;
}

.grid-2-cols {
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3-cols {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-auto-fill {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* Content Wrappers */
.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.section-padding {
  padding: 80px 0;
}

/* Layout with Sidebar */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin: 60px 0;
}

/* Full width layout (no sidebar) */
.full-width {
  width: 100%;
  max-width: 100%;
}

/* When sidebar is present */
.has-sidebar .site-main {
  width: 70%;
  float: left;
  padding-right: 30px;
}

.has-sidebar .site-sidebar {
  width: 30%;
  float: right;
}

/* Clear floats */
.has-sidebar:after {
  content: "";
  display: table;
  clear: both;
}

/* Fix spacing between content and footer */
.site-main {
  margin-bottom: 80px; /* Add significant space before footer */
}

/* Ensure consistent spacing on all page types */
.page .site-main,
.single .site-main,
.archive .site-main {
  margin-bottom: 80px;
}

/* ======================================
   3. Header & Navigation
====================================== */

/* Header layout */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  position: relative;
}

/* Logo Styling */
.site-header .custom-logo-link img {
  max-height: 50px;
  width: auto;
  transition: max-height 0.3s ease;
}

.site-header.sticky .custom-logo-link img {
  max-height: 40px;
}

.site-branding {
  display: flex;
  align-items: center;
}

.custom-logo-link {
  display: inline-block;
  line-height: 0;
}

/* Site Title & Description */
.site-branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-title {
  margin-bottom: 0;
  line-height: 1.2;
}

.site-description {
  margin-top: 5px;
  margin-bottom: 0;
  font-size: 0.85em;
  opacity: 0.8;
}

.site-branding.has-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.site-branding.has-logo .logo-text-wrapper {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
}

/* Navigation Styles */
.main-navigation {
  position: relative;
}

/* Mobile menu styles */
.main-navigation > ul {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: 250px;
  max-width: calc(100vw - 40px); /* Prevent overflow */
  background-color: var(--background, #fff);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  z-index: 1000;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  /* Ensure menu stays within viewport */
  transform: translateX(0);
}

/* Adjust menu position if it would overflow */
@media (max-width: 320px) {
  .main-navigation > ul {
    right: -20px; /* Pull it back into view on very small screens */
    width: 220px;
  }
}

.main-navigation.toggled > ul {
  display: block;
}

.main-navigation li {
  border-bottom: none;
  margin: 0;
}

/* Safety: ensure no list-markers are shown for navigation items */
.main-navigation li,
.main-navigation ul li,
.main-navigation .sub-menu li {
  list-style: none !important;
  padding-left: 0 !important;
}

.main-navigation li::marker,
.main-navigation .sub-menu li::marker {
  display: none !important;
}

.main-navigation a {
  display: block;
  padding: 12px 20px;
  color: var(--text-color, #333);
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 4px;
  margin: 2px 10px;
  white-space: nowrap; /* Prevent text wrapping */
  overflow: hidden;
  text-overflow: ellipsis; /* Add ellipsis for very long menu items */
}

.main-navigation a:hover,
.main-navigation a:focus {
  background-color: var(--primary-color, #4a6cf7);
  color: white;
}

/* Menu Toggle Icon */
.menu-toggle {
  width: 24px;
  height: 20px;
  position: relative;
  margin: 0;
  transform: rotate(0deg);
  transition: .5s ease-in-out;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  z-index: 1001;
}

/* Remove blue hover highlight on mobile menu button and keep an accessible focus outline */
.menu-toggle,
.menu-toggle:active,
.menu-toggle:hover,
.menu-toggle:focus {
  background-color: transparent !important;
  box-shadow: none !important;
}

.menu-toggle:focus-visible {
  outline: 2px solid rgba(37,99,235,0.18); /* subtle accessible ring */
  outline-offset: 2px;
}

/* Prevent mobile browser tap highlight */
.menu-toggle, .menu-toggle * {
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle-icon,
.menu-toggle-icon:before,
.menu-toggle-icon:after {
  display: block;
  position: absolute;
  height: 2px;
  width: 18px;
  background: var(--text-color);
  border-radius: 3px;
  opacity: 1;
  left: 3px;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.menu-toggle-icon {
  top: 50%;
  margin-top: -1px;
}

.menu-toggle-icon:before,
.menu-toggle-icon:after {
  content: '';
  width: 18px;
  left: 0;
}

.menu-toggle-icon:before {
  top: -8px;
}

.menu-toggle-icon:after {
  bottom: -8px;
}

/* Menu toggle animation when active */
.menu-toggle.toggled {
  background: transparent;
}

.menu-toggle.toggled .menu-toggle-icon {
  transform: rotate(45deg);
  background: var(--text-color);
}

.menu-toggle.toggled .menu-toggle-icon:before {
  top: 0;
  transform: rotate(90deg);
  background: var(--text-color);
}

.menu-toggle.toggled .menu-toggle-icon:after {
  bottom: 0;
  transform: rotate(90deg);
  opacity: 0;
}

/* Dropdown menu support */
.main-navigation .menu-item-has-children > a:after,
.main-navigation .page_item_has_children > a:after {
  content: '▼';
  font-size: 0.8em;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.main-navigation .menu-item-has-children.focus > a:after,
.main-navigation .page_item_has_children.focus > a:after {
  transform: rotate(180deg);
}

/* Submenu styles for mobile */
.main-navigation ul ul {
  position: static;
  list-style: none; /* no bullets on nested lists */
  margin: 0;
  padding-left: 0;
  box-shadow: none;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  margin: 5px 10px;
  padding: 5px 0;
  width: auto;
  max-width: none;
  border: none;
  display: none;
  transform: none;
}

.main-navigation .menu-item-has-children.focus > ul,
.main-navigation .page_item_has_children.focus > ul {
  display: block;
}

  /* Ensure nested submenus don't show bullets and hover remains readable */
  .main-navigation ul ul,
  .main-navigation ul ul ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
  }

  .main-navigation ul ul a:hover,
  .main-navigation ul ul a:focus {
    background-color: var(--primary-color, #4a6cf7);
    color: var(--light-text, #fff);
  }

.main-navigation ul ul a {
  margin: 2px 5px;
  padding: 8px 15px;
  font-size: 0.9em;
}

/* Desktop navigation styles */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
  
  .main-navigation > ul {
    display: flex !important;
    position: static;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
    width: auto;
    max-width: none;
    padding: 0;
    border: none;
    transform: none;
  }
  
  .main-navigation li {
    margin-left: 30px;
  }
  
  .main-navigation li:first-child {
    margin-left: 0;
  }
  
  .main-navigation a {
    padding: 10px 0;
    background-color: transparent;
    margin: 0;
    border-radius: 0;
    font-weight: 500;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  
  .main-navigation a:hover,
  .main-navigation a:focus {
    background-color: transparent;
    color: var(--primary-color, #4a6cf7);
  }
  
  /* Desktop submenu styles */
  .main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    /* remove top margin so there's no pointer gap between parent and submenu */
    margin: 0;
    padding: 10px 0;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  /* Flip submenu to the left when needed (added to prevent overflow on right edge) */
  .main-navigation li.open-left > ul {
    left: auto;
    right: 0;
  }
  
  .main-navigation ul ul a {
    padding: 10px 20px;
    margin: 2px 10px;
    border-radius: 4px;
    font-size: 0.95em;
  }
  
  .main-navigation ul ul a:hover {
    background-color: var(--primary-color, #4a6cf7);
    color: white;
  }
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }
  
  /* Site branding adjustments for mobile */
  .site-title,
  .site-description {
    display: none;
  }
  
  .site-branding .custom-logo-link {
    display: block;
  }
  
  .site-branding .logo-text-wrapper {
    display: none;
  }
}

/* Very small screens - make menu full width with margins */
@media (max-width: 360px) {
  .main-navigation > ul {
    left: 10px;
    right: 10px;
    width: auto;
  }
}

/* Add this around line 500, in the Section Styles area */

/* Hero Section */
.hero-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-color, #4a6cf7) 0%, var(--secondary-color, #3a56c4) 100%);
  color: var(--light-text, #fff);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--light-text, #fff);
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.95;
  line-height: 1.6;
  color: var(--light-text, #fff);
}

.hero-button {
  display: inline-block;
  background-color: var(--light-text, #fff);
  color: var(--primary-color, #4a6cf7);
  padding: 15px 35px;
  border-radius: var(--border-radius, 4px);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-button:hover {
  background-color: var(--background, #f8f9fa);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  color: var(--primary-color, #4a6cf7);
}

/* Responsive hero styles */
@media (max-width: 768px) {
  .hero-section {
    padding: 80px 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
}


/* ======================================
   4. Cards & Content Containers
====================================== */
/* Base Card Style */
.card {
  background-color: var(--background, #fff);
  border-radius: var(--border-radius, 8px);
  overflow: hidden;
  box-shadow: var(--box-shadow, 0 4px 6px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-image {
  position: relative;
  height: 0;
  padding-bottom: 60%;
  overflow: hidden;
}

.card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--heading-color, #333);
  line-height: 1.4;
}

.card-text {
  color: var(--text-color, #666);
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

/* Page Headers */
.page-header {
  background-color: var(--primary-color, #4a6cf7);
  color: white;
  padding: 80px 0;
  text-align: center;
  margin-bottom: 60px;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ======================================
   5. Buttons & Interactive Elements
====================================== */
/* Primary Button */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius, 4px);
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--primary-color, #4a6cf7);
  color: var(--light-text, #fff);
}

.btn-primary:hover {
  background-color: var(--secondary-color, #3a56c4);
  color: var(--light-text, #fff);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-light {
  background-color: var(--light-text, #fff);
  color: var(--primary-color, #4a6cf7);
}

.btn-light:hover {
  background-color: var(--background, #f8f9fa);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Specific Button Styles */
.about-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 500;
  margin-top: 20px;
  transition: var(--transition);
}

.about-button:hover {
  background-color: var(--secondary-color);
  color: var(--light-text);
  transform: translateY(-2px);
}

.cta-button {
  display: inline-block;
  background-color: var(--light-text);
  color: var(--primary-color);
  padding: 14px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

.cta-button:hover {
  background-color: var(--background);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.blog-view-all {
  display: inline-block;
  background-color: var(--primary-color, #4a6cf7);
  color: white;
  padding: 12px 30px;
  border-radius: var(--border-radius, 4px);
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.blog-view-all:hover {
  background-color: var(--secondary-color, #3a56c4);
  transform: translateY(-2px);
  color: white;
}

.service-cta-button {
  display: inline-block;
  background-color: white;
  color: var(--primary-color, #4a6cf7);
  padding: 12px 25px;
  border-radius: var(--border-radius, 4px);
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.service-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Link Style */
.link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color, #4a6cf7);
  font-weight: 500;
  transition: color 0.3s ease;
}

.link:hover {
  color: var(--secondary-color, #3a56c4);
}

.link-with-arrow i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.link-with-arrow:hover i {
  transform: translateX(3px);
}

/* Category Badge */
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.badge-primary {
  background-color: var(--primary-color, #4a6cf7);
  color: white;
}

.badge-primary:hover {
  background-color: var(--secondary-color, #3a56c4);
}

.badge-light {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-color, #666);
}

.badge-light:hover {
  background-color: var(--primary-color, #4a6cf7);
  color: white;
}

/* ======================================
   6. Featured Images & Media
====================================== */
/* Standard Featured Image */
.standard-featured {
  margin-bottom: 50px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  height: 0;
  padding-bottom: 28%;
}

.standard-featured img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s ease;
}

.standard-featured:hover img {
  transform: scale(1.03);
}

/* Full-width Banner Image */
.page-featured-banner {
  position: relative;
  height: 0;
  padding-bottom: 20%;
  overflow: hidden;
  margin-bottom: 60px;
  margin-top: 40px; 
}

/* Hero Image with Title Overlay */
.page-hero {
  position: relative;
  height: 0;
  padding-bottom: 30%;
  min-height: 300px;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
}

.page-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Fix spacing between featured image and header */
.page-featured-image.standard-featured {
  margin-top: 40px; /* Add space between header and featured image */
  margin-bottom: 50px; /* Keep existing bottom margin */
}

.page-hero.featured-with-title {
  margin-top: 40px; /* Add space between header and hero image */
  margin-bottom: 60px; /* Keep existing bottom margin */
}

/* ======================================
   7. Section Styles
====================================== */
/* About Section */
.about-section {
  padding: 80px 0;
  background-color: var(--light-background);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

/* Call to Action Section */
.cta-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--light-text);
  text-align: center;
  margin-top: 80px; /* Space between content and CTA */
  margin-bottom: 80px; /* Space between CTA and footer */
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.cta-description {
  font-size: 1.125rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* ======================================
   8. Blog Styles
====================================== */
/* Blog Section */
.blog-section {
  padding: 80px 0;
  background-color: var(--background, #fff);
  color: var(--text-color, #333);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Blog Card (extends .card) */
.blog-card {
  background-color: var(--background, #fff);
  border-radius: var(--border-radius, 8px);
  overflow: hidden;
  box-shadow: var(--box-shadow, 0 4px 6px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-meta {
  display: flex;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 15px;
}

.blog-meta span {
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.blog-meta i {
  margin-right: 5px;
  color: var(--primary-color, #4a6cf7);
}

.blog-category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
}

.blog-category-badge a {
  display: inline-block;
  padding: 5px 12px;
  background-color: var(--primary-color, #4a6cf7);
  color: white;
  font-size: 0.8rem;
  border-radius: 20px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.blog-category-badge a:hover {
  background-color: var(--secondary-color, #3a56c4);
}

.blog-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--heading-color, #333);
  line-height: 1.4;
}

.blog-title a {
  color: var(--heading-color, #333);
  transition: color 0.3s ease;
}

.blog-title a:hover {
  color: var(--primary-color, #4a6cf7);
}

.blog-excerpt {
  color: var(--text-color, #666);
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color, #4a6cf7);
  font-weight: 500;
  transition: color 0.3s ease;
  margin-top: auto;
}

.blog-link:hover {
  color: var(--secondary-color, #3a56c4);
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color, #4a6cf7);
  font-weight: 500;
  transition: color 0.3s ease;
  margin-top: auto;
}

.blog-read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.blog-read-more:hover {
  color: var(--secondary-color, #3a56c4);
}

.blog-read-more:hover i {
  transform: translateX(3px);
}

.blog-action {
  text-align: center;
  margin-top: 50px;
}

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  background-color: var(--light-background, #f8f9fa);
  border-radius: var(--border-radius, 8px);
}

/* Blog Archive */
.blog-archive-header {
  background-color: var(--primary-color, #4a6cf7);
  color: white;
  padding: 80px 0;
  text-align: center;
  margin-bottom: 60px;
}

.archive-title {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.archive-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
  opacity: 0.9;
}

.blog-archive-wrapper {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 50px;
  margin-bottom: 80px;
}

.blog-filter {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-weight: 600;
  color: var(--heading-color, #333);
  margin-right: 5px;
}

.category-link {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 20px;
  background-color: #f0f0f0;
  color: var(--text-color, #666);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.category-link:hover, 
.category-link.active {
  background-color: var(--primary-color, #4a6cf7);
  color: white;
}

.blog-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 0;
}

/* Blog Detail */
.blog-detail-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin: 60px 0;
}

.blog-detail-image {
  margin-bottom: 30px;
  border-radius: var(--border-radius, 8px);
  overflow: hidden;
  box-shadow: var(--box-shadow, 0 5px 15px rgba(0, 0, 0, 0.1));
  position: relative;
  height: 0;
  padding-bottom: 35%; /* Adjust this percentage to control height */
}

.blog-detail-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.blog-detail-header {
  margin-bottom: 30px;
}

.blog-detail-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--heading-color, #333);
  line-height: 1.3;
}

.blog-detail-meta {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 20px;
}

.blog-detail-meta span {
  margin-right: 20px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.blog-detail-meta i {
  margin-right: 8px;
  color: var(--primary-color, #4a6cf7);
}

.blog-detail-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.blog-detail-tags {
  margin-bottom: 20px;
}

.blog-detail-tags a {
  display: inline-block;
  background-color: var(--light-background, #f8f9fa);
  padding: 5px 12px;
  border-radius: 20px;
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: var(--text-color, #666);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.blog-detail-tags a:hover {
  background-color: var(--primary-color, #4a6cf7);
  color: white;
}

.blog-detail-share {
  display: flex;
  align-items: center;
}

.blog-detail-share span {
  margin-right: 15px;
  font-weight: 500;
}

.blog-detail-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 10px;
  color: white;
  transition: transform 0.3s ease;
}

.blog-detail-share a:hover {
  transform: translateY(-3px);
}

.share-facebook {
  background-color: #3b5998;
}

.share-twitter {
  background-color: #1da1f2;
}

.share-linkedin {
  background-color: #0077b5;
}

.blog-detail-navigation {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.nav-previous,
.nav-next {
  max-width: 48%;
}

.nav-previous a,
.nav-next a {
  display: flex;
  align-items: center;
  color: var(--text-color, #666);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
  color: var(--primary-color, #4a6cf7);
}

.nav-previous i,
.nav-next i {
  margin: 0 8px;
}

/* No content found messages */
.no-posts-found,
.no-services-found {
  text-align: center;
  padding: 80px 0;
  background-color: #f8f9fa;
  border-radius: 10px;
}

.no-posts-icon,
.no-services-icon {
  font-size: 3rem;
  color: #d1d5db;
  margin-bottom: 20px;
}

.no-posts-found h2,
.no-services-found h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--heading-color, #333);
}

.no-posts-found p,
.no-services-found p {
  color: #6b7280;
  max-width: 500px;
  margin: 0 auto;
}

/* Responsive adjustments for blog detail image */
@media (max-width: 992px) {
  .blog-detail-image {
    padding-bottom: 40%;
  }
}

@media (max-width: 768px) {
  .blog-detail-image {
    padding-bottom: 45%;
  }
}

@media (max-width: 576px) {
  .blog-detail-image {
    padding-bottom: 50%;
  }
}
/* ======================================
   9. Service Styles
====================================== */
/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Service Card */
.service-card {
  background-color: var(--background, #fff);
  border-radius: var(--border-radius, 8px);
  overflow: hidden;
  box-shadow: var(--box-shadow, 0 4px 6px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-image {
  position: relative;
  height: 0;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
  border-radius: var(--border-radius, 8px) var(--border-radius, 8px) 0 0;
}

.service-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--heading-color, #333);
}

.service-description {
  color: var(--text-color, #666);
  margin-bottom: 15px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color, #4a6cf7);
  font-weight: 500;
  transition: color 0.3s ease;
  margin-top: auto;
}

.service-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.service-link:hover {
  color: var(--secondary-color, #3a56c4);
}

.service-link:hover i {
  transform: translateX(3px);
}

/* Service Detail */
.service-detail-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin: 60px 0;
}

.service-detail-image {
  margin-bottom: 30px;
  border-radius: var(--border-radius, 8px);
  overflow: hidden;
  box-shadow: var(--box-shadow, 0 5px 15px rgba(0, 0, 0, 0.1));
  position: relative;
  height: 0;
  padding-bottom: 28%;
}

.service-detail-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-position, center 30%);
}

.service-detail-header {
  margin-bottom: 30px;
}

.service-detail-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--heading-color, #333);
}

.service-detail-content {
  color: var(--text-color, #666);
  line-height: 1.8;
}

.service-detail-content h2,
.service-detail-content h3 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--heading-color, #333);
}

.service-detail-content p {
  margin-bottom: 20px;
}

.service-detail-content ul,
.service-detail-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.service-detail-content li {
  margin-bottom: 10px;
}

/* Service Features */
.service-features {
  margin: 40px 0;
  padding: 30px;
  background-color: var(--light-background, #f8f9fa);
  border-radius: var(--border-radius, 8px);
}

.service-features h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.service-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.feature-icon {
  color: var(--primary-color, #4a6cf7);
  margin-right: 15px;
  font-size: 1.25rem;
}

.feature-text {
  flex: 1;
}

/* Service Process */
.service-process {
  margin: 40px 0;
}

.service-process h3 {
  margin-bottom: 30px;
  font-size: 1.5rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.process-step {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--light-background, #f8f9fa);
  border-radius: var(--border-radius, 8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow, 0 10px 15px rgba(0, 0, 0, 0.1));
}

.process-step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color, #4a6cf7);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0 auto 15px;
}

.process-step h4 {
  margin-bottom: 10px;
  color: var(--heading-color, #333);
}

.process-step p {
  margin: 0;
  font-size: 0.95rem;
}

/* Service Archive */
.service-archive-header {
  background-color: var(--primary-color, #4a6cf7);
  color: white;
  padding: 80px 0;
  text-align: center;
  margin-bottom: 60px;
}

.services-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

/* Services Slider */
.services-slider-container {
  position: relative;
  margin: 40px 0;
  overflow: hidden;
}

.services-slider {
  display: flex;
  transition: transform 0.5s ease;
}

.service-slide {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Slider Navigation */
.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

/* Fix for slider buttons */
.slider-prev,
.slider-next {
  background: var(--primary-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 0; /* Reset padding */
  line-height: 1; /* Reset line height */
  font-size: 16px; /* Set base font size */
  text-decoration: none; /* Remove any text decoration */
  outline: none; /* Remove outline */
}

.slider-prev svg,
.slider-next svg {
  fill: white;
  width: 24px;
  height: 24px;
}

.slider-prev:hover,
.slider-next:hover {
  background-color: var(--secondary-color);
  color: white; /* Ensure text color remains white on hover */
}

.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 20px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.3);
}

/* Ensure icons display correctly */
.slider-prev i,
.slider-next i,
.slider-prev svg,
.slider-next svg {
  display: inline-block;
  width: 24px;
  height: 24px;
  fill: currentColor;
  color: white;
  line-height: 1;
  vertical-align: middle;
}

/* ======================================
   10. Testimonials
====================================== */
.testimonials-section {
  padding: 80px 0;
  background-color: var(--light-background);
  text-align: center;
}

.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  background-color: var(--background);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin: 20px 0;
}

.testimonial-content {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-content:before,
.testimonial-content:after {
  content: '"';
  font-size: 1.5rem;
  color: var(--primary-color);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.testimonial-author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author-info h4 {
  margin: 0;
  font-size: 1.125rem;
}

.testimonial-author-info p {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
}

/* ======================================
   11. Contact Styles
====================================== */
.contact-info-section {
  margin: 50px 0;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.contact-info-item {
  background-color: var(--light-background, #f8f9fa);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  font-size: 2rem;
  color: var(--primary-color, #4a6cf7);
  margin-bottom: 15px;
}

.contact-info-item h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.contact-info-item p {
  color: #666;
  margin: 0;
}

.contact-form-section {
  margin: 50px 0;
  background-color: var(--light-background, #f8f9fa);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-section h2 {
  text-align: center;
  margin-bottom: 30px;
}

/* ======================================
   12. Widgets & Sidebars
====================================== */
/* Sidebar Base */
.sidebar, .blog-sidebar {
  position: sticky;
  top: 30px;
}

.widget {
  margin-bottom: 40px;
  padding: 25px;
  background-color: var(--light-background, #f8f9fa);
  border-radius: var(--border-radius, 8px);
  box-shadow: var(--box-shadow, 0 5px 15px rgba(0, 0, 0, 0.05));
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color, #4a6cf7);
  color: var(--heading-color, #333);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.widget li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.widget a {
  color: var(--text-color, #666);
  transition: color 0.3s ease;
}

.widget a:hover {
  color: var(--primary-color, #4a6cf7);
}

/* Search Widget */
.search-form {
  display: flex;
}

.search-field {
  flex-grow: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: var(--border-radius, 4px) 0 0 var(--border-radius, 4px);
  font-family: inherit;
  font-size: 1rem
}

.search-submit {
  background-color: var(--primary-color, #4a6cf7);
  color: white;
  border: none;
  padding: 0 15px;
  border-radius: 0 var(--border-radius, 4px) var(--border-radius, 4px) 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-submit:hover {
  background-color: var(--secondary-color, #3a56c4);
}

/* Recent Posts Widget */
.widget_recent_entries li {
  display: flex;
  flex-direction: column;
}

.widget_recent_entries a {
  font-weight: 500;
  margin-bottom: 5px;
}

.post-date {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Categories Widget */
.widget_categories li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget_categories a {
  flex-grow: 1;
}

.widget_categories .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 25px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  font-size: 0.75rem;
  color: #6b7280;
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
}

.widget_tag_cloud a {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 5px 12px;
  border-radius: 20px;
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: 0.875rem !important;
  color: var(--text-color, #666);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.widget_tag_cloud a:hover {
  background-color: var(--primary-color, #4a6cf7);
  color: white;
}

/* Service CTA Widget */
.service-cta {
  text-align: center;
  background-color: var(--primary-color, #4a6cf7);
  color: white;
}

.service-cta .widget-title {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.service-cta p {
  margin-bottom: 20px;
  opacity: 0.9;
}

/* Other Services Widget */
.sidebar-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-service-item {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 15px;
}

.sidebar-service-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-service-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color, #666);
  transition: color 0.3s ease;
}

.sidebar-service-link:hover {
  color: var(--primary-color, #4a6cf7);
}

.sidebar-service-image {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius, 4px);
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
}

.sidebar-service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-service-content {
  flex: 1;
}

.sidebar-service-title {
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 500;
}

.sidebar-service-more {
  font-size: 0.875rem;
  color: var(--primary-color, #4a6cf7);
  font-weight: 500;
}

/* ======================================
   13. Comments
====================================== */
.comments-area {
  margin-top: 60px;
  margin-bottom: 60px; /* Add space after comments before footer */
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  margin-bottom: 30px;
}

.comment-body {
  padding: 20px;
  background-color: var(--light-background, #f8f9fa);
  border-radius: var(--border-radius, 8px);
}

.comment-meta {
  margin-bottom: 15px;
}

.comment-author {
  display: flex;
  align-items: center;
}

.comment-author .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.comment-author .fn {
  font-weight: 600;
  font-style: normal;
  color: var(--heading-color, #333);
}

.comment-metadata {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 5px;
}

.comment-metadata a {
  color: #6b7280;
}

.comment-content {
  margin-bottom: 15px;
  color: var(--text-color, #666);
  line-height: 1.6;
}

.reply {
  text-align: right;
}

.reply a {
  display: inline-block;
  padding: 5px 15px;
  background-color: #e9ecef;
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-color, #666);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.reply a:hover {
  background-color: var(--primary-color, #4a6cf7);
  color: white;
}

.comment-respond {
  margin-top: 40px;
}

.comment-reply-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* ======================================
   14. Forms
====================================== */
/* Base Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color, #333);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius, 4px);
  background-color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color, #4a6cf7);
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

button,
input[type="submit"] {
  background-color: var(--primary-color, #4a6cf7);
  color: #fff;
  border: none;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius, 4px);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-align: center;
}

button:hover,
input[type="submit"]:hover {
  background-color: var(--secondary-color, #3a56c4);
  transform: translateY(-2px);
}

/* Comment Form */
.comment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.comment-form-comment,
.comment-form-cookies-consent,
.form-submit {
  grid-column: 1 / -1;
}

/* Contact Form 7 */
.wpcf7-form {
  max-width: 800px;
  margin: 0 auto;
}

.cf7-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Response messages */
.wpcf7-response-output {
  margin: 30px 0 0 0 !important;
  padding: 15px !important;
  border-radius: var(--border-radius, 4px) !important;
  font-weight: 500;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba !important;
}

.wpcf7-mail-sent-ok {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb !important;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb !important;
}

.wpcf7-spam-blocked {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba !important;
}

/* Not valid tip */
.wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 5px;
}

.wpcf7-not-valid {
  border-color: #dc3545 !important;
}

/* Checkbox and radio styling */
.wpcf7-checkbox,
.wpcf7-radio {
  display: block;
  margin-bottom: 10px;
}

.wpcf7-list-item {
  display: block;
  margin: 0 0 8px 0;
}

.wpcf7-list-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.wpcf7-list-item input[type="checkbox"],
.wpcf7-list-item input[type="radio"] {
  margin-right: 10px;
}

/* ======================================
   15. Pagination
====================================== */
.pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background-color: #f0f0f0;
  color: var(--text-color, #666);
  font-weight: 500;
  transition: all 0.3s ease;
}

.page-numbers.current {
  background-color: var(--primary-color, #4a6cf7);
  color: white;
}

.page-numbers:hover:not(.current) {
  background-color: #e0e0e0;
}

.prev,
.next {
  width: auto;
  padding: 0 15px;
}

/* ======================================
   16. WordPress Block Editor Content Styles
====================================== */

/* Main content wrapper */
.entry-content,
.blog-detail-content {
  /* Ensure proper spacing and text flow */
  line-height: 1.8;
  color: var(--text-color, #333);
  margin-bottom: 60px; /* Add space after content */
  font-size: 1.1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Basic block elements */
.entry-content p,
.blog-detail-content p {
  margin-bottom: 1.5em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.blog-detail-content h1,
.blog-detail-content h2,
.blog-detail-content h3,
.blog-detail-content h4,
.blog-detail-content h5,
.blog-detail-content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  color: var(--heading-color, #222);
  line-height: 1.4;
}

.entry-content h1,
.blog-detail-content h1 {
  font-size: 2.5em;
}

.entry-content h2,
.blog-detail-content h2 {
  font-size: 2em;
}

.entry-content h3,
.blog-detail-content h3 {
  font-size: 1.75em;
}

.entry-content h4,
.blog-detail-content h4 {
  font-size: 1.5em;
}

.entry-content h5,
.blog-detail-content h5 {
  font-size: 1.25em;
}

.entry-content h6,
.blog-detail-content h6 {
  font-size: 1.1em;
}

/* Lists */
.entry-content ul,
.entry-content ol,
.blog-detail-content ul,
.blog-detail-content ol {
  margin: 0 0 1.5em 2em;
  padding-left: 1em;
}

.entry-content ul,
.blog-detail-content ul {
  list-style: disc;
}

.entry-content ol,
.blog-detail-content ol {
  list-style: decimal;
}

.entry-content li,
.blog-detail-content li {
  margin-bottom: 0.5em;
  position: relative;
  padding-left: 0.5em;
}

.entry-
content li > ul,
.entry-content li > ol,
.blog-detail-content li > ul,
.blog-detail-content li > ol {
  margin-top: 0.5em;
  margin-bottom: 0;
}

/* Custom list markers for better visibility */
.entry-content ul li::marker,
.blog-detail-content ul li::marker {
  color: var(--primary-color, #4a6cf7);
  font-weight: bold;
}

.entry-content ol li::marker,
.blog-detail-content ol li::marker {
  color: var(--primary-color, #4a6cf7);
  font-weight: bold;
}

/* Blockquote */
.entry-content blockquote,
.blog-detail-content blockquote {
  border-left: 4px solid var(--primary-color, #4a6cf7);
  padding: 0.5em 0 0.5em 1em;
  margin: 0 0 1.5em 0;
  font-style: italic;
  color: #555;
  background-color: rgba(0, 0, 0, 0.03);
}

.entry-content blockquote p:last-child,
.blog-detail-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content blockquote cite,
.blog-detail-content blockquote cite {
  display: block;
  font-size: 0.9em;
  margin-top: 0.5em;
  font-style: normal;
  opacity: 0.8;
}

/* Code blocks */
.entry-content pre,
.blog-detail-content pre {
  background-color: #f5f5f5;
  padding: 1.5em;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 1.5em;
  font-family: monospace;
  font-size: 0.9em;
  line-height: 1.6;
}

.entry-content code,
.blog-detail-content code {
  background-color: #f5f5f5;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
}

/* Tables */
.entry-content table,
.blog-detail-content table {
  width: 100%;
  margin-bottom: 1.5em;
  border-collapse: collapse;
}

.entry-content table th,
.entry-content table td,
.blog-detail-content table th,
.blog-detail-content table td {
  padding: 0.75em;
  border: 1px solid #ddd;
  text-align: left;
}

.entry-content table th,
.blog-detail-content table th {
  background-color: #f5f5f5;
  font-weight: bold;
}

.entry-content table tr:nth-child(even),
.blog-detail-content table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Images and captions */
.entry-content img,
.blog-detail-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em 0;
  border-radius: var(--border-radius, 5px);
}

.entry-content figure,
.blog-detail-content figure {
  margin: 1.5em 0;
}

.entry-content figcaption,
.blog-detail-content figcaption {
  font-size: 0.9em;
  color: #666;
  text-align: center;
  margin-top: 0.5em;
}

/* WordPress specific classes */
.entry-content .alignleft,
.blog-detail-content .alignleft {
  float: left;
  margin: 0.5em 1.5em 0.5em 0;
}

.entry-content .alignright,
.blog-detail-content .alignright {
  float: right;
  margin: 0.5em 0 0.5em 1.5em;
}

.entry-content .aligncenter,
.blog-detail-content .aligncenter {
  display: block;
  margin: 1.5em auto;
}

.entry-content .wp-caption,
.blog-detail-content .wp-caption {
  max-width: 100%;
  background-color: #f9f9f9;
  border-radius: var(--border-radius, 5px);
  padding: 10px;
  margin: 1.5em 0;
}

.entry-content .wp-caption-text,
.blog-detail-content .wp-caption-text {
  font-size: 0.9em;
  color: #666;
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* Gutenberg specific blocks */

/* Cover block */
.entry-content .wp-block-cover,
.blog-detail-content .wp-block-cover {
  margin: 1.5em 0;
  border-radius: var(--border-radius, 5px);
  overflow: hidden;
}

/* Button block */
.entry-content .wp-block-button,
.blog-detail-content .wp-block-button {
  margin: 1.5em 0;
}

.entry-content .wp-block-button__link,
.blog-detail-content .wp-block-button__link {
  background-color: var(--primary-color, #4a6cf7);
  color: white;
  padding: 0.6em 1.2em;
  border-radius: var(--border-radius, 5px);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.entry-content .wp-block-button__link:hover,
.blog-detail-content .wp-block-button__link:hover {
  background-color: var(--secondary-color, #3a56c4);
}

.entry-content .is-style-outline .wp-block-button__link,
.blog-detail-content .is-style-outline .wp-block-button__link {
  background-color: transparent;
  border: 2px solid var(--primary-color, #4a6cf7);
  color: var(--primary-color, #4a6cf7);
}

.entry-content .is-style-outline .wp-block-button__link:hover,
.blog-detail-content .is-style-outline .wp-block-button__link:hover {
  background-color: var(--primary-color, #4a6cf7);
  color: white;
}

/* Columns block */
.entry-content .wp-block-columns,
.blog-detail-content .wp-block-columns {
  margin: 1.5em 0;
  gap: 2em;
}

/* Group block */
.entry-content .wp-block-group,
.blog-detail-content .wp-block-group {
  margin: 1.5em 0;
}

.entry-content .wp-block-group.has-background,
.blog-detail-content .wp-block-group.has-background {
  padding: 1.5em;
  border-radius: var(--border-radius, 5px);
}

/* Quote block */
.entry-content .wp-block-quote,
.blog-detail-content .wp-block-quote {
  border-left: 4px solid var(--primary-color, #4a6cf7);
  padding: 1em 0 1em 1.5em;
  margin: 1.5em 0;
  font-style: italic;
}

.entry-content .wp-block-quote cite,
.blog-detail-content .wp-block-quote cite {
  display: block;
  font-style: normal;
  margin-top: 0.5em;
  font-size: 0.9em;
  opacity: 0.8;
}

/* Pullquote block */
.entry-content .wp-block-pullquote,
.blog-detail-content .wp-block-pullquote {
  border-top: 4px solid var(--primary-color, #4a6cf7);
  border-bottom: 4px solid var(--primary-color, #4a6cf7);
  padding: 1.5em 0;
  margin: 1.5em 0;
  text-align: center;
}

.entry-content .wp-block-pullquote blockquote,
.blog-detail-content .wp-block-pullquote blockquote {
  border-left: none;
  padding: 0;
  margin: 0;
  background-color: transparent;
}

/* File block */
.entry-content .wp-block-file,
.blog-detail-content .wp-block-file {
  margin: 1.5em 0;
  padding: 1em;
  background-color: #f5f5f5;
  border-radius: var(--border-radius, 5px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.entry-content .wp-block-file a:not(.wp-block-file__button),
.blog-detail-content .wp-block-file a:not(.wp-block-file__button) {
  text-decoration: none;
  color: var(--text-color, #333);
  font-weight: 500;
}

.entry-content .wp-block-file .wp-block-file__button,
.blog-detail-content .wp-block-file .wp-block-file__button {
  background-color: var(--primary-color, #4a6cf7);
  color: white;
  padding: 0.5em 1em;
  border-radius: var(--border-radius, 5px);
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.entry-content .wp-block-file .wp-block-file__button:hover,
.blog-detail-content .wp-block-file .wp-block-file__button:hover {
  background-color: var(--secondary-color, #3a56c4);
}

/* Media & Text block */
.entry-content .wp-block-media-text,
.blog-detail-content .wp-block-media-text {
  margin: 1.5em 0;
  grid-gap: 2em;
}

/* Separator block */
.entry-content .wp-block-separator,
.blog-detail-content .wp-block-separator {
  border-bottom: 2px solid #ddd;
  margin: 2em 0;
  width: 100%;
}

.entry-content .wp-block-separator.is-style-wide,
.blog-detail-content .wp-block-separator.is-style-wide {
  border-bottom-width: 1px;
}

.entry-content .wp-block-separator.is-style-dots,
.blog-detail-content .wp-block-separator.is-style-dots {
  border: none;
  text-align: center;
}

.entry-content .wp-block-separator.is-style-dots:before,
.blog-detail-content .wp-block-separator.is-style-dots:before {
  content: "···";
  letter-spacing: 2em;
  padding-left: 2em;
  font-family: serif;
  font-size: 1.5em;
  color: #666;
}

/* Gallery block */
.entry-content .wp-block-gallery,
.blog-detail-content .wp-block-gallery {
  margin: 1.5em 0;
}

.entry-content .blocks-gallery-grid,
.blog-detail-content .blocks-gallery-grid {
  padding-left: 0;
  margin-left: 0;
}

.entry-content .blocks-gallery-item,
.blog-detail-content .blocks-gallery-item {
  margin-bottom: 0;
}

.entry-content .blocks-gallery-item figure,
.blog-detail-content .blocks-gallery-item figure {
  margin: 0;
}

.entry-content .blocks-gallery-item img,
.blog-detail-content .blocks-gallery-item img {
  margin: 0;
}

/* Fix for WordPress auto-formatting issues */
.entry-content p:empty,
.blog-detail-content p:empty {
  display: none;
}

.entry-content br + br,
.blog-detail-content br + br {
  display: none;
}

/* Better spacing for adjacent elements */
.entry-content h1 + p,
.entry-content h2 + p,
.entry-content h3 + p,
.entry-content h4 + p,
.entry-content h5 + p,
.entry-content h6 + p,
.blog-detail-content h1 + p,
.blog-detail-content h2 + p,
.blog-detail-content h3 + p,
.blog-detail-content h4 + p,
.blog-detail-content h5 + p,
.blog-detail-content h6 + p {
  margin-top: 0.5em;
}

/* Ensure proper spacing in nested content */
.entry-content div,
.blog-detail-content div {
  margin-bottom: 1em;
}

.entry-content div:last-child,
.blog-detail-content div:last-child {
  margin-bottom: 0;
}

/* Fix for WordPress embeds */
.entry-content .wp-block-embed,
.blog-detail-content .wp-block-embed {
  margin: 1.5em 0;
}

.entry-content .wp-block-embed iframe,
.blog-detail-content .wp-block-embed iframe {
  max-width: 100%;
  border-radius: var(--border-radius, 5px);
}

/* Additional WordPress block styles */

/* Verse block */
.entry-content .wp-block-verse,
.blog-detail-content .wp-block-verse {
  background-color: #f9f9f9;
  border-left: 4px solid var(--primary-color, #4a6cf7);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  font-family: monospace;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* Preformatted block */
.entry-content .wp-block-preformatted,
.blog-detail-content .wp-block-preformatted {
  background-color: #f5f5f5;
  padding: 1.5em;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1.5em 0;
  font-family: monospace;
  font-size: 0.9em;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Audio block */
.entry-content .wp-block-audio,
.blog-detail-content .wp-block-audio {
  margin: 1.5em 0;
}

.entry-content .wp-block-audio audio,
.blog-detail-content .wp-block-audio audio {
  width: 100%;
  border-radius: var(--border-radius, 5px);
}

/* Video block */
.entry-content .wp-block-video,
.blog-detail-content .wp-block-video {
  margin:
 1.5em 0;
}

.entry-content .wp-block-video video,
.blog-detail-content .wp-block-video video {
  width: 100%;
  border-radius: var(--border-radius, 5px);
}

/* ======================================
   17. Back to Top Button
====================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color, #4a6cf7);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 999;
  border: none; /* Ensure no border */
  padding: 0; /* Reset padding */
  line-height: 1; /* Reset line height */
  text-decoration: none; /* Remove any text decoration */
  outline: none; /* Remove outline */
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-color, #3a56c4);
  transform: translateY(-5px);
  color: white; /* Ensure text color remains white on hover */
}

.back-to-top i,
.back-to-top svg {
  font-size: 24px;
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 1;
  vertical-align: middle;
}

/* ======================================
   18. About Page Styles
====================================== */
.page-about .entry-content {
  max-width: 1000px;
  margin: 0 auto;
}

/* Team Section */
.about-team-section {
  margin: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.2rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color, #4a6cf7);
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-member-card {
  background-color: var(--background, #fff);
  border-radius: var(--border-radius, 8px);
  overflow: hidden;
  box-shadow: var(--box-shadow, 0 4px 6px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-member-image {
  height: 250px;
  overflow: hidden;
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-member-card:hover .team-member-image img {
  transform: scale(1.05);
}

.team-member-info {
  padding: 25px;
}

.team-member-name {
  font-size: 1.25rem;
  margin-bottom: 5px;
  color: var(--heading-color, #333);
}

.team-member-position {
  color: var(--primary-color, #4a6cf7);
  font-size: 0.9rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.team-member-bio {
  color: var(--text-color, #666);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.team-member-social {
  display: flex;
  gap: 15px;
}

.team-member-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: var(--text-color, #666);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.team-member-social .social-link:hover {
  background-color: var(--primary-color, #4a6cf7);
  color: white;
  transform: translateY(-3px);
}

/* About Testimonials Section */
.about-testimonials-section {
  margin: 80px 0;
  padding: 60px 0;
  background-color: var(--light-background, #f8f9fa);
}

/* ======================================
   19. Responsive Styles
====================================== */
@media (max-width: 1200px) {
  .page-title,
  .service-detail-title,
  .blog-detail-title,
  .cta-title,
  .archive-title,
  .service-archive-header .archive-title {
    font-size: 2.5rem;
  }
  
  .page-description,
  .archive-description,
  .service-archive-header .archive-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 992px) {
  /* Layout adjustments */
  .layout-with-sidebar,
  .blog-detail-wrapper,
  .service-detail-wrapper,
  .blog-archive-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .sidebar,
  .blog-sidebar {
    order: 2;
  }
  
  .grid-3-cols,
  .team-members-grid,
  .services-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Section adjustments */
  .about-content {
    flex-direction: column;
  }
  
  .about-image {
    order: -1;
    margin-bottom: 30px;
  }
  
  /* Typography */
  .page-title,
  .service-detail-title,
  .blog-detail-title,
  .archive-title,
  .service-archive-header .archive-title {
    font-size: 2.2rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  /* Service specific */
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Featured images */
  .service-detail-image,
  .standard-featured {
    padding-bottom: 35%;
  }
  
  .page-featured-banner {
    padding-bottom: 25%;
  }
  
  .page-hero {
    padding-bottom: 40%;
    min-height: 250px;
  }
  
  /* Slider */
  .service-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  /* Has sidebar layout */
  .has-sidebar .site-main,
  .has-sidebar .site-sidebar {
    width: 100%;
    float: none;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  /* Section padding */
  .section-padding,
  .about-section,
  .cta-section,
  .blog-section,
  .testimonials-section,
  .about-testimonials-section {
    padding: 60px 0;
  }
  
  .about-team-section,
  .about-testimonials-section {
    margin: 60px 0;
  }
  
  /* Layout adjustments */
  .grid-2-cols {
    grid-template-columns: 1fr;
  }
  
  .blog-grid,
  .services-grid,
  .blog-archive-grid {
    grid-template-columns: 1fr;
  }
  
  /* Typography */
  .page-title,
  .service-detail-title,
  .blog-detail-title,
  .archive-title,
  .service-archive-header .archive-title {
    font-size: 2rem;
  }
  
  .card-title,
  .service-title,
  .blog-title {
    font-size: 1.3rem;
  }
  
  /* Blog specific */
  .blog-detail-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .blog-detail-meta span {
    margin-bottom: 8px;
  }
  
  .blog-detail-navigation {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-previous,
  .nav-next {
    max-width: 100%;
  }
  
  /* Forms */
  .form-row,
  .comment-form,
  .cf7-two-columns,
  .contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .wpcf7-submit {
    width: 100%;
  }
  
  /* Featured images */
  .service-detail-image,
  .standard-featured {
    padding-bottom: 40%;
  }
  
  .page-featured-banner {
    padding-bottom: 30%;
  }
  
  .page-hero {
    padding-bottom: 50%;
    min-height: 250px;
  }
  
  /* Headers */
  .page-header,
  .blog-archive-header,
  .service-archive-header {
    padding: 60px 0;
    margin-bottom: 40px;
  }
  
  /* Slider */
  .service-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Site branding */
  .site-title,
  .site-description {
    display: none;
  }
  
  .site-branding .custom-logo-link {
    display: block;
  }
  
  .site-branding .logo-text-wrapper {
    display: none;
  }
  
  /* Contact form section */
  .contact-form-section {
    padding: 30px 20px;
  }
  
  /* Testimonials */
  .testimonial {
    padding: 20px;
  }
  
  /* Back to top button */
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
  
  .back-to-top i {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  /* Typography */
  .page-title,
  .service-detail-title,
  .blog-detail-title,
  .archive-title,
  .service-archive-header .archive-title {
    font-size: 1.8rem;
  }
  
  .cta-title {
    font-size: 1.75rem;
  }
  
  .cta-description,
  .page-description,
  .archive-description,
  .service-archive-header .archive-description {
    font-size: 1rem;
  }
  
  .blog-detail-content,
  .entry-content {
    font-size: 1rem;
  }
  
  .testimonial-content {
    font-size: 1rem;
  }
  
  /* Featured images */
  .service-detail-image,
  .standard-featured {
    padding-bottom: 45%;
  }
  
  .page-featured-banner {
    padding-bottom: 35%;
  }
  
  .page-hero {
    padding-bottom: 60%;
    min-height: 200px;
  }
  
  /* Service specific */
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .service-features,
  .process-step {
    padding: 20px;
  }
  
  /* Headers */
  .page-header,
  .blog-archive-header,
  .service-archive-header {
    padding: 40px 0;
  }
  
  /* Blog categories */
  .blog-categories {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .category-link {
    width: 100%;
    text-align: center;
  }
  
  /* Team section */
  .team-members-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
}

/* Modern Breadcrumbs */
.breadcrumbs-container {
  background-color: var(--light-background, #f8f9fa);
  padding: 15px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.breadcrumbs {
  font-size: 0.95rem;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li.separator {
  margin: 0 10px;
  color: #adb5bd;
  font-size: 0.8rem;
}

.breadcrumbs a {
  color: var(--primary-color, #4a6cf7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  color: var(--secondary-color, #3a56c4);
  text-decoration: underline;
}

.breadcrumbs span {
  color: var(--text-color, #666);
}

/* Current page (last item) */
.breadcrumbs li:last-child span {
  color: var(--heading-color, #333);
  font-weight: 500;
}

/* Responsive styles for breadcrumbs */
@media (max-width: 768px) {
  .breadcrumbs {
    font-size:  0.85rem;
  }
  
  .breadcrumbs li.separator {
    margin: 0 8px;
  }
}

@media (max-width: 576px) {
  .breadcrumbs-container {
    padding: 10px 0;
    margin-bottom: 30px;
  }
  
  .breadcrumbs ol {
    gap: 5px;
  }
}

/* ======================================
   20. 404 Error Page Styles
====================================== */
.error-page-header {
  background-color: var(--primary-color, #4a6cf7);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.error-title {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1;
}

.error-subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
}

.error-content {
  padding: 60px 0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.error-image {
  max-width: 400px;
  margin: 0 auto 40px;
}

.error-image img {
  width: 100%;
  height: auto;
}

.page-content {
  margin-bottom: 50px;
}

.page-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-color, #666);
}

.error-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.error-actions .btn {
  min-width: 200px;
}

.or-search {
  color: var(--text-color, #666);
  font-weight: 500;
}

.error-search {
  max-width: 500px;
  width: 100%;
}

.error-search .search-form {
  display: flex;
  width: 100%;
}

.helpful-links {
  margin-top: 60px;
  text-align: left;
  background-color: var(--light-background, #f8f9fa);
  padding: 30px;
  border-radius: var(--border-radius, 8px);
}

.helpful-links h3 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--heading-color, #333);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.link-column h4 {
  margin-bottom: 15px;
  color: var(--heading-color, #333);
  font-size: 1.2rem;
}

.link-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-column li {
  margin-bottom: 10px;
}

.link-column a {
  color: var(--primary-color, #4a6cf7);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.link-column a:hover {
  color: var(--secondary-color, #3a56c4);
}

.link-column a:before {
  content: "→";
  margin-right: 8px;
  font-size: 0.9rem;
}

/* Search Results Styles */
.search-results-count {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  color: var(--text-color, #666);
  font-size: 1.1rem;
}

.search-again {
  margin-top: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Modern 404 Page Styles */
.error-page-container {
  padding: 80px 0;
  background-color: var(--light-background, #f8f9fa);
}

.error-page-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 80px;
}

.error-page-content {
  flex: 1;
  max-width: 600px;
}

.error-code {
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.error-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--heading-color, #333);
}

.error-description {
  font-size: 1.1rem;
  color: var(--text-color, #666);
  margin-bottom: 30px;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.error-actions .btn {
  padding: 12px 24px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: var(--border-radius, 4px);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.error-search-container {
  background-color: white;
  padding: 25px;
  border-radius: var(--border-radius, 8px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.error-search-container h3 {
  margin-bottom: 15px;
  font-size: 1.25rem;
  color: var(--heading-color, #333);
}

.error-search .search-form {
  display: flex;
}

.error-search .search-field {
  flex-grow: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: var(--border-radius, 4px) 0 0 var(--border-radius, 4px);
  font-size: 1rem;
}

.error-search .search-submit {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 0 var(--border-radius, 4px) var(--border-radius, 4px) 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.error-search .search-submit:hover {
  background-color: var(--secondary-color);
}

.error-page-illustration {
  flex: 1;
  max-width: 500px;
  animation: float 6s ease-in-out infinite;
}

.error-page-illustration img {
  width: 100%;
  height: auto;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.error-recent-posts {
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius, 8px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.error-recent-posts h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.5rem;
  color: var(--heading-color, #333);
  position: relative;
  padding-bottom: 15px;
}

.error-recent-posts h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.recent-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.recent-post-card {
  background-color: var(--light-background, #f8f9fa);
  border-radius: var(--border-radius, 8px);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recent-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.recent-post-image {
  height: 180px;
  overflow: hidden;
}

.recent-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recent-post-card:hover .recent-post-image img {
  transform: scale(1.05);
}

.recent-post-content {
  padding: 20px;
}

.recent-post-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.recent-post-title a {
  color: var(--heading-color, #333);
  text-decoration: none;
  transition: color 0.3s ease;
}

.recent-post-title a:hover {
  color: var(--primary-color);
}

.recent-post-meta {
  font-size: 0.85rem;
  color: #6b7280;
}

.recent-post-meta i {
  margin-right: 5px;
  color: var(--primary-color);
}

/* ======================================
   21. Service Sidebar Improvements
====================================== */
.service-sidebar {
  position: sticky;
  top: 30px;
}

/* Sidebar Widget Base */
.sidebar-widget {
  margin-bottom: 30px;
  padding: 25px;
  background-color: var(--light-background, #f8f9fa);
  border-radius: var(--border-radius, 8px);
  box-shadow: var(--box-shadow, 0 5px 15px rgba(0, 0, 0, 0.05));
}

.sidebar-widget .widget-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color, #4a6cf7);
  color: var(--heading-color, #333);
}

/* Other Services Widget */
.other-services {
  background-color: var(--light-background, #f8f9fa);
}

.sidebar-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-service-item {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-service-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-service-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color, #666);
  transition: color 0.3s ease;
}

.sidebar-service-link:hover {
  color: var(--primary-color, #4a6cf7);
}

.sidebar-service-image {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius, 4px);
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
}

.sidebar-service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-service-content {
  flex: 1;
}

.sidebar-service-title {
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 500;
}

.sidebar-service-more {
  font-size: 0.875rem;
  color: var(--primary-color, #4a6cf7);
  font-weight: 500;
}

/* Service CTA Widget */
.service-cta {
  text-align: center;
  background-color: var(--primary-color, #4a6cf7);
  color: white;
}

.service-cta .widget-title {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.service-cta p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.service-cta-button {
  display: inline-block;
  background-color: white;
  color: var(--primary-color, #4a6cf7);
  padding: 12px 25px;
  border-radius: var(--border-radius, 4px);
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.service-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ======================================
   22. Additional Responsive Styles
====================================== */

/* Responsive adjustments for error pages */
@media (max-width: 992px) {
  .error-page-wrapper {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }
  
  .error-page-content {
    max-width: 100%;
  }
  
  .error-actions {
    justify-content: center;
  }
  
  .error-code {
    font-size: 6rem;
  }
  
  .error-title {
    font-size: 2rem;
  }
  
  .recent-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .error-page-container {
    padding: 60px 0;
  }
  
  .error-page-wrapper {
    margin-bottom: 60px;
  }
  
  .error-code {
    font-size: 5rem;
  }
  
  .error-recent-posts {
    padding: 30px 20px;
  }
  
  .links-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .error-content {
    padding: 40px 0;
  }
  
  .page-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .error-page-container {
    padding: 40px 0;
  }
  
  .error-actions {
    flex-direction: column;
  }
  
  .error-code {
    font-size: 4rem;
  }
  
  .error-title {
    font-size: 1.75rem;
  }
  
  .recent-posts-grid {
    grid-template-columns: 1fr;
  }
  
  .error-page-header {
    padding: 40px 0;
  }
  
  .error-subtitle {
    font-size: 1.2rem;
  }
  
  .helpful-links {
    padding: 20px;
  }
}

/* Responsive adjustments for service sidebar */
@media (max-width: 992px) {
  .service-sidebar {
    position: static;
    margin-top: 40px;
  }
  
  .sidebar-widget {
    margin-bottom: 25px;
  }
}

@media (max-width: 576px) {
  .sidebar-service-image {
    width: 50px;
    height: 50px;
  }
  
  .sidebar-service-title {
    font-size: 0.95rem;
  }
  
  .service-cta-button {
    display: block;
    width: 100%;
  }
}

/* ======================================
   23. Print Styles
====================================== */
@media print {
  /* Hide non-essential elements when printing */
  .site-header,
  .site-footer,
  .sidebar,
  .blog-sidebar,
  .service-sidebar,
  .back-to-top,
  .slider-nav,
  .breadcrumbs-container,
  .blog-detail-share,
  .blog-detail-navigation,
  .comment-respond,
  .error-actions,
  .error-search-container {
    display: none !important;
  }
  
  /* Adjust layout for print */
  .blog-detail-wrapper,
  .service-detail-wrapper,
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
  
  /* Ensure good contrast for print */
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.5;
  }
  
  /* Adjust headings for print */
  h1, h2, h3, h4, h5, h6 {
    color: black !important;
    page-break-after: avoid;
  }
  
  /* Avoid breaking content */
  .blog-card,
  .service-card,
  .team-member-card {
    page-break-inside: avoid;
  }
  
  /* Show URLs for links */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }
  
  /* Don't show URLs for internal links */
  a[href^="#"]:after,
  a[href^="/"]:after {
    content: "";
  }
  
  /* Adjust images for print */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* ======================================
   24. Accessibility Improvements
====================================== */

/* Focus styles for better keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-color, #4a6cf7);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary-color, #4a6cf7);
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  z-index: 9999;
}

.skip-link:focus {
  left: 0;
}

/* Screen reader text */
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px !important;
  height: 1px !important;
  overflow: hidden;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #000080;
    --text-color: #000000;
    --heading-color: #000000;
    --light-text: #ffffff;
    --background: #ffffff;
    --light-background: #f0f0f0;
    --border-color: #000000;
  }
  
  .card,
  .blog-card,
  .service-card {
    border: 2px solid #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .error-page-illustration {
    animation: none;
  }
}

/* ======================================
   25. Dark Mode Support (Optional)
====================================== */
/* Update your existing dark mode section around line 2547 to include blog section styles */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --text-color: #e5e7eb;
    --heading-color: #f9fafb;
    --light-text: #ffffff;
    --background: #1f2937;
    --light-background: #374151;
    --border-color: #4b5563;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }
  
  /* Hero section dark mode */
  .hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-text);
  }
  
  .hero-title {
    color: var(--light-text);
  }
  
  .hero-description {
    color: var(--light-text);
  }
  
  .hero-button {
    background-color: var(--light-text);
    color: var(--primary-color);
  }
  
  .hero-button:hover {
    background-color: var(--light-background);
    color: var(--primary-color);
  }
  
  /* Blog section dark mode */
  .blog-section {
    background-color: var(--background);
    color: var(--text-color);
  }
  
.blog-section .section-title {
  color: var(--heading-color, #333);
}
  
.blog-card {
  background-color: var(--background, #fff);
  border-radius: var(--border-radius, 8px);
  overflow: hidden;
  box-shadow: var(--box-shadow, 0 4px 6px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
  
.blog-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--heading-color, #333);
  line-height: 1.4;
}

  
.blog-title a {
  color: var(--heading-color, #333);
  transition: color 0.3s ease;
}

.blog-title a:hover {
  color: var(--primary-color, #4a6cf7);
}

.blog-excerpt {
  color: var(--text-color, #666);
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  font-size: 0.875rem;
  color: var(--text-color, #6b7280);
  margin-bottom: 15px;
}

.blog-meta span {
  margin-right: 15px;
  display: flex;
  align-items: center;
  color: var(--text-color, #6b7280);
}

.blog-meta i {
  margin-right: 5px;
  color: var(--primary-color, #4a6cf7);
}

.blog-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color, #4a6cf7);
  font-weight: 500;
  transition: color 0.3s ease;
  margin-top: auto;
}

.blog-link:hover {
  color: var(--secondary-color, #3a56c4);
}

.blog-view-all {
  display: inline-block;
  background-color: var(--primary-color, #4a6cf7);
  color: var(--light-text, #fff);
  padding: 12px 30px;
  border-radius: var(--border-radius, 4px);
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.blog-view-all:hover {
  background-color: var(--secondary-color, #3a56c4);
  transform: translateY(-2px);
  color: var(--light-text, #fff);
}

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  background-color: var(--light-background, #f8f9fa);
  border-radius: var(--border-radius, 8px);
  color: var(--text-color, #666);
}
  
  /* About section dark mode */
  .about-section {
    background-color: var(--light-background);
    color: var(--text-color);
  }
  
  .about-section .section-title {
    color: var(--heading-color);
  }
  
  .about-description {
    color: var(--text-color);
  }
  
  .about-button {
    background-color: var(--primary-color);
    color: var(--light-text);
  }
  
  .about-button:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
  }
  
  /* Services section dark mode */
  .services-section {
    background-color: var(--background);
    color: var(--text-color);
  }
  
  .services-section .section-title {
    color: var(--heading-color);
  }
  
  .service-card {
    background-color: var(--light-background);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
  }
  
  .service-title {
    color: var(--heading-color);
  }
  
  .service-description {
    color: var(--text-color);
  }
  
  .service-link {
    color: var(--primary-color);
  }
  
  .service-link:hover {
    color: var(--secondary-color);
  }
  
  /* CTA section dark mode */
  .cta-section {
    background-color: var(--primary-color);
    color: var(--light-text);
  }
  
  .cta-title {
    color: var(--light-text);
  }
  
  .cta-description {
    color: var(--light-text);
  }
  
  .cta-button {
    background-color: var(--light-text);
    color: var(--primary-color);
  }
  
  .cta-button:hover {
    background-color: var(--light-background);
    color: var(--primary-color);
  }
  
  /* General dark mode styles */
  body {
    background-color: var(--background);
    color: var(--text-color);
  }
  
  .widget,
  .sidebar-widget {
    background-color: var(--light-background);
    border: 1px solid var(--border-color);
  }
  
  input,
  textarea,
  select {
    background-color: var(--light-background);
    border-color: var(--border-color);
    color: var(--text-color);
  }
  
  .breadcrumbs-container {
    background-color: var(--light-background);
    border-bottom-color: var(--border-color);
  }
  
  /* Navigation dark mode */
  .site-header {
    background-color: var(--background);
    border-bottom: 1px solid var(--border-color);
  }
  
  .main-navigation a {
    color: var(--text-color);
  }
  
  .main-navigation a:hover,
  .main-navigation a:focus {
    /* Ensure visible and high-contrast hover on top-level links */
    background-color: var(--primary-color, #4a6cf7);
    color: var(--light-text, #fff);
    text-decoration: none;
  }
  
  .site-title a {
    color: var(--heading-color);
  }
  
  .site-description {
    color: var(--text-color);
  }
}



/* ======================================
   26. Performance Optimizations
====================================== */

/* GPU acceleration for animations */
.card,
.blog-card,
.service-card,
.team-member-card,
.back-to-top {
  will-change: transform;
}

/* Optimize font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Optimize image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -webkit-optimize-contrast;
  /* image-rendering: crisp-edges; */
}

/* ======================================
   27. Browser Compatibility Fixes
====================================== */

/* IE11 Grid fallback */
@supports not (display: grid) {
  .grid-2-cols,
  .grid-3-cols,
  .blog-grid,
  .services-grid {
    display: flex;
    flex-wrap: wrap;
  }
  
  .grid-2-cols > *,
  .grid-3-cols > *,
  .blog-grid > *,
  .services-grid > * {
    flex: 1 1 300px;
    margin: 15px;
  }
}

/* Safari flexbox fixes */
@supports (-webkit-appearance: none) {
  .service-slide {
    flex-shrink: 0;
  }
}

/* Firefox specific fixes */
/* Firefox-specific fixes for services slider */
@-moz-document url-prefix() {
    .services-slider {
        display: -moz-flex !important;
        display: flex !important;
    }
    
    .service-slide {
        -moz-flex-shrink: 0;
        flex-shrink: 0;
    }
    
    .services-slider-container {
        overflow: hidden;
    }
}

/* ======================================
   28. Utility Classes for JavaScript
====================================== */

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Fade animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.fade-out {
  animation: fadeOut 0.5s ease-in-out forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

/* Slide animations */
.slide-up {
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Hidden/visible states */
.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden;
  opacity: 0;
}

.visible {
  visibility: visible;
  opacity: 1;
}

/* ======================================
   29. Custom Scrollbar Styles
====================================== */

/* Webkit browsers */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color, #4a6cf7);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color, #3a56c4);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color, #4a6cf7) #f1f1f1;
}

/* ======================================
   30. Final Cleanup and Overrides
====================================== */

/* Ensure consistent box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margins and paddings where needed */
figure {
  margin: 0;
}

/* Ensure images are responsive by default */
img {
  max-width: 100%;
  height: auto;
}

/* Fix for WordPress admin bar spacing */
@media screen and (min-width: 783px) {
  .admin-bar .back-to-top {
    top: calc(100vh - 80px - 32px);
  }
}

@media screen and (max-width: 782px) {
  .admin-bar .back-to-top {
    top: calc(100vh - 80px - 46px);
  }
}

/* Ensure proper stacking context */
.site-header {
  z-index: 100;
}

.back-to-top {
  z-index: 999;
}

/* Final responsive adjustments */
@media (max-width: 320px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .error-code {
    font-size: 3rem;
  }
  
  .error-title {
    font-size: 1.5rem;
  }
  
  .page-title,
  .service-detail-title,
  .blog-detail-title {
    font-size: 1.6rem;
  }
}

.blog-categories .category-link {
    background: #f5f5f5;
    color: #222;
    padding: 6px 16px;
    border-radius: 20px;
    margin-right: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}
.blog-categories .category-link.active,
.blog-categories .category-link:hover {
    background: #0073aa;
    color: #fff;
}
/* End of custom.css */



