/*
Theme Name: CBRobot
*/

/* Reset & Fixes */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}
.wp-site-blocks {
    margin: 0 !important;
}
.wp-site-blocks > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}
.wp-site-blocks main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.wp-site-blocks main .wp-block-post-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.wp-block-post-content > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.wp-block-post-content > *:last-child {
    margin-bottom: 0 !important;
}
.wp-block-post-content > .wp-block-group {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* 100vh Hero Gradient */
.hero-gradient {
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    overflow: visible;
    box-sizing: border-box;
    position: relative;
}
.wp-block-cover.hero-gradient {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 5rem !important; /* Space for fixed header */
    padding-bottom: 2rem !important;
}
/* Gradient overlay applied via CSS so the cover block stays editable (background image changeable) */
.wp-block-cover.hero-gradient > .wp-block-cover__background {
    background: linear-gradient(135deg, rgb(0, 51, 102) 0%, rgb(0, 64, 128) 50%, rgb(0, 102, 204) 100%) !important;
}

.hero-gradient::before {
    content: "";
    position: absolute;
    top: 5rem;
    right: 5rem;
    width: 24rem;
    height: 24rem;
    background-color: #00CCFF;
    border-radius: 50%;
    filter: blur(64px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}
.hero-gradient::after {
    content: "";
    position: absolute;
    bottom: 5rem;
    left: 5rem;
    width: 18rem;
    height: 18rem;
    background-color: #ffffff;
    border-radius: 50%;
    filter: blur(64px);
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

/* Decorative Glows */
.hero-glow-1 {
    position: absolute;
    top: 5rem;
    right: 5rem;
    width: 24rem;
    height: 24rem;
    background-color: #00CCFF;
    border-radius: 50%;
    filter: blur(64px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}
.hero-glow-2 {
    position: absolute;
    bottom: 5rem;
    left: 5rem;
    width: 18rem;
    height: 18rem;
    background-color: #ffffff;
    border-radius: 50%;
    filter: blur(64px);
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

/* About Hero Section — decorative glow to match Products/Contact shortcode heroes */
.about-hero-section {
    position: relative;
    overflow: hidden;
}
.about-hero-section::before {
    content: "";
    position: absolute;
    top: 5rem;
    right: 5rem;
    width: 24rem;
    height: 24rem;
    background-color: #00CCFF;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}
.about-hero-section > .wp-block-group {
    position: relative;
    z-index: 1;
}

/* Hero Pill Badge — used on About page hero (Gutenberg block) to match shortcode pill badges */
p.hero-pill-badge {
    display: table !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 1rem !important;
    padding: 0.25rem 1rem !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 9999px !important;
    color: #00CCFF !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-align: center !important;
}

/* Pill Badge */
.cbrobot-pill {
    display: table !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background-color: rgba(0, 51, 102, 0.08) !important;
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem !important;
    border-radius: 9999px !important;
    font-size: 0.875rem !important;
    color: #003366 !important;
    margin-bottom: 1.5rem !important;
    font-weight: 500;
    text-align: center !important;
}
.cbrobot-pill-light {
    display: table !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem !important;
    border-radius: 9999px !important;
    font-size: 0.875rem !important;
    color: #ffffff !important;
    margin-bottom: 1.5rem !important;
    font-weight: 500;
    text-align: center !important;
}
.cbrobot-pill-hero {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem !important;
    border-radius: 9999px !important;
    font-size: 0.875rem !important;
    color: #ffffff !important;
    margin-bottom: 1.5rem !important;
    font-weight: 500;
}
.cbrobot-pill-hero::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    background-color: #00CCFF;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    flex-shrink: 0;
}
/* Language Switcher — 文/A icon + dropdown */
.cbrobot-lang-switcher {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    margin: 0;
}

/* The toggle button (icon + label + chevron) */
.cbrobot-lang-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 51, 102, 0.2);
    background: transparent;
    color: #003366;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    white-space: nowrap;
    line-height: 1;
}
.cbrobot-lang-dropdown-toggle:hover {
    background: rgba(0, 51, 102, 0.05);
    border-color: rgba(0, 51, 102, 0.3);
}

/* SVG icons inside button */
.cbrobot-lang-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: #003366;
}
.cbrobot-lang-chevron {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: #6b7280;
    transition: transform 0.2s ease;
}
.cbrobot-lang-dropdown-toggle.is-open .cbrobot-lang-chevron {
    transform: rotate(180deg);
}

/* Dropdown menu — hidden by default */
.cbrobot-lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 8rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 0.375rem 0;
    list-style: none !important;
    margin: 0 !important;
    z-index: 200;
    overflow: hidden;
}
.cbrobot-lang-dropdown-menu.is-open {
    display: block;
    animation: cbrobot-dropdown-fade 0.15s ease;
}

@keyframes cbrobot-dropdown-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Dropdown items */
.cbrobot-lang-dropdown-menu li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.cbrobot-lang-dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #374151 !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.15s;
}
.cbrobot-lang-dropdown-menu li a:hover {
    background: rgba(0, 51, 102, 0.05);
    color: #003366 !important;
    text-decoration: none !important;
}
.cbrobot-lang-dropdown-menu li.current-lang a {
    color: #003366 !important;
    font-weight: 600;
    background: rgba(0, 204, 255, 0.08);
}

.cbrobot-header-subtitle {
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: 0.05em;
}

.cbrobot-main-nav .wp-block-navigation-item .wp-block-navigation-item__content {
    position: relative;
    padding-bottom: 0.25rem;
    transition: color 0.2s ease;
}
.cbrobot-main-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.cbrobot-main-nav .wp-block-navigation-item.is-active-page > .wp-block-navigation-item__content {
    color: #003366 !important;
    font-weight: 600;
}
.cbrobot-main-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content::after,
.cbrobot-main-nav .wp-block-navigation-item.is-active-page > .wp-block-navigation-item__content::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #00CCFF;
    border-radius: 1px;
}

/* Mobile nav overlay fix — backdrop-filter on header creates a new containing block,
   so position:fixed inside it is relative to the header, not the viewport.
   Force the overlay to cover the full viewport. */
.wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 100000 !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    color: #ffffff !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
    color: #00CCFF !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
    display: none !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    align-items: flex-start !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    align-items: flex-start !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    font-size: 1.25rem;
}

.pulse-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #00CCFF;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Buttons */
.btn-glow a {
    background-color: #00CCFF !important;
    color: #003366 !important;
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.3);
    transition: all 0.3s ease;
    border-radius: 9999px !important;
    padding: 1rem 2rem !important;
    font-weight: 600 !important;
}
.btn-glow a:hover {
    box-shadow: 0 0 30px rgba(0, 204, 255, 0.5);
    background-color: #ffffff !important;
}

.cbrobot-btn-outline a {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    padding: 1rem 2rem !important;
    background: transparent !important;
    transition: all 0.3s ease;
    font-weight: 600 !important;
}
.cbrobot-btn-outline a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Glass Card */
.glass-card {
    background: linear-gradient(to bottom right, rgba(0, 51, 102, 0.1), rgba(0, 204, 255, 0.1));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
    color: rgba(255, 255, 255, 0.6) !important;
    position: relative;
    width: 100%;
}
.glass-card svg {
    width: 6rem;
    height: 6rem;
    margin-bottom: 1rem;
}
.glass-card-float {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: #ffffff !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex !important;
    align-items: center;
    gap: 1rem;
    color: #003366 !important;
    flex-direction: row !important;
    width: auto !important;
}
.glass-card-float .icon-wrapper {
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 204, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003366;
}

/* Stats */
.hero-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem !important;
    margin-top: 3rem !important;
}
.hero-stats-num {
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    color: #00CCFF !important;
    line-height: 1.2 !important;
}
.hero-stats-label {
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-top: 0.25rem !important;
}

/* Scaled Hero Content */
.hero-scaled-content {
    transform: scale(0.95);
    transform-origin: center center;
}

/* Fix product cards spacing in CBRobot theme */
.cbrobot-card-hover {
    transition: all 0.3s ease;
}
.cbrobot-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
}

.cbrobot-btn-glow-cyan a {
    background-color: #00CCFF !important;
    color: #003366 !important;
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.3);
    transition: all 0.3s ease;
    border-radius: 9999px !important;
    padding: 1rem 2rem !important;
    font-weight: 600 !important;
}
.cbrobot-btn-glow-cyan a:hover {
    box-shadow: 0 0 30px rgba(0, 204, 255, 0.5);
    background-color: #ffffff !important;
}

/* Fix feature list styling */
.cbrobot-feature-list {
    margin-top: 2rem !important;
}
.cbrobot-feature-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
    color: #64748B;
    list-style: none;
}
.cbrobot-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00CCFF;
    font-weight: bold;
}

.hero-gradient .cbrobot-pill,
.hero-gradient .cbrobot-pill-light,
.cbrobot-hero-gradient .cbrobot-pill,
.cbrobot-hero-gradient .cbrobot-pill-light,
.cbrobot-page-hero .cbrobot-pill,
.cbrobot-page-hero .cbrobot-pill-light {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

footer.wp-block-template-part {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.wp-site-blocks > *:last-child {
    margin-bottom: 0 !important;
}
.wp-block-post-content > *:last-child {
    margin-bottom: 0 !important;
}

.product-tab-btn {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    min-height: min-content !important;
    height: auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
    padding-bottom: 2rem !important;
    transition: all 0.3s ease !important;
}
.product-tab-btn:hover {
    border-color: rgba(0, 204, 255, 0.5) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
}
.product-tab-btn.active {
    border-color: #00CCFF !important;
    background-color: #ffffff !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px);
}
.product-tab-content {
    animation: fadeInUp 0.5s ease forwards;
    display: block;
}
.product-tab-content.hidden {
    display: none !important;
}
.product-tab-content .wp-block-columns.are-vertically-aligned-center {
    align-items: center !important;
}
/* Spacing between product rows (replaces removed 150px spacers) */
.product-tab-content .wp-block-columns.are-vertically-aligned-center + .wp-block-columns.are-vertically-aligned-center {
    margin-top: 6rem;
}
.product-tab-content .wp-block-column .wp-block-image {
    margin-top: 0;
    margin-bottom: 0;
}
.cbrobot-product-tabs {
    align-items: stretch !important;
}


.cbrobot-about-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}
.cbrobot-timeline-line {
    position: relative;
}
.cbrobot-timeline-line::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #003366, #00CCFF);
    transform: translateX(-50%);
}
.cbrobot-about-timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}
.cbrobot-about-timeline-side {
    width: 45%;
}
.cbrobot-about-timeline-side:empty {
    min-height: 1px;
}
.cbrobot-about-timeline-side.left {
    text-align: right;
    padding-right: 2rem;
}
.cbrobot-about-timeline-side.right {
    text-align: left;
    padding-left: 2rem;
}
.cbrobot-about-timeline-year {
    width: 4rem;
    height: 4rem;
    background: #003366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 0 0 4px #fff, 0 4px 6px rgba(0, 0, 0, 0.1);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}
.cbrobot-about-timeline-year.secondary {
    background: #00CCFF;
}
.cbrobot-about-timeline-card {
    background: #F8FAFC;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cbrobot-about-timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.1);
}
.cbrobot-about-timeline-title {
    color: #003366;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.cbrobot-about-timeline-text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 768px) {
    .cbrobot-timeline-line::before {
        left: 1.25rem;
        transform: none;
    }
    .cbrobot-about-timeline-item {
        justify-content: flex-start;
        align-items: flex-start;
        padding-left: 3rem;
    }
    .cbrobot-about-timeline-side,
    .cbrobot-about-timeline-side.left,
    .cbrobot-about-timeline-side.right {
        width: 100%;
        padding: 0;
        text-align: left;
    }
    .cbrobot-about-timeline-year {
        left: 1.25rem;
        transform: translateX(-50%);
    }
}

.cbrobot-contact-card {
    background-color: #f9fafb !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 5;
}
.cbrobot-contact-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}
.cbrobot-contact-card .cbrobot-icon-wrapper {
    width: 3rem !important;
    height: 3rem !important;
    background-color: rgba(0, 204, 255, 0.1) !important;
    color: #00CCFF !important;
    border-radius: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1.5rem !important;
}
.cbrobot-contact-card h3 {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 0.5rem !important;
}
.cbrobot-contact-card p {
    margin: 0 !important;
    padding: 0;
    color: #6b7280 !important;
    font-size: 0.875rem !important;
}
.cbrobot-contact-card p:first-of-type {
    margin-bottom: 1rem !important;
}
.cbrobot-contact-form-wrapper {
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}
.cbrobot-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .cbrobot-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}
#contact-form input,
#contact-form textarea,
#contact-form select {
    box-sizing: border-box;
}
.form-input {
    transition: all 0.3s ease;
}
.form-input:focus,
#contact-form input:focus,
#contact-form textarea:focus,
#contact-form select:focus {
    border-color: #00CCFF;
    box-shadow: 0 0 0 3px rgba(0, 204, 255, 0.15);
    outline: none;
}
#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #9CA3AF;
}
.cbrobot-contact-btn .wp-block-button__link,
.cbrobot-contact-btn .wp-element-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem 2rem !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    background-color: transparent !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    transition: background-color 0.2s ease !important;
}
.cbrobot-contact-btn .wp-block-button__link::before,
.cbrobot-contact-btn .wp-element-button::before {
    content: "";
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='white' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.cbrobot-contact-btn .wp-block-button__link:hover,
.cbrobot-contact-btn .wp-element-button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}
.cbrobot-success-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #10b981;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cbrobot-success-icon::before {
    content: '';
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='white' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

ul.cbrobot-footer-links,
ul.cbrobot-footer-contact {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}
ul.cbrobot-footer-links li a {
    color: #9CA3AF !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    transition: color 0.2s ease !important;
}
ul.cbrobot-footer-links li a:hover {
    color: #00CCFF !important;
}
ul.cbrobot-footer-contact li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    color: #9CA3AF !important;
    font-size: 0.875rem !important;
}
.cbrobot-footer-socials li {
    width: 2.5rem !important;
    height: 2.5rem !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}
.cbrobot-footer-socials li:hover {
    border-color: rgba(0, 204, 255, 0.45) !important;
    background-color: rgba(0, 204, 255, 0.12) !important;
}
.cbrobot-footer-socials li a {
    color: #9CA3AF !important;
}
.cbrobot-footer-socials li a:hover {
    color: #fff !important;
}

.wp-block-template-part:last-child a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}
.wp-block-template-part:last-child a:hover {
    color: #00CCFF !important;
}
.cbrobot-learn-more-link a {
    color: #00CCFF !important;
    text-decoration: none;
    font-weight: 600;
}

.cbrobot-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.cbrobot-icon-box .wp-block-image {
    margin: 0;
    line-height: 0;
}
.cbrobot-icon-box img {
    display: block;
}
.cbrobot-icon-box-sm {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.cbrobot-icon-box-md {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.cbrobot-icon-box-lg {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1rem;
    background: #F1F5F9;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Shortcode Page Styles (Products & Contact) ===== */

/* Card hover effect — used by product overview cards */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
}

/* Contact card hover */
.contact-card {
    transition: all 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 51, 102, 0.1);
}

/* Form input focus */
.form-input {
    transition: all 0.3s ease;
}
.form-input:focus {
    border-color: #00CCFF;
    box-shadow: 0 0 0 3px rgba(0, 204, 255, 0.1);
}

/* FAQ accordion */
.faq-toggle {
    cursor: pointer;
}
.faq-toggle:hover {
    background-color: #f9fafb;
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-toggle.active .faq-icon {
    transform: rotate(180deg);
}
.faq-content {
    max-height: 500px;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    overflow: hidden;
    opacity: 1;
}
.faq-content.hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: block;
}

/* Success message animation */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.success-message {
    animation: slideIn 0.5s ease;
}

/* Product tab styles (legacy) */
.product-tab {
    transition: all 0.3s ease;
}
.product-tab.active {
    background: linear-gradient(135deg, #003366, #0066CC);
    color: white;
}
.product-content {
    display: none;
}
.product-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-tab-btn {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.product-tab-btn.active {
    background: #ffffff;
    border-color: #00CCFF;
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
    transform: translateY(-8px);
}
.product-tab-btn:not(.active):hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.1);
}

/* Smooth scroll for shortcode pages */
html { scroll-behavior: smooth; }

/* ===== Page Loading Animation ===== */
.cbrobot-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.cbrobot-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.cbrobot-loader.restarting .cbrobot-loader-logo,
.cbrobot-loader.restarting .cbrobot-loader-track::after {
    animation: none !important;
}
.cbrobot-loader-inner {
    position: absolute;
    top: 61.8%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
}
.cbrobot-loader-track {
    width: 100%;
    height: 3px;
    background: #e0e5ec;
    border-radius: 3px;
    position: relative;
    overflow: visible;
}
.cbrobot-loader-track::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00CCFF, #003366);
    border-radius: 3px;
    animation: loaderFill 1.4s ease-in-out forwards;
}
.cbrobot-loader-logo {
    width: 48px;
    height: auto;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: loaderLogoMove 1.4s ease-in-out forwards;
}
@keyframes loaderFill {
    0%   { width: 0%; }
    100% { width: 100%; }
}
@keyframes loaderLogoMove {
    0%   { left: 50%; opacity: 0.8; }
    15%  { left: 0%;  opacity: 1; }
    100% { left: 100%; opacity: 1; }
}

/* ========== Mobile Header Layout ========== */
@media (max-width: 600px) {
    /* Hide subtitle on mobile */
    .cbrobot-header-subtitle {
        display: none !important;
    }

    /* Right group: reduce gap, ensure lang comes before hamburger */
    .cbrobot-glass-header .wp-block-group > .wp-block-group:last-child {
        gap: 0.75rem !important;
    }

    /* Language switcher: order 1 (left), nav hamburger: order 2 (right) */
    .cbrobot-glass-header .cbrobot-lang-switcher {
        order: 1 !important;
    }
    .cbrobot-glass-header .cbrobot-main-nav {
        order: 2 !important;
    }

    /* Compact header padding on mobile */
    .cbrobot-glass-header > .wp-block-group {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Make site title smaller on mobile */
    .cbrobot-glass-header .wp-block-site-title {
        font-size: 1rem !important;
    }

    /* Reduce logo size on mobile */
    .cbrobot-glass-header .wp-block-site-logo img {
        width: 36px !important;
        height: auto !important;
    }
}
