/*
Theme Name: DermaCare Theme
Theme URI: http://localhost/dermacare_family_health
Author: DermaCare Family Health
Author URI: http://localhost/dermacare_family_health
Description: A modern medical practice theme for DermaCare Family Health inspired by Haltha Connect design patterns.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dermacare
*/

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
    /* Brand Colors (HSL for better control) */
    --dc-navy-h: 216;
    --dc-navy-s: 55%;
    --dc-navy-l: 24%;
    --dc-navy: hsl(var(--dc-navy-h), var(--dc-navy-s), var(--dc-navy-l));
    --dc-navy-muted: hsla(var(--dc-navy-h), var(--dc-navy-s), var(--dc-navy-l), 0.1);

    --dc-green-h: 85;
    --dc-green-s: 54%;
    --dc-green-l: 51%;
    --dc-green: hsl(var(--dc-green-h), var(--dc-green-s), var(--dc-green-l));
    --dc-green-muted: hsla(var(--dc-green-h), var(--dc-green-s), var(--dc-green-l), 0.1);

    --dc-teal-h: 185;
    --dc-teal-s: 100%;
    --dc-teal-l: 35%;
    --dc-teal: hsl(var(--dc-teal-h), var(--dc-teal-s), var(--dc-teal-l));

    --dc-blue-h: 204;
    --dc-blue-s: 70%;
    --dc-blue-l: 63%;
    --dc-blue: hsl(var(--dc-blue-h), var(--dc-blue-s), var(--dc-blue-l));

    /* Modern Gradients */
    --grad-primary: linear-gradient(135deg, var(--dc-navy) 0%, var(--dc-navy-dark, #122442) 100%);
    --grad-surface: linear-gradient(135deg, #ffffff 0%, #f3f6f9 100%);
    --grad-accent: linear-gradient(135deg, var(--dc-green) 0%, var(--dc-teal) 100%);
    --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);

    /* Semantic Colors */
    --color-primary: var(--dc-navy);
    --color-secondary: var(--dc-green);
    --color-accent: var(--dc-teal);
    --color-surface: #ffffff;
    --color-background: #f8fafc;
    --color-text: #1e293b;
    --color-text-muted: #64748b;

    /* Neutrals */
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;

    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-section: 6rem;

    /* Border Radius (More rounded for modern look) */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Shadows (Soft & Multi-layered) */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 35px 60px -15px rgba(0, 0, 0, 0.2);
    --shadow-soft: 0 10px 30px rgba(0, 0, 100, 0.05);

    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-headings: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
}

/* ============================================
   GLASSMORPHISM & EFFECTS
   ============================================ */
.glass {
    background: var(--grad-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(27, 54, 93, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   CSS RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.7;
    overflow-x: hidden;
    margin: 0;
}

a {
    transition: all 0.2s ease;
}

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;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gray-900);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.text-accent {
    color: var(--color-accent);
}

.text-white {
    color: var(--color-white);
}

.text-muted {
    color: var(--color-gray-500);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

@media (min-width: 640px) {
    :root {
        --container-padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --container-padding: 2rem;
    }
}

.section {
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-3xl);
}

.section--sm {
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
}

/* Grid */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .md\:grid-cols-2,
    .lg\:grid-cols-3,
    .lg\:grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Flex */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

.gap-xl {
    gap: var(--spacing-xl);
}

/* Text alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--dc-navy-light) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(27, 54, 93, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 54, 93, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--dc-green-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(141, 198, 63, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(141, 198, 63, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--dc-teal-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 164, 180, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 164, 180, 0.4);
}

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

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-100);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-body {
    padding: var(--spacing-xl);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-gray-900);
}

.card-text {
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.25rem 0;
}

.header--scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Styling */
.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--dc-navy);
}

.header__logo img {
    height: 50px;
    width: auto;
}

.header__logo span {
    color: var(--dc-green);
}

/* Navigation Links */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dc-navy);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-accent);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--dc-teal);
}

/* Logo Fallback Text */
.logo-text {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dc-navy);
}

.text-green {
    color: var(--dc-green);
}

/* Mobile Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: white;
    border: 1px solid var(--color-gray-200);
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dc-navy);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle:hover {
    border-color: var(--dc-green);
    box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: white;
        padding: 8rem 2rem 2rem;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header__nav.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .nav-menu a {
        font-size: 1.25rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: calc(var(--spacing-xl) + 6rem) 0 var(--spacing-2xl);
    min-height: 85vh;
    background: var(--dc-navy);
    color: white;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(27, 54, 93, 0.8) 100%);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr);
    gap: 3rem;
    align-items: center;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero__kicker-dot {
    width: 8px;
    height: 8px;
    background: var(--dc-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--dc-green);
}

.hero__title {
    font-family: var(--font-headings);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: white;
}

.hero__text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    max-width: 550px;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}

.hero__stat {
    text-align: left;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    backdrop-filter: blur(8px);
}

.hero__stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-white);
}

.hero__stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero__panel {
    display: grid;
    gap: 1.5rem;
}

.hero__panel-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    padding: 1.75rem;
    color: #ffffff;
    box-shadow: 0 25px 50px rgba(4, 15, 45, 0.35);
}

.hero__panel-card--accent {
    background: linear-gradient(135deg, rgba(141, 198, 63, 0.28) 0%, rgba(0, 164, 180, 0.25) 100%);
}

.hero__panel-card--glass {
    background: rgba(255, 255, 255, 0.15);
}

.hero__panel-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero__panel-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero__panel-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.hero__panel-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    display: grid;
    gap: 0.6rem;
}

.hero__panel-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero__panel-list li::before {
    content: '✓';
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding-top: 80px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--spacing-md);
    }

    .hero__stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero__stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-kicker {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, rgba(141, 198, 63, 0.15) 0%, rgba(0, 164, 180, 0.15) 100%);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-md);
}

.section-lead {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Light variant for dark sections */
.section-kicker--light {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

.section-title--light {
    color: var(--color-white);
}

.section-lead--light {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, var(--dc-navy) 0%, #1a2f6b 45%, #1939b7 100%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -45%;
    right: -12%;
    width: 420px;
    height: 420px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    filter: blur(80px);
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -12%;
    width: 460px;
    height: 460px;
    background: rgba(0, 164, 180, 0.18);
    border-radius: 50%;
    filter: blur(90px);
}

.stats-section .section-kicker--light {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stats-section .section-title--light {
    color: #ffffff;
}

.stats-section .section-lead--light {
    color: rgba(255, 255, 255, 0.75);
}

.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 40px rgba(10, 20, 60, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--dc-green) 0%, var(--dc-teal) 50%, var(--dc-blue) 100%);
}

.stat-card__icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.stat-card__icon svg {
    width: 32px;
    height: 32px;
}

.stat-card__value {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.stat-card__label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   PROCESS STEPS
   ============================================ */
.section--steps {
    overflow: hidden;
}

.step-item {
    position: relative;
    padding: 2rem;
    z-index: 1;
}

.step-icon {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-item:hover .step-icon {
    background: var(--dc-green);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(141, 198, 63, 0.3);
}

.step-body {
    transition: all 0.3s ease;
}

.step-item:hover .step-body {
    border-left-color: var(--dc-green);
}

/* ============================================
   SERVICES GRID
   ============================================ */
.service-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-gray-100);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--dc-navy-muted);
}

.service-card__img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.service-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-card__img img {
    transform: scale(1.1);
}

.service-card__body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dc-navy);
}

.service-card__excerpt {
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-lg);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-100);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
}

.team-card__avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto var(--spacing-lg);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow-lg);
}

.team-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-xs);
}

.team-card__role {
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.team-card__link {
    color: var(--color-gray-500);
    font-weight: 600;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.team-card__link:hover {
    color: var(--color-primary);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-100);
    padding: var(--spacing-xl);
    position: relative;
}

.testimonial-card__quote {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.testimonial-card__stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--spacing-md);
}

.testimonial-card__stars svg {
    width: 20px;
    height: 20px;
    fill: #fbbf24;
}

.testimonial-card__content {
    color: var(--color-gray-600);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.testimonial-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dc-navy) 0%, var(--dc-teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 700;
}

.testimonial-card__name {
    font-weight: 700;
    color: var(--color-gray-900);
}

.testimonial-card__meta {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-item {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-200);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--color-primary);
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    cursor: pointer;
    font-weight: 600;
    color: var(--color-gray-900);
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary .icon {
    width: 32px;
    height: 32px;
    background: rgba(27, 54, 93, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.faq-item summary .icon svg {
    width: 12px;
    height: 12px;
    stroke: var(--color-primary);
    transition: transform var(--transition-base);
}

.faq-item[open] summary .icon {
    background: var(--color-primary);
}

.faq-item[open] summary .icon svg {
    stroke: var(--color-white);
    transform: rotate(180deg);
}

.faq-item__answer {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--color-gray-600);
    line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--dc-navy) 0%, var(--dc-teal-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 200px 200px;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.cta-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dc-navy);
    color: white;
    padding: var(--spacing-section) 0 var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(141, 198, 63, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.footer__title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--dc-green);
}

.footer__links a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.footer__links a:hover {
    color: var(--dc-green);
    transform: translateX(5px);
}

.footer__contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer__contact-icon {
    color: var(--dc-green);
    flex-shrink: 0;
}

.footer__social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.footer__social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer__social a:hover {
    background: var(--dc-green);
}

.footer__social svg {
    width: 20px;
    height: 20px;
    fill: var(--color-white);
}

.footer__bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ============================================
   MISC COMPONENTS
   ============================================ */
.section-kicker {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--dc-navy-muted);
    color: var(--dc-navy);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.section-lead {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-gray-100);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* ============================================
   INTERNAL PAGES
   ============================================ */
.page-header {
    background: var(--grad-primary);
    padding: 8rem 0 4rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -10%;
    width: 120%;
    height: 200px;
    background: var(--color-background);
    border-radius: 50% / 100%;
}

.page-header__title {
    color: white;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.page-header__breadcrumb {
    font-size: 0.875rem;
    opacity: 0.8;
}

.page-header__breadcrumb a {
    color: var(--dc-green);
    font-weight: 600;
}

.page-content {
    padding: var(--spacing-xl) 0;
}

/* Team Card Premium Styling */
.team-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-gray-100);
    text-align: center;
    transition: all 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--dc-green-muted);
}

.team-card__avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--color-gray-50);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.team-card:hover .team-card__avatar {
    border-color: var(--dc-green);
}

.team-card__name {
    font-size: 1.125rem;
    color: var(--dc-navy);
    margin-bottom: 0.25rem;
}

.team-card__role {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dc-green);
    font-weight: 700;
    margin-bottom: 1rem;
}

.team-card__link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dc-navy);
    transition: all 0.2s ease;
}

.team-card__link:hover {
    color: var(--dc-teal);
    letter-spacing: 0.05em;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: white;
    border: 1px solid var(--color-gray-200);
    color: var(--dc-navy);
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--dc-navy);
    color: white;
    border-color: var(--dc-navy);
}

/* ============================================
   HEADER ADD-ONS
   ============================================ */
.header__nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ============================================
   INTERNAL PAGES POLISH
   ============================================ */
.page-header {
    background: var(--dc-navy);
    /* Solid background for contrast */
    padding: 10rem 0 6rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(circle at center, rgba(141, 198, 63, 0.1) 0%, transparent 70%);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -10%;
    width: 120%;
    height: 200px;
    background: #f8fafc;
    /* Matches typical bg-gray-50 */
    border-radius: 50% / 100%;
}

.page-header__title {
    color: white;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.page-header__breadcrumb {
    font-size: 0.875rem;
    opacity: 0.8;
}

.page-header__breadcrumb a {
    color: var(--dc-green);
    font-weight: 600;
}

.page-content {
    padding: var(--spacing-xl) 0;
}

/* Team Card Premium Styling */
.team-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-gray-100);
    text-align: center;
    transition: all 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--dc-green-muted);
}

.team-card__avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--color-gray-50);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.team-card:hover .team-card__avatar {
    border-color: var(--dc-green);
}

.team-card__name {
    font-size: 1.125rem;
    color: var(--dc-navy);
    margin-bottom: 0.25rem;
}

.team-card__role {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dc-green);
    font-weight: 700;
    margin-bottom: 1rem;
}

.team-card__link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dc-navy);
    transition: all 0.2s ease;
}

.team-card__link:hover {
    color: var(--dc-teal);
    letter-spacing: 0.05em;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: white;
    border: 1px solid var(--color-gray-200);
    color: var(--dc-navy);
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--dc-navy);
    color: white;
    border-color: var(--dc-navy);
}

/* ================= ===========================
   RESPONSIVE OVERRIDES (Extended)
   ============================================ */
@media (max-width: 1024px) {
    .header {
        padding: 1rem 0;
    }

    .header .logo img {
        max-height: 40px;
    }

    .header__right .btn {
        display: none;
        /* Hide button on mobile in menu row */
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--spacing-xl) 0;
    }

    .hero {
        text-align: center;
        padding-top: 9rem;
        min-height: auto;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    /* Force high contrast on mobile buttons */
    .hero .btn-primary.glass {
        background: white;
        color: var(--dc-navy) !important;
        border-color: white;
        opacity: 1;
    }

    .hero .btn-secondary {
        background: var(--dc-green);
        color: var(--dc-navy) !important;
        font-weight: 800;
        border: none;
    }

    .hero__stats {
        margin-top: 3rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 3rem 1.5rem;
        margin-top: 0;
    }

    .header .container {
        padding-top: 0.5rem;
        /* Ensure logo isn't cut off */
    }
}

.footer__bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer__bottom-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer__bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer__bottom-links a:hover {
    color: var(--color-white);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.wow {
    visibility: hidden;
}

.fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

.fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.fadeInDown {
    animation: fadeInDown 0.8s ease forwards;
}

.fadeInLeft {
    animation: fadeInLeft 0.8s ease forwards;
}

.fadeInRight {
    animation: fadeInRight 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
        visibility: visible;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
        visibility: visible;
    }
}

/* Swiper Customization */
.swiper-button-prev,
.swiper-button-next {
    width: 44px !important;
    height: 44px !important;
    background: var(--color-white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 16px !important;
    color: var(--color-primary);
    font-weight: bold;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--color-gray-300);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--color-primary);
    width: 24px;
    border-radius: var(--radius-full);
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Contact Form */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(27, 54, 93, 0.1);
}

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    color: var(--color-gray-700);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

/* WordPress Core Styles */
.wp-block-image img {
    border-radius: var(--radius-lg);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: var(--spacing-lg);
}

.alignright {
    float: right;
    margin-left: var(--spacing-lg);
}

/* Screen Reader Text */
.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;
    width: 1px;
    word-wrap: normal !important;
}

/* =========================================
   Haltha Enhancements
   ========================================= */

/* Why Choose Us Section */
.why__img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.why__img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.video-play-btn svg {
    margin-left: 4px;
    /* Optical adjustment */

}

/* Features Section */
.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    /* Smooth rounded corners */
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: var(--color-secondary);
    flex-shrink: 0;
}

.feature-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Compensation Section */
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.check-list svg {
    color: var(--color-secondary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Process Steps Section */
.section--steps {
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Background pattern */
.section--steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 25%);
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.step-item:hover .step-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.step-body {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 2rem;
    margin-left: 1.85rem;
    /* Center with icon (60px/2 = 30px) */
    padding-bottom: 1rem;
}

.step-body h4 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.btn-outline-white {
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline-white:hover {
    background: #fff;
    color: var(--color-primary);
    text-decoration: none;
}

/* Placeholder Styling */
.img-placeholder {
    width: 100%;
    background: #f3f4f6;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.section-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   UI FIXES & UTILITIES (2026-02-10)
   ============================================ */
:root {
    --color-white: #ffffff;
    --dc-navy-dark: hsl(var(--dc-navy-h), var(--dc-navy-s), 16%);
    --dc-navy-light: hsl(var(--dc-navy-h), 42%, 36%);
    --dc-green-dark: hsl(var(--dc-green-h), 60%, 40%);
    --dc-teal-dark: hsl(var(--dc-teal-h), 100%, 28%);
    --dc-blue-dark: hsl(var(--dc-blue-h), 65%, 42%);
    --container-max: 1200px;
    --container-padding: 1.25rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 5rem;
    --spacing-4xl: 7.5rem;
    --radius-2xl: 1.5rem;
    --transition-base: 0.3s ease;
    --transition-fast: 0.2s ease;
    --font-primary: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
    --font-headings: 'Sora', 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}

svg {
    display: inline-block;
    vertical-align: middle;
    max-width: none;
}

svg:not([width]):not([height]) {
    width: 1.125rem;
    height: 1.125rem;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.absolute-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shrink-0 {
    flex-shrink: 0;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 800;
}

.text-gray-500 {
    color: var(--color-gray-500);
}

.text-gray-600 {
    color: var(--color-gray-600);
}

.text-gray-700 {
    color: var(--color-gray-700);
}

.text-gray-900 {
    color: var(--color-gray-900);
}

.bg-white {
    background: var(--color-white);
}

.bg-gray-50 {
    background: var(--color-gray-50);
}

.bg-gray-100 {
    background: var(--color-gray-100);
}

.bg-gray-200 {
    background: var(--color-gray-200);
}

.bg-gradient-to-br {
    background-image: linear-gradient(135deg, var(--tw-gradient-from, var(--dc-navy)) 0%, var(--tw-gradient-to, var(--dc-navy-dark)) 100%);
}

.from-navy {
    --tw-gradient-from: var(--dc-navy);
}

.to-navy-dark {
    --tw-gradient-to: var(--dc-navy-dark);
}

.rounded-md {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-full {
    border-radius: var(--radius-full);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.mb-xs {
    margin-bottom: var(--spacing-xs);
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mt-xs {
    margin-top: var(--spacing-xs);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.space-y-sm > * + * {
    margin-top: var(--spacing-sm);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.glass-surface {
    background: var(--grad-surface);
    border: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-soft);
}

.btn-circle-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
}

.section-desc {
    color: var(--color-gray-600);
    font-size: 1.05rem;
    line-height: 1.8;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-100);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.service-card__img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card__body {
    padding: var(--spacing-lg);
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-gray-900);
}

.service-card__excerpt {
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-md);
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-100);
    padding: var(--spacing-lg);
    position: relative;
    height: 100%;
}

.testimonial-card__quote {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 3rem;
    color: var(--dc-navy-muted);
    line-height: 1;
}

.testimonial-card__stars {
    display: flex;
    gap: 4px;
    color: #f59e0b;
    margin-bottom: var(--spacing-sm);
}

.testimonial-card__stars svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.testimonial-card__content {
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--dc-navy);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.testimonial-card__name {
    font-weight: 700;
    color: var(--color-gray-900);
}

.testimonial-card__meta {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.faq-item {
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    margin-bottom: var(--spacing-sm);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    font-weight: 600;
    color: var(--color-gray-900);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item .icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--dc-navy-muted);
    color: var(--dc-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.faq-item .icon svg {
    width: 14px;
    height: 14px;
}

.faq-item[open] .icon {
    background: var(--dc-green-muted);
    color: var(--dc-green-dark);
    transform: rotate(180deg);
}

.faq-item__answer {
    padding-top: var(--spacing-sm);
    color: var(--color-gray-600);
}

.footer__heading,
.footer__title {
    color: var(--color-white);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.footer__heading::after,
.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--dc-green);
}

.footer__brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer__contact p {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer__contact svg {
    width: 20px;
    height: 20px;
    color: var(--dc-green);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer__contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer__contact a:hover {
    color: var(--dc-green);
}

/* Additional utilities and page fixes */
.bg-green-soft {
    background: var(--dc-green-muted);
}

.bg-primary-light {
    background: var(--dc-navy-muted);
}

.bg-secondary-light {
    background: var(--dc-green-muted);
}

.bg-light {
    background: var(--color-gray-50);
}

.text-gray-400 {
    color: var(--color-gray-400);
}

.text-muted {
    color: var(--color-gray-500);
}

.border-0 {
    border: 0;
}

.border-top {
    border-top: 1px solid var(--color-gray-200);
}

.border-4 {
    border-width: 4px;
}

.border-primary {
    border-color: var(--color-primary);
}

.rounded-pill {
    border-radius: var(--radius-full);
}

.rounded-circle {
    border-radius: 50%;
}

.shadow {
    box-shadow: var(--shadow-md);
}

.overflow-hidden {
    overflow: hidden;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.h-100 {
    height: 100%;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 2rem;
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.mt-5 {
    margin-top: 2rem;
}

.p-4 {
    padding: 1.5rem;
}

.p-5 {
    padding: 2.5rem;
}

.px-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-5 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.fw-semibold {
    font-weight: 600;
}

.lead {
    font-size: 1.125rem;
    color: var(--color-gray-600);
}

.small {
    font-size: 0.875rem;
}

.brightness-0 {
    filter: brightness(0);
}

.invert {
    filter: invert(1);
}

.icon-sm {
    width: 20px;
    height: 20px;
}

.icon-md {
    width: 32px;
    height: 32px;
}

.box-xs {
    width: 32px;
    height: 32px;
}

.box-sm {
    width: 48px;
    height: 48px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.row > [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    width: 100%;
}

.col-md-6,
.col-lg-3,
.col-lg-6,
.col-lg-8,
.col-lg-10,
.col-xl-8 {
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-6 {
        width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-3 {
        width: 25%;
    }

    .col-lg-6 {
        width: 50%;
    }

    .col-lg-8 {
        width: 66.6667%;
    }

    .col-lg-10 {
        width: 83.3333%;
    }

    .mb-lg-0 {
        margin-bottom: 0;
    }
}

@media (min-width: 1200px) {
    .col-xl-8 {
        width: 66.6667%;
    }
}

.page-hero {
    padding: 8rem 0 4rem;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    text-align: center;
    position: relative;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

.breadcrumbs {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--dc-green);
    font-weight: 600;
}

.about-img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.story-text p {
    margin-bottom: 1rem;
    color: var(--color-gray-600);
    line-height: 1.7;
}

.mission-box {
    background: var(--color-white);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-card {
    border: 1px solid var(--color-gray-100);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    background: var(--dc-green-muted);
    color: var(--dc-green);
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    overflow: hidden;
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    width: 100%;
    text-align: left;
    background: var(--color-white);
    border: 0;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--color-gray-900);
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.accordion-button::after {
    content: '+';
    margin-left: auto;
    font-weight: 700;
    color: var(--color-primary);
    transition: transform var(--transition-fast);
}

.accordion-button:not(.collapsed)::after {
    content: '–';
    transform: rotate(180deg);
}

.accordion-collapse.collapse {
    display: none;
}

.accordion-collapse.collapse.show {
    display: block;
}

.accordion-body {
    padding: 0 1.25rem 1rem;
    color: var(--color-gray-600);
    line-height: 1.7;
}

.faq-accordion {
    margin-bottom: var(--spacing-lg);
}

.page-hero + .section {
    padding-top: var(--spacing-xl);
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__placeholder {
    width: 100%;
    height: 100%;
}

.why__img-container {
    position: relative;
}

.why__img-blob {
    position: absolute;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(141, 198, 63, 0.2), rgba(0, 164, 180, 0.1));
    border-radius: 50%;
    top: -40px;
    right: -60px;
    filter: blur(10px);
    z-index: 0;
}

.animate-pulse-slow {
    animation: pulseSlow 4s ease-in-out infinite;
}

@keyframes pulseSlow {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-md);
}

.section--features .features__img,
.section--compensation .comp__img {
    justify-self: center;
}

.service-card__placeholder,
.service-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
}

.entry-content {
    color: var(--color-gray-700);
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1rem;
}

/* Content typography defaults for all rich-text areas */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--color-gray-900);
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.entry-content h1 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
}

.entry-content h2 {
    font-size: clamp(1.55rem, 2.5vw, 1.95rem);
}

.entry-content h3 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.entry-content h4 {
    font-size: 1.2rem;
}

.entry-content h5 {
    font-size: 1.05rem;
}

.entry-content h6 {
    font-size: 0.95rem;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.1rem 1.25rem;
    padding-left: 1rem;
}

.entry-content ul {
    list-style: disc;
}

.entry-content ul ul {
    list-style: circle;
}

.entry-content ul ul ul {
    list-style: square;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 0.45rem;
    color: var(--color-gray-700);
}

.entry-content li > ul,
.entry-content li > ol {
    margin-top: 0.45rem;
    margin-bottom: 0.45rem;
}

.entry-content a.button,
.entry-content button,
.entry-content input[type="submit"],
.entry-content input[type="button"],
.entry-content input[type="reset"] {
    border-radius: var(--radius-lg);
    font-weight: 600;
}

.widget {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-100);
    margin-bottom: var(--spacing-lg);
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.header-cta {
    white-space: nowrap;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

.h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.about-story,
.about-values,
.faq-page {
    position: relative;
    z-index: 1;
}

.why__content,
.features__content,
.comp__content {
    max-width: 560px;
}

.md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.site-main {
    min-height: 60vh;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .header__nav {
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 7.5rem;
    }

    .service-card__img {
        height: 180px;
    }

    .testimonial-card {
        padding: var(--spacing-md);
    }

    .footer__grid {
        gap: var(--spacing-xl);
    }
}

/* ============================================
   Aesthetic Refresh (Logo Palette)
   ============================================ */
:root {
    --dc-navy-h: 220;
    --dc-navy-s: 42%;
    --dc-navy-l: 14%;
    --dc-green-h: 140;
    --dc-green-s: 58%;
    --dc-green-l: 45%;
    --dc-teal-h: 188;
    --dc-teal-s: 70%;
    --dc-teal-l: 40%;
    --dc-blue-h: 227;
    --dc-blue-s: 88%;
    --dc-blue-l: 56%;
    --color-background: #f2f4f7;
    --color-text: #17202a;
    --color-text-muted: #5b6672;
    --color-gray-50: #f7f9fc;
    --color-gray-100: #eef2f6;
    --color-gray-200: #dfe6ee;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #9fb0c2;
    --color-gray-500: #7c8fa3;
    --color-gray-600: #58687a;
    --color-gray-700: #3e4a58;
    --color-gray-800: #2a323c;
    --color-gray-900: #1a222c;
    --grad-primary: linear-gradient(135deg, hsl(var(--dc-navy-h), var(--dc-navy-s), 14%) 0%, hsl(var(--dc-blue-h), 86%, 50%) 100%);
    --grad-accent: linear-gradient(135deg, hsl(var(--dc-green-h), 60%, 45%) 0%, hsl(var(--dc-teal-h), 70%, 42%) 100%);
    --grad-surface: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
    --shadow-soft: 0 14px 38px rgba(23, 32, 42, 0.12);
    --shadow-lg: 0 28px 60px rgba(23, 32, 42, 0.16);
    --shadow-xl: 0 40px 80px rgba(23, 32, 42, 0.2);
    --font-primary: 'Poppins', 'Segoe UI', Arial, sans-serif;
    --font-headings: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: var(--color-background);
    background-image:
        radial-gradient(900px 420px at 8% -10%, rgba(47, 179, 88, 0.16), transparent 60%),
        radial-gradient(1000px 500px at 90% -20%, rgba(41, 84, 255, 0.12), transparent 60%);
    color: var(--color-text);
}

a {
    color: var(--color-primary);
}

a:hover {
    color: var(--dc-teal);
}

.section {
    padding-top: var(--spacing-4xl);
    padding-bottom: var(--spacing-4xl);
}

.section-header {
    margin-bottom: var(--spacing-4xl);
}

.section-kicker {
    background: rgba(47, 179, 88, 0.14);
    border: 1px solid rgba(47, 179, 88, 0.28);
    color: var(--dc-navy);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.section-kicker--light {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
}

.section-title {
    letter-spacing: -0.02em;
}

.card,
.service-card,
.team-card,
.testimonial-card {
    background: var(--grad-surface);
    border: 1px solid rgba(23, 32, 42, 0.08);
    box-shadow: var(--shadow-soft);
}

.card:hover,
.service-card:hover,
.team-card:hover,
.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}

.header {
    color: #ffffff;
}

.header__logo {
    color: #ffffff;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.88);
}

.nav-menu a:hover {
    color: #ffffff;
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.96);
}

.header--scrolled .nav-menu a {
    color: var(--color-gray-800);
}

.header--scrolled .nav-menu a:hover {
    color: var(--dc-teal);
}

.header--scrolled .header__logo {
    color: var(--dc-navy);
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.menu-toggle span {
    background: #ffffff;
}

.header--scrolled .menu-toggle {
    background: #ffffff;
    border-color: var(--color-gray-200);
}

.header--scrolled .menu-toggle span {
    background: var(--dc-navy);
}

.hero {
    background: var(--grad-primary);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(600px 320px at 15% 20%, rgba(255, 255, 255, 0.1), transparent 60%),
        radial-gradient(500px 300px at 80% 10%, rgba(47, 179, 88, 0.25), transparent 65%);
    opacity: 0.9;
}

.hero__bg {
    z-index: 0;
}

.hero__bg img {
    opacity: 0.35;
}

.hero__kicker {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.page-header,
.page-hero {
    background: var(--grad-primary);
}

.page-header::before,
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: radial-gradient(circle at 20% 20%, rgba(47, 179, 88, 0.22), transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(41, 84, 255, 0.18), transparent 45%);
    opacity: 0.85;
    pointer-events: none;
}

.page-header .container,
.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-header::after {
    display: none;
}

.stats-section {
    background: var(--grad-primary);
}

.stat-card {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-section {
    background: linear-gradient(135deg, hsl(var(--dc-navy-h), 55%, 18%) 0%, hsl(var(--dc-blue-h), 80%, 45%) 100%);
}

.cta-section::before {
    opacity: 0.6;
}

.footer {
    background: linear-gradient(135deg, hsl(var(--dc-navy-h), 55%, 14%) 0%, hsl(var(--dc-navy-h), 48%, 20%) 60%, hsl(var(--dc-blue-h), 55%, 26%) 100%);
}

.btn-primary {
    background: var(--grad-primary);
}

.btn-secondary {
    background: var(--grad-accent);
}

.btn-outline {
    border-width: 1.5px;
}

.pagination .page-numbers {
    border-color: rgba(31, 42, 55, 0.12);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--grad-primary);
    border-color: transparent;
}

@media (max-width: 768px) {
    .section {
        padding-top: var(--spacing-2xl);
        padding-bottom: var(--spacing-2xl);
    }
}

/* ============================================
   Inner Page Headers
   ============================================ */
.page-header,
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 8rem 0 4.5rem;
    text-align: left;
}

.page-hero {
    text-align: center;
}

.page-hero .container {
    align-items: center;
}

.page-header .container,
.page-hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.page-header__title,
.page-title {
    color: #ffffff;
    letter-spacing: -0.02em;
}

.page-header__lead {
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.page-header__breadcrumb,
.breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    width: fit-content;
}

.page-header__breadcrumb a,
.breadcrumbs a {
    color: #ffffff;
    font-weight: 600;
}

.page-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.page-header__actions .btn-white {
    background: rgba(255, 255, 255, 0.95);
}

/* Scroll progress + back to top */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--grad-accent);
    z-index: 2000;
    transition: width 0.1s ease;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--grad-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* Quick Contact Widget */
.quick-contact {
    position: fixed;
    right: 24px;
    bottom: 96px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1500;
}

.quick-contact__item {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #ffffff;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.quick-contact__item:hover,
.quick-contact__item:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--grad-primary);
    color: #ffffff;
    border-color: transparent;
}

.quick-contact__item svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.quick-contact__item span {
    position: absolute;
    right: calc(100% + 10px);
    background: #ffffff;
    color: var(--color-gray-700);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateX(6px);
    transition: all var(--transition-fast);
    pointer-events: none;
    white-space: nowrap;
}

.quick-contact__item:hover span,
.quick-contact__item:focus-visible span {
    opacity: 1;
    transform: translateX(0);
}

.quick-contact__item--primary {
    background: var(--grad-primary);
    color: #ffffff;
    border: none;
}

.quick-contact__item:hover svg,
.quick-contact__item:focus-visible svg {
    transform: scale(1.08);
}

.quick-contact__item--primary:hover,
.quick-contact__item--primary:focus-visible {
    background: linear-gradient(135deg, var(--dc-navy-dark) 0%, var(--dc-blue-dark) 100%);
}

@media (max-width: 768px) {
    .page-header,
    .page-hero {
        padding: 7rem 0 4rem;
    }
}

@media (max-width: 640px) {
    .page-header__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-hero .page-header__actions {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .quick-contact {
        right: 50%;
        transform: translateX(50%);
        bottom: 90px;
        flex-direction: row;
        background: rgba(255, 255, 255, 0.95);
        padding: 0.5rem 0.75rem;
        border-radius: 999px;
        box-shadow: var(--shadow-lg);
    }

    .quick-contact__item span {
        display: none;
    }
}

/* ============================================
   Blog Experience
   ============================================ */
.blog-hero {
    padding: clamp(8.8rem, 11.6vw, 10rem) 0 clamp(3.6rem, 5.8vw, 5rem);
    background: linear-gradient(180deg, #e9f2ff 0%, #f7fbff 100%);
}

.blog-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2.5rem;
    align-items: center;
}

.blog-hero__title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
}

.blog-hero__text {
    color: var(--color-gray-600);
    margin-bottom: 2rem;
    max-width: 520px;
}

.blog-hero__search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
    max-width: 520px;
}

.blog-hero__search-icon {
    font-size: 1rem;
    color: var(--color-gray-500);
}

.blog-hero__search-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.blog-hero__search-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
    color: var(--color-gray-800);
    background: transparent;
}

.blog-hero__panel {
    background: var(--grad-surface);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-100);
}

.blog-hero__panel-title {
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: 0.5rem;
}

.blog-hero__panel-text {
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
}

.blog-hero__panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-hero__panel-tags span {
    background: rgba(41, 84, 255, 0.12);
    color: var(--color-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-content {
    background: transparent;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.5rem;
    align-items: start;
}

.blog-layout--single {
    grid-template-columns: minmax(0, 1fr) 300px;
}

.blog-main {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.blog-section-header h2 {
    margin-bottom: 0.75rem;
}

.blog-section-header p {
    color: var(--color-gray-600);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.post-card {
    background: #fff;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.post-card__media {
    display: block;
    height: 200px;
    overflow: hidden;
    background: var(--grad-primary);
}

.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card__body {
    padding: 1.5rem;
}

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--color-gray-500);
    margin-bottom: 0.75rem;
}

.post-card__title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--color-gray-900);
}

.post-card__title a {
    color: inherit;
}

.post-card__excerpt {
    color: var(--color-gray-600);
    margin-bottom: 1rem;
}

.post-card__link {
    font-weight: 600;
    color: var(--color-primary);
}

/* ============================================
   Section Design Enhancements (Current Colors)
   ============================================ */
.section--feature-split .feature-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.feature-split__media {
    display: grid;
    gap: 1.5rem;
}

.media-card {
    background: #ffffff;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.media-card__image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.media-card__overlay {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    gap: 1rem;
    background: #ffffff;
}

.media-card__label {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    gap: 0.75rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--color-gray-700);
}

.feature-list__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--dc-green-muted);
    color: var(--dc-green);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tags span {
    background: rgba(41, 84, 255, 0.12);
    color: var(--color-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.about-card {
    background: #ffffff;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-soft);
}

.about-card__top {
    padding: 1.75rem 2rem;
    color: var(--color-gray-900);
}

.about-card__title {
    font-size: 1.35rem;
    margin: 0;
}

.about-card__body {
    padding: 1.5rem 2rem 2rem;
    color: var(--color-gray-600);
    line-height: 1.7;
    background: #ffffff;
}

.about-card--green .about-card__top {
    background: linear-gradient(135deg, rgba(141, 198, 63, 0.22) 0%, rgba(0, 164, 180, 0.2) 100%);
}

.about-card--blue .about-card__top {
    background: linear-gradient(135deg, rgba(41, 84, 255, 0.2) 0%, rgba(0, 164, 180, 0.18) 100%);
}

.section--spotlight .spotlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: center;
}

.spotlight-card {
    background: #ffffff;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-100);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.spotlight-card__image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

.spotlight-card__info {
    padding: 1.5rem;
}

.spotlight-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.spotlight-card__role {
    color: var(--color-gray-500);
    margin-bottom: 1rem;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.spotlight-card__name,
.spotlight-card__link {
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.spotlight-card.is-switching .spotlight-card__image img {
    opacity: 0.35;
    transform: scale(1.015);
    filter: blur(1px);
}

.spotlight-card.is-switching .spotlight-card__name,
.spotlight-card.is-switching .spotlight-card__role,
.spotlight-card.is-switching .spotlight-card__link {
    opacity: 0;
    transform: translateY(8px);
}

.spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.spotlight-mini-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.25rem 0 0.75rem;
}

.spotlight-mini-nav {
    display: flex;
    gap: 0.5rem;
}

.spotlight-mini-nav button {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--color-gray-200);
    background: #ffffff;
    color: var(--dc-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.spotlight-mini-nav button:hover {
    background: var(--dc-navy);
    color: #ffffff;
    border-color: var(--dc-navy);
}

.spotlight-mini-nav button svg {
    width: 18px;
    height: 18px;
}

.spotlight-mini-nav .swiper-button-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.spotlight-mini-nav.is-locked {
    opacity: 0.4;
    pointer-events: none;
}

.swiper.spotlight-mini-swiper {
    width: 100%;
    overflow: hidden;
    padding-top: 0.4rem;
    padding-bottom: 0;
}

.spotlight-mini-swiper .swiper-slide {
    height: auto;
}

.spotlight-mini-swiper .swiper-wrapper {
    padding-top: 0.15rem;
}

.spotlight-mini-swiper .swiper-pagination {
    position: static;
    margin-top: 1.25rem;
    padding-top: 0.15rem;
}

.spotlight-mini-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    will-change: transform, box-shadow, border-color;
}

.spotlight-mini-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.spotlight-mini-card p {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

.spotlight-mini-swiper .swiper-slide-active .spotlight-mini-card {
    border-color: var(--dc-blue);
    box-shadow: var(--shadow-md);
    animation: spotlightCardPulse 0.62s cubic-bezier(0.22, 0.61, 0.36, 1);
    animation-delay: 0.06s;
}

@keyframes spotlightCardPulse {
    0% {
        transform: translateY(4px) scale(0.985);
        opacity: 0.85;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .section--feature-split .feature-split,
    .section--spotlight .spotlight-grid,
    .about-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
}

/* Swiper reliability + graceful fallback */
.team-swiper,
.testimonials-swiper,
.related-posts-swiper {
    width: 100%;
}

.team-swiper .swiper-wrapper,
.testimonials-swiper .swiper-wrapper,
.related-posts-swiper .swiper-wrapper {
    align-items: stretch;
}

.team-swiper .swiper-slide,
.testimonials-swiper .swiper-slide,
.related-posts-swiper .swiper-slide {
    height: auto;
}

.swiper:not(.swiper-initialized) {
    overflow: visible;
}

.swiper:not(.swiper-initialized) .swiper-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.swiper:not(.swiper-initialized) .swiper-slide {
    width: 280px;
    scroll-snap-align: start;
}

.swiper:not(.swiper-initialized) .swiper-wrapper::-webkit-scrollbar {
    height: 6px;
}

.swiper:not(.swiper-initialized) .swiper-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: 999px;
}

/* Team slider reliability (fallback if Swiper fails) */
.swiper {
    width: 100%;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    flex-shrink: 0;
}

.swiper:not(.swiper-initialized) .swiper-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
}

.swiper:not(.swiper-initialized) .swiper-slide {
    width: 280px;
    scroll-snap-align: start;
}

/* Inner page section cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-sm);
}

.info-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--dc-navy-muted);
    color: var(--dc-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.info-card h4 {
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--color-gray-600);
    font-size: 0.95rem;
}

.split-callout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    margin-top: 3rem;
}

.split-callout__panel {
    background: #ffffff;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    border: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-lg);
}

.split-callout__panel h3 {
    margin-bottom: 0.75rem;
}

.split-callout__panel p {
    color: var(--color-gray-600);
}

.split-callout__image {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-lg);
    background: #ffffff;
}

.split-callout__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1024px) {
    .info-grid,
    .split-callout {
        grid-template-columns: 1fr;
    }
}

.blog-pagination {
    text-align: center;
}

.blog-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: #fff;
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    border: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-soft);
}

.sidebar-card h3 {
    margin-bottom: 1rem;
}

.sidebar-card--cta {
    background: #ffffff;
    color: var(--color-gray-900);
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-soft);
}

.sidebar-card--cta h3,
.sidebar-card--cta p {
    color: var(--color-gray-900);
}

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-posts-swiper {
    overflow: hidden;
}

.popular-posts-swiper .swiper-wrapper {
    align-items: stretch;
}

.popular-posts-swiper .swiper-slide {
    height: auto;
}

.popular-posts-swiper .swiper-pagination {
    position: static;
    margin-top: 0.75rem;
}

.popular-card {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.popular-card__thumb {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--color-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-primary);
}

.popular-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-card p {
    font-size: 0.9rem;
    color: var(--color-gray-900);
    margin-bottom: 0.35rem;
}

.popular-card span {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

.post-meta {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-sm);
}

.post-share {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-200);
}

.post-share h4 {
    margin-bottom: 1rem;
}

.post-share__icons {
    display: flex;
    gap: 0.75rem;
}

.post-nav {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.post-nav__link {
    flex: 1;
    min-width: 200px;
}

.post-nav__link--next {
    text-align: right;
}

.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-gray-200);
}

.related-posts h3 {
    margin-bottom: 1.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.related-post-card {
    background: #ffffff;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-soft);
    height: 100%;
}

.related-post-card__media {
    display: block;
    height: 160px;
    background: var(--grad-primary);
    overflow: hidden;
}

.related-post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-card__placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
}

.related-post-card__body {
    padding: 1.25rem;
}

.related-post-card__meta {
    color: var(--color-gray-500);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.related-post-card__title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.related-post-card__title a {
    color: var(--color-gray-900);
}

.related-post-card__excerpt {
    color: var(--color-gray-600);
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .blog-layout,
    .blog-layout--single {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 7.3rem 0 4rem;
    }

    .blog-hero__inner {
        grid-template-columns: 1fr;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero__search {
        flex-wrap: wrap;
        border-radius: 24px;
    }
}

/* ============================================
   Header Fix (Readable on All Pages)
   ============================================ */
.header {
    background: #ffffff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 230, 236, 0.7);
    box-shadow: var(--shadow-soft);
}

.header__logo {
    color: var(--dc-navy);
}

.header__logo img {
    height: 62px;
    width: auto;
}

.header__right {
    gap: 1.5rem;
}

.nav-menu {
    gap: 2.25rem;
}

.nav-menu a {
    color: var(--color-gray-800);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav-menu a:hover {
    color: var(--dc-blue);
}

.nav-menu .current-menu-item>a,
.nav-menu .current_page_item>a,
.nav-menu .current-menu-ancestor>a {
    color: var(--dc-blue);
}

.nav-menu .current-menu-item>a::after,
.nav-menu .current_page_item>a::after,
.nav-menu .current-menu-ancestor>a::after {
    width: 100%;
}

.menu-toggle {
    background: #ffffff;
    border-color: var(--color-gray-200);
}

.menu-toggle span {
    background: var(--dc-navy);
}

.header--scrolled {
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 230, 236, 0.8);
    box-shadow: var(--shadow-md);
}

/* Keep homepage navbar white from top (no transparent state). */
.is-front-page .header {
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 230, 236, 0.7);
    box-shadow: var(--shadow-soft);
}

.is-front-page .header__logo,
.is-front-page .nav-menu a {
    color: var(--color-gray-800);
}

.is-front-page .nav-menu a:hover {
    color: var(--dc-blue);
}

.is-front-page .menu-toggle {
    background: #ffffff;
    border-color: var(--color-gray-200);
}

.is-front-page .menu-toggle span {
    background: var(--dc-navy);
}

.is-front-page .header--scrolled {
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 230, 236, 0.8);
    box-shadow: var(--shadow-md);
}

.is-front-page .header--scrolled .header__logo,
.is-front-page .header--scrolled .nav-menu a {
    color: var(--color-gray-800);
}

.is-front-page .header--scrolled .nav-menu a:hover {
    color: var(--dc-blue);
}

@media (max-width: 1024px) {
    .header__logo img {
        height: 54px;
    }

    .nav-menu {
        gap: var(--spacing-lg);
    }

    .nav-menu a {
        font-size: 1.125rem;
    }
}

/* ============================================
   Remove Page Side Spacing
   ============================================ */
body {
    padding: 0 !important;
    margin: 0 !important;
}

/* ============================================
   Inner Page Header (Light Design)
   ============================================ */
.page-header,
.page-hero {
    background: linear-gradient(180deg, #eaf2ff 0%, #f8fbff 100%);
    color: var(--color-gray-900);
}

.page-header::before,
.page-hero::before {
    background-image:
        radial-gradient(circle at 15% 20%, rgba(47, 179, 88, 0.2), transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(41, 84, 255, 0.16), transparent 45%);
    opacity: 0.7;
}

.page-header::after,
.page-hero::after {
    display: none;
    content: none;
}

.page-header__title,
.page-title {
    color: var(--color-gray-900);
}

.page-header__lead {
    color: var(--color-gray-600);
}

.page-header__breadcrumb,
.breadcrumbs {
    background: #ffffff;
    border: 1px solid var(--color-gray-200);
    color: var(--color-gray-700);
}

.page-header__breadcrumb a,
.breadcrumbs a {
    color: var(--color-primary);
}

.page-header__actions .btn-white {
    background: #ffffff;
    border: 1px solid var(--color-gray-200);
    color: var(--color-gray-900);
}

/* ============================================
   Contact Form 7 Shared UI
   ============================================ */
.dermacare-cf7 .wpcf7-form p {
    margin-bottom: var(--spacing-lg);
}

.dermacare-cf7 .wpcf7-form p:last-child {
    margin-bottom: 0;
}

.dermacare-cf7 .wpcf7-form label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    color: var(--color-gray-700);
}

.dermacare-cf7 .wpcf7-form-control-wrap {
    display: block;
    margin-top: 0.35rem;
}

.dermacare-cf7 input[type="text"],
.dermacare-cf7 input[type="email"],
.dermacare-cf7 input[type="tel"],
.dermacare-cf7 input[type="number"],
.dermacare-cf7 input[type="file"],
.dermacare-cf7 textarea,
.dermacare-cf7 select {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-gray-800);
    background: #fff;
    transition: all var(--transition-fast);
}

.dermacare-cf7 textarea {
    min-height: 140px;
    resize: vertical;
}

.dermacare-cf7 input[type="file"] {
    padding: 0.75rem;
}

.dermacare-cf7 input:focus,
.dermacare-cf7 textarea:focus,
.dermacare-cf7 select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(27, 54, 93, 0.1);
}

.dermacare-cf7 input[type="submit"] {
    width: 100%;
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.95rem 1.25rem;
    background: var(--grad-primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.dermacare-cf7 input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.02);
}

.dermacare-cf7 .wpcf7-acceptance label {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0;
    font-weight: 400;
    color: var(--color-gray-600);
}

.dermacare-cf7 .wpcf7-acceptance input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.dermacare-cf7 .wpcf7-not-valid-tip {
    color: #b42318;
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.dermacare-cf7 .wpcf7-response-output {
    margin: 0 0 1rem;
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
}

/* ============================================
   Career Single UI
   ============================================ */
.single-career .career-single-card {
    border-radius: var(--radius-2xl);
}

.single-career .career-single-card__body {
    padding: 2rem;
}

.single-career .career-meta {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-gray-600);
}

.single-career .career-description {
    font-size: 1rem;
    line-height: 1.8;
}

.single-career .career-description p {
    margin-bottom: 0.9rem;
}

.single-career .career-apply-wrap {
    margin-top: 2rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.single-career .career-form-tip {
    margin-top: 0.75rem;
    color: var(--color-gray-600);
    font-size: 0.9rem;
}

.single-career .career-form-empty {
    margin: 0;
    color: var(--color-gray-600);
}

.single-career .career-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.single-career .career-actions .btn {
    margin: 0;
}

@media (max-width: 768px) {
    .single-career .career-single-card__body,
    .single-career .career-apply-wrap {
        padding: 1.25rem;
    }
}

/* ============================================
   Indigenous Acknowledgement
   ============================================ */
.indigenous-acknowledgement {
    background: var(--color-white);
}

.indigenous-acknowledgement__card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 420px);
    gap: clamp(1.25rem, 2.6vw, 2.5rem);
    align-items: center;
    padding: clamp(1.5rem, 2.7vw, 2.75rem);
    border-radius: 30px;
    border: 1px solid rgba(23, 40, 78, 0.12);
    background: linear-gradient(122deg, #edf8f4 0%, #edf5ff 54%, #e8efff 100%);
    box-shadow: 0 20px 44px rgba(18, 36, 72, 0.1);
    overflow: hidden;
}

.indigenous-acknowledgement__card::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -96px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(41, 84, 255, 0.2) 0%, rgba(41, 84, 255, 0) 68%);
    pointer-events: none;
}

.indigenous-acknowledgement__media,
.indigenous-acknowledgement__content {
    position: relative;
    z-index: 1;
}

.indigenous-acknowledgement__kicker {
    margin-bottom: 0.9rem;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    border: 1px solid rgba(47, 179, 88, 0.32);
    background: rgba(255, 255, 255, 0.6);
}

.indigenous-acknowledgement__content {
    max-width: 720px;
}

.indigenous-acknowledgement__media {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.indigenous-acknowledgement__badge-wrap {
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.indigenous-acknowledgement__badge {
    display: block;
    width: min(100%, 390px);
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(22, 44, 86, 0.12);
    box-shadow: 0 18px 32px rgba(15, 36, 75, 0.18);
}

.indigenous-acknowledgement__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.2;
    color: var(--dc-navy);
}

.indigenous-acknowledgement__text {
    margin: 0;
    color: var(--color-gray-700);
    font-size: clamp(1rem, 1.3vw, 1.16rem);
    line-height: 1.75;
    max-width: 64ch;
}

@media (max-width: 900px) {
    .indigenous-acknowledgement__card {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        border-radius: 24px;
    }

    .indigenous-acknowledgement__media {
        justify-content: flex-start;
    }

    .indigenous-acknowledgement__badge-wrap {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .indigenous-acknowledgement__card {
        padding: 1.25rem;
    }

    .indigenous-acknowledgement__badge {
        width: min(100%, 300px);
    }

    .indigenous-acknowledgement__title {
        font-size: 1.28rem;
    }

    .indigenous-acknowledgement__text {
        font-size: 0.98rem;
        line-height: 1.65;
    }
}

/* ============================================
   Brand Refresh (Logo-Aligned Palette + Button Hovers)
   ============================================ */
:root {
    --dc-navy-h: 223;
    --dc-navy-s: 56%;
    --dc-navy-l: 18%;

    --dc-green-h: 150;
    --dc-green-s: 62%;
    --dc-green-l: 47%;

    --dc-teal-h: 183;
    --dc-teal-s: 66%;
    --dc-teal-l: 44%;

    --dc-blue-h: 227;
    --dc-blue-s: 79%;
    --dc-blue-l: 52%;

    --dc-green-dark: hsl(var(--dc-green-h), 64%, 40%);
    --dc-teal-dark: hsl(var(--dc-teal-h), 70%, 38%);
    --dc-blue-dark: hsl(var(--dc-blue-h), 78%, 46%);
    --dc-navy-dark: hsl(var(--dc-navy-h), 58%, 14%);
    --dc-navy-light: hsl(var(--dc-blue-h), 72%, 57%);

    --dc-green: hsl(var(--dc-green-h), var(--dc-green-s), var(--dc-green-l));
    --dc-teal: hsl(var(--dc-teal-h), var(--dc-teal-s), var(--dc-teal-l));
    --dc-blue: hsl(var(--dc-blue-h), var(--dc-blue-s), var(--dc-blue-l));
    --dc-navy: hsl(var(--dc-navy-h), var(--dc-navy-s), var(--dc-navy-l));

    --color-primary: var(--dc-navy);
    --color-secondary: var(--dc-green);
    --color-accent: var(--dc-teal);

    --grad-primary: linear-gradient(135deg, var(--dc-navy) 0%, var(--dc-blue) 100%);
    --grad-accent: linear-gradient(135deg, var(--dc-green) 0%, var(--dc-teal) 100%);
}

a:hover {
    color: var(--dc-blue);
}

.btn-primary {
    background: var(--grad-primary);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: linear-gradient(135deg, var(--dc-navy-dark) 0%, var(--dc-blue-dark) 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(24, 53, 140, 0.32);
}

.btn-secondary {
    background: var(--grad-accent);
    color: #ffffff;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: linear-gradient(135deg, var(--dc-green-dark) 0%, var(--dc-teal-dark) 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(26, 171, 137, 0.32);
}

.btn-accent:hover,
.btn-accent:focus-visible {
    color: #ffffff;
}

.btn-outline {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: var(--grad-primary);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(24, 53, 140, 0.26);
}

.btn-white:hover,
.btn-white:focus-visible {
    background: var(--grad-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(24, 53, 140, 0.24);
}

.hero .btn-primary,
.hero .btn-primary:hover,
.hero .btn-secondary,
.hero .btn-secondary:hover {
    color: #ffffff;
}

/* ============================================
   Website Layout Redesign (Global + Services)
   ============================================ */
:root {
    --layout-surface: #f4f7fc;
    --layout-surface-soft: #eef3fb;
    --layout-card: #ffffff;
    --layout-border: #dce5f2;
    --layout-shadow: 0 20px 55px -30px rgba(21, 46, 110, 0.35);
    --layout-shadow-soft: 0 14px 28px -20px rgba(20, 44, 104, 0.28);
}

body {
    background:
        radial-gradient(circle at 10% 0%, rgba(46, 198, 162, 0.08), transparent 38%),
        radial-gradient(circle at 92% 4%, rgba(34, 76, 214, 0.08), transparent 34%),
        var(--layout-surface);
    color: var(--color-gray-700);
}

.container {
    max-width: 1240px;
}

.section {
    padding-top: clamp(3.25rem, 4.8vw, 5.5rem);
    padding-bottom: clamp(3.25rem, 4.8vw, 5.5rem);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.015em;
}

p {
    color: var(--color-gray-600);
}

.entry-content ul,
.entry-content ol {
    margin: 1rem 0 1.2rem 1rem;
    padding-left: 1rem;
}

.entry-content ul li {
    list-style: disc;
    margin-bottom: 0.55rem;
}

.entry-content ol li {
    list-style: decimal;
    margin-bottom: 0.55rem;
}

.btn {
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary,
.btn-secondary,
.btn-accent {
    box-shadow: 0 10px 24px rgba(20, 44, 104, 0.28);
}

.btn-outline {
    border-width: 1.5px;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(220, 229, 242, 0.9);
    box-shadow: 0 10px 25px -22px rgba(12, 31, 83, 0.55);
}

.header__inner {
    min-height: 86px;
}

.header__logo img {
    height: 86px;
}

.nav-menu a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-gray-800);
}

.nav-menu a::after {
    bottom: -0.45rem;
    height: 3px;
}

.header-cta {
    border-radius: 999px;
    padding: 0.72rem 1.4rem;
}

.page-header,
.page-hero {
    position: relative;
    padding: clamp(8.8rem, 11.6vw, 10rem) 0 clamp(3.6rem, 5.8vw, 5rem);
    background:
        radial-gradient(circle at 15% 15%, rgba(44, 202, 150, 0.17), transparent 38%),
        radial-gradient(circle at 82% 10%, rgba(35, 79, 219, 0.16), transparent 40%),
        linear-gradient(145deg, #f0f6ff 0%, #f7fbff 48%, #eef4ff 100%);
    border-bottom: 1px solid rgba(214, 225, 241, 0.85);
}

.page-header::before,
.page-hero::before,
.page-header::after,
.page-hero::after {
    display: none;
}

.page-header__title {
    max-width: 880px;
    margin-bottom: 1rem;
}

.page-header__lead {
    max-width: 700px;
    margin-bottom: 1rem;
}

.page-header__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.84rem;
}

.page-header__actions {
    margin-top: 1.2rem;
    gap: 0.75rem;
}

.page-content {
    padding: clamp(3.6rem, 5.8vw, 4.8rem) 0 clamp(4.6rem, 6.8vw, 6.2rem);
}

.card,
.service-card,
.info-card,
.split-callout__panel,
.split-callout__image,
.sidebar-card {
    border: 1px solid var(--layout-border);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: var(--layout-shadow-soft);
}

.service-card {
    border-radius: 24px;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--layout-shadow);
}

.service-card__img {
    aspect-ratio: 16 / 10;
    height: auto;
}

.service-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.service-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card__body .btn {
    margin-top: auto;
}

.footer {
    background:
        radial-gradient(circle at 10% 6%, rgba(44, 202, 150, 0.15), transparent 32%),
        radial-gradient(circle at 90% 3%, rgba(40, 84, 221, 0.15), transparent 30%),
        linear-gradient(145deg, #0f1f4a 0%, #182f68 52%, #133a63 100%);
}

.footer__grid {
    gap: 2.5rem;
}

.footer__brand p,
.footer__contact p,
.footer__links a,
.footer__bottom p,
.footer__bottom-links a {
    color: rgba(236, 243, 255, 0.82);
}

.footer__medicare-badge {
    width: min(100%, 150px);
    margin-top: 1.2rem;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 30px rgba(7, 19, 48, 0.28);
    background: #f6c31b;
}

.footer__medicare-top {
    background: #04923b;
    color: #ffd233;
    padding: 0.58rem 0.82rem 0.46rem;
    font-size: 0.96rem;
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    text-transform: lowercase;
    letter-spacing: -0.03em;
}

.footer__medicare-bottom {
    display: grid;
    gap: 0.1rem;
    padding: 0.72rem 0.82rem 0.82rem;
    color: #006734;
    font-size: 1.10rem;
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.footer__links a:hover,
.footer__contact a:hover,
.footer__bottom-links a:hover {
    color: #ffffff;
}

.single-service .page-header--service .page-header__title {
    max-width: 760px;
}

.single-service .service-layout__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    gap: clamp(1.8rem, 3.2vw, 2.8rem);
    align-items: start;
}

.single-service .service-layout__main {
    display: grid;
    gap: 1.5rem;
}

.single-service .service-layout__media {
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid var(--layout-border);
    box-shadow: var(--layout-shadow-soft);
    background: #ffffff;
}

.single-service .service-layout__media img {
    width: 100%;
    height: auto;
}

.single-service .service-layout__content {
    background: var(--layout-card);
    border: 1px solid var(--layout-border);
    border-radius: 26px;
    padding: clamp(1.5rem, 2.9vw, 2.25rem);
    box-shadow: var(--layout-shadow-soft);
    line-height: 1.85;
}

.single-service .service-layout__aside {
    position: sticky;
    top: 128px;
    margin-top: 1rem;
    display: grid;
    gap: 1.2rem;
}

.single-service .service-panel {
    background: var(--layout-card);
    border: 1px solid var(--layout-border);
    border-radius: 22px;
    padding: 1.5rem;
    box-shadow: var(--layout-shadow-soft);
}

.single-service .service-panel__kicker {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
}

.single-service .service-panel__title {
    margin-bottom: 0.85rem;
}

.single-service .service-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.single-service .service-feature-list li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    gap: 0.6rem;
    color: var(--color-gray-700);
}

.single-service .service-feature-list__icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 202, 150, 0.16);
    color: #16976f;
    font-size: 0.9rem;
    font-weight: 700;
}

.single-service .service-panel--cta {
    background: linear-gradient(145deg, #10234f 0%, #1c3674 56%, #166086 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

.single-service .service-panel--cta,
.single-service .service-panel--cta h3,
.single-service .service-panel--cta p {
    color: #ffffff;
}

.single-service .service-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.single-service .service-panel--contact {
    display: grid;
    gap: 0.45rem;
}

.single-service .service-panel--contact h4 {
    margin: 0 0 0.2rem;
}

.single-service .service-panel--contact a {
    color: var(--dc-blue);
    font-weight: 600;
}

.single-service .service-related {
    margin-top: 4.25rem;
    padding-top: 3.5rem;
    border-top: 1px solid var(--layout-border);
}

.single-service .service-related__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.4rem;
}

.single-service .service-related__header h2 {
    margin: 0;
}

.single-service .service-related__grid {
    gap: 2rem;
}

@media (max-width: 1120px) {
    .single-service .service-layout__grid {
        grid-template-columns: 1fr;
    }

    .single-service .service-layout__aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .single-service .service-panel--cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .header__inner {
        min-height: 74px;
    }

    .header__logo img {
        height: 50px;
    }

    .page-header,
    .page-hero {
        padding-top: 7.3rem;
    }

    .page-header__actions {
        flex-wrap: wrap;
    }

    .single-service .service-layout__content {
        border-radius: 20px;
        padding: 1.15rem;
    }

    .single-service .service-layout__aside {
        grid-template-columns: 1fr;
        margin-top: 0.5rem;
    }

    .single-service .service-related__header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.75rem;
    }
}

/* ============================================
   Team Directory + Team Profile Redesign
   ============================================ */
.team-directory__intro {
    max-width: 820px;
    margin: 0 auto 2.4rem;
}

.team-directory__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.team-member-card {
    background: #ffffff;
    border: 1px solid var(--layout-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--layout-shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.team-member-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--layout-shadow);
    border-color: rgba(44, 202, 150, 0.35);
}

.team-member-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #e8edf6 0%, #d9e2f2 100%);
    overflow: hidden;
}

.team-member-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8fa0ba;
}

.team-member-card__placeholder svg {
    width: 84px;
    height: 84px;
}

.team-member-card__body {
    padding: 1.15rem 1.2rem 1.25rem;
    display: grid;
    gap: 0.65rem;
}

.team-member-card__role {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dc-green-dark);
}

.team-member-card__name {
    margin: 0;
    font-size: 1.26rem;
}

.team-member-card__name a {
    color: var(--color-gray-900);
}

.team-member-card__excerpt {
    margin: 0;
    color: var(--color-gray-600);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.6em;
}

.team-member-card__link {
    margin-top: 0.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    width: fit-content;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dc-blue);
}

.team-member-card__link::after {
    content: "\2192";
}

.service-directory__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.service-directory-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-directory-card__media {
    aspect-ratio: 4 / 3;
}

.service-directory-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.service-directory-card__name {
    line-height: 1.25;
}

.service-directory-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.3em;
    margin-bottom: 0.2rem;
}

.service-directory-card__link {
    margin-top: auto;
}

.team-profile-page .container {
    max-width: 1160px;
}

.team-profile-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.45fr);
    gap: 2rem;
    align-items: start;
}

.team-profile-layout__aside {
    position: sticky;
    top: 120px;
    display: grid;
    gap: 1.15rem;
}

.team-profile-photo {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--layout-border);
    background: linear-gradient(145deg, #e8edf6 0%, #d9e2f2 100%);
    box-shadow: var(--layout-shadow-soft);
}

.team-profile-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.team-profile-photo__placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8fa0ba;
}

.team-profile-photo__placeholder svg {
    width: 106px;
    height: 106px;
}

.team-profile-card {
    background: #ffffff;
    border: 1px solid var(--layout-border);
    border-radius: 20px;
    box-shadow: var(--layout-shadow-soft);
    padding: 1.25rem;
}

.team-profile-card h3 {
    margin-bottom: 0.85rem;
}

.team-profile-card__meta {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.team-profile-card__meta li {
    display: grid;
    gap: 0.2rem;
}

.team-profile-card__meta span {
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gray-500);
    font-weight: 700;
}

.team-profile-card__meta strong {
    color: var(--color-gray-800);
    font-size: 0.95rem;
}

.team-profile-layout__main {
    background: #ffffff;
    border: 1px solid var(--layout-border);
    border-radius: 24px;
    box-shadow: var(--layout-shadow-soft);
    padding: 1.9rem;
}

.team-profile-layout__role {
    margin: 0 0 0.55rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dc-green-dark);
    font-weight: 700;
}

.team-profile-layout__main h2 {
    margin-bottom: 0.85rem;
}

.team-profile-layout__summary {
    margin-bottom: 1.25rem;
    color: var(--color-gray-600);
}

.team-profile-layout__content {
    line-height: 1.84;
}

.team-profile-layout__specialties {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--layout-border);
}

.team-profile-related {
    margin-top: 2.8rem;
    padding-top: 2.2rem;
    border-top: 1px solid var(--layout-border);
}

.team-profile-related__header {
    margin-bottom: 1.35rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.team-profile-related__header h2 {
    margin: 0;
}

@media (max-width: 1100px) {
    .team-directory__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-directory__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-profile-layout {
        grid-template-columns: 1fr;
    }

    .team-profile-layout__aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 700px) {
    .team-directory__grid {
        grid-template-columns: 1fr;
    }

    .service-directory__grid {
        grid-template-columns: 1fr;
    }

    .team-profile-layout__aside {
        grid-template-columns: 1fr;
    }

    .team-profile-layout__main {
        padding: 1.25rem;
    }

    .team-profile-related__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Homepage card side spacing */
.section--home-faq .home-cards-shell,
.section--home-blog .home-cards-shell {
    max-width: 1160px;
}

.section .service-directory__grid {
    gap: 2.4rem;
}

/* Homepage: reduce extra inner spacing in FAQ + blog cards */
.section--home-faq .faq-item {
    padding: 0;
    margin-bottom: 0.95rem;
    border: 1px solid var(--color-gray-200);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.section--home-faq .faq-item summary {
    padding: 1rem 1.3rem;
    font-weight: 700;
    color: var(--color-gray-900);
    list-style: none;
    outline: none;
}

.section--home-faq .faq-item__answer {
    padding: 0 1.3rem 1rem;
    color: var(--color-gray-600);
    line-height: 1.65;
}

.section--home-faq .faq-item__answer p {
    margin: 0;
}

.section--home-faq .faq-item summary::-webkit-details-marker {
    display: none;
}

.section--home-faq .faq-item summary .icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e7ecf2;
    color: var(--dc-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.section--home-faq .faq-item summary .icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    transition: transform 0.25s ease;
}

.section--home-faq .faq-item[open] summary .icon {
    background: var(--dc-navy);
    color: #ffffff;
    transform: none;
}

.section--home-faq .faq-item[open] summary .icon svg {
    transform: rotate(180deg);
}

.section--home-faq .faq-item[open] summary {
    padding-bottom: 0.85rem;
}

.section--home-faq .faq-item[open] {
    background: #ffffff;
    border-color: var(--dc-navy);
}

/* FAQ page cards: match homepage FAQ card style + chevron behavior */
.faq-page .accordion-item {
    border: 1px solid var(--color-gray-200);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-page .accordion-button {
    padding: 1rem 1.3rem;
    font-weight: 700;
    color: var(--color-gray-900);
    background: #ffffff;
    box-shadow: none;
}

.faq-page .accordion-button:focus {
    box-shadow: none;
}

.faq-page .accordion-button::after {
    content: '';
    margin-left: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #e7ecf2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231b365d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    transition: transform 0.25s ease, background-color 0.25s ease, background-image 0.25s ease;
}

.faq-page .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
    background-color: var(--dc-navy);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.faq-page .accordion-body {
    padding: 0 1.3rem 1rem;
    color: var(--color-gray-600);
    line-height: 1.65;
    background: #ffffff;
}

.section--home-blog .card {
    padding: 0;
    overflow: hidden;
}

.section--home-blog .card-img {
    display: block;
    border-radius: 0;
    margin: 0;
}

.section--home-blog .card-body {
    padding: 1.1rem 1.2rem 1.25rem;
}

/* About page: refined light layout */
.page-template-page-about-us .about-story--refined {
    padding-top: clamp(3rem, 4.2vw, 4.2rem);
}

.page-template-page-about-us .about-refined-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.35rem;
    align-items: stretch;
}

.page-template-page-about-us .about-copy-card {
    background: linear-gradient(175deg, #ffffff 0%, #f9fcff 100%);
    border: 1px solid var(--layout-border);
    border-radius: 26px;
    box-shadow: var(--layout-shadow-soft);
    padding: clamp(1.3rem, 2.2vw, 1.95rem);
}

.page-template-page-about-us .about-copy-card .section-title {
    margin-bottom: 0.95rem;
}

.page-template-page-about-us .about-copy-card__text p {
    margin-bottom: 0.85rem;
    line-height: 1.85;
}

.page-template-page-about-us .about-copy-points {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.page-template-page-about-us .about-copy-points span {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(37, 171, 143, 0.08);
    border: 1px solid rgba(37, 171, 143, 0.22);
    color: var(--color-gray-700);
}

.page-template-page-about-us .about-media-collage {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: 0.85rem;
}

.page-template-page-about-us .about-media-tile {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--layout-border);
    box-shadow: var(--layout-shadow-soft);
    background: #eef4fb;
    min-height: 180px;
}

.page-template-page-about-us .about-media-tile--large {
    grid-row: span 2;
    min-height: 380px;
}

.page-template-page-about-us .about-media-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-template-page-about-us .about-media-placeholder {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 16% 18%, rgba(38, 181, 150, 0.17), transparent 40%),
        radial-gradient(circle at 86% 14%, rgba(43, 93, 215, 0.15), transparent 42%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    color: #8ba0bc;
}

.page-template-page-about-us .about-media-placeholder .dashicons {
    width: 42px;
    height: 42px;
    font-size: 42px;
}

.page-template-page-about-us .about-media-placeholder--large .dashicons {
    width: 54px;
    height: 54px;
    font-size: 54px;
}

.page-template-page-about-us .about-foundation {
    padding-top: clamp(1.8rem, 2.8vw, 2.6rem);
}

.page-template-page-about-us .about-foundation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 1.35rem;
    align-items: stretch;
}

.page-template-page-about-us .about-foundation-media {
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--layout-border);
    box-shadow: var(--layout-shadow-soft);
    background: #edf3fb;
    position: relative;
    min-height: 420px;
}

.page-template-page-about-us .about-foundation-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-template-page-about-us .about-foundation-media figcaption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(220, 230, 242, 0.85);
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    backdrop-filter: blur(6px);
}

.page-template-page-about-us .about-foundation-media figcaption strong {
    display: block;
    color: var(--color-gray-900);
    margin-bottom: 0.15rem;
}

.page-template-page-about-us .about-foundation-media figcaption span {
    display: block;
    font-size: 0.87rem;
    color: var(--color-gray-600);
}

.page-template-page-about-us .about-foundation-stack {
    display: grid;
    gap: 1rem;
}

.page-template-page-about-us .about-foundation-card {
    background: #ffffff;
    border: 1px solid var(--layout-border);
    border-radius: 22px;
    box-shadow: var(--layout-shadow-soft);
    padding: 1.2rem 1.2rem 1.25rem;
}

.page-template-page-about-us .about-foundation-card h3 {
    margin-bottom: 0.7rem;
}

.page-template-page-about-us .about-foundation-card p {
    margin-bottom: 0.8rem;
}

.page-template-page-about-us .about-tag-list {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.page-template-page-about-us .about-tag-list span {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.68rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-700);
    background: rgba(43, 93, 215, 0.08);
    border: 1px solid rgba(43, 93, 215, 0.18);
}

.page-template-page-about-us .about-values--refined .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-template-page-about-us .about-values--refined .section-lead {
    margin-bottom: 0;
}

.page-template-page-about-us .about-values-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.page-template-page-about-us .about-value-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--layout-border);
    border-radius: 20px;
    box-shadow: var(--layout-shadow-soft);
    padding: 1.15rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 0.8rem;
    row-gap: 0.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-template-page-about-us .about-value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--layout-shadow);
    border-color: rgba(37, 171, 143, 0.35);
}

.page-template-page-about-us .about-value-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(37, 171, 143, 0.12);
    color: #1d9c78;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-row: span 2;
}

.page-template-page-about-us .about-value-card__icon .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.page-template-page-about-us .about-value-card h3 {
    margin: 0.15rem 0 0;
    font-size: 1.2rem;
}

.page-template-page-about-us .about-value-card p {
    margin: 0;
    color: var(--color-gray-500);
}

@media (max-width: 1080px) {
    .page-template-page-about-us .about-refined-grid,
    .page-template-page-about-us .about-foundation-layout {
        grid-template-columns: 1fr;
    }

    .page-template-page-about-us .about-foundation-media {
        min-height: 340px;
    }
}

@media (max-width: 768px) {
    .page-template-page-about-us .about-copy-card,
    .page-template-page-about-us .about-foundation-card {
        border-radius: 18px;
        padding: 1rem;
    }

    .page-template-page-about-us .about-media-collage,
    .page-template-page-about-us .about-values-grid {
        grid-template-columns: 1fr;
    }

    .page-template-page-about-us .about-media-tile--large {
        min-height: 280px;
        grid-row: auto;
    }

    .page-template-page-about-us .about-media-tile {
        min-height: 200px;
    }

    .page-template-page-about-us .about-value-card {
        grid-template-columns: 1fr;
    }
}

/* Footer adjustments */
.footer__grid {
    grid-template-columns: 1.2fr 0.95fr 1.35fr;
}

.footer__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(7, 19, 44, 0.24);
}

.footer__logo-image {
    display: block;
    max-height: 96px;
    width: auto;
    filter: none !important;
}

.footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__links li {
    margin: 0;
}

.footer__social svg {
    fill: currentColor;
    stroke: none;
}

.footer__social a {
    color: #ffffff;
}

.footer__social a:hover {
    color: #ffffff;
}

.footer__bottom {
    justify-content: center;
    text-align: center;
}

.footer__bottom p {
    margin: 0;
}

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__logo-link {
        border-radius: 14px;
        padding: 0.45rem 0.65rem;
    }

    .footer__logo-image {
        max-height: 80px;
    }
}

/* Blog sidebar fixes */
.blog-sidebar .sidebar-card--cta {
    background: #ffffff !important;
    border: 1px solid var(--color-gray-200) !important;
    box-shadow: var(--shadow-soft) !important;
    color: var(--color-gray-900) !important;
}

.blog-sidebar .sidebar-card--cta h3,
.blog-sidebar .sidebar-card--cta p {
    color: var(--color-gray-900) !important;
    opacity: 1 !important;
}

.blog-sidebar .sidebar-card--cta .btn {
    color: #ffffff !important;
}

/* ============================================
   Responsive Stability Fixes
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

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

table {
    width: 100%;
    display: block;
    overflow-x: auto;
}

.footer__brand,
.footer__brand > a,
.footer__brand p {
    max-width: 100%;
}

.footer__logo-image {
    display: block;
    max-width: min(100%, 280px);
    height: auto;
    filter: none !important;
}

@media (max-width: 1024px) {
    .header__nav {
        display: none;
        right: 0;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }

    .header__nav.active {
        display: flex;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer__grid > * {
        min-width: 0;
    }
}

@media (max-width: 1024px) {
    body.menu-open .quick-contact,
    body.menu-open .back-to-top {
        display: none !important;
    }
}

/* Patient Information page: cleaner spacing + smaller buttons */
.page-template-page-patient-information .page-header {
    padding-top: clamp(9.4rem, 12vw, 11rem);
    padding-bottom: clamp(2.4rem, 4.6vw, 3.6rem);
}

.page-template-page-patient-information .page-header__lead {
    max-width: 62ch;
}

.page-template-page-patient-registration .page-header__lead {
    max-width: 68ch;
}

.page-template-page-patient-information .page-header__actions {
    gap: 0.6rem;
}

.page-template-page-patient-registration .page-header__actions {
    gap: 0.6rem;
}

.page-template-page-patient-information .page-header__actions .btn.btn-sm {
    min-height: 34px !important;
    padding: 0.45rem 0.95rem !important;
    font-size: 0.74rem !important;
    font-weight: 700;
    border-radius: 999px;
    line-height: 1;
}

.page-template-page-patient-registration .page-header__actions .btn.btn-sm {
    min-height: 34px !important;
    padding: 0.45rem 0.95rem !important;
    font-size: 0.74rem !important;
    font-weight: 700;
    border-radius: 999px;
    line-height: 1;
}

.page-template-page-patient-information .patient-info-page {
    padding-block: clamp(1.8rem, 3.8vw, 2.8rem);
}

.page-template-page-patient-registration .patient-registration-page {
    padding-block: clamp(1.8rem, 3.8vw, 2.8rem);
}

.page-template-page-patient-information .patient-info-page .patient-info-block {
    margin-bottom: clamp(1.3rem, 2.8vw, 2rem) !important;
}

.page-template-page-patient-information .patient-info-page .section-title {
    margin-bottom: 0.45rem;
}

.page-template-page-patient-information .patient-info-page .patient-info-block > .text-muted {
    margin-bottom: 0.95rem !important;
    color: var(--color-gray-600);
    font-size: 0.92rem;
}

.page-template-page-patient-information .patient-info-page .doc-item {
    border: 1px solid rgba(27, 54, 93, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(16, 34, 63, 0.07);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: clamp(0.9rem, 1.4vw, 1.08rem);
    margin-bottom: 0.85rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.page-template-page-patient-information .patient-info-page .doc-item:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 63, 174, 0.22);
    box-shadow: 0 12px 22px rgba(17, 35, 66, 0.12);
}

.page-template-page-patient-information .patient-info-page .doc-item__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem 1rem;
    align-items: center;
}

.page-template-page-patient-information .patient-info-page .doc-item__content {
    min-width: 0;
}

.page-template-page-patient-information .patient-info-page .doc-item__title {
    margin: 0 0 0.2rem;
    color: var(--color-gray-900);
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.32;
}

.page-template-page-patient-information .patient-info-page .doc-item__desc {
    margin: 0;
    color: var(--color-gray-600);
    font-size: 0.88rem;
    line-height: 1.48;
    max-width: 68ch;
}

.page-template-page-patient-information .patient-info-page .doc-item__action.btn {
    justify-self: end;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px !important;
    min-width: 106px !important;
    margin: 0;
    padding: 0.42rem 0.9rem !important;
    border: 0;
    border-radius: 999px;
    font-size: 0.72rem !important;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--grad-primary);
    box-shadow: 0 10px 24px rgba(20, 44, 104, 0.28);
}

.page-template-page-patient-information .patient-info-page .doc-item__action.btn:hover,
.page-template-page-patient-information .patient-info-page .doc-item__action.btn:focus {
    color: #ffffff;
    background: linear-gradient(135deg, var(--dc-navy-dark) 0%, var(--dc-blue-dark) 100%);
    box-shadow: 0 10px 24px rgba(24, 53, 140, 0.32);
}

.page-template-page-patient-information .patient-info-page .patient-registration-cta__card {
    border: 1px solid rgba(27, 54, 93, 0.1);
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(16, 34, 63, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: clamp(1rem, 2.2vw, 1.35rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.page-template-page-patient-information .patient-info-page .patient-registration-cta__text {
    margin: 0;
    color: var(--color-gray-700);
    font-weight: 600;
}

.page-template-page-patient-information .patient-info-page .patient-registration-cta__btn {
    min-height: 36px !important;
    padding: 0.5rem 1rem !important;
    border-radius: 999px;
}

.page-template-page-patient-registration .patient-registration-page .patient-registration-card,
.page-template-page-patient-information .patient-info-page .patient-registration-card {
    border: 1px solid rgba(27, 54, 93, 0.1);
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(16, 34, 63, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: clamp(1.2rem, 2.4vw, 1.8rem);
}

.page-template-page-patient-information .patient-info-page .patient-registration-form .wpcf7-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 0.95rem;
}

.page-template-page-patient-information .patient-info-page .patient-registration-form .wpcf7-form .form-row {
    margin: 0;
}

.page-template-page-patient-information .patient-info-page .patient-registration-form .wpcf7-form .form-row--full,
.page-template-page-patient-information .patient-info-page .patient-registration-form .wpcf7-form .wpcf7-response-output {
    grid-column: 1 / -1;
}

.page-template-page-patient-information .patient-info-page .patient-registration-form .wpcf7-form .form-row--full input[type="submit"] {
    width: 100%;
}

.page-template-page-patient-registration .patient-registration-page .patient-registration-card {
    max-width: 980px;
    margin: 0 auto;
}

.page-template-page-patient-registration .patient-registration-page .patient-registration-form .wpcf7-form {
    display: block;
}

.page-template-page-patient-registration .patient-registration-page .patient-registration-form .wpcf7-form p {
    margin-bottom: 0.95rem;
}

.page-template-page-patient-registration .patient-registration-page .patient-registration-form .wpcf7-form p:last-child {
    margin-bottom: 0;
}

.page-template-page-patient-registration .patient-registration-page .patient-registration-form textarea {
    min-height: 140px;
}

.page-template-page-patient-registration .patient-registration-page .patient-registration-form input[type="submit"] {
    width: 100%;
}

.page-template-page-patient-registration .patient-registration-page .patient-registration-empty,
.page-template-page-patient-information .patient-info-page .patient-registration-empty {
    margin: 0;
    color: var(--color-gray-600);
}

/* Global fallback: convert WordPress pink utility colors to brand blue */
.has-vivid-pink-background-color,
.has-pale-pink-background-color {
    background: linear-gradient(135deg, #1f3fae 0%, #2f56d8 100%) !important;
    color: #ffffff !important;
}

.has-vivid-pink-color,
.has-pale-pink-color {
    color: #2f56d8 !important;
}

.wp-block-button .wp-block-button__link.has-vivid-pink-background-color:hover,
.wp-block-button .wp-block-button__link.has-vivid-pink-background-color:focus,
.wp-block-button .wp-block-button__link.has-pale-pink-background-color:hover,
.wp-block-button .wp-block-button__link.has-pale-pink-background-color:focus {
    background: #17358f !important;
    color: #ffffff !important;
}

.page-template-page-patient-registration .patient-registration-page .patient-assistance,
.page-template-page-patient-information .patient-info-page .patient-assistance {
    margin-top: clamp(1.35rem, 2.9vw, 1.9rem) !important;
    border: 1px solid rgba(27, 54, 93, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(249, 251, 255, 0.96) 0%, #edf3fc 100%);
    box-shadow: 0 10px 22px rgba(16, 31, 56, 0.07);
    padding: clamp(1.1rem, 2.3vw, 1.6rem);
    text-align: center;
}

.page-template-page-patient-registration .patient-registration-page .patient-assistance__title,
.page-template-page-patient-information .patient-info-page .patient-assistance__title {
    margin-bottom: 0.35rem;
    color: var(--color-primary);
    font-size: clamp(1.06rem, 1.7vw, 1.24rem);
}

.page-template-page-patient-registration .patient-registration-page .patient-assistance__text,
.page-template-page-patient-information .patient-info-page .patient-assistance__text {
    margin: 0 auto 0.9rem;
    max-width: 56ch;
    color: var(--color-gray-600);
    font-size: 0.88rem;
    line-height: 1.5;
}

.page-template-page-patient-registration .patient-registration-page .patient-assistance__actions,
.page-template-page-patient-information .patient-info-page .patient-assistance__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.page-template-page-patient-registration .patient-registration-page .patient-assistance__btn.btn,
.page-template-page-patient-information .patient-info-page .patient-assistance__btn.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px !important;
    min-width: 106px !important;
    padding: 0.42rem 0.9rem !important;
    border-radius: 999px;
    font-size: 0.72rem !important;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: none;
}

.page-template-page-patient-registration .patient-registration-page .patient-assistance__btn.btn-outline-primary,
.page-template-page-patient-information .patient-info-page .patient-assistance__btn.btn-outline-primary {
    border: 1px solid rgba(27, 54, 93, 0.2);
    background: #ffffff;
    color: var(--color-primary);
}

.page-template-page-patient-registration .patient-registration-page .patient-assistance__btn.btn-outline-primary:hover,
.page-template-page-patient-registration .patient-registration-page .patient-assistance__btn.btn-outline-primary:focus,
.page-template-page-patient-information .patient-info-page .patient-assistance__btn.btn-outline-primary:hover,
.page-template-page-patient-information .patient-info-page .patient-assistance__btn.btn-outline-primary:focus {
    border-color: rgba(15, 24, 48, 0.95);
    background: #0f1830;
    color: #ffffff;
}

@media (max-width: 991px) {
    .page-template-page-patient-information .patient-info-page .doc-item__inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .page-template-page-patient-information .patient-info-page .doc-item__action.btn {
        justify-self: start;
    }
}

@media (max-width: 576px) {
    .page-template-page-patient-information .page-header__actions .btn.btn-sm {
        min-height: 32px !important;
        padding: 0.4rem 0.8rem !important;
        font-size: 0.7rem !important;
    }

    .page-template-page-patient-registration .page-header__actions .btn.btn-sm {
        min-height: 32px !important;
        padding: 0.4rem 0.8rem !important;
        font-size: 0.7rem !important;
    }

    .page-template-page-patient-information .patient-info-page .doc-item {
        border-radius: 13px;
        padding: 0.8rem;
    }

    .page-template-page-patient-information .patient-info-page .doc-item__title {
        font-size: 0.95rem;
    }

    .page-template-page-patient-information .patient-info-page .doc-item__desc {
        font-size: 0.82rem;
    }

    .page-template-page-patient-information .patient-info-page .doc-item__action.btn {
        min-width: 100px !important;
        min-height: 33px !important;
        font-size: 0.68rem !important;
    }

    .page-template-page-patient-information .patient-info-page .patient-registration-cta__card {
        border-radius: 14px;
        padding: 0.95rem 0.9rem;
        display: grid;
        justify-items: start;
    }

    .page-template-page-patient-information .patient-info-page .patient-registration-card {
        border-radius: 14px;
        padding: 0.95rem 0.9rem;
    }

    .page-template-page-patient-registration .patient-registration-page .patient-registration-card {
        border-radius: 14px;
        padding: 0.95rem 0.9rem;
    }

    .page-template-page-patient-information .patient-info-page .patient-registration-form .wpcf7-form {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .page-template-page-patient-registration .patient-registration-page .patient-assistance,
    .page-template-page-patient-information .patient-info-page .patient-assistance {
        border-radius: 14px;
        padding: 1rem 0.9rem;
    }

    .page-template-page-patient-registration .patient-registration-page .patient-assistance__btn.btn,
    .page-template-page-patient-information .patient-info-page .patient-assistance__btn.btn {
        min-width: 100px !important;
        min-height: 33px !important;
        font-size: 0.68rem !important;
    }
}

/* ============================================
   Global Form Refresh (Compact + Consistent)
   ============================================ */
.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label,
.dermacare-cf7 .wpcf7-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-gray-700);
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.dermacare-cf7 input[type="text"],
.dermacare-cf7 input[type="email"],
.dermacare-cf7 input[type="tel"],
.dermacare-cf7 input[type="number"],
.dermacare-cf7 input[type="date"],
.dermacare-cf7 input[type="file"],
.dermacare-cf7 textarea,
.dermacare-cf7 select {
    width: 100%;
    min-height: 44px;
    padding: 0.72rem 0.9rem;
    border: 1px solid #d7e0ec;
    border-radius: 12px;
    font-size: 0.92rem;
    font-family: inherit;
    line-height: 1.35;
    color: var(--color-gray-800);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-form textarea,
.dermacare-cf7 textarea {
    min-height: 130px;
    resize: vertical;
}

.dermacare-cf7 input[type="file"] {
    min-height: 42px;
    padding: 0.58rem 0.72rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.dermacare-cf7 input:focus,
.dermacare-cf7 textarea:focus,
.dermacare-cf7 select:focus {
    outline: none;
    border-color: rgba(35, 79, 219, 0.6);
    box-shadow: 0 0 0 3px rgba(35, 79, 219, 0.12);
}

.dermacare-cf7 .wpcf7-form {
    display: block;
}

.dermacare-cf7 .wpcf7-form p {
    margin: 0 0 0.95rem;
}

.dermacare-cf7 .wpcf7-form p:last-child {
    margin-bottom: 0;
}

.dermacare-cf7 .wpcf7-form-control-wrap {
    display: block;
    margin-top: 0.3rem;
}

.dermacare-cf7 .wpcf7-acceptance label {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--color-gray-600);
}

.dermacare-cf7 .wpcf7-acceptance input[type="checkbox"] {
    width: auto;
    min-height: 0;
    margin-top: 0.18rem;
    padding: 0;
}

.dermacare-cf7 .wpcf7-not-valid-tip {
    margin-top: 0.28rem;
    color: #b42318;
    font-size: 0.76rem;
    line-height: 1.35;
}

.dermacare-cf7 .wpcf7-response-output {
    margin: 0 0 0.9rem;
    border-radius: 12px;
    padding: 0.68rem 0.9rem;
    font-size: 0.84rem;
}

.contact-form .btn,
.dermacare-cf7 input[type="submit"] {
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
}

.dermacare-cf7 input[type="submit"] {
    border: none;
    background: var(--grad-primary);
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.dermacare-cf7 input[type="submit"]:hover,
.dermacare-cf7 input[type="submit"]:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(24, 53, 140, 0.28);
    filter: brightness(1.01);
}

@media (max-width: 768px) {
    .contact-form input,
    .contact-form textarea,
    .contact-form select,
    .dermacare-cf7 input[type="text"],
    .dermacare-cf7 input[type="email"],
    .dermacare-cf7 input[type="tel"],
    .dermacare-cf7 input[type="number"],
    .dermacare-cf7 input[type="date"],
    .dermacare-cf7 input[type="file"],
    .dermacare-cf7 textarea,
    .dermacare-cf7 select {
        font-size: 0.9rem;
        padding: 0.68rem 0.82rem;
    }

    .dermacare-cf7 .wpcf7-form p {
        margin-bottom: 0.85rem;
    }
}

/* ============================================
   Home Mobile Header + Hero Fixes
   ============================================ */
@media (max-width: 1024px) {
    .header__logo img {
        height: 64px;
    }
}

@media (max-width: 768px) {
    .header__inner {
        min-height: 86px;
    }

    .header__logo img {
        height: 62px;
    }

    .is-front-page .hero {
        padding-top: clamp(9.25rem, 22vw, 10.5rem);
    }

    .is-front-page .hero__kicker {
        max-width: 100%;
        width: fit-content;
        padding: 0.5rem 0.9rem;
        gap: 0.5rem;
        margin-bottom: 1.15rem;
        font-size: clamp(0.68rem, 2.6vw, 0.76rem);
        letter-spacing: 0.02em;
        line-height: 1.25;
        white-space: nowrap;
    }

    .is-front-page .hero__kicker-dot {
        width: 7px;
        height: 7px;
    }
}

/* ============================================
   Header Desktop Navigation Wrap Fix
   ============================================ */
@media (min-width: 1025px) {
    .header__inner {
        min-height: 82px;
        gap: clamp(0.8rem, 1.8vw, 2rem);
    }

    .header__logo {
        flex-shrink: 0;
    }

    .header__logo img {
        height: clamp(66px, 5.2vw, 82px);
        width: auto;
    }

    .header__right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
        min-width: 0;
        gap: clamp(0.5rem, 0.95vw, 1rem);
    }

    .header__nav {
        flex: 1 1 auto;
        min-width: 0;
    }

    .nav-menu {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: clamp(0.85rem, 1.2vw, 1.55rem);
    }

    .nav-menu li {
        flex: 0 0 auto;
        min-width: 0;
    }

    .nav-menu a {
        white-space: nowrap;
        font-size: clamp(0.84rem, 0.74rem + 0.18vw, 0.95rem);
        line-height: 1.2;
        padding-block: 0.35rem;
    }

    .header-cta {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0.62rem 1rem;
        font-size: clamp(0.82rem, 0.76rem + 0.1vw, 0.9rem);
    }
}

@media (min-width: 1025px) and (max-width: 1320px) {
    .header__logo img {
        height: 68px;
    }

    .nav-menu {
        gap: clamp(0.65rem, 0.95vw, 1.05rem);
    }

    .nav-menu a {
        font-size: 0.82rem;
        letter-spacing: 0;
    }

    .header-cta {
        padding: 0.56rem 0.82rem;
        font-size: 0.78rem;
    }
}

/* Contact page map sizing */
.contact-map-section iframe {
    display: block;
    width: 100%;
    height: clamp(420px, 58vh, 620px);
    border: 0;
}

@media (max-width: 768px) {
    .contact-map-section iframe {
        height: clamp(320px, 48vh, 460px);
    }
}

/* ============================================
   Search + Blog Pagination Refinements
   ============================================ */
.search-results__count {
    margin-bottom: 2rem;
    color: var(--color-gray-600);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.search-result-card {
    height: 100%;
}

.search-result-card__type {
    font-size: 0.72rem;
    line-height: 1.2;
    color: var(--color-gray-500);
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.search-result-card .post-card__title {
    margin-bottom: 0.55rem;
}

.search-result-card .post-card__excerpt {
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-card .post-card__link {
    margin-top: auto;
}

.search-result-card .post-card__body {
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.blog-pagination,
.search-pagination {
    margin-top: 2.5rem;
    text-align: center;
}

.blog-pagination .navigation.pagination,
.search-pagination .navigation.pagination {
    display: block;
    margin: 0;
}

.blog-pagination .navigation.pagination .nav-links,
.search-pagination .navigation.pagination .nav-links {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-pagination .navigation.pagination .page-numbers,
.search-pagination .navigation.pagination .page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.8rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(31, 42, 55, 0.16);
    color: var(--color-gray-800);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.blog-pagination .navigation.pagination a.page-numbers:focus-visible,
.search-pagination .navigation.pagination a.page-numbers:focus-visible {
    outline: 3px solid rgba(46, 90, 216, 0.24);
    outline-offset: 2px;
}

.blog-pagination .navigation.pagination .page-numbers:hover,
.blog-pagination .navigation.pagination .page-numbers.current,
.search-pagination .navigation.pagination .page-numbers:hover,
.search-pagination .navigation.pagination .page-numbers.current {
    color: #ffffff;
    background: var(--grad-primary);
    border-color: transparent;
}

.blog-pagination .navigation.pagination .page-numbers.prev,
.blog-pagination .navigation.pagination .page-numbers.next,
.search-pagination .navigation.pagination .page-numbers.prev,
.search-pagination .navigation.pagination .page-numbers.next {
    min-width: 42px;
    width: 42px;
    padding: 0;
    font-size: 1.15rem;
}

.blog-pagination .navigation.pagination .page-numbers.current,
.search-pagination .navigation.pagination .page-numbers.current {
    gap: 0.28rem;
    min-width: 72px;
    padding: 0 1rem;
}

.blog-pagination .navigation.pagination .pagination-current-separator,
.search-pagination .navigation.pagination .pagination-current-separator,
.blog-pagination .navigation.pagination .pagination-total-pages,
.search-pagination .navigation.pagination .pagination-total-pages {
    opacity: 0.8;
}

.blog-pagination .navigation.pagination .page-numbers.is-disabled,
.search-pagination .navigation.pagination .page-numbers.is-disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
    color: var(--color-gray-500);
    background: #ffffff;
    border-color: rgba(31, 42, 55, 0.12);
}

@media (max-width: 1024px) {
    .search-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .search-result-card .post-card__body {
        min-height: 0;
    }
}

/* ============================================
   Mobile Menu Refresh
   ============================================ */
@media (max-width: 1024px) {
    .header__inner {
        min-height: 84px;
    }

    .header__right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.85rem;
    }

    .menu-toggle {
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 18px;
        border: 1px solid rgba(27, 54, 93, 0.12);
        background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
        box-shadow: 0 12px 24px rgba(19, 38, 84, 0.12);
    }

    .menu-toggle:hover,
    .menu-toggle:focus-visible {
        border-color: rgba(47, 86, 216, 0.28);
        box-shadow: 0 16px 30px rgba(19, 38, 84, 0.16);
        transform: translateY(-1px);
    }

    .menu-toggle span {
        width: 22px;
        height: 2.5px;
        border-radius: 999px;
        background: var(--dc-navy);
    }

    .menu-toggle.active {
        background: linear-gradient(135deg, #f8fbff 0%, #edf3ff 100%);
    }

    .header__nav {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: min(86vw, 380px);
        height: 100vh;
        padding: 6.75rem 1.35rem 1.5rem;
        background:
            radial-gradient(circle at top right, rgba(44, 202, 150, 0.12), transparent 34%),
            linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
        border-left: 1px solid rgba(27, 54, 93, 0.08);
        box-shadow: -22px 0 46px rgba(17, 35, 74, 0.18);
        transform: translateX(108%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.32s ease, opacity 0.24s ease, visibility 0.24s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .header__nav.active {
        display: flex;
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .header__nav::before {
        content: 'Menu';
        position: absolute;
        top: 1.6rem;
        left: 1.35rem;
        font-size: 0.8rem;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--dc-blue);
    }

    .nav-menu {
        width: 100%;
        display: grid;
        gap: 0.35rem;
        margin: 0;
        padding: 0;
    }

    .nav-menu li {
        width: 100%;
        list-style: none;
    }

    .nav-menu a {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 16px;
        align-items: center;
        width: 100%;
        padding: 0.95rem 1rem;
        border-radius: 16px;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.2;
        color: var(--color-gray-800);
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(27, 54, 93, 0.07);
        box-shadow: 0 8px 20px rgba(16, 34, 63, 0.04);
        white-space: nowrap;
        column-gap: 0.8rem;
    }

    .nav-menu a::after {
        content: '';
        position: static;
        width: 14px;
        height: 14px;
        justify-self: end;
        display: block;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 14px 14px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M4.5 2.25L8.25 6L4.5 9.75' stroke='%23506FD8' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        transform: none;
        transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
    }

    .nav-menu a:hover,
    .nav-menu a:focus-visible,
    .nav-menu .current-menu-item > a,
    .nav-menu .current_page_item > a,
    .nav-menu .current-menu-ancestor > a {
        color: var(--dc-blue);
        border-color: rgba(47, 86, 216, 0.18);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 245, 255, 0.98) 100%);
        box-shadow: 0 12px 24px rgba(18, 39, 86, 0.08);
    }

    .nav-menu a:hover::after,
    .nav-menu a:focus-visible::after,
    .nav-menu .current-menu-item > a::after,
    .nav-menu .current_page_item > a::after,
    .nav-menu .current-menu-ancestor > a::after {
        filter: brightness(0.9);
        transform: translateX(3px);
    }

    .header__right .header-cta {
        display: none;
    }
}

@media (max-width: 640px) {
    .header__nav {
        width: 100vw;
        padding-inline: 1.1rem;
    }

    .header__nav::before {
        left: 1.1rem;
    }

    .nav-menu a {
        padding: 0.9rem 0.95rem;
        font-size: 0.98rem;
    }
}

/* ============================================
   Mobile QA Fixes
   ============================================ */
@media (max-width: 991px) {
    .wow {
        visibility: visible !important;
        opacity: 1 !important;
        animation: none !important;
    }
}

.page-template-page-contact-us .page-content .container > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3.5vw, 4rem);
    align-items: start;
}

.page-template-page-contact-us .page-content .card {
    border-radius: 22px;
    overflow: hidden;
}

.page-template-page-contact-us .page-content .card-body {
    padding: clamp(1.15rem, 2.5vw, 2rem) !important;
}

.page-template-page-contact-us .page-content .flex.items-start {
    gap: 0.95rem;
}

.page-template-page-contact-us .page-content .flex.items-start > div:first-child {
    flex-shrink: 0;
}

.page-template-page-contact-us .page-content .contact-form > div[style*="grid-template-columns: 1fr 1fr"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
}

.page-template-page-contact-us .contact-map-section {
    margin-top: clamp(2.5rem, 4vw, 4rem) !important;
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    }

    body.page-template-page-contact-us,
    body.page-template-page-patient-information,
    body.page-template-page-patient-registration {
        padding-bottom: 0;
    }

    .quick-contact {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        gap: 0.45rem;
        padding: 0.45rem 0.55rem;
        border-radius: 999px;
        box-shadow: 0 14px 34px rgba(15, 31, 71, 0.18);
    }

    .quick-contact__item {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .quick-contact__item svg {
        width: 18px;
        height: 18px;
    }

    .back-to-top {
        right: 14px;
        bottom: calc(74px + env(safe-area-inset-bottom, 0px));
        width: 44px;
        height: 44px;
    }

    .page-header__breadcrumb {
        line-height: 1.55;
        word-break: break-word;
    }

    .page-template-page-contact-us .page-content {
        padding-top: 2rem;
    }

    .page-template-page-contact-us .quick-contact,
    .page-template-page-patient-information .quick-contact,
    .page-template-page-patient-registration .quick-contact {
        display: none;
    }

    .page-template-page-contact-us .page-content .container > div {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .page-template-page-contact-us .page-content .card-body {
        padding: 1rem !important;
    }

    .page-template-page-contact-us .page-content .flex.items-start {
        margin-bottom: 1rem !important;
        gap: 0.75rem;
    }

    .page-template-page-contact-us .page-content .flex.items-start > div:first-child {
        width: 42px !important;
        height: 42px !important;
    }

    .page-template-page-contact-us .page-content .contact-form > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .page-template-page-contact-us .contact-map-section {
        margin-top: 2.25rem !important;
    }

    .page-template-page-patient-information .patient-info-page .doc-item__action.btn,
    .page-template-page-patient-information .patient-info-page .patient-registration-cta__btn,
    .page-template-page-patient-registration .patient-registration-page .patient-assistance__btn.btn,
    .page-template-page-patient-information .patient-info-page .patient-assistance__btn.btn {
        width: 100%;
        justify-content: center;
    }

    .page-template-page-patient-registration .patient-registration-page .patient-assistance__actions,
    .page-template-page-patient-information .patient-info-page .patient-assistance__actions {
        flex-direction: column;
        align-items: stretch;
    }
}
