@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@200;300;400;500;600;700;800;900&display=swap');

:root {
    --lexi-primary: #1d4ed8;
    --lexi-primary-hover: #1e40af;
    --lexi-bg: #f6f3ee;
    --lexi-surface: #ffffff;
    --lexi-output: #eff6ff;
    --lexi-text: #1f2937;
    --lexi-text-soft: #4b5563;
    --lexi-text-muted: #6b7280;
    --lexi-border: #d6deea;
    --lexi-radius: 16px;
    --lexi-radius-sm: 10px;
    --lexi-pill: 999px;
    --lexi-shadow: 0 18px 50px rgba(29, 78, 216, 0.08);
    --lexi-max: 1200px;
    --lexi-font: "Source Sans 3", Segoe UI, Candara, Bitstream Vera Sans, DejaVu Sans, Bitstream Vera Sans, Trebuchet MS, Verdana, Verdana Ref, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--lexi-font);
    font-weight: 400;
    color: var(--lexi-text);
    background:
        radial-gradient(circle at top left, rgba(29, 78, 216, 0.08), transparent 32%),
        linear-gradient(180deg, #f8f5ef 0%, #eef4ff 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
}

a {
    color: inherit;
}

.content-card a {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-card a:hover {
    color: #1e40af;
}

.content-card a {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-card a:hover {
    color: #1e40af;
}

h1 { font-size: 28px; font-weight: 700; line-height: 1.2; color: #111827; letter-spacing: -0.025em; }
h2 { font-size: 24.5px; font-weight: 700; line-height: 1.3; color: #111827; letter-spacing: -0.025em; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.4; color: #111827; letter-spacing: -0.025em; }

.page-shell {
    max-width: var(--lexi-max);
    margin: 0 auto;
    padding: 24px;
}

.site-header,
.site-footer {
    max-width: var(--lexi-max);
    margin: 0 auto;
    padding: 18px 24px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(248, 245, 239, 0.84);
    border-bottom: 1px solid rgba(214, 222, 234, 0.9);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.brand-badge {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--lexi-primary), #4c8df6);
    color: #fff;
    box-shadow: 0 12px 30px rgba(29, 78, 216, 0.22);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy span:first-child {
    font-size: 18px;
}

.brand-copy small {
    color: var(--lexi-text-soft);
    font-size: 12px;
    font-weight: 600;
}

/* Global Layout Components */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(214, 222, 234, 0.9);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-logo {
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: #111827;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links > a {
    text-decoration: none;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 8px;
    transition: background 0.12s, color 0.12s;
}

.nav-links > a:hover {
    background: #f0f4ff;
    color: var(--lexi-primary);
}

.nav-mobile-only {
    display: none;
}

/* Dropdown trigger */
.nav-has-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    font-family: var(--lexi-font);
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    padding: 7px 12px;
    border-radius: 8px;
    transition: background 0.12s, color 0.12s;
}

.nav-dropdown-btn:hover,
.nav-has-dropdown.is-open .nav-dropdown-btn {
    background: #f0f4ff;
    color: var(--lexi-primary);
}

.nav-dropdown-btn svg {
    transition: transform 0.2s;
}

.nav-has-dropdown.is-open .nav-dropdown-btn svg {
    transform: rotate(180deg);
}

/* Mega Menu */
.nav-mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid var(--lexi-border);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    padding: 24px 28px;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    min-width: 520px;
    z-index: 200;
}

.nav-has-dropdown.is-open .nav-mega-menu {
    display: grid;
}

.mega-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lexi-text-muted);
    padding: 0 8px 10px;
    border-bottom: 1px solid var(--lexi-border);
    margin-bottom: 6px;
}

.mega-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.mega-links a {
    text-decoration: none;
    color: #111827;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 7px;
    transition: background 0.1s, color 0.1s;
    white-space: nowrap;
}

.mega-links a:hover {
    background: #f0f4ff;
    color: var(--lexi-primary);
}

/* Hamburger */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: 1px solid var(--lexi-border);
    border-radius: 8px;
    cursor: pointer;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #111827;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.hamburger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--lexi-border);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 20px;
        gap: 4px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links > a {
        padding: 10px 12px;
    }

    .nav-mobile-only {
        display: block;
    }

    .nav-has-dropdown {
        position: static;
    }

    .nav-dropdown-btn {
        width: 100%;
        justify-content: space-between;
        padding: 10px 12px;
    }

    .nav-mega-menu {
        position: static;
        transform: none;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 10px;
        background: #f8f9fb;
        padding: 16px;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 4px;
    }

    .mega-links {
        grid-template-columns: 1fr 1fr;
    }
}

.hero {
    text-align: left;
    padding: 22px 0 22px;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 700;
}

.hero p {
    margin: 0;
    color: var(--lexi-text-soft);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 400;
}

.translator-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: stretch;
    margin-top: 18px;
}

.translator-box {
    background: #ffffff;
    border: 1px solid var(--lexi-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    box-shadow: 0 2px 10px rgba(29, 78, 216, 0.05);
}

.translator-box.is-input {
    border-right: 1px solid var(--lexi-border);
}

.translator-box.is-output {
    background: #f8f9fb;
}

.box-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0 8px;
    border-bottom: 1px solid var(--lexi-border);
    background: #ffffff;
    min-height: 52px;
}

.lang-tab {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--lexi-text-muted);
    border-bottom: 3px solid transparent;
    cursor: default;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
    user-select: none;
}

.lang-tab.is-active {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
    font-weight: 600;
}

.lang-label {
    /* managed by lang-tab styles when combined */
}

.box-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lexi-input,
.lexi-output {
    width: 100%;
    flex: 1;
    border: 0;
    outline: 0;
    resize: none;
    background: transparent;
    padding: 20px 20px 14px;
    font-family: var(--lexi-font);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--lexi-text);
}

.lexi-input::placeholder {
    color: var(--lexi-text-muted);
}

.lexi-output {
    white-space: pre-wrap;
    word-break: break-word;
    overflow: auto;
}

.lexi-output.is-empty {
    color: var(--lexi-text-muted);
}

.box-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--lexi-border);
    background: transparent;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.char-count {
    font-size: 12px;
    color: var(--lexi-text-muted);
    font-variant-numeric: tabular-nums;
}

.char-count.is-over {
    color: #d93025;
}

.btn {
    appearance: none;
    border: 0;
    border-radius: var(--lexi-radius-sm);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn-primary {
    appearance: none !important;
    border: 1px solid #1e40af !important;
    background: #1d4ed8 !important;
    color: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.1s, box-shadow 0.1s !important;
    box-shadow: none !important;
    letter-spacing: 0.01em !important;
}

.btn-primary:hover:not(:disabled) {
    background: #1e40af !important;
    border-color: #1e3a8a !important;
    box-shadow: 0 2px 8px rgba(29,78,216,0.3) !important;
    color: #ffffff !important;
}

.btn-primary:active:not(:disabled) {
    background: #1e3a8a !important;
    transform: scale(0.98) !important;
    color: #ffffff !important;
}

.icon-btn {
    appearance: none;
    border: 1px solid #ffffff;
    background: #1d4ed817;
    color: #111827;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 300;
    transition: background 0.1s, transform 0.1s;
}

.icon-btn:hover {
    background: #f8fbff;
    transform: scale(1.02);
}

.icon-btn:active {
    transform: scale(0.98);
}

.icon-btn svg,
.btn-primary svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    display: block !important;
    stroke-width: 2.5;
}

.swap-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--lexi-border);
    background: #fff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
    line-height: 0;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.swap-btn:hover,
.swap-btn:hover:not(:disabled),
.swap-btn:focus-visible,
.swap-btn:active {
    background: #f0f4ff;
    color: var(--lexi-primary);
    border-color: rgba(29, 78, 216, 0.4);
    transform: translate(-50%, -50%) !important;
}

.swap-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

.examples {
    margin-top: 28px;
}

.examples h2 {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--lexi-text-soft);
    font-weight: 700;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    border: 1px solid var(--lexi-border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--lexi-text-soft);
    border-radius: var(--lexi-pill);
    padding: 10px 14px;
    font-weight: 600;
}

.chip:hover {
    border-color: rgba(29, 78, 216, 0.45);
    color: var(--lexi-primary);
}

.content-block {
    margin-top: 60px;
}

.content-block h2 {
    text-align: left;
    margin-bottom: 20px;
    margin-top: 50px;
    padding: 0px 20px;
}

/* This will be the box container */
.content-card {
    background: #ffffff;
    border: 1px solid var(--lexi-border);
    border-radius: 12px;
    padding: 32px;
}

.content-card p {
    margin: 0 0 16px;
    color: #1a1a1a;
    line-height: 1.7;
    font-size: 15px;
}

.content-card p:last-child {
    margin-bottom: 0;
}

.content-card table {
    font-size: 15px;
}

.content-card th,
.content-card td {
    font-size: 15px;
}

.content-card table {
    font-size: 15px;
}

.content-card th,
.content-card td {
    font-size: 15px;
}

.content-card ul,
.content-card ol {
    margin: 0 0 16px;
    padding-left: 20px;
    color: #1a1a1a;
    font-size: 15px;
    line-height: 1.7;
}

.content-card ul li,
.content-card ol li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.content-card ul li::marker {
    color: #1d4ed8;
    font-weight: 700;
}

.content-card ol {
    list-style: none;
    padding-left: 0;
    counter-reset: lexi-counter;
}

.content-card ol li {
    counter-increment: lexi-counter;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 0;
}

.content-card ol li::before {
    content: counter(lexi-counter);
    min-width: 26px;
    height: 26px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 3px;
}

.content-card ul li:last-child,
.content-card ol li:last-child {
    margin-bottom: 0;
}

.content-card ul,
.content-card ol {
    margin: 0 0 16px;
    padding-left: 20px;
    color: #1a1a1a;
    font-size: 15px;
    line-height: 1.7;
}

.content-card ul li,
.content-card ol li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.content-card ul li::marker {
    color: #1d4ed8;
    font-weight: 700;
}

.content-card ol {
    list-style: none;
    padding-left: 0;
    counter-reset: lexi-counter;
}

.content-card ol li {
    counter-increment: lexi-counter;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 0;
}

.content-card ol li::before {
    content: counter(lexi-counter);
    min-width: 26px;
    height: 26px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 3px;
}

.content-card ul li:last-child,
.content-card ol li:last-child {
    margin-bottom: 0;
}

/* Related Tools Grid */
.related-tools {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    align-items: stretch;
}

@media (max-width: 700px) {
    .related-tools {
        grid-template-columns: 1fr 1fr;
    }
}

.related-tool-card {
    position: relative;
    background: #ffffff;
    border: 1.5px solid #111827;
    border-radius: 14px;
    padding: 18px 20px 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.15s;
    height: 90px;
}

.related-tool-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.related-tool-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    padding-right: 36px;
}

.related-tool-card-cta {
    font-size: 13px;
    color: var(--lexi-text-muted);
    font-weight: 500;
}

.related-tool-card-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 0 13px 0 13px;
}

@media (max-width: 600px) {
    .related-tools {
        grid-template-columns: 1fr 1fr;
    }
}

/* Related Tools Grid */
.related-tools {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    align-items: stretch;
}

@media (max-width: 700px) {
    .related-tools {
        grid-template-columns: 1fr 1fr;
    }
}

.related-tool-card {
    position: relative;
    background: #ffffff;
    border: 1.5px solid #111827;
    border-radius: 14px;
    padding: 18px 20px 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.15s;
    height: 90px;
}

.related-tool-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.related-tool-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    padding-right: 36px;
}

.related-tool-card-cta {
    font-size: 13px;
    color: var(--lexi-text-muted);
    font-weight: 500;
}

.related-tool-card-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 0 13px 0 13px;
}

@media (max-width: 600px) {
    .related-tools {
        grid-template-columns: 1fr 1fr;
    }
}

/* Content + Sidebar Layout */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 28px;
    align-items: start;
    margin-top: 0;
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid var(--lexi-border);
    border-radius: 12px;
    padding: 20px;
}

.sidebar-card-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lexi-text-muted);
    margin: 0 0 14px;
}

.sidebar-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-link-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--lexi-text);
    transition: background 0.12s, color 0.12s;
}

.sidebar-link-list a:hover {
    background: #f0f4ff;
    color: var(--lexi-primary);
}

.sidebar-link-list a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lexi-border);
    flex-shrink: 0;
    transition: background 0.12s;
}

.sidebar-link-list a:hover::before {
    background: var(--lexi-primary);
}

@media (max-width: 900px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;
    }
}

/* Content + Sidebar Layout */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 28px;
    align-items: start;
    margin-top: 0;
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid var(--lexi-border);
    border-radius: 12px;
    padding: 20px;
}

.sidebar-card-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lexi-text-muted);
    margin: 0 0 14px;
}

.sidebar-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-link-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--lexi-text);
    transition: background 0.12s, color 0.12s;
}

.sidebar-link-list a:hover {
    background: #f0f4ff;
    color: var(--lexi-primary);
}

.sidebar-link-list a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lexi-border);
    flex-shrink: 0;
    transition: background 0.12s;
}

.sidebar-link-list a:hover::before {
    background: var(--lexi-primary);
}

@media (max-width: 900px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;
    }
}

/* Global FAQ Styling (Home Page Style) */
.faq-list {
    margin-top: 32px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--lexi-border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 15px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-family: "Source Sans 3", Segoe UI, Candara, Bitstream Vera Sans, DejaVu Sans, Bitstream Vera Sans, Trebuchet MS, Verdana, Verdana Ref, sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #111827;
}

.faq-question::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 3px solid #111827;
    border-bottom: 3px solid #111827;
    transform: rotate(45deg);
    transition: transform 0.3s;
    margin-right: 4px;
}

.faq-item.is-active .faq-question::after {
    transform: rotate(-135deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    padding: 0 20px;
    color: #4d4d4d;
    line-height: 1.7;
    font-size: 15px;
    opacity: 0;
}
.faq-item.is-active .faq-answer { 
    padding-top: 10px;
    padding-bottom: 24px; 
    max-height: 500px; 
    opacity: 1;
}

/* Global Footer Styling */
.footer {
    border-top: 1px solid var(--lexi-border);
    padding: 60px 24px;
    background: #ffffff;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-weight: 800;
    font-size: 18px;
    text-decoration: none;
    color: #111827;
}

.footer-copy {
    font-size: 13px;
    color: #4d4d4d;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    text-decoration: none;
    font-size: 13px;
    color: #4d4d4d;
}

.loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lexi-primary);
    animation: lexi-bounce 1.1s infinite ease-in-out both;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.14s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.28s;
}

@keyframes lexi-bounce {
    0%, 80%, 100% {
        transform: scale(0.72);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .translator-card {
        grid-template-columns: 1fr;
    }

    .translator-box.is-input {
        border-right: 1px solid var(--lexi-border);
    }

    .swap-btn {
        left: 50%;
        top: calc(50% - 7px);
        transform: translate(-50%, -50%);
    }

    .swap-btn:active {
        transform: translate(-50%, -50%) scale(0.92);
    }
}

@media (max-width: 700px) {
    h1 { font-size: 22px; }
    h2 { font-size: 18px; }

    .page-shell,
    .site-header,
    .site-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .translator-card {
        gap: 12px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding-top: 22px;
    }

    .hero p {
        margin-left: 0;
    }
}
