/* Reset and Base Styles (match prototype styles.css) — scoped to Block Builder only */
body.template-block-builder *,
.editor-styles-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography: Roboto (body) + Lora (headings). 4–5 fallbacks so something displays before webfont loads. */
:root {
    /* Font stacks (fallbacks prevent FOUT from showing wrong font; cached/blocked webfont won’t replace with nothing) */
    --font-heading: 'Lora', Georgia, 'Times New Roman', Times, serif;
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Type scale in rem (scales with user prefs and when we “lower the font” in media queries) */
    --text-h1: 3rem;
    --text-h2: 2.25rem;
    --text-h3: 1.75rem;
    --text-h4: 1.25rem;
    --text-p1: 1.125rem;
    --text-p2: 1rem;
    --line-tight: 1.25;
    --line-normal: 1.5;
    --line-relaxed: 1.6;
}

body.template-block-builder {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: var(--line-relaxed);
    color: #333;
    overflow-x: hidden;
}

body.template-block-builder h1 { font-family: var(--font-heading); font-size: var(--text-h1); line-height: var(--line-tight); }
body.template-block-builder h2 { font-family: var(--font-heading); font-size: var(--text-h2); line-height: var(--line-tight); }
body.template-block-builder h3 { font-family: var(--font-heading); font-size: var(--text-h3); line-height: var(--line-normal); }
body.template-block-builder h4 { font-family: var(--font-heading); font-size: var(--text-h4); line-height: var(--line-normal); }
body.template-block-builder p { font-size: var(--text-p1); line-height: var(--line-relaxed); }
.editor-styles-wrapper { font-family: var(--font-body); font-size: 1rem; line-height: var(--line-relaxed); }
.editor-styles-wrapper h1 { font-family: var(--font-heading); font-size: var(--text-h1); line-height: var(--line-tight); }
.editor-styles-wrapper h2 { font-family: var(--font-heading); font-size: var(--text-h2); line-height: var(--line-tight); }
.editor-styles-wrapper h3 { font-family: var(--font-heading); font-size: var(--text-h3); line-height: var(--line-normal); }
.editor-styles-wrapper h4 { font-family: var(--font-heading); font-size: var(--text-h4); line-height: var(--line-normal); }
.editor-styles-wrapper p { font-size: var(--text-p1); line-height: var(--line-relaxed); }

/* When we lower the font (smaller viewports), base size scales so rem-based type and spacing scale together */
@media (max-width: 768px) {
    body.template-block-builder { font-size: 0.9375rem; padding: 0; margin: 0; }
    .editor-styles-wrapper { font-size: 0.9375rem; }
}
@media (max-width: 480px) {
    body.template-block-builder { font-size: 0.875rem; }
    .editor-styles-wrapper { font-size: 0.875rem; }
}

html {
    scroll-behavior: smooth;
}

body.template-block-builder a,
.editor-styles-wrapper a {
    text-decoration: none;
}

/* Sharpen font rendering (reduce blurriness on WordPress / high-DPI) */
body.template-block-builder,
body.template-block-builder *,
.editor-styles-wrapper * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Block Builder template: match prototype layout (no WP/block wrapper spacing) */
body.template-block-builder main,
body.template-block-builder main .entry-content,
body.template-block-builder main .wp-block-post-content,
.editor-styles-wrapper main,
.editor-styles-wrapper main .entry-content,
.editor-styles-wrapper main .wp-block-post-content {
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
}

body.template-block-builder main,
.editor-styles-wrapper main {
    display: block;
}

/* Remove any block-layout gap/margin from WP block wrappers when block library is dequeued */
body.template-block-builder main .is-layout-flow,
body.template-block-builder main .is-layout-constrained,
body.template-block-builder main .wp-block-group,
.editor-styles-wrapper main .is-layout-flow,
.editor-styles-wrapper main .is-layout-constrained,
.editor-styles-wrapper main .wp-block-group {
    margin: 0;
    padding: 0;
    max-width: none;
}

body.template-block-builder .container, .editor-styles-wrapper .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.video-header.animate {
    margin-bottom: 50px;
}

/* Header Styles - Truly Transparent */
body.template-block-builder .header, .editor-styles-wrapper .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 10, 8, 0.4);
    transition: all 0.3s ease;
}

body.template-block-builder header a, .editor-styles-wrapper header a {
    color: #fff;
    font-weight: 600;
}

body.template-block-builder .header.scrolled, .editor-styles-wrapper .header.scrolled {
    background: rgba(0, 8, 5, 0.6);
    backdrop-filter: blur(10px);
}

body.template-block-builder .header-container, .editor-styles-wrapper .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

body.template-block-builder .logo img, .editor-styles-wrapper .logo img {
   width: 200px;
}

body.template-block-builder .header-right, .editor-styles-wrapper .header-right {
    display: flex;
    align-items: center;
    gap: 3rem;
}

body.template-block-builder .language-switcher, .editor-styles-wrapper .language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

body.template-block-builder .language-switcher select, .editor-styles-wrapper .language-switcher select {
    border: none;
    background: none;
    color: white;
    font-weight: 400;
    cursor: pointer;
    text-transform: uppercase;
}

body.template-block-builder .contact-info, .editor-styles-wrapper .contact-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

body.template-block-builder .phone, .editor-styles-wrapper .phone {
    font-weight: 400;
    color: white;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

body.template-block-builder .search-btn, .editor-styles-wrapper .search-btn, body.template-block-builder .hamburger, .editor-styles-wrapper .hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: white;
    transition: opacity 0.3s ease;
}

body.template-block-builder .search-btn:hover, .editor-styles-wrapper .search-btn:hover, body.template-block-builder .hamburger:hover, .editor-styles-wrapper .hamburger:hover {
    opacity: 0.7;
}

body.template-block-builder .hamburger, .editor-styles-wrapper .hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.template-block-builder .hamburger span, .editor-styles-wrapper .hamburger span {
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

body.template-block-builder .hamburger.active span:nth-child(1), .editor-styles-wrapper .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

body.template-block-builder .hamburger.active span:nth-child(2), .editor-styles-wrapper .hamburger.active span:nth-child(2) {
    opacity: 0;
}

body.template-block-builder .hamburger.active span:nth-child(3), .editor-styles-wrapper .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Menu Overlay */
body.template-block-builder .menu-overlay, .editor-styles-wrapper .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

body.template-block-builder .menu-overlay.active, .editor-styles-wrapper .menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.template-block-builder .menu-container, .editor-styles-wrapper .menu-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

body.template-block-builder .menu-header, .editor-styles-wrapper .menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

body.template-block-builder .menu-logo, .editor-styles-wrapper .menu-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: white;
    letter-spacing: 0.1em;
}

body.template-block-builder .close-btn, .editor-styles-wrapper .close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 1rem;
    transition: opacity 0.3s ease;
}

body.template-block-builder .close-btn:hover, .editor-styles-wrapper .close-btn:hover {
    opacity: 0.7;
}

body.template-block-builder .menu-content, .editor-styles-wrapper .menu-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6rem;
    flex: 1;
}

body.template-block-builder .menu-left, .editor-styles-wrapper .menu-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.template-block-builder .welcome-message h2, .editor-styles-wrapper .welcome-message h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 300;
    color: white;
    margin-bottom: 4rem;
    line-height: 1.2;
}

body.template-block-builder .quick-links, .editor-styles-wrapper .quick-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

body.template-block-builder .quick-link, .editor-styles-wrapper .quick-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.template-block-builder .quick-link span, .editor-styles-wrapper .quick-link span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

body.template-block-builder .quick-link a, .editor-styles-wrapper .quick-link a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

body.template-block-builder .quick-link a:hover, .editor-styles-wrapper .quick-link a:hover {
    color: #d5ac57;
}

body.template-block-builder .menu-right, .editor-styles-wrapper .menu-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.template-block-builder .main-nav ul, .editor-styles-wrapper .main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

body.template-block-builder .main-nav a, .editor-styles-wrapper .main-nav a {
    color: white;
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 300;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

body.template-block-builder .main-nav a:hover, .editor-styles-wrapper .main-nav a:hover {
    color: #d5ac57;
    transform: translateX(20px);
}

body.template-block-builder .sub-nav, .editor-styles-wrapper .sub-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

body.template-block-builder .sub-nav-column h4, .editor-styles-wrapper .sub-nav-column h4 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

body.template-block-builder .sub-nav-column ul, .editor-styles-wrapper .sub-nav-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

body.template-block-builder .sub-nav-column a, .editor-styles-wrapper .sub-nav-column a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

body.template-block-builder .sub-nav-column a:hover, .editor-styles-wrapper .sub-nav-column a:hover {
    color: #d5ac57;
}

/* Hero Section */
body.template-block-builder .hero, .editor-styles-wrapper .hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.template-block-builder .hero-image, .editor-styles-wrapper .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

body.template-block-builder .hero-slide, .editor-styles-wrapper .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

body.template-block-builder .hero-slide.active, .editor-styles-wrapper .hero-slide.active {
    opacity: 1;
}

body.template-block-builder .hero-image::before, .editor-styles-wrapper .hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(18, 33, 29, 0.65) 0%,
        rgba(61, 128, 113, 0.52) 45%,
        rgba(217, 160, 64, 0.22) 100%
    );
    z-index: 1;
    animation: none;
}

body.template-block-builder .hero-image::after, .editor-styles-wrapper .hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100px 100px, 80px 80px, 120px 120px;
    background-position: 0 0, 20px 20px, 40px 40px;
    z-index: 2;
    opacity: 0.6;
    animation: contourLines 15s ease-in-out infinite;
}

@keyframes contourLines {
    0%, 100% {
        opacity: 0.4;
        transform: translateX(0) translateY(0);
    }
    25% {
        opacity: 0.6;
        transform: translateX(-10px) translateY(-5px);
    }
    50% {
        opacity: 0.5;
        transform: translateX(5px) translateY(-10px);
    }
    75% {
        opacity: 0.7;
        transform: translateX(-5px) translateY(5px);
    }
}

@keyframes overlayPulse {
    0%, 100% {
        background: linear-gradient(
            120deg,
            rgba(61, 128, 113, 0.9) 0%,
            rgba(61, 128, 113, 0.75) 30%,
            rgba(217, 160, 64, 0.7) 70%,
            rgba(18, 33, 29, 0.85) 100%
        );
    }
    50% {
        background: linear-gradient(
            120deg,
            rgba(217, 160, 64, 0.88) 0%,
            rgba(61, 128, 113, 0.72) 35%,
            rgba(61, 128, 113, 0.82) 75%,
            rgba(18, 33, 29, 0.75) 100%
        );
    }
}

body.template-block-builder .hero-slide img, .editor-styles-wrapper .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 0;
    display: block;
    animation: subtleZoom 20s ease-in-out infinite;
}

@keyframes subtleZoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

body.template-block-builder .hero-content, .editor-styles-wrapper .hero-content {
    text-align: center;
    color: white;
    max-width: 1000px;
    padding: 3rem 4rem;
    z-index: 1;
    animation: fadeInUp 1.2s ease-out;
    position: relative;
    background: linear-gradient(135deg, rgba(26, 52, 45, 0.96) 0%, rgba(44, 88, 78, 0.94) 50%, rgba(61, 128, 113, 0.9) 100%);
    border: 1px solid rgba(217, 160, 64, 0.45);
    box-shadow: 0 55px 120px rgba(8, 20, 16, 0.7);
    border-radius: 32px;
    backdrop-filter: blur(4px);
    isolation: isolate;
    overflow: visible;
}

.hero-content.intake-open .hero-copy,
.hero-content.intake-open .help-options,
body.template-block-builder .hero-content.intake-open .help-section > h2, .editor-styles-wrapper .hero-content.intake-open .help-section > h2 {
    display: none;
}

body.template-block-builder .hero-content.intake-open .help-intake-panel, .editor-styles-wrapper .hero-content.intake-open .help-intake-panel {
    margin-top: 0;
}

body.template-block-builder .hero-content::before, .editor-styles-wrapper .hero-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 20%;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: floatParticle1 8s ease-in-out infinite;
}

body.template-block-builder .hero-content::after, .editor-styles-wrapper .hero-content::after {
    content: '';
    position: absolute;
    top: -30px;
    right: 25%;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: floatParticle2 10s ease-in-out infinite;
}

@keyframes floatParticle1 {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(-5px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-30px) translateX(15px);
        opacity: 0.5;
    }
}

@keyframes floatParticle2 {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.2;
    }
    33% {
        transform: translateY(-15px) translateX(-8px);
        opacity: 0.4;
    }
    66% {
        transform: translateY(-25px) translateX(12px);
        opacity: 0.3;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 0 rgba(44, 90, 79, 0);
    }
    50% {
        text-shadow: 0 0 20px rgba(44, 90, 79, 0.3), 0 0 40px rgba(44, 90, 79, 0.1);
    }
}


body.template-block-builder .hero-title, .editor-styles-wrapper .hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 25px rgba(12, 28, 23, 0.7), 0 0 40px rgba(61, 128, 113, 0.45);
    color: #ffffff;
    animation: fadeInUp 1.2s ease-out 0.2s both;
    position: relative;
}


body.template-block-builder .hero-title::after, .editor-styles-wrapper .hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgba(61, 128, 113, 0), #3d8071 40%, #d9a040 60%, rgba(217, 160, 64, 0));
    animation: underlineGlow 3s ease-in-out infinite 3s;
}

@keyframes underlineGlow {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) scaleX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
}

body.template-block-builder .hero-subtitle, .editor-styles-wrapper .hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.96);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 18px rgba(8, 20, 17, 0.8), 0 1px 8px rgba(61, 128, 113, 0.5);
    animation: fadeInUp 1.2s ease-out 0.4s both;
    position: relative;
    display: inline-block;
    padding: 1.2rem 2.4rem;
    background: linear-gradient(130deg, rgba(61, 128, 113, 0.32) 0%, rgba(61, 128, 113, 0.24) 35%, rgba(217, 160, 64, 0.3) 100%);
    border-radius: 20px;
    border: 1px solid rgba(217, 160, 64, 0.35);
}


body.template-block-builder .help-section, .editor-styles-wrapper .help-section {
    width: 100%;
    margin-top: 3rem;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}


body.template-block-builder .help-section h2, .editor-styles-wrapper .help-section h2 {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.7rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    color: #f6f4ef;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 6px 25px rgba(0, 0, 0, 0.7);
}

body.template-block-builder .help-section h2::after, .editor-styles-wrapper .help-section h2::after {
    content: 'Support tailored to your journey';
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.65);
    text-transform: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 0.75rem;
}

body.template-block-builder .help-section h2 span, .editor-styles-wrapper .help-section h2 span {
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

body.template-block-builder .help-options, .editor-styles-wrapper .help-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    justify-items: stretch;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

body.template-block-builder .help-btn, .editor-styles-wrapper .help-btn {
    background: #DCB96F;
    border: 1.5px solid #DCB96F;
    color: #1d2a24;
    padding: 1.2rem 2rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s ease;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 80px;
    box-shadow: 0 18px 40px rgba(12, 28, 23, 0.25);
}

body.template-block-builder .help-btn::after, .editor-styles-wrapper .help-btn::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

body.template-block-builder .help-btn:hover::after, .editor-styles-wrapper .help-btn:hover::after {
    transform: translateX(4px);
}

body.template-block-builder .help-btn:focus, .editor-styles-wrapper .help-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

body.template-block-builder .help-btn:focus-visible, .editor-styles-wrapper .help-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

body.template-block-builder .help-btn::before, .editor-styles-wrapper .help-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    transition: left 0.35s ease;
    z-index: 0;
}

body.template-block-builder .help-btn:hover::before, .editor-styles-wrapper .help-btn:hover::before {
    left: 0;
}

body.template-block-builder .help-btn span, .editor-styles-wrapper .help-btn span {
    position: relative;
    z-index: 1;
    text-align: center;
    display: inline-flex;
    align-items: center;
}

body.template-block-builder .help-btn:hover, .editor-styles-wrapper .help-btn:hover {
    background: #f1d79a;
    border-color: #f1d79a;
    color: #1c241f;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 24px 50px rgba(12, 28, 23, 0.32);
    backdrop-filter: blur(10px);
}

body.template-block-builder .help-btn.primary, .editor-styles-wrapper .help-btn.primary {
    background: #DCB96F;
    color: #1d2a24;
    border-color: #DCB96F;
    animation: fadeInUp 1.2s ease-out 0.8s both, subtlePulse 3s ease-in-out infinite 2s;
    box-shadow: 0 24px 55px rgba(12, 32, 27, 0.45);
}

body.template-block-builder .help-btn.primary::after, .editor-styles-wrapper .help-btn.primary::after {
    color: inherit;
}

body.template-block-builder .help-btn.selected, .editor-styles-wrapper .help-btn.selected {
    transform: translateY(-2px);
    box-shadow: 0 26px 60px rgba(220, 185, 111, 0.28);
}

body.template-block-builder .help-btn.secondary, .editor-styles-wrapper .help-btn.secondary {
    border-color: #DCB96F;
    color: #1d2a24;
    background: #DCB96F;
}

body.template-block-builder .help-btn.secondary:hover, .editor-styles-wrapper .help-btn.secondary:hover {
    border-color: #f1d79a;
    color: #1c241f;
    background: #f1d79a;
}

@media (max-width: 900px) {
    body.template-block-builder .help-options, .editor-styles-wrapper .help-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.template-block-builder .intake-panel-navigation, .editor-styles-wrapper .intake-panel-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    body.template-block-builder .intake-nav-spacer, .editor-styles-wrapper .intake-nav-spacer {
        display: none;
    }

    body.template-block-builder .nav-btn, .editor-styles-wrapper .nav-btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    body.template-block-builder .help-options, .editor-styles-wrapper .help-options {
        grid-template-columns: 1fr;
    }

    body.template-block-builder .intake-panel-header, .editor-styles-wrapper .intake-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    body.template-block-builder .intake-back, .editor-styles-wrapper .intake-back {
        align-self: stretch;
        justify-content: center;
    }
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(61, 128, 113, 0.3);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(61, 128, 113, 0);
    }
}

body.template-block-builder .help-btn.primary::before, .editor-styles-wrapper .help-btn.primary::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05));
}

body.template-block-builder .help-btn.primary:hover, .editor-styles-wrapper .help-btn.primary:hover {
    background: #f0c879;
    color: #1b241e;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 28px 60px rgba(26, 44, 35, 0.5);
}

body.template-block-builder .help-btn.primary:hover::after, .editor-styles-wrapper .help-btn.primary:hover::after {
    color: #1b241e;
}

body.template-block-builder .help-btn, .editor-styles-wrapper .help-btn {
    animation: fadeInUp 1.2s ease-out 0.8s both;
}

body.template-block-builder .help-btn:nth-child(2), .editor-styles-wrapper .help-btn:nth-child(2) {
    animation-delay: 0.9s;
}

body.template-block-builder .help-btn:nth-child(3), .editor-styles-wrapper .help-btn:nth-child(3) {
    animation-delay: 1.0s;
}

body.template-block-builder .cta-button, .editor-styles-wrapper .cta-button {
    background: white;
    color: #000;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.template-block-builder .cta-button:hover, .editor-styles-wrapper .cta-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

body.template-block-builder .cta-button.large, .editor-styles-wrapper .cta-button.large {
    padding: 1.5rem 4rem;
    font-size: 1.1rem;
}

/* Inline Intake Panel */
body.template-block-builder .help-intake-panel, .editor-styles-wrapper .help-intake-panel {
    margin-top: 3rem;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: none;
    gap: 2rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    width: 100%;
}

body.template-block-builder .help-intake-panel.active, .editor-styles-wrapper .help-intake-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

body.template-block-builder .intake-panel-header, .editor-styles-wrapper .intake-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

body.template-block-builder .intake-heading, .editor-styles-wrapper .intake-heading {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f6f4ef;
    text-shadow: 0 6px 25px rgba(0, 0, 0, 0.7);
}

body.template-block-builder .intake-heading::after, .editor-styles-wrapper .intake-heading::after {
    content: 'Support tailored to your journey';
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.65);
    text-transform: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 0.75rem;
}

body.template-block-builder .intake-heading span, .editor-styles-wrapper .intake-heading span {
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

body.template-block-builder .intake-panel-body, .editor-styles-wrapper .intake-panel-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(220, 185, 111, 0.22);
}

body.template-block-builder .form-step, .editor-styles-wrapper .form-step {
    display: none;
}

body.template-block-builder .form-step.active, .editor-styles-wrapper .form-step.active {
    display: block;
}

body.template-block-builder .form-step h3, .editor-styles-wrapper .form-step h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: #f7f5ef;
    margin-bottom: 2rem;
    text-align: center;
}

body.template-block-builder .form-options, .editor-styles-wrapper .form-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.template-block-builder .form-option, .editor-styles-wrapper .form-option {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(220, 185, 111, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

body.template-block-builder .form-option:hover, .editor-styles-wrapper .form-option:hover {
    border-color: rgba(220, 185, 111, 0.6);
    background: rgba(220, 185, 111, 0.16);
}

body.template-block-builder .form-option.selected, .editor-styles-wrapper .form-option.selected {
    border-color: rgba(220, 185, 111, 0.8);
    background: rgba(220, 185, 111, 0.22);
    box-shadow: 0 18px 40px rgba(220, 185, 111, 0.22);
}

body.template-block-builder .form-option span, .editor-styles-wrapper .form-option span {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: #f7f5ef;
    margin-bottom: 0.5rem;
}

body.template-block-builder .form-option p, .editor-styles-wrapper .form-option p {
    font-size: 0.9rem;
    color: rgba(247, 245, 239, 0.65);
    margin: 0;
}

body.template-block-builder .substance-options, .editor-styles-wrapper .substance-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

body.template-block-builder .substance-option, .editor-styles-wrapper .substance-option {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(220, 185, 111, 0.2);
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #f7f5ef;
}

body.template-block-builder .substance-option:hover, .editor-styles-wrapper .substance-option:hover {
    border-color: rgba(220, 185, 111, 0.6);
    background: rgba(220, 185, 111, 0.16);
}

body.template-block-builder .substance-option.selected, .editor-styles-wrapper .substance-option.selected {
    border-color: rgba(220, 185, 111, 0.8);
    background: rgba(220, 185, 111, 0.22);
    box-shadow: 0 18px 40px rgba(220, 185, 111, 0.22);
}

body.template-block-builder .duration-inputs, .editor-styles-wrapper .duration-inputs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

body.template-block-builder .input-group, .editor-styles-wrapper .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.template-block-builder .input-group label, .editor-styles-wrapper .input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(247, 245, 239, 0.7);
    text-align: center;
}

body.template-block-builder .input-group input, .editor-styles-wrapper .input-group input {
    padding: 0.75rem;
    border: 1px solid rgba(220, 185, 111, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: rgba(0, 0, 0, 0.18);
    color: #f7f5ef;
}

body.template-block-builder .input-group input:focus, .editor-styles-wrapper .input-group input:focus {
    outline: none;
    border-color: rgba(220, 185, 111, 0.8);
    box-shadow: 0 0 0 3px rgba(220, 185, 111, 0.25);
}

body.template-block-builder textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(220, 185, 111, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: rgba(0, 0, 0, 0.18);
    color: #f7f5ef;
}

body.template-block-builder textarea:focus {
    outline: none;
    border-color: rgba(220, 185, 111, 0.8);
    box-shadow: 0 0 0 3px rgba(220, 185, 111, 0.25);
}

body.template-block-builder .contact-form, .editor-styles-wrapper .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.template-block-builder .form-row, .editor-styles-wrapper .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

body.template-block-builder .form-row:last-child, .editor-styles-wrapper .form-row:last-child {
    grid-template-columns: 1fr;
}

body.template-block-builder .contact-form input, .editor-styles-wrapper .contact-form input {
    padding: 0.75rem;
    border: 1px solid rgba(220, 185, 111, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: rgba(0, 0, 0, 0.18);
    color: #f7f5ef;
}

body.template-block-builder .contact-form input:focus, .editor-styles-wrapper .contact-form input:focus {
    outline: none;
    border-color: rgba(220, 185, 111, 0.8);
    box-shadow: 0 0 0 3px rgba(220, 185, 111, 0.25);
}

body.template-block-builder .intake-panel-navigation, .editor-styles-wrapper .intake-panel-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(220, 185, 111, 0.22);
}

body.template-block-builder .intake-nav-spacer, .editor-styles-wrapper .intake-nav-spacer {
    flex: 1;
}

body.template-block-builder .nav-btn, .editor-styles-wrapper .nav-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 2.5rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    background: #DCB96F;
    color: #1d2a24;
    border: 1.5px solid #DCB96F;
    box-shadow: 0 18px 40px rgba(12, 28, 23, 0.25);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

body.template-block-builder .nav-btn::before, .editor-styles-wrapper .nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    transition: left 0.35s ease;
    z-index: 0;
}

body.template-block-builder .nav-btn::after, .editor-styles-wrapper .nav-btn::after {
    content: '→';
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    z-index: 1;
}

body.template-block-builder .nav-btn.prev-btn, .editor-styles-wrapper .nav-btn.prev-btn {
    flex-direction: row-reverse;
}

body.template-block-builder .nav-btn.prev-btn::after, .editor-styles-wrapper .nav-btn.prev-btn::after {
    content: '←';
    margin-right: -9px;
}

body.template-block-builder .nav-btn:hover::before, .editor-styles-wrapper .nav-btn:hover::before {
    left: 0;
}

body.template-block-builder .nav-btn:hover, .editor-styles-wrapper .nav-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 24px 55px rgba(12, 28, 23, 0.32);
    background: #f1d79a;
    border-color: #f1d79a;
    color: #1c241f;
}

body.template-block-builder .nav-btn:hover::after, .editor-styles-wrapper .nav-btn:hover::after {
    transform: translateX(4px);
}

body.template-block-builder .nav-btn.prev-btn:hover::after, .editor-styles-wrapper .nav-btn.prev-btn:hover::after {
    transform: translateX(-4px);
}

body.template-block-builder .nav-btn:disabled, .editor-styles-wrapper .nav-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

body.template-block-builder .nav-btn:disabled:hover::before, .editor-styles-wrapper .nav-btn:disabled:hover::before {
    transform: none;
}

body.template-block-builder .nav-btn:disabled:hover::after, .editor-styles-wrapper .nav-btn:disabled:hover::after {
    left: -100%;
}

/* Search Modal - hidden by default, shown when .active */
body.template-block-builder .search-modal, body.template-page .search-modal, .editor-styles-wrapper .search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.template-block-builder .search-modal.active, body.template-page .search-modal.active, .editor-styles-wrapper .search-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.template-block-builder .search-modal .modal-overlay, body.template-page .search-modal .modal-overlay, .editor-styles-wrapper .search-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

body.template-block-builder .search-modal-content, body.template-page .search-modal-content, .editor-styles-wrapper .search-modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    margin: 10vh auto;
    overflow: hidden;
}

body.template-block-builder .search-header, body.template-page .search-header, .editor-styles-wrapper .search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

body.template-block-builder .search-header h3, body.template-page .search-header h3, .editor-styles-wrapper .search-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: #2c5a4f;
    margin: 0;
}

body.template-block-builder .close-search-modal, body.template-page .close-search-modal, .editor-styles-wrapper .close-search-modal {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #666;
    transition: color 0.3s ease;
}

body.template-block-builder .close-search-modal:hover, body.template-page .close-search-modal:hover, .editor-styles-wrapper .close-search-modal:hover {
    color: #000;
}

body.template-block-builder .search-body, body.template-page .search-body, .editor-styles-wrapper .search-body {
    padding: 2rem;
}

body.template-block-builder .search-input-container, body.template-page .search-input-container, .editor-styles-wrapper .search-input-container {
    position: relative;
    margin-bottom: 2rem;
}

body.template-block-builder #searchInput, body.template-page #searchInput, .editor-styles-wrapper #searchInput {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

body.template-block-builder #searchInput:focus, body.template-page #searchInput:focus, .editor-styles-wrapper #searchInput:focus {
    border-color: #2c5a4f;
}

body.template-block-builder .search-submit-btn, body.template-page .search-submit-btn, .editor-styles-wrapper .search-submit-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    color: #2c5a4f;
    cursor: pointer;
    transition: background 0.3s ease;
}

body.template-block-builder .search-submit-btn:hover, body.template-page .search-submit-btn:hover, .editor-styles-wrapper .search-submit-btn:hover {
    background: #1e3d1a;
}

body.template-block-builder .search-suggestions h4, body.template-page .search-suggestions h4, .editor-styles-wrapper .search-suggestions h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #2c5a4f;
    margin-bottom: 1rem;
}

body.template-block-builder .suggestion-tags, body.template-page .suggestion-tags, .editor-styles-wrapper .suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

body.template-block-builder .suggestion-tag, body.template-page .suggestion-tag, .editor-styles-wrapper .suggestion-tag {
    background: #f8f9fa;
    color: #2c5a4f;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

body.template-block-builder .suggestion-tag:hover, body.template-page .suggestion-tag:hover, .editor-styles-wrapper .suggestion-tag:hover {
    background: #2c5a4f;
    color: white;
    transform: translateY(-2px);
}

/* Virtual Tour Section */
body.template-block-builder .virtual-tour-section, .editor-styles-wrapper .virtual-tour-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #3d807124 0%, #fff 7.5rem);
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

body.template-block-builder .virtual-tour-section::before, .editor-styles-wrapper .virtual-tour-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: -2px;
    width: 0%;
    height: 2px;
    background: #2c5a4f;
    transition: width 1.5s ease-out;
    z-index: 1;
}

body.template-block-builder .virtual-tour-section.animate::before, .editor-styles-wrapper .virtual-tour-section.animate::before {
    width: 100%;
}

body.template-block-builder .virtual-tour-section::after, .editor-styles-wrapper .virtual-tour-section::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 0px;
    background: #2c5a4f;
    transition: height 1s ease-out 0.5s;
    z-index: 1;
}

body.template-block-builder .virtual-tour-section.animate::after, .editor-styles-wrapper .virtual-tour-section.animate::after {
    height: 60px;
}

body.template-block-builder .virtual-tour-content, .editor-styles-wrapper .virtual-tour-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

body.template-block-builder .virtual-tour-section.animate .virtual-tour-content, .editor-styles-wrapper .virtual-tour-section.animate .virtual-tour-content {
    opacity: 1;
    transform: translateY(0);
}

body.template-block-builder .tour-container, .editor-styles-wrapper .tour-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

body.template-block-builder .tour-video, .editor-styles-wrapper .tour-video {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

body.template-block-builder .tour-video iframe, .editor-styles-wrapper .tour-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

body.template-block-builder .tour-features, .editor-styles-wrapper .tour-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

body.template-block-builder .feature-item, .editor-styles-wrapper .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

body.template-block-builder .feature-content, .editor-styles-wrapper .feature-content {
    flex: 1;
}

body.template-block-builder .feature-item:hover, .editor-styles-wrapper .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #2c5a4f;
}

body.template-block-builder .feature-item.active, .editor-styles-wrapper .feature-item.active {
    border-color: #2c5a4f;
    background: linear-gradient(135deg, #f8fffe 0%, #ffffff 100%);
    box-shadow: 0 12px 35px rgba(44, 90, 79, 0.15);
}

body.template-block-builder .feature-item.active .feature-icon, .editor-styles-wrapper .feature-item.active .feature-icon {
    background: #2c5a4f;
    transform: scale(1.05);
}

body.template-block-builder .feature-item.active h4, .editor-styles-wrapper .feature-item.active h4 {
    color: #2c5a4f;
}

body.template-block-builder .feature-icon, .editor-styles-wrapper .feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #2c5a4f;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

body.template-block-builder .feature-item:hover .feature-icon, .editor-styles-wrapper .feature-item:hover .feature-icon {
    background: #DCB96F;
    transform: scale(1.1);
}

/* Location Icon (for Canaan and Wilton) */
body.template-block-builder .location-icon::before, .editor-styles-wrapper .location-icon::before {
    content: '';
    width: 16px;
    height: 20px;
    background: white;
    border-radius: 8px 8px 8px 0;
    position: relative;
    transform: rotate(-45deg);
}

body.template-block-builder .location-icon::after, .editor-styles-wrapper .location-icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* City Icon (for NYC) */
body.template-block-builder .city-icon::before, .editor-styles-wrapper .city-icon::before {
    content: '';
    width: 4px;
    height: 16px;
    background: white;
    position: absolute;
    top: 6px;
    left: 8px;
    box-shadow: 4px 0 0 white, 8px 0 0 white, 12px 0 0 white;
}

body.template-block-builder .city-icon::after, .editor-styles-wrapper .city-icon::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 12px;
    background: white;
    top: 10px;
    left: 6px;
    box-shadow: 4px 0 0 white, 8px 0 0 white, 12px 0 0 white;
}

body.template-block-builder .feature-item h4, .editor-styles-wrapper .feature-item h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    color: #2c5a4f;
    margin-bottom: 0.5rem;
}

body.template-block-builder .feature-item p, .editor-styles-wrapper .feature-item p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

body.template-block-builder .feature-item p strong, .editor-styles-wrapper .feature-item p strong {
    color: #2c5a4f;
    font-weight: 600;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body.template-block-builder .tour-container, .editor-styles-wrapper .tour-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    body.template-block-builder .tour-video video, .editor-styles-wrapper .tour-video video {
        height: 250px;
    }
    
    body.template-block-builder .tour-features, .editor-styles-wrapper .tour-features {
        gap: 1.5rem;
    }
}

/* Expertise Section */
body.template-block-builder .expertise-section, .editor-styles-wrapper .expertise-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #3d807124 0%, #fff 7.5rem);
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

body.template-block-builder .expertise-section::before, .editor-styles-wrapper .expertise-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: -2px;
    width: 0%;
    height: 2px;
    background: #2c5a4f;
    transition: width 1.5s ease-out;
    z-index: 1;
}

body.template-block-builder .expertise-section.animate::before, .editor-styles-wrapper .expertise-section.animate::before {
    width: 100%;
}

body.template-block-builder .expertise-section::after, .editor-styles-wrapper .expertise-section::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 0px;
    background: #2c5a4f;
    transition: height 1s ease-out 0.5s;
    z-index: 1;
}

body.template-block-builder .expertise-section.animate::after, .editor-styles-wrapper .expertise-section.animate::after {
    height: 60px;
}

body.template-block-builder .expertise-header, .editor-styles-wrapper .expertise-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

body.template-block-builder .expertise-eyebrow, .editor-styles-wrapper .expertise-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

body.template-block-builder .expertise-title, .editor-styles-wrapper .expertise-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 300;
    color: #000;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

body.template-block-builder .expertise-description, .editor-styles-wrapper .expertise-description {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 3rem;
    font-weight: 400;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

body.template-block-builder .expertise-cta, .editor-styles-wrapper .expertise-cta {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    text-decoration: underline;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    animation: fadeInUp 1.2s ease-out 0.8s both;
}

body.template-block-builder .expertise-cta:hover, .editor-styles-wrapper .expertise-cta:hover {
    color: #2c5a4f;
}

body.template-block-builder .team-grid, .editor-styles-wrapper .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    animation: fadeInUp 1.2s ease-out 1s both;
}

body.template-block-builder .team-member, .editor-styles-wrapper .team-member {
    text-align: center;
    animation: fadeInUp 0.8s ease-out both;
}

.team-member:nth-child(1) { animation-delay: 1.2s; }
.team-member:nth-child(2) { animation-delay: 1.4s; }
.team-member:nth-child(3) { animation-delay: 1.6s; }

body.template-block-builder .member-image, .editor-styles-wrapper .member-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease;
}

body.template-block-builder .team-member:hover .member-image, .editor-styles-wrapper .team-member:hover .member-image {
    transform: scale(1.05);
}

body.template-block-builder .member-image img, .editor-styles-wrapper .member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.template-block-builder .member-info h4, .editor-styles-wrapper .member-info h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 0.5rem;
}

body.template-block-builder .member-info p, .editor-styles-wrapper .member-info p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

body.template-block-builder .member-title, .editor-styles-wrapper .member-title {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #999;
    font-weight: 400;
}

/* Video Message / Brand Film (nav mockup prototype) */
body.template-block-builder .video-message.brand-film,
.editor-styles-wrapper .video-message.brand-film {
    padding: 72px 56px 80px;
    background: var(--ms-linen, #f8f7f0);
    border: 0;
    position: relative;
}

body.template-block-builder .brand-film-intro,
.editor-styles-wrapper .brand-film-intro {
    max-width: 960px;
    margin: 0 auto 40px;
    text-align: center;
}

body.template-block-builder .brand-film-eyebrow,
.editor-styles-wrapper .brand-film-eyebrow {
    font-family: var(--font-body, 'Roboto', sans-serif);
    font-weight: 400;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ms-gold, #8a6e08);
    margin: 0 0 12px;
}

body.template-block-builder .brand-film-headline,
.editor-styles-wrapper .brand-film-headline {
    font-family: var(--font-heading, 'Lora', serif);
    font-size: 32px;
    font-weight: 400;
    color: var(--ms-green, #284227);
    line-height: 1.3;
    letter-spacing: -0.005em;
    margin: 0;
}

body.template-block-builder .brand-film-inner,
.editor-styles-wrapper .brand-film-inner {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ms-green, #284227);
}

body.template-block-builder .brand-film-inner iframe,
.editor-styles-wrapper .brand-film-inner iframe,
body.template-block-builder .brand-film-inner .brand-film-video,
.editor-styles-wrapper .brand-film-inner .brand-film-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: cover;
}

body.template-block-builder .brand-film-placeholder,
.editor-styles-wrapper .brand-film-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(135deg, #1e3120 0%, #284227 60%, #3a5c38 100%);
}

body.template-block-builder .brand-film-placeholder svg,
.editor-styles-wrapper .brand-film-placeholder svg {
    display: block;
    flex-shrink: 0;
}

body.template-block-builder .brand-film-placeholder-label,
.editor-styles-wrapper .brand-film-placeholder-label {
    font-family: var(--font-body, 'Roboto', sans-serif);
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(248, 247, 240, 0.4);
}

body.template-block-builder .brand-film-footer,
.editor-styles-wrapper .brand-film-footer {
    max-width: 960px;
    margin: 40px auto 0;
    text-align: center;
}

body.template-block-builder .brand-film-quote,
.editor-styles-wrapper .brand-film-quote {
    font-family: var(--font-body, 'Roboto', sans-serif);
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(40, 66, 39, 0.85);
    margin: 0 0 1.25rem;
    font-style: italic;
}

body.template-block-builder .brand-film-author,
.editor-styles-wrapper .brand-film-author {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
}

body.template-block-builder .brand-film-author-name,
.editor-styles-wrapper .brand-film-author-name {
    font-family: var(--font-heading, 'Lora', serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--ms-green, #284227);
}

body.template-block-builder .brand-film-author-title,
.editor-styles-wrapper .brand-film-author-title {
    font-family: var(--font-body, 'Roboto', sans-serif);
    font-size: 0.85rem;
    color: rgba(40, 66, 39, 0.55);
    font-weight: 400;
}

/* ========== Hero Alt block (.ms-heroalt) — landing two-column hero, unique classes ========== */
body.template-block-builder .ms-heroalt,
.editor-styles-wrapper .ms-heroalt {
    --ms-heroalt-sage: #4a5e52;
    --ms-heroalt-sage-light: #6b7f73;
    --ms-heroalt-sage-pale: #f8f7f0;
    --ms-heroalt-sand: #f8f7f0;
    --ms-heroalt-white: #ffffff;
    --ms-heroalt-ink: #241f21;
    --ms-heroalt-ink-soft: #4a4547;
    --ms-heroalt-gold: #a08c5b;
    --ms-heroalt-gold-light: #c4ad82;
    --ms-heroalt-green: #284227;
    --ms-heroalt-green-mid: #46704c;
    --ms-heroalt-serif: var(--font-heading, 'Lora', Georgia, serif);
    --ms-heroalt-sans: var(--font-body, 'Roboto', sans-serif);
}

body.template-block-builder .ms-heroalt .ms-heroalt__inner,
.editor-styles-wrapper .ms-heroalt .ms-heroalt__inner {
    display: grid;
    grid-template-columns: 5fr 7fr;
    min-height: 92vh;
}

body.template-block-builder .ms-heroalt .ms-heroalt__copy,
.editor-styles-wrapper .ms-heroalt .ms-heroalt__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 64px 60px 56px;
    background: var(--ms-heroalt-sand);
    color: var(--ms-heroalt-ink);
    font-family: var(--ms-heroalt-sans);
    font-weight: 300;
}

body.template-block-builder .ms-heroalt .ms-heroalt__eyebrow,
.editor-styles-wrapper .ms-heroalt .ms-heroalt__eyebrow {
    font-family: var(--ms-heroalt-sans);
    font-weight: 400;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ms-heroalt-gold);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

body.template-block-builder .ms-heroalt .ms-heroalt__eyebrow::before,
.editor-styles-wrapper .ms-heroalt .ms-heroalt__eyebrow::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--ms-heroalt-gold);
    flex-shrink: 0;
}

body.template-block-builder .ms-heroalt .ms-heroalt__headline,
.editor-styles-wrapper .ms-heroalt .ms-heroalt__headline {
    font-family: var(--ms-heroalt-serif);
    font-size: clamp(2.4rem, 3.6vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--ms-heroalt-green);
    margin: 0 0 36px;
}

body.template-block-builder .ms-heroalt .ms-heroalt__headline em,
.editor-styles-wrapper .ms-heroalt .ms-heroalt__headline em {
    font-style: italic;
    color: var(--ms-heroalt-green-mid);
}

body.template-block-builder .ms-heroalt .ms-heroalt__sub,
.editor-styles-wrapper .ms-heroalt .ms-heroalt__sub {
    font-family: var(--ms-heroalt-sans);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--ms-heroalt-ink-soft);
    max-width: 520px;
    margin: 0 0 52px;
}

body.template-block-builder .ms-heroalt .ms-heroalt__sub p,
.editor-styles-wrapper .ms-heroalt .ms-heroalt__sub p {
    margin: 0;
}

body.template-block-builder .ms-heroalt .ms-heroalt__sub a,
.editor-styles-wrapper .ms-heroalt .ms-heroalt__sub a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.template-block-builder .ms-heroalt .ms-heroalt__divider,
.editor-styles-wrapper .ms-heroalt .ms-heroalt__divider {
    width: 40px;
    height: 1px;
    background: var(--ms-heroalt-gold);
    margin-bottom: 40px;
}

body.template-block-builder .ms-heroalt .ms-heroalt__cta,
.editor-styles-wrapper .ms-heroalt .ms-heroalt__cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

body.template-block-builder .ms-heroalt .ms-heroalt__cta-label,
.editor-styles-wrapper .ms-heroalt .ms-heroalt__cta-label {
    font-family: var(--ms-heroalt-sans);
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ms-heroalt-green);
    margin-bottom: 10px;
}

body.template-block-builder .ms-heroalt .ms-heroalt__btn-call,
.editor-styles-wrapper .ms-heroalt .ms-heroalt__btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ms-heroalt-green);
    color: var(--ms-heroalt-white);
    font-family: var(--ms-heroalt-serif);
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.04em;
    text-decoration: none;
    padding: 16px 40px;
    transition: background 0.25s;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
}

body.template-block-builder .ms-heroalt a.ms-heroalt__btn-call:hover,
.editor-styles-wrapper .ms-heroalt a.ms-heroalt__btn-call:hover {
    background: var(--ms-heroalt-sage);
}

body.template-block-builder .ms-heroalt .ms-heroalt__btn-call--static,
.editor-styles-wrapper .ms-heroalt .ms-heroalt__btn-call--static {
    cursor: default;
}

body.template-block-builder .ms-heroalt .ms-heroalt__cta-note,
.editor-styles-wrapper .ms-heroalt .ms-heroalt__cta-note {
    font-family: var(--ms-heroalt-sans);
    font-weight: 300;
    font-size: 0.75rem;
    color: var(--ms-heroalt-ink-soft);
    letter-spacing: 0.05em;
    opacity: 0.75;
    padding-left: 2px;
}

body.template-block-builder .ms-heroalt .ms-heroalt__media,
.editor-styles-wrapper .ms-heroalt .ms-heroalt__media {
    position: relative;
    overflow: hidden;
    background: var(--ms-heroalt-sage-pale);
}

body.template-block-builder .ms-heroalt .ms-heroalt__media::after,
.editor-styles-wrapper .ms-heroalt .ms-heroalt__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(74, 94, 82, 0.15) 0%, transparent 55%);
    pointer-events: none;
}

body.template-block-builder .ms-heroalt .ms-heroalt__img,
.editor-styles-wrapper .ms-heroalt .ms-heroalt__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 860px) {
    body.template-block-builder .ms-heroalt .ms-heroalt__inner,
    .editor-styles-wrapper .ms-heroalt .ms-heroalt__inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    body.template-block-builder .ms-heroalt .ms-heroalt__media,
    .editor-styles-wrapper .ms-heroalt .ms-heroalt__media {
        order: -1;
        min-height: 280px;
    }
    body.template-block-builder .ms-heroalt .ms-heroalt__copy,
    .editor-styles-wrapper .ms-heroalt .ms-heroalt__copy {
        padding: 56px 28px 64px;
    }
    body.template-block-builder .ms-heroalt .ms-heroalt__sub,
    .editor-styles-wrapper .ms-heroalt .ms-heroalt__sub {
        max-width: 100%;
    }
}

/* ========== Why Mountainside block — .ms-why (image + pillars + callout) ========== */
body.template-block-builder .ms-why,
.editor-styles-wrapper .ms-why {
    --ms-why-green-dark: #284227;
    --ms-why-green-mid: #46704c;
    --ms-why-gold: #a08c5b;
    --ms-why-gold-light: #c4ad82;
    --ms-why-bg: #f8f7f0;
    --ms-why-white: #ffffff;
    --ms-why-ink: #241f21;
    --ms-why-ink-soft: #4a4547;
    --ms-why-serif: var(--font-heading, 'Lora', Georgia, serif);
    --ms-why-sans: var(--font-body, 'Roboto', sans-serif);
    background: var(--ms-why-bg);
    padding: 60px 0 0;
}

body.template-block-builder .ms-why .ms-why__inner,
.editor-styles-wrapper .ms-why .ms-why__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 680px;
}

body.template-block-builder .ms-why .ms-why__media,
.editor-styles-wrapper .ms-why .ms-why__media {
    position: relative;
    overflow: hidden;
    background: var(--ms-why-bg);
}

body.template-block-builder .ms-why .ms-why__img,
.editor-styles-wrapper .ms-why .ms-why__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.template-block-builder .ms-why .ms-why__copy,
.editor-styles-wrapper .ms-why .ms-why__copy {
    padding: 72px 64px 72px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--ms-why-bg);
}

body.template-block-builder .ms-why .ms-why__eyebrow,
.editor-styles-wrapper .ms-why .ms-why__eyebrow {
    font-family: var(--ms-why-sans);
    font-weight: 400;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ms-why-gold);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

body.template-block-builder .ms-why .ms-why__eyebrow::before,
.editor-styles-wrapper .ms-why .ms-why__eyebrow::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--ms-why-gold);
    flex-shrink: 0;
}

body.template-block-builder .ms-why .ms-why__title,
.editor-styles-wrapper .ms-why .ms-why__title {
    font-family: var(--ms-why-serif);
    font-size: clamp(1.7rem, 2.4vw, 2.4rem);
    font-weight: 400;
    color: var(--ms-why-green-dark);
    line-height: 1.25;
    margin: 0 0 16px;
}

body.template-block-builder .ms-why .ms-why__title em,
.editor-styles-wrapper .ms-why .ms-why__title em {
    font-style: italic;
    color: var(--ms-why-green-mid);
}

body.template-block-builder .ms-why .ms-why__intro,
.editor-styles-wrapper .ms-why .ms-why__intro {
    font-family: var(--ms-why-sans);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--ms-why-ink-soft);
    margin-bottom: 40px;
    max-width: 480px;
}

body.template-block-builder .ms-why .ms-why__intro p,
.editor-styles-wrapper .ms-why .ms-why__intro p {
    margin: 0;
}

body.template-block-builder .ms-why .ms-why__pillars,
.editor-styles-wrapper .ms-why .ms-why__pillars {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
}

body.template-block-builder .ms-why .ms-why__pillar,
.editor-styles-wrapper .ms-why .ms-why__pillar {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(40, 66, 39, 0.1);
    align-items: start;
}

body.template-block-builder .ms-why .ms-why__pillar:first-child,
.editor-styles-wrapper .ms-why .ms-why__pillar:first-child {
    border-top: 1px solid rgba(40, 66, 39, 0.1);
}

body.template-block-builder .ms-why .ms-why__pillar-dot,
.editor-styles-wrapper .ms-why .ms-why__pillar-dot {
    width: 6px;
    height: 6px;
    background: var(--ms-why-gold);
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
}

body.template-block-builder .ms-why .ms-why__pillar-text strong,
.editor-styles-wrapper .ms-why .ms-why__pillar-text strong {
    display: block;
    font-family: var(--ms-why-sans);
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--ms-why-green-dark);
    margin-bottom: 3px;
    letter-spacing: 0.02em;
}

body.template-block-builder .ms-why .ms-why__pillar-text span,
.editor-styles-wrapper .ms-why .ms-why__pillar-text span {
    font-family: var(--ms-why-sans);
    font-weight: 300;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--ms-why-ink-soft);
}

body.template-block-builder .ms-why .ms-why__callout,
.editor-styles-wrapper .ms-why .ms-why__callout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--ms-why-white);
    border-left: 3px solid var(--ms-why-gold);
    padding: 20px 24px;
}

body.template-block-builder .ms-why .ms-why__callout p,
.editor-styles-wrapper .ms-why .ms-why__callout p {
    font-family: var(--ms-why-sans);
    font-weight: 300;
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--ms-why-ink-soft);
    margin: 0 0 0.75rem;
}

body.template-block-builder .ms-why .ms-why__callout p:last-child,
.editor-styles-wrapper .ms-why .ms-why__callout p:last-child {
    margin-bottom: 0;
}

body.template-block-builder .ms-why .ms-why__callout p a,
.editor-styles-wrapper .ms-why .ms-why__callout p a {
    color: var(--ms-why-green-dark);
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

body.template-block-builder .ms-why .ms-why__callout p a:hover,
.editor-styles-wrapper .ms-why .ms-why__callout p a:hover {
    color: var(--ms-why-green-mid);
}

body.template-block-builder .ms-why .ms-why__btn-outline,
.editor-styles-wrapper .ms-why .ms-why__btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ms-why-sans);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ms-why-green-dark);
    text-decoration: none;
    border: 1px solid var(--ms-why-green-dark);
    padding: 10px 20px;
    border-radius: 100px;
    margin-top: 14px;
    transition: background 0.2s, color 0.2s;
    align-self: flex-start;
}

body.template-block-builder .ms-why .ms-why__btn-outline:hover,
.editor-styles-wrapper .ms-why .ms-why__btn-outline:hover {
    background: var(--ms-why-green-dark);
    color: var(--ms-why-white);
}

body.template-block-builder .ms-why .ms-why__divider,
.editor-styles-wrapper .ms-why .ms-why__divider {
    width: 100%;
    height: 2px;
    background: var(--ms-why-green-dark);
    margin-top: 0;
}

@media (max-width: 860px) {
    body.template-block-builder .ms-why .ms-why__inner,
    .editor-styles-wrapper .ms-why .ms-why__inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    body.template-block-builder .ms-why .ms-why__media,
    .editor-styles-wrapper .ms-why .ms-why__media {
        min-height: 300px;
    }
    body.template-block-builder .ms-why .ms-why__copy,
    .editor-styles-wrapper .ms-why .ms-why__copy {
        padding: 52px 24px;
    }
    body.template-block-builder .ms-why .ms-why__intro,
    .editor-styles-wrapper .ms-why .ms-why__intro {
        max-width: 100%;
    }
}

/* ========== MS Beliefs — .ms-beliefs (prototype: beliefs-section) ========== */
body.template-block-builder .ms-beliefs,
.editor-styles-wrapper .ms-beliefs {
    --ms-beliefs-linen: #f8f7f0;
    --ms-beliefs-green: #284227;
    --ms-beliefs-gold: #a08c5b;
    background: var(--ms-beliefs-linen);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
}

body.template-block-builder .ms-beliefs .ms-beliefs__photo,
.editor-styles-wrapper .ms-beliefs .ms-beliefs__photo {
    position: relative;
    background-color: #e8e6df;
    background-size: cover;
    background-position: center center;
    min-height: 560px;
}

body.template-block-builder .ms-beliefs .ms-beliefs__text-col,
.editor-styles-wrapper .ms-beliefs .ms-beliefs__text-col {
    padding: 88px 56px 88px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

body.template-block-builder .ms-beliefs .ms-beliefs__eyebrow,
.editor-styles-wrapper .ms-beliefs .ms-beliefs__eyebrow {
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ms-beliefs-gold);
    margin-bottom: 16px;
    display: block;
}

body.template-block-builder .ms-beliefs .ms-beliefs__heading,
.editor-styles-wrapper .ms-beliefs .ms-beliefs__heading {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 400;
    color: var(--ms-beliefs-green);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 52px;
}

body.template-block-builder .ms-beliefs .ms-beliefs__list,
.editor-styles-wrapper .ms-beliefs .ms-beliefs__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.template-block-builder .ms-beliefs .ms-beliefs__item,
.editor-styles-wrapper .ms-beliefs .ms-beliefs__item {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(40, 66, 39, 0.1);
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity 500ms ease, transform 500ms ease;
}

body.template-block-builder .ms-beliefs .ms-beliefs__item:last-child,
.editor-styles-wrapper .ms-beliefs .ms-beliefs__item:last-child {
    border-bottom: 1px solid rgba(40, 66, 39, 0.1);
}

body.template-block-builder .ms-beliefs .ms-beliefs__item.ms-beliefs__item--visible,
.editor-styles-wrapper .ms-beliefs .ms-beliefs__item.ms-beliefs__item--visible {
    opacity: 1;
    transform: translateX(0);
}

body.template-block-builder .ms-beliefs .ms-beliefs__item:nth-child(1),
.editor-styles-wrapper .ms-beliefs .ms-beliefs__item:nth-child(1) { transition-delay: 0ms; }
body.template-block-builder .ms-beliefs .ms-beliefs__item:nth-child(2),
.editor-styles-wrapper .ms-beliefs .ms-beliefs__item:nth-child(2) { transition-delay: 80ms; }
body.template-block-builder .ms-beliefs .ms-beliefs__item:nth-child(3),
.editor-styles-wrapper .ms-beliefs .ms-beliefs__item:nth-child(3) { transition-delay: 160ms; }
body.template-block-builder .ms-beliefs .ms-beliefs__item:nth-child(4),
.editor-styles-wrapper .ms-beliefs .ms-beliefs__item:nth-child(4) { transition-delay: 240ms; }
body.template-block-builder .ms-beliefs .ms-beliefs__item:nth-child(5),
.editor-styles-wrapper .ms-beliefs .ms-beliefs__item:nth-child(5) { transition-delay: 320ms; }
body.template-block-builder .ms-beliefs .ms-beliefs__item:nth-child(6),
.editor-styles-wrapper .ms-beliefs .ms-beliefs__item:nth-child(6) { transition-delay: 400ms; }
body.template-block-builder .ms-beliefs .ms-beliefs__item:nth-child(7),
.editor-styles-wrapper .ms-beliefs .ms-beliefs__item:nth-child(7) { transition-delay: 480ms; }
body.template-block-builder .ms-beliefs .ms-beliefs__item:nth-child(8),
.editor-styles-wrapper .ms-beliefs .ms-beliefs__item:nth-child(8) { transition-delay: 560ms; }
body.template-block-builder .ms-beliefs .ms-beliefs__item:nth-child(9),
.editor-styles-wrapper .ms-beliefs .ms-beliefs__item:nth-child(9) { transition-delay: 640ms; }
body.template-block-builder .ms-beliefs .ms-beliefs__item:nth-child(10),
.editor-styles-wrapper .ms-beliefs .ms-beliefs__item:nth-child(10) { transition-delay: 720ms; }

body.template-block-builder .ms-beliefs .ms-beliefs__num,
.editor-styles-wrapper .ms-beliefs .ms-beliefs__num {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 400;
    font-style: italic;
    color: var(--ms-beliefs-gold);
    width: 18px;
    flex-shrink: 0;
    line-height: 1;
    padding-top: 5px;
}

body.template-block-builder .ms-beliefs .ms-beliefs__line,
.editor-styles-wrapper .ms-beliefs .ms-beliefs__line {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    color: var(--ms-beliefs-green);
    line-height: 1.3;
    letter-spacing: -0.003em;
}

@media (prefers-reduced-motion: reduce) {
    body.template-block-builder .ms-beliefs .ms-beliefs__item,
    .editor-styles-wrapper .ms-beliefs .ms-beliefs__item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 900px) {
    body.template-block-builder .ms-beliefs,
    .editor-styles-wrapper .ms-beliefs {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    body.template-block-builder .ms-beliefs .ms-beliefs__text-col,
    .editor-styles-wrapper .ms-beliefs .ms-beliefs__text-col {
        padding: 52px 24px;
        order: 1;
    }
    body.template-block-builder .ms-beliefs .ms-beliefs__photo,
    .editor-styles-wrapper .ms-beliefs .ms-beliefs__photo {
        order: 2;
        min-height: 320px;
    }
    body.template-block-builder .ms-beliefs .ms-beliefs__heading,
    .editor-styles-wrapper .ms-beliefs .ms-beliefs__heading {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* ========== Testimonials Web block — autoplay slider (dots) ========== */
body.template-block-builder .testimonials-web .ms-testimonials-fullbleed,
.editor-styles-wrapper .testimonials-web .ms-testimonials-fullbleed {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.template-block-builder .testimonials-web .ms-testimonials-slider,
.editor-styles-wrapper .testimonials-web .ms-testimonials-slider {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 28px 0 0;
	padding: 0 clamp(16px, 4vw, 56px) 34px;
	box-sizing: border-box;
}

body.template-block-builder .testimonials-web .ms-testimonials-viewport,
.editor-styles-wrapper .testimonials-web .ms-testimonials-viewport {
	overflow: hidden;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	border-top: 1px solid rgba(40, 66, 39, 0.08);
	border-bottom: 1px solid rgba(40, 66, 39, 0.08);
}

body.template-block-builder .testimonials-web .ms-testimonials-track,
.editor-styles-wrapper .testimonials-web .ms-testimonials-track {
	display: flex;
	width: 100%;
	transition: transform 420ms ease;
	will-change: transform;
}

body.template-block-builder .testimonials-web .ms-testimonials-slide,
.editor-styles-wrapper .testimonials-web .ms-testimonials-slide {
	min-width: 100%;
}

body.template-block-builder .testimonials-web .ms-testimonials-card,
.editor-styles-wrapper .testimonials-web .ms-testimonials-card {
	position: relative;
	padding: clamp(36px, 5vw, 56px) clamp(24px, 6vw, 120px) clamp(40px, 5vw, 56px);
	max-width: 920px;
	margin: 0 auto;
	text-align: center;
}

body.template-block-builder .testimonials-web .ms-testimonials-text,
.editor-styles-wrapper .testimonials-web .ms-testimonials-text {
	font-family: var(--font-body, 'Roboto', sans-serif);
	font-size: 1.1rem;
	line-height: 1.75;
	color: rgba(40, 66, 39, 0.85);
	margin: 0 0 0.5rem;
}

body.template-block-builder .testimonials-web .ms-testimonials-author-row,
.editor-styles-wrapper .testimonials-web .ms-testimonials-author-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	margin-top: 1.75rem;
	flex-wrap: wrap;
	text-align: left;
}

body.template-block-builder .testimonials-web .ms-testimonials-avatar,
.editor-styles-wrapper .testimonials-web .ms-testimonials-avatar {
	flex-shrink: 0;
}

body.template-block-builder .testimonials-web .ms-testimonials-avatar-img,
.editor-styles-wrapper .testimonials-web .ms-testimonials-avatar-img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 3px solid rgba(160, 140, 91, 0.45);
	box-shadow: 0 6px 20px rgba(40, 66, 39, 0.12);
}

body.template-block-builder .testimonials-web .ms-testimonials-author-meta,
.editor-styles-wrapper .testimonials-web .ms-testimonials-author-meta {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	align-items: flex-start;
	min-width: 0;
}

body.template-block-builder .testimonials-web .ms-testimonials-author-name,
.editor-styles-wrapper .testimonials-web .ms-testimonials-author-name {
	font-family: var(--font-heading, 'Lora', serif);
	font-size: 1.2rem;
	font-weight: 400;
	color: var(--ms-green, #284227);
}

body.template-block-builder .testimonials-web .ms-testimonials-author-location,
.editor-styles-wrapper .testimonials-web .ms-testimonials-author-location {
	font-family: var(--font-body, 'Roboto', sans-serif);
	font-size: 0.9rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(40, 66, 39, 0.5);
}

body.template-block-builder .testimonials-web .ms-testimonials-dots,
.editor-styles-wrapper .testimonials-web .ms-testimonials-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 16px;
}

body.template-block-builder .testimonials-web .ms-testimonials-dot,
.editor-styles-wrapper .testimonials-web .ms-testimonials-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	border: 0;
	background: rgba(40, 66, 39, 0.22);
	cursor: pointer;
}

body.template-block-builder .testimonials-web .ms-testimonials-dot.active,
.editor-styles-wrapper .testimonials-web .ms-testimonials-dot.active {
	background: var(--ms-green, #284227);
}

@media (max-width: 768px) {
	body.template-block-builder .testimonials-web .ms-testimonials-slider,
	.editor-styles-wrapper .testimonials-web .ms-testimonials-slider {
		padding: 0 12px 24px;
	}
	body.template-block-builder .testimonials-web .ms-testimonials-card,
	.editor-styles-wrapper .testimonials-web .ms-testimonials-card {
		padding: 28px 20px 32px;
	}
	body.template-block-builder .testimonials-web .ms-testimonials-avatar-img,
	.editor-styles-wrapper .testimonials-web .ms-testimonials-avatar-img {
		width: 56px;
		height: 56px;
	}
}

/* Testimonials Section */
body.template-block-builder .testimonials-section, .editor-styles-wrapper .testimonials-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #3d807124 0%, #fff 7.5rem);
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

body.template-block-builder .testimonials-section::before, .editor-styles-wrapper .testimonials-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: -2px;
    width: 0%;
    height: 2px;
    background: #2c5a4f;
    transition: width 1.5s ease-out;
    z-index: 1;
}

body.template-block-builder .testimonials-section.animate::before, .editor-styles-wrapper .testimonials-section.animate::before {
    width: 100%;
}

body.template-block-builder .testimonials-section::after, .editor-styles-wrapper .testimonials-section::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 0px;
    background: #2c5a4f;
    transition: height 1s ease-out 0.5s;
    z-index: 1;
}

body.template-block-builder .testimonials-section.animate::after, .editor-styles-wrapper .testimonials-section.animate::after {
    height: 60px;
}

/* Floating background elements */
body.template-block-builder .testimonials-section .floating-element, .editor-styles-wrapper .testimonials-section .floating-element {
    position: absolute;
    background: rgba(220, 185, 111, 0.1);
    border-radius: 50%;
    animation: floatBackground 20s ease-in-out infinite;
    pointer-events: none;
}

body.template-block-builder .testimonials-section .floating-element:nth-child(1), .editor-styles-wrapper .testimonials-section .floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

body.template-block-builder .testimonials-section .floating-element:nth-child(2), .editor-styles-wrapper .testimonials-section .floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 8%;
    animation-delay: 7s;
}

body.template-block-builder .testimonials-section .floating-element:nth-child(3), .editor-styles-wrapper .testimonials-section .floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 15%;
    animation-delay: 14s;
}

@keyframes floatBackground {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.2;
    }
}

body.template-block-builder .testimonials-section::before, .editor-styles-wrapper .testimonials-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: -2px;
    width: 0%;
    height: 2px;
    background: #2c5a4f;
    transition: width 1.5s ease-out;
    z-index: 1;
}

body.template-block-builder .testimonials-section.animate::before, .editor-styles-wrapper .testimonials-section.animate::before {
    width: 100%;
}

body.template-block-builder .testimonials-section::after, .editor-styles-wrapper .testimonials-section::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 0px;
    background: #2c5a4f;
    transition: height 1s ease-out 0.5s;
    z-index: 1;
}

body.template-block-builder .testimonials-section.animate::after, .editor-styles-wrapper .testimonials-section.animate::after {
    height: 60px;
}

body.template-block-builder .testimonials-header, .editor-styles-wrapper .testimonials-header {
    text-align: center;
    margin-bottom: 6rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

body.template-block-builder .testimonials-header.animate, .editor-styles-wrapper .testimonials-header.animate {
    opacity: 1;
    transform: translateY(0);
}

body.template-block-builder .testimonials-eyebrow, .editor-styles-wrapper .testimonials-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2c5a4f;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out 0.2s;
}

body.template-block-builder .testimonials-header.animate .testimonials-eyebrow, .editor-styles-wrapper .testimonials-header.animate .testimonials-eyebrow {
    opacity: 1;
    transform: translateY(0);
}

body.template-block-builder .testimonials-title, .editor-styles-wrapper .testimonials-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.2;
    color: #000;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out 0.4s;
}

body.template-block-builder .testimonials-header.animate .testimonials-title, .editor-styles-wrapper .testimonials-header.animate .testimonials-title {
    opacity: 1;
    transform: translateY(0);
}

body.template-block-builder .testimonials-description, .editor-styles-wrapper .testimonials-description {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out 0.6s;
}

body.template-block-builder .testimonials-header.animate .testimonials-description, .editor-styles-wrapper .testimonials-header.animate .testimonials-description {
    opacity: 1;
    transform: translateY(0);
}

body.template-block-builder .testimonials-content, .editor-styles-wrapper .testimonials-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

body.template-block-builder .testimonials-header.animate + .testimonials-content, .editor-styles-wrapper .testimonials-header.animate + .testimonials-content {
    opacity: 1;
    transform: translateY(0);
}

body.template-block-builder .testimonial-web, .editor-styles-wrapper .testimonial-web {
    position: relative;
    width: 100%;
    height: 900px;
    max-width: 1400px;
    margin: 0 auto;
}

body.template-block-builder .testimonial-item, .editor-styles-wrapper .testimonial-item {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    position: absolute;
    overflow: hidden;
    animation: float 8s ease-in-out infinite;
    width: 320px;
    z-index: 10;
}

body.template-block-builder .web-item-1, .editor-styles-wrapper .web-item-1 {
    top: 80px;
    left: 80px;
    animation-delay: 0s;
}

body.template-block-builder .web-item-2, .editor-styles-wrapper .web-item-2 {
    top: 120px;
    left: 500px;
    animation-delay: 1.5s;
}

body.template-block-builder .web-item-3, .editor-styles-wrapper .web-item-3 {
    top: 80px;
    right: 80px;
    animation-delay: 3s;
}

body.template-block-builder .web-item-4, .editor-styles-wrapper .web-item-4 {
    top: 580px;
    left: 120px;
    animation-delay: 4.5s;
}

body.template-block-builder .web-item-5, .editor-styles-wrapper .web-item-5 {
    top: 530px;
    left: 550px;
    animation-delay: 6s;
}

body.template-block-builder .web-item-6, .editor-styles-wrapper .web-item-6 {
    top: 580px;
    right: 120px;
    animation-delay: 7.5s;
}

body.template-block-builder .connection-lines, .editor-styles-wrapper .connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

body.template-block-builder .connection-lines line, .editor-styles-wrapper .connection-lines line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease-in-out forwards;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.connection-lines line:nth-child(2) { animation-delay: 0.3s; }
.connection-lines line:nth-child(3) { animation-delay: 0.6s; }
.connection-lines line:nth-child(4) { animation-delay: 0.9s; }
.connection-lines line:nth-child(5) { animation-delay: 1.2s; }

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

body.template-block-builder .testimonial-item:nth-child(1), .editor-styles-wrapper .testimonial-item:nth-child(1) {
    animation: float 6s ease-in-out infinite 0s;
}

body.template-block-builder .testimonial-item:nth-child(2), .editor-styles-wrapper .testimonial-item:nth-child(2) {
    animation: float 6s ease-in-out infinite 2s;
}

body.template-block-builder .testimonial-item:nth-child(3), .editor-styles-wrapper .testimonial-item:nth-child(3) {
    animation: float 6s ease-in-out infinite 4s;
}

body.template-block-builder .testimonial-item::before, .editor-styles-wrapper .testimonial-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2c5a4f, #DCB96F);
}

body.template-block-builder .testimonial-item:hover, .editor-styles-wrapper .testimonial-item:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    animation-play-state: paused;
}

body.template-block-builder .testimonial-quote, .editor-styles-wrapper .testimonial-quote {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
}

body.template-block-builder .testimonial-quote::before, .editor-styles-wrapper .testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    color: #DCB96F;
    position: absolute;
    top: -3rem;
    left: -2rem;
    font-family: var(--font-heading);
    opacity: 0.3;
}

body.template-block-builder .testimonial-author, .editor-styles-wrapper .testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

body.template-block-builder .author-avatar, .editor-styles-wrapper .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #DCB96F;
    box-shadow: 0 4px 15px rgba(220, 185, 111, 0.3);
}

body.template-block-builder .author-info, .editor-styles-wrapper .author-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

body.template-block-builder .author-name, .editor-styles-wrapper .author-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: #2c5a4f;
}

body.template-block-builder .author-location, .editor-styles-wrapper .author-location {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    body.template-block-builder .testimonial-web, .editor-styles-wrapper .testimonial-web {
        height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    body.template-block-builder .testimonial-item, .editor-styles-wrapper .testimonial-item {
        position: static !important;
        width: 100% !important;
        animation: none;
        transform: none !important;
    }
    
    body.template-block-builder .testimonial-item:hover, .editor-styles-wrapper .testimonial-item:hover {
        transform: translateY(-10px) scale(1.01) !important;
    }
    
    body.template-block-builder .connection-lines, .editor-styles-wrapper .connection-lines {
        display: none;
    }
    
    body.template-block-builder .floating-element, .editor-styles-wrapper .floating-element {
        display: none;
    }
}

/* What We Treat Section (formerly How We Treat) */
body.template-block-builder .how-we-treat, .editor-styles-wrapper .how-we-treat {
    padding: 8rem 0;
    background: linear-gradient(180deg, #3d807124 0%, #fff 7.5rem);
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

body.template-block-builder .how-we-treat::before, .editor-styles-wrapper .how-we-treat::before {
    content: '';
    position: absolute;
    left: 0;
    top: -2px;
    width: 0%;
    height: 2px;
    background: #2c5a4f;
    transition: width 1.5s ease-out;
    z-index: 1;
}

body.template-block-builder .how-we-treat::after, .editor-styles-wrapper .how-we-treat::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 0px;
    background: #2c5a4f;
    transition: height 1s ease-out 0.5s;
    z-index: 1;
}

body.template-block-builder .how-we-treat.animate::before, .editor-styles-wrapper .how-we-treat.animate::before {
    width: 100%;
}

body.template-block-builder .how-we-treat.animate::after, .editor-styles-wrapper .how-we-treat.animate::after {
    height: 120px;
}

body.template-block-builder .section-header, .editor-styles-wrapper .section-header {
    text-align: center;
    margin-bottom: 6rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

body.template-block-builder .section-header.animate, .editor-styles-wrapper .section-header.animate {
    opacity: 1;
    transform: translateY(0);
}

body.template-block-builder .section-eyebrow, .editor-styles-wrapper .section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.2s;
}

body.template-block-builder .section-header.animate .section-eyebrow, .editor-styles-wrapper .section-header.animate .section-eyebrow {
    opacity: 1;
    transform: translateY(0);
}

body.template-block-builder .section-title, .editor-styles-wrapper .section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 300;
    color: #000;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    position: relative;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out 0.4s;
}

body.template-block-builder .section-header.animate .section-title, .editor-styles-wrapper .section-header.animate .section-title {
    opacity: 1;
    transform: translateY(0);
}

body.template-block-builder .section-title::after, .editor-styles-wrapper .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #DCB96F;
    border-radius: 2px;
}

body.template-block-builder .section-subtitle-large, .editor-styles-wrapper .section-subtitle-large {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 300;
    color: #000;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    animation: fadeInUp 1.2s ease-out 0.6s both;
    opacity: 0.9;
}

body.template-block-builder .approach-content, .editor-styles-wrapper .approach-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
    animation: fadeInUp 1.2s ease-out 0.8s both;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    padding: 4rem 6rem;
    position: relative;
}

body.template-block-builder .approach-content::before, .editor-styles-wrapper .approach-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: #e0e0e0;
}

body.template-block-builder .approach-text, .editor-styles-wrapper .approach-text {
    padding-right: 3rem;
    animation: slideInLeft 1s ease-out 1s both;
}

body.template-block-builder .approach-description, .editor-styles-wrapper .approach-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 300;
}

body.template-block-builder .approach-features, .editor-styles-wrapper .approach-features {
    padding-left: 3rem;
    animation: slideInRight 1s ease-out 1.2s both;
}

body.template-block-builder .feature-accordion, .editor-styles-wrapper .feature-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.template-block-builder .accordion-item, .editor-styles-wrapper .accordion-item {
    border-bottom: 1px solid #DCB96F;
    animation: fadeInUp 0.8s ease-out both;
    transition: all 0.3s ease;
}

.accordion-item:nth-child(1) { animation-delay: 1.4s; }
.accordion-item:nth-child(2) { animation-delay: 1.6s; }
.accordion-item:nth-child(3) { animation-delay: 1.8s; }
.accordion-item:nth-child(4) { animation-delay: 2.0s; }

body.template-block-builder .accordion-header, .editor-styles-wrapper .accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 2rem 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    color: #000;
    transition: all 0.3s ease;
    position: relative;
}


body.template-block-builder .accordion-header:hover, .editor-styles-wrapper .accordion-header:hover {
    color: #2c5a4f;
    transform: translateX(10px);
}

body.template-block-builder .accordion-icon, .editor-styles-wrapper .accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

body.template-block-builder .accordion-item.active .accordion-icon, .editor-styles-wrapper .accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

body.template-block-builder .accordion-content, .editor-styles-wrapper .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

body.template-block-builder .accordion-item.active .accordion-content, .editor-styles-wrapper .accordion-item.active .accordion-content {
    max-height: 300px;
    padding-bottom: 2rem;
}

body.template-block-builder .accordion-content h4, .editor-styles-wrapper .accordion-content h4 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

body.template-block-builder .accordion-content p, .editor-styles-wrapper .accordion-content p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    font-weight: 300;
}

/* MS Quote (founder-message) */
body.template-block-builder .founder-message, .editor-styles-wrapper .founder-message {
    padding: 8rem 0;
    background: #f8f7f0;
}

body.template-block-builder .founder-content, .editor-styles-wrapper .founder-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

body.template-block-builder .founder-image, .editor-styles-wrapper .founder-image {
    height: 500px;
    overflow: hidden;
}

body.template-block-builder .founder-image img, .editor-styles-wrapper .founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.template-block-builder .founder-text, .editor-styles-wrapper .founder-text {
    padding-left: 2rem;
}

body.template-block-builder .founder-badge, .editor-styles-wrapper .founder-badge {
    margin-bottom: 2rem;
}

body.template-block-builder .founder-badge span, .editor-styles-wrapper .founder-badge span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #666;
}

body.template-block-builder .founder-text h3, .editor-styles-wrapper .founder-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

body.template-block-builder .founder-text blockquote, .editor-styles-wrapper .founder-text blockquote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.4;
    color: #000;
    margin-bottom: 2rem;
    font-style: italic;
    letter-spacing: -0.01em;
}

body.template-block-builder .read-more-btn, .editor-styles-wrapper .read-more-btn {
    background: #2c5a4f;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

body.template-block-builder .read-more-btn:hover, .editor-styles-wrapper .read-more-btn:hover {
    background: #1e3d1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 79, 0.3);
}

/* Team Section */
body.template-block-builder .team-section, .editor-styles-wrapper .team-section {
    padding: 8rem 0;
    background: white;
}

body.template-block-builder .team-grid, .editor-styles-wrapper .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 4rem;
}

body.template-block-builder .team-member, .editor-styles-wrapper .team-member {
    text-align: center;
}

body.template-block-builder .member-image, .editor-styles-wrapper .member-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem;
}

body.template-block-builder .member-image img, .editor-styles-wrapper .member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.template-block-builder .member-info h4, .editor-styles-wrapper .member-info h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

body.template-block-builder .member-info p, .editor-styles-wrapper .member-info p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

body.template-block-builder .member-title, .editor-styles-wrapper .member-title {
    font-size: 0.9rem;
    color: #999;
    font-weight: 300;
}

/* CTA Section block — .ms-ctabar (unique classes; no .cta-bar / .cta-section) */
body.template-block-builder .ms-ctabar,
.editor-styles-wrapper .ms-ctabar {
    --green-mid: #46704c;
    --ms-ctabar-sand: #f8f7f0;
    --ms-ctabar-ink: #241f21;
    --ms-ctabar-ink-soft: #4a4547;
    --ms-ctabar-green: #284227;
    --ms-ctabar-green-mid: #46704c;
    --ms-ctabar-sage: #4a5e52;
    --ms-ctabar-white: #f5f0e0;
    --ms-ctabar-gold-light: #d9c063;
    --ms-ctabar-serif: var(--font-heading, 'Lora', Georgia, serif);
    --ms-ctabar-sans: var(--font-body, 'Roboto', sans-serif);
    padding: 48px;
    background: var(--green-mid, #46704c);
    border: 0;
    position: relative;
    overflow: hidden;
}

body.template-block-builder .ms-ctabar .ms-ctabar__inner,
.editor-styles-wrapper .ms-ctabar .ms-ctabar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.25rem, 4vw, 3rem);
    flex-wrap: wrap;
}

body.template-block-builder .ms-ctabar .ms-ctabar__copy,
.editor-styles-wrapper .ms-ctabar .ms-ctabar__copy {
    flex: 1 1 280px;
    min-width: 0;
    text-align: left;
}

body.template-block-builder .ms-ctabar .ms-ctabar__headline,
.editor-styles-wrapper .ms-ctabar .ms-ctabar__headline {
    font-family: var(--ms-ctabar-serif);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--ms-ctabar-white);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

body.template-block-builder .ms-ctabar .ms-ctabar__headline em,
.editor-styles-wrapper .ms-ctabar .ms-ctabar__headline em {
    font-style: italic;
    color: var(--ms-ctabar-gold-light);
}

body.template-block-builder .ms-ctabar .ms-ctabar__sub,
.editor-styles-wrapper .ms-ctabar .ms-ctabar__sub {
    font-family: var(--ms-ctabar-sans);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    line-height: 1.5;
}

body.template-block-builder .ms-ctabar .ms-ctabar__btn,
.editor-styles-wrapper .ms-ctabar .ms-ctabar__btn {
    flex-shrink: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 220px;
    padding: 14px 28px;
    background: var(--ms-ctabar-green);
    color: var(--ms-ctabar-white);
    text-decoration: none;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s ease;
    font-family: inherit;
    text-align: center;
}

body.template-block-builder .ms-ctabar a.ms-ctabar__btn:hover,
body.template-block-builder .ms-ctabar button.ms-ctabar__btn:hover,
.editor-styles-wrapper .ms-ctabar a.ms-ctabar__btn:hover,
.editor-styles-wrapper .ms-ctabar button.ms-ctabar__btn:hover {
    background: var(--ms-ctabar-sand);
    color: var(--ms-ctabar-green);
}

body.template-block-builder .ms-ctabar a.ms-ctabar__btn:hover .ms-ctabar__btn-label,
body.template-block-builder .ms-ctabar a.ms-ctabar__btn:hover .ms-ctabar__btn-number,
body.template-block-builder .ms-ctabar button.ms-ctabar__btn:hover .ms-ctabar__btn-label,
body.template-block-builder .ms-ctabar button.ms-ctabar__btn:hover .ms-ctabar__btn-number,
.editor-styles-wrapper .ms-ctabar a.ms-ctabar__btn:hover .ms-ctabar__btn-label,
.editor-styles-wrapper .ms-ctabar a.ms-ctabar__btn:hover .ms-ctabar__btn-number,
.editor-styles-wrapper .ms-ctabar button.ms-ctabar__btn:hover .ms-ctabar__btn-label,
.editor-styles-wrapper .ms-ctabar button.ms-ctabar__btn:hover .ms-ctabar__btn-number {
    color: var(--ms-ctabar-green);
}

body.template-block-builder .ms-ctabar .ms-ctabar__btn--static,
.editor-styles-wrapper .ms-ctabar .ms-ctabar__btn--static {
    cursor: default;
}

body.template-block-builder .ms-ctabar .ms-ctabar__btn-label,
.editor-styles-wrapper .ms-ctabar .ms-ctabar__btn-label {
    font-family: var(--ms-ctabar-sans);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.2;
    opacity: 0.95;
}

body.template-block-builder .ms-ctabar .ms-ctabar__btn-number,
.editor-styles-wrapper .ms-ctabar .ms-ctabar__btn-number {
    font-family: var(--ms-ctabar-serif);
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

@media (max-width: 640px) {
    body.template-block-builder .ms-ctabar,
    .editor-styles-wrapper .ms-ctabar {
        padding: 32px 24px;
    }
    body.template-block-builder .ms-ctabar .ms-ctabar__inner,
    .editor-styles-wrapper .ms-ctabar .ms-ctabar__inner {
        flex-direction: column;
        align-items: stretch;
    }
    body.template-block-builder .ms-ctabar .ms-ctabar__btn,
    .editor-styles-wrapper .ms-ctabar .ms-ctabar__btn {
        width: 100%;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Footer */
body.template-block-builder .footer,
body.template-page .footer,
.editor-styles-wrapper .footer {
    background: #000;
    color: white;
    padding: 4rem 0 2rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.template-block-builder .footer *,
body.template-page .footer *,
.editor-styles-wrapper .footer * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.template-block-builder .footer-content,
body.template-page .footer-content,
.editor-styles-wrapper .footer-content {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(0, 4fr);
    gap: 4rem;
    margin-bottom: 3rem;
}

body.template-block-builder .footer.footer-secondary .footer-content,
body.template-page .footer.footer-secondary .footer-content,
.editor-styles-wrapper .footer.footer-secondary .footer-content {
    gap: clamp(3.5rem, 5vw, 5.5rem);
}

body.template-block-builder .footer-left,
body.template-page .footer-left,
.editor-styles-wrapper .footer-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.template-block-builder .footer-logo-img,
body.template-page .footer-logo-img,
.editor-styles-wrapper .footer-logo-img {
    height: auto;
    width: 250px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

body.template-block-builder .footer-logo p,
body.template-page .footer-logo p,
.editor-styles-wrapper .footer-logo p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

body.template-block-builder .footer-logo p a,
body.template-page .footer-logo p a,
.editor-styles-wrapper .footer-logo p a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

body.template-block-builder .footer-secondary .footer-logo .social,
body.template-page .footer-secondary .footer-logo .social,
.editor-styles-wrapper .footer-secondary .footer-logo .social {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem 1rem;
    margin-top: 1rem;
}

body.template-block-builder .footer-secondary .footer-logo .social a,
body.template-page .footer-secondary .footer-logo .social a,
.editor-styles-wrapper .footer-secondary .footer-logo .social a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.35rem;
    line-height: 1;
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}

body.template-block-builder .footer-secondary .footer-logo .social a:hover,
body.template-page .footer-secondary .footer-logo .social a:hover,
.editor-styles-wrapper .footer-secondary .footer-logo .social a:hover {
    color: #fff;
}

/* Accreditation seals (secondary footer, under logo + phone) */
body.template-block-builder .footer-secondary .footer-row-two,
body.template-page .footer-secondary .footer-row-two,
.editor-styles-wrapper .footer-secondary .footer-row-two {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem 1rem;
    margin-top: 1.25rem;
    max-width: 320px;
}

body.template-block-builder .footer-secondary .footer-row-two > section,
body.template-page .footer-secondary .footer-row-two > section,
.editor-styles-wrapper .footer-secondary .footer-row-two > section {
    margin: 0;
    line-height: 0;
}

body.template-block-builder .footer-secondary .footer-secondary-badge-img,
body.template-page .footer-secondary .footer-secondary-badge-img,
.editor-styles-wrapper .footer-secondary .footer-secondary-badge-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100px;
    max-height: 52px;
    object-fit: contain;
}

body.template-block-builder .footer-secondary .footer-secondary-badge-img--legitscript,
body.template-page .footer-secondary .footer-secondary-badge-img--legitscript,
.editor-styles-wrapper .footer-secondary .footer-secondary-badge-img--legitscript {
    max-width: 132px;
    max-height: 56px;
}

body.template-block-builder .footer-secondary .footer-row-two a,
body.template-page .footer-secondary .footer-row-two a,
.editor-styles-wrapper .footer-secondary .footer-row-two a {
    display: inline-block;
    line-height: 0;
}

body.template-block-builder .footer-nav,
body.template-page .footer-nav,
.editor-styles-wrapper .footer-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

/* Secondary footer: clearer separation between nav columns */
body.template-block-builder .footer-secondary .footer-nav,
body.template-page .footer-secondary .footer-nav,
.editor-styles-wrapper .footer-secondary .footer-nav {
    column-gap: clamp(1.75rem, 4vw, 3.5rem);
    row-gap: 2.25rem;
}

body.template-block-builder .footer-secondary .footer-column,
body.template-page .footer-secondary .footer-column,
.editor-styles-wrapper .footer-secondary .footer-column {
    min-width: 0;
    padding-left: clamp(0.35rem, 1.2vw, 0.85rem);
    padding-right: clamp(0.35rem, 1.2vw, 0.85rem);
    box-sizing: border-box;
}

body.template-block-builder .footer-column h4,
body.template-page .footer-column h4,
.editor-styles-wrapper .footer-column h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
}

body.template-block-builder .footer-column ul,
body.template-page .footer-column ul,
.editor-styles-wrapper .footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

body.template-block-builder .footer-column a,
body.template-page .footer-column a,
.editor-styles-wrapper .footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-weight: 500;
    font-family: var(--font-body);
}

body.template-block-builder .footer-column a:hover,
body.template-page .footer-column a:hover,
.editor-styles-wrapper .footer-column a:hover {
    color: #fff;
}

body.template-block-builder .footer-bottom,
body.template-page .footer-bottom,
.editor-styles-wrapper .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.template-block-builder .footer-bottom p,
body.template-page .footer-bottom p,
.editor-styles-wrapper .footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

body.template-block-builder .footer-secondary .footer-legal-links,
body.template-page .footer-secondary .footer-legal-links,
.editor-styles-wrapper .footer-secondary .footer-legal-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.65rem;
    margin-top: 0.85rem;
}

body.template-block-builder .footer-secondary .footer-legal-links a,
body.template-page .footer-secondary .footer-legal-links a,
.editor-styles-wrapper .footer-secondary .footer-legal-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
}

body.template-block-builder .footer-secondary .footer-legal-links a:hover,
body.template-page .footer-secondary .footer-legal-links a:hover,
.editor-styles-wrapper .footer-secondary .footer-legal-links a:hover {
    color: #fff;
    text-decoration: underline;
}

body.template-block-builder .footer-secondary .footer-legal-sep,
body.template-page .footer-secondary .footer-legal-sep,
.editor-styles-wrapper .footer-secondary .footer-legal-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    user-select: none;
}

/* Secondary footer: two nav columns from tablet widths down (logo stack above) */
@media (max-width: 1080px) {
    body.template-block-builder .footer.footer-secondary .footer-content,
    body.template-page .footer.footer-secondary .footer-content,
    .editor-styles-wrapper .footer.footer-secondary .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    body.template-block-builder .footer-secondary .footer-nav,
    body.template-page .footer-secondary .footer-nav,
    .editor-styles-wrapper .footer-secondary .footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: clamp(1.5rem, 5vw, 2.75rem);
        row-gap: 2rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    body.template-block-builder .container, .editor-styles-wrapper .container {
        padding: 0 2rem;
    }
    
    body.template-block-builder .header-container, .editor-styles-wrapper .header-container {
        padding: 1.5rem 2rem;
    }
    
    body.template-block-builder .conditions-grid, .editor-styles-wrapper .conditions-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    body.template-block-builder .condition-item, .editor-styles-wrapper .condition-item {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    body.template-block-builder .condition-item:nth-child(even), .editor-styles-wrapper .condition-item:nth-child(even) {
        flex-direction: column;
    }
    
    body.template-block-builder .approach-content, .editor-styles-wrapper .approach-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    body.template-block-builder .founder-content, .editor-styles-wrapper .founder-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    body.template-block-builder .team-grid, .editor-styles-wrapper .team-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    body.template-block-builder .header-container, .editor-styles-wrapper .header-container {
        padding: 1rem 2rem;
    }
    
    body.template-block-builder .header-right, .editor-styles-wrapper .header-right {
        gap: 1.5rem;
    }
    
    body.template-block-builder .language-switcher, .editor-styles-wrapper .language-switcher {
        display: none;
    }
    
    body.template-block-builder .menu-content, .editor-styles-wrapper .menu-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    body.template-block-builder .welcome-message h2, .editor-styles-wrapper .welcome-message h2 {
        font-size: 2.5rem;
    }
    
    body.template-block-builder .main-nav a, .editor-styles-wrapper .main-nav a {
        font-size: 2rem;
    }
    
    body.template-block-builder .sub-nav, .editor-styles-wrapper .sub-nav {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    body.template-block-builder .hero-content, .editor-styles-wrapper .hero-content {
        padding: 0 2rem;
    }
    
    body.template-block-builder .hero-badge, .editor-styles-wrapper .hero-badge {
        flex-direction: column;
        gap: 1rem;
    }
    
    body.template-block-builder .footer-content,
    body.template-page .footer-content,
    .editor-styles-wrapper .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    body.template-block-builder .footer-nav,
    body.template-page .footer-nav,
    .editor-styles-wrapper .footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    body.template-block-builder .container, .editor-styles-wrapper .container {
        padding: 0 1rem;
    }
    
    body.template-block-builder .header-container, .editor-styles-wrapper .header-container {
        padding: 1rem;
    }
    
    body.template-block-builder .hero-content, .editor-styles-wrapper .hero-content {
        padding: 0 1rem;
    }
    
    body.template-block-builder .footer-nav,
    body.template-page .footer-nav,
    .editor-styles-wrapper .footer-nav {
        grid-template-columns: 1fr;
    }

    /* Secondary footer: keep two link columns on narrow phones */
    body.template-block-builder .footer-secondary .footer-nav,
    body.template-page .footer-secondary .footer-nav,
    .editor-styles-wrapper .footer-secondary .footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: clamp(1rem, 4vw, 1.75rem);
        row-gap: 1.75rem;
    }
}

/* ========== Block Builder blocks – responsive (all blocks) ========== */
@media (max-width: 1024px) {
    body.template-block-builder .video-message.brand-film,
    .editor-styles-wrapper .video-message.brand-film {
        padding: 48px 28px 56px;
    }
    body.template-block-builder .approach-content,
    .editor-styles-wrapper .approach-content {
        padding: 2rem 2rem;
    }
    body.template-block-builder .approach-content::before,
    .editor-styles-wrapper .approach-content::before {
        display: none;
    }
    body.template-block-builder .approach-text,
    .editor-styles-wrapper .approach-text {
        padding-right: 0;
    }
    body.template-block-builder .approach-features,
    .editor-styles-wrapper .approach-features {
        padding-left: 0;
    }
    body.template-block-builder .expertise-section,
    body.template-block-builder .virtual-tour-section,
    body.template-block-builder .video-message,
    body.template-block-builder .testimonials-section,
    body.template-block-builder .how-we-treat,
    .editor-styles-wrapper .expertise-section,
    .editor-styles-wrapper .virtual-tour-section,
    .editor-styles-wrapper .video-message,
    .editor-styles-wrapper .testimonials-section,
    .editor-styles-wrapper .how-we-treat {
        padding: 4rem 0;
    }
    body.template-block-builder .founder-message,
    body.template-block-builder .team-section,
    .editor-styles-wrapper .founder-message,
    .editor-styles-wrapper .team-section {
        padding: 4rem 0;
    }
    body.template-block-builder .section-header,
    body.template-block-builder .testimonials-header,
    .editor-styles-wrapper .section-header,
    .editor-styles-wrapper .testimonials-header {
        margin-bottom: 3rem;
    }
}

/* ========== Hero (Nav Mockup) – match prototype ========== */
body.template-block-builder .hero.hero-nav-mockup,
.editor-styles-wrapper .hero.hero-nav-mockup {
    position: relative;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    /* Override generic `.hero` layout rules earlier in this file */
    height: auto !important;
    align-items: stretch !important;
    justify-content: flex-end !important;
    padding: 0 56px 64px;
    overflow: hidden;
    margin: 0!important;
}

/* ========== Off-canvas nav (mockup) – ensure typography ========== */
body.template-block-builder .nav-panel-primary .nav-panel-btn-text,
body.template-block-builder .nav-panel-primary .nav-panel-link {
	font-family: 'Lora', serif !important;
	color: #284227 !important;
}

body.template-block-builder .hero.hero-nav-mockup .hero-bg,
.editor-styles-wrapper .hero.hero-nav-mockup .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-image: url("../images/hero-nav-mockup.jpg") !important;
    z-index: 0;
}

body.template-block-builder .hero.hero-nav-mockup .hero-bg::after,
.editor-styles-wrapper .hero.hero-nav-mockup .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(20,35,18,0.72) 0%, rgba(20,35,18,0.35) 55%, rgba(20,35,18,0.05) 100%),
        linear-gradient(to top, rgba(20,35,18,0.65) 0%, rgba(20,35,18,0.0) 55%);
}

body.template-block-builder .hero.hero-nav-mockup .hero-content,
.editor-styles-wrapper .hero.hero-nav-mockup .hero-content {
    position: relative;
    z-index: 1;
    /* Override generic `.hero-content` styles in this stylesheet */
    text-align: left !important;
    color: inherit !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    animation: none !important;
    isolation: auto !important;
}

body.template-block-builder .hero.hero-nav-mockup .hero-content::before,
body.template-block-builder .hero.hero-nav-mockup .hero-content::after,
.editor-styles-wrapper .hero.hero-nav-mockup .hero-content::before,
.editor-styles-wrapper .hero.hero-nav-mockup .hero-content::after {
    content: none !important;
    display: none !important;
}

body.template-block-builder .hero.hero-nav-mockup .hero-headline,
.editor-styles-wrapper .hero.hero-nav-mockup .hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4.5vw, 3.625rem);
    font-weight: 400;
    color: var(--ms-linen, #f8f7f0);
    line-height: 1.13;
    letter-spacing: -0.01em;
    max-width: 640px;
    margin: 0 0 48px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

body.template-block-builder .hero.hero-nav-mockup .hero-headline em,
.editor-styles-wrapper .hero.hero-nav-mockup .hero-headline em {
    font-style: italic;
    color: #d4b97a;
}

body.template-block-builder .hero.hero-nav-mockup .cta-cluster-label,
.editor-styles-wrapper .hero.hero-nav-mockup .cta-cluster-label {
    font-family: var(--font-body);
    font-size: 0.66rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ms-linen, #f8f7f0);
    opacity: 0.6;
    margin: 0 0 14px;
}

body.template-block-builder .hero.hero-nav-mockup .cta-cluster,
.editor-styles-wrapper .hero.hero-nav-mockup .cta-cluster {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap;
}

body.template-block-builder .hero.hero-nav-mockup .cta-btn,
.editor-styles-wrapper .hero.hero-nav-mockup .cta-btn {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    padding: 13px 26px;
    border-radius: 100px;
    border: 1.5px solid rgba(248,247,240,0.7);
    cursor: pointer;
    transition: background 260ms var(--ms-ease, ease), color 260ms var(--ms-ease, ease), border-color 260ms var(--ms-ease, ease);
    background: transparent;
    color: var(--ms-linen, #f8f7f0);
}

body.template-block-builder .hero.hero-nav-mockup .cta-btn.primary,
.editor-styles-wrapper .hero.hero-nav-mockup .cta-btn.primary {
    background: var(--ms-linen, #f8f7f0);
    color: var(--ms-green, #284227);
    border-color: var(--ms-linen, #f8f7f0);
}

body.template-block-builder .hero.hero-nav-mockup .cta-btn.primary:hover,
.editor-styles-wrapper .hero.hero-nav-mockup .cta-btn.primary:hover {
    background: var(--ms-gold, #8a6e08);
    border-color: var(--ms-gold, #8a6e08);
    color: var(--ms-linen, #f8f7f0);
}

body.template-block-builder .hero.hero-nav-mockup .cta-btn:not(.primary):hover,
.editor-styles-wrapper .hero.hero-nav-mockup .cta-btn:not(.primary):hover {
    background: rgba(248,247,240,0.15);
    border-color: var(--ms-linen, #f8f7f0);
}

@media (max-width: 768px) {
    body.template-block-builder .hero.hero-nav-mockup,
    .editor-styles-wrapper .hero.hero-nav-mockup {
        min-height: 520px;
        height: auto !important;
        padding: 0 20px 40px;
    }
    body.template-block-builder .hero.hero-nav-mockup .hero-headline,
    .editor-styles-wrapper .hero.hero-nav-mockup .hero-headline {
        margin-bottom: 28px;
        max-width: 38rem;
    }
    body.template-block-builder .hero.hero-nav-mockup .cta-btn,
    .editor-styles-wrapper .hero.hero-nav-mockup .cta-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    body.template-block-builder .how-we-treat::after, 
    .editor-styles-wrapper .how-we-treat::after {
        display: none;
    }
    body.template-block-builder .header-container .contact-info .phone,
    .editor-styles-wrapper .header-container .contact-info .phone {
        display: none;
    }
    body.template-block-builder .hero,
    .editor-styles-wrapper .hero {
        min-height: 100vh;
        height: auto;
    }
    body.template-block-builder .hero-content,
    .editor-styles-wrapper .hero-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    body.template-block-builder .hero-title,
    .editor-styles-wrapper .hero-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        margin-bottom: 1.5rem;
    }
    body.template-block-builder .hero-subtitle,
    .editor-styles-wrapper .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0.75rem 1rem;
    }
    body.template-block-builder .help-section h2,
    .editor-styles-wrapper .help-section h2 {
        font-size: 1.25rem;
    }
    body.template-block-builder .help-options,
    .editor-styles-wrapper .help-options {
        gap: 1rem;
    }
    body.template-block-builder .help-btn,
    .editor-styles-wrapper .help-btn {
        min-height: 60px;
        padding: 0.875rem 1.25rem;
        font-size: 0.8rem;
    }
    body.template-block-builder .menu-container,
    .editor-styles-wrapper .menu-container {
        padding: 2rem 1.5rem;
    }
    body.template-block-builder .expertise-section,
    body.template-block-builder .virtual-tour-section,
    body.template-block-builder .video-message,
    body.template-block-builder .testimonials-section,
    body.template-block-builder .how-we-treat,
    .editor-styles-wrapper .expertise-section,
    .editor-styles-wrapper .virtual-tour-section,
    .editor-styles-wrapper .video-message,
    .editor-styles-wrapper .testimonials-section,
    .editor-styles-wrapper .how-we-treat {
        padding: 3rem 0;
    }
    body.template-block-builder .founder-message,
    body.template-block-builder .team-section,
    .editor-styles-wrapper .founder-message,
    .editor-styles-wrapper .team-section {
        padding: 3rem 0;
    }
    body.template-block-builder .founder-content,
    .editor-styles-wrapper .founder-content {
        gap: 2rem;
    }
    body.template-block-builder .founder-image,
    .editor-styles-wrapper .founder-image {
        height: 320px;
    }
    body.template-block-builder .founder-text,
    .editor-styles-wrapper .founder-text {
        padding-left: 0;
    }
    body.template-block-builder .ms-ctabar .ms-ctabar__headline,
    .editor-styles-wrapper .ms-ctabar .ms-ctabar__headline {
        font-size: clamp(1.25rem, 4vw, 1.65rem);
        margin-bottom: 0.35rem;
    }
    body.template-block-builder .section-title,
    .editor-styles-wrapper .section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    body.template-block-builder .section-subtitle-large,
    .editor-styles-wrapper .section-subtitle-large {
        font-size: clamp(1.25rem, 3vw, 1.75rem);
    }
    body.template-block-builder .brand-film-intro,
    .editor-styles-wrapper .brand-film-intro {
        margin-bottom: 28px;
    }
    body.template-block-builder .brand-film-headline,
    .editor-styles-wrapper .brand-film-headline {
        font-size: clamp(1.35rem, 4vw, 1.75rem);
    }
    body.template-block-builder .brand-film-quote,
    .editor-styles-wrapper .brand-film-quote {
        font-size: 1rem;
    }
    body.template-block-builder .approach-content,
    .editor-styles-wrapper .approach-content {
        padding: 1.5rem 1rem;
    }
    body.template-block-builder .accordion-header,
    .editor-styles-wrapper .accordion-header {
        padding: 1.25rem 0;
        font-size: 1rem;
    }
    body.template-block-builder .tour-container,
    .editor-styles-wrapper .tour-container {
        gap: 2rem;
    }
    body.template-block-builder .tour-video,
    .editor-styles-wrapper .tour-video {
        min-height: 220px;
    }
    body.template-block-builder .team-grid,
    .editor-styles-wrapper .team-grid {
        gap: 2rem;
        margin-top: 2rem;
    }
    body.template-block-builder .member-image,
    .editor-styles-wrapper .member-image {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    body.template-block-builder .expertise-section,
    body.template-block-builder .virtual-tour-section,
    body.template-block-builder .video-message,
    body.template-block-builder .testimonials-section,
    body.template-block-builder .how-we-treat,
    .editor-styles-wrapper .expertise-section,
    .editor-styles-wrapper .virtual-tour-section,
    .editor-styles-wrapper .video-message,
    .editor-styles-wrapper .testimonials-section,
    .editor-styles-wrapper .how-we-treat {
        padding: 2rem 0;
    }
    body.template-block-builder .founder-message,
    body.template-block-builder .team-section,
    .editor-styles-wrapper .founder-message,
    .editor-styles-wrapper .team-section {
        padding: 2rem 0;
    }
    body.template-block-builder .section-header,
    body.template-block-builder .testimonials-header,
    .editor-styles-wrapper .section-header,
    .editor-styles-wrapper .testimonials-header {
        margin-bottom: 2rem;
    }
    body.template-block-builder .brand-film-footer,
    .editor-styles-wrapper .brand-film-footer {
        margin-top: 28px;
    }
    body.template-block-builder .footer-content,
    body.template-page .footer-content,
    .editor-styles-wrapper .footer-content {
        gap: 2rem;
        margin-bottom: 2rem;
    }
}

/* Glossary Styles */
body.template-block-builder .glossary-hero, .editor-styles-wrapper .glossary-hero {
    background: linear-gradient(135deg, #2c5a4f 0%, #1e4a3f 100%);
    color: white;
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

body.template-block-builder .glossary-hero::before, .editor-styles-wrapper .glossary-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('mountainside-treatment-center-canaan-main-building.webp') center/cover;
    opacity: 0.1;
    z-index: 0;
}

body.template-block-builder .glossary-hero-content, .editor-styles-wrapper .glossary-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

body.template-block-builder .glossary-eyebrow, .editor-styles-wrapper .glossary-eyebrow {
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #DCB96F;
    margin-bottom: 1rem;
}

body.template-block-builder .glossary-title, .editor-styles-wrapper .glossary-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

body.template-block-builder .glossary-subtitle, .editor-styles-wrapper .glossary-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

body.template-block-builder .glossary-filters, .editor-styles-wrapper .glossary-filters {
    background: white;
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
}

body.template-block-builder .filter-container, .editor-styles-wrapper .filter-container {
    max-width: 1200px;
    margin: 0 auto;
}

body.template-block-builder .search-section, .editor-styles-wrapper .search-section {
    margin-bottom: 2rem;
}

body.template-block-builder .search-input-container, .editor-styles-wrapper .search-input-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

body.template-block-builder .search-input-container i, .editor-styles-wrapper .search-input-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
}

body.template-block-builder .search-input-container input, .editor-styles-wrapper .search-input-container input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

body.template-block-builder .search-input-container input:focus, .editor-styles-wrapper .search-input-container input:focus {
    outline: none;
    border-color: #2c5a4f;
    box-shadow: 0 0 0 3px rgba(45, 128, 113, 0.1);
}

body.template-block-builder .clear-search, .editor-styles-wrapper .clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: none;
}

body.template-block-builder .clear-search:hover, .editor-styles-wrapper .clear-search:hover {
    background: #f5f5f5;
    color: #2c5a4f;
}

body.template-block-builder .filter-section, .editor-styles-wrapper .filter-section {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

body.template-block-builder .filter-group, .editor-styles-wrapper .filter-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

body.template-block-builder .filter-group label, .editor-styles-wrapper .filter-group label {
    font-family: var(--font-body);
    font-weight: 600;
    color: #333;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.template-block-builder .filter-buttons, .editor-styles-wrapper .filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

body.template-block-builder .filter-btn, .editor-styles-wrapper .filter-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

body.template-block-builder .filter-btn:hover, .editor-styles-wrapper .filter-btn:hover {
    border-color: #2c5a4f;
    color: #2c5a4f;
}

body.template-block-builder .filter-btn.active, .editor-styles-wrapper .filter-btn.active {
    background: #2c5a4f;
    border-color: #2c5a4f;
    color: white;
}

body.template-block-builder .glossary-content, .editor-styles-wrapper .glossary-content {
    background: linear-gradient(180deg, #3d807124 0%, #fff 7.5rem);
    padding: 6rem 0;
    position: relative;
}

body.template-block-builder .glossary-content::before, .editor-styles-wrapper .glossary-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #2c5a4f;
    animation: drawLine 2s ease-out forwards;
}

body.template-block-builder .glossary-layout, .editor-styles-wrapper .glossary-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* Sidebar Styles */
body.template-block-builder .glossary-sidebar, .editor-styles-wrapper .glossary-sidebar {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

body.template-block-builder .sidebar-header, .editor-styles-wrapper .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

body.template-block-builder .sidebar-header h3, .editor-styles-wrapper .sidebar-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #2c5a4f;
    margin: 0;
}

body.template-block-builder .clear-all-filters, .editor-styles-wrapper .clear-all-filters {
    background: none;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

body.template-block-builder .clear-all-filters:hover, .editor-styles-wrapper .clear-all-filters:hover {
    border-color: #2c5a4f;
    color: #2c5a4f;
}

body.template-block-builder .sidebar-section, .editor-styles-wrapper .sidebar-section {
    margin-bottom: 2rem;
}

body.template-block-builder .sidebar-section h4, .editor-styles-wrapper .sidebar-section h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.template-block-builder .sidebar-filters, .editor-styles-wrapper .sidebar-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

body.template-block-builder .sidebar-filter-item, .editor-styles-wrapper .sidebar-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

body.template-block-builder .sidebar-filter-item:hover, .editor-styles-wrapper .sidebar-filter-item:hover {
    background: #f8f9fa;
}

body.template-block-builder .sidebar-filter-item input[type="checkbox"], .editor-styles-wrapper .sidebar-filter-item input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 16px;
    height: 16px;
    accent-color: #2c5a4f;
}

body.template-block-builder .filter-label, .editor-styles-wrapper .filter-label {
    flex: 1;
    font-size: 0.875rem;
    color: #333;
}

body.template-block-builder .filter-count, .editor-styles-wrapper .filter-count {
    background: #f0f0f0;
    color: #666;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* Main Content Styles */
body.template-block-builder .glossary-main, .editor-styles-wrapper .glossary-main {
    min-height: 500px;
}

body.template-block-builder .results-header, .editor-styles-wrapper .results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

body.template-block-builder .results-info h2, .editor-styles-wrapper .results-info h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #2c5a4f;
    margin: 0 0 0.5rem 0;
}

body.template-block-builder .results-count, .editor-styles-wrapper .results-count {
    font-family: var(--font-body);
    color: #666;
    font-size: 0.875rem;
    margin: 0;
}

body.template-block-builder .header-actions, .editor-styles-wrapper .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

body.template-block-builder .identify-drug-btn, .editor-styles-wrapper .identify-drug-btn {
    background: linear-gradient(135deg, #2c5a4f 0%, #1e4a3f 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(45, 128, 113, 0.3);
}

body.template-block-builder .identify-drug-btn:hover, .editor-styles-wrapper .identify-drug-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 128, 113, 0.4);
}

body.template-block-builder .identify-drug-btn i, .editor-styles-wrapper .identify-drug-btn i {
    font-size: 1.1rem;
}

body.template-block-builder .view-toggle, .editor-styles-wrapper .view-toggle {
    display: flex;
    gap: 0.5rem;
    position: relative;
    z-index: 10;
}

body.template-block-builder .view-btn, .editor-styles-wrapper .view-btn {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    user-select: none;
}

body.template-block-builder .view-btn:hover, .editor-styles-wrapper .view-btn:hover {
    border-color: #2c5a4f;
    color: #2c5a4f;
    background: #f0f8f5;
}

body.template-block-builder .view-btn:active, .editor-styles-wrapper .view-btn:active {
    transform: translateY(1px);
}

body.template-block-builder .view-btn.active, .editor-styles-wrapper .view-btn.active {
    background: #2c5a4f;
    border-color: #2c5a4f;
    color: white;
}

body.template-block-builder .view-btn.active:hover, .editor-styles-wrapper .view-btn.active:hover {
    background: #1e4a3f;
    border-color: #1e4a3f;
}

body.template-block-builder .glossary-grid, .editor-styles-wrapper .glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

body.template-block-builder .glossary-grid.list-view, .editor-styles-wrapper .glossary-grid.list-view {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 1rem !important;
}

body.template-block-builder .glossary-grid.list-view .glossary-item, .editor-styles-wrapper .glossary-grid.list-view .glossary-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 2rem !important;
    padding: 1.5rem !important;
    width: 100% !important;
    border-bottom: 1px solid #f0f0f0;
}

body.template-block-builder .glossary-grid.list-view .glossary-item:last-child, .editor-styles-wrapper .glossary-grid.list-view .glossary-item:last-child {
    border-bottom: none;
}

body.template-block-builder .glossary-grid.list-view .item-header, .editor-styles-wrapper .glossary-grid.list-view .item-header {
    margin-bottom: 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    min-width: 200px !important;
    flex-shrink: 0 !important;
}

body.template-block-builder .glossary-grid.list-view .item-description, .editor-styles-wrapper .glossary-grid.list-view .item-description {
    margin-bottom: 0 !important;
    flex: 1 !important;
}

body.template-block-builder .glossary-grid.list-view .item-details, .editor-styles-wrapper .glossary-grid.list-view .item-details {
    display: none !important;
}

body.template-block-builder .glossary-grid.list-view .search-highlight, .editor-styles-wrapper .glossary-grid.list-view .search-highlight {
    margin-top: 0 !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    min-width: 150px !important;
    text-align: right !important;
}

/* Search results specific list view - additional styling */
body.template-block-builder #searchResultsGrid.list-view .search-highlight, .editor-styles-wrapper #searchResultsGrid.list-view .search-highlight {
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* General Search Results Styles */
body.template-block-builder .search-results-grid, .editor-styles-wrapper .search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

body.template-block-builder .search-result-item, .editor-styles-wrapper .search-result-item {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

body.template-block-builder .search-result-item:hover, .editor-styles-wrapper .search-result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body.template-block-builder .search-result-item.featured, .editor-styles-wrapper .search-result-item.featured {
    border: 2px solid #DCB96F;
    box-shadow: 0 8px 30px rgba(220, 185, 111, 0.2);
}

body.template-block-builder .result-header, .editor-styles-wrapper .result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

body.template-block-builder .result-header h3, .editor-styles-wrapper .result-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #2c5a4f;
    margin: 0;
    font-weight: 600;
}

body.template-block-builder .result-header h3 a, .editor-styles-wrapper .result-header h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

body.template-block-builder .result-header h3 a:hover, .editor-styles-wrapper .result-header h3 a:hover {
    color: #1e4a3f;
}

body.template-block-builder .result-type, .editor-styles-wrapper .result-type {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
    background: #f0f8f5;
    color: #2c5a4f;
}

body.template-block-builder .result-description, .editor-styles-wrapper .result-description {
    font-family: var(--font-body);
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

body.template-block-builder .result-meta, .editor-styles-wrapper .result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #999;
    font-family: var(--font-body);
}

body.template-block-builder .result-url, .editor-styles-wrapper .result-url {
    color: #2c5a4f;
    text-decoration: none;
}

body.template-block-builder .result-url:hover, .editor-styles-wrapper .result-url:hover {
    text-decoration: underline;
}

body.template-block-builder .search-highlight, .editor-styles-wrapper .search-highlight {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #666;
    font-family: var(--font-body);
}

body.template-block-builder .search-highlight strong, .editor-styles-wrapper .search-highlight strong {
    color: #2c5a4f;
}

body.template-block-builder .glossary-item, .editor-styles-wrapper .glossary-item {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

body.template-block-builder .glossary-item:hover, .editor-styles-wrapper .glossary-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body.template-block-builder .item-header, .editor-styles-wrapper .item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

body.template-block-builder .item-header h3, .editor-styles-wrapper .item-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #2c5a4f;
    margin: 0;
    font-weight: 600;
}

body.template-block-builder .severity-badge, .editor-styles-wrapper .severity-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}

body.template-block-builder .severity-badge.low, .editor-styles-wrapper .severity-badge.low {
    background: #e8f5e8;
    color: #2d7d2d;
}

body.template-block-builder .severity-badge.moderate, .editor-styles-wrapper .severity-badge.moderate {
    background: #fff3cd;
    color: #856404;
}

body.template-block-builder .severity-badge.high, .editor-styles-wrapper .severity-badge.high {
    background: #f8d7da;
    color: #721c24;
}

body.template-block-builder .item-description, .editor-styles-wrapper .item-description {
    font-family: var(--font-body);
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

body.template-block-builder .item-details, .editor-styles-wrapper .item-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

body.template-block-builder .detail-item, .editor-styles-wrapper .detail-item {
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.5;
}

body.template-block-builder .detail-item strong, .editor-styles-wrapper .detail-item strong {
    color: #333;
    font-weight: 600;
}

body.template-block-builder .no-results, .editor-styles-wrapper .no-results {
    text-align: center;
    padding: 4rem 2rem;
}

body.template-block-builder .no-results-content i, .editor-styles-wrapper .no-results-content i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

body.template-block-builder .no-results-content h3, .editor-styles-wrapper .no-results-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 0.5rem;
}

body.template-block-builder .no-results-content p, .editor-styles-wrapper .no-results-content p {
    font-family: var(--font-body);
    color: #999;
    font-size: 1rem;
}

/* Glossary Responsive Design */
@media (max-width: 1024px) {
    body.template-block-builder .glossary-layout, .editor-styles-wrapper .glossary-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    body.template-block-builder .glossary-sidebar, .editor-styles-wrapper .glossary-sidebar {
        position: static;
        max-height: none;
        order: 2;
    }
    
    body.template-block-builder .glossary-main, .editor-styles-wrapper .glossary-main {
        order: 1;
    }
    
    body.template-block-builder .results-header, .editor-styles-wrapper .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    body.template-block-builder .glossary-hero, .editor-styles-wrapper .glossary-hero {
        padding: 6rem 0 4rem;
    }
    
    body.template-block-builder .glossary-title, .editor-styles-wrapper .glossary-title {
        font-size: 2.5rem;
    }
    
    body.template-block-builder .glossary-subtitle, .editor-styles-wrapper .glossary-subtitle {
        font-size: 1.1rem;
    }
    
    body.template-block-builder .glossary-filters, .editor-styles-wrapper .glossary-filters {
        padding: 2rem 0;
    }
    
    body.template-block-builder .filter-section, .editor-styles-wrapper .filter-section {
        flex-direction: column;
        gap: 2rem;
    }
    
    body.template-block-builder .filter-buttons, .editor-styles-wrapper .filter-buttons {
        justify-content: center;
    }
    
    body.template-block-builder .glossary-layout, .editor-styles-wrapper .glossary-layout {
        gap: 1.5rem;
    }
    
    body.template-block-builder .glossary-sidebar, .editor-styles-wrapper .glossary-sidebar {
        padding: 1.5rem;
    }
    
    body.template-block-builder .sidebar-header, .editor-styles-wrapper .sidebar-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    body.template-block-builder .glossary-grid:not(.list-view), .editor-styles-wrapper .glossary-grid:not(.list-view) {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    body.template-block-builder .glossary-item, .editor-styles-wrapper .glossary-item {
        padding: 1.5rem;
    }
    
    body.template-block-builder .item-header, .editor-styles-wrapper .item-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    body.template-block-builder .results-header, .editor-styles-wrapper .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    body.template-block-builder .view-toggle, .editor-styles-wrapper .view-toggle {
        align-self: flex-end;
    }
}

/* Search Results Page Styles */
body.template-block-builder .search-hero, .editor-styles-wrapper .search-hero {
    background: linear-gradient(135deg, #2c5a4f 0%, #1e4a3f 100%);
    color: white;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

body.template-block-builder .search-hero::before, .editor-styles-wrapper .search-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('mountainside-treatment-center-canaan-main-building.webp') center/cover;
    opacity: 0.1;
    z-index: 0;
}

body.template-block-builder .search-hero-content, .editor-styles-wrapper .search-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 50px auto 0;
}

body.template-block-builder .search-breadcrumb, .editor-styles-wrapper .search-breadcrumb {
    margin-bottom: 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
}

body.template-block-builder .search-breadcrumb a, .editor-styles-wrapper .search-breadcrumb a {
    color: #DCB96F;
    text-decoration: none;
    transition: color 0.3s ease;
}

body.template-block-builder .search-breadcrumb a:hover, .editor-styles-wrapper .search-breadcrumb a:hover {
    color: white;
}

body.template-block-builder .search-breadcrumb span, .editor-styles-wrapper .search-breadcrumb span {
    margin: 0 0.5rem;
    opacity: 0.7;
}

body.template-block-builder .search-results-header h1, .editor-styles-wrapper .search-results-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.1;
}

body.template-block-builder .search-query, .editor-styles-wrapper .search-query {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
}

body.template-block-builder .query-label, .editor-styles-wrapper .query-label {
    opacity: 0.8;
}

body.template-block-builder .query-term, .editor-styles-wrapper .query-term {
    background: rgba(220, 185, 111, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #DCB96F;
    font-weight: 500;
}

body.template-block-builder .search-filters, .editor-styles-wrapper .search-filters {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

body.template-block-builder .search-filter-container, .editor-styles-wrapper .search-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

body.template-block-builder .search-refine h3, .editor-styles-wrapper .search-refine h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #2c5a4f;
    margin-bottom: 1rem;
}

body.template-block-builder .search-refine .search-input-container, .editor-styles-wrapper .search-refine .search-input-container {
    position: relative;
    width: 400px;
}

body.template-block-builder .search-refine .search-input-container input, .editor-styles-wrapper .search-refine .search-input-container input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

body.template-block-builder .search-refine .search-input-container input:focus, .editor-styles-wrapper .search-refine .search-input-container input:focus {
    outline: none;
    border-color: #2c5a4f;
    box-shadow: 0 0 0 3px rgba(45, 128, 113, 0.1);
}

body.template-block-builder .search-refine .search-submit-btn, .editor-styles-wrapper .search-refine .search-submit-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #2c5a4f;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

body.template-block-builder .search-refine .search-submit-btn:hover, .editor-styles-wrapper .search-refine .search-submit-btn:hover {
    background: #1e4a3f;
}

body.template-block-builder .search-sort, .editor-styles-wrapper .search-sort {
    display: flex;
    align-items: center;
    gap: 1rem;
}

body.template-block-builder .search-sort label, .editor-styles-wrapper .search-sort label {
    font-family: var(--font-body);
    font-weight: 500;
    color: #333;
}

body.template-block-builder .search-sort select, .editor-styles-wrapper .search-sort select {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-body);
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

body.template-block-builder .search-sort select:focus, .editor-styles-wrapper .search-sort select:focus {
    outline: none;
    border-color: #2c5a4f;
}

body.template-block-builder .search-results-content, .editor-styles-wrapper .search-results-content {
    background: linear-gradient(180deg, #3d807124 0%, #fff 7.5rem);
    padding: 4rem 0;
    position: relative;
}

body.template-block-builder .search-results-content::before, .editor-styles-wrapper .search-results-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #2c5a4f;
    animation: drawLine 2s ease-out forwards;
}

body.template-block-builder .search-layout, .editor-styles-wrapper .search-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* Search Sidebar */
body.template-block-builder .search-sidebar, .editor-styles-wrapper .search-sidebar {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

body.template-block-builder .related-searches, .editor-styles-wrapper .related-searches {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.template-block-builder .related-search-tag, .editor-styles-wrapper .related-search-tag {
    display: block;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

body.template-block-builder .related-search-tag:hover, .editor-styles-wrapper .related-search-tag:hover {
    background: #2c5a4f;
    color: white;
}

/* Search Main Content */
body.template-block-builder .search-main, .editor-styles-wrapper .search-main {
    min-height: 500px;
}

body.template-block-builder .featured-result, .editor-styles-wrapper .featured-result {
    position: relative;
    margin-bottom: 3rem;
}

body.template-block-builder .featured-badge, .editor-styles-wrapper .featured-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #DCB96F;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    font-family: var(--font-body);
}

body.template-block-builder .glossary-item.featured, .editor-styles-wrapper .glossary-item.featured {
    border: 2px solid #DCB96F;
    box-shadow: 0 8px 30px rgba(220, 185, 111, 0.2);
}

body.template-block-builder .search-highlight, .editor-styles-wrapper .search-highlight {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #666;
    font-family: var(--font-body);
}

body.template-block-builder .search-highlight strong, .editor-styles-wrapper .search-highlight strong {
    color: #2c5a4f;
}

body.template-block-builder .search-pagination, .editor-styles-wrapper .search-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

body.template-block-builder .pagination-btn, .editor-styles-wrapper .pagination-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.template-block-builder .pagination-btn:hover:not(:disabled), .editor-styles-wrapper .pagination-btn:hover:not(:disabled) {
    border-color: #2c5a4f;
    color: #2c5a4f;
}

body.template-block-builder .pagination-btn:disabled, .editor-styles-wrapper .pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

body.template-block-builder .pagination-info, .editor-styles-wrapper .pagination-info {
    font-family: var(--font-body);
    color: #666;
    font-size: 0.875rem;
}

/* Search Results Responsive */
@media (max-width: 1024px) {
    body.template-block-builder .search-layout, .editor-styles-wrapper .search-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    body.template-block-builder .search-sidebar, .editor-styles-wrapper .search-sidebar {
        position: static;
        max-height: none;
        order: 2;
    }
    
    body.template-block-builder .search-main, .editor-styles-wrapper .search-main {
        order: 1;
    }
    
    body.template-block-builder .search-filter-container, .editor-styles-wrapper .search-filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    body.template-block-builder .search-refine .search-input-container, .editor-styles-wrapper .search-refine .search-input-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body.template-block-builder .search-hero, .editor-styles-wrapper .search-hero {
        padding: 4rem 0 3rem;
    }
    
    body.template-block-builder .search-results-header h1, .editor-styles-wrapper .search-results-header h1 {
        font-size: 2rem;
    }
    
    body.template-block-builder .search-query, .editor-styles-wrapper .search-query {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    body.template-block-builder .search-filters, .editor-styles-wrapper .search-filters {
        padding: 1.5rem 0;
    }
    
    body.template-block-builder .search-results-content, .editor-styles-wrapper .search-results-content {
        padding: 3rem 0;
    }
    
    body.template-block-builder .search-layout, .editor-styles-wrapper .search-layout {
        gap: 1.5rem;
    }
    
    body.template-block-builder .search-sidebar, .editor-styles-wrapper .search-sidebar {
        padding: 1.5rem;
    }
    
    body.template-block-builder .featured-result, .editor-styles-wrapper .featured-result {
        margin-bottom: 2rem;
    }
    
    body.template-block-builder .featured-badge, .editor-styles-wrapper .featured-badge {
        position: static;
        margin-bottom: 1rem;
        align-self: flex-start;
    }
    
    body.template-block-builder .search-pagination, .editor-styles-wrapper .search-pagination {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Drug Identification Modal Styles */
body.template-block-builder .drug-identify-modal, .editor-styles-wrapper .drug-identify-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

body.template-block-builder .drug-identify-modal-content, .editor-styles-wrapper .drug-identify-modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.template-block-builder .drug-identify-header, .editor-styles-wrapper .drug-identify-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

body.template-block-builder .drug-identify-header h2, .editor-styles-wrapper .drug-identify-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #2c5a4f;
    margin: 0;
}

body.template-block-builder .drug-identify-body, .editor-styles-wrapper .drug-identify-body {
    padding: 2rem;
}

body.template-block-builder .upload-section, .editor-styles-wrapper .upload-section {
    text-align: center;
}

body.template-block-builder .upload-area, .editor-styles-wrapper .upload-area {
    border: 2px dashed #2c5a4f;
    border-radius: 16px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

body.template-block-builder .upload-area:hover, .editor-styles-wrapper .upload-area:hover {
    border-color: #1e4a3f;
    background-color: rgba(45, 128, 113, 0.05);
}

body.template-block-builder .upload-area.dragover, .editor-styles-wrapper .upload-area.dragover {
    border-color: #1e4a3f;
    background-color: rgba(45, 128, 113, 0.1);
    transform: scale(1.02);
}

body.template-block-builder .upload-content i, .editor-styles-wrapper .upload-content i {
    font-size: 3rem;
    color: #2c5a4f;
    margin-bottom: 1rem;
}

body.template-block-builder .upload-content h3, .editor-styles-wrapper .upload-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #2c5a4f;
    margin: 0 0 0.5rem 0;
}

body.template-block-builder .upload-content p, .editor-styles-wrapper .upload-content p {
    font-family: var(--font-body);
    color: #666;
    margin: 0 0 1.5rem 0;
}

body.template-block-builder .upload-btn, .editor-styles-wrapper .upload-btn {
    background: linear-gradient(135deg, #2c5a4f 0%, #1e4a3f 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.template-block-builder .upload-btn:hover, .editor-styles-wrapper .upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 128, 113, 0.3);
}

body.template-block-builder .camera-section, .editor-styles-wrapper .camera-section {
    margin-top: 1rem;
}

body.template-block-builder .camera-btn, .editor-styles-wrapper .camera-btn {
    background: transparent;
    color: #2c5a4f;
    border: 2px solid #2c5a4f;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

body.template-block-builder .camera-btn:hover, .editor-styles-wrapper .camera-btn:hover {
    background: #2c5a4f;
    color: white;
}

body.template-block-builder .image-preview, .editor-styles-wrapper .image-preview {
    text-align: center;
}

body.template-block-builder .image-preview img, .editor-styles-wrapper .image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

body.template-block-builder .preview-actions, .editor-styles-wrapper .preview-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

body.template-block-builder .action-btn, .editor-styles-wrapper .action-btn {
    background: transparent;
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.template-block-builder .action-btn:hover, .editor-styles-wrapper .action-btn:hover {
    border-color: #2c5a4f;
    color: #2c5a4f;
}

body.template-block-builder .action-btn.primary, .editor-styles-wrapper .action-btn.primary {
    background: linear-gradient(135deg, #2c5a4f 0%, #1e4a3f 100%);
    color: white;
    border-color: #2c5a4f;
}

body.template-block-builder .action-btn.primary:hover, .editor-styles-wrapper .action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 128, 113, 0.3);
}

body.template-block-builder .processing-section, .editor-styles-wrapper .processing-section {
    text-align: center;
    padding: 3rem 2rem;
}

body.template-block-builder .processing-content h3, .editor-styles-wrapper .processing-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #2c5a4f;
    margin: 1rem 0 0.5rem 0;
}

body.template-block-builder .processing-content p, .editor-styles-wrapper .processing-content p {
    font-family: var(--font-body);
    color: #666;
    margin: 0;
}

body.template-block-builder .spinner, .editor-styles-wrapper .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #2c5a4f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.template-block-builder .results-section, .editor-styles-wrapper .results-section {
    text-align: center;
}

body.template-block-builder .results-content, .editor-styles-wrapper .results-content {
    max-width: 500px;
    margin: 0 auto;
}

body.template-block-builder .result-header, .editor-styles-wrapper .result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

body.template-block-builder .result-header i.success, .editor-styles-wrapper .result-header i.success {
    color: #28a745;
    font-size: 1.5rem;
}

body.template-block-builder .result-header h3, .editor-styles-wrapper .result-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #2c5a4f;
    margin: 0;
}

body.template-block-builder .drug-result, .editor-styles-wrapper .drug-result {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

body.template-block-builder .drug-result h4, .editor-styles-wrapper .drug-result h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: #2c5a4f;
    margin: 0 0 0.5rem 0;
}

body.template-block-builder .drug-result p, .editor-styles-wrapper .drug-result p {
    font-family: var(--font-body);
    color: #666;
    margin: 0 0 0.5rem 0;
}

body.template-block-builder .drug-result .confidence, .editor-styles-wrapper .drug-result .confidence {
    font-size: 0.875rem;
    color: #28a745;
    font-weight: 600;
}

body.template-block-builder .result-actions, .editor-styles-wrapper .result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

body.template-block-builder .error-section, .editor-styles-wrapper .error-section {
    text-align: center;
}

body.template-block-builder .error-content, .editor-styles-wrapper .error-content {
    max-width: 500px;
    margin: 0 auto;
}

body.template-block-builder .error-header, .editor-styles-wrapper .error-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

body.template-block-builder .error-header i.error, .editor-styles-wrapper .error-header i.error {
    color: #dc3545;
    font-size: 1.5rem;
}

body.template-block-builder .error-header h3, .editor-styles-wrapper .error-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #dc3545;
    margin: 0;
}

body.template-block-builder .error-content p, .editor-styles-wrapper .error-content p {
    font-family: var(--font-body);
    color: #666;
    margin: 0 0 1rem 0;
}

body.template-block-builder .error-content ul, .editor-styles-wrapper .error-content ul {
    text-align: left;
    font-family: var(--font-body);
    color: #666;
    margin: 0 0 2rem 0;
    padding-left: 1.5rem;
}

body.template-block-builder .error-content li, .editor-styles-wrapper .error-content li {
    margin-bottom: 0.5rem;
}

body.template-block-builder .error-actions, .editor-styles-wrapper .error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

body.template-block-builder .drug-identify-footer, .editor-styles-wrapper .drug-identify-footer {
    padding: 1rem 2rem 2rem;
    border-top: 1px solid #e0e0e0;
}

body.template-block-builder .disclaimer, .editor-styles-wrapper .disclaimer {
    text-align: center;
}

body.template-block-builder .disclaimer p, .editor-styles-wrapper .disclaimer p {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Mobile Responsive for Drug Identification */
@media (max-width: 768px) {
    body.template-block-builder .header-actions, .editor-styles-wrapper .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    body.template-block-builder .drug-identify-modal-content, .editor-styles-wrapper .drug-identify-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .drug-identify-header,
    body.template-block-builder .drug-identify-body, .editor-styles-wrapper .drug-identify-body {
        padding: 1.5rem;
    }
    
    body.template-block-builder .upload-area, .editor-styles-wrapper .upload-area {
        padding: 2rem 1rem;
    }
    
    .preview-actions,
    .result-actions,
    body.template-block-builder .error-actions, .editor-styles-wrapper .error-actions {
        flex-direction: column;
    }
}
