/* ============================================
   RESET & VARIABLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7AE3FF;
    --primary-dark: #9BE8FF;
    --sidebar-bg: #0f2a3d;
    --sidebar-text: #FFFFFF;
    --sidebar-text-hover: #FFFFFF;
    --sidebar-width: clamp(240px, 22vw, 340px);
    --white: #FFFFFF;
    --bg-light: #0b5a7a;
    --secondary-bg: #0c1f3a;
    --text-dark: #FFFFFF;
    --text-muted: #D8EEFF;
    --border-color: rgba(255, 255, 255, 0.12);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.38);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--sidebar-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.mobile-menu-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    margin: 4px 0;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ============================================
   TOP NAVIGATION BAR
   ============================================ */
.top-nav-bar {
    background-color: var(--sidebar-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: none;
    position: relative;
    z-index: 1000;
}

.top-nav-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    svg {
        width: 24px;
        height: 24px;
    }
}

.nav-close-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    width: 32px;
    height: 32px;
    margin-left: auto;
    svg {
        width: 24px;
        height: 24px;
    }
}

.top-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.top-nav-logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 18px;
}

.top-nav-brand {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
    white-space: nowrap;
}

.top-nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    flex: 1;
    margin: 0;
    padding: 0;
}

.top-nav-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.15rem;
    font-size: 0.85rem;
    color: var(--white);
    white-space: nowrap;
    margin-left: 1rem;
}

.top-nav-contact span {
    opacity: 0.8;
}

.top-nav-contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.top-nav-contact a:hover {
    text-decoration: underline;
}

.top-nav-ask-button {
    border: none;
    background-color: var(--primary-color);
    color: var(--sidebar-bg);
    font-weight: 700;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.top-nav-ask-button:hover {
    background-color: var(--primary-dark);
}

.top-nav-menu li {
    position: relative;
}

.top-nav-link {
    display: block;
    padding: 0.5rem 0.8rem;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.top-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.top-nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.services-top-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chevron-small {
    width: 14px;
    height: 14px;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.services-top-toggle.open .chevron-small {
    transform: rotate(180deg);
}

.top-nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary-bg);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.nav-item-dropdown:hover .top-nav-submenu,
.nav-item-dropdown.open .top-nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-nav-submenu li {
    margin: 0;
}

.top-nav-submenu .top-nav-link {
        padding: 0.5rem 1.2rem;
}

.top-nav-submenu .top-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-bottom: none;
}

/* ============================================
   APP LAYOUT
   ============================================ */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    max-width: 1600px;
    margin: 0 auto;
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    min-width: 220px;
    max-width: 420px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.sidebar .nav-link[data-page^="service-"] .nav-icon {
    display: none;
}

.sidebar .nav-link[data-page^="service-"] span::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 0.45rem;
}

.sidebar-resizer {
    width: 6px;
    cursor: col-resize;
    background: transparent;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.sidebar-resizer:hover,
.sidebar-resizer.active {
    background-color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 768px) {
    .sidebar-resizer {
        display: none;
    }
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-header:hover {
    opacity: 0.8;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 18px;
}

.logo-text {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--white);
    letter-spacing: -0.3px;
}

.logo-subtext {
    font-size: 0.75rem;
    color: var(--sidebar-text);
    margin-top: 0.15rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-list {
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--sidebar-text-hover);
    border-left-color: var(--primary-color);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--sidebar-text-hover);
    border-left-color: var(--primary-color);
}

.nav-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    flex-shrink: 0;
}



/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.content-wrapper {
    flex: 1;
    overflow-y: auto;
    background-color: #050607;
    padding: 2rem 1.25rem;
    color: var(--white);
    min-width: 0;
}

.top-header {
    background: var(--secondary-bg);
    padding: 2rem 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.header-content {
    max-width: 100%;
}

.top-header-actions {
    display: flex;
    align-items: center;
}

.ask-question-btn {
    border: 1px solid #d62828;
    background: #065535;
    color: #ffffff;
    font-weight: 700;
    padding: 0.8rem 1.35rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

.ask-question-btn:hover {
    background-color: rgba(6, 85, 53, 0.85);
}

.ask-question-btn:active {
    transform: translateY(1px);
}

.company-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

.content-wrapper {
    flex: 1;
    overflow-y: auto;
    background-color: #050607;
    padding: 2rem 1.25rem;
    color: var(--white);
}

.content-area {
    animation: fadeIn 0.4s ease-in;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CARDS & SECTIONS
   ============================================ */
.card {
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.card h1 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 800;
}

.card h2 {
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 1rem;
    margin-top: 1.75rem;
    font-weight: 700;
}

.card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    margin-top: 1.25rem;
    font-weight: 600;
}

.card hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 1.75rem 0;
}

.card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card ul, .card ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.card li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-card {
    background: linear-gradient(135deg, #0f2d4a 0%, #112f53 100%);
    color: white;
    text-align: center;
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hero-card h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.card table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.card th,
.card td {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
    vertical-align: top;
}

.card th {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.card tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.hero-card .subheadline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-media {
    margin: 0 auto 2rem;
    max-width: 860px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.hero-media img,
.service-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.service-image {
    margin: 2rem auto;
    max-width: 100%;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.2);
}

.hero-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--white);
    color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.hero-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none !important;
}

.wizard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(64, 64, 106, 0.88);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.success-panel {
    width: min(520px, 100%);
    background: #0b1a33;
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid rgba(74, 120, 84, 0.6);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
    text-align: center;
}

.success-panel h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: #e54a43;
}

.success-panel p {
    margin: 0 0 1.5rem;
    color: #dcdfe8;
    line-height: 1.6;
    font-size: 1rem;
}

.success-panel .wizard-button {
    width: auto;
}

.wizard-panel {
    width: min(760px, 100%);
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #000000;
    border-radius: 20px;
    border: 1px solid rgba(74, 120, 84, 0.4);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
}

.wizard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.5rem 0;
}

.wizard-header h2 {
    margin: 0;
    color: #e54a43;
    font-size: 1.75rem;
}

.wizard-subtitle {
    color: #dcdfe8;
    margin-top: 0.5rem;
    font-size: 0.98rem;
}

.wizard-close-button {
    border: none;
    background: rgba(0, 0, 0, 0.15);
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.wizard-body {
    padding: 0 1.5rem 1.25rem;
}

.wizard-step {
    margin-top: 1.15rem;
}

.wizard-step-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #ffffff;
}

.wizard-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.wizard-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(74, 120, 84, 0.6);
    background: rgba(66, 139, 123, 0.18);
    cursor: pointer;
    transition: var(--transition);
}

.wizard-option:hover {
    background: rgba(229, 74, 67, 0.12);
}

.wizard-option input {
    accent-color: #e54a43;
    width: 1rem;
    height: 1rem;
}

.wizard-option span {
    color: #ffffff;
    font-size: 0.95rem;
}

.wizard-input,
.wizard-select,
.wizard-textarea {
    width: 100%;
    background: #0b1a33;
    color: #ffffff;
    border: 1px solid rgba(74, 120, 84, 0.8);
    border-radius: 12px;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.wizard-input:focus,
.wizard-select:focus,
.wizard-textarea:focus {
    outline: none;
    border-color: #e54a43;
    box-shadow: 0 0 0 3px rgba(229, 74, 67, 0.18);
}

.wizard-select {
    min-height: 56px;
    padding-right: 2.75rem;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #ffffff 50%),
                      linear-gradient(135deg, #ffffff 50%, transparent 50%);
    background-position: calc(100% - 1rem) center, calc(100% - 0.8rem) center;
    background-repeat: no-repeat;
    background-size: 8px 8px;
}

.wizard-select option {
    background: #0b1a33;
    color: #ffffff;
}

.wizard-radio-group {
    display: grid;
    gap: 0.75rem;
}

.wizard-radio-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(64, 64, 106, 0.22);
    border: 1px solid rgba(74, 120, 84, 0.6);
    cursor: pointer;
    color: #ffffff;
}

.wizard-radio-group input {
    accent-color: #e54a43;
}

.wizard-button,
.wizard-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.95rem 1.35rem;
    font-weight: 700;
}

.wizard-button {
    background: #e54a43;
    color: #ffffff;
}

.wizard-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(229, 74, 67, 0.28);
}

.wizard-secondary-button {
    background: #428b7b;
    color: #ffffff;
}

.wizard-secondary-button:hover {
    background: #4a7854;
}

.wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.85rem;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(74, 120, 84, 0.45);
    background: rgba(64, 64, 106, 0.15);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.wizard-help-text {
    margin-top: 0.75rem;
    color: #dcdfe8;
    font-size: 0.95rem;
}

.wizard-status-message {
    margin-top: 0.85rem;
    color: #4a7854;
    font-weight: 600;
}

.wizard-hidden {
    display: none;
}

@media (max-width: 700px) {
    .wizard-options {
        grid-template-columns: 1fr;
    }

    .wizard-overlay {
        align-items: flex-start;
        padding-top: 1rem;
    }

    .wizard-panel {
        max-height: calc(100vh - 3rem);
        margin: 0 auto;
    }
}

/* ============================================
   TRUST BADGES
   ============================================ */
.trust-section {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.trust-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.badge-icon {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   SCROLLBAR
   ============================================ */
.sidebar::-webkit-scrollbar,
.content-wrapper::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.content-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.content-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.content-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    .content-wrapper {
        padding: 1.5rem 2rem;
    }

    .top-header {
        padding: 1.5rem 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .hero-card {
        padding: 2rem;
    }

    .hero-card h1 {
        font-size: 2rem;
    }

    .hero-card .subheadline {
        font-size: 1.1rem;
    }
}

@media (max-width: 900px) {
    .top-nav-menu {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background-color: var(--sidebar-bg);
        flex-direction: column;
        max-height: 0;
        overflow-y: auto;
        z-index: 998;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        transition: max-height 0.3s ease;
        display: flex;
        list-style: none;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    .top-nav-menu.open {
        max-height: calc(100vh - 56px) !important;
    }

    .nav-menu-toggle {
        display: flex !important;
    }

    .nav-item-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .top-nav-flat-service {
        display: none;
    }

    .nav-item-dropdown > a .chevron-small {
        display: none;
    }

    .top-nav-submenu {
        position: static;
        max-height: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .top-nav-submenu li {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .nav-item-dropdown.open .top-nav-submenu {
        max-height: none;
    }

    .top-nav-submenu .top-nav-link {
        padding: 1rem 1.75rem;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .nav-close-btn {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .top-nav-bar {
        display: block;
    }

    .app-container {
        flex-direction: column;
        min-height: calc(100vh - 56px);
        height: auto;
    }

    .sidebar {
        width: 100%;
        max-height: 0;
        flex-direction: column;
        align-items: stretch;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        overflow: hidden;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background-color: var(--sidebar-bg);
        z-index: 999;
        transition: max-height 0.3s ease;
    }

    .sidebar.open {
        max-height: 90vh;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .sidebar-header {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: none;
        overflow-y: auto;
        padding: 0.5rem 0;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 0.875rem 1rem;
        white-space: normal;
        font-size: 0.95rem;
    }

    .nav-icon {
        width: 18px;
        height: 18px;
    }

    .top-nav-menu {
        display: flex;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background-color: var(--sidebar-bg);
        flex-direction: column;
        max-height: 0;
        overflow-y: auto;
        z-index: 998;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        transition: max-height 0.3s ease;
        list-style: none;
        gap: 0.5rem;
        margin: 0;
        padding: 0.6rem 0;
    }

    .top-nav-menu li {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .top-nav-menu.open {
        max-height: calc(100vh - 56px) !important;
    }

    .top-nav-link {
        border-bottom: none;
        padding: 0.85rem 1.4rem;
        line-height: 1.5;
    }

    .top-nav-link:hover {
        background-color: rgba(255, 255, 255, 0.12);
    }

    .top-nav-flat-service {
        display: list-item;
    }

    .top-nav-flat-service .top-nav-link::before {
        content: "✓ ";
        color: var(--primary-color);
        font-weight: 700;
        margin-right: 0.35rem;
    }

    .nav-item-dropdown > a {
        display: none;
    }

    .nav-item-dropdown .top-nav-submenu {
        display: none;
    }

    .top-nav-submenu {
        position: static;
        max-height: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: rgba(255, 255, 255, 0.03);
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0.4rem 0 0.2rem;
    }

    .top-nav-submenu li {
        margin-bottom: 0.25rem;
    }

    .nav-item-dropdown.open .top-nav-submenu {
        max-height: 600px;
    }

    .top-nav-submenu .top-nav-link {
        padding: 0.85rem 2rem;
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .nav-menu-toggle {
        display: flex !important;
    }

    .nav-close-btn {
        display: flex !important;
    }

    .content-wrapper {
        flex: 1;
        padding: 1rem;
        height: auto;
    }

    .top-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .top-header-actions {
        margin-top: 1rem;
        width: 100%;
    }

    .ask-question-btn {
        width: 100%;
        text-align: center;
    }

    .company-title {
        font-size: 1.5rem;
    }

    .content-area {
        max-width: 1000px;
        margin: 0 auto;
        width: 100%;
    }

    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .hero-card {
        padding: 1.5rem;
    }

    .hero-card h1 {
        font-size: 1.75rem;
    }

    .hero-card .subheadline {
        font-size: 1rem;
    }

    .card h2 {
        font-size: 1.5rem;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .card p,
    .card li,
    .card th,
    .card td {
        font-size: 0.95rem;
    }

    .badges {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    .tagline {
        font-size: 0.875rem;
    }

    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        max-height: 50px;
    }

    .sidebar-header {
        min-width: 160px;
    }

    .nav-link {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .content-wrapper {
        padding: 0.75rem;
    }

    .top-header {
        padding: 0.75rem;
    }

    .company-title {
        font-size: 1.25rem;
        margin-bottom: 0.1rem;
    }

    .tagline {
        font-size: 0.75rem;
    }

    .card {
        padding: 0.75rem;
    }

    .card h2 {
        font-size: 1.3rem;
    }

    .card h3 {
        font-size: 1rem;
    }

    .hero-card h1 {
        font-size: 1.5rem;
    }

    .hero-card .subheadline {
        font-size: 0.9rem;
    }
}
