/*
Theme Name: OUI Marketing
Description: A modern, mobile-friendly WordPress theme for OUI Event Management Platform marketing website with advanced customization options.
Version: 1.1
Author: OUI Team
Text Domain: oui-marketing
*/

/* Reset and Base Styles */
:root {
    --primary-oui-color: #4F0377;
    --secondary-oui-color: #FF6F61;
    --grey-oui-color: #444444;
    --text-oui-color: #000000;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-oui-color);
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-oui-color);
}

h1 {
    font-size: 3.5rem;
    color: #ffffff;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Container */
section.hero-section .container {
    max-width: 1200px;
    padding: 0 30px;
}
.container {
    margin: 0 auto;
}

/* Remove default margins from all sections */
section {
    margin: 0;
    padding: 0;
}

/* Main content area */
.site-main {
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Header Styles */
.site-header {
    background-color: var(--primary-oui-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Account for WordPress admin bar */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    position: relative;
}

.logo {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.logo .custom-logo-link,
.logo .logo-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.logo .custom-logo {
    display: block;
    height: auto;
    max-height: 60px;
    padding: 7px 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-oui-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

/* Logo animation on scroll */
.logo {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-hidden-on-hero {
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
}

.scrolled-past-hero .logo-hidden-on-hero {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    flex: 1 1 auto; /* take remaining space between logo and buttons */
    justify-content: flex-end; /* push menu items toward the buttons */
    position: static; /* ensure it participates in flex flow */
    margin-right: 1rem; /* small gap before buttons */
}

/* Navigation on front page and OUI Landing page (no logo) */
.home-page .main-navigation,
.page-oui-landing .main-navigation {
    position: static;
    transform: none;
    margin-left: auto;
    margin-right: 3rem; /* Move closer to buttons */
}

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

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--secondary-oui-color);
}

/* Current/Active Menu Item */
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a,
.nav-menu .current_page_ancestor > a {
    color: var(--secondary-oui-color);
    font-weight: 500;
}

/* Submenu Styles */
.nav-menu .menu-item {
    position: relative;
}

/* Add dropdown arrow indicator for items with submenus */
.nav-menu .menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'FontAwesome';
    font-size: 12px;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.nav-menu .menu-item-has-children:hover > a::after {
    content: '\f106';
}

.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-oui-color);
    min-width: 220px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1000;
}

/* All screen sizes: Use click to toggle submenu */
.nav-menu .menu-item-has-children > a {
    cursor: pointer;
}

.nav-menu .menu-item-has-children.open > .sub-menu {
    display: block;
}

.nav-menu .menu-item-has-children.open > a::after {
    content: '\f106';
}

/* Desktop: Allow both hover AND click to open submenu */
@media (min-width: 1025px) {
    .nav-menu .menu-item-has-children:hover > .sub-menu {
        display: block;
    }
    
    .nav-menu .menu-item-has-children:hover > a::after {
        content: '\f106';
    }
}

.nav-menu .sub-menu li {
    padding: 0;
}

.nav-menu .sub-menu a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-menu .sub-menu a:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--secondary-oui-color);
}

.nav-menu .sub-menu .current-menu-item > a,
.nav-menu .sub-menu .current_page_item > a {
    color: var(--secondary-oui-color);
}

.header-buttons {
    display: flex;
    gap: 1rem;
    margin-left: 1rem; /* gap between nav and buttons */
}

.btn {
    padding: 8px 38px;
    border: none;
    border-radius: 50px; /* Make all buttons pill-shaped by default */
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: var(--primary-oui-color);
}

.btn-primary {
    background-color: var(--secondary-oui-color);
    color: white;
}

.btn-primary:hover {
    background-color: #e55a4d;
    transform: translateY(-2px);
}

.header-buttons .btn-outline, .header-buttons .btn-primary {
    padding: 5px 50px;
    font-size: 1rem;
}

/* All buttons are now pill-shaped by default */

/* Hero Section */
.hero-section {
    background-color: var(--primary-oui-color);
    padding: 150px 0 88px;
    color: white;
    margin-top: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    white-space: pre-line; /* Preserves line breaks from HTML */
    letter-spacing: 0.11rem;
    color: #ffffff;
}

.hero-text h1 * {
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    display: inline; /* Keep inline elements inline */
}

.hero-text h1 br {
    display: block; /* Make line breaks work */
    margin: 0.5em 0; /* Add spacing between lines */
    line-height: 1;
}

.hero-text h1 p {
    display: block; /* Make paragraphs display as blocks */
    margin: 0.5em 0;
    font-size: inherit;
    line-height: inherit;
}

.hero-text h1 strong,
.hero-text h1 b {
    font-weight: 700;
}

.hero-text h1 em,
.hero-text h1 i {
    font-style: italic;
}

.hero-text h1 u {
    text-decoration: underline;
}

.hero-text h1 img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    display: inline-block;
    margin: 0.2em 0.1em;
}

.hero-text h1 a {
    color: inherit;
    text-decoration: none;
}

.hero-text h1 a:hover {
    text-decoration: underline;
}

/* Support for inline font size and color changes from WYSIWYG */
.hero-text h1 span[style*="font-size"] {
    font-size: inherit !important;
    /* Allow font-size but scale it appropriately */
}

.hero-text h1 span[style*="color"] {
    /* Allow color changes from WYSIWYG */
}

.hero-text h1 span[style*="font-weight"] {
    /* Allow font-weight changes from WYSIWYG */
}

/* Support for different heading levels within h1 */
.hero-text h1 h1,
.hero-text h1 h2,
.hero-text h1 h3,
.hero-text h1 h4,
.hero-text h1 h5,
.hero-text h1 h6 {
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    font-weight: inherit;
}
h4 {
    font-size: 1.5rem;
}

.hero-logo {
    margin-bottom: 2rem;
    text-align: left;
}

.hero-logo-link {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
}

.hero-logo-img {
    display: block;
    height: auto;
    width: 128px;
}

.hero-logo-icon {
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: 2px solid #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.hero-tagline {
    color: var(--secondary-oui-color);
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 0.7rem;
    margin-bottom: 2.1rem;
    text-align: left;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-card {
    background-color: transparent;
    text-align: center;
}

.play-button {
    width: 60px;
    height: 60px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background-color: var(--secondary-oui-color);
    color: white;
}

.hero-video-wrapper {
    padding: 30px 5px;
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

/* Lazy loading video styles */
iframe.lazy-video-iframe {
    background: #f0f0f0 url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Ccircle cx="50" cy="50" r="40" fill="none" stroke="%23ccc" stroke-width="3"%3E%3Canimate attributeName="r" from="30" to="40" dur="1s" repeatCount="indefinite"/%3E%3C/circle%3E%3C/svg%3E') center center no-repeat;
    background-size: 50px 50px;
    min-height: 315px;
}

video.lazy-video {
    cursor: pointer;
    position: relative;
}

video.lazy-video::after {
    content: '▶ Click to load video';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    pointer-events: none;
}

.landingList li.elementor-icon-list-item {
    margin-bottom: 0.9rem;
}
.landingList .elementor-icon-list-icon {
    --e-icon-list-icon-size: 38px;
}
.landingList .elementor-icon-list-text {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    color: #000000;
}

/* Feature Sections */
.feature-section {
    padding: 80px 0;
}

.feature-section:nth-child(even) {
    background-color: #f8f9fa;
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-text h2 {
    margin-bottom: 1.5rem;
}

.feature-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666666;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-oui-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-item-icon {
    width: 60px;
    height: 60px;
    background-color: #f5f5f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #444444;
    font-size: 1.5rem;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-oui-color);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.checkbox-group label {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.contact-info {
    padding-right: 2rem;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666666;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-email {
    color: var(--secondary-oui-color);
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
}

.contact-email:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: #000000;
    color: white;
    padding: 1rem 20px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

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

.footer-copyright {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-oui-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        position: relative;
        padding: 5px 10px;
    }

    .site-header .container {
        padding: 0;
    }

    h1 {
        font-size: 2.8rem;
    }
    
    .main-navigation {
        position: relative;
        transform: none;
        order: 2;
        right: auto;
        margin-right: 0;
        margin-left: auto;
    }
    
    .home-page .main-navigation,
    .page-oui-landing .main-navigation {
        position: relative;
        transform: none;
        margin-left: auto;
        margin-right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-buttons {
        order: 3;
        margin-left: 0;
        justify-content: center;
    }
    
    /* Hide desktop header buttons on mobile */
    .header-content > .header-buttons {
        display: none;
    }
    
    .logo {
        order: 1;
        position: relative;
        z-index: 100;
    }
    .logo .custom-logo {
        max-height: 38px;
    }
    
    .hero-content,
    .feature-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text h1 {
        text-align: center;
        font-size: 2.5rem;
        white-space: pre-line; /* Preserve line breaks on mobile */
    }
    
    .hero-text h1 br {
        margin: 0.3em 0; /* Smaller spacing on mobile */
    }
    
    .hero-text h1 p {
        margin: 0.3em 0; /* Smaller paragraph spacing on mobile */
    }
    
    .hero-logo {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .hero-logo-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
        text-align: center;
        margin-top: 0.3rem;
    }
    .hero-cta {
        text-align: center;
    }
    
    h2, .termsHeader h1 {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .container {
        padding: 0;
    }
    
    .hero-section {
        padding: 120px 0 60px;
    }

    .entry-header {
        height: 55px;
    }
    
    .feature-section,
    .cta-section,
    .contact-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
        white-space: pre-line; /* Preserve line breaks on small mobile */
    }
    
    .hero-text h1 br {
        margin: 0.2em 0; /* Even smaller spacing on small mobile */
    }
    
    .hero-text h1 p {
        margin: 0.2em 0; /* Even smaller paragraph spacing on small mobile */
    }
    
    .hero-logo {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .hero-logo-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
        text-align: center;
        margin-top: 0.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    .elementor-widget-text-editor h4.p1 {
        font-size: 18px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .feature-card,
    .contact-form {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.bg-purple {
    background-color:var(--primary-oui-color);
}

.bg-salmon {
    background-color: var(--secondary-oui-color);
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.mb-3 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-3 { margin-top: 3rem !important; }

.tableOfContents ol li a {
    color: var(--text-oui-color);
}
.tableOfContents ol li a:hover {
    color: var(--secondary-oui-color);
}

/* Page and Post Styles */
.entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.entry-meta {
    color: #666666;
    font-size: 0.9rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-content, .contactSection {
    line-height: 1.35;
    margin-bottom: 1rem;
}

.entry-content p, .contactSection p {
    margin-bottom: 1.5rem;
}

.termsPage h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.termsPage h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.termsPage ul,
.termsPage ol {
    margin-bottom: 1.5rem;
    padding-left: 1.1rem;
}

.termsPage ol li.p1, .termsPage ul li.p1 {
    font-size: 1.1rem;
    line-height: 1.3;
}

.termsPage li {
    margin-bottom: 1rem;
}

.elementor-widget-text-editor .p1 a.s1 {
    color: var(--primary-oui-color);
}
.elementor-widget-text-editor .p1 a.s1:hover {
    color: var(--secondary-oui-color);
}

.entry-footer {
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    color: #666666;
    font-size: 0.9rem;
}

.entry-footer span {
    margin-right: 1rem;
}

.post-thumbnail {
    margin-bottom: 2rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.page-links {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.edit-link a {
    color: var(--secondary-oui-color);
    text-decoration: none;
}

.edit-link a:hover {
    text-decoration: underline;
}

/* Performance Optimized Styles */
.site-header.scrolled {
    background-color: rgba(79, 3, 119, 0.95);
    backdrop-filter: blur(10px);
}

.feature-section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.feature-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.form-group input.error,
.form-group select.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #ffffff;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle.active {
    color: var(--secondary-oui-color);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        font-size: 1.8rem;
        z-index: 1002;
    }
    
    .mobile-menu-toggle.active {
        position: fixed;
        top: 15px;
        right: 15px;
        color: var(--secondary-oui-color);
        font-size: 2.5rem;
        background: none;
        border: none;
        padding: 0.5rem;
    }
    
    /* Replace hamburger with X when active */
    .mobile-menu-toggle {
        font-size: 0; /* Hide any text content */
    }
    
    .mobile-menu-toggle::before {
        content: '☰';
        font-size: 1.8rem;
        display: block;
    }
    
    .mobile-menu-toggle.active::before {
        content: '✕';
        font-size: 2.5rem;
    }
    
    /* Full screen overlay menu */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: var(--primary-oui-color);
        flex-direction: column;
        gap: 0;
        z-index: 1000;
        padding: 80px 30px 30px;
        overflow-y: auto;
        align-items: center;
        justify-content: flex-start;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    /* Logo in mobile menu */
    .mobile-menu-logo {
        display: block;
        width: 100px;
        height: 100px;
        margin-bottom: 50px;
        flex-shrink: 0;
    }
    
    .mobile-menu-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .nav-menu > li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        padding: 0;
    }
    
    .nav-menu > li:last-child {
        border-bottom: none;
    }

    .nav-menu > li > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 0;
        font-size: 28px;
        font-weight: 400;
        color: #ffffff;
    }

    /* Current/Active Menu Item */
    .nav-menu .current-menu-item > a,
    .nav-menu .current_page_item > a,
    .nav-menu .current-menu-ancestor > a,
    .nav-menu .current_page_ancestor > a {
        font-weight: 400;
    }

    /* Menu item buttons at bottom */
    .nav-menu .menu-item-buttons a {
        font-size: 28px;
        font-weight: 400;
        text-align: left;
        padding: 5px 0;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    
    .nav-menu .menu-item-buttons a:last-child {
        color: #ffffff;
        font-weight: 400;
    }
    
    /* Mobile submenu styles */
    .nav-menu .sub-menu {
        position: static;
        display: none !important;
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding: 0 0 0 20px;
        border-bottom: none;
    }
    
    /* Disable desktop hover on mobile */
    .nav-menu .menu-item-has-children:hover > .sub-menu {
        display: none !important;
    }
    
    /* Only show when .open class is present */
    .nav-menu .menu-item-has-children.open > .sub-menu {
        display: block !important;
    }
    /* Mobile dropdown arrow - position on the right */
    .nav-menu .menu-item-has-children > a::after {
        content: '\f107';
        font-family: 'FontAwesome';
        font-size: 18px;
        margin-left: auto;
        color: #ffffff;
        transition: all 0.3s ease;
    }
    
    .nav-menu .menu-item-has-children.open > a::after {
        content: '\f106';
    }
    
    .nav-menu .sub-menu li {
        border-bottom: none;
        padding-left: 0;
    }
    
    .nav-menu .sub-menu a {
        padding: 0 0 5px 0;
        font-size: 28px;
        font-weight: 400;
        color: rgba(255,255,255,0.85);
        justify-content: flex-start;
    }
    
    .nav-menu .sub-menu a::after {
        display: none;
    }

    .menu-item-buttons {
        list-style: none;
        padding: 0;
        margin: 0;
        border-bottom: none;
        width: 100%;
    }

    .mobile-header-buttons {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        width: 100%;
        list-style: none;
        margin: 0;
        border-bottom: none;
    }
    
    .mobile-header-buttons a {
        padding: 20px 0;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    
    .mobile-header-buttons a:last-child {
        border-bottom: none;
    }

    .mobile-header-buttons .btn {
        width: 100%;
        display: block;
        text-align: left;
        background: var(--primary-oui-color);
        border: none;
        border-radius: 0;
        color: #ffffff;
        padding: 22px 0;
        font-size: 18px;
        font-weight: 400;
    }

    .mobile-header-buttons .btn-primary {
        font-weight: 400;
    }
    
    /* Remove touch/hover effects for mobile menu buttons */
    .mobile-header-buttons .btn:hover,
    .mobile-header-buttons .btn:active,
    .mobile-header-buttons .btn:focus,
    .mobile-header-buttons .btn-primary:hover,
    .mobile-header-buttons .btn-primary:active,
    .mobile-header-buttons .btn-primary:focus {
        background: var(--primary-oui-color) !important;
        transform: none !important;
        box-shadow: none !important;
    }

    /* Hide desktop header buttons on mobile */
    .header-content > .header-buttons,
    .site-header .header-buttons:not(.mobile-header-buttons) {
        display: none !important;
    }
    
    .mobile-header-buttons {
        display: flex !important;
    }

    h2.p1 {
        font-size: 2rem;
    }

    /* Style to change the Elementor tabs in Privacy policy */
    .elementor.elementor .elementor-widget-n-tabs.e-n-tabs-mobile .e-n-tab-title {
        width: 100% !important;
    }
}

.btn {
    transition: all 0.3s ease;
}

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

.feature-card {
    transition: transform 0.3s ease;
}

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

/* ELEMENTOR: Force tab titles to appear above content on mobile */
@media (max-width: 767px) {
  /* Scope to all Elementor tabs. If you want to target a specific Tabs widget,
     replace `.elementor-tabs` with `#your-widget-id .elementor-tabs` */
  .e-n-tabs {
    display: block !important;
  }

  /* Make sure titles are not absolutely positioned at the bottom */
  .e-n-tabs .elementor-tab-title {
    position: relative !important;
    bottom: auto !important;
    top: auto !important;
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
  }

  /* Ensure titles render before contents */
  .e-n-tabs .elementor-tab-title {
    order: -1 !important;           /* used if parent is flex — safe to leave */
  }
  .e-n-tabs .elementor-tab-content {
    order: 0 !important;
  }

  /* If Elementor wraps titles and contents in a flex container, make them column */
  .e-n-tabs .elementor-tabs-wrapper,
  .e-n-tabs .elementor-tabs-content-wrapper {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Optional: make the tab titles sticky at the top of the viewport on mobile */
  .e-n-tabs .elementor-tab-title {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0;
    z-index: 999;
    background: #fff;            /* match your background */
    padding-top: .6rem;
    padding-bottom: .6rem;
  }

  /* Small visual tuning so active title stands out */
  .e-n-tabs .elementor-tab-title.elementor-active {
    font-weight: 600;
  }
}