/*
Theme Name: WorkDoc Theme
Theme URI: https://example.com/workdoc-theme
Author: Your Name/Company
Author URI: https://example.com/
Description: Custom theme for WorkDoc professional business website.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, responsive-layout, accessibility-ready, custom-menu, editor-style, featured-images, threaded-comments, translation-ready
Text Domain: workdoc-theme
*/

/* CSS Custom Properties for Modern Design System */
:root {
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-secondary: 'Helvetica Neue', Arial, sans-serif;
    
    /* Font Sizes - Fluid Typography */
    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8rem);
    --font-size-sm: clamp(0.875rem, 0.85rem + 0.125vw, 0.9rem);
    --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --font-size-md: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
    --font-size-lg: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --font-size-xl: clamp(1.75rem, 1.5rem + 1.25vw, 2rem);
    --font-size-2xl: clamp(2rem, 1.75rem + 1.25vw, 2.5rem);
    --font-size-3xl: clamp(2.5rem, 2rem + 2.5vw, 3rem);
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;
    
    /* Colors - Modern Palette */
    --color-primary: #005A9C;
    --color-primary-dark: #004c86;
    --color-primary-light: #1e7bb8;
    --color-secondary: #3498db;
    --color-accent: #20B2AA;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    
    /* Grays */
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    
    /* Semantic Colors */
    --color-text-primary: var(--color-gray-800);
    --color-text-secondary: var(--color-gray-600);
    --color-text-muted: var(--color-gray-500);
    --color-background: #ffffff;
    --color-background-alt: var(--color-gray-50);
    --color-border: var(--color-gray-200);
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Container Sizes */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
}

/* Modern Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-primary);
    background-color: var(--color-background-alt);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: manual;
    -webkit-hyphens: manual;
    -ms-hyphens: manual;
}

/* Global text wrapping fixes for mobile - no auto-hyphenation */
* {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: manual;
    -webkit-hyphens: manual;
    -ms-hyphens: manual;
}

/* Modern Container */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding-left: var(--space-5);
    padding-right: var(--space-5);
}

@media (min-width: 640px) {
    .container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-tight);
}

h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-snug);
}

h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
}

h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

h5 {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
}

h6 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
}

p {
    margin-bottom: var(--space-4);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
}

/* Modern Links */
a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Modern Buttons */
.btn,
.cta-button,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-normal);
    min-height: 44px; /* Accessibility - minimum touch target */
    letter-spacing: 0.025em;
}

.btn-primary,
.cta-button {
    background-color: var(--color-primary);
    color: var(--color-background);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.cta-button:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-background);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
    transform: translateY(-1px);
}

/* Header Styles */
.site-header {
    background-color: var(--color-primary);
    padding: var(--space-4) 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000000; /* ensure header stack is above any plugin/admin UI */
    backdrop-filter: blur(10px);
}

/* This is the new flex container, which also has the .container class */
.header-flex-container {
    display: flex;
    justify-content: space-between; /* Logo left, Nav right */
    align-items: center;
    /* .container class adds max-width & margin auto. Override its padding for better header */
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    transition: all 0.3s ease; /* Smooth transitions for any changes */
}

/* Site Branding (Logo Area) */
.site-branding {
    line-height: 0;
    transition: transform 0.3s ease;
}

.site-branding:hover {
    transform: scale(1.02);
}

.custom-logo-link img {
    max-height: 84px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

/* Site title is hidden by inline style in header.php if logo exists */
/* Site description is commented out in header.php for slim design */
.site-branding .site-title {
    /* Styles if it were to be shown alongside logo, or if no logo */
}
.site-description {
    /* Styles if it were to be shown */
    display: none; /* Explicitly hide if not wanted with logo */
}


/* Navigation Styles */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px; /* Modern gap property for consistent spacing */
}

.main-navigation ul li {
    position: relative; /* For potential dropdown positioning */
}

.main-navigation ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500; /* Slightly bolder for better readability */
    font-size: 1rem; /* Consistent font size */
    padding: 12px 18px; /* Increased padding for better touch targets */
    border-radius: 6px; /* Slightly more rounded */
    transition: all 0.3s ease; /* Smooth transitions for all properties */
    display: block; /* Better for padding consistency */
    letter-spacing: 0.3px; /* Subtle letter spacing for professionalism */
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
    background-color: rgba(255,255,255,0.15); /* Slightly more visible hover state */
    color: #ffffff;
    transform: translateY(-1px); /* Subtle lift effect */
}

/* CTA Button in Nav */
.main-navigation ul li.menu-item-cta a {
    background-color: #ffffff;
    color: #005A9C;
    padding: 12px 24px; /* Increased padding for prominence */
    border-radius: 8px; /* More rounded for modern look */
    font-weight: 600; /* Bolder for CTA emphasis */
    font-size: 0.95rem; /* Slightly smaller for balance */
    text-transform: uppercase; /* Professional CTA styling */
    letter-spacing: 0.5px; /* More spacing for uppercase text */
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2); /* Subtle shadow */
    transition: all 0.3s ease;
}

.main-navigation ul li.menu-item-cta a:hover {
    background-color: #f8f9fa;
    color: #004c86;
    transform: translateY(-2px); /* More pronounced lift */
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3); /* Enhanced shadow on hover */
}

/* Contact Us CTA styling - white outline */
.main-navigation ul li a[href*="contact"] {
    border: 2px solid #ffffff;
    background-color: transparent;
    color: #ffffff;
    padding: 10px 20px; /* Adjusted for border */
    border-radius: 8px; /* Match other buttons */
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.main-navigation ul li a[href*="contact"]:hover {
    background-color: #ffffff;
    color: #005A9C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
}

/* Active state for current page */
.main-navigation ul li.current-menu-item a:not([href*="contact"]) {
    background-color: rgba(255,255,255,0.2);
    font-weight: 600;
}


.menu-toggle { /* For mobile */
    display: none; /* Initially hidden for desktop */
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}


/* Content Styles */
.site-content {
    background-color: #ffffff;
    padding: 0; /* Remove padding if .front-page-content-area is used for full-width sections */
    margin-top: 0; /* Remove top margin if header is directly above */
    border-radius: 0;
    box-shadow: none;
    background-color: transparent; /* Allow sections to control their own BG */
}
.site-content.container { /* Styles for non-front-page content area */
    background-color: #ffffff;
    padding: 30px 20px;
    margin-top: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.entry-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2.2em;
}

.entry-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}
.entry-content ul, .entry-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* Blog Page Styles */
.blog .site-main,
.home.blog .site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog .site-main article.post,
.home.blog .site-main article.post {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog .site-main article.post:hover,
.home.blog .site-main article.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.blog .site-main article.post .post-thumbnail {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f8f9fa;
    position: relative;
}

.blog .site-main article.post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.blog .site-main article.post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.blog .site-main article.post .post-content {
    padding: 30px;
}

.blog .site-main article.post .entry-header {
    margin-bottom: 20px;
}

.blog .site-main article.post .entry-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 600;
}

.blog .site-main article.post .entry-title a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.blog .site-main article.post .entry-title a:hover {
    color: #005A9C;
}

.blog .site-main article.post .entry-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.blog .site-main article.post .entry-meta .posted-on,
.blog .site-main article.post .entry-meta .byline,
.blog .site-main article.post .entry-meta .cat-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog .site-main article.post .entry-meta .posted-on::before {
    content: "📅";
    margin-right: 5px;
}

.blog .site-main article.post .entry-meta .byline::before {
    content: "👤";
    margin-right: 5px;
}

.blog .site-main article.post .entry-meta .cat-links::before {
    content: "📂";
    margin-right: 5px;
}

.blog .site-main article.post .entry-content {
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
}

.blog .site-main article.post .entry-content p {
    margin-bottom: 15px;
}

.blog .site-main article.post .entry-content .more-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #005A9C;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog .site-main article.post .entry-content .more-link:hover {
    background-color: #004c86;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 90, 156, 0.3);
}

.blog .site-main article.post .entry-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    font-size: 0.85em;
    color: #666;
}

.blog .site-main article.post .entry-footer .tags-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.blog .site-main article.post .entry-footer .tags-links::before {
    content: "🏷️";
    margin-right: 5px;
}

.blog .site-main article.post .entry-footer .tags-links a {
    background-color: #f8f9fa;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8em;
    transition: all 0.3s ease;
}

.blog .site-main article.post .entry-footer .tags-links a:hover {
    background-color: #005A9C;
    color: #ffffff;
}

/* Blog Page Header */
.blog .page-header,
.home.blog .page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 20px;
    background: linear-gradient(135deg, #005A9C 0%, #004c86 100%);
    color: #ffffff;
    border-radius: 12px;
    margin-top: 20px;
}

.blog .page-header .page-title,
.home.blog .page-header .page-title {
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog .page-header .archive-description,
.home.blog .page-header .archive-description {
    font-size: 1.2em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Pagination */
.blog .navigation.pagination,
.home.blog .navigation.pagination {
    margin-top: 50px;
    text-align: center;
}

.blog .navigation.pagination .nav-links,
.home.blog .navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.blog .navigation.pagination .nav-links a,
.blog .navigation.pagination .nav-links .current,
.home.blog .navigation.pagination .nav-links a,
.home.blog .navigation.pagination .nav-links .current {
    padding: 12px 16px;
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
}

.blog .navigation.pagination .nav-links a:hover,
.home.blog .navigation.pagination .nav-links a:hover {
    background-color: #005A9C;
    color: #ffffff;
    border-color: #005A9C;
    transform: translateY(-2px);
}

.blog .navigation.pagination .nav-links .current,
.home.blog .navigation.pagination .nav-links .current {
    background-color: #005A9C;
    color: #ffffff;
    border-color: #005A9C;
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .blog .site-main,
    .home.blog .site-main {
        padding: 20px 15px;
    }
    
    .blog .page-header,
    .home.blog .page-header {
        padding: 40px 20px;
        margin-top: 10px;
    }
    
    .blog .page-header .page-title,
    .home.blog .page-header .page-title {
        font-size: 2.2em;
    }
    
    .blog .page-header .archive-description,
    .home.blog .page-header .archive-description {
        font-size: 1.1em;
    }
    
    .blog .site-main article.post .post-thumbnail {
        height: 200px;
    }
    
    .blog .site-main article.post .post-content {
        padding: 25px 20px;
    }
    
    .blog .site-main article.post .entry-title {
        font-size: 1.5em;
    }
    
    .blog .site-main article.post .entry-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .blog .site-main article.post .post-content {
        padding: 20px 15px;
    }
    
    .blog .site-main article.post .entry-title {
        font-size: 1.3em;
    }
    
    .blog .navigation.pagination .nav-links {
        gap: 5px;
    }
    
    .blog .navigation.pagination .nav-links a,
    .blog .navigation.pagination .nav-links .current,
    .home.blog .navigation.pagination .nav-links a,
    .home.blog .navigation.pagination .nav-links .current {
        padding: 10px 12px;
        min-width: 40px;
        font-size: 0.9em;
    }
}

/* Footer Styles */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0;
    margin-top: 30px;
    text-align: center;
    font-size: 0.9em;
}
.site-footer a {
    color: #3498db;
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}

/* Accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
}
.skip-link:focus {
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    overflow: auto;
    margin: 10px;
    padding: 10px;
    background: #fff;
    color: #333;
    z-index: 99999;
    border: 1px solid #ccc;
}
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}


/* Modern Mobile Navigation Styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    color: var(--color-background);
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    align-items: center;
    gap: var(--space-2);
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle:focus {
    outline: 2px solid var(--color-background);
    outline-offset: 2px;
}

/* Hamburger Icon Styles */
.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
    width: 24px;
    height: 2px;
    background-color: var(--color-background);
    border-radius: 2px;
    position: absolute;
    transition: var(--transition-normal);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-background);
    border-radius: 2px;
    position: absolute;
    transition: var(--transition-normal);
}

.hamburger-inner::before {
    top: -6px;
}

.hamburger-inner::after {
    bottom: -6px;
}

/* Hamburger Animation */
.menu-toggle.is-active .hamburger-inner {
    transform: rotate(45deg);
}

.menu-toggle.is-active .hamburger-inner::before {
    top: 0;
    transform: rotate(90deg);
}

.menu-toggle.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(90deg);
}

/* Mobile Navigation Responsive Styles - Extended for better tablet/mobile coverage */
@media (max-width: 1024px) {
    .header-flex-container {
        padding-left: var(--space-4) !important;
        padding-right: var(--space-4) !important;
    }

    .menu-toggle {
        display: flex !important;
        order: 1; /* move to left */
        min-height: 48px; /* Improved touch target */
        min-width: 48px;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-md);
        margin-right: var(--space-3);
    }

    .menu-toggle:hover,
    .menu-toggle:focus {
        background-color: rgba(255, 255, 255, 0.2);
        outline: 2px solid rgba(255, 255, 255, 0.5);
        outline-offset: 2px;
    }

    .site-branding {
        order: 2; /* logo after hamburger */
        margin-left: var(--space-3);
    }

    .main-navigation {
        order: 1; /* place nav (hamburger) on the left */
        margin-right: auto; /* push branding to the right of it */
        position: relative; /* keep nav in header flow */
        width: auto;
        background-color: transparent;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        transition: all var(--transition-normal);
        z-index: 999;
        border-top: 0;
    }

    .main-navigation.toggled {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: var(--space-6) var(--space-4);
        margin: 0;
        gap: 0;
        max-height: 70vh;
        overflow-y: auto;

        /* make the panel drop from header */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-primary);
        box-shadow: var(--shadow-xl);
        border-top: 2px solid rgba(255, 255, 255, 0.2);
    }

    .main-navigation ul.toggled-on {
        display: flex;
    }

    .main-navigation ul li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation ul li:last-child {
        border-bottom: none;
    }

    .main-navigation ul li a {
        display: block;
        padding: var(--space-4) var(--space-3);
        font-size: var(--font-size-md);
        font-weight: var(--font-weight-medium);
        border-radius: var(--radius-sm);
        transition: var(--transition-fast);
        text-align: left;
        margin: var(--space-1) 0;
        min-height: 48px; /* Improved touch target */
        display: flex;
        align-items: center;
    }

    .main-navigation ul li a:hover,
    .main-navigation ul li.current-menu-item a {
        background-color: rgba(255, 255, 255, 0.15);
        transform: translateX(8px);
        box-shadow: inset 4px 0 0 rgba(255, 255, 255, 0.5);
    }

    /* Mobile CTA Button Styles */
    .main-navigation ul li.menu-item-cta a,
    .main-navigation ul li a[href*="contact"] {
        margin: var(--space-4) var(--space-2) var(--space-2);
        background-color: var(--color-background);
        color: var(--color-primary);
        border: none;
        border-radius: var(--radius-lg);
        text-align: center;
        font-weight: var(--font-weight-bold);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: var(--shadow-md);
        justify-content: center;
    }

    .main-navigation ul li.menu-item-cta a:hover,
    .main-navigation ul li a[href*="contact"]:hover {
        background-color: var(--color-gray-100);
        color: var(--color-primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    /* Overlay for mobile menu */
    .main-navigation.toggled::before {
        content: none !important;
        display: none !important;
    }

    /* Prevent body scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Container adjustments for mobile */
    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
}

/* Off-canvas Drawer and Backdrop (mobile/tablet) */
@media (max-width: 1024px) {
    /* Drawer container */
    .nav-drawer {
        position: fixed;
        top: 0;
        left: 0; /* move drawer to left */
        right: auto;
        height: 100vh;
        width: 360px;
        background-color: var(--color-primary);
        transform: translateX(-100%); /* slide in from left */
        transition: transform var(--transition-normal);
        z-index: 1000001; /* drawer above overlay and header */
        padding: calc(96px + env(safe-area-inset-top, 0px)) var(--space-4) var(--space-6) var(--space-4);
        box-shadow: var(--shadow-xl);
        overflow-y: auto;
        pointer-events: auto;
    }
    .nav-drawer.open {
        transform: translateX(0);
    }

    /* Ensure the UL inside the drawer is shown as a column
       and overrides older rules that hid/positioned it */
    .nav-drawer .nav-menu {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0;
        margin: 0;
        max-height: none;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        border-top: 0 !important;
    }

    /* Backdrop overlay */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition-normal);
        z-index: 999990; /* below header/drawer, above page content */
        pointer-events: none; /* do not block clicks when hidden */
    }
    .nav-backdrop.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto; /* allow closing on overlay click */
    }

    /* Keep the toggle above everything */
    .menu-toggle {
        z-index: 1000002; /* topmost control */
    }
}

/* Drawer width tweak for smaller phones */
@media (max-width: 768px) {
    .nav-drawer {
        width: 320px;
    }
}

/* Additional mobile-specific styles for smaller screens */
@media (max-width: 768px) {
    .header-flex-container {
        padding-left: var(--space-3) !important;
        padding-right: var(--space-3) !important;
    }

    .custom-logo-link img {
        max-height: 50px;
    }

    .main-navigation ul {
        padding: var(--space-4);
    }

    .main-navigation ul li a {
        padding: var(--space-3) var(--space-2);
        font-size: var(--font-size-base);
    }

    .container {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-flex-container {
        padding-left: var(--space-5) !important;
        padding-right: var(--space-5) !important;
    }

    .main-navigation ul {
        gap: var(--space-2);
    }

    .main-navigation ul li a {
        padding: var(--space-3) var(--space-4);
        font-size: var(--font-size-sm);
    }

    .main-navigation ul li.menu-item-cta a,
    .main-navigation ul li a[href*="contact"] {
        padding: var(--space-2) var(--space-4);
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .header-flex-container {
        padding-left: var(--space-3) !important;
        padding-right: var(--space-3) !important;
    }

    .custom-logo-link img {
        max-height: 50px;
    }

    .main-navigation ul {
        padding: var(--space-4);
    }

    .main-navigation ul li a {
        padding: var(--space-3) var(--space-2);
        font-size: var(--font-size-base);
    }

    .container {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
}

/* Homepage Specific Styles */
.home-section {
    padding: 60px 0;
    text-align: center;
}

.section-header {
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}
.section-header p {
    font-size: 1.1em;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto;
}

/* Hero Section */
.home-hero-section {
    padding: 0; /* Full width hero */
    position: relative;
    color: #fff;
    text-align: center;
}
.home-hero-swiper .swiper-slide {
    height: 70vh; /* Adjust as needed */
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-content h1, .hero-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.hero-content .subheading {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #f1f1f1;
    font-weight: 300;
}
.cta-button {
    background-color: #005A9C;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
    display: inline-block;
}
.cta-button:hover {
    background-color: #004c86;
}
.cta-button-secondary {
    background-color: transparent;
    color: #005A9C;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
    border: none;
    display: inline-block;
}
.cta-button-secondary:hover {
    background-color: #005A9C;
    color: #fff;
}

/* Swiper Navigation/Pagination */
.home-hero-swiper .swiper-button-next,
.home-hero-swiper .swiper-button-prev {
    color: #fff;
    background-color: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 50%;
    width: 30px; /* Adjust size */
    height: 30px;
    line-height: 30px;
    margin-top: -25px; /* Adjust vertical centering */
}
.home-hero-swiper .swiper-button-next::after,
.home-hero-swiper .swiper-button-prev::after {
    font-size: 1.2rem; /* Adjust arrow size */
}
.home-hero-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}
.home-hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #3498db;
}


/* Features Section */
.home-features-section {
    background-color: #f9f9f9; /* Alternating background */
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.feature-block {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}
.feature-icon {
    max-width: 60px; /* Adjust as needed */
    margin-bottom: 20px;
}
.feature-block h2 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}
.feature-block p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}
.feature-link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}
.feature-link:hover {
    text-decoration: underline;
}

/* Testimonials Section */
.home-testimonials-section {
    background-color: #ffffff;
}
.testimonial-item {
    padding: 20px;
    text-align: center;
}
.testimonial-item blockquote {
    margin: 0 auto;
    max-width: 600px;
    font-size: 1.1em;
    font-style: italic;
    color: #555;
    border-left: 4px solid #3498db;
    padding-left: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 20px;
}
.testimonial-item blockquote p {
    margin-bottom: 10px;
}
.testimonial-item blockquote footer cite {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #2c3e50;
    font-style: normal;
}
.testimonials-swiper .swiper-pagination-bullet {
    background: #3498db;
}


/* About Section */
.home-about-section {
    background-color: #f9f9f9;
}
.about-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    text-align: left;
}
.about-text {
    flex: 1;
    min-width: 300px;
}
.about-text .section-header {
    text-align: left;
    margin-bottom: 20px;
}
.about-text .section-header h2 {
     margin-bottom: 15px;
}
.about-text p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.7;
}
.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}
.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Contact/CTA Section */
.home-contact-cta-section {
    background-color: #2c3e50;
    color: #fff;
}
.home-contact-cta-section .section-header h2 {
    color: #fff;
}
.home-contact-cta-section p {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.contact-details-cta {
    margin-top: 20px;
    font-size: 0.9em;
    color: #bdc3c7;
}
.contact-details-cta p {
    margin-bottom: 5px;
}

/* Ensure main container on front page can be full width for some sections */
.front-page-main > .home-hero-section,
.front-page-main > .home-testimonials-section, /* If you want these full-width before container */
.front-page-main > .home-contact-cta-section {
    /* Override default container padding if .container is direct child of these sections */
}
.front-page-main > .home-hero-section .container,
.front-page-main > .home-testimonials-section .container,
.front-page-main > .home-contact-cta-section .container {
    /* Styles for containers within full-width sections if needed */
    /* max-width: 1100px; margin: 0 auto; padding: 0 20px; (already default) */
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .hero-content h1, .hero-content h2 {
        font-size: 2.2em;
    }
    .hero-content .subheading {
        font-size: 1.1em;
    }
    .section-header h2 {
        font-size: 2em;
    }
    .features-grid {
        grid-template-columns: 1fr; /* Stack features on smaller screens */
    }
    .about-content-wrapper {
        flex-direction: column;
    }
    .about-text, .about-image {
        min-width: 100%;
    }
    .about-image {
        margin-top: 20px;
    }
}

/* Updated Footer Styles */
.site-footer { /* Keep existing background and top margin */
    color: #ecf0f1; /* Base text color for footer */
    padding: 0; /* Remove padding, will be handled by inner divs */
}
.footer-widgets-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the single Quick Links section */
    gap: 30px;
    padding: 40px 20px; /* Padding for the widget area */
    max-width: 1100px;
    margin: 0 auto;
}
.footer-widget {
    flex: 1;
    min-width: 250px; /* Ensure widgets don't get too squished */
    margin-bottom: 20px;
    max-width: 400px; /* Limit width for single widget */
}
.footer-widget.footer-quick-links-only {
    text-align: center; /* Center the Quick Links section */
}
.footer-widget h4 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 1px solid #4a6a85; /* Lighter accent for separation */
    padding-bottom: 10px;
}
.footer-widget p, .footer-widget ul {
    font-size: 0.9em;
    line-height: 1.7;
    color: #bdc3c7; /* Lighter text for less emphasis */
}
.footer-widget ul {
    list-style: none;
    padding-left: 0;
}
.footer-widget ul li {
    margin-bottom: 8px;
}
.footer-widget ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-widget ul li a:hover {
    color: #fff;
    text-decoration: underline;
}
.site-info-bar {
    background-color: #1e2b37; /* Darker bar for copyright */
    padding: 15px 0;
    text-align: center;
    font-size: 0.85em;
    color: #95a5a6;
}
.site-info-bar .container {
    padding: 0 20px; /* Ensure container padding is applied */
}
.site-info-bar a {
    color: #bdc3c7;
    text-decoration: none;
}
.site-info-bar a:hover {
    text-decoration: underline;
    color: #fff;
}
.site-info-bar .sep {
    margin: 0 8px;
}

@media (max-width: 768px) {
    .footer-widgets-area {
        flex-direction: column;
        text-align: center; /* Center widget content on mobile */
    }
    .footer-widget {
        min-width: 100%;
        margin-bottom: 30px;
    }
    .footer-widget h4 {
        text-align: center;
    }
}

/* === Updated Homepage Section Styles === */

/* General Section Alternating Backgrounds */
.light-grey-bg {
    background-color: #f4f7f6; /* A slightly different light grey from default #f9f9f9 */
}
.white-bg {
    background-color: #ffffff;
}
.dark-bg {
    background-color: #222222; /* Dark background for overview section */
    color: #ffffff;
}
.dark-bg .section-header h2 {
    color: #ffffff;
}
.dark-bg .intro-text-content {
    color: #e0e0e0; /* Lighter text on dark background */
}
.dark-bg .intro-text-content p {
    color: #e0e0e0;
}

/* Hero Section Updates */
.hero-cta-button { /* Specific style for hero buttons if different from generic .cta-button */
    /* Example: border: 2px solid #fff; background-color: transparent; */
    /* For now, it uses .cta-button styles, which is white bg, blue text on reference */
    /* The reference site's hero button is white with blue text */
    background-color: #fff;
    color: #005A9C; /* Match header blue */
    padding: 12px 28px;
}
.hero-cta-button:hover {
    background-color: #f0f0f0;
    color: #004c86;
}
.home-hero-swiper .swiper-button-next,
.home-hero-swiper .swiper-button-prev {
    background-color: rgba(0,0,0,0.2); /* Slightly less dark than before */
    width: 34px; /* Match reference more closely */
    height: 34px;
    line-height: 34px;
    margin-top: -17px; /* Half of new height */
}
.home-hero-swiper .swiper-button-next::after,
.home-hero-swiper .swiper-button-prev::after {
    font-size: 1rem; /* Smaller arrows */
}
.home-hero-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff; /* Reference uses white dots */
    opacity: 0.6;
}
.home-hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff; /* Active dot also white on reference */
}


/* Introductory Text Section */
.home-intro-section .intro-text-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}
.home-intro-section .intro-text-content p {
    margin-bottom: 20px;
}

/* Our Clients Section */
.clients-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Space between logos */
    margin-top: 20px;
}
.client-logo {
    flex: 0 1 150px; /* Adjust basis for logo size, allow shrinking */
    text-align: center;
}
.client-logo img {
    max-width: 100%;
    height: auto;
    max-height: 60px; /* Control max height of logos */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.client-logo img:hover {
    opacity: 1;
}

/* Our Services Section (Adapted from Features) */
.home-services-section .section-header h2 {
    /* Already styled by .section-header */
}
.services-grid { /* Uses .features-grid */
    /* display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; */
}
.service-block { /* Uses .feature-block */
    /* background-color: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); text-align: center; */
    border: 1px solid #e0e0e0; /* Subtle border like reference */
    box-shadow: none; /* Reference cards are flatter */
}
.service-icon-wrapper {
    background-color: #005A9C; /* Blue circle background */
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}
.service-block .feature-icon { /* Re-target existing class if used for icons */
    max-width: 40px; /* Size of icon within blue circle */
    height: auto;
    margin-bottom: 0; /* Reset margin as it's inside wrapper */
    /* Assuming icons are white or light-colored for contrast */
}
.service-block h3 { /* Changed from h2 in original feature-block */
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 10px;
}
.home-services-section .section-cta {
    margin-top: 40px;
}
.home-services-section .section-cta .cta-button {
    background-color: #005A9C; /* Match header blue */
}
.home-services-section .section-cta .cta-button:hover {
    background-color: #004c86; /* Darker blue */
}


/* About WorkDoc Medical Section (Adapted) */
.home-about-section .about-content-wrapper {
    /* display: flex; flex-wrap: wrap; align-items: center; gap: 40px; text-align: left; */
    /* Image on left, text on right */
}
.home-about-section .about-image {
    /* flex: 1; min-width: 300px; text-align: center; */
    order: 1; /* Image first */
}
.home-about-section .about-text {
    /* flex: 1; min-width: 300px; */
    order: 2; /* Text second */
}
.home-about-section .about-text .section-header h2 {
    /* font-size: 2.5em; color: #2c3e50; margin-bottom: 15px; */
}
.home-about-section .cta-button-secondary {
    border-color: #005A9C;
    color: #005A9C;
}
.home-about-section .cta-button-secondary:hover {
    background-color: #005A9C;
    color: #fff;
}


/* Testimonials Grid Section */
.home-testimonials-grid-section {
    /* background-color: #f4f7f6; light-grey-bg */
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.testimonial-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0; /* Subtle border */
    text-align: left; /* Align text left within card */
}
.testimonial-logo {
    margin-bottom: 15px;
    text-align: center; /* Center logo within its div */
}
.testimonial-logo img {
    max-height: 50px; /* Adjust as needed */
    width: auto;
    max-width: 150px;
}
.testimonial-card blockquote {
    margin: 0;
    font-size: 1em; /* Slightly smaller than previous testimonial style */
    font-style: normal; /* Reference text not italic */
    color: #555;
    border-left: none; /* Remove border from previous style */
    padding-left: 0;
    background-color: transparent; /* No specific bg for quote itself */
}
.testimonial-card blockquote p {
    margin-bottom: 15px;
    line-height: 1.7;
}
.testimonial-card blockquote footer cite {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #2c3e50;
    font-style: normal;
}

/* Final CTA Section */
.home-final-cta-section {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0; /* More padding */
}
.cta-overlay { /* Similar to hero-overlay */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 90, 156, 0.85); /* Blue overlay, adjust opacity */
    z-index: 1;
}
.cta-content { /* Container for text and button */
    position: relative;
    z-index: 2;
}
.home-final-cta-section .section-header h2 {
    color: #fff;
    font-size: 2.8em; /* Larger heading */
}
.home-final-cta-section p {
    font-size: 1.2em; /* Larger paragraph */
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    color: #f1f1f1;
}
/* Uses .hero-cta-button style for the button */

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .home-final-cta-section .section-header h2 {
        font-size: 2.2em;
    }
    .home-final-cta-section p {
        font-size: 1.1em;
    }
    .clients-logo-grid {
        gap: 20px;
    }
    .client-logo {
        flex-basis: 120px; /* Smaller logos on mobile */
    }
    .testimonials-grid {
        grid-template-columns: 1fr; /* Stack testimonials */
    }
}

/* Archive & Single Service Item Styles */
.archive-header,
.single-service-page .entry-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}
.archive-header .page-title,
.single-service-page .entry-title {
    font-size: 2.8em; /* Larger title for these pages */
}

.services-archive-grid .service-block {
    /* Styles from .feature-block and .service-block already apply */
    /* We can add more specific overrides if needed */
    margin-bottom: 30px; /* Ensure spacing in the grid */
}
.services-archive-grid .service-title a {
    text-decoration: none;
    color: inherit; /* Inherit color from h3 */
}
.services-archive-grid .service-title a:hover {
    color: var(--wp--preset--color--secondary-blue);
}
.services-archive-grid .service-excerpt p {
    font-size: 0.95em;
    color: #555;
}
.services-archive-grid .read-more-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--wp--preset--color--primary-blue);
    font-weight: bold;
    text-decoration: none;
}
.services-archive-grid .read-more-link:hover {
    text-decoration: underline;
}

/* Single Service Page */
.single-service-page .service-item-full {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.single-service-page .service-icon-full-wrapper.post-thumbnail {
    text-align: center;
    margin-bottom: 30px;
}
.single-service-page .service-icon-full-wrapper img {
    max-width: 120px; /* Larger icon for single page */
    height: auto;
    border-radius: 50%; /* If you want circular icons like on homepage */
    background-color: var(--wp--preset--color--primary-blue); /* Match homepage icon bg */
    padding: 15px; /* Padding around the icon inside the circle */
    box-sizing: content-box;
}
.single-service-page .entry-content h2,
.single-service-page .entry-content h3,
.single-service-page .entry-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: var(--wp--preset--color--dark-grey-text);
}

/* Client Carousel Section */
.client-carousel-section {
    background-color: #eaf0f6; /* Light blue-gray background from screenshot */
    padding: 60px 0;
    text-align: center;
}

.client-carousel-section .section-title {
    font-size: 2.2em; /* Similar to .entry-title */
    color: #2c3e50; /* Dark grey text */
    margin-bottom: 10px;
    font-weight: bold;
}

.client-carousel-section .section-subtitle {
    font-size: 1.1em;
    color: #555; /* Medium grey text */
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.client-swiper {
    max-width: 1100px; /* Match .container width */
    margin: 0 auto;
    padding: 0 40px; /* Space for external nav buttons if needed, or adjust button pos */
    position: relative;
}

.client-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto; /* Let content define height */
    padding: 10px 0; /* Add some vertical padding for the slide itself */
}

.client-logo-container {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Make container take full width of slide */
    height: 120px; /* Fixed height for uniform cards, adjust as needed */
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.client-logo-container img {
    max-width: 100%;
    max-height: 100%; /* Ensure logo fits within the container's padding */
    width: auto;
    height: auto;
    object-fit: contain; /* Scales image while preserving aspect ratio */
    transition: opacity 0.3s ease;
    filter: none !important; /* Ensure client logos display in their original colors */
    -webkit-filter: none !important;
}

/* Additional highly specific selectors to ensure client logos display in color */
.client-swiper img,
.client-swiper .swiper-slide img,
.client-carousel-section img,
.client-logo img,
.client-logo-container > img,
.client-logo-container img,
img.client-logo,
div.client-logo-container img,
.client-swiper .swiper-wrapper .swiper-slide img,
.client-carousel-section .client-swiper img,
.client-carousel-section .swiper-slide img,
section.client-carousel-section img,
.wp-block-image img[class*="client"],
img[class*="client-logo"],
.swiper-slide img[src*="client"],
.swiper-slide img[src*="logo"],
.client-swiper .client-logo-container img {
    filter: none !important;
    -webkit-filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
}

/* Remove any grayscale or invert filters from all client carousel elements */
.client-carousel-section *,
.client-swiper *,
.client-carousel-section img,
.client-swiper img,
.client-logo-container img,
section.client-carousel-section *,
div.client-logo-container *,
.client-carousel-section .swiper-slide img,
.client-carousel-section .client-logo-container img,
section[class*="client"] img,
div[class*="client"] img {
    filter: none !important;
    -webkit-filter: none !important;
}

/* Force client logos to show in original colors - nuclear option */
img[src*="client"],
img[src*="logo"],
img[alt*="client"],
img[alt*="logo"],
.swiper-slide img[src*="wp-content/uploads"] {
    filter: none !important;
    -webkit-filter: none !important;
}

.client-logo-container:hover img {
    opacity: 0.8;
}

/* Swiper Navigation Buttons for Client Carousel */
.client-swiper .swiper-button-prev,
.client-swiper .swiper-button-next {
    background-color: #005A9C; /* Theme primary blue */
    color: #ffffff; /* White arrow */
    border-radius: 50%;
    width: 40px; /* Adjust size */
    height: 40px;
    line-height: 40px; /* For vertical centering of pseudo-element if needed */
    margin-top: -20px; /* Half of height to vertically center */
    transition: background-color 0.3s ease;
}
.client-swiper .swiper-button-prev:hover,
.client-swiper .swiper-button-next:hover {
    background-color: #004c86; /* Darker blue on hover */
}

.client-swiper .swiper-button-prev::after,
.client-swiper .swiper-button-next::after {
    font-size: 16px; /* Adjust arrow icon size */
    font-weight: bold;
}

.client-swiper .swiper-button-prev {
    left: 0px; /* Position just outside the swiper container */
}

.client-swiper .swiper-button-next {
    right: 0px; /* Position just outside the swiper container */
}

/* Swiper Pagination for Client Carousel */
.client-swiper .client-swiper-pagination {
    position: static; /* Display below the swiper */
    margin-top: 30px;
}

.client-swiper .client-swiper-pagination .swiper-pagination-bullet {
    background-color: #cccccc; /* Inactive dot color (grey) */
    opacity: 1;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

.client-swiper .client-swiper-pagination .swiper-pagination-bullet-active {
    background-color: #005A9C; /* Active dot color (blue) */
}

/* Responsive adjustments for client carousel */

/* Large tablets and small desktops */
@media (max-width: 1024px) and (min-width: 769px) {
    .client-logo-container {
        height: 140px; /* Slightly larger than desktop for better visibility */
        padding: 18px;
    }
    
    .client-swiper {
        padding: 0 30px;
    }
    
    .client-swiper .swiper-button-prev,
    .client-swiper .swiper-button-next {
        width: 35px;
        height: 35px;
        margin-top: -17px;
    }
}

/* Tablets and large mobile devices */
@media (max-width: 768px) and (min-width: 481px) {
    .client-carousel-section {
        padding: 50px 0;
    }
    
    .client-swiper {
        padding: 0 20px; /* Less padding on tablet */
    }
    
    .client-swiper .swiper-button-prev,
    .client-swiper .swiper-button-next {
        width: 32px;
        height: 32px;
        margin-top: -16px;
    }
    
    .client-swiper .swiper-button-prev::after,
    .client-swiper .swiper-button-next::after {
        font-size: 14px;
    }
    
    .client-logo-container {
        height: 180px; /* Larger height for better logo visibility on tablets */
        padding: 15px;
        border-radius: 12px;
    }
    
    .client-carousel-section .section-title {
        font-size: 2em;
    }
    
    .client-carousel-section .section-subtitle {
        font-size: 1em;
        margin-bottom: 35px;
    }
}

/* Mobile devices - Make images fill more of the screen */
@media (max-width: 480px) {
    .client-carousel-section {
        padding: 40px 0;
    }
    
    .client-swiper {
        padding: 0 15px; /* Minimal padding to maximize image space */
        max-width: 100%;
    }
    
    .client-swiper .swiper-slide {
        padding: 15px 0; /* More vertical padding for better spacing */
    }
    
    .client-swiper .swiper-button-prev,
    .client-swiper .swiper-button-next {
        width: 30px;
        height: 30px;
        margin-top: -15px;
        background-color: rgba(0, 90, 156, 0.9); /* More opaque for better visibility */
    }
    
    .client-swiper .swiper-button-prev::after,
    .client-swiper .swiper-button-next::after {
        font-size: 12px;
    }
    
    .client-logo-container {
        height: 220px; /* Much larger height for prominent mobile display */
        padding: 12px; /* Reduced padding to maximize image space */
        border-radius: 12px;
        margin: 0 5px; /* Small margin for better visual separation */
        box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Enhanced shadow for better definition */
    }
    
    .client-carousel-section .section-title {
        font-size: 1.8em;
        margin-bottom: 8px;
    }
    
    .client-carousel-section .section-subtitle {
        font-size: 0.95em;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    /* Make pagination more prominent on mobile */
    .client-swiper .client-swiper-pagination {
        margin-top: 25px;
    }
    
    .client-swiper .client-swiper-pagination .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
        margin: 0 6px;
    }
}

/* Very small mobile devices */
@media (max-width: 375px) {
    .client-carousel-section {
        padding: 35px 0;
    }
    
    .client-swiper {
        padding: 0 10px;
    }
    
    .client-logo-container {
        height: 200px; /* Still large but slightly reduced for very small screens */
        padding: 10px;
        margin: 0 3px;
    }
    
    .client-carousel-section .section-title {
        font-size: 1.6em;
        line-height: 1.2;
    }
    
    .client-carousel-section .section-subtitle {
        font-size: 0.9em;
        line-height: 1.4;
        padding: 0 5px;
    }
}

/* Extra small devices (iPhone SE, etc.) */
@media (max-width: 320px) {
    .client-logo-container {
        height: 180px; /* Adjusted for very small screens */
        padding: 8px;
    }
    
    .client-carousel-section .section-title {
        font-size: 1.5em;
    }
    
    .client-swiper .swiper-button-prev,
    .client-swiper .swiper-button-next {
        width: 28px;
        height: 28px;
        margin-top: -14px;
    }
    
    .client-swiper .swiper-button-prev::after,
    .client-swiper .swiper-button-next::after {
        font-size: 10px;
    }
}

/* Business Statistics Section Styles */
.business-statistics-section {
    position: relative;
    background-color: #222222 !important; /* Dark background to match other dark sections */
    color: #ffffff;
}

/* More specific selectors to override WordPress block styles */
.wp-block-group.alignfull.business-statistics-section,
.wp-block-group.business-statistics-section,
div.business-statistics-section,
section.business-statistics-section {
    background-color: #222222 !important;
    color: #ffffff !important;
}

/* Ensure text elements are white */
.business-statistics-section h2,
.business-statistics-section p,
.business-statistics-section .wp-block-heading {
    color: #ffffff !important;
}

.business-statistics-section .section-header {
    margin-bottom: 30px;
}

.business-statistics-section .section-header h2 {
    font-size: 2.8em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
}

.business-statistics-section .statistics-grid {
    margin: 40px 0;
    gap: 20px;
}

.business-statistics-section .statistic-box {
    margin-bottom: 20px;
}

.business-statistics-section .statistic-box .wp-block-group {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-statistics-section .statistic-box .wp-block-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.business-statistics-section .statistic-box h3 {
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.business-statistics-section .statistics-cta-button .wp-block-button__link {
    font-weight: 700;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.business-statistics-section .statistics-cta-button .wp-block-button__link:hover {
    background-color: #f8f9fa !important;
    color: #1e3a5f !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Interactive Statistics Styles */
.interactive-statistics .statistic-box {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Default colors for all boxes - consistent blue theme */
.business-statistics-section .statistic-box .wp-block-group {
    background-color: #005A9C !important; /* Site theme primary blue for all boxes */
    transition: all 0.3s ease;
}

/* Interactive hover effects */
.business-statistics-section .statistic-box .wp-block-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Active state highlighting - this should override the default colors */
.business-statistics-section .statistic-box.active .wp-block-group {
    background-color: #20B2AA !important; /* Teal highlight for active state */
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.3);
}

/* Ensure active state overrides even the first-child orange color */
.business-statistics-section .statistic-box:first-child.active .wp-block-group {
    background-color: #20B2AA !important; /* Teal highlight for active first box */
}

/* Responsive adjustments for statistics section */
@media (max-width: 1024px) {
    .business-statistics-section .section-header h2 {
        font-size: 2.4em;
    }
    
    .business-statistics-section .statistics-grid {
        gap: 15px;
    }
    
    .business-statistics-section .statistic-box .wp-block-group {
        min-height: 100px;
    }
    
    .business-statistics-section .statistic-box h3 {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 768px) {
    .business-statistics-section .section-header h2 {
        font-size: 2em;
    }
    
    .business-statistics-section .statistics-grid {
        gap: 15px;
    }
    
    .business-statistics-section .statistics-grid .wp-block-columns {
        flex-wrap: wrap;
    }
    
    .business-statistics-section .statistic-box {
        flex-basis: 48% !important;
        margin-bottom: 15px;
    }
    
    .business-statistics-section .statistic-box .wp-block-group {
        min-height: 90px;
    }
    
    .business-statistics-section .statistic-box h3 {
        font-size: 1.6rem !important;
    }
    
    .business-statistics-section .statistics-cta-button .wp-block-button__link {
        font-size: 1em;
        padding: 15px 30px !important;
    }
}

@media (max-width: 480px) {
    .business-statistics-section .section-header h2 {
        font-size: 1.8em;
    }
    
    .business-statistics-section .statistic-box {
        flex-basis: 100% !important;
        margin-bottom: 15px;
    }
    
    .business-statistics-section .statistic-box .wp-block-group {
        min-height: 80px;
    }
    
    .business-statistics-section .statistic-box h3 {
        font-size: 1.4rem !important;
    }
    
    .business-statistics-section .statistics-cta-button .wp-block-button__link {
        font-size: 0.9em;
        padding: 12px 25px !important;
        letter-spacing: 0.3px;
    }
}

/* Services Features Grid Section Styles */
.services-features-grid-section {
    background-color: #f4f7f6; /* Light grey background */
    padding: 60px 0;
}

.services-features-grid-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-features-grid-section .section-header h2 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.services-features-grid-section .section-subtitle {
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-features-grid .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 0;
}

.services-features-grid .wp-block-columns .wp-block-column {
    margin-bottom: 0;
}

.services-feature-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e8e8e8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (hover: hover) {
    .services-feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    }
}

.services-feature-icon-wrapper {
    background-color: #005A9C; /* Site theme primary blue */
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    transition: background-color 0.3s ease;
}

@media (hover: hover) {
    .services-feature-card:hover .services-feature-icon-wrapper {
        background-color: #004c86; /* Darker blue on hover */
    }
}

.services-feature-icon-wrapper .wp-block-image img {
    max-width: 40px;
    max-height: 40px;
    width: auto;
    height: auto;
    /* filter removed to show original icon colors */
}

/* Additional styling to ensure service icons appear filled/solid - but NOT client logos */
.services-feature-icon-wrapper img:not(.client-logo):not([class*="client"]) {
/*filter: brightness(0) invert(1) !important;
    -webkit-filter: brightness(0) invert(1) !important;*/
}

.services-feature-card h3 {
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.services-feature-card p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Responsive adjustments for services features grid */
@media (max-width: 1200px) {
    .services-features-grid .wp-block-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        padding: 0 10px;
    }
    
    .services-feature-card {
        padding: 35px 25px;
    }
}

@media (max-width: 1024px) {
    .services-features-grid .wp-block-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 0 15px;
    }
    
    .services-feature-card {
        padding: 35px 25px;
        max-width: none;
        width: 100%;
    }
    
    .services-features-grid-section .section-header h2 {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .services-features-grid-section {
        padding: 50px 0;
    }
    
    /* Completely flatten the structure for mobile - treat all cards equally */
    .services-features-grid {
        padding: 0 20px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .services-features-grid .wp-block-columns {
        display: contents !important; /* This makes the columns container invisible */
        margin: 0 !important;
        gap: 0 !important;
    }
    
    .services-features-grid .wp-block-columns .wp-block-column {
        display: block !important;
        margin: 0 0 25px 0 !important;
        flex-basis: auto !important;
        width: 100% !important;
    }
    
    /* Remove margin from the last card */
    .services-features-grid .wp-block-columns:last-child .wp-block-column:last-child {
        margin-bottom: 0 !important;
    }
    
    .services-feature-card {
        padding: 35px 25px;
        margin: 0 auto !important;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        min-height: auto;
    }
    
    .services-features-grid-section .section-header {
        padding: 0 20px;
    }
    
    .services-features-grid-section .section-header h2 {
        font-size: 2em;
        line-height: 1.2;
    }
    
    .services-features-grid-section .section-subtitle {
        font-size: 1em;
        line-height: 1.6;
    }
    
    .services-feature-icon-wrapper {
        width: 75px;
        height: 75px;
        margin-bottom: 20px;
    }
    
    .services-feature-icon-wrapper .wp-block-image img {
        max-width: 38px;
        max-height: 38px;
    }
    
    .services-feature-card h3 {
        font-size: 1.3em;
        line-height: 1.3;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .services-feature-card p {
        font-size: 1em;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

@media (max-width: 600px) {
    .services-features-grid-section {
        padding: 40px 0;
    }
    
    .services-features-grid .wp-block-columns {
        padding: 0 15px;
        gap: 20px;
        max-width: 450px;
    }
    
    .services-feature-card {
        padding: 30px 20px;
    }
    
    .services-features-grid-section .section-header {
        margin-bottom: 35px;
        padding: 0 15px;
    }
    
    .services-features-grid-section .section-header h2 {
        font-size: 1.9em;
    }
}

@media (max-width: 480px) {
    .services-features-grid-section {
        padding: 35px 0;
    }
    
    .services-features-grid-section .section-header {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .services-features-grid-section .section-header h2 {
        font-size: 1.8em;
        line-height: 1.2;
    }
    
    .services-features-grid .wp-block-columns {
        padding: 0 15px;
        gap: 20px;
        max-width: 400px;
    }
    
    .services-feature-card {
        padding: 25px 20px;
        border-radius: 10px;
    }
    
    .services-feature-icon-wrapper {
        width: 65px;
        height: 65px;
        margin-bottom: 18px;
    }
    
    .services-feature-icon-wrapper .wp-block-image img {
        max-width: 32px;
        max-height: 32px;
    }
    
    .services-feature-card h3 {
        font-size: 1.2em;
        line-height: 1.3;
        margin-bottom: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .services-feature-card p {
        font-size: 0.95em;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* Additional mobile-specific fixes for very small screens */
@media (max-width: 375px) {
    .services-features-grid .wp-block-columns {
        padding: 0 10px;
        max-width: 350px;
    }
    
    .services-feature-card {
        padding: 20px 15px;
    }
    
    .services-features-grid-section .section-header {
        padding: 0 10px;
    }
    
    .services-features-grid-section .section-header h2 {
        font-size: 1.7em;
    }
    
    .services-feature-card h3 {
        font-size: 1.1em;
        word-break: break-word;
        line-height: 1.3;
    }
    
    .services-feature-card p {
        font-size: 0.9em;
        line-height: 1.5;
    }
    
    .services-feature-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .services-feature-icon-wrapper .wp-block-image img {
        max-width: 30px;
        max-height: 30px;
    }
}

/* Extra small screens (iPhone SE, etc.) */
@media (max-width: 320px) {
    .services-features-grid .wp-block-columns {
        padding: 0 8px;
        max-width: 300px;
    }
    
    .services-feature-card {
        padding: 18px 12px;
    }
    
    .services-features-grid-section .section-header h2 {
        font-size: 1.6em;
    }
    
    .services-feature-card h3 {
        font-size: 1em;
        margin-bottom: 10px;
    }
    
    .services-feature-card p {
        font-size: 0.85em;
        line-height: 1.4;
    }
}

/* ==========================================================================
   ## Dynamic Service Offerings Styles (Shortcode Approach)
   ========================================================================== */

/* Dynamic Service Offerings Grid */
.service-offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
    padding: 0;
}

.service-offerings-grid .service-offering-item {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e8e8e8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.service-offerings-grid .service-offering-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.service-offerings-grid .service-offering-icon {
    background-color: #1e3075;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px auto;
    transition: background-color 0.3s ease;
}

.service-offerings-grid .service-offering-icon .wp-block-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.service-offerings-grid .service-offering-icon figure {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: 100%;
}

.service-offerings-grid .service-offering-item:hover .service-offering-icon {
    background-color: #004c86;
}

.service-offerings-grid .service-offering-icon img:not(.client-logo):not([class*="client"]) {
    max-width: 45px;
    max-height: 45px;
    width: auto;
    height: auto;
    /* filter removed to show original icon colors */
    display: block !important;
    margin: 0 auto !important;
    flex-shrink: 0;
    object-fit: contain;
}

.service-offerings-grid .service-offering-title {
    font-size: 1.6em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.service-offerings-grid .service-offering-description {
    font-size: 1.05em;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Dynamic Service Offerings Responsive Styles */
@media (max-width: 1200px) {
    .service-offerings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 10px;
    }
    
    .service-offerings-grid .service-offering-item {
        padding: 35px 25px;
    }
}

@media (max-width: 1024px) {
    .service-offerings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 0 15px;
    }
    
    .service-offerings-grid .service-offering-item {
        padding: 35px 25px;
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .service-offerings-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 20px;
        max-width: 500px;
        margin: 30px auto;
    }
    
    .service-offerings-grid .service-offering-item {
        padding: 35px 25px;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .service-offerings-grid .service-offering-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 25px;
    }
    
    .service-offerings-grid .service-offering-icon img {
        max-width: 40px;
        max-height: 40px;
    }
    
    .service-offerings-grid .service-offering-title {
        font-size: 1.4em;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .service-offerings-grid .service-offering-description {
        font-size: 1em;
        line-height: 1.6;
    }
}

@media (max-width: 600px) {
    .service-offerings-grid {
        padding: 0 15px;
        gap: 20px;
        max-width: 450px;
        margin: 25px auto;
    }
    
    .service-offerings-grid .service-offering-item {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .service-offerings-grid {
        padding: 0 15px;
        gap: 20px;
        max-width: 400px;
        margin: 20px auto;
    }
    
    .service-offerings-grid .service-offering-item {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .service-offerings-grid .service-offering-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .service-offerings-grid .service-offering-icon img {
        max-width: 35px;
        max-height: 35px;
    }
    
    .service-offerings-grid .service-offering-title {
        font-size: 1.3em;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .service-offerings-grid .service-offering-description {
        font-size: 0.95em;
        line-height: 1.5;
    }
}

@media (max-width: 375px) {
    .service-offerings-grid {
        padding: 0 10px;
        max-width: 350px;
    }
    
    .service-offerings-grid .service-offering-item {
        padding: 20px 15px;
    }
    
    .service-offerings-grid .service-offering-title {
        font-size: 1.2em;
        word-break: break-word;
        line-height: 1.3;
    }
    
    .service-offerings-grid .service-offering-description {
        font-size: 0.9em;
        line-height: 1.5;
    }
    
    .service-offerings-grid .service-offering-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 18px;
    }
    
    .service-offerings-grid .service-offering-icon img {
        max-width: 32px;
        max-height: 32px;
    }
}

@media (max-width: 320px) {
    .service-offerings-grid {
        padding: 0 8px;
        max-width: 300px;
    }
    
    .service-offerings-grid .service-offering-item {
        padding: 18px 12px;
    }
    
    .service-offerings-grid .service-offering-title {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    .service-offerings-grid .service-offering-description {
        font-size: 0.85em;
        line-height: 1.4;
    }
    
    .service-offerings-grid .service-offering-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .service-offerings-grid .service-offering-icon img {
        max-width: 30px;
        max-height: 30px;
    }
}

/* Service Offerings Section Styles */
.service-offerings-section {
    background-color: #2c3e50; /* Dark background like screenshot */
    color: #ffffff;
    padding: 80px 0;
}

.service-offerings-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.service-offerings-section .section-header h2 {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.service-offerings-section .section-intro {
    font-size: 1.2em;
    color: #e0e0e0;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
    text-align: center;
}

/* Modern Flexible Service Offerings Grid - Auto-adjusts to any number of services */
.service-offerings-section .service-offerings-grid,
.service-offerings-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 35px 30px !important;
    max-width: 1400px !important;
    margin: 60px auto 0 !important;
    padding: 0 20px !important;
    justify-items: center !important;
}

/* Override WordPress block columns - flatten them for the grid */
.service-offerings-section .service-offerings-grid .wp-block-columns,
.service-offerings-section .wp-block-columns,
.service-offerings-grid .wp-block-columns,
div.service-offerings-section div.service-offerings-grid .wp-block-columns {
    display: contents !important;
    margin: 0 !important;
}

.service-offerings-section .service-offerings-grid .wp-block-columns .wp-block-column,
.service-offerings-section .wp-block-columns .wp-block-column,
.service-offerings-grid .wp-block-columns .wp-block-column,
.service-offerings-grid .service-offering-item {
    margin: 0 !important;
    width: 100% !important;
    max-width: 450px !important;
}

.service-offering-card {
    background-color: #ffffff;
    padding: 45px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

@media (hover: hover) {
    .service-offering-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 35px rgba(0,0,0,0.18);
    }
    .service-offering-card:hover .service-offering-card-cta {
        color: #004c86;
        transform: translateX(4px);
    }
}

.service-offering-card-title {
    margin-top: 0;
}

.service-offering-card-link {
    color: inherit;
    text-decoration: none;
}

.service-offering-card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 16px;
}

.service-offering-card-link:focus {
    outline: none;
}

.service-offering-card:focus-within {
    outline: 3px solid #ffb84d;
    outline-offset: 4px;
}

.service-offering-card-cta {
    display: inline-block;
    margin-top: 20px;
    color: #005A9C;
    font-weight: 600;
    font-size: 0.95em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.service-offering-icon-wrapper {
    background-color: #005A9C;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-offering-icon-wrapper .wp-block-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: 100%;
}

@media (hover: hover) {
    .service-offering-card:hover .service-offering-icon-wrapper {
        background-color: #004c86;
        transform: scale(1.05);
    }
}

.service-offering-icon-wrapper .wp-block-image img:not(.client-logo):not([class*="client"]) {
    max-width: 50px;
    max-height: 50px;
    width: auto;
    height: auto;
    /* filter removed to show original icon colors */
    display: block !important;
    margin: 0 auto !important;
}

.service-offering-icon-wrapper img.service-offering-icon {
    width: 55px !important;
    height: 55px !important;
    /* filter removed to show original icon colors */
    display: block !important;
    margin: 0 auto !important;
    flex-shrink: 0;
    object-fit: contain;
}

.service-offering-card h3 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 18px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.service-offering-card p {
    font-size: 1em;
    color: #555;
    line-height: 1.65;
    margin-bottom: 0;
    text-align: center;
    flex-grow: 1;
}


/* Responsive adjustments for service offerings */
@media (max-width: 1024px) {
    .service-offerings-grid {
        gap: 30px;
        margin-top: 50px;
    }
    
    .service-offering-card {
        padding: 35px 30px;
    }
    
    .service-offerings-section .section-header h2 {
        font-size: 2.4em;
    }
    
    .service-offerings-section .section-intro {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .service-offerings-section {
        padding: 60px 0;
    }
    
    .service-offerings-section .section-header {
        padding: 0 20px;
        margin-bottom: 40px;
    }
    
    .service-offerings-section .section-header h2 {
        font-size: 2.2em;
        line-height: 1.2;
    }
    
    .service-offerings-section .section-intro {
        font-size: 1em;
        line-height: 1.6;
    }
    
    /* Handle both block pattern and shortcode versions */
    .service-offerings-grid,
    .service-offerings-grid .wp-block-columns {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
        max-width: 500px !important;
    }
    
    .service-offerings-grid .wp-block-columns .wp-block-column,
    .service-offerings-grid .service-offering-item {
        margin: 0 !important;
        width: 100% !important;
        flex-basis: auto !important;
    }
    
    .service-offering-card {
        padding: 30px 25px;
        margin: 0 auto !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .service-offering-icon-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 25px;
    }
    
    .service-offering-icon-wrapper .wp-block-image img {
        max-width: 40px;
        max-height: 40px;
    }
    
    .service-offering-card h3 {
        font-size: 1.4em;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .service-offering-card p {
        font-size: 1em;
        line-height: 1.6;
        text-align: center; /* Center text on mobile for better readability */
    }
}

@media (max-width: 480px) {
    .service-offerings-section {
        padding: 60px 0;
    }
    
    .service-offerings-section .section-header {
        margin-bottom: 40px;
    }
    
    .service-offerings-section .section-header h2 {
        font-size: 1.9em;
    }
    
    .service-offering-card {
        padding: 25px 20px;
    }
    
    .service-offering-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .service-offering-icon-wrapper .wp-block-image img {
        max-width: 35px;
        max-height: 35px;
    }
    
    .service-offering-card h3 {
        font-size: 1.3em;
    }
    
    .service-offering-card p {
        font-size: 1em;
    }
}

/* ==========================================================================
   ## Services Page Styles
   ========================================================================== */

/* Services Page Layout */
.services-page {
    background-color: transparent;
}

.services-page-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Center the Services page title */
.services-page .entry-header {
    text-align: center;
    margin-bottom: 40px;
}

.services-page .entry-title {
    text-align: center;
}

/* Ensure services page content doesn't have container constraints that might cause issues */
.services-page .entry-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Services page specific responsive adjustments */
@media (max-width: 768px) {
    .services-page .wp-block-group.alignfull {
        margin-left: 0;
        margin-right: 0;
        width: 100vw;
        max-width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .services-page .services-features-grid-section,
    .services-page .service-offerings-section {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Services Closing CTA Section */
.services-cta-section {
    background-color: #1e3075;
    padding: 70px 20px;
    text-align: center;
    width: 100%;
    color: #ffffff;
}

.services-cta-inner {
    max-width: 760px;
    margin: 0 auto;
}

.services-cta-heading {
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 16px;
}

.services-cta-subheading {
    font-size: 1.15em;
    line-height: 1.6;
    color: #d8e1f2;
    margin: 0 0 32px;
}

.cta-button.services-cta-button {
    background-color: #ffffff;
    color: #1e3075;
    padding: 16px 36px;
    font-size: 1.05em;
}

@media (hover: hover) {
    .cta-button.services-cta-button:hover {
        background-color: #f3f6fc;
        color: #1e3075;
    }
}

.cta-button.services-cta-button:focus-visible {
    outline: 3px solid #ffb84d;
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .services-cta-section {
        padding: 50px 20px;
    }
    .services-cta-heading {
        font-size: 1.8em;
    }
    .services-cta-subheading {
        font-size: 1em;
    }
}

/* Services Brand Block */
.services-brand-block {
    background-color: #1e3075;
    padding: 40px 20px 60px;
    text-align: center;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.services-brand-block-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.services-brand-logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .services-brand-block {
        padding: 40px 20px;
    }

    .services-brand-logo {
        max-width: 250px;
    }
}

/* Services Comments Section */
.services-comments-section {
    margin-top: 40px;
    padding: 30px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .services-comments-section {
        margin-top: 30px;
        padding: 20px 15px;
    }
}

/* ==========================================================================
   ## About Us Page Styles
   ========================================================================== */

/* About Us Hero Section */
.about-hero-intro {
    max-width: 800px;
    margin: 0 auto;
}

/* About Us Our Story Section */
.wp-block-columns.are-vertically-aligned-center {
    align-items: center;
}

.wp-block-image.has-custom-border img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.wp-block-image.has-custom-border img:hover {
    transform: scale(1.02);
}

/* About Us Statistics Badges */
.wp-block-group.has-background[style*="background-color:#e8f4fd"] {
    background-color: #e8f4fd !important;
    border: 1px solid #b3d9f2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-group.has-background[style*="background-color:#e8f4fd"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 90, 156, 0.15);
}

/* About Us Values Section */
.wp-block-group.has-background[style*="background-color:#f4f7f6"] {
    background-color: #f4f7f6 !important;
}

.wp-block-group.has-white-background-color[style*="border-radius:12px"] {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-group.has-white-background-color[style*="border-radius:12px"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Leadership Section Styles */
.leadership-section {
    background-color: #ffffff;
    padding: 80px 0;
}

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

.leadership-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.leadership-section .section-header h2 {
    font-size: 2.8em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.leadership-section .section-header p {
    font-size: 1.2em;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.leadership-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e8e8e8;
}

.leadership-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.leader-photo {
    width: 100%;
    height: 320px; /* Increased height for better proportions */
    overflow: hidden;
    background-color: #f8f9fa;
    position: relative;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* This will fit the entire image within the container without cropping */
    object-position: center center; /* Center the image both horizontally and vertically */
    transition: transform 0.3s ease;
    display: block;
}

.leadership-card:hover .leader-photo img {
    transform: scale(1.05);
}

.leader-info {
    padding: 30px 25px;
    text-align: center;
}

.leader-name {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.leader-role {
    font-size: 1.1em;
    color: #005A9C;
    margin-bottom: 20px;
    font-weight: 500;
}

.leader-bio {
    font-size: 1em;
    color: #666;
    line-height: 1.7;
    text-align: left;
}

.leader-bio p {
    margin-bottom: 15px;
}

.leader-bio p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for leadership section */
@media (max-width: 1024px) {
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .leadership-section .section-header h2 {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .leadership-section {
        padding: 60px 0;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }
    
    .leadership-section .section-header {
        margin-bottom: 40px;
    }
    
    .leadership-section .section-header h2 {
        font-size: 2.2em;
    }
    
    .leadership-section .section-header p {
        font-size: 1.1em;
    }
    
    .leader-photo {
        height: 250px;
    }
    
    .leader-info {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .leadership-section {
        padding: 40px 0;
    }
    
    .leadership-section .section-header h2 {
        font-size: 1.9em;
    }
    
    .leader-photo {
        height: 220px;
    }
    
    .leader-info {
        padding: 20px 15px;
    }
    
    .leader-name {
        font-size: 1.3em;
    }
    
    .leader-role {
        font-size: 1em;
    }
}

/* ======================================================================
   Services page mobile readability and layout fixes
   - Prevent squished columns and over-aggressive word breaks
   ====================================================================== */

/* Force Gutenberg columns in "Our Commitment" (services-features-grid-section) to stack on mobile/tablet */
@media (max-width: 1024px) {
    .services-features-grid-section .services-features-grid .wp-block-columns {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        margin: 0 !important;
    }
    .services-features-grid-section .services-features-grid .wp-block-columns .wp-block-column {
        width: 100% !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
    }
}

/* Relax word-breaking inside cards for readability */
.services-feature-card h3,
.services-feature-card p,
.service-offering-card h3,
.service-offering-card p,
.service-offerings-grid .service-offering-title,
.service-offerings-grid .service-offering-description {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

/* Also ensure section headings don't hyphenate/break oddly */
.services-features-grid-section h2,
.services-features-grid-section h3,
.service-offerings-section h2,
.service-offerings-section h3 {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

/* Ensure cards take full width on very small screens */
@media (max-width: 480px) {
    .services-feature-card,
    .service-offering-card,
    .service-offerings-grid .service-offering-item {
        width: 100% !important;
        max-width: 100% !important;
    }
}
