/* ── Reset & Base ────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
                 sans-serif;
    line-height: 1.7;
    color: #1a1a2e;
    background: white; /* Light theme for the rest of the page */
}

/* ── Site Header (Dark Mode) ─────────────────────────────────────── */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 50px;
    background: #24262c; /* Matches dark hero */
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.logo-icon img {
    height: 55px;
    width: auto;
    object-fit: contain;
    display: block;

}

.logo-text {
    display: none; /* Text embedded in image in LHS */
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff; /* White text for header links */
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-links a.btn-secondary {
    background: transparent;
    border: none;
    padding: 0;
}

.btn-launch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    background: #9ea8d9; /* Lighter purple-ish blue */
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-launch::after {
    content: " \2192"; /* Unicode for right arrow */
    font-weight: bold;
}

.btn-launch:hover {
    opacity: 0.8;
}


@media (max-width: 768px) {
    .site-header { padding: 1rem 5%; }
    .nav-links { display: none; }
}

/* ── Loading / Error ─────────────────────────────────────────────── */
.loading {
    text-align: center;
    padding: 5rem 1rem;
    color: #999;
    font-size: 1.1rem;
}

.error {
    text-align: center;
    padding: 3rem 1rem;
    color: #c0392b;
}



/* ================================================================
   Heading Wrappers  (requirement 3.1)
   ================================================================ */
.h1_wrapper {
    margin-bottom: 1.75rem;
}
.h1_wrapper h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    color: #1a1a2e;
    letter-spacing: -0.02em;
}

.h2_wrapper {
    margin-bottom: 1rem;
}
.h2_wrapper h2 {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.25;
    color: #16213e;
    padding-bottom: 0.3rem;
    border-bottom: 3px solid #ff6b35;
    display: inline-block;
}

.h3_wrapper {
    margin-bottom: 0.75rem;
}
.h3_wrapper h3 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f3460;
}

.h4_wrapper {
    margin-bottom: 0.5rem;
}
.h4_wrapper h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
}

.h5_wrapper h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
}

.h6_wrapper h6 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ================================================================
   Paragraph Wrapper  (requirement 3.1)
   ================================================================ */
.p_wrapper {
    margin-bottom: 1.25rem;
}
.p_wrapper p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2d2d2d;
}

/* ================================================================
   Image Wrapper
   ================================================================ */
.img_wrapper {
    margin: 1.75rem 0;
    text-align: center;
}
.img_wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.inline-image {
    max-width: 100%;
    border-radius: 8px;
    vertical-align: middle;
}

/* ================================================================
   Code Wrapper
   ================================================================ */
.code_wrapper {
    margin: 1.5rem 0;
}
.code_wrapper pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.65;
}
.code_wrapper pre code {
    font-family: "Fira Code", "Cascadia Code", "JetBrains Mono",
                 "Source Code Pro", monospace;
}

.inline-code {
    background: #eef0f5;
    padding: 0.15em 0.45em;
    border-radius: 5px;
    font-size: 0.88em;
    font-family: "Fira Code", "Cascadia Code", monospace;
    color: #c0392b;
}

/* ================================================================
   List Wrapper
   ================================================================ */
.list_wrapper {
    margin: 1rem 0 1.25rem;
}
.list_wrapper ul,
.list_wrapper ol {
    padding-left: 1.75rem;
}
.list_wrapper li {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #2d2d2d;
}
.list_wrapper ul li::marker {
    color: #ff6b35;
}

/* ================================================================
   Blockquote Wrapper
   ================================================================ */
.blockquote_wrapper {
    margin: 1.5rem 0;
}
.blockquote_wrapper blockquote {
    border-left: 4px solid #ff6b35;
    padding: 0.85rem 1.25rem;
    background: #fff8f4;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #555;
    line-height: 1.75;
}

/* ================================================================
   Table Wrapper
   ================================================================ */
.table_wrapper {
    margin: 1.5rem 0;
    overflow-x: auto;
}
.table_wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.table_wrapper th,
.table_wrapper td {
    padding: 0.65rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e4e6eb;
}
.table_wrapper th {
    background: #f0f2f5;
    font-weight: 700;
    color: #1a1a2e;
}
.table_wrapper tbody tr:hover {
    background: #fafbfd;
}

/* ================================================================
   HR Wrapper
   ================================================================ 
.hr_wrapper {
    margin: 2.5rem 0;
}
.hr_wrapper hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
}
*/

.hr_wrapper {
    display:none;
}
/* ================================================================
   Section Wrappers  (requirement 3.2)
   ================================================================ */
.section_lv2_wrapper {
    margin: 3.5rem 0;
    padding: 0;
}
.section_lv2_wrapper:first-child {
    margin-top: 0;
}

.section_lv3_wrapper {
    margin: 2rem 0;
    padding: 0;
}

.section_lv4_wrapper {
    margin: 1.5rem 0;
    padding: 0;
}

/* ================================================================
   Card Wrapper  (requirement 3.3)
   ================================================================ */
.card-wrapper {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin: 1.25rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/*
.card-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}*/

/* keep inner spacing tighter inside cards */
.card-wrapper .h3_wrapper,
.card-wrapper .h4_wrapper {
    margin-bottom: 0.5rem;
}
.card-wrapper .p_wrapper:last-child {
    margin-bottom: 0;
}

/* ================================================================
   Links & Inline Elements
   ================================================================ */
.md-content a {
    color: #ff6b35;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.md-content a:hover {
    border-bottom-color: #ff6b35;
}

.md-content strong {
    font-weight: 700;
    color: #1a1a2e;
}

.md-content em {
    font-style: italic;
}

.md-content del {
    color: #999;
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 768px) {
    .site-header {
        padding: 0.65rem 1rem;
    }

    .site-nav {
        gap: 0.5rem;
    }

    .nav-links {
        gap: 0.35rem;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 0.25rem 0.35rem;
    }

    .md-content {
        padding: 1.5rem 1rem 3rem;
    }

    .h1_wrapper h1 { font-size: 2rem;  }
    .h2_wrapper h2 { font-size: 1.5rem; }
    .h3_wrapper h3 { font-size: 1.2rem; }

    .card-wrapper {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 480px) {
    .h1_wrapper h1 { font-size: 1.65rem; }
    .h2_wrapper h2 { font-size: 1.3rem;  }

    .btn-launch {
        padding: 0.45rem 1rem;
        font-size: 0.85rem;
    }

    .nav-links {
        display: none;
    }
}


/* ================================================================
   Footer Section (Match LHS Screenshot)
   ================================================================ */

/* 1. Main Footer Wrapper: Full width, light gray background, flex column */
#content > .md-content > .section_lv2_wrapper:last-child {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: none;
    border-radius: 0;
    padding: 4rem 2rem;
    margin: 0;
    max-width:100% !important;
}

/* 2. Hide the "Footer" title */
#content > .md-content > .section_lv2_wrapper:last-child > .h2_wrapper {
    display: none;
}

/* 3. Reorder elements using Flexbox */
#content > .md-content > .section_lv2_wrapper:last-child > .img_wrapper {
    order: 1;
    margin-bottom: 2rem;
}

#content > .md-content > .section_lv2_wrapper:last-child > .list_wrapper {
    order: 2;
    margin-bottom: 1.5rem;
}

#content > .md-content > .section_lv2_wrapper:last-child > .p_wrapper {
    order: 3;
    margin: 0;
}

/* 4. Logo Styling */
#content > .md-content > .section_lv2_wrapper:last-child > .img_wrapper img {
    max-width: 180px; /* Scale down to match LHS */
    height: auto;
    box-shadow: none;
    border-radius: 0;
}

/* 5. Horizontal Links List Styling */
#content > .md-content > .section_lv2_wrapper:last-child > .list_wrapper ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* Spacing between links */
    padding: 0;
    margin: 0;
    list-style: none;
}

#content > .md-content > .section_lv2_wrapper:last-child > .list_wrapper ul li {
    padding: 0;
    margin: 0;
}

/* Remove inherited custom purple checkmarks/bullets */
#content > .md-content > .section_lv2_wrapper:last-child > .list_wrapper ul li::before {
    content: none;
}

#content > .md-content > .section_lv2_wrapper:last-child > .list_wrapper ul li a {
    color: #718096; /* Slate gray link color */
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}


#content > .md-content > .section_lv2_wrapper:last-child > .list_wrapper ul li a:hover {
    color: #2b2e36;
}

/* 6. Copyright Text Styling */
#content > .md-content > .section_lv2_wrapper:last-child > .p_wrapper p {
    color: #a0aec0; /* Lighter slate gray */
    font-size: 0.85rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
}

/* 7. Mobile Responsiveness */
@media (max-width: 768px) {
    #content > .md-content > .section_lv2_wrapper:last-child > .list_wrapper ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}



/* --- 1. Center the main container --- */
.md-content {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 2rem;
    padding:30px;
}

/* --- 2. Add "Our blog" supertitle and center the H1 --- */
.h1_wrapper {
    text-align: center;
    margin-bottom: 0.2rem;
}

.h1_wrapper h1 {
    display: block;
    color: #61b0a8; /* Muted teal matches RHS */
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* --- 3. Center the H2 and remove the orange underline --- */
.h2_wrapper {
    text-align: center;
    margin-bottom: 1rem;
    margin:0 auto;
}
.h2_wrapper h2 {
    font-size: 2.2rem;
    border-bottom: none;
    padding-bottom: 0;
    color: #1a1a2e;
    max-width:600px;
    line-height:1;
}

/* --- 4. Center the introduction paragraph --- */
.section_lv2_wrapper:nth-child(2) > .p_wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}
.section_lv2_wrapper:nth-child(2) > .p_wrapper p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}
/* --- 5. Main Card Container Grid Layout --- */
.md-content > .section_lv2_wrapper:nth-child(2) {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

/* --- 6. 2-Column Card Layout and Element Reordering --- */
.md-content > .section_lv2_wrapper:nth-child(2) > .section_lv3_wrapper {
    width: calc(50% - 10px) !important;
    margin: 0 0 2rem 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column;
}

/* Reorder to match LHS: Image Top, Heading Middle, Paragraph Bottom */
.md-content > .section_lv2_wrapper:nth-child(2) > .section_lv3_wrapper .img_wrapper {
    order: 1;
    margin: 0 0 1.25rem 0 !important;
}

.md-content > .section_lv2_wrapper:nth-child(2) > .section_lv3_wrapper .h3_wrapper {
    order: 2;
    margin-bottom: 0.75rem !important;
}

.md-content > .section_lv2_wrapper:nth-child(2) > .section_lv3_wrapper .p_wrapper {
    order: 3;
    margin-bottom: 0 !important;
}

/* --- 7. Styling the Elements (Images, Labels, Arrows, Text) --- */

/* Image Styling */
.md-content > .section_lv2_wrapper:nth-child(2) > .section_lv3_wrapper .img_wrapper img {
    width: 100% !important;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none !important;
}

/* Add "Client Story" purple label above the title */
.md-content > .section_lv2_wrapper:nth-child(2) > .section_lv3_wrapper .h3_wrapper::before {
    content: "Client Story";
    display: block;
    color: #7c3aed; /* Purple accent matching LHS */
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Title Styling & Flexbox to push the arrow to the right */
.md-content > .section_lv2_wrapper:nth-child(2) > .section_lv3_wrapper .h3_wrapper h3 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 1.3rem !important;
    color: #111827 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}




.md-content > .section_lv2_wrapper:nth-child(2) > .section_lv3_wrapper .p_wrapper p a {
    margin-top:20px;
    display: block;
    width:auto;
    max-width:180px;
    padding: 0.4rem;
    background: #8b5cf6;
    color: #fff;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
    cursor: pointer;
}

/* Paragraph Text Color */
.md-content > .section_lv2_wrapper:nth-child(2) > .section_lv3_wrapper .p_wrapper p {
    color: #4b5563; /* Slate gray text */
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .md-content > .section_lv2_wrapper:nth-child(2) > .section_lv3_wrapper {
        width: 100% !important;
    }
}