/* Reset and Base Styles */
:root {
    --primary-color: #1e2a3a;
    --secondary-color: #2b7de9;
    --accent-color: #e74c3c;
    --text-color: #555;
    --light-gray: #f5f7fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --header-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Screen reader only - visible to crawlers, hidden visually */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    padding-top: var(--header-height);
    background: #ffffff;
}

/* Header and Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    height: 100%;
}

nav ul li {
    margin: 0 0.8rem;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Special CTA Menu Item - Free Design Review */
nav ul li.cta-menu-item {
    margin-left: auto;
    padding-left: 1rem;
}

nav ul li.cta-menu-item a {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    white-space: nowrap;
}

nav ul li.cta-menu-item a::after {
    display: none;
}

nav ul li.cta-menu-item a:hover {
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: auto;
}

/* Hero Section */
.hero {
    min-height: 400px;
    height: 80vh;
    background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%),
                url('/images/hero-bg.jpg') center/cover;
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 4rem 0;
    position: relative;
}

/* Shorter hero section for inner pages */
.hero.inner-page {
    min-height: 200px;
    height: 40vh;
    padding: 2rem 0;
}

/* JS-driven hero slideshow. CSS only handles layout and the slide transition. */
.hero.hero-rotating {
    background: none;
    overflow: hidden;
}
.hero.hero-rotating .hero-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.hero.hero-rotating .hero-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateX(100%);
    will-change: transform;
    /* No CSS transition — JS handles the animation via rAF so it works
       even if the browser/OS has CSS transitions disabled. */
}
.hero.hero-rotating .hero-frame.is-active { transform: translateX(0); }
.hero.hero-rotating .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%);
    pointer-events: none;
}
.hero.hero-rotating .hero-text {
    position: relative;
    z-index: 1;
}

.hero.bg-rf { background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%), url('/images/heros/esp_wifi_module.jpg') center/cover; }
.hero.bg-power { background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%), url('/images/heros/precision_rgb_driver.jpg') center/cover; }
.hero.bg-firmware { background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%), url('/images/heros/nrf52_multisensor_mini_board.jpg') center/cover; }
.hero.bg-microcontroller { background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%), url('/images/heros/iMX_SBC_industrial_SCADA.jpg') center/cover; }
.hero.bg-analog { background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%), url('/images/heros/precision_analog_wm.jpg') center/cover; }
.hero.bg-digital { background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%), url('/images/heros/multi_chip_wireless_module.jpg') center/cover; }
.hero.bg-test { background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%), url('/images/heros/tec_controller.jpg') center/cover; }
.hero.bg-motor { background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%), url('/images/heros/motor_driver_drv8833.jpg') center/cover; }
.hero.bg-solar { background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%), url('/images/heros/high_power_solar_wm.jpg') center/cover; }
.hero.bg-isolation { background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%), url('/images/heros/isolated_analog_interface.jpg') center/cover; }
.hero.bg-psu { background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%), url('/images/heros/custom_psu_wm.jpg') center/cover; }
.hero.bg-inverter { background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%), url('/images/heros/cascaded_inverter.jpg') center/cover; }
.hero.bg-network { background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%), url('/images/heros/poe_building_monitor.jpg') center/cover; }
.hero.bg-spectrum { background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%), url('/images/heros/spectrum-analyzer.jpg') center/cover; }
.hero.bg-antenna-pattern { background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%), url('/images/heros/antenna_radiation.jpg') center/cover; }
.hero.bg-scope { background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%), url('/images/heros/lecroy.jpg') center/cover; }
.hero.bg-pnp { background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%), url('/images/heros/pnp.jpg') center/cover; }
.hero.bg-flir { background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%), url('/images/heros/flir.jpg') center/cover; }
.hero.bg-custom {
    background: linear-gradient(to bottom, rgba(20, 30, 48, 0.82) 0%, rgba(36, 59, 85, 0.65) 60%, rgba(44, 62, 80, 0.75) 100%), var(--hero-bg, url('/images/hero-bg.jpg')) center/cover;
}

.hero-text {
    max-width: 900px;
    padding: 2rem;
}

.hero-text h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.85;
    line-height: 1.7;
}

.hero-text .btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.25);
}

.hero-text .btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.35);
}

/* Intro Text Styles */
.intro-text,
.featured_intro {
    text-align: center;
    max-width: 960px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.85;
}

/* Featured Section */
.featured {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured.alt-bg {
    background: var(--light-gray);
    max-width: none;
    padding-left: 2rem;
    padding-right: 2rem;
}

.featured.alt-bg > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: saturate(0.85) brightness(0.97);
}

.card h3 {
    padding: 2rem 2.25rem 0.75rem;
    font-size: 1.35rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
}

.card p {
    padding: 0 2.25rem;
    color: #6b7280;
    flex-grow: 1;
    line-height: 1.75;
    font-size: 0.95rem;
}

.card a {
    display: inline-block;
    margin: 1.5rem 2.25rem 2rem;
    padding: 0;
    background: none;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    align-self: flex-start;
}

.card a:hover {
    color: var(--primary-color);
}

/* Testimonials Section */
.secondary {
    background: #e8ecf1;
    padding: 7rem 2rem;
}

.secondary h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.testimonials-carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-viewport {
    flex: 1;
    overflow: hidden;
    padding-bottom: 1rem;
}

.testimonials-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s ease;
}

.testimonials-item {
    background: var(--white);
    padding: 2.75rem;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    flex: 0 0 calc(33.333% - 1rem);
    position: relative;
}

.testimonials-item::before {
    content: "\201C";
    position: absolute;
    top: 0.75rem;
    left: 1.75rem;
    font-size: 5rem;
    color: var(--secondary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonials-item p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #555;
    flex-grow: 1;
}

.testimonials-item span {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.testimonials-item .fi {
    font-size: 0.9em;
    margin-left: 0.4em;
    vertical-align: baseline;
    border-radius: 2px;
}

.carousel-btn {
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid #e5e7eb;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}

.carousel-dot:hover {
    background: var(--secondary-color);
}

/* Footer */
footer {
    background: #111827;
    color: var(--white);
}

footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--white);
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
    max-width: 320px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.footer-contact {
    margin-bottom: 1rem;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-contact i {
    font-size: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 1.1rem;
    transition: background 0.2s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.6rem;
}

.footer-column a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

@media (max-width: 900px) {
    .footer-main {
        gap: 2.5rem;
    }

    .footer-links {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 2rem;
        padding: 2.5rem 1.5rem 2rem;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-contact {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        width: 100%;
        justify-content: space-between;
    }

    .footer-column {
        min-width: 100px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Menu */
.menu-icon {
    display: none;
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 24px;
    padding: 0;
    z-index: 1003;
}

.menu-icon .bar {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.menu-icon .bar:nth-child(1) {
    top: 0;
}

.menu-icon .bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-icon .bar:nth-child(3) {
    bottom: 0;
}

/* Animated hamburger menu */
nav.menu-open .menu-icon .bar:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

nav.menu-open .menu-icon .bar:nth-child(2) {
    opacity: 0;
}

nav.menu-open .menu-icon .bar:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 0.75rem 1rem;
        height: var(--header-height);
    }

    .logo {
        font-size: 1.3rem;
    }

    .menu-icon {
        display: block;
        margin-left: auto;
    }

    nav ul {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        display: none;
        padding: 0 0 1rem 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1002;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0;
        width: 100%;
        height: auto;
        border-bottom: 1px solid #f0f0f0;
        display: block;
    }

    nav ul li a {
        padding: 1rem 1.5rem;
        width: 100%;
        font-size: 1.1rem;
        justify-content: flex-start;
        height: auto;
    }

    /* Mobile CTA menu item styling */
    nav ul li.cta-menu-item {
        margin-left: 0;
        padding-left: 0;
        border-bottom: none;
    }

    nav ul li.cta-menu-item a {
        margin: 1rem 1.5rem;
        width: calc(100% - 3rem);
        text-align: center;
        border-radius: 5px;
        padding: 1rem;
    }

    nav ul li a::after {
        display: none;
    }

    nav ul li a:active {
        background: var(--light-gray);
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown > a {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0 !important;
    padding: 0;
    width: 100%;
    height: 60px !important;
    background: var(--white);
    display: flex;
    align-items: center;
}

.dropdown-menu li:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    overflow: hidden;
}

.dropdown-menu a {
    padding: 0 1.5rem !important;
    width: 100%;
    height: 100%;
    white-space: nowrap;
    transition: var(--transition);
    background: var(--white);
    position: relative;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 1rem;
}

.dropdown-menu li:last-child a {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.dropdown-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 1.5rem;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.dropdown-menu a:hover::after {
    width: calc(100% - 3rem);
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
}

@media (max-width: 768px) {
    /* Mobile dropdown styles - always visible */
    .dropdown {
        position: relative;
    }

    .dropdown > a {
        font-weight: 700;
        color: var(--primary-color);
        background: var(--light-gray);
        text-transform: uppercase;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        position: relative;
        cursor: default;
        pointer-events: none;
    }
    
    /* Remove link styling from dropdown parents on mobile */
    .dropdown > a:hover {
        color: var(--primary-color);
    }
    
    /* Add visual separator before dropdown sections */
    .dropdown {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 2px solid #e0e0e0;
    }
    
    .dropdown:first-of-type {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .dropdown:hover .dropdown-menu {
        display: block; /* Always show on mobile */
    }

    .dropdown-menu {
        position: static;
        display: block !important; /* Always visible on mobile */
        width: 100%;
        margin: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        margin-left: 1rem;
    }

    .dropdown-menu li {
        background: var(--white);
        width: calc(100% - 1rem);
        height: auto;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .dropdown-menu li:last-child {
        border-bottom: none;
    }

    .dropdown-menu a {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem;
        background: transparent;
        position: relative;
        color: var(--text-color);
    }

    .dropdown-menu a::after {
        display: none;
    }

    .dropdown-menu a:active {
        background: rgba(52, 152, 219, 0.1);
    }

    /* Special styling for "View All Articles" link */
    .dropdown-menu li:last-child a {
        font-weight: 600;
        color: var(--secondary-color);
        border-top: 1px solid #e0e0e0;
        margin-top: 0.5rem;
        padding-top: 1rem !important;
    }
    
    /* Ensure last nav item (Contact) is visible */
    nav ul > li:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    /* Add some scroll padding for better visibility */
    nav ul {
        padding-bottom: 4rem !important;
    }
}

/* Contact Page Styles */
.contact-container {
    width: 100%;
    max-width: none;
    padding: 4rem 0 0 0;
    margin: 0;
    position: relative;
}

.map-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

#map {
    width: 100%;
    height: 400px;
    margin: 0;
    border-radius: 0;
}

.contact-intro {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    line-height: 1.6;
}

.contact-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.result_message {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

.result_message p {
    margin: 0;
    line-height: 1.4;
}

.result_message p[style*="green"] {
    color: #155724 !important;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 1rem;
    border-radius: 5px;
}

.result_message p[style*="red"] {
    color: #721c24 !important;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: 5px;
}

.file-upload-container {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.file-upload-container.dragover {
    background: #e9ecef;
    border-color: var(--secondary-color);
}

.file-upload-container input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-container .upload-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.file-upload-container .upload-text {
    color: #666;
    margin-bottom: 0.5rem;
}

.file-upload-container .upload-hint {
    color: #999;
    font-size: 0.9rem;
}

.selected-files {
    margin-top: 1rem;
    padding: 0;
    list-style: none;
}

.selected-files li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.selected-files .remove-file {
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.selected-files .remove-file:hover {
    background: #dc3545;
    color: #fff;
}

/* Downloads Page Styles */
.download-section {
    background: var(--white);
    border-radius: 10px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.download-section h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.download-section h3 i {
    color: var(--secondary-color);
}

.download-section p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.1rem;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.download-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.download-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.download-button-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
}

.download-btn i {
    font-size: 1.2rem;
}

.download-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

.warning {
    background: #fff3cd;
    color: #856404;
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid #ffeeba;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.warning i {
    color: #856404;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.features-list {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.features-list li::before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.version-tag {
    display: inline-flex;
    align-items: center;
    background: var(--light-gray);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-left: 1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .download-content {
        grid-template-columns: 1fr;
    }

    .download-section {
        padding: 2rem;
    }

    .testimonials-item {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .contact-intro,
    .contact-form {
        margin: 1rem;
        padding: 1.5rem;
    }

    .testimonials-item {
        flex: 0 0 100%;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    #map {
        height: 300px;
    }

    .download-section {
        padding: 1.5rem;
    }

    .download-section h3 {
        font-size: 1.75rem;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Services Page Styles */
.featured > h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 3rem 0 0.5rem 0;
}

.featured > h2:first-of-type {
    margin-top: 1rem;
}

.service-section-intro {
    color: var(--text-light, #666);
    font-size: 1.05rem;
    margin-bottom: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-item img {
    width: 100%;
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-gray);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-item h3 a,
.service-item h3 a:visited,
.project-item h3 a,
.project-item h3 a:visited {
    color: var(--primary-color);
    text-decoration: none;
}

.service-item a.learn-more,
.service-item a.learn-more:visited,
.project-item a.learn-more,
.project-item a.learn-more:visited {
    color: var(--secondary-color);
    text-decoration: none;
}

.service-item h3 a::after,
.project-item h3 a::after {
    content: "\f35d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7em;
    margin-left: 0.4em;
    opacity: 0.6;
}

.service-item p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-category {
    display: inline-block;
    background: var(--light-gray);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Service Detail Page Styles */
.service-detail-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-detail-content h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.service-detail-content h2:first-child {
    margin-top: 0;
}

.service-detail-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.service-detail-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.service-detail-content ul li {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.service-deliverables {
    list-style: disc;
    padding-left: 1.5rem;
}

.service-deliverables li {
    margin-bottom: 0.5rem;
}

.service-deliverables li strong {
    color: var(--primary-color);
}

.back-link {
    margin-bottom: 1.5rem;
}

.back-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-link a:hover {
    color: var(--primary-color);
}

.back-link i {
    margin-right: 0.5rem;
}

/* Process Steps */
.process-steps {
    display: grid;
    gap: 2.5rem;
    margin: 2.5rem auto;
    max-width: 640px;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    padding: 0;
    background: transparent;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.process-step h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.process-step p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.75;
}

/* Service CTA */
.service-cta {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2.5rem;
}

.service-cta h2 {
    border-bottom: none !important;
    margin: 0 0 0.75rem !important;
}

.service-cta p {
    margin-bottom: 1.25rem;
}

.service-cta .btn,
.service-cta .btn:visited {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.service-cta .btn:hover {
    background: var(--primary-color);
}

/* Related Links */
.related-links {
    list-style: none;
    padding-left: 0;
}

.related-links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.related-links li:last-child {
    border-bottom: none;
}

.related-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.related-links a:hover {
    color: var(--primary-color);
}

/* Review Areas Grid (Design Review page) */
.review-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.review-area {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
}

.review-area h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.review-area ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

/* Fixture Types, Testing Categories, Equipment Grid */
.fixture-types,
.testing-categories,
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.fixture-type,
.test-category,
.equipment-category {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
}

.fixture-type h3,
.test-category h3,
.equipment-category h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.fixture-type p,
.test-category p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.fixture-type ul,
.test-category ul,
.equipment-category ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

/* Service Flowchart */
.service-flowchart {
    margin: 2.5rem 0;
}

.service-flowchart h2 {
    margin-bottom: 0.5rem !important;
    border-bottom: none !important;
}

.service-flowchart > p {
    margin-bottom: 1.5rem;
    color: #666;
}

.service-flowchart svg {
    width: 100%;
    height: auto;
    max-width: 600px;
    display: block;
    margin: 0 auto;
}

.service-flowchart .flow-box {
    fill: #fafafa;
    stroke: #888;
    stroke-width: 1.5;
}

.service-flowchart .flow-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    fill: #333;
    text-anchor: middle;
    dominant-baseline: middle;
}

.service-flowchart .flow-arrow {
    fill: none;
    stroke: #888;
    stroke-width: 1.5;
}

@media print {
    .service-flowchart .flow-box {
        fill: white;
    }
}

/* Service Detail Responsive */
@media (max-width: 768px) {
    .service-detail-content {
        padding: 1.5rem;
    }

    .service-detail-content h2 {
        font-size: 1.5rem;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .review-areas,
    .fixture-types,
    .testing-categories,
    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .service-cta {
        padding: 1.5rem;
    }
}

/* Projects Page Styles */
.project-item {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.project-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-item p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-category {
    display: inline-block;
    background: var(--light-gray);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Lab Equipment Page Styles */
.equipment-section {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.equipment-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.equipment-item:hover {
    transform: translateY(-5px);
}

.equipment-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
    cursor: pointer;
}

.equipment-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.equipment-item p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.category-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Privacy Page Styles */
.privacy-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.privacy-content h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.privacy-content h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.privacy-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.privacy-content ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-content .highlight {
    background: #e8f4f8;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.privacy-content .date {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 2rem;
}

/* Tool Pages Styles (Gerber Viewer & NTC) */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    min-height: 0;
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.tool-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    padding-top: var(--header-height);
}

#root, #flutter_target {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#root > div {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

/* Additional Responsive Styles */
@media (max-width: 768px) {
    .privacy-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .project-grid,
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-item,
    .service-item,
    .equipment-item {
        padding: 1.5rem;
    }

    /* Mobile content optimizations */
    .main-container {
        padding: 2rem 1rem;
    }

    .featured {
        padding: 3rem 1rem;
    }

    .secondary {
        padding: 3rem 1rem;
    }

    /* Better touch targets */
    .btn, .download-btn, .card a {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        padding: 0.75rem 1.5rem;
    }

    /* Improved typography for mobile */
    p {
        font-size: 1rem;
        line-height: 1.7;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Better image handling on mobile */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Mobile-optimized forms */
    input[type="text"],
    input[type="email"],
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Floating buttons positioning */
    .floating-email-btn,
    .social-share.floating {
        bottom: 20px;
        right: 20px;
    }
}

/* Common Card Styles */
.card-base {
    background: var(--white);
    border-radius: 14px;
    padding: 2.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.card-base img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.card-base h3, .card-base h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-base p {
    color: #6b7280;
    line-height: 1.75;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.category-tag {
    display: inline-block;
    background: var(--light-gray);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Tool Pages Common Styles */
.tool-page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    min-height: 0;
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.tool-page-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-page-container > div {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* Service, Project, Equipment items inherit from card-base via HTML classes */

/* Responsive Styles */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }

    nav ul {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        display: none;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1002;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .grid-layout {
        grid-template-columns: 1fr;
    }

    .card-base {
        padding: 1.5rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}

/* Service Item Image Container */
.service-image-container {
    width: 100%;
    height: 200px;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image-container img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Knowledge Base Article Styles */
.kb-article {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.kb-article h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 2rem 0 1.5rem;
}

.kb-article p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* SVG Figure Styles for Articles */
.kb-figure {
    margin: 2.5rem 0;
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.kb-figure svg {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    background: #fafafa;
    padding: 10px;
}

.kb-figure-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}

.kb-figure-title {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

@media (max-width: 768px) {
    .kb-article {
        padding: 1rem;
    }

    .kb-article h2 {
        font-size: 1.75rem;
        margin: 1.5rem 0 1rem;
    }

    .kb-article p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

.social-share {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.twitter {
    background-color: #000000;
}

.share-btn.linkedin {
    background-color: #0077B5;
}

.share-btn.facebook {
    background-color: #4267B2;
}

.share-btn.email {
    background-color: #EA4335;
}

.share-btn i {
    font-size: 1.2rem;
}

.social-share.floating {    
    position: fixed;
    right: 35px;
    bottom: 80px;
    /*transform: translateY(-50%);*/
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;


}

.social-share.floating .share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.social-share.floating .share-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .social-share.floating {
        position: fixed;
        right: 20px;
        bottom: 20px;
        transform: none;
        flex-direction: row;
    }
}

.esd-illustration {
    margin: 30px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}

.esd-illustration svg {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.illustration-caption {
    font-size: 0.9em;
    color: #555;
    margin-top: 10px;
    margin-bottom: 0;
    font-style: italic;
    text-align: center;
}

@media (max-width: 768px) {
    .esd-illustration {
        padding: 10px;
        margin: 20px 0;
    }
    
    .esd-illustration svg {
        height: auto;
    }
}

/* Floating Email Button */
.floating-email-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: scale(1);
}

.floating-email-btn:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.floating-email-btn:active {
    transform: scale(0.95);
}

.floating-email-btn i {
    color: white;
    font-size: 24px;
    pointer-events: none;
}

/* Tooltip for email button */
.email-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.email-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 6px solid transparent;
    border-top-color: var(--primary-color);
}

.floating-email-btn:hover .email-tooltip,
.floating-email-btn:focus .email-tooltip {
    opacity: 1;
}

/* Mobile adjustments for floating button */
@media (max-width: 768px) {
    .floating-email-btn {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .floating-email-btn i {
        font-size: 22px;
    }
    
    .email-tooltip {
        display: none; /* Hide tooltip on mobile */
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .floating-email-btn {
        transition: none;
    }
    
    .email-tooltip {
        transition: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero {
        min-height: 300px;
        height: 60vh;
    }
    
    .cards {
        gap: 1rem;
    }
    
    .featured {
        padding: 2rem 0.75rem;
    }
    
    nav {
        padding: 0.5rem 0.75rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
}

/* Touch-friendly hover states */
@media (hover: none) and (pointer: coarse) {
    .card:hover,
    .service-item:hover,
    .project-item:hover {
        transform: none;
    }
    
    nav ul li a:hover::after {
        width: 0;
    }
    
    .btn:hover,
    .download-btn:hover {
        transform: none;
    }
}

/* Expandable Email Button Container */
.floating-email-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    transition: var(--transition);
}

.floating-email-container.expanded .floating-email-btn {
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Email expanded display */
.email-expanded {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 0;
    min-width: 280px;
    opacity: 0;
    transform: translateY(10px);
    animation: slideUp 0.3s ease forwards;
    z-index: 1000;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 8px;
}

.email-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    user-select: all;
    cursor: text;
}

.email-link:hover {
    color: var(--secondary-color);
}

/* Copy button */
.copy-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.success {
    background: #28a745;
}

.copy-btn.error {
    background: #dc3545;
}

.copy-btn i {
    font-size: 14px;
}

/* Arrow pointing to button */
.email-expanded::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--white);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Mobile adjustments for expanded email */
@media (max-width: 768px) {
    .floating-email-container {
        bottom: 20px;
        right: 20px;
    }
    
    .email-expanded {
        min-width: 250px;
        right: -10px;
        bottom: 70px;
    }
    
    .email-display {
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .email-link {
        font-size: 15px;
        text-align: center;
    }
    
    .copy-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Ensure container doesn't interfere with page content */
.floating-email-container {
    pointer-events: none;
}

.floating-email-container > * {
    pointer-events: auto;
}

/* ============================================================
   LEAD-MAGNET SERVICE PAGE  (namespaced .lm-*)
   Modern landing layout: story hero, bento grids, social proof.
   Isolated from legacy .service-* styles by the main.lm scope.
   ============================================================ */
main.lm {
    --ink: #0f1a2a;
    --blue: #2b7de9;
    --blue-bright: #3b8ef0;
    --blue-050: #eef4fd;
    --line: #e6ecf3;
    --muted: #566579;
    --surface: #f6f9fc;
    display: block;
    color: #334155;
    font-size: 1.02rem;
    background: var(--white);
}

.lm-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.lm-section {
    padding: 5rem 0;
}

.lm-section--tint {
    background: var(--surface);
}

.lm-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.9rem;
}

.lm-h2 {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.14;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-weight: 800;
    margin: 0 0 1rem;
    text-wrap: balance;
}

.lm-h2--sm {
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    margin-bottom: 0.75rem;
}

.lm-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 64ch;
    margin: 0 0 2.5rem;
}

.lm-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.18s ease;
}

.lm-link:hover {
    gap: 0.8rem;
}

/* Buttons */
.lm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 1.9rem;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 10px 24px rgba(43, 125, 233, 0.28);
}

.lm-btn:hover {
    background: var(--blue-bright);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(43, 125, 233, 0.36);
}

.lm-btn--ghost {
    background: transparent;
    color: #fff;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.lm-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

/* Hero */
.lm-hero {
    position: relative;
    background:
        radial-gradient(1100px 520px at 82% -8%, rgba(43, 125, 233, 0.28), transparent 60%),
        var(--ink);
    color: #fff;
    overflow: hidden;
}

.lm-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    padding: 5.5rem 1.5rem 5rem;
}

.lm-hero .lm-eyebrow {
    color: #7fb2f0;
}

.lm-hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.3rem);
    line-height: 1.07;
    letter-spacing: -0.025em;
    font-weight: 800;
    margin: 0 0 1.1rem;
    text-wrap: balance;
}

.lm-hero > .lm-hero-grid p {
    font-size: 1.15rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 2rem;
    max-width: 52ch;
}

.lm-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.lm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.9rem;
}

.lm-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
}

.lm-chip i {
    color: #7fb2f0;
}

/* How a service is offered: part of a full design, or also on its own. */
.lm-scope {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    margin: -0.9rem 0 1.8rem;
    max-width: 52ch;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}

.lm-scope i {
    color: #7fb2f0;
}

.lm-scope a {
    color: #7fb2f0;
    white-space: nowrap;
}

.lm-hero-media {
    position: relative;
}

.lm-hero-media img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
}

.lm-hero-badge {
    position: absolute;
    left: -1.1rem;
    bottom: -1.1rem;
    background: #fff;
    border-radius: 14px;
    padding: 0.95rem 1.15rem;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    max-width: 240px;
}

.lm-hero-badge b {
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
}

.lm-hero-badge span {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.3;
}

/* Stats / social proof strip */
.lm-strip {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--line);
}

.lm-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.lm-stat {
    text-align: center;
    padding: 0 0.75rem;
}

.lm-stat + .lm-stat {
    border-left: 1px solid var(--line);
}

.lm-stat b {
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.lm-stat span {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Hook — two-part statement that fills the column */
.lm-hook {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    column-gap: 3.5rem;
    row-gap: 1.25rem;
    align-items: start;
}

.lm-hook .lm-eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.lm-hook .lm-h2 {
    max-width: none;
    margin: 0;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.lm-hook .lm-lead {
    max-width: none;
    margin: 0;
    align-self: center;
}

@media (max-width: 820px) {
    .lm-hook {
        grid-template-columns: 1fr;
        row-gap: 1.25rem;
    }
}

/* Bento / card grids */
.lm-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.lm-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.7rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 26, 42, 0.1);
    border-color: #d4e0ee;
}

.lm-card-ico {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--blue-050);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1.1rem;
}

/* Icon variant that holds an original colour SVG illustration */
.lm-card-ico--svg {
    width: 56px;
    height: 56px;
    border-radius: 0;
    background: transparent;
}

.lm-card-ico--svg img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Horizontal service cards: larger icon beside the text */
.lm-bento--split {
    grid-template-columns: repeat(2, 1fr);
}

.lm-bento--split .lm-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1.25rem;
    align-items: start;
}

.lm-bento--split .lm-card-ico {
    grid-column: 1;
    grid-row: 1 / span 3;
    margin-bottom: 0;
}

.lm-bento--split .lm-card-ico--svg {
    width: 72px;
    height: 72px;
}

.lm-bento--split .lm-card h3 {
    grid-column: 2;
    grid-row: 1;
}

.lm-bento--split .lm-card p {
    grid-column: 2;
    grid-row: 2;
}

.lm-bento--split .lm-card .lm-link {
    grid-column: 2;
    grid-row: 3;
}

@media (max-width: 780px) {
    .lm-bento--split {
        grid-template-columns: 1fr;
    }
}

.lm-card h3 {
    font-size: 1.12rem;
    color: var(--ink);
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.lm-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.62;
}

.lm-card h3 a {
    color: inherit;
    text-decoration: none;
}

.lm-card h3 a:hover {
    color: var(--blue);
}

.lm-card .lm-link {
    margin-top: 1rem;
}

.lm-list {
    margin: 0;
    padding-left: 1.15rem;
}

.lm-list li {
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
}

/* Card header row — icon and severity badge inline */
.lm-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.lm-card-head .lm-card-ico {
    margin-bottom: 0;
}

.lm-card-head .lm-sev {
    margin-bottom: 0;
}

/* Severity chips */
.lm-sev {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.26rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.lm-sev--crit {
    background: #fee2e2;
    color: #b91c1c;
}

.lm-sev--imp {
    background: #fef3c7;
    color: #b45309;
}

.lm-sev--min {
    background: var(--blue-050);
    color: #1e5fc0;
}

/* Process stepper */
.lm-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.lm-step {
    position: relative;
}

.lm-step-n {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--blue);
    color: var(--blue);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    position: relative;
    z-index: 1;
}

.lm-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: -1.5rem;
    height: 2px;
    background: #d6e2f1;
}

.lm-step h3 {
    font-size: 1.02rem;
    color: var(--ink);
    margin: 0 0 0.4rem;
    font-weight: 700;
}

.lm-step p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
}

/* Reviewer bio */
.lm-bio {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.25rem;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2.5rem;
}

.lm-bio img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 10px 30px rgba(15, 26, 42, 0.12);
}

.lm-bio .lm-lead {
    margin-bottom: 1rem;
}

/* FAQ accordion */
.lm-faq {
    max-width: 820px;
}

.lm-faq details {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 0 1.4rem;
    margin-bottom: 0.8rem;
}

.lm-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
    padding: 1.2rem 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 1.02rem;
}

.lm-faq summary::-webkit-details-marker {
    display: none;
}

.lm-faq summary::after {
    content: '+';
    color: var(--blue);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.lm-faq details[open] summary::after {
    content: '\2212';
}

.lm-faq details p {
    margin: 0 0 1.25rem;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.97rem;
}

/* Final CTA */
.lm-cta {
    background:
        radial-gradient(820px 380px at 50% -30%, rgba(43, 125, 233, 0.32), transparent 62%),
        var(--ink);
    color: #fff;
    border-radius: 24px;
    text-align: center;
    padding: 4rem 2rem;
}

.lm-cta h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    text-wrap: balance;
}

.lm-cta p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    line-height: 1.65;
    max-width: 54ch;
    margin: 0 auto 2rem;
}

/* Responsive */
@media (max-width: 900px) {
    .lm-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.75rem;
        padding-top: 4rem;
    }
    .lm-hero-media {
        max-width: 520px;
    }
    .lm-bento {
        grid-template-columns: repeat(2, 1fr);
    }
    .lm-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .lm-step:not(:last-child)::before {
        display: none;
    }
    .lm-bio {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 620px) {
    .lm-section {
        padding: 3.5rem 0;
    }
    .lm-bento {
        grid-template-columns: 1fr;
    }
    .lm-steps {
        grid-template-columns: 1fr;
    }
    .lm-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 0.5rem;
    }
    .lm-stat:nth-child(odd) {
        border-left: none;
    }
    .lm-hero-badge {
        left: 0.8rem;
        bottom: 0.8rem;
    }
    .lm-hero-cta .lm-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lm-card,
    .lm-btn,
    .lm-link {
        transition: none;
    }
}
