/* CSS Variables & Theme */
:root {
    /* Spiritual Palette - Updated V5 */
    --color-bg: #80864f;
    /* Green - Index Background */
    --color-text-main: #f7f2e0;
    /* Beige Text */
    --color-text-muted: #e6dfc8;
    /* Slightly darker Beige for hierarchy */

    --color-primary: #BF897F;
    /* Terracotta/Pink - Buttons/Accents */
    --color-primary-dark: #a6766d;
    /* Darker Terracotta */

    /* Secondary Colors */
    --color-secondary-beige: #f7f2e0;
    --color-secondary-blue: #dac2b2;

    /* Footer */
    --color-footer-bg: #80864F;

    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
    --radius-md: 8px;
    --radius-lg: 16px;

    --container-width: 1100px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

.hidden,
.d-none {
    display: none !important;
}

.cms-pending {
    visibility: hidden;
}

.seo-fallback {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Utility Classes for Modal (Tailwind-mock) */
.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.bg-black\/80 {
    background-color: rgba(0, 0, 0, 0.8);
}

.backdrop-blur-sm {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.z-50 {
    z-index: 9999;
}

/* Override to be safe */
.flex {
    display: flex;
}

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

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

.p-4 {
    padding: 1rem;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    /* Ensure full height */
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Sticky Footer Setup */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Dashboard Page Theme Overrides */
.dashboard-page {
    --color-bg: #f7f2e0;
    --color-text-main: #80864f;
    --color-text-muted: #6e664c;
    /* Ensure background updates */
    background-color: var(--color-bg);
    color: var(--color-text-main);
}

main {
    flex: 1;
}

h1,
h2,
h3,
.logo {
    font-family: var(--font-serif);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    /* Prevent text wrap inside button */
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Footer Variables Default */
:root {
    --color-footer-text: #ffffff;
}

.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    text-align: center;
    padding: 10px 0 10px;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 100;
    width: 100%;
    /* Force full width */
}

/* Ensure footer content is centered */
.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 20px;
}

.footer a,
.footer p,
.footer span {
    color: inherit !important;
    /* Allow inheritance but keep specificity high against other overrides if needed, or better: var(--color-footer-text) */
    color: var(--color-footer-text) !important;
    margin: 0;
    padding: 2px 0;
    line-height: 1.4;
}

.btn-outline {
    border-color: var(--color-text-main);
    color: var(--color-text-main);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-text-main);
    color: var(--color-primary);
    /* Green text on Beige hover */
}

.cta-button {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--color-bg);
    /* Green */
    color: var(--color-text-main) !important;
    /* Beige Text */
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.cta-button:hover {
    background-color: var(--color-bg);
    /* Darker Green */
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s;
}

.contact-link:hover {
    opacity: 0.7;
}

.full-width {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Padding is now dynamic via JS, but set default to match JS (20px) to prevent jump */
    /* Padding matches JS default */
    padding: var(--nav-padding, 20px) 0;
    font-size: var(--nav-font-size, 16px);
    /* Default to Transparent to prevent Green Flash on load */
    background: transparent;
    color: var(--nav-text, #f7f2e0);
    z-index: 1000;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-welcome-msg {
    display: none;
    /* Default hidden */
    position: absolute;
    right: 70px;
    /* Position to left of menu toggle */
    top: 75%;
    /* Lower position */
    transform: translateY(-50%);
    font-weight: 500;
    font-size: 0.9rem;
    color: inherit;
}


.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    position: relative;
    /* Anchor absolute children */
}

/* Brand Container - Forced Row Layout */
.brand-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    height: 100%;
    min-width: max-content;
    gap: 15px;
    /* Space between logo and text */
    /* overflow: hidden; Removed to prevent clipping */
    /* border: 1px dotted blue; */
    /* Debug Border */
}

/* Link wrapper for logo */
.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    order: 0;
    /* Revert to Left */
    flex-shrink: 0;
    /* CRITICAL: Prevent logo from disappearing if space is tight */
    /* border: 1px dashed red; */
    /* Debug Border */
}

/* Logo Image */
.header-logo {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    /* Fixed square size as requested */
    object-fit: contain;
    display: block !important;
    /* OVERRIDE HIDDEN CLASS */
}

/* Brand Text Column */
.brand-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    order: 1;
}

.brand-info .logo {
    font-size: 1.5em;
    /* Use em to scale with navbar font-size setting */
    line-height: 1.1;
    margin-bottom: 2px;
    color: inherit;
    /* Removed white-space: nowrap to allow wrap on very small screens, 
       but keeping it usually looks better. User said "narrowed", maybe they meant "condensed"?
       I will use 'Montserrat' explicitly to match body if that was the case, 
       or ensure it's inheriting 'Cormorant Garamond' properly. */
    font-family: var(--font-serif);
    letter-spacing: 0.5px;
    /* Add breathing room */
}

/* Social Icons in Header */
.header-socials {
    display: flex;
    gap: 15px;
    /* Restored gap */
}

.header-socials a {
    display: flex;
    color: var(--nav-text, inherit) !important;
    /* Force correct color */
    transition: transform 0.3s ease;
}

.header-socials a:hover {
    transform: translateY(-2px);
    color: var(--color-primary);
    /* Hover effect */
}

.header-socials svg {
    width: 20px;
    /* Restored size */
    height: 20px;
}

/* Navigation Refactor Maintained Above */

.header-socials svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.nav-links,
.nav-actions {
    display: none !important;
    /* Hide standard desktop links */
}

/* Ensure Nav Links Scale */
.nav-links a {
    font-size: 1em !important;
}

/* Always show hamburger */
.menu-toggle {
    display: block;
    /* Visible on all devices */
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    /* Inherit from navbar */
}

.menu-toggle svg {
    width: 32px;
    height: 32px;
}

/* Sidebar Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -105%;
    /* Hidden off-screen (Percentage ensures full hide) */
    width: 350px;
    /* Fixed width sidebar */
    height: auto;
    /* User requested not full height */
    min-height: 300px;
    border-bottom-left-radius: 20px;
    background: #fff;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 30px 30px;
    /* Reduced from 80/40/50 */
    gap: 15px;
    /* Reduced from 40px */
    transition: 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    max-height: 100vh;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-family: var(--font-serif);
    font-size: 22px;
    /* Increased for better presence */
    color: #80864f;
    /* Fixed Green for contrast on white sidebar */
    /* Green text for visibility on white */
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 8px;
    /* Added border radius for better highlight feel */
}

.mobile-services-submenu {
    margin: 2px 0 4px;
    padding-left: 18px;
}

.mobile-services-submenu li {
    margin: 0;
}

.mobile-links-list .mobile-services-submenu a {
    display: block;
    padding: 4px 12px !important;
    font-size: 17px !important;
    color: #979b72;
}

.mobile-links-list a:hover,
#mobile-logout-btn:hover {
    color: var(--color-primary);
    background-color: var(--color-secondary-beige);
    /* Light beige highlight */
    padding-left: 25px !important;
    /* Slightly increased padding animation */
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #80864f;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    /* Solid Color from Theme */
    z-index: -1;
}

@keyframes pulseBg {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 2.3rem;
    line-height: 1.2;
    margin-bottom: 5px;
    /* Reduced from 20px */
    color: var(--color-text-main);
    /* Beige for readability on Green */
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

/* Animations included in CSS for simplicity */
.fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.fade-in-delay {
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }

    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Section Common */
.section-tag {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--color-text-main);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 200px 200px 0 0;
    /* Arch shape */
    color: #999;
}

/* New Smaller Image for Home */
/* New Smaller Image for Home */
.about-image-small {
    width: 100%;
    max-width: 220px;
    height: 220px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin: 0 auto;
    object-fit: contain;
    overflow: hidden;
    box-shadow: none;
}

.about-image-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Services */
/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.services-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

.services-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}


.service-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-primary-dark);
}

.service-benefits {
    margin: 20px 0;
    flex: 1;
}

.service-benefits h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.service-benefits ul {
    margin-bottom: 15px;
}

.service-benefits li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    /* More readable, same as p */
    font-size: 0.95rem;
}

.service-benefits i {
    color: var(--color-secondary);
    width: 18px;
}

.service-visual {
    height: 240px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #fff 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1;
    /* Image on top */
}

.aura-circle {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(157, 132, 183, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(20px);
}

/* Specific Services Visuals */
.service-visual.innerdance {
    background: linear-gradient(135deg, #E6E6FA 0%, #fff 100%);
}

.aura-circle.innerdance {
    background: radial-gradient(circle, rgba(157, 132, 183, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
}

.service-visual.constellations {
    background: linear-gradient(135deg, #FFE4E1 0%, #fff 100%);
}

.aura-circle.constellations {
    background: radial-gradient(circle, rgba(233, 150, 122, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
}

.service-visual.expansion {
    background: linear-gradient(135deg, #F0F8FF 0%, #fff 100%);
}

.aura-circle.expansion {
    background: radial-gradient(circle, rgba(135, 206, 235, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
}


/* Events */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
    gap: 30px;
}


.event-card {
    display: flex;
    flex-direction: column;
    /* Stack Image and Content vertically */
    gap: 20px;
    padding: 30px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    padding: 15px;
    border-radius: var(--radius-md);
    min-width: 70px;
    height: 80px;
    color: var(--color-text-main);
    /* Beige Text */
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-serif);
}

.event-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.event-date.multi-date {
    width: auto;
    min-width: 60px;
    max-width: 100px;
    padding: 0 10px;
}

.event-date .multi-text {
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-main);
    text-align: center;
    line-height: 1.2;
}

/* Final Batch Utilities */
.mt-10 {
    margin-top: 10px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.ml-24 {
    margin-left: 24px;
}

.min-w-200 {
    min-width: 200px;
}

.hidden {
    display: none !important;
}

.flex-grow {
    flex-grow: 1;
}

.w-auto {
    width: auto !important;
}

.admin-section-divider {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.grid-2-col-gap-15 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.flex-gap-5 {
    display: flex;
    gap: 5px;
}

.color-preview-box {
    width: 50px;
    height: 35px;
    padding: 0;
    border: none;
}

.color-hex-input {
    width: 80px;
    text-transform: uppercase;
}

.admin-grid-2-col-gap-40 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.text-center-primary {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.scrollable-list-500 {
    max-height: 500px;
    overflow-y: auto;
}

#admin-members-list.scrollable-list-500 {
    display: flex;
    flex-direction: column;
    height: min(500px, 72vh);
    max-height: 500px;
    min-height: 360px;
    overflow: hidden;
}

.grid-2-col-gap-20 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.col-span-full {
    grid-column: 1 / -1;
}

.relative {
    position: relative;
}

.event-details h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.event-meta {
    font-size: 0.9rem;
    color: #8a523b;
    /* Brown/Dark Terracotta */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-description p {
    margin: 0 0 0.7em;
}

.event-description p:last-child {
    margin-bottom: 0;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Community */
.community-section {
    background-color: #fff;
}

.social-links {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    border: 1px solid #eee;
    border-radius: 50px;
    font-weight: 500;
}

.social-btn:hover {
    background: #f9f9f9;
}

.footer-centered {
    margin-top: 60px;
    text-align: center;
    padding: 40px 0;
}

.newsletter-box {
    margin-top: 50px;
    padding: 40px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    display: inline-block;
    width: 100%;
    max-width: 600px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    outline: none;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 0px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    outline: none;
    background-color: none;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
}

/* =========================================
   New Header Layout & Mobile Polish
   ========================================= */

/* Brand & Socials Container */
.brand-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    /* Space between logo and socials */
}

/* Ensure Logo is left-aligned */
.logo {
    margin-right: 0;
    line-height: 1;
}

/* Header Socials - Below Brand */
.header-socials {
    display: flex;
    gap: 15px;
    margin: 0;
    /* Reset margins */
}

.header-socials a {
    color: var(--color-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.header-socials a:hover {
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.header-socials svg {
    width: 18px;
    /* Slightly smaller for elegance */
    height: 18px;
}

/* Navbar Layout Updates */
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Nav Links - Center/Right Aligned */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 0 auto;
    /* Pushes to center if possible, or adjust flex */
}

.nav-actions {
    display: flex;
    align-items: center;
}

/* Booking Header Overlap Removed */

/* Mobile & Responsive Refinements */
@media (max-width: 900px) {

    .nav-links,
    .nav-actions {
        display: none;
        /* Hide desktop nav items on tablet/mobile */
    }

    .menu-toggle {
        display: block;
        /* Show hamburger */
    }

    .header-welcome-msg {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 600px) {

    /* Navbar padding compression */
    .navbar {
        padding: 5px 0;
    }

    .container.nav-content {
        width: 95%;
        /* Use more width on mobile */
    }

    /* Reduce Brand Size */
    .logo {
        font-size: 1.2rem;
    }

    /* Social Icons Mobile */
    .header-socials {
        display: flex;
        gap: 12px;
        margin-left: 0;
        margin-top: 5px;
    }

    .header-socials svg {
        width: 22px;
        height: 22px;
    }

    /* Mobile Menu */
    .mobile-menu {
        padding: 70px 20px 30px;
        width: 60%;
        max-width: 320px;
        /* Reduce width on mobile */
    }

    /* Calendar Mobile Styles Removed */

    /* Landscape Mode Optimization (Reduced Height) */
    /* Landscape Optimization Removed */

    /* Footer */
    .footer {
        background: var(--color-footer-bg, #1a1a1a);
        color: var(--color-footer-text, #fff);
        padding: 5px 0 10px;
        text-align: center;
        transition: background 0.3s ease, color 0.3s ease;
    }

    .dashboard-page .footer {
        padding: 5px 0 10px !important;
    }

    .dashboard-page .footer .logo-text,
    .dashboard-page .footer .footer-links {
        margin-bottom: 5px !important;
    }

    .dashboard-page .footer .logo-text {
        display: none !important;
    }

    .footer .logo-text {
        font-family: var(--font-serif);
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .footer-links {
        margin-bottom: 5px;
    }

    .footer-links a {
        color: #999;
        margin: 0 15px;
        font-size: 0.9rem;
    }

    .copyright {
        color: #555;
        font-size: 0.8rem;
    }

    .services-section {
        position: relative;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .services-carousel-wrapper {
        position: relative;
        /* Ensure it sits on top of bg */
        z-index: 2;
    }

    /* Optional overlay if image is too bright */
    .services-section.has-bg::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        /* Darken slightly */
        z-index: 1;
    }

    .services-section.has-bg .section-title,
    .services-section.has-bg .section-tag {
        position: relative;
        z-index: 2;
        color: #fff;
        /* Ensure text is visible on bg */
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    /* Responsive */
    @media (max-width: 768px) {

        .nav-links,
        .menu-toggle {
            display: none;
        }

        .menu-toggle {
            display: block;
        }



        .about-grid,
        .services-card,
        .contact-layout,
        .newsletter-form {
            grid-template-columns: 1fr;
            flex-direction: column;
        }

        .service-visual {
            height: 200px;
        }

        .newsletter-form button {
            margin-top: 10px;
            width: 100%;
        }
    }

    /* Authentication Pages */
}

/* Authentication Pages (Global) */
.auth-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, #FDFBF7 0%, #E6E6FA 100%);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.back-link {
    display: block;
    margin-bottom: 20px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.auth-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-card .logo {
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.auth-form {
    margin: 5px 0px 20px;
}

.auth-footer {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.auth-footer a {
    color: var(--color-primary-dark);
    font-weight: 500;
}

/* Dashboard & Audio */
.section-padding {
    padding-top: 120px;
    /* Space for fixed navbar */
    padding-bottom: 80px;
}

.welcome-msg {
    color: var(--color-primary-dark);
    font-weight: 500;
}

.meditations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.audio-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.audio-card:hover {
    transform: translateY(-3px);
}

.audio-visual {
    height: 150px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #fff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
}

.audio-visual svg {
    width: 48px;
    height: 48px;
    opacity: 0.7;
}

.audio-visual.relax {
    background: linear-gradient(135deg, #E6E6FA 0%, #fff 100%);
}

.audio-visual.locked-bg {
    background: #f0f0f0;
    color: #999;
}

.audio-info {
    padding: 20px;
}

.audio-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.audio-info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.audio-player {
    width: 100%;
    margin-top: 10px;
    height: 35px;
}

/* Audio Player Customization REMOVED to fix warning */

/* Marketing Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.popup-card {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    z-index: 10;
}

.popup-visual {
    height: 120px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #fff 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-aura {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
}

.popup-content {
    padding: 30px;
}

.popup-content h2 {
    color: var(--color-primary-dark);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.popup-content p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}


/* Booking Styles Removed */


.no-slots {
    color: var(--color-text-muted);
    font-style: italic;
    opacity: 0.7;
}

/* Ensure Modal CSS is correct (refreshing/ensuring layout) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 36, 32, 0.4);
    /* Softer overlay */
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}


.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

.modal-content h3 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

#bookingDetailsText {
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
}

/* Ensure Select Matches Inputs */
.auth-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #e1d7ce !important;
    font-size: 1rem;
    color: #5c5540 !important;
    transition: all 0.3s ease;
    appearance: none;
    /* Remove default arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c5540' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.auth-form select:focus {
    border-color: #6e664c;
    background-color: #e1d7ce;
    outline: none;
}



/* RESTORED TESTIMONIALS & BOOKING FIXES */

/* Booking/Members Page Overlap Fix */
.booking-page-section,
.section-padding {
    padding-top: 140px !important;
    /* Force overlap clearance */
    padding-bottom: 80px;
    min-height: 80vh;
}

/* Restored Testimonials (Dynamic Container) */
/* Restored Testimonials (Single View Focus) */
#dynamic-testimonials-container {
    display: flex;
    width: 100%;
    overflow-x: hidden;
    /* Hide scrollbar but allow JS scroll */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding: 0;
    /* Remove padding from container, let wrapper handle spacing */
    align-items: center;
}

#dynamic-testimonials-container .review-card {
    min-width: 100%;
    width: 100%;
    flex: 0 0 100%;
    /* Force 100% width */
    scroll-snap-align: center;

    background: #fff;
    border-radius: 12px;
    padding: 60px 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0;
    color: #666;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    /* Ensure padding includes in width */
}

#dynamic-testimonials-container .review-card p {
    font-size: 1.4rem;
    line-height: 1.6;
    font-family: var(--font-serif);
    font-style: italic;
    color: #4F553D;
    margin-bottom: 25px;
    max-width: 800px;
    /* Limit text width for readability */
    margin-left: auto;
    margin-right: auto;
}

#dynamic-testimonials-container .review-card .author {
    color: var(--color-primary);
    font-weight: 600;
    /*font-size: 1.1rem;*/
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

/* Carousel Wrapper */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    /* Reduced max-width for better focus on text */
    margin: 0 auto;
    overflow: hidden;
    /* Arrows inside padding should be visible */
    padding: 0 80px;
    /* Increase padding for arrows */
    box-sizing: border-box;
}

/* Navigation Buttons */
/* Navigation Buttons (Desktop) */
.nav-btn,
.carousel-nav {
    position: absolute;
    /* Overlay */
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--color-primary);
    /* Beige/Gold text */
    width: 60px;
    /* Larger hit area */
    height: 60px;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s;
    z-index: 1000;
    margin: 0;
    /* Remove static margin */
}

.nav-btn:hover,
.carousel-nav:hover {
    background: transparent;
    /* No fill */
    color: var(--color-primary-dark);
    transform: translateY(-50%) scale(1.2);
    /* Grow effect */
}

/* Specific Positioning */
.nav-btn.prev-btn,
.carousel-nav.prev-btn,
.carousel-nav.prev {
    left: 0;
    /* Sit in the left padding */
}

.nav-btn.next-btn,
.carousel-nav.next-btn,
.carousel-nav.next {
    right: 0;
    /* Sit in the right padding */
}

/* SVG Icon Size */
.nav-btn svg,
.carousel-nav svg {
    width: 40px !important;
    height: 40px !important;
    stroke-width: 1.5;
}

.carousel-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 45px;
    /* Increased from 30px for more space */
    padding: 0 30px 50px 30px;
    width: 100%;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    align-items: stretch;
    /* Ensure equal height */
}

/* Force Cards to show Grab cursor (override link pointer) */
.carousel-card {
    cursor: grab !important;
}

/* Active Drag State */
.carousel-container.active,
.carousel-container.active .carousel-card {
    cursor: grabbing !important;
}

.dashboard-page .carousel-wrapper.is-static-meditations {
    max-width: 900px;
}

.dashboard-page .carousel-container.is-static-meditations {
    cursor: default;
    justify-content: center;
    overflow-x: hidden;
    padding-left: 0;
    padding-right: 0;
    scroll-snap-type: none;
}

.dashboard-page .carousel-container.is-static-meditations .carousel-card {
    cursor: pointer !important;
    flex: 0 1 270px !important;
    width: 270px !important;
    min-width: 0 !important;
    max-width: 270px !important;
}

/* Tablet / Mobile Landscape (2 Cards) */
@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-container {
        grid-auto-columns: calc((100% - 30px) / 2);
        /* Tablet: 2 Cards (minus 1 gap of 30px) */
    }
}

@supports (scrollbar-width: none) {
    .carousel-container {
        scrollbar-width: none;
    }
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-container:hover {
    animation: none;
}

/* Mobile & Tablet Overrides */
@media (max-width: 768px) {
    .carousel-wrapper {
        max-width: 100%;
        padding: 0;
    }

    /* Hide Desktop Arrows and new class .carousel-nav */
    .nav-btn,
    .carousel-nav {
        display: none !important;
    }

    #dynamic-testimonials-container .review-card {
        box-sizing: border-box;
        /* Ensure padding doesn't add to width */
        min-width: 90%;
        /* Relative to container, not viewport */
        width: 90%;
        margin: 0 5%;
        /* Center: (100% - 90%) / 2 = 5% */
        padding: 40px 25px;
        /* Comfortable padding */

        /* Box shadow for depth? */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        /* Softer shadow */
    }

    #dynamic-testimonials-container {
        padding-left: 0;
        padding-right: 0;
        /* Ensure scroll snapping works with margins */
        scroll-padding: 0 5%;
        /* Match margin for snap */
    }

    #dynamic-testimonials-container .review-card p {
        font-size: 1.1rem;
    }

    /* Standardize Carousel Text Height */
    .carousel-content p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .carousel-loader-content {
        width: 100%;
        text-align: center;
        padding: 40px;
    }

    .carousel-loader-content i {
        width: 32px;
        height: 32px;
        margin: 0 auto;
    }

    /* Mobile: Stack meditation cards in a single column */
    .carousel-container {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        overflow-x: hidden;
        overflow-y: visible;
        gap: 30px;
        padding: 20px 20px 50px 20px;
        scroll-snap-type: none;
        width: 100%;
        box-sizing: border-box;
        cursor: default;
    }

    /* Exception: Testimonials carousel stays horizontal on mobile */
    #dynamic-testimonials-container {
        flex-direction: row;
        overflow-x: scroll;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        padding: 10px 0 20px 0;
        gap: 0;
    }

    .carousel-card {
        min-width: 0;
        width: 100%;
        margin: 0 auto 30px auto;
        scroll-snap-align: none;
        height: auto;
        flex: 0 0 auto;
        box-sizing: border-box;
    }

    .carousel-card:last-child {
        margin-bottom: 0;
    }

    /* Fill grid height */
}

.carousel-image {
    height: 250px !important;
    /* Taller image as requested */
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.carousel-card {
    min-width: 280px;
    width: calc((100% - 60px) / 3);
    /* Desktop: 3 cards visible */
    flex: 0 0 auto;
    scroll-snap-align: center;
    /* Center snap feels better for flex */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.carousel-image {
    height: 160px;
    background: #fcfcfc;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Taller image as requested */
}

/* Mobile Landscape Compact Header & Dynamic Carousel */
@media (max-height: 600px) and (orientation: landscape) {

    /* Compact Header Space */
    .section-padding {
        padding-top: 80px !important;
        padding-bottom: 20px !important;
    }

    .dashboard-header {
        margin-bottom: 20px !important;
    }

    .dashboard-header h1 {
        font-size: 1.5rem !important;
    }

    /* Dynamic Carousel Height */
    .carousel-image {
        height: 55vh !important;
        /* Fit screen vertically */
    }

    .carousel-card {
        height: auto !important;
        /* Allow flex height */
    }

    .carousel-container {
        padding-bottom: 20px !important;
        /* Reduce bottom padding */
    }
}

/* Icon Color Overrides */
.bg-green-light {
    color: #2e7d32;
    background-color: #e8f5e9;
}

.bg-blue-light {
    color: #1565c0;
    background-color: #e3f2fd;
}

.bg-purple-light {
    color: #7b1fa2;
    background-color: #f3e5f5;
}

.bg-orange-light {
    color: #ef6c00;
    background-color: #fff3e0;
}

.carousel-image svg {
    stroke: currentColor;
}

.carousel-content {
    padding: 20px;
}

.carousel-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--color-primary-dark);
}

.carousel-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* --- Dashboard Layout --- */
body.dashboard-body {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
    background: #fdfbf7;
}

/* Sidebar */
.sidebar {
    background: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    margin-bottom: 40px;
}

/* Override logo size for sidebar */
.sidebar .logo {
    font-size: 1.5rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    background: var(--bg-color-alt);
    color: var(--color-primary-dark);
}

.nav-item i {
    width: 20px;
}

.sidebar-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
}

.user-info .user-name {
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 5px;
}

.logout-link {
    color: #e57373;
    font-size: 0.85rem;
    text-decoration: none;
}

/* Main Dashboard Area */
.dashboard-main {
    padding: 40px;
    overflow-y: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--color-primary-dark);
}

.date-display {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.stat-card.highlight {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #fff 100%);
}

.stat-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Logo Image */
.header-logo {
    max-height: 40px;
    /* Adjust based on navbar height */
    width: auto;
    margin-right: 10px;
    display: none;
    /* Default hidden */
    object-fit: contain;
}

/* Ensure Logo Link aligns items */
.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--nav-text);
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #888;
}


/* --- Section Color Themes (Alternating) --- */

/* Default Body is Terracotta (#b16a4c), Text Beige */

/* Navbar.scrolled */

.navbar.scrolled {
    background-color: var(--color-secondary-beige);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* Match footer intensity */
}

/* Force Solid Navbar (overrides JS) */
.navbar.navbar-always-solid {
    background-color: var(--nav-bg) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.navbar-always-solid .logo,
.navbar.navbar-always-solid .nav-links a,
.navbar.navbar-always-solid .menu-toggle,
.navbar.navbar-always-solid .header-socials a {
    color: var(--nav-text) !important;
}

/* Beige Sections (About, Events - Contact has special handling) */
.about-section,
.events-section {
    background-color: var(--color-secondary-beige);
    color: #b16a4c;
    /* Terracotta text on Beige */
}

/* Blue Sections (Services, Reviews) */
.services-section,
.reviews-section {
    background-color: var(--color-secondary-blue);
    color: #fff;
}

/* Headings colors correction */
.about-section h2,
.events-section h2 {
    color: #b16a4c;
}

/* --- Mobile Navbar & Arrow Overrides --- */
/* --- Mobile Navbar & Arrow Overrides --- */
@media (max-width: 768px) {

    /* Compact Navbar on Mobile/Tablet */
    .navbar {
        padding: 5px 0 !important;
    }

    /* Hide Arrows on Mobile Only */
    .nav-btn,
    .carousel-arrow,
    .carousel-nav {
        display: none !important;
    }
}

.about-section h3,
.events-section h3 {
    color: #6e664c;
    /* Green headings on Beige */
}

.services-section h2,
.reviews-section h2 {
    color: #fff;
}

/* Contact Section (Special: Beige Section, Terracotta Card) */
.contact-section {
    background-color: var(--color-secondary-beige);
    color: #b16a4c;
}

.contact-section .section-title,
.contact-section p {
    color: #6e664c;
    /* Green text outside form */
}

/* Contact Form Specifics */
.contact-form-wrapper {
    background-color: #b16a4c;
    /* Terracotta Card */
    color: #e1d7ce;
    /* Beige Text inside card */
    padding: 30px;
    border-radius: 12px;
}

.contact-form-wrapper h3 {
    color: #e1d7ce !important;
    /* Force Beige heading */
}

.contact-form-wrapper label {
    color: #e1d7ce !important;
}

/* Inputs (Beige Background) */
.contact-form-wrapper input,
.contact-form-wrapper select,
.contact-form-wrapper textarea {
    background-color: #e1d7ce !important;
    color: #6e664c !important;
    /* Green text inside inputs */
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
    color: rgba(110, 102, 76, 0.6);
}

/* Buttons in form */
.contact-form-wrapper .btn-primary {
    background-color: #6e664c;
    /* Green button on Terracotta */
    color: #fff;
}

.contact-form-wrapper .btn-primary:hover {
    background-color: #5c5540;
}

/* Card Overrides */
.services-card {
    background-color: #fff;
    color: #6e664c;
}

.services-card h3 {
    color: #b16a4c;
}

.services-card p {
    color: #666;
}

.event-card {
    background-color: #fff;
}

.event-date {
    background-color: #b16a4c;
    /* Terracotta badge */
}

/* Review Cards */
.review-card {
    background: transparent;
    border: none;
    padding: 20px;
    /* Keep spacing/padding for layout, remove visual box */
    text-align: center;
    /* Ensure centered text */
}

.review-card .author {
    color: #e1d7ce;
}

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

    .sidebar {
        display: none;
        /* Mobile menu needed later, simplified for now */
    }
}

/* --- Login / Auth Page Theme --- */
body.auth-page {
    background-color: #b16a4c !important;
    /* Terracotta Background Force */
    background-image: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

.auth-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background-color: #6e664c;
    /* Green Card */
    color: #e1d7ce;
    /* Beige Text (Titles/Labels) */
    padding: 2.5rem;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.auth-card h2 {
    color: #e1d7ce;
    margin-bottom: 20px;
}

.auth-form .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    color: #e1d7ce;
    font-size: 0.9rem;
}

/* Inputs: Beige BG, Brown Text */
.auth-form input,
.auth-form textarea {
    background-color: #e1d7ce !important;
    color: #5c5540 !important;
    /* Brown Text inside inputs */
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    font-family: var(--font-sans);
}

.auth-form input::placeholder {
    color: rgba(92, 85, 64, 0.6);
}

.auth-card .btn-primary {
    background-color: #b16a4c;
    /* Terracotta Text */
    font-size: 13px;
    margin-top: 5px;
}

/* =========================================
   Testimonial Selector Card (Compact & Action Buttons) - FINAL
   ========================================= */
.testimonial-selector-card.compact {
    padding: 10px 12px;
    gap: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-selector-card.compact .testimonial-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Ensure text container truncates properly */
.testimonial-selector-card.compact .testimonial-card-header>div:first-child {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
    flex-grow: 1;
}

.testimonial-selector-card.compact .testimonial-card-text {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
    padding-right: 5px;
}

/* Actions Group Inline */
.testimonial-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between icons */
    flex-shrink: 0;
    /* Prevent shrinking */
    margin-left: auto;
    /* Push to right */
    white-space: nowrap;
}

/* Checkbox specific styling */
.testimonial-card-actions .checkbox-wrapper input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--color-primary);
    margin: 0;
    position: static;
    /* Override absolute positioning */
    transform: none;
    /* Override scale transform */
}

/* Icon-only Buttons */
.btn-icon-only {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    /* Flex to center icon */
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.2s, transform 0.1s;
    min-width: 24px;
    height: 24px;
}

.btn-icon-only:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

/* Service Detail Utilities - to replace inline styles */
.svc-testimonials-section-hidden {
    display: none;
    margin-top: 0px;
}

.svc-image-full {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.svc-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.section-title.custom-primary {
    font-size: 2rem;
    color: var(--color-primary);
}

/* Fix for Compact Card Checkbox Positioning */
.testimonial-selector-card.compact input[type="checkbox"] {
    position: static !important;
    transform: scale(1.2);
    /* Keep slightly larger */
    margin: 0;
}

/* =========================================
   Testimonial Selector Card (Compact & Action Buttons) - FINAL
   ========================================= */
.testimonial-selector-card.compact {
    padding: 10px 12px;
    gap: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-selector-card.compact .testimonial-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


/* =========================================
   Modal Styles (Premium)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    margin: 0;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    padding: 5px;
}

.modal-close-btn:hover {
    color: var(--color-primary);
}

.modal-form-group {
    margin-bottom: 15px;
}

.modal-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.auth-card .btn-primary:hover {
    background-color: #8a523b;
}

.auth-footer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #e1d7ce;
}

.auth-footer a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

.back-link {
    color: #fff;
    position: absolute;
    top: 20px;
    left: 20px;
    font-weight: 500;
}

/* Fix Logout Button Visibility */
#logout-btn.btn-outline {
    color: #6e664c !important;
    border-color: #6e664c !important;
}

#logout-btn.btn-outline:hover {
    background-color: #6e664c !important;
    color: #e1d7ce !important;
}

.footer-bottom {
    text-align: center;
    width: 100%;
    margin-top: 20px;
}

/* Footer & Developer Credit */
.developer-credit {
    font-size: 10px !important;
    opacity: 0.6;
    margin-top: 10px;
    letter-spacing: 1px;
}

.logo-text,
.footer-links a,
.copyright {
    font-size: 12px !important;
}

/* Fixed syntax error here */
.footer-credit {
    margin-top: 10px;
}

/* --- Mobile Menu Scroll Fix --- */
.mobile-menu {
    overflow-y: auto !important;
    max-height: 100vh !important;
    padding-bottom: 120px !important;
    /* Extra space for bottom button details */
    display: flex;
    flex-direction: column;
}

/* Ensure content doesn't get cut off */
.mobile-links-list {
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* Compact Mobile Menu Items - Unified */
.mobile-links-list li a,
#mobile-logout-btn {
    display: block;
    /* Ensure it takes full width */
    width: 100%;
    padding: 10px 15px !important;
    /* increased padding for better touch target and visual */
    font-size: 20px !important;
    line-height: 1.2 !important;
    border-radius: 8px;
    /* consistent with earlier styles */
}

.mobile-socials {
    display: flex;
    margin-top: 10px;
    margin-bottom: 30px;
    gap: 15px;
}

.mobile-socials a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* --- About Page Split Layout --- */
.about-split-section {
    display: flex;
    align-items: flex-start;
    /* Align top */
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 100px;
}

.about-split-section.reverse {
    flex-direction: row-reverse;
    /* Swap Text/Image for Section 2 */
}

/* Containers */
.about-image-container,
.about-text-content {
    flex: 1;
    /* 50% width each */
    width: 100%;
}

.about-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 20px;
    /* Slight visual adjustment */
}

/* Image Styling */
.about-split-img {
    width: 100%;
    height: 650px;
    /* Fixed height for vertical aspect */
    object-fit: cover;
    border-radius: 12px;
    /* Soft corners */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.section-subtitle {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 25px;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .about-split-section {
        flex-direction: column !important;
        /* Force stack */
        gap: 30px;
        margin-bottom: 60px;
    }

    .about-split-section.reverse {
        flex-direction: column !important;
        /* Stack normally (Text then Image, or Image then Text?) */
        /* If we want image first on mobile for Section 2 (which is Text, Image in DOM): */
        /* flex-direction: column-reverse !important; would put image first. */
    }

    .about-split-img {
        height: 500px;
        /* Slightly shorter on mobile but still vertical */
        max-height: 70vh;
    }
}

/* --- Extracted Inline Styles (Lint Fixes) --- */


.mobile-member-link {
    color: var(--color-primary) !important;
    font-weight: 600 !important;
}

.service-detail-content.wide {
    max-width: 1200px;
    padding: 40px 20px;
}

.cta-actions-container {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Bulk Cleanup Utility Classes --- */
.text-center-large {
    text-align: center;
    margin-top: 80px;
    font-size: 2rem;
}

.testimonial-author {
    text-align: right;
    font-weight: 600;
    margin-top: 10px;
}

.footer-credits {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 10px;
    letter-spacing: 1px;
}

.admin-panel-container {
    display: none;
    max-width: 900px;
    margin: 0 auto 60px;
}

.member-profile-panel {
    max-width: 980px;
    margin: 0 auto 36px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(139, 88, 76, 0.16);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(59, 49, 36, 0.08);
}

.member-profile-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 24px;
}

.member-profile-heading h2 {
    margin: 6px 0 0;
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 2.6vw, 2.55rem);
    font-weight: 500;
}

.member-profile-heading p {
    max-width: 360px;
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.member-profile-heading-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.member-profile-close-button {
    min-height: 36px;
    padding: 0 16px !important;
}

.member-profile-close-button svg {
    width: 16px;
    height: 16px;
}

.member-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: 18px;
    align-items: start;
}

.member-profile-card {
    background: #fff;
    border: 1px solid rgba(139, 88, 76, 0.14);
    border-radius: 12px;
    padding: 22px;
}

.profile-photo-zone {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(139, 88, 76, 0.12);
}

.profile-photo-preview {
    width: 132px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(126, 137, 79, 0.18), rgba(195, 139, 125, 0.2));
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 600;
    border: 4px solid #fff;
    box-shadow: 0 10px 26px rgba(59, 49, 36, 0.14);
    cursor: grab;
    touch-action: none;
    user-select: none;
    position: relative;
}

.profile-photo-preview img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--profile-photo-width, 100%);
    height: var(--profile-photo-height, 100%);
    object-fit: cover;
    transform: translate(calc(-50% + var(--profile-photo-offset-x, 0px)), calc(-50% + var(--profile-photo-offset-y, 0px)));
    pointer-events: none;
    max-width: none;
}

.profile-photo-preview.is-dragging {
    cursor: grabbing;
}

.profile-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.profile-photo-actions small {
    flex-basis: 100%;
    color: var(--color-text-light);
    font-size: 0.78rem;
}

.profile-photo-controls {
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(139, 88, 76, 0.12);
}

.profile-photo-controls label {
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-photo-controls input[type="range"] {
    accent-color: var(--color-primary);
}

.member-profile-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.member-profile-fields .form-group {
    margin-bottom: 0;
}

.profile-status-message {
    min-height: 22px;
    margin: 16px 0 12px;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.profile-status-message.is-error {
    color: #b04132;
}

.profile-status-message.is-success {
    color: #667342;
}

.profile-save-button {
    min-width: 180px;
}

.profile-password-card h3 {
    margin: 0 0 18px;
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 500;
}

.profile-password-input {
    position: relative;
}

.profile-password-input .admin-input {
    padding-right: 44px;
    width: 100%;
}

.profile-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--color-primary);
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.78;
}

.profile-password-toggle:hover {
    opacity: 1;
}

.member-profile-header-link {
    position: absolute;
    right: 70px;
    top: 75%;
    transform: translateY(-50%);
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.member-profile-header-link:hover {
    text-decoration: none;
}

.member-profile-header-link .header-welcome-msg {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    display: inline-block;
}

.member-profile-avatar-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.14);
    color: currentColor;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease;
    flex: 0 0 auto;
    margin: 0;
    position: relative;
}

.member-profile-header-link:hover .member-profile-avatar-link {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.22);
}

.member-profile-name-link {
    cursor: pointer;
}

.member-profile-header-link:hover .member-profile-name-link {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.member-profile-header-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 999px;
}

.member-profile-avatar-link img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--member-avatar-width, 100%);
    height: var(--member-avatar-height, 100%);
    object-fit: cover;
    transform: translate(calc(-50% + var(--member-avatar-offset-x, 0px)), calc(-50% + var(--member-avatar-offset-y, 0px)));
    max-width: none;
}

.member-profile-avatar-link svg {
    width: 20px;
    height: 20px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 820px) {
    .member-profile-panel {
        padding: 20px;
    }

    .member-profile-heading,
    .member-profile-layout,
    .profile-photo-zone,
    .member-profile-fields {
        grid-template-columns: 1fr;
    }

    .member-profile-heading {
        align-items: flex-start;
    }

    .member-profile-heading-actions {
        align-items: flex-start;
    }

    .profile-photo-zone {
        justify-items: center;
        text-align: center;
    }

    .profile-photo-actions {
        justify-content: center;
    }
}

.admin-panel-title {
    color: var(--color-primary);
    margin-bottom: 30px;
    text-align: center;
}

.admin-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
}

.admin-grid-layout > * {
    min-width: 0;
}

.admin-section-title {
    font-family: var(--font-serif);
    margin-bottom: 15px;
}

.form-group-row {
    display: flex;
    gap: 10px;
}

.form-group-half {
    flex: 1;
}

.admin-toggle-btn {
    display: none;
    margin: 20px auto 0;
    background-color: #333;
    color: white;
}

.user-name-display {
    margin-right: 15px;
    font-weight: 500;
}

/* --- Theme Page Utilities --- */
.btn-back-dashboard {
    padding: 8px 16px !important;
    font-size: 0.8em !important;
}

.meditation-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.footer-margin-top {
    margin-top: 60px;
}

/* Auth Page Utilities */
.password-wrapper {
    position: relative;
}

.password-input {
    padding-right: 40px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.auth-small-text {
    font-size: 0.6rem;
    opacity: 0.5;
    display: block;
    margin-top: 15px;
    letter-spacing: 1px;
}

/* Admin Panel Utilities */
.admin-icon {
    margin-right: 10px;
    width: 18px;
}

.admin-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.members-header-flex {
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.members-actions-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.members-management-shell {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.members-view-toolbar {
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.members-view-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    border: 1px solid #e2d8cf;
    border-radius: 999px;
    background: #f7f3ee;
}

.members-view-tabs button {
    border: 0;
    border-radius: 999px;
    padding: 6px 12px;
    background: transparent;
    color: #6d635c;
    cursor: pointer;
    font: 600 11px Montserrat, sans-serif;
}

.members-view-tabs button.active {
    background: #8a914f;
    color: #fff;
    box-shadow: 0 2px 6px rgba(73, 63, 57, 0.15);
}

.members-table-tools {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 10px;
    flex-wrap: wrap;
}

.members-status-guide {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #6d635c;
    font-size: 11px;
    flex: 0 0 auto;
    margin-bottom: 8px;
}

.members-status-guide span {
    padding: 4px 8px;
    border: 1px solid #e6ddd4;
    border-radius: 5px;
    background: #fbf8f3;
}

.members-status-guide strong {
    color: #493f39;
    margin-right: 3px;
}

.members-sort-control {
    display: flex;
    gap: 6px;
    align-items: center;
    color: #5d5149;
    font-size: 11px;
    white-space: nowrap;
}

.members-sort-control select {
    padding: 4px 7px;
    border: 1px solid #dfd3c8;
    border-radius: 5px;
    background: #fffdf9;
    color: #493f39;
    font: inherit;
}

.member-insights-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
    flex: 0 0 auto;
}

.members-table-viewport {
    flex: 1 1 auto;
    min-height: 0;
    overflow: scroll;
    border: 1px solid #ebe3dc;
    border-radius: 8px 8px 0 0;
    background: #fff;
    scrollbar-gutter: stable both-edges;
}

.members-management-table {
    width: 100%;
    border-collapse: collapse;
    color: #30332f;
    font-size: 11px;
}

.members-management-table.is-quick {
    min-width: 820px;
}

.members-management-table.is-analysis {
    min-width: 1320px;
}

.members-management-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 8px 7px;
    border-bottom: 2px solid #ddd5ce;
    background: #f5f3f0;
    color: #554b45;
    text-align: left;
    white-space: nowrap;
}

.members-management-table td {
    padding: 8px 7px;
    border-bottom: 1px solid #eee7e1;
    vertical-align: top;
}

.member-row.is-admin {
    background: #f0f4ff;
}

.member-row.is-pending {
    background: #fff8e8;
}

.member-row.is-active {
    background: #f0fff4;
}

.member-row.is-blocked {
    background: #fff5f5;
}

.member-row.is-archived {
    background: #f4f1ee;
}

.member-name-cell {
    min-width: 105px;
    font-weight: 700;
}

.member-email-cell {
    max-width: 180px;
    min-width: 145px;
    color: #625a55;
    overflow-wrap: anywhere;
}

.member-payment-input {
    box-sizing: border-box;
    border: 1px solid #d9d0c8;
    border-radius: 5px;
    padding: 4px 6px;
    background: #fffdf9;
    color: #30332f;
    font: 10px Montserrat, sans-serif;
}

.member-payment-date {
    width: 118px;
}

.member-payment-value {
    width: 70px;
}

.member-analysis-payment {
    display: grid;
    gap: 5px;
}

.member-status-badge {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.member-status-badge.is-admin {
    background: #e4e9ff;
    color: #3949ab;
}

.member-status-badge.is-pending {
    background: #fff0c7;
    color: #9b5700;
}

.member-status-badge.is-active {
    background: #dff4e4;
    color: #2e7d32;
}

.member-status-badge.is-blocked {
    background: #ffe0e0;
    color: #b3261e;
}

.member-status-badge.is-archived {
    background: #e8e2dc;
    color: #665c55;
}

.member-action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    min-width: 130px;
}

.member-action {
    border: 1px solid #cfc5bc;
    border-radius: 5px;
    padding: 4px 7px;
    background: #fffdf9;
    color: #554b45;
    cursor: pointer;
    font: 600 10px Montserrat, sans-serif;
}

.member-action-activate {
    border-color: #a5d6a7;
    background: #e8f5e9;
    color: #2e7d32;
}

.member-action-block {
    border-color: #efb0ad;
    background: #fff5f5;
    color: #b3261e;
}

.member-protected-label {
    color: #777;
    font-size: 10px;
    font-style: italic;
}

.member-analysis-profile {
    min-width: 240px;
}

.member-analysis-profile > div {
    margin-bottom: 4px;
}

.member-next-step-cell {
    min-width: 190px;
    max-width: 260px;
}

.members-empty-row {
    padding: 28px !important;
    color: #8a817b;
    text-align: center;
}

.members-fixed-footer {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 7px 10px;
    border: 1px solid #ebe3dc;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #fbf8f3;
    color: #786f69;
    font-size: 10px;
}

.members-fixed-footer .is-pending {
    color: #9b5700;
}

.members-fixed-footer .is-active {
    color: #2e7d32;
}

.members-fixed-footer .is-blocked {
    color: #b3261e;
}

.members-fixed-footer .is-archived {
    color: #665c55;
}

.member-insight-card {
    padding: 12px;
    border: 1px solid #e6ddd4;
    border-radius: 10px;
    background: #fffdf9;
    color: #5d5149;
    box-shadow: 0 6px 18px rgba(59, 49, 36, 0.05);
}

.member-insight-label {
    display: block;
    margin-bottom: 7px;
    color: #8f6559;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.member-insight-pill,
.member-followup-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 4px 4px 0;
    padding: 3px 7px;
    border-radius: 999px;
    background: #f4eee8;
    color: #5d5149;
    font-size: 10px;
    line-height: 1.3;
}

.member-insight-pill strong {
    color: #8f6559;
}

.member-followup-summary {
    display: grid;
    gap: 5px;
}

.member-next-step {
    margin-top: 4px;
    padding: 5px 7px;
    border-left: 2px solid #bf897f;
    background: rgba(191, 137, 127, 0.08);
    line-height: 1.35;
}

.member-followup-toggle {
    margin-top: 7px;
    border: 0;
    background: transparent;
    color: #8f6559;
    cursor: pointer;
    font-weight: 700;
    font-size: 10px;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.member-followup-row td {
    padding: 12px 14px 16px;
    background: rgba(245, 255, 247, 0.96);
    border-bottom: 1px solid #e6ddd4;
}

.member-followup-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(191, 137, 127, 0.28);
    border-radius: 10px;
    background: rgba(245, 255, 247, 0.98);
    box-shadow: 0 10px 24px rgba(59, 49, 36, 0.08);
}

.member-followup-fields label {
    display: grid;
    gap: 3px;
    color: #6d635c;
    font-size: 10px;
    font-weight: 700;
}

.member-followup-fields input,
.member-followup-fields textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dfd3c8;
    border-radius: 6px;
    padding: 5px 7px;
    background: #fffdf9;
    color: #493f39;
    font: 11px Montserrat, sans-serif;
}

.member-followup-fields input[type="date"] {
    min-width: 0;
    padding-right: 4px;
}

.member-followup-fields button {
    align-self: end;
}

.member-history summary {
    color: #8f6559;
    cursor: pointer;
    white-space: nowrap;
}

.member-history div {
    display: grid;
    gap: 3px;
    margin-top: 5px;
    min-width: 112px;
}

.member-history span {
    display: block;
    line-height: 1.35;
}

.member-history-empty {
    color: #aaa;
}

.cms-form-cancel-btn {
    margin: 0;
}

.cms-inline-form-actions,
.admin-action-bar.cms-inline-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.cms-inline-form-actions > button {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    justify-content: center;
}

.cms-inline-form-actions:has(> button.hidden:not([style*="display"])) > button[type="submit"] {
    grid-column: 1 / -1;
}

.cms-inline-form-actions > button:not(.hidden) {
    grid-column: auto;
}

#review-form .cms-inline-form-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

#review-form .cms-inline-form-actions > button:not(.hidden) {
    grid-column: auto !important;
    width: 100% !important;
}

#review-form .cms-inline-form-actions > #review-cancel-btn.hidden {
    display: none !important;
}

#review-form .cms-inline-form-actions:has(#review-cancel-btn.hidden) > button[type="submit"] {
    grid-column: 1 / -1 !important;
}

@media (max-width: 520px) {
    .cms-inline-form-actions {
        grid-template-columns: 1fr;
    }

    .cms-inline-form-actions > button[type="submit"] {
        grid-row: 1;
    }
}

.access-mode-toggle-btn {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

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

    .member-followup-fields {
        grid-template-columns: 1fr;
    }

    .members-table-tools,
    .members-sort-control {
        align-items: stretch;
    }

    #admin-members-list.scrollable-list-500 {
        height: min(540px, 72vh);
        min-height: 400px;
    }

    .members-view-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .members-view-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .members-fixed-footer {
        justify-content: flex-start;
    }
}

.admin-list-container {
    border-left: 1px solid #eee;
    padding-left: 40px;
}

.meditations-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.meditation-form-header,
.meditation-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.meditation-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.meditation-form-actions > button {
    width: 100%;
}

.meditation-form-actions > .hidden + #med-submit-btn {
    grid-column: 1 / -1;
}

.meditation-list-header h3 {
    margin: 0;
}

.meditation-new-theme-note {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(128, 134, 79, 0.32);
    border-left: 3px solid var(--color-primary);
    border-radius: 7px;
    background: rgba(128, 134, 79, 0.08);
    color: #5d5149;
    font-size: 12px;
    line-height: 1.5;
}

.meditation-new-theme-note strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 2px;
}

#card-meditations .admin-list-container {
    border-left: 0;
    padding-left: 0;
    background: #fffdf8;
    border: 1px solid rgba(191, 137, 127, 0.22);
    border-radius: 10px;
    padding: 18px;
}

.meditation-resource-group {
    background: #ffffff;
    border: 1px solid rgba(191, 137, 127, 0.22);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.meditation-resource-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    background: #f7f2e0;
    border-bottom: 1px solid rgba(191, 137, 127, 0.22);
}

.meditation-resource-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 3px;
}

.meditation-resource-group-header h3 {
    margin: 0;
    color: var(--color-primary-dark);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.1;
}

.meditation-resource-count {
    flex: 0 0 auto;
    border: 1px solid rgba(128, 134, 79, 0.35);
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
    background: #fffdf8;
}

.meditation-resource-group-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.meditation-resource-list {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.meditation-resource-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    background: #ffffff;
    padding: 10px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.meditation-resource-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.meditation-resource-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(128, 134, 79, 0.12);
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meditation-resource-item h4 {
    margin: 0;
    color: #4b4a43;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
}

.meditation-resource-item p {
    margin: 3px 0 0;
    color: #888;
    font-size: 0.78rem;
}

.meditation-resource-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.admin-textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    resize: vertical;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 8px;
}

.cms-rich-wrapper {
    border: 1px solid rgba(75, 74, 67, 0.18);
    border-radius: 8px;
    background: #fffdf7;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    min-width: 0;
}

.cms-tinymce-preview {
    min-height: 40px;
    max-height: 112px;
    overflow: auto;
    padding: 8px 10px;
    border: 1px solid #c8c2b7;
    border-radius: 8px;
    background: #faf8f2;
    color: #30332f;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    cursor: text;
    box-sizing: border-box;
}

.cms-tinymce-preview * {
    color: inherit !important;
    background: transparent !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    text-align: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.cms-tinymce-preview h1,
.cms-tinymce-preview h2,
.cms-tinymce-preview h3,
.cms-tinymce-preview h4,
.cms-tinymce-preview h5,
.cms-tinymce-preview h6 {
    margin: 0 0 0.35em;
}

.cms-tinymce-preview:focus,
.cms-tinymce-preview:hover {
    border-color: #8a8f64;
    box-shadow: inset 0 0 0 1px rgba(128, 134, 79, 0.2);
    outline: none;
}

.cms-tinymce-preview p {
    margin: 0 0 0.7em;
}

.cms-tinymce-preview--compact {
    min-height: 34px;
    max-height: 64px;
    padding: 6px 9px;
}

.cms-tinymce-preview--compact p {
    margin: 0;
}

.tox-tinymce .tox-editor-header {
    display: block !important;
}

.tox-tinymce {
    max-width: 100%;
    width: 100% !important;
    min-width: 0 !important;
}

.tox-tinymce .tox-edit-area,
.tox-tinymce .tox-edit-area__iframe {
    max-width: 100%;
    overflow-x: hidden;
}

.tox-tinymce .tox-editor-container,
.tox-tinymce .tox-editor-header {
    min-width: 0 !important;
    max-width: 100%;
}

.tox-tinymce .tox-menubar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.tox-tinymce .tox-toolbar-overlord {
    display: block !important;
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    overflow-x: hidden;
}

.tox-tinymce .tox-toolbar,
.tox-tinymce .tox-toolbar__primary {
    flex-wrap: wrap;
    overflow-x: hidden;
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
}

.cms-tinymce-compact-source + .tox-tinymce {
    min-height: 118px;
}

.cms-tinymce-compact-source + .tox-tinymce .tox-toolbar,
.cms-tinymce-compact-source + .tox-tinymce .tox-toolbar__primary {
    flex-wrap: nowrap;
    overflow-x: auto;
}

.cms-tinymce-compact-source + .tox-tinymce .tox-toolbar__group {
    padding: 0 1px;
}

.cms-tinymce-compact-source + .tox-tinymce .tox-tbtn {
    display: inline-flex !important;
    min-width: 30px !important;
    width: 30px !important;
    height: 28px !important;
    margin: 1px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    overflow: visible !important;
}

.cms-tinymce-compact-source + .tox-tinymce .tox-tbtn__select-chevron {
    width: 12px;
}

.cms-tinymce-compact-source + .tox-tinymce .tox-tbtn__select-chevron svg {
    width: 10px;
    height: 10px;
}

.cms-tinymce-compact-source + .tox-tinymce .tox-tbtn__select-label,
.cms-tinymce-compact-source + .tox-tinymce .tox-tbtn__select-chevron,
.cms-tinymce-compact-source + .tox-tinymce .tox-tbtn__icon-wrap {
    line-height: 1;
}

.cms-tinymce-compact-source + .tox-tinymce .tox-icon,
.cms-tinymce-compact-source + .tox-tinymce .tox-tbtn__icon-wrap {
    display: inline-flex !important;
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    transform: none !important;
}

.cms-tinymce-compact-source + .tox-tinymce .tox-tbtn--select {
    width: auto !important;
    min-width: 56px !important;
    max-width: 86px !important;
    justify-content: space-between !important;
    padding: 0 4px !important;
}

.cms-tinymce-compact-source + .tox-tinymce .tox-tbtn__select-label {
    max-width: 56px;
    font-size: 10px;
    line-height: 1;
}

.cms-tinymce-compact-source + .tox-tinymce .tox-tbtn svg {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 auto !important;
    overflow: visible !important;
    transform: scale(0.78) !important;
}

.cms-tinymce-compact-source + .tox-tinymce .tox-tbtn svg path {
    transform-origin: center;
    vector-effect: non-scaling-stroke;
}

.cms-tinymce-compact-source + .tox-tinymce .tox-toolbar__overflow {
    padding: 2px;
}

.cms-empty-preview {
    color: rgba(75, 74, 67, 0.55);
}

.cms-rich-toolbar {
    display: none;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    padding: 6px;
    background: #f7f2e0;
    border-bottom: 1px solid rgba(75, 74, 67, 0.12);
}

.cms-rich-toolbar--compact {
    flex-wrap: nowrap;
    gap: 3px;
    overflow-x: auto;
    padding: 4px;
}

.cms-rich-wrapper.is-focused .cms-rich-toolbar,
.cms-rich-wrapper.is-html-mode .cms-rich-toolbar,
.cms-rich-wrapper.is-floating-editor .cms-rich-toolbar {
    display: flex;
}

.cms-rich-placeholder {
    max-width: 100%;
}

.cms-rich-close {
    display: none;
}

.cms-rich-floating-header {
    display: none;
}

.cms-rich-wrapper.is-floating-editor {
    position: fixed;
    left: 50%;
    top: 84px;
    z-index: 10020;
    width: min(1120px, calc(100vw - 56px));
    max-width: calc(100vw - 56px);
    max-height: calc(100vh - 118px);
    transform: translateX(-50%);
    box-shadow: 0 22px 70px rgba(42, 39, 34, 0.35);
}

.cms-rich-wrapper.is-floating-editor .cms-rich-floating-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    background: #f7f2e0;
    border-bottom: 1px solid rgba(75, 74, 67, 0.12);
}

.cms-rich-wrapper.is-floating-editor .cms-rich-floating-title {
    min-width: 0;
    overflow: hidden;
    color: #4b4a43;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-rich-wrapper.is-floating-editor .cms-rich-close {
    display: inline-flex;
    flex: 0 0 auto;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(75, 74, 67, 0.22);
    border-radius: 999px;
    background: #ffffff;
    color: #4b4a43;
    font-size: 11px;
    padding: 0 12px;
    cursor: pointer;
}

.cms-rich-wrapper.is-floating-editor .cms-rich-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
}

.cms-rich-wrapper.is-floating-editor .cms-rich-editor,
.cms-rich-wrapper.is-floating-editor.is-html-mode .cms-rich-source {
    min-height: 280px;
    max-height: calc(100vh - 200px);
}

.cms-rich-wrapper.is-floating-editor.cms-rich-wrapper--preview .cms-rich-editor {
    background-color: var(--cms-preview-bg, #e1d7ce) !important;
    background-image: var(--cms-preview-bg-image, none) !important;
    background-size: cover !important;
    background-position: center !important;
    color: var(--cms-preview-color, #5c5540) !important;
}

.cms-rich-toolbar button {
    min-width: 28px;
    height: 28px;
    border: 1px solid rgba(75, 74, 67, 0.18);
    border-radius: 6px;
    background: #ffffff;
    color: #4b4a43;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
}

.cms-rich-toolbar select {
    height: 28px;
    max-width: 78px;
    border: 1px solid rgba(75, 74, 67, 0.18);
    border-radius: 6px;
    background: #ffffff;
    color: #4b4a43;
    font-size: 11px;
    padding: 0 4px;
}

.cms-rich-toolbar--compact button {
    min-width: 26px;
    height: 26px;
}

.cms-rich-toolbar--compact select {
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
    height: 26px;
    max-width: 68px;
    padding-right: 4px;
}

.cms-rich-toolbar--compact select[data-font-size] {
    max-width: 62px;
}

.cms-rich-toolbar--compact select[data-font-family] {
    max-width: 72px;
}

.cms-rich-toolbar--compact select[data-color] {
    max-width: 56px;
}

.cms-rich-toolbar button:hover,
.cms-rich-toolbar button.is-active,
.cms-rich-toolbar select.is-active {
    background: #80864f;
    border-color: #80864f;
    color: #ffffff;
}

.cms-rich-divider {
    width: 1px;
    height: 20px;
    margin: 0 3px;
    background: rgba(75, 74, 67, 0.18);
}

.cms-rich-editor {
    min-height: 118px;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    background: #e1d7ce;
    color: #5c5540;
    font-size: 13px;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    overflow-x: hidden;
    overflow-y: auto;
    overflow-wrap: anywhere;
    word-break: normal;
}

.cms-rich-wrapper--inline .cms-rich-editor {
    min-height: 38px;
    max-height: 90px;
    padding: 8px 10px;
}

.cms-rich-wrapper--inline.is-floating-editor .cms-rich-editor,
.cms-rich-wrapper--inline.is-floating-editor.is-html-mode .cms-rich-source {
    min-height: 140px;
}

.cms-rich-wrapper--dark-preview .cms-rich-editor {
    background: #898d78;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
}

.cms-rich-wrapper--dark-preview .cms-rich-editor p,
.cms-rich-wrapper--dark-preview .cms-rich-editor li,
.cms-rich-wrapper--dark-preview .cms-rich-editor span,
.cms-rich-wrapper--dark-preview .cms-rich-editor strong,
.cms-rich-wrapper--dark-preview .cms-rich-editor em,
.cms-rich-wrapper--dark-preview .cms-rich-editor u {
    font-family: var(--font-body);
    font-size: 1rem;
}

.cms-rich-wrapper--dark-preview .cms-rich-editor p,
.cms-rich-wrapper--dark-preview .cms-rich-editor li {
    line-height: 1.8;
}

.cms-rich-wrapper--dark-preview .cms-rich-editor h2,
.cms-rich-wrapper--dark-preview .cms-rich-editor h3 {
    color: #ffffff;
}

.cms-rich-editor:focus {
    box-shadow: inset 0 0 0 2px rgba(128, 134, 79, 0.18);
}

.cms-rich-editor p {
    margin: 0 0 0.75em;
}

.cms-rich-editor ul,
.cms-rich-editor ol {
    margin: 0 0 0.75em 1.4em;
    padding-left: 1.2em;
}

.cms-rich-editor blockquote {
    margin: 0 0 0.75em 1.5em;
    padding-left: 0.75em;
    border-left: 2px solid currentColor;
}

.cms-rich-editor [style*="margin-left"],
.premium-desc [style*="margin-left"] {
    display: block;
    text-align: left;
}

.cms-rich-editor p:last-child,
.cms-rich-editor ul:last-child,
.cms-rich-editor ol:last-child {
    margin-bottom: 0;
}

.cms-rich-editor h2,
.cms-rich-editor h3 {
    margin: 0 0 0.6em;
    font-family: var(--font-serif);
    color: #4b4a43;
}

.cms-rich-wrapper--preview .cms-rich-editor,
.cms-rich-wrapper--preview .cms-rich-editor p,
.cms-rich-wrapper--preview .cms-rich-editor li,
.cms-rich-wrapper--preview .cms-rich-editor blockquote {
    color: inherit;
}

.cms-rich-wrapper--preview .cms-rich-editor h2,
.cms-rich-wrapper--preview .cms-rich-editor h3 {
    color: var(--cms-preview-heading-color, currentColor);
}

.cms-rich-source {
    display: none !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    resize: vertical;
    border-radius: 0 0 8px 8px;
}

.cms-rich-wrapper.is-html-mode .cms-rich-editor {
    display: none;
}

.cms-rich-wrapper.is-html-mode .cms-rich-source {
    display: block !important;
    min-height: 140px;
    max-width: 100%;
    width: 100% !important;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    resize: vertical;
    overflow-x: hidden;
    overflow-wrap: anywhere;
}

.cms-rich-wrapper.is-html-mode .cms-rich-source:focus {
    outline: 2px solid rgba(128, 134, 79, 0.26);
    outline-offset: -2px;
}

.bg-whitesmoke {
    background: whitesmoke;
}

.color-input {
    width: 50px;
    height: 35px;
    padding: 0;
    border: none;
    cursor: pointer;
}

.color-text-input {
    width: 80px;
    text-transform: uppercase;
}

.admin-input-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: whitesmoke;
}

.admin-help-text {
    color: #666;
}

.admin-action-bar {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    background: white;
    padding: 15px;
    position: sticky;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

/* More Admin Utils to remove inline styles */
.mb-40 {
    margin-bottom: 40px;
}

.mobile-member-link-block {
    display: block;
    padding: 10px 0;
}

.flex-align-center-gap-10 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flex-gap-20-center {
    display: flex;
    gap: 20px;
    align-items: center;
}

.bg-whitesmoke-rounded {
    background: whitesmoke;
    padding: 10px;
    border-radius: 8px;
}

.w-18-h-18 {
    width: 18px;
    height: 18px;
}

.margin-0 {
    margin: 0 !important;
}

.admin-file-url-input {
    margin-bottom: 5px;
    background: whitesmoke;
    border: 1px solid #ddd;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    display: none;
}

/* ─── File Preview Card ─────────────────────────────── */
.file-preview-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 8px;
    transition: border-color 0.2s, background 0.2s;
}

.file-preview-box.pending-delete {
    background: #fff5f5;
    border-color: #f28b82;
    opacity: 0.8;
}

.file-preview-media {
    flex-shrink: 0;
}

.file-preview-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

.file-preview-icon {
    width: 72px;
    height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    border-radius: 8px;
    color: #666;
}

.file-preview-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-preview-info .text-truncate {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.file-preview-actions {
    display: flex;
    gap: 6px;
}

.file-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1.5px solid #ccc;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    transition: all 0.15s;
}

.file-preview-btn.keep.active {
    border-color: #4caf50;
    background: #e8f5e9;
    color: #2e7d32;
}

.file-preview-btn.remove.active {
    border-color: #d32f2f;
    background: #ffebee;
    color: #c62828;
}

.file-preview-btn:hover {
    filter: brightness(0.95);
}

/* Booking / Content Page Utilities */
.content-padded {
    padding-top: 120px;
    min-height: 60vh;
}

.booking-text {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #666;
}

.booking-intro {
    max-width: 900px;
    margin: 0 auto 36px;
    text-align: left;
}

.booking-intro-copy {
    max-width: 760px;
    margin: 0 auto 24px;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.booking-intro-copy p + p,
.booking-intro-copy div + div {
    margin-top: 14px;
}

.booking-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.booking-info-grid article {
    background: rgba(247, 242, 224, 0.94);
    border: 1px solid rgba(128, 134, 79, 0.18);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(59, 49, 36, 0.06);
}

.booking-info-grid h2 {
    margin-bottom: 8px;
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
}

.booking-info-grid p,
.booking-info-grid .booking-card-text {
    color: #5f6243;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.65;
}

.booking-text p,
.booking-intro-copy p,
.booking-card-text p {
    margin: 0;
}

.booking-text p + p,
.booking-card-text p + p {
    margin-top: 10px;
}

.btn-with-icon {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
}

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

    .booking-intro {
        margin-bottom: 28px;
    }
}

/* --- New Premium Service Carousel --- */
.services-carousel-wrapper {
    position: relative;
    /* Reduced width as requested */
    width: 90vw;
    margin-left: calc(-45vw + 50%);
    /* Centered */
    overflow: hidden;
    padding: 0 5%;
    /* Responsive padding for arrows */
}

.services-carousel {
    display: block;
    overflow: hidden;
    scroll-behavior: auto !important;
    padding: 0 30px 50px 30px;
    touch-action: pan-y;
    /* Increased bottom padding */
    /* Added 30px padding Left/Right for edge gaps */
    -ms-overflow-style: none;

    /* IE and Edge handled by -ms-overflow-style above */
}

.services-carousel-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 30px;
    align-items: stretch;
    will-change: transform;
}

@supports (scrollbar-width: none) {
    .services-carousel {
        scrollbar-width: none;
        /* Firefox */
    }
}

.services-carousel::-webkit-scrollbar {
    display: none;
}

.services-carousel.active {
    cursor: grabbing;
}

.services-carousel.is-sliding {
    pointer-events: none;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
    will-change: transform;
}

/* Navigation Arrows */
/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.2s;
    opacity: 0.8;
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.carousel-arrow.prev {
    left: 2%;
}

.carousel-arrow.next {
    right: 2%;
}

/* Snap properties */
.services-carousel {
    scroll-snap-type: none;
}

.premium-card {
    scroll-snap-align: center;
    flex: 0 0 calc((100% - 60px) / 3) !important;
    width: auto !important;
    min-width: 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .carousel-arrow {
        display: none !important;
    }

    .services-carousel-wrapper {
        width: 100vw;
        margin-left: -50vw;
        left: 50%;
        padding: 0;
        overflow: hidden;
    }

    .services-carousel {
        padding: 0 30px 50px 30px;
    }

    .services-carousel-track {
        grid-auto-columns: 100%;
        gap: 30px;
    }

    .premium-card {
        /* On mobile, show fewer cards? Or allow them to snap center */
        /* Currently it's flexible, but let's ensure snap aligns nicely */
        scroll-snap-align: center;
        flex-basis: 100% !important;
    }
}

/* Premium Card Design */
.premium-card {
    /* Dynamic Layout handled by Grid Container now */
    height: 100%;
    /* Fill Grid Cell Height */
    width: 100%;
    /* Fill Grid Cell Width */
    display: flex;
    flex-direction: column;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-5px);
}

/* Loading Placeholder */
.loading-placeholder {
    color: var(--color-text-light);
    min-width: 300px;
    width: 100%;
}

/* Top Half: Visual */
.premium-card-top {
    position: relative;
    height: 350px;
    /* Square-ish top */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* Overlay Removed: styles moved to JS multiple backgrounds */

.premium-card-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
}

.premium-title {
    font-family: var(--font-serif);
    /* e.g., Cormorant */
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    line-height: 1.1;
}

.premium-subtitle {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.premium-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.75rem;
    opacity: 0.9;
    flex-wrap: wrap;
}

/* --- CMS Service Editorial Editor --- */
.service-editorial-card {
    width: 100%;
}

.service-edit-toolbar {
    position: sticky;
    top: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(191, 137, 127, 0.28);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    margin-bottom: 18px;
    padding: 14px 16px;
}

.service-edit-toolbar strong {
    color: #222;
    display: block;
    font-size: 1rem;
    margin-top: 3px;
}

.service-edit-toolbar p {
    color: #777;
    font-size: 0.74rem;
    line-height: 1.4;
    margin: 4px 0 0;
}

#panel-services {
    --service-admin-border: #e9dfd3;
    --service-admin-soft: #fbf8ef;
    --service-admin-muted: #f6f1e8;
}

#panel-services .admin-panel-content {
    max-width: 100%;
}

#panel-services .admin-grid-2-col,
#panel-services .admin-grid-3-col,
#panel-services .service-editorial-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
}

#panel-services .admin-grid-2-col.mb-20 {
    margin-bottom: 0 !important;
}

#panel-services .mb-20,
#panel-services .mt-20,
#panel-services .mb-15,
#panel-services .mt-15 {
    margin-bottom: 6px !important;
    margin-top: 0 !important;
}

#panel-services .admin-col-card:nth-child(3) {
    grid-column: auto !important;
}

#panel-services .admin-col-card,
#panel-services .service-repeater-panel,
#panel-services .service-editorial-style {
    background: #fffdf8;
    border: 1px solid var(--service-admin-border);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(72, 57, 44, 0.06);
}

#panel-services .admin-col-card {
    margin: 0 0 6px;
    padding: 0;
    overflow: hidden;
}

#panel-services .admin-col-card + .admin-col-card,
#panel-services .admin-grid-2-col + .admin-grid-2-col,
#panel-services .admin-grid-2-col + .admin-col-card,
#panel-services .admin-col-card + .admin-grid-2-col,
#panel-services .service-editorial-card + .admin-col-card {
    margin-top: 0 !important;
}

#panel-services .admin-col-header {
    align-items: center;
    background: linear-gradient(90deg, #fff8ea, #ffffff);
    border-bottom: 1px solid var(--service-admin-border);
    color: #9a6a61;
    display: flex;
    font-size: 1.05rem;
    gap: 12px;
    justify-content: space-between;
    margin: 0;
    padding: 10px 14px;
}

#panel-services .admin-col-header-clickable {
    cursor: pointer;
    user-select: none;
}

#panel-services .admin-col-header-clickable::after {
    color: #9a6a61;
    content: "Fechar";
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
}

#panel-services .admin-col-card.is-collapsed .admin-col-header-clickable::after {
    content: "Abrir";
}

#panel-services .admin-col-header-clickable:focus-visible {
    outline: 2px solid rgba(128, 134, 79, 0.45);
    outline-offset: -4px;
}

#panel-services .admin-collapsible-body {
    padding: 12px;
}

#panel-services .form-group {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(233, 223, 211, 0.72);
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 10px;
}

#panel-services .admin-action-bar {
    align-items: center;
    margin-top: 8px;
}

#panel-services .service-panel-footer-name {
    color: #111;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
}

#panel-services .form-group label {
    color: #263041;
    font-weight: 700;
}

#panel-services textarea,
#panel-services input[type="text"],
#panel-services select {
    max-width: 100%;
}

#panel-services .preview-box-group,
#panel-services .cta-toggle-group {
    background: var(--service-admin-soft);
    border: 1px solid var(--service-admin-border);
    border-radius: 8px;
}

#panel-services .preview-box-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
}

#panel-services .preview-box-item {
    background: #fff;
    border: 1px solid rgba(233, 223, 211, 0.8);
}

#panel-services .service-editorial-style,
#panel-services .service-repeater-panel {
    padding: 12px;
}

#panel-services .tox-tinymce {
    margin-top: 4px;
}

#panel-services .tox .tox-toolbar,
#panel-services .tox .tox-toolbar__primary {
    gap: 2px;
}

#panel-services .service-repeater-list {
    max-height: none;
    overflow: visible;
}

#panel-services .service-repeater-item {
    border-color: var(--service-admin-border);
    box-shadow: 0 4px 12px rgba(72, 57, 44, 0.04);
}

#panel-services .testimonial-scroll-area {
    max-height: 360px;
}

/* --- CMS Members Showcase Editor --- */
.members-showcase-editor {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.members-editor-section {
    background: #fffdf8;
    border: 1px solid #e9dfd3;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(72, 57, 44, 0.05);
    overflow: hidden;
}

.members-editor-section summary {
    align-items: center;
    background: linear-gradient(90deg, #fff8ea, #ffffff);
    color: #9a6a61;
    cursor: pointer;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(170px, 0.42fr) minmax(260px, 1fr) auto;
    list-style: none;
    padding: 10px 14px;
    user-select: none;
}

.members-editor-section summary::-webkit-details-marker {
    display: none;
}

.members-section-title-wrap {
    display: grid;
    gap: 3px;
}

.members-section-title-wrap > span {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
}

.members-section-title-wrap small {
    color: #6f7460;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 400;
}

.members-editor-section summary::after {
    align-self: center;
    color: #9a6a61;
    content: "Abrir";
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: auto;
}

.members-editor-section[open] summary::after {
    content: "Fechar";
}

.members-section-preview {
    position: relative;
    display: block;
    width: min(100%, 360px);
    min-height: 58px;
    justify-self: stretch;
    overflow: hidden;
    border: 1px solid rgba(75, 74, 67, 0.16);
    border-radius: 8px;
    background: #b7b2a6;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    pointer-events: none;
}

.members-section-preview span,
.members-section-preview i,
.members-section-preview b,
.members-section-preview em {
    display: block;
}

.members-section-preview .preview-kicker {
    width: 26%;
    height: 4px;
    margin: 9px 0 0 12px;
    border-radius: 99px;
    background: currentColor;
    opacity: 0.55;
}

.members-section-preview .preview-title {
    width: 48%;
    height: 6px;
    margin: 7px 0 0 12px;
    border-radius: 99px;
    background: currentColor;
    opacity: 0.9;
}

.members-section-preview .preview-title.short {
    width: 34%;
    margin-top: 5px;
}

.members-section-preview .preview-line {
    width: 58%;
    height: 4px;
    margin: 7px 0 0 12px;
    border-radius: 99px;
    background: currentColor;
    opacity: 0.42;
}

.members-section-preview .preview-line.short {
    width: 42%;
    margin-top: 5px;
}

.members-section-preview--hero {
    min-height: 66px;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(74, 78, 50, 0.9), rgba(74, 78, 50, 0.45)),
        linear-gradient(135deg, #80864f 0%, #4b4a43 52%, #c58f84 100%);
}

.members-section-preview--hero .preview-actions {
    display: flex;
    gap: 6px;
    margin: 8px 0 0 12px;
}

.members-section-preview--hero .preview-actions i {
    width: 38px;
    height: 9px;
    border-radius: 999px;
    background: #c58f84;
}

.members-section-preview--hero .preview-actions i + i {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.members-section-preview--inside {
    min-height: 74px;
    background: #b7b2a6;
}

.preview-inside-copy {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 42%;
}

.preview-inside-copy i {
    width: 32%;
    height: 4px;
    margin-bottom: 8px;
    border-radius: 99px;
    background: #8b584c;
}

.preview-inside-copy b {
    width: 86%;
    height: 6px;
    margin-bottom: 4px;
    border-radius: 99px;
    background: #4b4a43;
    opacity: 0.78;
}

.preview-inside-copy em {
    width: 72%;
    height: 4px;
    margin-top: 5px;
    border-radius: 99px;
    background: #4b4a43;
    opacity: 0.48;
}

.preview-inside-list {
    position: absolute;
    right: 16px;
    top: 12px;
    width: 40%;
}

.preview-inside-list i {
    height: 16px;
    border-top: 1px solid rgba(75, 74, 67, 0.25);
}

.preview-inside-list i::before {
    content: "";
    display: block;
    width: 46%;
    height: 4px;
    margin-top: 6px;
    border-radius: 99px;
    background: #8b584c;
}

.preview-redbox {
    position: absolute;
    top: 7px;
    bottom: 7px;
    border: 2px solid #d64040;
    border-radius: 8px;
    box-shadow: 0 0 0 999px rgba(214, 64, 64, 0.04);
}

.members-section-preview--inside-left .preview-redbox {
    left: 7px;
    width: 48%;
}

.members-section-preview--inside-right .preview-redbox {
    right: 7px;
    width: 46%;
}

.members-section-preview--cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-height: 74px;
    padding: 9px;
    background: #f7f2e0;
}

.members-section-preview--cards .preview-card {
    position: relative;
    min-height: 54px;
    padding: 8px 7px;
    border: 1px solid rgba(128, 134, 79, 0.26);
    border-radius: 7px;
    background: #fffdf8;
    box-shadow: 0 10px 22px rgba(75, 74, 67, 0.08);
}

.members-section-preview--cards .preview-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 22px;
    border-radius: 0 0 7px 7px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0), rgba(247, 242, 224, 0.92));
}

.members-section-preview--cards .preview-card i {
    width: 15px;
    height: 15px;
    margin-bottom: 7px;
    border-radius: 50%;
    background: #80864f;
}

.members-section-preview--cards .preview-card b,
.members-section-preview--cards .preview-card em {
    height: 4px;
    border-radius: 99px;
    background: #4b4a43;
}

.members-section-preview--cards .preview-card b {
    width: 78%;
    margin-bottom: 6px;
    opacity: 0.78;
}

.members-section-preview--cards .preview-card em {
    width: 88%;
    margin-bottom: 4px;
    opacity: 0.34;
}

.members-section-preview--access {
    min-height: 74px;
    color: #ffffff;
    background: #80864f;
}

.preview-access-copy {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 38%;
}

.preview-access-copy i,
.preview-access-copy b {
    border-radius: 99px;
    background: #ffffff;
}

.preview-access-copy i {
    width: 38%;
    height: 4px;
    margin-bottom: 8px;
    opacity: 0.76;
}

.preview-access-copy b {
    width: 92%;
    height: 6px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.preview-access-copy b:nth-child(4) {
    width: 68%;
}

.preview-access-steps {
    position: absolute;
    right: 16px;
    top: 10px;
    width: 42%;
}

.preview-access-steps i {
    position: relative;
    height: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.preview-access-steps i::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 9px;
    height: 9px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 50%;
}

.preview-access-steps i::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 8px;
    width: 66%;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.78);
}

.members-section-preview--cta {
    min-height: 66px;
    color: #ffffff;
    text-align: center;
    background: #4b4a43;
}

.members-section-preview--cta .preview-kicker,
.members-section-preview--cta .preview-title {
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
}

.members-section-preview--cta .preview-kicker {
    width: 22%;
}

.members-section-preview--cta .preview-title {
    width: 54%;
    height: 7px;
}

.members-section-preview--cta .preview-title.short {
    width: 38%;
}

.members-section-preview--cta .preview-button {
    width: 42px;
    height: 13px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: #c58f84;
}

.members-editor-body {
    border-top: 1px solid #e9dfd3;
    padding: 12px;
}

.members-editor-note {
    background: rgba(128, 134, 79, 0.1);
    border-left: 3px solid #80864f;
    border-radius: 6px;
    color: #31352b;
    font-size: 0.76rem;
    line-height: 1.5;
    margin-bottom: 10px;
    padding: 8px 10px;
}

.members-editor-grid,
.members-summary-grid,
.members-steps-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
}

.members-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.members-steps-grid {
    grid-template-columns: minmax(0, 1fr);
}

.members-mini-card,
.members-locked-card {
    background: #faf7ee;
    border: 1px solid #e9dfd3;
    border-radius: 8px;
    padding: 10px;
}

.members-mini-card strong {
    color: #6f7460;
    display: block;
    font-size: 0.72rem;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.members-mini-card input,
.members-locked-card input,
.members-locked-card textarea,
.members-steps-grid textarea,
.members-editor-grid input {
    max-width: 100%;
}

.members-showcase-editor input[type="text"] {
    height: 30px;
    min-height: 30px;
    padding: 4px 7px;
}

.members-showcase-editor textarea {
    padding: 7px 8px;
}

.members-showcase-editor .cms-tinymce-preview {
    padding: 8px 9px;
}

.members-showcase-editor .cms-tinymce-preview--compact {
    min-height: 30px;
    max-height: 64px;
    padding: 4px 7px;
    line-height: 1.3;
}

.members-locked-card + .members-locked-card {
    margin-top: 8px;
}

.members-showcase-footer {
    align-items: center;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .members-editor-grid,
    .members-summary-grid {
        grid-template-columns: 1fr;
    }

    .members-editor-section summary {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .members-editor-section summary::after {
        margin-left: 0;
    }

    .members-section-preview {
        width: 100%;
    }
}

.service-active-toggle {
    align-items: center;
    background: #f8f6ef;
    border: 1px solid #ebe4d2;
    border-radius: 8px;
    display: flex !important;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    white-space: nowrap;
}

.service-active-toggle input {
    width: auto;
}

.service-active-toggle span {
    color: #333;
    font-size: 0.76rem;
    font-weight: 600;
}

.admin-service-card-mini {
    position: relative;
}

.admin-service-card-mini.is-hidden-service {
    opacity: 0.62;
}

.service-visibility-badge {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    color: #4f553d;
    font-size: 0.68rem;
    font-weight: 700;
    left: 8px;
    padding: 3px 8px;
    position: absolute;
    top: 8px;
}

.admin-service-card-mini.is-hidden-service .service-visibility-badge {
    color: #9a5d55;
}

.service-edit-mode {
    color: var(--color-primary);
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#service-form .admin-col-header .cta-button.primary {
    display: none !important;
}

#svc-submit-btn {
    display: none !important;
}

.admin-col-card.is-collapsed .admin-collapsible-body {
    display: none;
}

.admin-col-toggle {
    background: transparent;
    border: 0;
    color: #777 !important;
    cursor: pointer;
    font-size: 0.72rem !important;
    padding: 2px 4px !important;
}

.admin-col-toggle:hover {
    color: var(--color-primary) !important;
}

.service-editorial-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
    gap: 20px;
    align-items: start;
}

.service-editorial-style,
.service-repeater-panel {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 14px;
}

.service-repeater-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.service-repeater-item {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 12px;
}

.service-repeater-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.service-repeater-item textarea {
    min-height: 72px;
    resize: vertical;
}

.field-help {
    color: #777;
    font-size: 0.72rem;
    line-height: 1.45;
    margin: 5px 0 0;
}

.field-help code {
    background: #f2eee4;
    border-radius: 4px;
    color: #6f4f48;
    font-size: 0.7rem;
    padding: 1px 4px;
}

.service-repeater-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.memory-admin-gallery-existing {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 8px;
    min-height: 56px;
    padding: 10px;
}

.memory-admin-gallery-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}

.memory-admin-gallery-item {
    background: #fff;
    border: 1px solid #e5e0d5;
    border-radius: 8px;
    overflow: hidden;
    padding: 6px;
}

.memory-admin-gallery-item img {
    aspect-ratio: 1;
    border-radius: 6px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.memory-admin-gallery-item button {
    display: block;
    margin-top: 6px;
    width: 100%;
}

.memory-record-groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.memory-record-group {
    background: #fffdf8;
    border: 1px solid #eadfce;
    border-radius: 8px;
    overflow: hidden;
}

.memory-record-group-header {
    background: #fbf6e8;
    border-bottom: 1px solid #eadfce;
    cursor: pointer;
    display: grid;
    gap: 2px 10px;
    grid-template-columns: 1fr auto auto;
    padding: 10px 12px;
}

@media (max-width: 640px) {
    .meditation-form-header,
    .meditation-list-header,
    .meditation-resource-group-header,
    .meditation-resource-group-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

.memory-record-group-header:focus-visible {
    outline: 2px solid rgba(191, 137, 127, 0.45);
    outline-offset: -2px;
}

.memory-record-eyebrow {
    color: #bf7c72;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.memory-record-group h4 {
    color: #8b584c;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    grid-column: 1;
    margin: 0;
}

.memory-record-count {
    align-self: center;
    color: #777;
    font-size: 0.78rem;
    grid-column: 2;
    grid-row: 1 / span 2;
}

.memory-record-toggle-label {
    align-self: center;
    color: #bf7c72;
    font-size: 0.72rem;
    font-weight: 700;
    grid-column: 3;
    grid-row: 1 / span 2;
}

.memory-record-list {
    display: flex;
    flex-direction: column;
}

.memory-record-group.is-collapsed .memory-record-list {
    display: none;
}

.memory-record-item {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px;
}

.memory-record-item + .memory-record-item {
    border-top: 1px solid #f0e6d7;
}

.memory-record-item.is-hidden {
    opacity: 0.62;
}

.memory-record-item.is-editing {
    background: #fff7df;
    box-shadow: inset 4px 0 0 #bf897f;
}

.memory-record-editing-badge {
    color: #bf897f;
    display: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-left: 8px;
    text-transform: uppercase;
}

.memory-record-item.is-editing .memory-record-editing-badge {
    display: inline;
}

.memory-record-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.memory-record-date {
    color: #1f2937;
    font-size: 0.8rem;
    font-weight: 700;
}

.memory-record-main strong {
    color: #4b4a43;
    font-size: 0.96rem;
    line-height: 1.25;
}

.memory-record-meta {
    color: #777;
    font-size: 0.78rem;
}

.memory-record-meta b {
    color: #bf7c72;
    margin-left: 6px;
}

.memory-record-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.memory-record-actions .btn-delete {
    background: none;
    border: 0;
    color: #a44c43;
    cursor: pointer;
    font-size: 0.82rem;
}

.storage-audit-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 560px;
    overflow-y: auto;
}

.storage-usage-card {
    background: #fff;
    border: 1px solid #e7e1d3;
    border-radius: 8px;
    margin: 0 0 14px;
    padding: 12px 14px;
}

.storage-usage-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.storage-usage-header strong {
    color: #4f553d;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.storage-usage-header span {
    color: #555;
    font-size: 0.78rem;
}

.storage-usage-bar {
    background: #ece7d9;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.storage-usage-bar span {
    background: #80864f;
    border-radius: inherit;
    display: block;
    height: 100%;
    min-width: 0;
    transition: width 220ms ease, background-color 220ms ease;
}

.storage-usage-bar span.is-warning {
    background: #bf897f;
}

.storage-usage-bar span.is-danger {
    background: #b64b44;
}

.storage-audit-item {
    align-items: center;
    background: #fff;
    border: 1px solid #e7e1d3;
    border-left: 4px solid #b7b08a;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    padding: 10px;
}

.storage-audit-item.is-unused {
    border-left-color: #c76f64;
}

.storage-security-summary {
    background: rgba(128, 134, 79, 0.08);
    border: 1px solid rgba(128, 134, 79, 0.24);
    border-radius: 6px;
    color: #333333;
    margin-bottom: 15px;
    padding: 12px 14px;
}

.storage-security-summary.is-warning {
    background: rgba(199, 111, 100, 0.08);
    border-color: rgba(199, 111, 100, 0.34);
}

.storage-security-summary p {
    margin: 6px 0;
}

.storage-security-summary ul {
    margin: 8px 0 0;
    padding-left: 22px;
}

.storage-migrate-button {
    margin-top: 12px;
}

.storage-migrate-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.storage-audit-item.has-reserved-token {
    background: rgba(199, 111, 100, 0.06);
    border-left-color: #c76f64;
}

.storage-audit-item.has-reserved-token .storage-audit-info strong {
    color: #a55249;
}

.storage-audit-preview {
    align-items: center;
    background: #f4f0e6;
    border-radius: 6px;
    display: flex;
    height: 64px;
    justify-content: center;
    overflow: hidden;
    width: 64px;
}

.storage-audit-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.storage-audit-info {
    min-width: 0;
}

.storage-audit-info strong {
    color: #4f553d;
    display: block;
    font-size: 0.78rem;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.storage-audit-item.is-unused .storage-audit-info strong {
    color: #a55249;
}

.storage-audit-info span {
    color: #555;
    display: block;
    font-size: 0.76rem;
    overflow-wrap: anywhere;
}

.storage-audit-info small {
    color: #8a8171;
    display: block;
    font-size: 0.72rem;
    margin-top: 4px;
}

.storage-audit-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

@media (max-width: 1100px) {
    .service-editorial-layout {
        grid-template-columns: 1fr;
    }

    .service-edit-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
}

.premium-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Bottom Half: Info */
.premium-card-bottom {
    background-color: #4a4e32;
    /* Dark Olive/Brown from image idea. Adjust to match theme or explicit color */
    color: white;
    padding: 30px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.premium-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
    font-family: var(--font-sans);
}

.premium-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    /* Push to bottom */
}

.btn-premium-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 10px 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn-premium-outline:hover {
    background: white;
    color: #4a4e32;
    /* Match card-bottom bg */
    border-color: white;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .services-carousel-track {
        grid-auto-columns: 100%;
        /* Mobile Width */
        gap: 30px;
        /* Standard gap */
    }

    .premium-card {
        min-height: 0;
        overflow: visible;
        flex-basis: 100% !important;
    }

    .premium-card-top {
        height: 200px;
    }

    .premium-card-bottom {
        padding: 20px 15px 40px 15px !important;
        height: auto;
        min-height: 0;
        justify-content: flex-start;
        flex-grow: 1;
    }

    .premium-actions {
        margin-bottom: 10px;
    }

    .premium-desc {
        flex: 0 0 auto;
        height: 150px;
        /* Fixed height for text */
        overflow: hidden;
        /* Hide excess text */
        margin-bottom: 20px;
    }

    .premium-desc * {
        font-size: 0.725rem !important;
        /* Force override TinyMCE */
        line-height: 1.4 !important;
        /* Force override TinyMCE */
    }

    .services-carousel-wrapper {
        padding: 0 10px;
        overflow: hidden;
    }
}


/* End of File */


/* Floating WhatsApp Button */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: transparent;
    border-radius: 50%;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: block;
    transition: all 0.3s ease;
}

.float-whatsapp:hover {
    transform: scale(1.1);
}

.float-whatsapp img {
    width: 60px;
    height: 60px;
    display: block;
}

/* Admin Utils */
.admin-logo-preview-img {
    max-height: 50px;
    margin-top: 10px;
    display: block;
    object-fit: contain;
}


/* --- Testimonials Carousel (Public Fix) --- */
.reviews-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background-color: var(--color-bg);
    /* Ensure matching bg */
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    width: 100%;
    /* Hide scrollbar */
    -ms-overflow-style: none;
}

@supports (scrollbar-width: none) {
    .carousel-container {
        scrollbar-width: none;
        /* Firefox */
    }
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

/* Public Review Card */
.review-card {
    flex: 0 0 100%;
    /* Strictly one card per view */
    scroll-snap-align: center;
    padding: 40px;
    text-align: center;
    background: #fff;
    /* White card */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    /* Vertical breathing room */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Card Content */
.review-card p {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: #4a4e32;
    /* Contrast text */
    margin-bottom: 20px;
    line-height: 1.5;
}

.review-card .author {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation Buttons */
.nav-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-main);
    padding: 10px;
    z-index: 10;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    transform: scale(1.1);
    color: var(--color-primary);
}

.nav-btn svg {
    width: 32px;
    height: 32px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .reviews-section {
        padding: 40px 0;
    }

    .carousel-wrapper {
        max-width: 100%;
        padding: 0;
        /* Remove padding to fix alignment */
    }

    .review-card {
        padding: 30px 20px;
        border-radius: 12px;
        margin: 0;
        /* Align perfectly */
        border: none;
        /* Clean look */
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    }

    .review-card p {
        font-size: 1.1rem;
    }

    .nav-btn {
        display: none !important;
        /* Hide Arrows */
    }
}


/* About Page Split Layout */
.about-split-section {
    display: flex;
    align-items: flex-start;
    /* Ensure top alignment */
    gap: 40px;
    margin-bottom: 60px;
}

.about-split-section .about-image-container,
.about-split-section .about-text-content {
    flex: 1;
}

/* Lower specific images to align with paragraph text */
/* Lower specific images to align with paragraph text */
#about-intro .about-image-container {
    margin-top: 20px;
}

/* User Req: Text down, Image up */
#about-art .about-text-content {
    margin-top: 10px;
    /* Push text down */
}

#about-art .about-image-container {
    margin-top: 40px;
    /* Pull image up (reduced from 150px) */
}

@media (max-width: 768px) {
    .about-split-section {
        flex-direction: column;
    }

    .about-split-section .about-image-container {
        order: -1;
        /* Image always on top on mobile */
    }

    .about-split-section#about-art .about-image-container {
        border: none;
        /* Ensure it inherits order: -1 from above, or explicitly set it */
        order: -1 !important;
    }

    /* Reset margins on mobile */
    #about-art .about-text-content,
    #about-art .about-image-container {
        margin-top: 0;
    }
}


/* --- Service Card Refinements (Session Fixes v3 - Fixed Height) --- */
.premium-card {
    display: flex;
    flex-direction: column;
    height: 600px !important;
    /* Fixed Height as requested (600px) */
}

.premium-card-top {
    flex: 1;
    /* 50% height */
    min-height: 0;
    /* Flex fix */
}

.premium-card-bottom {
    flex: 1;
    /* 50% height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px 20px !important;
    overflow: hidden;
    /* Prevent spill */
}

.premium-desc {
    font-size: 0.92rem;
    line-height: 1.35;
    margin-bottom: 12px !important;
    flex-grow: 1;
    overflow: hidden;
    /* Cut off text if too long */
}

.premium-actions {
    display: flex !important;
    flex-direction: row !important;
    /* Force row */
    flex-wrap: nowrap !important;
    /* preventing wrap */
    gap: 10px;
    margin-top: auto;
    width: 100%;
}

.btn-premium-outline {
    flex: 1;
    /* Equal focus */
    text-align: center;
    padding: 8px 4px !important;
    /* Slightly reduced horizontal padding */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Button Hover Refinement */
.btn-premium-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    border-color: white !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* --- Admin Panel Redesign (Horizontal Services) --- */
.admin-service-list-horizontal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 10px;
}

.admin-service-list-horizontal .admin-event-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    width: 140px;
    height: auto;
    padding: 10px !important;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-service-list-horizontal .admin-event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.admin-service-list-horizontal .event-info {
    margin-bottom: 10px;
}

.admin-service-list-horizontal .event-info strong {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Input Style for Services */
.input-sand {
    background-color: #E1D7CE !important;
    border: 1px solid #c9bdae !important;
    color: #333 !important;
}

.input-sand::placeholder {
    color: #7a7065;
}

.input-sand:focus {
    border-color: #8c7e6e !important;
    background-color: #e8ded5 !important;
}

/* --- Fix Premium Card Overlay --- */
.premium-card {
    position: relative;
    overflow: hidden;
}

.premium-card-top {
    position: relative;
}

.premium-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.premium-card-content {
    position: relative;
    z-index: 2;
}

.premium-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.1;
    /* Reduced line height as requested */
    color: #fff;
    font-family: var(--font-serif);
}

.premium-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.3;
}

.premium-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #fff;
    /* Ensure good contrast on dark cards */
}

/* Helper for Small Color Inputs */
.input-color-sm {
    height: 30px;
    cursor: pointer;
    padding: 0px !important;
    width: 100%;
    border: none;
    background-color: #E1D7CE;
    /* input-sand default */
}

/* Fix Lints: Clean up inline styles */

/* About page: full-width title */
.about-title-full {
    width: 100%;
    margin-bottom: 40px;
}

/* About page: title with bottom margin */
.about-title-mb {
    margin-bottom: 30px;
}

/* About page: left-aligned CTA buttons */
.cta-actions--left {
    justify-content: flex-start;
    margin-top: 30px;
}

/* Dashboard: Testimonials background color input */
.svc-testi-bg-input {
    width: 50px;
    height: 40px;
    padding: 0;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 4px;
}

/* Fix Lints: Clean up dashboard inline styles */
.admin-textarea-large {
    height: 170px;
    resize: none;
}

.input-file-full {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.icon-14 {
    width: 14px;
}

.h-100 {
    height: 100%;
}

.input-range-full {
    width: 100%;
    height: 5px;
    cursor: pointer;
}

.fs-9 {
    font-size: 9px;
}


/* =========================================
   Admin Styles
   ========================================= */
.admin-divider {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* Legal Section (Privacy/Terms) - Clear Fixed Header */
.legal-section {
    padding-top: 160px;
}

/* Dashboard spacing override */
.dashboard-page .section-padding {
    padding-top: 160px;
}

/* Admin Toggle Button (Restored) */
.admin-toggle-btn {
    display: none;
    /* JS toggles to flex */
    margin: 20px auto 40px auto;
    background-color: #2c2c2c;
    color: #e6dfc8;
    border-radius: 50px;
    padding: 12px 35px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 1px solid #444;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#admin-toggle-btn[hidden] {
    display: none !important;
}

.admin-toggle-btn:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Testimonials Selector Grid Layout */
.testimonial-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.testimonial-selector-card {
    position: relative;
    border: 1px solid #eee;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.testimonial-selector-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Hide actual checkbox but keep functionality */
.testimonial-selector-card input[type="checkbox"] {
    position: absolute;
    top: 15px;
    right: 15px;
    transform: scale(1.3);
    cursor: pointer;
    z-index: 2;
    accent-color: var(--color-primary);
}

/* Selected State */
.testimonial-selector-card.selected {
    border: 2px solid var(--color-primary);
    background-color: var(--color-secondary-beige);
}

.testimonial-card-header {
    font-weight: 600;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-primary-dark);
    margin-right: 30px;
    /* Space for checkbox */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-card-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: italic;
    margin-top: 5px;
}

/* Admin Review Card (New Layout) */
.admin-review-card {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.2s;
}

.admin-review-card:hover {
    background: #fcfcfc;
}

.admin-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.admin-review-title-group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
    /* Enable truncation in flex child */
}

.admin-review-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary-dark);
    flex-shrink: 0;
    /* Keep name full width if possible */
}

.admin-review-role-separator {
    color: #999;
    flex-shrink: 0;
}

.admin-review-role {
    font-size: 0.85rem;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Allow it to shrink */
    min-width: 0;
}

.admin-review-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.btn-icon-sm {
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 4px;
}

.btn-icon-sm svg {
    width: 16px;
    height: 16px;
    stroke-width: 2px;
}

.btn-icon-sm:hover {
    color: var(--color-primary);
    background: #eee;
}

.btn-icon-sm.delete:hover {
    color: #ef4444;
    background: #fee2e2;
}

.admin-review-text {
    font-size: 12px;
    color: #000;
    line-height: 1.3;
    margin: 0;
    font-family: sans-serif;
    font-weight: 400;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#admin-reviews-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar for the list */
#admin-reviews-list::-webkit-scrollbar {
    width: 6px;
}

#admin-reviews-list::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

/* Fix for Outline Button Visibility */
.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary) !important;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

/* Legal Pages */
.legal-section {
    padding: 160px 0 60px 0;
    min-height: 60vh;
}

.legal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.legal-content h1,
.legal-content h2 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--color-primary);
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

/* --- Utilities for Inline Fixes --- */
.resource-display {
    border: 1px solid #ddd;
}

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

.text-break-all {
    word-break: break-all;
}

.btn-remove-sm {
    color: red !important;
    font-size: 0.8rem !important;
}

.progress-track {
    background: #ddd;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    background: var(--color-primary);
    width: 0%;
    height: 100%;
    transition: width 0.2s;
}

.legal-divider {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid #ccc;
}

.legal-content strong {
    font-weight: 600;
}

/* --- Dashboard Grid View --- */
.meditations-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.meditations-grid-layout.is-static-meditations {
    grid-template-columns: repeat(auto-fit, 280px);
    justify-content: center;
}

.meditation-grid-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 300px;
    /* Fixed height as requested */
    display: flex;
    flex-direction: column;
}

.meditation-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.grid-card-image {
    height: 200px;
    /* Dominant image */
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* =========================================
   Service Detail Styles (Moved from Inline)
   ========================================= */
.service-detail-header {
    background: var(--bg-color-alt);
    padding: 150px 20px 60px;
    text-align: center;
}

.service-detail-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-main);
    width: 100%;
    box-sizing: border-box;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 40px;
}

.testimonial-card-highlight {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-style: italic;
    color: #666;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 60px;
    flex-wrap: wrap;
}

/* =========================================
   Universal Carousel Container
   ========================================= */
.carousel-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 30px;
    padding-bottom: 20px;
    /* Space for scrollbar or shadow */
    width: 100%;
    /* Hide Scrollbar */
    -ms-overflow-style: none;
    /* IE and Edge */
}

@supports (scrollbar-width: none) {
    .carousel-container {
        scrollbar-width: none;
        /* Firefox */
    }
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

/* Mobile Responsiveness for Services */
@media (max-width: 768px) {
    .service-detail-header {
        padding: 100px 20px 40px;
    }

    .service-detail-content {
        padding: 40px 20px;
        font-size: 1rem;
    }

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

    /* Ensure internal paragraph text breaks if needed */
    .service-detail-content p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .cta-actions {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    .cta-actions .btn,
    .cta-actions .btn-outline {
        width: 100%;
        text-align: center;
        display: block;
    }

    .premium-desc {
        font-size: 1.1rem;
        /* Larger font for mobile readability */
    }
}

/* --- Admin Service Card Mini (Horizontal 170px Layout) --- */
#admin-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.admin-service-card-mini {
    position: relative;
    width: 172px;
    /* 170px content + border */
    height: auto !important;
    /* Override any fixed height */
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    cursor: grab;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
    border: 1px solid #ddd;
}

.admin-service-card-mini:active {
    cursor: grabbing;
}

.admin-service-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.mini-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px 8px 0 0;
}

.mini-card-img-placeholder {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #4F553D 0%, #30332E 100%);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide old overlay (kept for safety) */
.mini-card-overlay {
    display: none !important;
}

.mini-card-title {
    padding: 8px 5px;
    color: #333;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.2;
    background: #fff;
    border-top: 1px solid #eee;
    min-height: 45px;
    /* Ensure 2 lines fit */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-card-actions {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.btn-icon-action {
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    color: #555;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon-action svg {
    width: 16px;
    height: 16px;
}

.btn-icon-action:hover {
    background-color: #eee;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-icon-action.delete:hover {
    color: #e53e3e;
    background-color: #fee2e2;
    border-color: #e53e3e;
}

/* --- Testimonials Selector (Round 4 - Sorted Cards) --- */
.testimonials-selector-grid-v4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.testimonial-card-v4 {
    position: relative;
    border: 1px solid #eee;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.testimonial-card-v4:hover {
    border-color: #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Selection State */
.testimonial-card-v4.selected {
    border: 2px solid var(--color-primary);
    background-color: var(--color-secondary-beige, #fcfcfc);
    /* Fallback */
}

.testimonial-card-v4 input[type="checkbox"] {
    position: absolute;
    top: 15px;
    right: 15px;
    transform: scale(1.3);
    cursor: pointer;
    z-index: 2;
}

/* Line 1: Name (Bold) */
.card-line-1 {
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
    padding-right: 30px;
    /* Space for checkbox */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Line 2: Text (Plain, Truncated) */
.card-line-2 {
    font-weight: 400;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limit roughly to 3 visual lines of text if long */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.6em;
    /* Ensure some height consistency */
}

/* Line 3: Role (Bold) */
.card-line-3 {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-top: auto;
    /* Push to bottom if flex column grows */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Testimonials Selector (Compact Version) --- */
.testimonials-selector-grid-v4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    /* Slightly narrower col */
    gap: 10px;
    /* Reduced gap */
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
    /* Reduced padding */
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.testimonial-card-v4 {
    position: relative;
    border: 1px solid #eee;
    background: #fff;
    padding: 10px;
    /* Reduced padding from 15px */
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* Reduced gap from 8px */
}

/* Checkbox position adjustment */
.testimonial-card-v4 input[type="checkbox"] {
    position: absolute;
    top: 10px;
    right: 10px;
    transform: scale(1.1);
    /* Slightly smaller scale */
}

/* Line 1: Name (Compact) */
.card-line-1 {
    font-weight: 700;
    font-size: 0.85rem;
    /* Reduced from 0.95rem */
    color: #333;
    padding-right: 25px;
    margin-bottom: 2px;
}

/* Line 2: Text (Compact) */
.card-line-2 {
    font-weight: 400;
    font-size: 0.8rem;
    /* Reduced from 0.9rem */
    color: #555;
    line-height: 1.3;
    /* Tighter line height */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
    /* Remove fixed min-height for compactness */
}

/* Line 3: Role (Compact) */
.card-line-3 {
    font-weight: 700;
    font-size: 0.75rem;
    /* Reduced from 0.85rem */
    color: var(--color-primary);
    margin-top: 4px;
}

/* --- Testimonials Text Override (10px) --- */
.testimonial-card-v4 .card-line-2 {
    font-size: 10px !important;
    line-height: 1.25;
}

/* --- Testimonials Carousel (Public Fix - Robust) --- */
.reviews-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background-color: var(--color-bg);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 480px;
    /* Increased to account for taller testimonials cards */
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    width: 100%;
    -ms-overflow-style: none;
}

@supports (scrollbar-width: none) {
    .carousel-container {
        scrollbar-width: none;
    }
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

/* Desktop Card Style */
.review-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    padding: 40px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.review-card p {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: #4a4e32;
    margin-bottom: 20px;
    line-height: 1.5;
}

.review-card .author {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Nav Buttons */
.nav-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-main);
    padding: 10px;
    z-index: 10;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    transform: scale(1.1);
    color: var(--color-primary);
}

.nav-btn svg {
    width: 32px;
    height: 32px;
}

/* Mobile Breakout Layout - High Specificity Force */
@media (max-width: 768px) {
    .reviews-section {
        padding: 40px 0;
        overflow-x: hidden;
    }

    .carousel-wrapper {
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc(-50vw + 50%) !important;
        padding: 0 !important;
    }

    .carousel-container {
        padding: 0 !important;
        gap: 0 !important;
        width: 100% !important;
    }

    /* Target with ID for max specificity */
    #dynamic-testimonials-container .review-card,
    .carousel-container .review-card {
        flex: 0 0 85vw !important;
        width: 85vw !important;
        min-width: 85vw !important;
        max-width: 85vw !important;
        margin: 0 7.5vw !important;
        /* Center: (100-85)/2 */
        padding: 30px 20px !important;
        border-radius: 12px !important;
        border: none !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05) !important;
        scroll-snap-align: center;
    }

    .review-card p {
        font-size: 1.1rem !important;
    }

    .nav-btn {
        display: none !important;
    }
}

/* --- About Page CTA Buttons --- */
.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cta-actions {
        flex-wrap: wrap;
        flex-direction: column;
        gap: 15px;
    }

    .cta-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* --- About Page CMS Styles --- */
.about-page-main {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    /* Robust grow */
    min-height: 100vh;
    /* Ensure it takes at least full screen */
}

.about-split-section {
    width: 100%;
    padding: 0;
    /* Remove padding to ensure sections touch */
}

.about-split-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 80px 20px;
    /* Content Padding */
}

.about-image-container,
.about-text-content {
    flex: 1;
    width: 100%;
}

.about-split-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    aspect-ratio: 4/5;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .about-split-container {
        flex-direction: column !important;
        gap: 40px;
        text-align: center;
        padding: 40px 20px;
    }

    .cta-actions {
        justify-content: center !important;
    }
}

/* CMS Variables Application */
#about-intro {
    background-color: var(--about-intro-bg, #ffffff);
    color: var(--about-intro-text, #000000);
    padding-top: 100px;
    margin-bottom: 0 !important;
    /* Ensure no gap after intro */
}

#about-art {
    background-color: var(--about-art-bg, #f7f2e0);
    color: var(--about-art-text, #000000);
    margin-top: 0 !important;
    /* Ensure no gap before art */
    padding-bottom: 0 !important;
    /* Remove padding so footer sits at bottom */
    flex-grow: 1;
    /* Stretch to fill remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ensure footer connects */
/* Ensure footer connects */
/* Ensure footer connects */
.about-footer {
    border-top: none !important;
    box-shadow: none !important;
    padding-top: 40px !important;
    padding-bottom: 20px !important;
    background: transparent !important;
    color: inherit !important;
    width: 100%;
}

.about-footer .container,
.about-footer .footer-content {
    text-align: center !important;
    margin: 0 auto !important;
    display: block !important;
    /* Prevent flex interference */
}

.about-footer p,
.about-footer a,
.about-footer span {
    color: inherit !important;
    opacity: 0.8;
}

.about-footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Global gap fix for split sections */
.about-split-section+.about-split-section {
    margin-top: 0;
}

/* --- About Page V2 (Refactor) --- */

.about-v2-body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.about-v2-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

.about-v2-section {
    width: 100%;
    /* padding: 60px 0; */
    padding: 0;
    /* Reset internal padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    /* transition: background-color 0.3s ease; */
}

/* Section 1: Intro */
#about-intro.about-v2-section {
    background-color: var(--about-intro-bg, #ffffff);
    color: var(--about-intro-text, #000000);
    padding-top: 150px;
}

/* Section 2: Expanded Art with Footer */
.about-v2-expanded {
    flex-grow: 1;
    background-color: var(--about-art-bg, #f7f2e0);
    color: var(--about-art-text, #000000);
    padding-bottom: 0 !important;
    justify-content: space-between;
}

/* Specific Footer Override for V2 */
.about-v2-expanded .about-footer {
    color: var(--color-footer-text, #80864f) !important;
    background-color: var(--color-footer-bg, #f7f2e0) !important;
    /* Fixed: Allow footer BG color */
    margin-top: 0 !important;
    /* Reset margin since it is inside flex */
}

.about-v2-expanded .about-footer p,
.about-v2-expanded .about-footer a,
.about-v2-expanded .about-footer span {
    color: inherit !important;
    opacity: 1;
}

/* Grid Layout */
.about-v2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    /* Internal content padding */
    flex-grow: 1;
    /* Fill space inside the expanded section */
}

/* Images */
.about-v2-img-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.about-v2-col-img {
    align-self: start;
}

.about-v2-img-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    max-height: 550px;
}

.about-Formatted-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-section-heading {
    margin-bottom: 22px;
}

.about-section-heading h2 {
    color: inherit;
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 500;
    line-height: 1.12;
    margin: 6px 0 0;
}

.about-section-heading .svc-kicker {
    color: inherit !important;
    opacity: 0.66;
}

.about-music-card {
    margin-top: 34px;
    padding: 28px 0 4px;
    border-top: 1px solid currentColor;
    color: var(--about-art-text, #ffffff) !important;
    opacity: 0.96;
    width: 100%;
}

.about-music-card h2 {
    margin: 6px 0 14px;
    color: var(--about-art-text, #ffffff) !important;
    font-family: var(--font-serif);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 500;
    line-height: 1.12;
}

.about-music-card .svc-kicker {
    color: var(--about-art-text, #ffffff) !important;
    opacity: 0.62;
}

.about-music-card p {
    color: var(--about-art-text, #ffffff) !important;
    line-height: 1.8;
    margin: 0 0 16px;
}

.about-music-card blockquote {
    margin: 22px 0;
    padding-left: 18px;
    border-left: 3px solid currentColor;
    color: var(--about-art-text, #ffffff) !important;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.45;
    opacity: 0.88;
}

.about-music-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.about-music-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: var(--about-art-text, #ffffff) !important;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.94;
}

.about-music-link:hover,
.about-music-link:focus-visible {
    background: var(--about-art-text, currentColor);
    color: var(--about-art-bg, #f7f2e0) !important;
    opacity: 1;
}

.about-music-link svg {
    width: 17px;
    height: 17px;
}

.about-book-section {
    padding: 86px 0;
    background-color: var(--about-intro-bg, #ffffff);
    color: #ffffff !important;
    font-family: var(--font-body);
}

.about-book-container {
    display: grid;
    grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
    gap: clamp(42px, 6vw, 74px);
    align-items: start;
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0;
}

.about-book-container--no-cover {
    grid-template-columns: minmax(0, 760px);
    justify-content: start;
}

.about-book-cover {
    justify-self: center;
    width: min(260px, 62vw);
    aspect-ratio: 0.68;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 20px 42px rgba(59, 49, 36, 0.18);
}

.about-book-copy {
    padding-top: 0;
}

.about-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-book-cover-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--color-primary);
}

.about-book-copy h2 {
    margin: 6px 0 10px;
    color: #ffffff !important;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 500;
    line-height: 1.05;
}

.about-book-meta {
    margin: 0 0 20px;
    color: inherit !important;
    font-size: 0.92rem;
    opacity: 0.86;
}

.about-book-synopsis {
    max-width: 720px;
    line-height: 1.8;
    color: #ffffff !important;
    font-family: var(--font-body);
    font-size: 1rem;
}

.about-book-section,
.about-book-section .about-book-copy,
.about-book-section .about-book-copy h2,
.about-book-section .about-book-meta,
.about-book-section .about-book-synopsis,
.about-book-section .about-book-synopsis *,
.about-book-section .about-book-copy p {
    color: #ffffff !important;
}

.about-book-synopsis p {
    color: #ffffff !important;
    font: inherit;
    margin: 0 0 1rem;
}

.about-book-price {
    display: inline-flex;
    align-items: center;
    margin: 8px 0 0;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.about-book-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.about-book-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    min-width: 156px;
    padding: 10px 20px;
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    background: var(--color-primary);
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    opacity: 1;
}

.about-book-button:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.about-book-button-outline {
    background: transparent;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.72);
}

.about-book-button-outline:hover,
.about-book-button-outline:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}

.about-book-trailer,
.about-book-order-form {
    margin-top: 32px;
    max-width: 720px;
}

.about-book-trailer h3,
.about-book-order-form h3 {
    margin: 0 0 14px;
    color: #ffffff !important;
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 500;
}

.about-book-video-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 34px rgba(59, 49, 36, 0.16);
}

.about-book-video-frame iframe,
.about-book-video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.about-book-order-form {
    padding: 24px;
    border: 1px solid rgba(128, 134, 79, 0.16);
    border-radius: 8px;
    background: rgba(247, 242, 224, 0.96);
    color: var(--color-text-main) !important;
    box-shadow: 0 18px 42px rgba(59, 49, 36, 0.13);
}

.about-book-order-form,
.about-book-order-form * {
    color: var(--color-text-main) !important;
}

.about-book-order-form label,
.about-book-order-form legend {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-main) !important;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.about-book-order-form input[type="text"],
.about-book-order-form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid rgba(128, 134, 79, 0.24);
    border-radius: 6px;
    background: #ffffff;
    color: var(--color-text-main) !important;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.about-book-order-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.about-book-order-form fieldset {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    padding: 0;
    border: 0;
}

.about-book-order-form fieldset label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    letter-spacing: 0;
    line-height: 1.5;
    text-transform: none;
}

.about-book-order-note {
    margin: 0 0 16px;
    color: var(--color-text-main) !important;
    font-size: 0.9rem;
    opacity: 0.86;
}

/* Responsive */
@media (max-width: 900px) {
    .about-v2-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 40px 20px;
    }

    .about-v2-col-text h1,
    .about-v2-col-text .cta-actions,
    .about-v2-col-text h1.section-title.text-left-md {
        justify-content: center !important;
        text-align: center !important;
    }

    /* Reverse Mobile for Art Section (Image Top, Text Bottom is typical, or keep as is) */
    /* User usually prefers Image -> Text flow on mobile */
    /* Reverse Mobile for Art Section */
    .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
    }

    .about-v2-expanded {
        padding-top: 40px;
    }

    .about-book-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-book-actions {
        justify-content: center;
    }

    .about-music-card {
        text-align: left;
    }

    .about-music-actions {
        justify-content: center;
    }

    .about-book-trailer,
    .about-book-order-form {
        margin-left: auto;
        margin-right: auto;
    }
}

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

/* Closing @media (max-width: 900px) */

/* --- Service Detail Hero Layout (Parallax Style) --- */

/* Full-width Section with Background Image */
.svc-section {
    padding: 60px 20px;
}

.svc-container {
    max-width: 900px;
    margin: 0 auto;
}

.svc-container h2 {
    margin-top: 40px;
    margin-bottom: 16px;
}

.svc-container h2:first-child {
    margin-top: 0;
}

.svc-container p,
.svc-container li {
    line-height: 1.8;
}

.svc-hero-section {
    position: relative;
    width: 100%;
    min-height: 85vh;
    /* Occupy most of screen */
    background-size: cover !important;
    /* Force cover to prevent tiling */
    background-position: center !important;
    background-repeat: no-repeat !important;

    /* Flexbox to center the overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;

    /* Parallax Effect (Desktop) */
    background-attachment: fixed;
}

/* Overlay if no image - or purely for depth */
.svc-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker overlay for better contrast */
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* The Content Box (Semi-transparent) */
.svc-overlay-container {
    position: relative;
    z-index: 2;
    /* ABOVE the ::before overlay */
    width: 100%;
    max-width: 800px;
    /* Limit width */
    margin: 0 auto;
    /* Center horizontally */

    /* Default style */
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;

    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);

    /* Text */
    text-align: center;
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */
    backdrop-filter: blur(10px);
}

/* Text styles within the overlay */
.svc-overlay-container h1,
.svc-overlay-container h2 {
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.svc-overlay-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.svc-page-title {
    position: relative;
    z-index: 2;
    width: min(100%, 980px);
    margin: 0 auto 28px;
    padding: 0 20px;
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    font-weight: 500;
    line-height: 1.05;
    text-align: center;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.48);
}

.svc-overlay-container .svc-text,
.svc-overlay-container .svc-text p,
.svc-overlay-container .svc-text li,
.svc-overlay-container .svc-text span,
.svc-overlay-container .svc-text strong,
.svc-overlay-container .svc-text em,
.svc-overlay-container .svc-text u,
.svc-overlay-container .svc-text a,
.svc-overlay-container .svc-text h2,
.svc-overlay-container .svc-text h3,
.svc-overlay-container .svc-text blockquote {
    color: inherit;
}

#svc-section-1.svc-hero-section {
    flex-direction: column;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .svc-hero-section {
        padding: 60px 20px;
        background-attachment: scroll;
        /* Disable parallax on mobile */
    }

    .svc-overlay-container {
        padding: 30px 20px;
    }

    .svc-page-title {
        margin-bottom: 22px;
        padding: 0 8px;
        font-size: clamp(2.2rem, 12vw, 3.4rem);
    }
}

/* Closing @media (max-width: 768px) */

/* The Content Box (Semi-transparent) - Redefined for Desktop/General */
.svc-overlay-container {
    position: relative;
    z-index: 2;
    /* ABOVE the ::before overlay */
    width: 100%;
    max-width: 800px;
    /* Limit width */
    margin: 0 auto;
    /* Center horizontally */

    /* Default style - BG managed by JS now for strict opacity control */
    color: #333;

    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);

    /* Text */
    text-align: center;
}

/* --- Utilities for Service Detail (Replacing Inline Styles) --- */
.visually-hidden-seo {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.main-full-width {
    padding: 0 !important;
}

.cta-actions-container {
    padding: 40px 20px;
    background: var(--bg-color);
    text-align: center;
    /* Generally standard for CTA containers */
}

/* --- Editorial Service Section (local model for CMS migration) --- */
.service-page-loading .svc-editorial-section,
.service-page-loading #svc-event-memories-section,
.service-page-loading #svc-testimonials-section {
    visibility: hidden;
}

.service-page-ready .svc-editorial-section,
.service-page-ready #svc-event-memories-section,
.service-page-ready #svc-testimonials-section {
    visibility: visible;
}

.svc-editorial-section {
    background:
        linear-gradient(180deg, rgba(247, 242, 224, 0.98), rgba(247, 242, 224, 0.92)),
        var(--color-secondary-beige);
    color: #333;
    padding: 76px 20px;
}

.svc-editorial-container {
    max-width: 980px;
}

.svc-editorial-header {
    border-left: 3px solid var(--svc-editorial-accent-color, var(--color-primary));
    padding-left: 28px;
    margin-bottom: 44px;
}

.svc-editorial-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 400;
    line-height: 1.08;
    margin: 0 0 22px;
    color: var(--svc-editorial-title-color, var(--color-bg));
}

.svc-kicker {
    color: var(--svc-editorial-accent-color, var(--color-primary-dark));
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.svc-editorial-section h2:not(.svc-editorial-header h2) {
    color: var(--svc-editorial-title-color, var(--color-bg));
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
}

.svc-editorial-section h3 {
    color: var(--svc-editorial-title-color, var(--color-bg));
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 10px;
}

.svc-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
    margin: 26px 0 42px;
    padding: 0;
}

.svc-topic-grid li {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(128, 134, 79, 0.16);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 22px rgba(128, 134, 79, 0.08);
    padding: 18px 20px;
}

.svc-related-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 48px;
}

.svc-related-links a {
    background: #fff;
    border: 1px solid rgba(191, 137, 127, 0.35);
    border-radius: var(--radius-md);
    color: var(--svc-editorial-title-color, var(--color-bg));
    display: block;
    padding: 18px 20px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.svc-related-links a:hover,
.svc-related-links a:focus-visible {
    border-color: var(--svc-editorial-accent-color, var(--color-primary));
    box-shadow: 0 10px 28px rgba(128, 134, 79, 0.14);
    transform: translateY(-2px);
}

.svc-related-links span {
    color: var(--svc-editorial-accent-color, var(--color-primary-dark));
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.svc-related-links strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
}

.about-related-section {
    background: #f8f4ec;
    color: #34342d;
    padding: 72px 0 36px;
}

.about-related-heading {
    margin: 0 auto;
    max-width: 760px;
    text-align: center;
}

.about-related-heading h2 {
    color: var(--color-bg);
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 16px;
}

.about-related-heading > p:last-child {
    line-height: 1.7;
}

.about-related-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.svc-faq-list {
    margin-top: 50px;
}

.svc-faq-list article {
    background: rgba(255, 255, 255, 0.62);
    border-top: 1px solid rgba(128, 134, 79, 0.18);
    padding: 24px 0;
}

.svc-faq-list article:first-of-type {
    border-top: 0;
}

.svc-editorial-section .svc-btn-group {
    justify-content: center;
    margin-top: 40px;
}

/* --- Event Memories / Completed Events Module --- */
.svc-event-memories-section,
.memory-archive-section {
    background: #f8f4ec;
    color: #34342d;
}

.memory-section-header {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.memory-section-header h2,
.memory-archive-hero h1 {
    color: var(--color-bg);
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.08;
    margin: 0 0 18px;
}

.memory-section-header h2 {
    font-size: 2.6rem;
}

.memory-grid {
    display: grid;
    gap: 24px;
}

.memory-grid-service {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.memory-grid-service.memory-grid-count-1 {
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: 920px;
}

.memory-grid-archive {
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin: 0 auto;
    max-width: 1040px;
}

.memory-archive-featured {
    margin: 0 auto 34px;
    max-width: 1040px;
}

.memory-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0 auto 34px;
}

.memory-filter-bar button {
    background: #fff;
    border: 1px solid rgba(128, 134, 79, 0.22);
    border-radius: 999px;
    color: #6e664c;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 9px 15px;
    text-transform: uppercase;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.memory-filter-bar button.active,
.memory-filter-bar button:hover,
.memory-filter-bar button:focus-visible {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.memory-archive-card {
    background: #fff;
    border: 1px solid rgba(128, 134, 79, 0.16);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(52, 52, 45, 0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.memory-archive-card.is-featured {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    margin: 0 auto;
    max-width: 1040px;
}

.memory-archive-image {
    aspect-ratio: 16 / 11;
    background: #e7e1d3;
    overflow: hidden;
}

.memory-archive-card.is-featured .memory-archive-image {
    aspect-ratio: auto;
    min-height: 280px;
}

.memory-archive-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.memory-archive-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.memory-archive-card.is-featured .memory-archive-card-body {
    justify-content: center;
    padding: 34px;
}

.memory-archive-card h2 {
    color: var(--color-bg);
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 12px;
}

.memory-archive-card.is-featured h2 {
    font-size: 2rem;
}

.memory-archive-card p {
    color: #4b4a43;
    font-size: 0.94rem;
    line-height: 1.7;
    margin: 0 0 16px;
}

.memory-archive-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: auto;
}

.memory-service-link {
    color: var(--color-bg);
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.memory-service-link:hover,
.memory-service-link:focus-visible {
    color: var(--color-primary-dark);
}

.memory-archive-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: auto 0 18px;
    padding-top: 4px;
}

.memory-archive-indicators span {
    background: rgba(128, 134, 79, 0.09);
    border: 1px solid rgba(128, 134, 79, 0.14);
    border-radius: 999px;
    color: #5f6440;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 5px 9px;
}

.memory-archive-toggle {
    align-self: flex-start;
    background: transparent;
    border: 0;
    border-bottom: 1px solid currentColor;
    color: #a56d61;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0 0 3px;
    text-transform: uppercase;
}

.memory-archive-details {
    border-top: 1px solid rgba(128, 134, 79, 0.14);
    display: none;
    grid-column: 1 / -1;
    padding: 20px;
}

.memory-archive-card.is-open .memory-archive-details {
    display: block;
}

.memory-archive-card.is-open {
    grid-column: 1 / -1;
}

.memory-archive-details .memory-card {
    box-shadow: none;
    margin: 0 auto;
    max-width: 760px;
}

.memory-archive-details .memory-card-media {
    aspect-ratio: 16 / 10;
}

.memory-archive-details .memory-video-preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.memory-archive-details .memory-gallery-strip {
    grid-template-columns: repeat(4, 1fr);
}

.memory-archive-card.hidden {
    display: none;
}

.memory-card {
    background: #fff;
    border: 1px solid rgba(128, 134, 79, 0.18);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(52, 52, 45, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.memory-grid-count-1 .memory-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
}

.memory-card-media {
    background: #e7e1d3;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.memory-grid-count-1 .memory-card-media {
    aspect-ratio: auto;
    min-height: 100%;
}

.memory-card-media img,
.memory-card-media iframe {
    border: 0;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.memory-lightbox-trigger {
    background: transparent;
    border: 0;
    cursor: zoom-in;
    display: block;
    height: 100%;
    padding: 0;
    width: 100%;
}

.memory-lightbox-trigger img {
    transition: transform 220ms ease, filter 220ms ease;
}

.memory-lightbox-trigger:hover img,
.memory-lightbox-trigger:focus-visible img {
    filter: brightness(1.03);
    transform: scale(1.035);
}

.memory-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.memory-grid-count-1 .memory-card-body {
    padding: 32px;
}

.memory-meta {
    align-items: center;
    color: var(--color-primary-dark);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.76rem;
    font-weight: 500;
    gap: 8px 12px;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.memory-meta a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.memory-card h3 {
    color: var(--color-bg);
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 12px;
}

.memory-card p {
    color: #4b4a43;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 14px;
}

.memory-summary {
    color: #4b4a43;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 14px;
}

.memory-summary p,
.memory-message p {
    margin: 0 0 0.8em;
}

.memory-card blockquote {
    border-left: 3px solid var(--color-primary);
    color: #4b4a43;
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.5;
    margin: 10px 0 0;
    padding-left: 16px;
}

.memory-card cite {
    color: var(--color-primary-dark);
    display: block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 600;
    margin-top: 10px;
    text-transform: uppercase;
}

.memory-card cite p,
.memory-card cite div,
.memory-card cite span {
    color: inherit;
    font: inherit;
    margin: 0;
    text-transform: inherit;
}

.memory-message {
    background: rgba(128, 134, 79, 0.08);
    border-radius: 8px;
    padding: 14px;
}

.memory-video-link {
    color: var(--color-primary-dark);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-transform: uppercase;
}

.memory-video-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 14px;
}

.memory-video-preview-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.memory-video-preview {
    background: rgba(128, 134, 79, 0.06);
    border: 1px solid rgba(128, 134, 79, 0.12);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    padding: 8px;
}

.memory-video-preview iframe {
    aspect-ratio: 16 / 9;
    background: #e7e1d3;
    border: 0;
    border-radius: 8px;
    display: block;
    overflow: hidden;
    width: 100%;
}

.memory-grid-archive .memory-video-preview-grid {
    grid-template-columns: 1fr;
}

.memory-grid-archive .memory-archive-details .memory-video-preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.memory-gallery-block {
    border-top: 1px solid rgba(128, 134, 79, 0.15);
    margin-top: 20px;
    padding-top: 16px;
}

.memory-gallery-label {
    color: var(--color-primary-dark);
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.memory-gallery-strip {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, 1fr);
    margin-top: auto;
}

.memory-gallery-strip-compact {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 0;
}

.memory-gallery-thumb {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
}

.memory-gallery-thumb img {
    aspect-ratio: 1;
    border-radius: 6px;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.memory-lightbox {
    align-items: center;
    background: rgba(24, 24, 20, 0.76);
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 28px;
    pointer-events: none;
    position: fixed;
    transition: opacity 180ms ease;
    z-index: 9999;
}

.memory-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.memory-lightbox img {
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
    max-height: min(86vh, 900px);
    max-width: min(92vw, 1200px);
    object-fit: contain;
    transform: scale(0.94);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.memory-lightbox.is-open img {
    transform: scale(1);
}

.memory-lightbox-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    border-radius: 999px;
    color: #333;
    cursor: pointer;
    display: flex;
    height: 42px;
    justify-content: center;
    position: fixed;
    right: 24px;
    top: 24px;
    width: 42px;
}

.memory-lightbox-open {
    overflow: hidden;
}

.memory-section-actions {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.memory-archive-hero {
    background:
        linear-gradient(180deg, rgba(247, 242, 224, 0.94), rgba(247, 242, 224, 0.86)),
        var(--color-secondary-beige);
    padding: 150px 20px 80px;
    text-align: center;
}

.memory-archive-hero h1 {
    font-size: 3.6rem;
}

.memory-archive-hero p:not(.svc-kicker) {
    color: #4b4a43;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 720px;
}

.memory-empty {
    color: #6e664c;
    grid-column: 1 / -1;
    text-align: center;
}

.memory-archive-empty .memory-archive-section {
    min-height: 160px;
}

@media (max-width: 768px) {
    .svc-editorial-section {
        padding: 56px 20px;
    }

    .svc-editorial-header {
        padding-left: 18px;
    }

    .memory-grid-service,
    .memory-grid-archive {
        grid-template-columns: 1fr;
    }

    .memory-archive-card.is-featured {
        display: flex;
    }

    .memory-archive-card.is-featured .memory-archive-image {
        aspect-ratio: 16 / 11;
        min-height: 0;
    }

    .memory-archive-card.is-featured h2 {
        font-size: 1.8rem;
    }

    .memory-archive-card-body,
    .memory-archive-card.is-featured .memory-archive-card-body {
        padding: 22px;
    }

    .memory-grid-count-1 .memory-card {
        display: flex;
    }

    .memory-grid-count-1 .memory-card-media {
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

    .memory-video-preview-grid {
        grid-template-columns: 1fr;
    }

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

    .memory-section-header h2,
    .memory-archive-hero h1 {
        font-size: 2.25rem;
    }

    .memory-card-body {
        padding: 20px;
    }

    .memory-archive-hero {
        padding: 120px 20px 58px;
    }

    .svc-topic-grid,
    .svc-related-links {
        grid-template-columns: 1fr;
    }
}

/* --- Carousel Enhancements for Service Detail --- */
.carousel-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 50px;
    /* Space for buttons */
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: var(--color-primary-dark);
}

.carousel-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

.carousel-card {
    flex: 0 0 350px !important;
    /* Precise width for carousel logic */
    max-width: 85vw !important;
    flex-shrink: 0 !important;
}

@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0;
        /* Swipe is better on mobile */
    }

    .carousel-nav {
        display: none !important;
    }

    .carousel-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    .carousel-card {
        flex: 0 0 85vw !important;
        min-width: 85vw !important;
        flex-shrink: 0 !important;
    }

    /* Dashboard Meditations Exception - Single Column */
    .dashboard-page .carousel-container {
        flex-direction: column !important;
        gap: 30px !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        padding: 20px 20px 50px 20px !important;
    }

    .dashboard-page .carousel-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        margin: 0 auto !important;
    }
}

/* Maintenance Mode Dashboard Styles */
details.admin-card.maintenance-card {
    border: 2px solid #28a745;
    /* Initial state is green outline */
    transition: all 0.3s ease;
}

details.admin-card.maintenance-card summary.maintenance-card-header {
    background: #e6f4ea;
    /* Soft green tint */
    color: #137333;
    /* Dark green text */
    position: relative;
    /* For absolute badge positioning */
}

.maintenance-header-pos {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    /* Slightly smaller for the header */
    padding: 4px 12px;
}

details.admin-card.maintenance-card.offline {
    border: 2px solid #dc3545;
    /* Red outline when offline */
}

details.admin-card.maintenance-card.offline summary.maintenance-card-header {
    background: #ffebeb;
    /* Visually distinct red tint */
    color: #dc3545;
    /* Red text */
}

.text-danger {
    color: #dc3545 !important;
}

.text-success {
    color: #137333 !important;
}

/* Maintenance Badge */
.maintenance-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
    min-width: 100px;
    transition: background-color 0.3s ease;
}

.maintenance-badge.online {
    background-color: #28a745;
    color: white !important;
    border: 2px solid #1e7e34;
}

.maintenance-badge.offline {
    background-color: #dc3545;
    color: white !important;
    border: 2px solid #bd2130;
}

/* Fix for smooth scrolling anchor jump to contact form */
#contact {
    scroll-margin-top: 120px;
    /* Accounts for fixed navbar height */
}

/* Booking Page Form Wrappers */
.booking-contact-form-wrapper {
    margin-top: 3rem;
    margin-bottom: 3rem;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.booking-contact-form-wrapper h3 {
    text-align: center;
}

/* --- Service Detail CTA Button Group --- */
.svc-btn-group {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 768px) {
    .svc-btn-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .svc-btn-group .btn {
        white-space: nowrap;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
        padding: 10px 16px;
    }
}

/* --- Public Button Rhythm --- */
.btn,
.cta-button,
.about-book-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.08em;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.cta-whatsapp-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-whatsapp-btn svg,
.cta-whatsapp-btn i {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .svc-btn-group .btn,
    .cta-actions .btn,
    .cta-button,
    .about-book-button {
        min-height: 44px;
        padding: 0 18px;
        font-size: 0.78rem;
        letter-spacing: 0.06em;
    }
}

/* --- Service Detail Mobile Reading Width --- */
@media (max-width: 768px) {
    .svc-hero-section {
        min-height: auto;
        padding: 72px 12px 44px;
    }

    .svc-overlay-container {
        width: 100%;
        max-width: none;
        padding: 28px 18px !important;
        border-radius: 0;
    }

    .svc-overlay-container p {
        font-size: 0.98rem;
        line-height: 1.65;
    }
}

/* --- About Book Order Form Readability --- */
#about-book-section .about-book-order-form {
    background: #f7f2e0;
    color: #4b4a43 !important;
}

#about-book-section .about-book-order-form,
#about-book-section .about-book-order-form h3,
#about-book-section .about-book-order-form label,
#about-book-section .about-book-order-form legend,
#about-book-section .about-book-order-form p,
#about-book-section .about-book-order-form span {
    color: #4b4a43 !important;
}

#about-book-section .about-book-order-form label,
#about-book-section .about-book-order-form legend {
    font-weight: 500;
    opacity: 1;
}

#about-book-section .about-book-order-form input[type="text"],
#about-book-section .about-book-order-form textarea {
    background: #ffffff;
    border-color: rgba(75, 74, 67, 0.28);
    color: #2f302b !important;
}

#about-book-section .about-book-order-form input[type="text"]::placeholder,
#about-book-section .about-book-order-form textarea::placeholder {
    color: rgba(75, 74, 67, 0.54);
}

#about-book-section .about-book-order-form input[type="radio"] {
    accent-color: var(--color-primary);
}

#about-book-section .about-book-order-form .about-book-button {
    color: #ffffff !important;
}

/* --- About Music Facet Final Overrides --- */
#about-art .about-music-card--art,
#about-art .about-music-card--art *,
#about-art .about-music-card--art h2,
#about-art .about-music-card--art p,
#about-art .about-music-card--art blockquote,
#about-art .about-music-card--art .svc-kicker,
#about-art .about-music-card--art .about-music-link {
    color: var(--about-art-text, #ffffff) !important;
}

#about-art .about-music-card--art {
    margin-top: 26px;
    transform: translateY(148px);
}

#about-art .about-music-card--art .about-music-link {
    border-color: var(--about-art-text, #ffffff) !important;
}

#about-art .about-music-card--art .about-music-link:hover,
#about-art .about-music-card--art .about-music-link:focus-visible {
    background: var(--about-art-text, #ffffff) !important;
    color: var(--about-art-bg, #80864f) !important;
}

#about-art .about-music-card--art .about-music-link:hover *,
#about-art .about-music-card--art .about-music-link:focus-visible * {
    color: var(--about-art-bg, #80864f) !important;
}

/* --- About Page Title Rhythm --- */
.about-page-main .about-title-full,
.about-page-main .about-Formatted-text h1,
.about-page-main .about-Formatted-text h2,
.about-page-main .about-Formatted-text h3,
.about-page-main .about-section-heading h2,
#about-art .about-music-card--art h2,
#about-book-section .about-book-copy h2 {
    font-family: var(--font-serif);
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

.about-page-main .about-Formatted-text,
.about-page-main .about-Formatted-text p,
.about-page-main .about-Formatted-text li,
.about-page-main .about-Formatted-text span,
.about-page-main .about-Formatted-text strong,
.about-page-main .about-Formatted-text em,
.about-page-main .about-Formatted-text u {
    font-family: var(--font-body);
    font-size: inherit;
    line-height: 1.8;
}

.about-page-main .about-Formatted-text {
    font-family: var(--font-body);
    font-size: 1rem;
}

.about-page-main .about-Formatted-text p,
.about-page-main .about-Formatted-text li,
.about-page-main .about-Formatted-text span,
.about-page-main .about-Formatted-text strong,
.about-page-main .about-Formatted-text em,
.about-page-main .about-Formatted-text u {
    font-family: inherit;
}

.about-page-main .about-Formatted-text h2 {
    font-size: clamp(1.45rem, 2.4vw, 1.9rem) !important;
    line-height: 1.18 !important;
    margin: 18px 0 10px !important;
}

.about-page-main .about-Formatted-text h3 {
    font-size: clamp(1.2rem, 2vw, 1.45rem) !important;
    line-height: 1.25 !important;
    margin: 16px 0 8px !important;
}

.about-page-main .about-Formatted-text strong {
    font-weight: 700 !important;
}

#about-art .about-music-card--art .about-music-link {
    font-weight: 400 !important;
}

@media (max-width: 900px) {
    #about-art .about-music-card--art {
        transform: none;
    }
}

/* Keep the music facet inside the art section without leaking into the book block. */
#about-art .about-music-card--art,
#about-art .about-music-card--art *,
#about-art .about-music-card--art h2,
#about-art .about-music-card--art p,
#about-art .about-music-card--art blockquote,
#about-art .about-music-card--art .svc-kicker,
#about-art .about-music-card--art .about-music-link {
    color: #ffffff !important;
}

#about-art .about-music-card--art {
    clear: both;
    margin-top: 28px;
    transform: none !important;
}

#about-art .about-music-card--art .about-music-link {
    border-color: rgba(255, 255, 255, 0.72) !important;
}

#about-art .about-music-card--art .about-music-link:hover,
#about-art .about-music-card--art .about-music-link:focus-visible {
    background: #ffffff !important;
    color: var(--about-art-bg, #80864f) !important;
}

#about-art .about-music-card--art .about-music-link:hover *,
#about-art .about-music-card--art .about-music-link:focus-visible * {
    color: var(--about-art-bg, #80864f) !important;
}

/* --- About Page Final Guardrails --- */
#about-intro .about-title-full,
#about-intro .about-title-full *,
#about-intro .about-section-heading,
#about-intro .about-section-heading *,
#about-intro .about-Formatted-text,
#about-art .about-section-heading,
#about-art .about-section-heading *,
#about-art .about-Formatted-text {
    color: #ffffff !important;
}

#about-intro .about-Formatted-text *,
#about-art .about-Formatted-text * {
    color: inherit;
}

#about-book-section .about-book-copy h2 {
    font-size: clamp(1.65rem, 2.6vw, 2.35rem) !important;
    line-height: 1.12 !important;
}

#about-intro .about-title-full {
    font-size: clamp(2.2rem, 4vw, 3.05rem) !important;
    line-height: 1.08 !important;
}

#about-intro .about-section-heading h2,
#about-art .about-section-heading h2 {
    font-size: clamp(1.65rem, 2.9vw, 2.25rem) !important;
    line-height: 1.14 !important;
}

#about-art .about-music-card--art h2 {
    font-size: clamp(1.45rem, 2.4vw, 2rem) !important;
    line-height: 1.16 !important;
}

#about-book-section .about-book-meta {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    margin-top: -4px !important;
    opacity: 1 !important;
}

#about-book-section .about-book-subtitle {
    color: #ffffff !important;
    font-family: var(--font-serif) !important;
    font-size: clamp(1.2rem, 2vw, 1.6rem) !important;
    line-height: 1.2 !important;
    opacity: 1;
}

#about-book-section .about-book-publisher,
#about-book-section .about-book-meta-separator {
    font-family: var(--font-body) !important;
    font-size: 0.92rem !important;
    opacity: 0.82;
}

#about-book-section .about-book-price {
    color: #ffffff !important;
}

#about-art .cta-actions {
    display: none !important;
}

/* --- Members Public Showcase --- */
.members-showcase-page {
    background: #f7f2e0;
    color: #4b4a43;
}

.members-showcase-hero {
    position: relative;
    min-height: min(760px, 92vh);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #80864f;
}

.members-showcase-hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(74, 78, 50, 0.88) 0%, rgba(74, 78, 50, 0.7) 46%, rgba(74, 78, 50, 0.26) 100%),
        url("assets/images/og-image.jpg") center / cover no-repeat;
    transform: scale(1.02);
}

.members-showcase-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding-top: 140px;
    padding-bottom: 92px;
}

.members-showcase-hero .svc-kicker,
.members-section-heading .svc-kicker,
.members-preview-intro .svc-kicker,
.members-access-section .svc-kicker,
.members-showcase-cta .svc-kicker {
    color: inherit !important;
    opacity: 0.72;
}

.members-showcase-hero .svc-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgb(186 189 172 / 34%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    color: #ffffff !important;
    opacity: 1;
    text-shadow: none;
    backdrop-filter: blur(3px);
}

.admin-section-divider {
    margin: 24px 0 18px;
    border: 0;
    border-top: 1px solid rgba(139, 88, 76, 0.18);
}

.cta-button.save-success,
.cta-button.primary.save-success {
    background: #4f7d55 !important;
    color: #ffffff !important;
}

.members-showcase-hero h1 {
    max-width: 720px;
    margin: 0 0 22px;
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: clamp(2.7rem, 6vw, 5.4rem);
    font-weight: 500;
    line-height: 0.98;
}

.members-showcase-hero p {
    max-width: 650px;
    color: #ffffff;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.9;
}

.members-showcase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.members-access-feedback {
    max-width: 690px;
    margin: 18px 0 0;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    background: rgba(34, 35, 28, 0.42);
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

.members-showcase-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.72);
    color: #ffffff !important;
}

.members-preview-band {
    padding: 80px 0;
    background: #b7b2a6;
}

.members-preview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: clamp(36px, 7vw, 96px);
    align-items: center;
}

.members-preview-intro h2,
.members-access-section h2,
.members-showcase-cta h2,
.members-section-heading h2 {
    margin: 0;
    color: inherit;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 500;
    line-height: 1.05;
}

.members-preview-intro p {
    max-width: 640px;
    line-height: 1.85;
}

.members-preview-list {
    display: grid;
    gap: 14px;
}

.members-preview-list div {
    padding: 18px 0;
    border-top: 1px solid rgba(75, 74, 67, 0.24);
}

.members-preview-list div:last-child {
    border-bottom: 1px solid rgba(75, 74, 67, 0.24);
}

.members-preview-list span,
.members-locker-type {
    display: block;
    margin-bottom: 6px;
    color: #8b584c;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.members-preview-list strong {
    color: #4b4a43;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
}

.members-locker-section {
    padding: 92px 0;
    background: #f7f2e0;
}

.members-section-heading {
    max-width: 780px;
    margin-bottom: 38px;
}

.members-locker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.members-locker-card {
    position: relative;
    min-height: 320px;
    padding: 28px;
    border: 1px solid rgba(128, 134, 79, 0.18);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(75, 74, 67, 0.08);
}

.members-locker-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 46%, rgba(247, 242, 224, 0.82) 100%);
    pointer-events: none;
}

.members-locker-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 50%;
    background: #80864f;
    color: #ffffff;
}

.members-locker-icon svg,
.members-locker-badge svg {
    width: 18px;
    height: 18px;
}

.members-locker-card h3 {
    margin: 0 0 12px;
    color: #4b4a43;
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.1;
}

.members-locker-card p {
    position: relative;
    z-index: 1;
    line-height: 1.75;
}

.members-locker-badge {
    position: absolute;
    left: 28px;
    bottom: 24px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8b584c;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.members-access-section {
    padding: 86px 0;
    background: #80864f;
    color: #ffffff;
}

.members-access-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
    gap: clamp(36px, 7vw, 92px);
    align-items: start;
}

.members-access-steps {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.members-access-steps li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.members-access-steps span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: 50%;
    font-family: var(--font-serif);
    font-size: 1.15rem;
}

.members-access-steps p {
    margin: 3px 0 0;
    color: #ffffff;
    line-height: 1.7;
}

.members-showcase-cta {
    padding: 86px 0;
    background: #4b4a43;
    color: #ffffff;
    text-align: center;
}

.members-showcase-cta .container {
    max-width: 780px;
}

.members-showcase-cta .members-showcase-actions {
    justify-content: center;
}

.members-showcase-cta .members-showcase-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 150px;
    min-height: 44px;
    padding: 13px 28px;
    line-height: 1.1;
    text-align: center;
}

@media (max-width: 900px) {
    .members-showcase-hero {
        min-height: auto;
    }

    .members-showcase-hero-inner {
        margin-left: auto;
        padding-top: 132px;
    }

    .members-preview-grid,
    .members-locker-grid,
    .members-access-layout {
        grid-template-columns: 1fr;
    }

    .members-locker-card {
        min-height: 280px;
    }
}

@media (max-width: 640px) {
    .members-showcase-hero-media {
        background:
            linear-gradient(180deg, rgba(74, 78, 50, 0.9) 0%, rgba(74, 78, 50, 0.76) 100%),
            url("assets/images/og-image.jpg") center / cover no-repeat;
    }

    .members-showcase-actions .btn {
        width: 100%;
    }

    .members-preview-band,
    .members-locker-section,
    .members-access-section,
    .members-showcase-cta {
        padding: 64px 0;
    }
}

/* Keep the art/creative section editorial and left-aligned on mobile. */
@media (max-width: 900px) {
    #about-art .about-v2-grid,
    #about-art .about-v2-col-text,
    #about-art .about-section-heading,
    #about-art .about-Formatted-text,
    #about-art .about-Formatted-text *,
    #about-art .about-music-card--art {
        text-align: left !important;
    }

    #about-art .about-music-actions {
        justify-content: flex-start !important;
    }
}

/* Compact member profile layout. */
.member-profile-panel {
    max-width: 820px;
    margin: 0 auto 28px;
    padding: 20px;
    box-shadow: 0 12px 34px rgba(59, 49, 36, 0.07);
}

.member-profile-heading {
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}

.member-profile-heading h2 {
    margin-top: 4px;
    font-size: clamp(1.6rem, 2.5vw, 2.05rem);
}

.member-profile-heading p {
    max-width: 280px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.member-profile-heading-actions {
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.member-profile-layout {
    grid-template-columns: minmax(0, 1fr) 236px;
    gap: 14px;
}

.member-profile-card {
    padding: 16px;
    min-width: 0;
}

.profile-photo-zone {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.profile-photo-preview {
    width: 96px;
    font-size: 1.8rem;
    box-shadow: 0 7px 18px rgba(59, 49, 36, 0.12);
}

.profile-photo-actions {
    gap: 8px;
}

.profile-photo-actions small {
    font-size: 0.7rem;
    line-height: 1.45;
}

.profile-photo-controls {
    grid-template-columns: auto minmax(96px, 1fr) auto;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.member-profile-fields {
    gap: 10px 14px;
}

.profile-status-message {
    margin: 12px 0 8px;
}

.profile-save-button {
    min-width: 165px;
}

.profile-password-card summary {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    cursor: pointer;
}

.profile-password-card summary::-webkit-details-marker {
    display: none;
}

.profile-password-card summary::after {
    content: '+';
    margin-left: auto;
    font-family: var(--font-sans);
    font-size: 1.05rem;
}

.profile-password-card[open] summary::after {
    content: '-';
}

.profile-password-card summary svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.profile-password-form {
    margin-top: 16px;
}

.profile-password-form .form-group {
    margin-bottom: 12px;
}

@media (max-width: 820px) {
    .member-profile-panel {
        padding: 16px;
    }

    .member-profile-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .member-profile-heading h2 {
        font-size: 1.72rem;
    }

    .member-profile-heading-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .member-profile-heading p {
        max-width: 205px;
        font-size: 0.78rem;
    }

    .member-profile-layout,
    .member-profile-fields {
        grid-template-columns: 1fr;
    }

    .member-profile-card {
        padding: 14px;
    }

    .profile-photo-zone {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 12px;
        justify-items: initial;
        text-align: left;
    }

    .profile-photo-preview {
        width: 86px;
    }

    .profile-photo-actions {
        justify-content: flex-start;
    }

    .profile-photo-actions .btn,
    .profile-photo-controls .btn {
        min-height: 38px;
        padding: 0 12px;
        font-size: 0.7rem;
    }

    .profile-photo-controls {
        grid-template-columns: auto minmax(70px, 1fr) auto;
    }
}

@media (max-width: 340px) {
    .member-profile-panel {
        margin-bottom: 18px;
        padding: 12px;
    }

    .profile-photo-zone {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .profile-photo-actions {
        justify-content: center;
    }

    .profile-photo-controls {
        gap: 8px;
    }

    .profile-photo-controls .btn {
        padding: 0 10px;
    }
}

/* Mobile profile/header polish awaiting visual approval. */
@media (max-width: 820px) {
    .nav-content {
        gap: 8px;
    }

    .brand-container {
        min-width: 0;
        flex: 1 1 0;
        gap: 9px;
    }

    .brand-info {
        flex: 1 1 auto;
        min-width: 0;
        align-items: flex-start;
        text-align: left;
    }

    .brand-info .logo {
        max-width: none;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: left;
    }

    .header-socials {
        justify-content: flex-start;
        width: 100%;
    }

    .member-profile-header-link {
        position: static;
        order: 2;
        transform: none;
        margin-left: 4px;
        margin-right: 4px;
        max-width: 92px;
        min-width: 0;
        gap: 0;
        overflow: hidden;
    }

    .member-profile-header-link.has-profile-photo {
        width: 36px;
        height: 36px;
        align-self: flex-end;
        margin-bottom: 2px;
        max-width: none;
        overflow: visible;
    }

    .member-profile-header-link.has-profile-photo .member-profile-avatar-link {
        display: inline-grid;
        width: 36px;
        height: 36px;
    }

    .member-profile-header-link.has-profile-photo .header-welcome-msg {
        display: none !important;
    }

    .member-profile-header-link.has-no-profile-photo .member-profile-avatar-link {
        display: none !important;
    }

    .member-profile-header-link.has-no-profile-photo .header-welcome-msg {
        display: inline-block !important;
        max-width: 92px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.78rem !important;
        line-height: 1.1;
        position: static;
        transform: none;
    }

    .menu-toggle {
        order: 3;
        flex: 0 0 auto;
    }

    .member-profile-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 8px 12px;
    }

    .member-profile-heading > div:first-child {
        min-width: 0;
    }

    .member-profile-heading-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        width: 100%;
        align-items: center;
    }

    .member-profile-heading p {
        max-width: none;
        margin: 0;
    }

    .profile-photo-zone {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
        align-items: center;
    }

    .profile-photo-preview {
        width: 72px;
        font-size: 1.45rem;
    }

    .profile-photo-actions {
        align-content: center;
    }
}

@media (max-width: 420px) {
    .header-logo {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }

    .brand-info .logo {
        max-width: none;
    }

    .member-profile-header-link.has-no-profile-photo {
        max-width: 76px;
    }

    .member-profile-header-link.has-no-profile-photo .header-welcome-msg {
        max-width: 76px;
        font-size: 0.72rem !important;
    }
}
