* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', 'Times New Roman', serif;
}

body {
    background-color: #f9f7f4; /* Subtle warm off-white/cream color */
    overflow-x: hidden;
    color: #333;
    line-height: 1.6;
}

/* Import elegant fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500&display=swap');

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

p, input, button, a, blockquote {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Add specific rules for strong and italic text */
strong, b, em, i {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

strong {
    font-style: normal;
    font-weight: 500;
}

/* Testimonial Styles */
.feedback {
    position: fixed;
    bottom: -300px;
    right: 30px;
    left: auto;
    transform: none;
    width: 650px;
    max-width: 90%;
    background-color: white;
    color: #303030;
    border-radius: 20px;
    padding: 40px 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 100;
    font-size: 16px;
    line-height: 1.5;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 20px;
    opacity: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-height: 60vh;
    overflow-y: auto;
}

.feedback.show {
    bottom: 20px;
    opacity: 1;
}

.feedback h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #000;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.feedback p {
    margin-bottom: 10px;
}

.feedback .testimonial-content {
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.7;
    font-style: italic;
    position: relative;
    padding: 10px 25px;
    font-size: 17px;
    color: #444;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.feedback .testimonial-content.active {
    opacity: 1;
    display: block;
}

.feedback .testimonial-content:before {
    content: "\201C";
    font-size: 96px;
    font-family: Georgia, serif;
    position: absolute;
    left: -30px;
    top: -10px;
    color: rgba(0, 0, 0, 0.15);
    line-height: 1;
}

.feedback .testimonial-content:after {
    content: "\201D";
    font-size: 96px;
    font-family: Georgia, serif;
    position: absolute;
    bottom: -20px;
    right: -5px;
    color: rgba(0, 0, 0, 0.15);
    line-height: 0;
}

.feedback .testimonial-author {
    font-style: normal;
    font-weight: 500;
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

.feedback .testimonial-author:before {
    content: "— ";
}

.feedback .close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    color: #777;
    z-index: 10;
}

.feedback .close-button:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.feedback:before {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 30px;
    left: auto;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent;
}

@media (max-width: 768px) {
    .feedback {
        width: 85%;
        font-size: 14px;
        padding: 15px;
        max-height: 40vh;
    }
    .feedback .testimonial-content:before {
        font-size: 48px;
        left: -10px;
        top: -5px;
    }
    .feedback .testimonial-content:after {
        font-size: 48px;
        bottom: -10px;
        right: 0px;
    }
    .feedback .testimonial-author {
        font-size: 12px;
        margin-top: 10px;
    }
}

/* 404 Page Fix - Override content opacity */
.error404 .content {
    opacity: 1;
}

/* 404 Page specific alignment */
.error404 .simple-header,
.error404 .text-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#fixed-logo text,
#logo text{
    font-weight: 400;
}

#intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200000; /* Above header and all other elements during intro animation */
    transition: opacity 0.8s ease-out;
}

/* Logo container styles moved to header section */

#logo-container a {
    text-decoration: none;
    border: none;
    outline: none;
}

#fixed-logo {
    width: 240px;
    height: 60px;
}

#logo {
    width: 250px;
    height: 250px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 1.5s ease-out;
    position: relative;
    z-index: 3;
}

#logo-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    /* Background color will be set dynamically from ACF or random generation */
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(0.8);
    transform-origin: center center;
    transition: transform 2.2s cubic-bezier(0.19, 1, 0.22, 1), opacity 1.8s ease-out;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.menu-button {
    cursor: pointer;
    z-index: 100;
    font-weight: 400;
    letter-spacing: 2px;
    opacity: 1;
    transition: opacity 0.5s ease-out, transform 0.3s ease, background-color 0.3s ease;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-family: 'Playfair Display', serif;
    position: relative;
}

.menu-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    background-color: white;
}

.social-icons {
    z-index: 100;
    display: flex;
    gap: 15px;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.social-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 1;
}

.full-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 999960; /* Above header but below WordPress admin bar (99999) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    padding: 8vh 0;
    box-sizing: border-box;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.menu-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.menu-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 60px;
    width: 50%;
}

.menu-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #777;
    text-align: left;
    width: 100%;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    text-transform: uppercase;
}

.full-menu a {
    margin: 6px 0;
    font-size: clamp(20px, 3vw, 30px);
    text-decoration: none;
    color: #222;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-family: 'Playfair Display', serif;
    text-align: left;
    display: block;
    width: 100%;
    position: relative;
    padding-left: 0;
    transform-origin: left center;
}

.full-menu a:hover {
    transform: scale(1.05);
    font-weight: 500;
    color: #000;
    padding-left: 8px;
}

.full-menu a.active {
    font-weight: 400;
    transform: scale(1.05);
    position: relative;
    color: #000;
    padding-left: 0;
}

.full-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: black;
}

.full-menu a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: black;
    transition: width 0.3s ease;
}

.full-menu a:hover::before {
    width: 40px;
}

.close-menu {
    position: absolute;
    top: 10px;
    right: 30px;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    background-color: transparent;
    z-index: 1000;
}

.close-menu:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

.content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-out;
    width: 100%;
    position: relative;
    z-index: 60;
}

.feeling-input {
    margin-top: 0;
    text-align: center;
    transition: all 0.5s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    width: 100%;
    position: relative;
    z-index: 70;
}

.form-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 70;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feeling-input h2 {
    margin-bottom: 15px;
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.2;
}

.feeling-input h3 {
    margin-bottom: 30px;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.6px;
    color: #555;
    line-height: 1.4;
    max-width: 600px;
}

input {
    padding: 10px 15px;
    width: 300px;
    font-size: 16px;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    background-color: transparent;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
}

input:focus {
    outline: none;
    border-bottom: 1px solid #000;
}

textarea {
    padding: 22px;
    width: 90%;
    max-width: 600px;
    min-height: 120px;
    height: auto;
    font-size: 17px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, height 0.2s ease;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
    resize: none;
    margin: 10px auto 30px;
    line-height: 1.6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: block;
    overflow: hidden; /* Prevent scrollbars */
    word-wrap: break-word;
    white-space: pre-wrap;
    box-sizing: border-box;
}

textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Placeholder styling */
textarea::placeholder {
    color: rgba(0, 0, 0, 0.6);
    transition: opacity 0.3s ease;
    overflow: hidden;
    white-space: pre-wrap;
    text-align: center;
    line-height: 1.6;
}

textarea:focus::placeholder {
    opacity: 0;
}

.color-results {
    display: block;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow: visible;
    transition: all 0.5s ease-out;
    box-sizing: border-box;
    padding: 0;
    z-index: 50;
    opacity: 0.6; /* Always slightly visible */
    pointer-events: none; /* Don't interact with bubbles by default */
    perspective: 1000px; /* Improve 3D rendering */
}

.color-results.active {
    opacity: 1;
    pointer-events: auto; /* Allow interaction when active */
}

.back-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    z-index: 60;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateX(-50%) translateY(-2px);
}

/* Bubble animations and styling */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeIn {
    animation: fadeIn 1s ease-in-out forwards;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, z-index 0.1s;
    overflow: hidden;
    z-index: 1;
    will-change: transform;
    backface-visibility: hidden;
    transform-origin: center center;
    box-sizing: border-box;
}

.color-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    backface-visibility: hidden;
}

.bubble:hover {
    z-index: 55;
}

.bubble:hover .color-overlay {
    opacity: 1;
}

.bubble-text {
    opacity: 0; /* Hidden by default */
    padding: 10%;
    text-align: center;
    /* color: white; - Removed: Title color is now calculated dynamically based on bubble background */
    transition: opacity 0.3s ease;
    width: 100%;
    height: 100%;
    overflow: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute; /* Position over the bubble */
    top: 0;
    left: 0;
    border-radius: 50%; /* Match bubble shape */
    pointer-events: none; /* Don't interfere with bubble clicks when hidden */
}

.bubble:hover .bubble-text {
    opacity: 1; /* Full opacity when hovered - no transparency */
    pointer-events: auto; /* Allow interactions when visible */
}

.bubble-text h3 {
    margin: 0 0 5%;
    font-size: calc(0.9rem + 0.4vmin);
    font-weight: 700;
    /* text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 8px rgba(0, 0, 0, 0.2); - Removed: No longer using text shadows */
    line-height: 1.2;
    max-width: 100%;
    word-wrap: break-word;
    hyphens: auto;
    /* Removed opacity overrides - no longer needed since text is outside overlay */
}

.bubble-text p {
    margin: 0;
    font-size: calc(0.8rem + 0.3vmin);
    font-weight: 500;
    /* text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 6px rgba(0, 0, 0, 0.15); - Removed: No longer using text shadows */
    line-height: 1.3;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .bubble-text p {
        display: none;
    }
    
    .bubble-text h3 {
        margin: 0;
        font-size: calc(0.9rem + 0.4vmin);
        max-width: 100%;
        word-break: break-word;
        hyphens: auto;
        padding: 0 5px;
        /* Removed opacity overrides - no longer needed since text is outside overlay on mobile */
    }
    
    .bubble-text {
        opacity: 0; /* Hidden by default on mobile too */
        width: 100%;
        padding: 5%;
    }
    
    .bubble:active .bubble-text,
    .bubble.tapped .bubble-text {
        opacity: 1; /* Full opacity when tapped - no transparency */
        pointer-events: auto; /* Allow interactions when visible on mobile */
    }
    
    #fixed-logo {
        width: 160px;
        height: 50px;
    }
    
    .menu-button {
        font-size: 14px;
        padding: 5px 10px;
        top: 15px;
    }
    
    .social-icon {
        width: 20px;
        height: 20px;
    }
    
    .social-icons {
        top: 15px;
    }
    
    #logo-container {
        top: 10px;
        height: 50px;
    }
    
    textarea {
        max-height: 150px;
        font-size: 15px;
        padding: 15px;
    }
    
    /* Mobile menu adjustments */
    .menu-content {
        flex-direction: column;
        align-items: start;
        padding: 0 20px;
    }
    
    .menu-column {
        width: 100%;
        max-width: 280px;
        margin: 10px 0;
    }
    
    .menu-title {
        font-size: 16px;
        margin-bottom: 14px;
        letter-spacing: 1.5px;
    }
    
    .full-menu a {
        font-size: clamp(18px, 5vw, 24px);
        margin: 5px 0;
        text-align: center;
        transform-origin: center;
        padding-left: 0;
    }
    
    .full-menu a:hover {
        padding-left: 0;
        transform: scale(1.05);
        font-weight: 500;
        color: #000;
    }
    
    .full-menu a.active {
        font-weight: 400;
        padding-left: 0;
    }
    
    .full-menu a.active::after {
        left: 0 !important;
        transform: none !important;
        width: 40px;
    }
    
    .full-menu a::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .full-menu a:hover::before {
        width: 40px;
    }
    
    .close-menu {
        top: 5px;
        right: 5px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    /* Mobile adjustments for single page */
    body.wp-singular #logo-container {
        top: 10px;
        height: 50px;
    }
    
    body.wp-singular #fixed-logo {
        width: 160px;
        height: 50px;
    }
    
    body.wp-singular .social-icons,
    body.wp-singular .menu-button {
        top: 15px;
    }
}

.color-box {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.color-box:hover {
    transform: scale(1.05);
}

.loading {
    display: none;
    margin: 10px auto 30px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 600px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    justify-content: center;
    align-items: center;
    z-index: 70;
    flex-direction: column;
    gap: 18px;
}

.loading-message {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #333;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 5px;
    text-align: center;
}

.dot-pulse {
    position: relative;
    left: -9999px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: black;
    color: black;
    box-shadow: 9999px 0 0 -5px black;
    animation: dot-pulse 1.5s infinite linear;
    animation-delay: 0.25s;
}

.dot-pulse::before, .dot-pulse::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: black;
    color: black;
}

.dot-pulse::before {
    box-shadow: 9984px 0 0 -5px black;
    animation: dot-pulse-before 1.5s infinite linear;
    animation-delay: 0s;
}

.dot-pulse::after {
    box-shadow: 10014px 0 0 -5px black;
    animation: dot-pulse-after 1.5s infinite linear;
    animation-delay: 0.5s;
}

@keyframes dot-pulse-before {
    0% {
        box-shadow: 9984px 0 0 -5px black;
    }
    30% {
        box-shadow: 9984px 0 0 2px black;
    }
    60%, 100% {
        box-shadow: 9984px 0 0 -5px black;
    }
}

@keyframes dot-pulse {
    0% {
        box-shadow: 9999px 0 0 -5px black;
    }
    30% {
        box-shadow: 9999px 0 0 2px black;
    }
    60%, 100% {
        box-shadow: 9999px 0 0 -5px black;
    }
}

@keyframes dot-pulse-after {
    0% {
        box-shadow: 10014px 0 0 -5px black;
    }
    30% {
        box-shadow: 10014px 0 0 2px black;
    }
    60%, 100% {
        box-shadow: 10014px 0 0 -5px black;
    }
}

/* Text Content Styles (used in single.html) */
.content-wrapper {
    padding: 30px 15px 60px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-container {
    width: 100%;
    max-width: 800px;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
}

.text-container h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    margin-top: 40px;
    color: #222;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.text-container h2:first-of-type {
    margin-top: 20px;
}

.text-container p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    line-height: 1.8;
}

.text-container ul, .text-container ol {
    margin-bottom: 30px;
    margin-left: 20px;
}

.text-container li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
    list-style-type: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 0.3px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.text-container li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ccc;
}

.text-container blockquote {
    border-left: 4px solid #ccc;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

.text-container img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 4px;
}

/* Footer Styles for Single Pages */
footer {
    /* background-color: #f8f8f8; */
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    text-decoration: none;
    color: #333;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-social .social-icon {
    width: 28px;
    height: 28px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-social .social-icon:hover {
    opacity: 1;
}

.copyright {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive adjustments for single page layout */
@media (max-width: 768px) {
    .simple-header h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .simple-header {
        padding: 120px 15px 30px;
        margin: 0 auto;
    }
    
    /* Admin bar adjustments for mobile simple header */
    body.admin-bar .simple-header {
        padding-top: 166px; /* 120px + 46px mobile admin bar */
    }
    
    .content-wrapper {
        padding: 60px 15px 40px;
    }
    
    .text-container h2 {
        font-size: 1.7rem;
        margin-top: 35px;
        margin-bottom: 12px;
    }
    
    .text-container p, .text-container li {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .text-container li::before {
        top: 10px;
    }
    
    .text-container ul, .text-container ol {
        margin-bottom: 25px;
    }
}

@media screen and (min-width: 830px) {
    .simple-header {
        padding: 150px 0 40px !important;
    }
}

/* Specific styles for single page layout */
body.wp-singular #logo-container {
    transform: translateY(0); /* Override the -100px transform from the default style */
    top: 0!important;
    height: 60px;
    position: absolute;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
}

/* Admin bar adjustments for single pages */
body.wp-singular.admin-bar #logo-container {
    top: 32px!important;
}

@media screen and (max-width: 782px) {
    body.wp-singular.admin-bar #logo-container {
        top: 46px!important;
    }
}

body.wp-singular #fixed-logo {
    width: 240px;
    height: 60px;
}

body.wp-singular .social-icons,
body.wp-singular .menu-button {
    opacity: 1; /* Make sure these elements are visible */
}

body.wp-singular .menu-button {
    font-weight: 400;
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
}

body.wp-singular .social-icons {
    opacity: 1; /* Make sure these elements are visible */
}

body.wp-singular .content-wrapper {
    padding-top: 10px;
}

/* Make sure the opacity is visible for all header elements in single-page layout */
body.wp-singular #logo-container,
body.wp-singular .social-icons,
body.wp-singular .menu-button {
    opacity: 1 !important; /* Force visibility with !important */
}

/* Simple Header (used in single.html) */
.simple-header {
    padding: 150px 15px 40px;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

/* Admin bar adjustments for simple header */
body.admin-bar .simple-header {
    padding-top: 182px; /* 150px + 32px admin bar */
}

@media screen and (max-width: 782px) {
    body.admin-bar .simple-header {
        padding-top: 196px; /* 150px + 46px mobile admin bar */
    }
}

.simple-header h1 {
    font-size: 2.8rem;
    color: #222;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.3;
}

.simple-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Make sure letter-spacing is consistent across all pages */
body.wp-singular .full-menu a {
    letter-spacing: 1px;
    margin: 6px 0;
    font-size: clamp(20px, 3vw, 30px);
    text-align: left;
    padding-left: 0;
    transform-origin: left center;
}

/* Make hover animation consistent across all pages */
body.wp-singular .full-menu a:hover {
    transform: scale(1.05);
    font-weight: 500;
    color: #000;
    padding-left: 0;
}

body.wp-singular .full-menu a.active {
    font-weight: 400;
    padding-left: 0;
}

@media (max-width: 768px) {
    body.wp-singular .full-menu a {
        margin: 5px 0;
        font-size: clamp(18px, 5vw, 24px);
        text-align: center;
        transform-origin: center;
    }
    
    body.wp-singular .full-menu a:hover {
        padding-left: 0;
        transform: scale(1.05);
    }
    
    body.wp-singular .full-menu a.active {
        font-weight: 400;
        padding-left: 0;
    }
}

/* Button container for feeling input */
.button-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 5px;
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
    max-width: 600px;
}

/* Feeling buttons */
.feeling-btn {
    padding: 13px 28px;
    border: none;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    letter-spacing: 1px;
    min-width: 130px;
}

.feeling-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.feeling-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Skip button styling */
.skip-btn {
    background-color: rgba(150, 150, 150, 0.8);
}

/* Media queries for button size on mobile */
@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }
    
    .feeling-btn {
        width: 85%;
        max-width: 260px;
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Media queries for responsive text hierarchy */
@media (max-width: 768px) {
    .feeling-input h2 {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .feeling-input h3 {
        font-size: 22px;
        margin-bottom: 24px;
    }
    
    textarea {
        font-size: 16px;
        padding: 18px;
        margin: 8px auto 25px;
    }
    
    .button-container {
        flex-direction: column;
        gap: 14px;
        align-items: center;
        margin-top: 0;
    }
    
    .feeling-btn {
        width: 85%;
        max-width: 260px;
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .loading {
        margin: 8px auto 25px;
        height: 110px;
    }
    
    .loading-message {
        font-size: 16px;
    }
}

/* Audio Control Styles */
.audio-control {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.audio-control:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.9);
}

.audio-control svg {
    width: 24px;
    height: 24px;
    color: #333;
    transition: color 0.2s ease;
}

.audio-control.muted svg {
    color: #666;
}

/* Add pulsing animation for default muted state */
.audio-control:not(.user-interacted) {
    animation: pulse 2s infinite;
}

/* Mobile-specific audio prompt - simplified */
.audio-control.mobile-audio-prompt {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}


/* Mobile-specific improvements */
@media (max-width: 768px) {
    .audio-control {
        width: 50px;
        height: 50px;
        bottom: 25px;
        left: 25px;
        touch-action: manipulation; /* Prevent double-tap zoom */
    }
    
    .audio-control svg {
        width: 28px;
        height: 28px;
    }
    
    .audio-control:active {
        transform: scale(0.95);
    }
}

/* WordPress Admin Bar Adjustments */
/* Adjust header bar and logo container for admin bar */
body.admin-bar #header-bar {
    top: 32px !important; /* Admin bar height */
}

body.admin-bar #logo-container {
    top: 32px; /* Admin bar height */
}

/* Adjust full menu overlay */
body.admin-bar .full-menu {
    top: 32px; /* Admin bar height */
    height: calc(100vh - 32px);
}

/* Mobile admin bar adjustments (admin bar is 46px on mobile) */
@media screen and (max-width: 782px) {
    body.admin-bar #header-bar {
        top: 46px !important;
    }
    
    body.admin-bar #logo-container {
        top: 46px;
    }
    
    body.admin-bar .full-menu {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

/* WPML Language Switcher Styles */
.wpml-ls {
    z-index: 100;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.wpml-ls-legacy-dropdown {
    width: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    background: transparent;
    padding: 0;
}

.wpml-ls-legacy-dropdown a,
.wpml-ls-legacy-dropdown .wpml-ls-item-toggle,
.wpml-ls-legacy-dropdown ul a,
.wpml-ls-legacy-dropdown .wpml-ls-sub-menu a {
    font-family: 'Playfair Display', serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    padding: 10px 16px !important;
    background-color: rgba(255,255,255,0.95) !important;
    color: #222 !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    transition: opacity 0.5s ease-out, transform 0.3s ease, background-color 0.3s ease !important;
    text-decoration: none !important;
    display: block !important;
}

.wpml-ls-legacy-dropdown a:hover,
.wpml-ls-legacy-dropdown .wpml-ls-item-toggle:hover {
    background-color: white !important;
    color: #000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px) !important;
}

.wpml-ls-legacy-dropdown ul,
.wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wpml-ls-legacy-dropdown ul a:hover,
.wpml-ls-legacy-dropdown .wpml-ls-sub-menu a:hover {
    background: #f9f7f4 !important;
    color: #000 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
    transform: translateY(-2px) scale(1.03) !important;
}

.wpml-ls-legacy-dropdown .wpml-ls-item-toggle {
    cursor: pointer;
}

.wpml-ls-legacy-dropdown .wpml-ls-item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Make sure the language switcher is visible on single pages */
body.wp-singular .wpml-ls {
    opacity: 1 !important;
}

/* Mobile adjustments for language switcher */
@media (max-width: 768px) {
    .wpml-ls-legacy-dropdown a {
        font-size: 13px !important;
        padding: 8px 12px !important;
    }
}

/* Admin bar adjustments for language switcher - not needed since we removed fixed positioning */

.text-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 32px;
    margin-bottom: 12px;
    color: #333;
}

.text-container h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.4px;
    margin-top: 28px;
    margin-bottom: 10px;
    color: #444;
}

.text-container h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-top: 24px;
    margin-bottom: 8px;
    color: #555;
}

/* Header adjustments for mobile */
@media (max-width: 600px) {
    #logo-container {
        height: 48px;
    }
    #fixed-logo {
        width: 140px;
        height: 48px;
    }
    .menu-button {
        font-size: 16px;
        padding: 12px 18px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .social-icons {
        gap: 10px;
    }
    .social-icon {
        width: 28px;
        height: 28px;
    }
}

/* Prevent overlap between language switcher and menu button - not needed since we're using header-bar layout */

/* Increase tap area for close button and menu button */
.menu-button, .close-menu {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- MENU: Prevent body scroll when menu is open --- */
body.menu-open {
    overflow: hidden !important;
    height: 100vh;
    position: fixed;
    width: 100vw;
}

/* --- MENU & LANG: Reduce size on mobile --- */
@media (max-width: 600px) {
    .menu-button {
        font-size: 14px;
        padding: 8px 12px;
        min-width: 36px;
        min-height: 36px;
    }
}

/* Header flex layout for better alignment */
#header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99997 !important; /* Below WordPress admin bar and full menu */
    background: transparent;
    padding: 0 12px;
    height: 60px;
    box-sizing: border-box;
}

/* Ensure logo container aligns with header bar */
#logo-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99996; /* Below full menu and admin bar */
    transform: translateY(0);
    transition: transform 0.8s ease-out;
}

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

@media (min-width: 601px) {
    .header-actions {
        gap: 8px;
    }
}

/* Remove fixed positioning for menu-button, wpml-ls, and social-icons in header context */
#header-bar .menu-button,
#header-bar .wpml-ls,
#header-bar .social-icons {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
}

#wpadminbar {
    z-index: 999961 !important; /* Below WordPress admin bar (99999) */
}

/* Make language selector and menu button smaller and separated on mobile */
@media (max-width: 600px) {
    #header-bar {
        height: 48px;
        padding: 0 6px;
    }
    #logo-container {
        height: 48px;
    }
    #fixed-logo {
        width: 120px;
        height: 48px;
    }
    .wpml-ls {
        margin-right: 6px;
    }
    .menu-button {
        font-size: 13px;
        padding: 6px 10px;
        min-width: 32px;
        min-height: 32px;
        margin-left: 0;
    }
    .social-icons {
        gap: 8px;
    }
    .social-icon {
        width: 22px;
        height: 22px;
    }
}

/* Admin bar adjustments no longer needed since we removed fixed positioning */

/* Ensure menu, toggle, and icon buttons are always above content but below admin bar */
.full-menu,
.menu-button,
.wpml-ls,
.social-icons {
    z-index: 999960 !important; /* Below WordPress admin bar (99999) */
}

/* Make menu button and language toggle the same size and style */
.menu-button,
.wpml-ls-item-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    padding: 8px 16px;
    min-width: 44px;
    min-height: 44px;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

/* Add menu icon styles */
.menu-button::before {
    content: '';
    display: none;
    width: 20px;
    height: 2px;
    background: #333;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Perfect centering */
    box-shadow: 0 8px 0 0 #333, 0 -8px 0 0 #333; /* Even spacing above and below */
}

.menu-button:hover,
.wpml-ls-item-toggle:hover {
    background: #faf9f7;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Language dropdown opens below the toggle, not above */
.wpml-ls-legacy-dropdown {
    position: relative;
}
.wpml-ls-sub-menu {
    position: absolute !important;
    left: 0;
    top: 100% !important;
    margin-top: 2px;
    min-width: 100%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    background: #fff;
    z-index: 100004; /* Above all header elements */
}

/* Prevent jumping up on open */
.wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
    animation: none !important;
    transform: none !important;
}

@media (max-width: 768px) {
    .full-menu .menu-items {
        padding-left: 0;
    }
    .full-menu a,
    body.wp-singular .full-menu a {
        text-align: left !important;
        padding-left: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
        font-size: 19px !important;
        transform-origin: left !important;
        transition: none !important;
        transform: none !important;
        background: none !important;
    }
    .full-menu .menu-column {
        margin-bottom: 30px;
    }
    .full-menu a.active {
        font-weight: 600;
        color: #111;
        background: none;
    }
    .full-menu a.active::after {
        content: '';
        display: block;
        margin: 0;
        width: 40px;
        height: 1.5px;
        background: #111;
        border-radius: 0;
        position: static;
        box-shadow: none;
    }
    .full-menu a::before {
        display: none;
    }
    .menu-title {
        padding-left: 0;
        margin-bottom: 8px;
    }
    .menu-column {
        margin: 0 0 10px 0;
    }
}

/* Add menu icon styles */
.menu-button::before {
    content: '';
    display: none;
    width: 20px;
    height: 2px;
    background: #333;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Perfect centering */
    box-shadow: 0 8px 0 0 #333, 0 -8px 0 0 #333; /* Even spacing above and below */
}

@media (max-width: 600px) {
    .menu-button {
        padding: 6px;
        min-width: 36px;
        min-height: 36px;
        font-size: 0; /* Hide text */
    }
    
    .menu-button::before {
        display: block; /* Show icon */
    }
    
    .wpml-ls-item-toggle {
        padding: 6px 10px;
        min-width: 36px;
        min-height: 36px;
        font-size: 13px;
    }
    
    #header-bar {
        padding: 0 8px;
    }
    
    .header-actions {
        gap: 0px;
    }
}

@media (max-width: 600px) {
    .wpml-ls-legacy-dropdown a,
    .wpml-ls-legacy-dropdown .wpml-ls-item-toggle,
    .wpml-ls-legacy-dropdown ul a,
    .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a {
        padding: 8px 10px !important;
        font-size: 13px !important;
        letter-spacing: 1px !important;
    }
    
    .wpml-ls-item-toggle {
        min-width: 32px !important;
        min-height: 32px !important;
    }
}