/* Cleantime White on Black Theme */
.cleantime-theme {
    --primary-color: #ffffff;
    --secondary-color: #f0f0f0;
    --background-color: #000000;
    --text-color: #ffffff;
    --card-background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --border-color: #ffffff;
}

/* ===========================
   BASE STYLES AND RESET
   ===========================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000; /* Black background */
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* White text */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ===========================
   NAVIGATION STYLES
   ===========================*/

/* Cleantime Navigation Bar */
.cleantime-nav {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 1px solid #ffffff;
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Logo container */
.nav-logo {
    position: relative;
    margin-right: 40px;
}

/* Logo text style - white theme */
.logo-text {
    font-family: 'Arial Black', sans-serif;
    font-size: 24px;
    color: #333333; /* Dark gray base */
    position: relative;
    white-space: nowrap;
}

/* Animated overlay for logo */
.logo-text::before {
    content: 'CLEANTIME';
    position: absolute;
    top: 0;
    left: 0;
    font-family: 'Arial Black', sans-serif;
    font-size: 24px;
    white-space: nowrap;
    
    /* Animation properties */
    clip-path: inset(0 100% 0 0);
    animation: cleanWaveEffect 45s infinite;
}

/* Keyframes for logo clean wave effect */
@keyframes cleanWaveEffect {
    0% {
        color: #ffffff;
        text-shadow: 0 0 3px #ffffff, 0 0 6px #f0f0f0, 0 0 9px #e0e0e0;
        clip-path: inset(0 100% 0 0%);
    }
    11.11% {
        color: #f0f0f0;
        text-shadow: 0 0 4px #ffffff, 0 0 7px #f0f0f0, 0 0 10px #e0e0e0;
        clip-path: inset(0 0% 0 0%);
    }
    22.22% {
        color: #e0e0e0;
        text-shadow: 0 0 3px #f0f0f0, 0 0 6px #e0e0e0, 0 0 9px #d0d0d0;
        clip-path: inset(0 0% 0 0%);
    }
    33.33% {
        color: #d0d0d0;
        text-shadow: 0 0 2px #e0e0e0, 0 0 5px #d0d0d0, 0 0 7px #c0c0c0;
        clip-path: inset(0 0% 0 0%);
    }
    44.44% {
        color: #c0c0c0;
        text-shadow: 0 0 2px #d0d0d0, 0 0 4px #c0c0c0, 0 0 6px #b0b0b0;
        clip-path: inset(0 0% 0 0%);
    }
    55.56% {
        color: #b0b0b0;
        text-shadow: 0 0 1px #c0c0c0, 0 0 3px #b0b0b0, 0 0 5px #a0a0a0;
        clip-path: inset(0 0% 0 0%);
    }
    66.67% {
        color: #a0a0a0;
        text-shadow: 0 0 1px #b0b0b0, 0 0 2px #a0a0a0;
        clip-path: inset(0 20% 0 0%);
    }
    77.78% {
        color: #909090;
        text-shadow: 0 0 1px #a0a0a0;
        clip-path: inset(0 60% 0 0%);
    }
    88.89% {
        color: #808080;
        text-shadow: none;
        clip-path: inset(0 90% 0 0%);
    }
    100% {
        color: #808080;
        text-shadow: none;
        clip-path: inset(0 100% 0 0%);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

/* Mobile Menu Toggle Button (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 24px;
    color: #cccccc; /* Light gray text */
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    transition: all 0.3s ease;
    border-right: 1px solid #555555; /* Gray border */
}

.nav-item:last-child .nav-link {
    border-right: none;
}

.nav-link:hover {
    color: #ffffff; /* White on hover */
    background: rgba(255, 255, 255, 0.1); /* Subtle white background */
}

/* Subtle underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, #f0f0f0); /* White gradient */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Apple-style Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid #555555;
    border-radius: 12px;
    padding: 24px;
    width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
    margin-top: 8px;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #cccccc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-1px);
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.dropdown-item:hover::before {
    left: 100%;
}

/* Smooth arrow indicator */
.nav-dropdown .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, #f0f0f0);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-dropdown:hover .nav-link::after {
    width: 80%;
}

/* ===========================
   MAIN CONTENT AREA
   ===========================*/

.main-content {
    padding-top: 80px;
    flex: 1;
}

/* ===========================
   FOOTER STYLES
   ===========================*/

/* Cleantime Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 2px solid #ffffff;
    padding: 60px 20px 20px;
    margin-top: 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    color: #cccccc;
}

.footer-logos {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.footer-logo__image {
    max-width: 150px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Responsive styles for footer logos */
@media (max-width: 768px) {
    .footer-logos {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .footer-logo__image {
        max-width: 120px;
        max-height: 50px;
    }
}

.footer-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-address,
.footer-phone,
.footer-email {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-email a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email a:hover {
    color: #f0f0f0;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-icon::before {
    z-index: 2;
    position: relative;
}

.social-icon.facebook {
    background: #1877F2;
}

.social-icon.facebook::before {
    content: "f";
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.social-icon.linkedin {
    background: #0A66C2;
}

.social-icon.linkedin::before {
    content: "in";
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
}

.social-icon.twitter {
    background: #000000;
}

.social-icon.twitter::before {
    content: "𝕏";
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
}

.social-icon.instagram::before {
    content: "📷";
    font-size: 20px;
}

.footer-links {
    border-top: 1px solid #555555;
    padding-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f0f0f0;
}

.footer-bottom {
    border-top: 1px solid #555555;
    padding-top: 20px;
    text-align: center;
}

.footer-copyright {
    color: #cccccc;
    font-size: 0.9rem;
}

/* ===========================
   RESPONSIVE DESIGN
   ===========================*/

@media (max-width: 768px) {
    .nav-container {
        padding: 10px 20px;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .nav-logo {
        margin-right: 0;
        order: 2;
    }

    /* Hamburger Button */
    .mobile-menu-toggle {
        display: flex;
        z-index: 2001; /* Above the overlay */
        order: 1;
        flex-shrink: 0;
    }

    /* Full Screen Overlay */
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #000000;
        padding: 80px 20px 40px; /* Top padding clears fixed header */
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smooth ease-out */
        z-index: 2000;
        overflow-y: auto;
        margin: 0;
        border: none;
        gap: 0;
    }

    /* Active State */
    .mobile-menu-open .nav-menu {
        transform: translateX(0);
        box-shadow: none; /* Remove any shadow from desktop styles */
    }

    /* Nav Items */
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Staggered animation for items */
    .mobile-menu-open .nav-item {
        opacity: 1;
        transform: translateY(0);
    }
    
    .mobile-menu-open .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .mobile-menu-open .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .mobile-menu-open .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .mobile-menu-open .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .mobile-menu-open .nav-item:nth-child(5) { transition-delay: 0.3s; }

    .nav-link {
        display: block;
        padding: 20px 0;
        font-size: 1.5rem; /* Larger font for mobile */
        font-weight: 500;
        color: #ffffff;
        border: none;
        text-decoration: none;
        width: 100%;
        text-align: left;
    }
    
    /* Only affect NON-dropdown nav links on hover */
    .nav-item:not(.nav-dropdown) > .nav-link:hover {
        background: transparent;
        color: #cccccc;
    }
    
    /* Dropdown parent links should not change color on hover in mobile */
    .nav-dropdown > .nav-link {
        color: #ffffff;
    }
    
    .nav-dropdown > .nav-link:hover {
        color: #ffffff; /* Keep white, don't fade */
    }
    
    /* Remove desktop underline */
    .nav-link::after {
        display: none !important;
    }

    /* Accordion Styles */
    .nav-dropdown .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Accordion Indicator */
    .nav-dropdown .nav-link::after {
        content: '+';
        display: block !important;
        position: static;
        transform: none;
        width: auto;
        height: auto;
        background: none;
        font-size: 1.5rem;
        font-weight: 300;
        transition: transform 0.3s ease;
    }

    .nav-dropdown.dropdown-open .nav-link::after {
        transform: rotate(45deg);
    }

    /* Dropdown Content (Accordion Body) */
    .dropdown-content {
        position: static;
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none !important; /* Override desktop transform */
        transition: max-height 0.3s ease-in-out;
        margin: 0;
        border-radius: 0;
    }

    .nav-dropdown.dropdown-open .dropdown-content {
        max-height: 1000px; /* Allow expansion */
        transform: none !important; /* Override desktop transform on hover */
    }
    
    /* Override desktop hover transform */
    .nav-dropdown:hover .dropdown-content {
        transform: none !important;
    }

    .dropdown-grid {
        display: flex;
        flex-direction: column;
        padding: 10px 0 20px 0; /* No extra padding on container */
        gap: 5px;
    }

    .dropdown-item {
        padding: 12px 20px 12px 40px; /* More left padding to indent submenu items */
        color: #cccccc !important; /* Force color fix */
        font-size: 1.1rem;
        background: transparent;
        opacity: 1 !important;
        visibility: visible !important;
        border: none;
        text-align: left; /* Ensure text aligns left */
        display: block;
        width: 100%;
        box-sizing: border-box; /* Include padding in width calculation */
    }

    .dropdown-item:hover,
    .dropdown-item:active {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
        opacity: 1 !important;
    }
    
    /* Remove hover effect element */
    .dropdown-item::before {
        display: none !important;
    }

    .main-content {
        padding-top: 80px;
    }

    /* Footer Social Icons Mobile Styles */
    .social-links {
        gap: 12px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .social-icon.linkedin::before {
        font-size: 14px;
    }

    .social-icon.instagram::before {
        font-size: 18px;
    }
}

/* Very small screens - reduce padding and logo size */
@media (max-width: 480px) {
    .nav-container {
        padding: 10px 10px;
        gap: 10px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-text::before {
        font-size: 18px;
    }
}

/* Gallery specific styling for Cleantime */
.cleantime-theme .gallery-container {
    background: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.cleantime-theme .person-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.cleantime-theme .person-card:hover {
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.cleantime-theme .person-name {
    color: var(--primary-color);
}

.cleantime-theme .person-title {
    color: var(--secondary-color);
}

.cleantime-theme .contact-item a {
    color: var(--primary-color);
}

.cleantime-theme .contact-item a:hover {
    color: var(--secondary-color);
}

/* Button styling for Cleantime */
.cleantime-theme .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: #000000;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.cleantime-theme .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Typography for Cleantime */
.cleantime-theme h1, .cleantime-theme h2, .cleantime-theme h3 {
    color: var(--primary-color);
}

.cleantime-theme p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Links for Cleantime */
.cleantime-theme a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.cleantime-theme a:hover {
    color: var(--secondary-color);
}

/* ===========================
   CONTENT LAYOUT STYLES
   ===========================*/

.body-content,
.cta-content,
.flexible-content {
    padding: 40px 20px;
    text-align: center;
    max-width: 1024px;
    margin: 0 auto;
}

/* Alternating backgrounds for flexible content blocks */
.flexible-content > *:nth-child(odd) {
    background: #333333 !important;
    background-color: #333333 !important;
    margin: 0 -20px !important;
    padding: 40px 20px !important;
    border-left: 3px solid rgba(255, 255, 255, 0.3) !important;
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}

.flexible-content > *:nth-child(even) {
    background: #000000 !important;
    background-color: #000000 !important;
    margin: 0 -20px !important;
    padding: 40px 20px !important;
    border-left: 3px solid rgba(255, 255, 255, 0.15) !important;
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}

/* Alternative approach with class-based targeting */
.flexible-content .rich-text-block:nth-of-type(odd),
.flexible-content .heading-block:nth-of-type(odd),
.flexible-content .image-block:nth-of-type(odd),
.flexible-content .quote-block:nth-of-type(odd),
.flexible-content .text-with-image-block:nth-of-type(odd),
.flexible-content .cta-button-block:nth-of-type(odd),
.flexible-content .spacer-block:nth-of-type(odd),
.flexible-content .video-embed-block:nth-of-type(odd),
.flexible-content .text-with-video-block:nth-of-type(odd),
.flexible-content .raw-embed-block:nth-of-type(odd),
.flexible-content .text-with-raw-embed-block:nth-of-type(odd) {
    background: #333333 !important;
    background-color: #333333 !important;
    margin: 0 -20px !important;
    padding: 40px 20px !important;
    border-left: 3px solid rgba(255, 255, 255, 0.3) !important;
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}

.flexible-content .rich-text-block:nth-of-type(even),
.flexible-content .heading-block:nth-of-type(even),
.flexible-content .image-block:nth-of-type(even),
.flexible-content .quote-block:nth-of-type(even),
.flexible-content .text-with-image-block:nth-of-type(even),
.flexible-content .cta-button-block:nth-of-type(even),
.flexible-content .spacer-block:nth-of-type(even),
.flexible-content .video-embed-block:nth-of-type(even),
.flexible-content .text-with-video-block:nth-of-type(even),
.flexible-content .raw-embed-block:nth-of-type(even),
.flexible-content .text-with-raw-embed-block:nth-of-type(even) {
    background: #000000 !important;
    background-color: #000000 !important;
    margin: 0 -20px !important;
    padding: 40px 20px !important;
    border-left: 3px solid rgba(255, 255, 255, 0.15) !important;
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}

/* Override any width constraints from individual blocks */
.flexible-content > * {
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}

/* Ensure content within blocks doesn't exceed the container */
.flexible-content > * .rich-text-block,
.flexible-content > * .text-with-image-container,
.flexible-content > * .text-with-video-container,
.flexible-content > * .text-with-embed-container {
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Override any background styles from individual blocks */
.flexible-content > *:nth-child(odd) *:not(img):not(.cta-button):not(.quote-block),
.flexible-content > *:nth-child(even) *:not(img):not(.cta-button):not(.quote-block) {
    background: transparent !important;
    background-color: transparent !important;
}

/* Except for images and specific elements that need backgrounds */
.flexible-content > * img,
.flexible-content > * .cta-button,
.flexible-content > * .quote-block,
.flexible-content > * iframe,
.flexible-content > * .video-embed-block iframe,
.flexible-content > * .text-with-video-video iframe,
.flexible-content > * .embed-content blockquote,
.flexible-content > * .text-with-embed-embed blockquote {
    background: initial !important;
}

/* Universal override for any conflicting styles */
.flexible-content > *:nth-child(odd) {
    background: #333333 !important;
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}

.flexible-content > *:nth-child(even) {
    background: #000000 !important;
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}

/* Add subtle transitions for smooth appearance */
.flexible-content > div {
    transition: all 0.3s ease;
    position: relative;
    min-height: 1px; /* Ensure container has height */
}

/* Hover effect for interactive feel */
.flexible-content > div:hover {
    background: #444444 !important;
    background-color: #444444 !important;
    border-left-color: rgba(255, 255, 255, 0.4) !important;
}

/* Additional approach - target all children with explicit counting */
.flexible-content > :nth-child(1) { 
    background: #333333 !important; 
    border-left: 3px solid rgba(255, 255, 255, 0.3) !important; 
    padding: 40px 20px !important; 
    margin: 0 -20px !important; 
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}
.flexible-content > :nth-child(2) { 
    background: #000000 !important; 
    border-left: 3px solid rgba(255, 255, 255, 0.15) !important; 
    padding: 40px 20px !important; 
    margin: 0 -20px !important; 
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}
.flexible-content > :nth-child(3) { 
    background: #333333 !important; 
    border-left: 3px solid rgba(255, 255, 255, 0.3) !important; 
    padding: 40px 20px !important; 
    margin: 0 -20px !important; 
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}
.flexible-content > :nth-child(4) { 
    background: #000000 !important; 
    border-left: 3px solid rgba(255, 255, 255, 0.15) !important; 
    padding: 40px 20px !important; 
    margin: 0 -20px !important; 
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}
.flexible-content > :nth-child(5) { 
    background: #333333 !important; 
    border-left: 3px solid rgba(255, 255, 255, 0.3) !important; 
    padding: 40px 20px !important; 
    margin: 0 -20px !important; 
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}
.flexible-content > :nth-child(6) { 
    background: #000000 !important; 
    border-left: 3px solid rgba(255, 255, 255, 0.15) !important; 
    padding: 40px 20px !important; 
    margin: 0 -20px !important; 
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}
.flexible-content > :nth-child(7) { 
    background: #333333 !important; 
    border-left: 3px solid rgba(255, 255, 255, 0.3) !important; 
    padding: 40px 20px !important; 
    margin: 0 -20px !important; 
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}
.flexible-content > :nth-child(8) { 
    background: #000000 !important; 
    border-left: 3px solid rgba(255, 255, 255, 0.15) !important; 
    padding: 40px 20px !important; 
    margin: 0 -20px !important; 
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}
.flexible-content > :nth-child(9) { 
    background: #333333 !important; 
    border-left: 3px solid rgba(255, 255, 255, 0.3) !important; 
    padding: 40px 20px !important; 
    margin: 0 -20px !important; 
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}
.flexible-content > :nth-child(10) { 
    background: #000000 !important; 
    border-left: 3px solid rgba(255, 255, 255, 0.15) !important; 
    padding: 40px 20px !important; 
    margin: 0 -20px !important; 
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}

/* Exclude non-default logo sections from flexible-content alternating backgrounds */
/* Default logo sections should follow the alternating pattern */
.flexible-content > .logo-section--light,
.flexible-content > .logo-section--dark,
.flexible-content > .logo-section--accent {
    /* Remove flexible-content background overrides - logo section's own styles will apply */
    margin: 0 !important;
    padding: 0 !important;
    border-left: none !important;
    width: auto !important;
    max-width: auto !important;
}

/* More specific overrides for non-default logo section backgrounds */
.flexible-content > .logo-section--light:nth-child(odd),
.flexible-content > .logo-section--light:nth-child(even),
.flexible-content > .logo-section--dark:nth-child(odd),
.flexible-content > .logo-section--dark:nth-child(even),
.flexible-content > .logo-section--accent:nth-child(odd),
.flexible-content > .logo-section--accent:nth-child(even) {
    background: unset !important;
    background-color: unset !important;
}

/* Also handle if logo section is wrapped in a div */
.flexible-content > *:has(.logo-section--light),
.flexible-content > *:has(.logo-section--dark),
.flexible-content > *:has(.logo-section--accent) {
    margin: 0 !important;
    padding: 0 !important;
    border-left: none !important;
    width: auto !important;
    max-width: auto !important;
}

.flexible-content > *:has(.logo-section--light):nth-child(odd),
.flexible-content > *:has(.logo-section--light):nth-child(even),
.flexible-content > *:has(.logo-section--dark):nth-child(odd),
.flexible-content > *:has(.logo-section--dark):nth-child(even),
.flexible-content > *:has(.logo-section--accent):nth-child(odd),
.flexible-content > *:has(.logo-section--accent):nth-child(even) {
    background: unset !important;
    background-color: unset !important;
}

/* ===========================
   FLEXIBLE CONTENT BLOCKS
   ===========================*/

/* Rich Text Block */
.rich-text-block {
    margin: 20px 0;
    line-height: 1.6;
    text-align: left !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible; /* Allow text to flow around floating images */
    word-wrap: break-word; /* Prevent text from overflowing */
    width: 100%;
}

.rich-text-block p {
    margin-bottom: 1em;
    color: #cccccc;
    text-align: left !important;
}

.rich-text-block ul, .rich-text-block ol {
    margin: 1em 0;
    padding-left: 2em;
    color: #cccccc;
    text-align: left !important;
}

.rich-text-block li {
    margin-bottom: 0.5em;
    text-align: left !important;
}

.rich-text-block blockquote {
    margin: 1.5em 0;
    padding: 1em;
    border-left: 4px solid #ffffff;
    background: rgba(255, 255, 255, 0.1);
    font-style: italic;
    color: #ffffff;
    clear: both; /* Ensure blockquotes don't interfere with floating images */
    text-align: left !important;
}

/* Fix any centering from parent containers */
.flexible-content .rich-text-block,
.flexible-content .rich-text-block *,
.text-with-image-text,
.text-with-image-text * {
    text-align: left !important;
}

/* Override centering from flexible content container */
.flexible-content {
    text-align: left !important;
}

/* Heading Block */
.heading-block {
    text-align: center;
    margin: 30px 0;
}

.heading-block h1,
.heading-block h2,
.heading-block h3,
.heading-block h4,
.heading-block h5,
.heading-block h6 {
    color: #ffffff;
    margin: 0;
    font-weight: bold;
}

/* Image Block */
.image-block {
    text-align: center;
    margin: 30px 0;
}

.image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Quote Block */
.quote-block {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #ffffff;
    font-style: italic;
    color: #ffffff;
    text-align: left !important;
}

.quote-block blockquote {
    margin: 0;
    font-size: 1.2em;
    line-height: 1.5;
    text-align: left !important;
}

.quote-block cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: bold;
    text-align: left !important;
}

/* Spacer Block */
.spacer-block {
    margin: 0;
    padding: 0;
    height: 50px;
}

/* Video Embed Block */
.video-embed-block {
    margin: 30px 0;
    overflow: hidden;
}

.video-embed-block iframe {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.video-caption {
    margin-top: 8px;
    font-size: 0.9em;
    color: #cccccc;
    font-style: italic;
    text-align: center;
}

/* Video alignment styles */
.video-left {
    float: left;
    margin-right: 25px;
    margin-bottom: 15px;
    max-width: 40%;
    clear: left;
}

.video-right {
    float: right;
    margin-left: 25px;
    margin-bottom: 15px;
    max-width: 40%;
    clear: right;
}

.video-center {
    text-align: center;
    clear: both;
    margin: 30px auto;
    max-width: 80%;
}

.video-full {
    clear: both;
    width: 100%;
    margin: 30px 0;
}

/* Text with Video Block */
.text-with-video-block {
    margin: 40px 0;
    overflow: hidden;
    width: 100%;
}

.text-with-video-container {
    display: flex;
    align-items: flex-start;
    gap: 35px;
    width: 100%;
    min-height: 200px;
}

.text-with-video-left {
    flex-direction: row;
}

.text-with-video-right {
    flex-direction: row-reverse;
}

.text-with-video-video {
    flex: 0 0 25%;
    max-width: 25%;
    min-width: 250px;
    overflow: hidden;
}

.text-with-video-video iframe {
    width: 100%;
    height: auto;
    min-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.text-with-video-caption {
    margin-top: 8px;
    font-size: 0.9em;
    color: #cccccc;
    font-style: italic;
    text-align: center;
}

.text-with-video-text {
    flex: 1;
    color: #cccccc;
    line-height: 1.6;
    min-width: 0;
    max-width: 75%;
    overflow: hidden;
    word-wrap: break-word;
    text-align: left;
}

.text-with-video-text p {
    margin-bottom: 1em;
    text-align: left;
}

.text-with-video-text ul,
.text-with-video-text ol {
    margin: 1em 0;
    padding-left: 2em;
    text-align: left;
}

.text-with-video-text li {
    margin-bottom: 0.5em;
    text-align: left;
}

/* Raw Embed Block */
.raw-embed-block {
    margin: 30px 0;
    overflow: hidden;
}

.raw-embed-block .embed-content {
    width: 100%;
    overflow: hidden;
}

.raw-embed-block .embed-content blockquote {
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* Instagram embed specific styling - force center regardless of alignment */
.raw-embed-block:has(.embed-content blockquote.instagram-media),
.raw-embed-block.embed-left:has(.embed-content blockquote.instagram-media),
.raw-embed-block.embed-right:has(.embed-content blockquote.instagram-media) {
    float: none !important;
    clear: both !important;
    margin: 30px auto !important;
    max-width: 80% !important;
    text-align: center !important;
    width: 100% !important;
}

.raw-embed-block:has(.embed-content blockquote.instagram-media) .embed-content,
.raw-embed-block.embed-left:has(.embed-content blockquote.instagram-media) .embed-content,
.raw-embed-block.embed-right:has(.embed-content blockquote.instagram-media) .embed-content {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.raw-embed-block .embed-content blockquote.instagram-media {
    width: 100% !important;
    max-width: 540px !important;
    min-width: 326px !important;
    margin: 0 auto !important;
    display: block !important;
    float: none !important;
}

/* Fallback for browsers without :has() support */
.embed-left .embed-content blockquote.instagram-media,
.embed-right .embed-content blockquote.instagram-media {
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.embed-center .embed-content {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
}

.embed-caption {
    margin-top: 8px;
    font-size: 0.9em;
    color: #cccccc;
    font-style: italic;
    text-align: center;
}

/* Raw embed alignment styles */
.embed-left {
    float: left;
    margin-right: 25px;
    margin-bottom: 15px;
    max-width: 40%;
    clear: left;
}

.embed-right {
    float: right;
    margin-left: 25px;
    margin-bottom: 15px;
    max-width: 40%;
    clear: right;
}

.embed-center {
    text-align: center;
    clear: both;
    margin: 30px auto;
    max-width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.embed-full {
    clear: both;
    width: 100%;
    margin: 30px 0;
}

/* Text with Raw Embed Block */
.text-with-raw-embed-block {
    margin: 40px 0;
    overflow: hidden;
    width: 100%;
}

.text-with-embed-container {
    display: flex;
    align-items: flex-start;
    gap: 35px;
    width: 100%;
    min-height: 200px;
}

.text-with-embed-left {
    flex-direction: row;
}

.text-with-embed-right {
    flex-direction: row-reverse;
}

.text-with-embed-embed {
    flex: 0 0 25%;
    max-width: 25%;
    min-width: 250px;
    overflow: hidden;
}

.text-with-embed-embed .embed-content {
    width: 100%;
    overflow: hidden;
}

.text-with-embed-embed .embed-content blockquote {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.text-with-embed-caption {
    margin-top: 8px;
    font-size: 0.9em;
    color: #cccccc;
    font-style: italic;
    text-align: center;
}

.text-with-embed-text {
    flex: 1;
    color: #cccccc;
    line-height: 1.6;
    min-width: 0;
    max-width: 75%;
    overflow: hidden;
    word-wrap: break-word;
    text-align: left;
}

.text-with-embed-text p {
    margin-bottom: 1em;
    text-align: left;
}

.text-with-embed-text ul,
.text-with-embed-text ol {
    margin: 1em 0;
    padding-left: 2em;
    text-align: left;
}

.text-with-embed-text li {
    margin-bottom: 0.5em;
    text-align: left;
}

/* Ensure all content is left-aligned within flexible content */
.flexible-content-block {
    text-align: left !important;
}

.flexible-content-block * {
    text-align: left !important;
}

/* Alignment styles */
.image-left {
    float: left;
    margin-right: 25px;
    margin-bottom: 15px;
    max-width: 35%;
    clear: left;
}

.image-right {
    float: right;
    margin-left: 25px;
    margin-bottom: 15px;
    max-width: 35%;
    clear: right;
}

.image-center {
    text-align: center;
    clear: both;
    margin: 30px auto;
}

.image-full {
    clear: both;
    width: 100%;
    margin: 30px 0;
}

.image-full img {
    width: 100%;
}

/* Ensure text blocks that follow floating images wrap properly */
.flexible-content > div:has(.image-left) + div .rich-text-block,
.flexible-content > div:has(.image-right) + div .rich-text-block {
    overflow: hidden;
    text-align: left;
}

/* Alternative approach for browsers that don't support :has() */
.image-left + .rich-text-block,
.image-right + .rich-text-block {
    overflow: hidden;
    text-align: left;
}

/* Clearfix for containers with floating images */
.flexible-content > div::after {
    content: "";
    display: table;
    clear: both;
}

/* Special styling for content blocks within alternating backgrounds */
.flexible-content > div .rich-text-block,
.flexible-content > div .heading-block,
.flexible-content > div .image-block,
.flexible-content > div .quote-block {
    margin-top: 0;
    margin-bottom: 0;
}

/* Ensure CTA buttons stand out in alternating backgrounds */
.flexible-content > div .cta-button {
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.flexible-content > div .cta-button:hover {
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.6);
    transform: translateY(-3px);
}

/* ===========================
   CTA BUTTON STYLES
   ===========================*/

.cta-button {
    display: inline-block;
    text-decoration: none;
    font-weight: 400;
    text-align: center;
    border-radius: 980px; /* Pill-shaped buttons */
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem; /* 14px */
    padding: 10px 20px;
    border: 1px solid transparent;
}

/* Primary Button (Blue) */
.cta-primary {
    background-color: #0066cc;
    color: #ffffff;
}

.cta-primary:hover {
    background-color: #0071e3; /* Slightly brighter blue on hover */
}

/* Secondary Button (Gray) */
.cta-secondary {
    background-color: #e8e8ed;
    color: #1d1d1f;
}

.cta-secondary:hover {
    background-color: #dcdce1;
}

/* Outline Button */
.cta-outline {
    background-color: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.cta-outline:hover {
    background-color: #0066cc;
    color: #ffffff;
}

/* Button Sizes */
.cta-small {
    font-size: 0.8rem;
    padding: 8px 16px;
}

.cta-medium {
    font-size: 1rem;
    padding: 12px 24px;
}

.cta-large {
    font-size: 1.2rem;
    padding: 18px 36px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.cta-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
}

/* Ensure proper text flow when image and text are in the same block */
.flexible-content > div .image-left ~ .rich-text-block,
.flexible-content > div .image-right ~ .rich-text-block {
    overflow: visible;
    margin-top: 0;
}

/* Ensure text doesn't overlap floating images in same block */
.flexible-content > div .image-left ~ * {
    margin-left: 0;
}

.flexible-content > div .image-right ~ * {
    margin-right: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .image-left, .image-right {
        float: none;
        max-width: 100%;
        margin: 20px 0;
    }
    
    .video-left, .video-right {
        float: none;
        max-width: 100%;
        margin: 20px 0;
    }
    
    .video-center, .video-full {
        max-width: 100%;
    }
    
    .embed-left, .embed-right {
        float: none;
        max-width: 100%;
        margin: 20px 0;
    }
    
    .embed-center, .embed-full {
        max-width: 100%;
    }
    
    .raw-embed-block .embed-content blockquote.instagram-media {
        max-width: 100% !important;
        min-width: 100% !important;
        width: 100% !important;
    }
    
    .text-with-video-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .text-with-video-video {
        flex: none;
        max-width: 100%;
        min-width: auto;
    }
    
    .text-with-video-text {
        flex: none;
        max-width: 100%;
    }
    
    .text-with-embed-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .text-with-embed-embed {
        flex: none;
        max-width: 100%;
        min-width: auto;
    }
    
    .text-with-embed-text {
        flex: none;
        max-width: 100%;
    }
    
    .rich-text-block {
        padding: 0 10px;
    }
    
    .quote-block {
        padding: 20px;
        margin: 20px 0;
    }
    
    /* Adjust alternating backgrounds for mobile */
    .flexible-content > *:nth-child(odd),
    .flexible-content > *:nth-child(even) {
        margin: 0 -10px !important;
        padding: 30px 15px !important;
        border-left-width: 2px !important;
        width: calc(100% + 20px) !important;
        max-width: calc(100% + 20px) !important;
    }
    
    .flexible-content {
        padding: 20px 10px;
    }
    
    /* Ensure content within blocks doesn't exceed mobile container */
    .flexible-content > * .rich-text-block,
    .flexible-content > * .text-with-image-container,
    .flexible-content > * .text-with-video-container,
    .flexible-content > * .text-with-embed-container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* ===========================
   NEWS PAGE STYLES - CLEANTIME THEME
   ===========================*/

/* News Index page styling - Cleantime dark theme */
.cleantime-theme .news-hero {
    padding: 120px 20px 60px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
}

.cleantime-theme .news-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.2),
        0 0 60px rgba(255, 255, 255, 0.1);
}

.cleantime-theme .news-intro {
    font-size: 1.5rem;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 400;
}

.cleantime-theme .news-content {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #000000;
}

.cleantime-theme .news-items {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cleantime-theme .news-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #ffffff;
    border-radius: 18px;
    padding: 40px;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 
        /* Inner subtle gradients - white theme */
        inset 0 0 20px rgba(255, 255, 255, 0.1),
        inset 5px 0 15px rgba(255, 255, 255, 0.05),
        inset -5px 0 15px rgba(240, 240, 240, 0.05),
        inset 10px 0 30px rgba(255, 255, 255, 0.08),
        inset -10px 0 30px rgba(240, 240, 240, 0.08),
        inset 15px 0 50px rgba(255, 255, 255, 0.1),
        inset -15px 0 50px rgba(240, 240, 240, 0.1),
        inset 20px 0 80px rgba(255, 255, 255, 0.05),
        inset -20px 0 80px rgba(240, 240, 240, 0.05),
        inset 25px 0 120px rgba(255, 255, 255, 0.02),
        inset -25px 0 120px rgba(240, 240, 240, 0.02),
        /* Outer glow - white theme */
        0 0 15px rgba(255, 255, 255, 0.2),
        0 0 25px rgba(255, 255, 255, 0.15),
        0 0 35px rgba(240, 240, 240, 0.15),
        -5px 0 20px rgba(255, 255, 255, 0.1),
        5px 0 20px rgba(240, 240, 240, 0.1);
    transition: all 0.3s ease;
}

.cleantime-theme .news-item:hover {
    transform: translateY(-5px);
    box-shadow: 
        /* Enhanced hover effect */
        inset 0 0 25px rgba(255, 255, 255, 0.15),
        inset 5px 0 20px rgba(255, 255, 255, 0.1),
        inset -5px 0 20px rgba(240, 240, 240, 0.1),
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.2),
        0 0 40px rgba(240, 240, 240, 0.2),
        0 10px 30px rgba(255, 255, 255, 0.15);
}

/* News item content layout */
.cleantime-theme .news-item-content {
    display: grid;
    gap: 30px;
    align-items: flex-start;
}

.cleantime-theme .news-item-content.has-image {
    grid-template-columns: 1fr 300px;
}

.cleantime-theme .news-item-content.has-image.image-left {
    grid-template-columns: 300px 1fr;
}

.cleantime-theme .news-item-content.has-image.image-top {
    grid-template-columns: 1fr;
    grid-template-areas: 
        "content";
}

.cleantime-theme .news-item-text {
    z-index: 1;
    position: relative;
}

.cleantime-theme .news-item-image {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid #ffffff;
}

.cleantime-theme .news-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Image position specific styles */
.cleantime-theme .image-top .news-item-image {
    margin-bottom: 20px;
}

.cleantime-theme .news-item-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.cleantime-theme .news-item-intro {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cleantime-theme .news-item-body {
    font-size: 1rem;
    color: #f0f0f0;
    line-height: 1.7;
}

.cleantime-theme .news-item-date {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 500;
    margin-top: 20px;
}

.cleantime-theme .no-news {
    text-align: center;
    padding: 60px 20px;
    color: #cccccc;
    font-size: 1.2rem;
}

/* Mobile styles for cleantime news pages */
@media (max-width: 768px) {
    .cleantime-theme .news-hero {
        padding: 100px 20px 40px;
    }

    .cleantime-theme .news-title {
        font-size: 2.5rem;
    }

    .cleantime-theme .news-intro {
        font-size: 1.2rem;
    }

    .cleantime-theme .news-content {
        padding: 60px 20px;
    }

    .cleantime-theme .news-item {
        padding: 30px 20px;
    }

    .cleantime-theme .news-item-content.has-image,
    .cleantime-theme .news-item-content.has-image.image-left {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cleantime-theme .news-item-title {
        font-size: 1.5rem;
    }
}

/* More specific rules to ensure proper layout - Cleantime theme */
.template-newsindexpage.cleantime-theme .news-item-content {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.template-newsindexpage.cleantime-theme .news-item-content.has-image.image-left {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    align-items: flex-start !important;
}

.template-newsindexpage.cleantime-theme .news-item-content.has-image.image-left .news-item-image {
    order: 1 !important;
    flex: 0 0 300px !important;
    width: 300px !important;
    max-width: 300px !important;
    min-width: 300px !important;
}

.template-newsindexpage.cleantime-theme .news-item-content.has-image.image-left .news-item-text {
    order: 2 !important;
    flex: 1 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: calc(100% - 330px) !important;
}

.template-newsindexpage.cleantime-theme .news-item-content.has-image:not(.image-left) .news-item-image {
    order: 2 !important;
    flex: 0 0 300px !important;
    width: 300px !important;
    max-width: 300px !important;
    min-width: 300px !important;
}

.template-newsindexpage.cleantime-theme .news-item-content.has-image:not(.image-left) .news-item-text {
    order: 1 !important;
    flex: 1 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: calc(100% - 330px) !important;
}

.template-newsindexpage.cleantime-theme .news-item-content.has-image.image-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.template-newsindexpage.cleantime-theme .news-item-content.has-image.image-top .news-item-image {
    order: 1 !important;
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

.template-newsindexpage.cleantime-theme .news-item-content.has-image.image-top .news-item-text {
    order: 2 !important;
    flex: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Mobile responsive fixes - Cleantime theme */
@media (max-width: 768px) {
    .template-newsindexpage.cleantime-theme .news-item-content.has-image {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .template-newsindexpage.cleantime-theme .news-item-content.has-image .news-item-image {
        order: 1 !important;
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
    }
    
    .template-newsindexpage.cleantime-theme .news-item-content.has-image .news-item-text {
        order: 2 !important;
        flex: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ===========================
   CALCULATOR PAGE STYLES
   ===========================*/

/* Hero Section Styling */
.template-calculator-page .hero-section {
    position: relative;
    min-height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
    background: #000000;
}

.template-calculator-page .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.template-calculator-page .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

/* Enhanced overlay for better text readability */
.template-calculator-page .hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(45, 45, 45, 0.7) 100%);
}

.template-calculator-page.cleantime-theme .hero-background::before {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(45, 45, 45, 0.7) 100%);
}

.template-calculator-page.realclean-theme .hero-background::before {
    background: linear-gradient(135deg, rgba(66, 66, 69, 0.7) 0%, rgba(230, 230, 230, 0.7) 100%);
}

/* Content overlay */
.template-calculator-page .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 90px 20px 20px 20px;
}

.template-calculator-page .hero-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Theme-specific hero title colors */
.template-calculator-page.cleantime-theme .hero-title {
    color: #ffffff;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.2),
        0 0 60px rgba(255, 255, 255, 0.1);
}

.template-calculator-page.realclean-theme .hero-title {
    color: #ffffff;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.2),
        0 0 60px rgba(255, 255, 255, 0.1);
}

.template-calculator-page .hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* Theme-specific subtitle colors */
.template-calculator-page.cleantime-theme .hero-subtitle {
    color: #cccccc;
}

.template-calculator-page.realclean-theme .hero-subtitle {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.template-calculator-page .hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 10px;
    opacity: 0.9;
}

.template-calculator-page .hero-text {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
    color: #ffffff;
}

.template-calculator-page .hero-text p {
    color: #cccccc;
    margin-bottom: 1em;
}

/* Mobile responsive hero */
@media (max-width: 768px) {
    .template-calculator-page .hero-section {
        min-height: 18vh;
    }
    
    .template-calculator-page .hero-content {
        padding: 80px 20px 15px 20px;
    }
    
    .template-calculator-page .hero-title {
        font-size: 1.75rem;
    }
    
    .template-calculator-page .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .template-calculator-page .hero-text {
        font-size: 0.85rem;
    }
}

.calculator-section {
    padding: 60px 0;
    background: #000000;
}

.calculator-intro {
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-intro p {
    color: #cccccc;
    line-height: 1.6;
}

.calculator-form-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.calculator-form .form-group {
    margin-bottom: 40px;
}

.calculator-form .form-group h3 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Radio button styling */
.calculator-form .radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.calculator-form .radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    min-width: 180px;
}

.calculator-form .radio-option:hover {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.calculator-form .radio-option input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.calculator-form .radio-option input[type="radio"]:checked + .radio-label {
    font-weight: 600;
    color: #007bff;
}

.calculator-form .radio-option:has(input:checked) {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.2);
}

/* Slider styling */
.calculator-form .slider-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calculator-form #areaSlider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.calculator-form #areaSlider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.5);
    border: 2px solid #ffffff;
}

.calculator-form #areaSlider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.5);
}

.calculator-form .slider-display {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #007bff;
}

/* Quantities styling */
.calculator-form .quantities-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.calculator-form .quantity-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calculator-form .quantity-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #ffffff;
}

.calculator-form .quantity-icon {
    font-size: 1.5rem;
}

.calculator-form .quantity-item input[type="number"] {
    padding: 12px 16px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.calculator-form .quantity-item input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.calculator-form .quantity-item input[type="number"]::-webkit-inner-spin-button,
.calculator-form .quantity-item input[type="number"]::-webkit-outer-spin-button {
    filter: invert(1);
    opacity: 0.7;
}

/* Price display styling */
.calculator-form .price-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

.calculator-form .price-display h2 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
}

.calculator-form .price-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.calculator-form #calculatedPrice {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}

.calculator-form .price-period {
    font-size: 1.2rem;
    opacity: 0.9;
    color: #ffffff;
}

.calculator-form .price-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    font-style: italic;
    color: #ffffff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .calculator-form-container {
        padding: 25px;
        margin: 0 15px;
    }
    
    .calculator-form .radio-group {
        flex-direction: column;
    }
    
    .calculator-form .radio-option {
        min-width: auto;
    }
    
    .calculator-form .quantities-container {
        grid-template-columns: 1fr;
    }
    
    .calculator-form #calculatedPrice {
        font-size: 2.5rem;
    }
}

/* Theme-specific colors - Cleantime */
.template-calculator-page.cleantime-theme .calculator-form .radio-option:has(input:checked),
.template-calculator-page.cleantime-theme .calculator-form .radio-option:hover {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.2);
}

.template-calculator-page.cleantime-theme .calculator-form .radio-option input[type="radio"]:checked + .radio-label,
.template-calculator-page.cleantime-theme .calculator-form .slider-display,
.template-calculator-page.cleantime-theme .calculator-form .quantity-item input[type="number"]:focus {
    color: #28a745;
    border-color: #28a745;
}

.template-calculator-page.cleantime-theme .calculator-form #areaSlider::-webkit-slider-thumb,
.template-calculator-page.cleantime-theme .calculator-form #areaSlider::-moz-range-thumb {
    background: #28a745;
    border-color: #ffffff;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.5);
}

.template-calculator-page.cleantime-theme .calculator-form .price-section {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
}

/* Theme-specific colors - Realclean */
.template-calculator-page.realclean-theme .calculator-form .radio-option:has(input:checked),
.template-calculator-page.realclean-theme .calculator-form .radio-option:hover {
    border-color: #fd7e14;
    background-color: rgba(253, 126, 20, 0.2);
}

.template-calculator-page.realclean-theme .calculator-form .radio-option input[type="radio"]:checked + .radio-label,
.template-calculator-page.realclean-theme .calculator-form .slider-display,
.template-calculator-page.realclean-theme .calculator-form .quantity-item input[type="number"]:focus {
    color: #fd7e14;
    border-color: #fd7e14;
}

.template-calculator-page.realclean-theme .calculator-form #areaSlider::-webkit-slider-thumb,
.template-calculator-page.realclean-theme .calculator-form #areaSlider::-moz-range-thumb {
    background: #fd7e14;
    border-color: #ffffff;
    box-shadow: 0 2px 6px rgba(253, 126, 20, 0.5);
}

.template-calculator-page.realclean-theme .calculator-form .price-section {
    background: linear-gradient(135deg, #fd7e14, #dc6102);
    box-shadow: 0 4px 20px rgba(253, 126, 20, 0.3);
}

/* ===========================
   Offer / Contact Form Styles
   ===========================*/
.offer-form-section {
    max-width: 880px;
    margin: 2rem auto;
    padding: 1.5rem 1.5rem 2rem;
    background: #111111;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

.offer-form-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.offer-form-summary {
    background: #1a2430;
    border-radius: 12px;
    border: 1px solid #304b6e;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.offer-form-summary h3 {
    margin: 0 0 0.5rem;
}

.offer-form-summary-note {
    margin-top: 0.5rem;
    color: #aaaaaa;
    font-size: 0.9rem;
}

.offer-form-notice {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.offer-form-notice--success {
    background: #12351c;
    border: 1px solid #3ba35a;
}

.offer-form {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offer-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.offer-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.offer-form-field label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.offer-form-field input,
.offer-form-field select,
.offer-form-field textarea {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #444444;
    background: #050505;
    color: #ffffff;
}

.offer-form-field textarea {
    min-height: 200px;
}

.offer-form-field input:focus,
.offer-form-field select:focus,
.offer-form-field textarea:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.35);
}

.offer-form .btn.btn-primary {
    margin-top: 0.5rem;
}

.offer-form .error {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: #ffb3b3;
}

@media (max-width: 768px) {
    .offer-form-section {
        margin: 1.5rem 0.5rem 2rem;
        padding: 1rem;
    }
    .offer-form-row,
    .offer-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Floating Offer CTA
   ===========================*/
.floating-offer-cta {
    position: fixed;
    right: 24px;
    top: 90px;
    z-index: 1100;
    background: #0066cc;
    color: #ffffff !important;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 600;
    border: 2px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    max-width: 100vw;
    box-sizing: border-box;
}
.floating-offer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.45);
    background: #0071e3;
}
@media (min-width: 1400px) {
    .floating-offer-cta {
        right: calc((100% - 1200px) / 2 + 24px);
    }
}
@media (max-width: 768px) {
    .floating-offer-cta {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        border-radius: 0;
        text-align: center;
        width: 100%;
        max-width: 100vw;
        padding: 14px 20px;
        border-left: none;
        border-right: none;
        border-bottom: none;
        z-index: 999;
        box-sizing: border-box;
    }
    
    /* Hide floating CTA when mobile menu is open */
    body.mobile-menu-open .floating-offer-cta {
        display: none;
    }
}
