/* ================================================================
   styles.css — ClawDrive site + markdown‑rendered content
   Updated to Match Exact Dark Hero Layout (LHS)
   ================================================================ */

/* ── 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: #f7f8fa; /* Light theme for the rest of the page */
}
.loading {
    text-align: center;
    padding: 5rem 1rem;
    color: #999;
    font-size: 1.1rem;
}

/* ── 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;
}

/* ── Main Layout Engine ──────────────────────────────────────────── */
#content {
    max-width: 1600px;
    width:100%;
    padding: 0;
    margin: 0 auto;
}

/* Target the inner .md-content which wraps the actual elements */
#content > .md-content {
    display: grid;
    /* 12 column centered grid */
    grid-template-columns: minmax(5%, 1fr) repeat(12, minmax(0, 100px)) minmax(5%, 1fr);
    grid-auto-rows: min-content;
    column-gap: 1.5rem;
    position: relative;
    padding-bottom: 5rem;
}


/* ── Components & Typography Defaults ────────────────────────────── */

.p_wrapper { margin-bottom: 1.25rem; }
.p_wrapper p {
    font-size: 1.05rem;
    line-height: 1;
    color: #4a4a4a;
}

.h2_wrapper h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #16213e;
    padding-bottom: 0.3rem;
}

.h3_wrapper h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f3460;
}

.img_wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.card-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.hr_wrapper hr {
    border: none;
    height: 1px;
    background: #e4e6eb;
}

.list_wrapper ul { padding-left: 1.75rem; margin-bottom: 1.5rem; }
.list_wrapper li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    color: #2d2d2d;
}

.md-content a { color: #ff6b35; text-decoration: none; font-weight: 500; }
.md-content a:hover { text-decoration: underline; }


/* ── General: Responsive Refinements ──────────────────────────────────────── */
@media (max-width: 1024px) {
    #content > .md-content { grid-template-columns: minmax(1rem, 1fr) repeat(12, minmax(0, 100px)) minmax(1rem, 1fr); }
}

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

/* ================================================================
  Dark Hero Section
   ================================================================ */

/* Flatten the specific wrapper so its children join the main grid */
#content > .md-content > .section_lv3_wrapper:first-of-type {
    display: contents;
}

/* The Dark Background (covers exactly rows 1 to 7) */
#content > .md-content::before {
    content: "";
    grid-column: 1 / -1;
    grid-row: 1 / 8; 
    background: #24262c;
    z-index: 0;
}

/* Right side Workflow Portal Image */
#content > .md-content > .img_wrapper:first-child {
    grid-column: 8 / 15;
    grid-row: 2 / 5;
    z-index: 1;
    align-self: start;
    padding-top: 1rem;
    margin: 0;
    padding-right:50px;
}


#content > .md-content > .img_wrapper:first-child img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Heading 1 (Title) and the button */
#content > .md-content > .h1_wrapper:nth-child(2),
#content > .md-content > .p_wrapper:nth-child(3),
#content > .md-content > .section_lv2_wrapper:nth-child(4) > .h2_wrapper {
    grid-column: 1 / 8; /* Span 5 cols forces it to wrap like LHS */
    z-index: 1;
    align-self: end;
    padding-top: 1rem;
    margin-bottom: 0;
    padding-left:50px;
}
#content > .md-content > .h1_wrapper:nth-child(2){
    grid-row: 2;
}
#content > .md-content > .p_wrapper:nth-child(3) {
    grid-row: 3;
}
#content > .md-content > .h1_wrapper h1 {
    font-size: 4.2rem; /* Massive chunky font */
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.01em;
}
#content > .md-content > .p_wrapper:nth-child(3) > p > a{
display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #a7d7c5;
    color: white;
    width: 120px;
    height: 50px;
    border-radius: 40px;
    position: relative;
    text-decoration:none;
}

#content > .md-content > .p_wrapper:nth-child(3) a:hover {
    background-color: #8cc4af;
    transform: scale(1.05);
}
#content > .md-content > .h1_wrapper::after,
#content > .md-content > .p_wrapper::after,
#content > .md-content > .section_lv2_wrapper:nth-child(4) > .h2_wrapper::after,
#content > .md-content > .section_lv2_wrapper:nth-child(5)::after {
  content: "";
  display: table;
  clear: both;
}

#content > .md-content > .section_lv2_wrapper:nth-child(4) {
    display: contents; /* Unwraps the card so it joins the CSS Grid directly */
}
#content > .md-content > .section_lv2_wrapper:nth-child(4) > .h2_wrapper {
    grid-row: 4;
}
#content > .md-content > .section_lv2_wrapper:nth-child(4) > .h2_wrapper h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.6;
    color: #d8dbdf;
}



/* Logo Cloud */
#content > .md-content > .section_lv2_wrapper:nth-child(5) {
    display: contents;
}
#content > .md-content > .section_lv2_wrapper:nth-child(5) > .h2_wrapper {
    display: none; /* Hides "Support Platforms..." title */
}
#content > .md-content > .section_lv2_wrapper:nth-child(5) > .img_wrapper {
    grid-row: 5;
    z-index: 1;
    justify-self: center;
    align-self: center;
    margin-top: 50px;
    margin-bottom: 50px;
}
#content > .md-content > .section_lv2_wrapper:nth-child(5) > .img_wrapper img {
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

/* Distribute logos correctly across the columns */
#content > .md-content > .section_lv2_wrapper:nth-child(5) > .img_wrapper:nth-of-type(2) { grid-column: 1 / 4; }
#content > .md-content > .section_lv2_wrapper:nth-child(5) > .img_wrapper:nth-of-type(3) { grid-column: 4 / 6; }
#content > .md-content > .section_lv2_wrapper:nth-child(5) > .img_wrapper:nth-of-type(4) { grid-column: 6 / 8; }
#content > .md-content > .section_lv2_wrapper:nth-child(5) > .img_wrapper:nth-of-type(5) { grid-column: 8 / 10; }
#content > .md-content > .section_lv2_wrapper:nth-child(5) > .img_wrapper:nth-of-type(6) { grid-column: 10 / 12; }
#content > .md-content > .section_lv2_wrapper:nth-child(5) > .img_wrapper:nth-of-type(7) { grid-column: 12 / 15; }


/* ── Responsive Refinements ──────────────────────────────────────── */

@media (max-width: 1024px) {
    #content > .md-content > .h1_wrapper h1 { font-size: 3rem; }
    /* the line directly below h1 */
    #content > .md-content > .section_lv2_wrapper:nth-child(4) > .h2_wrapper h2 {
        font-size: 1.2rem; 
    }
}
@media (max-width: 768px) {
    #content > .md-content > .h1_wrapper h1 { font-size: 2.5rem; }
    /* the line directly below h1 */
    #content > .md-content > .section_lv2_wrapper:nth-child(4) > .h2_wrapper h2 {
        font-size: 1.2rem; 
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(5) > .img_wrapper:nth-of-type(2) { margin-left:30px }
    #content > .md-content > .section_lv2_wrapper:nth-child(5) > .img_wrapper:nth-of-type(4) { margin-right:30px }
    #content > .md-content > .section_lv2_wrapper:nth-child(5) > .img_wrapper:nth-of-type(5) { margin-left:30px }
    #content > .md-content > .section_lv2_wrapper:nth-child(5) > .img_wrapper:nth-of-type(7) { margin-right:30px }
    #content > .md-content > .h1_wrapper:nth-child(2),
    #content > .md-content > .p_wrapper:nth-child(3),
    #content > .md-content > .section_lv2_wrapper:nth-child(4) > .h2_wrapper {
        grid-column: 1 / 15; 
        padding:0 30px;
        align-self: start;
    }

    #content > .md-content > .img_wrapper:first-child {
        grid-column: 1 / 15;
        grid-row: 5 / 6;
        align-self: end;
        padding:30px;
    }

    #content > .md-content > .p_wrapper:nth-child(3) > p > a{
        height: 40px;
        margin:30px 0;
    }
    /* Logo Cloud */
    #content > .md-content > .section_lv2_wrapper:nth-child(5) > .img_wrapper {
        z-index: 1;
        justify-self: center;
        align-self: center;
        margin: 0;
    }

    #content > .md-content > .section_lv2_wrapper:nth-child(5) > .img_wrapper:nth-of-type(2) { grid-column: 1 / 5; grid-row: 6; }
    #content > .md-content > .section_lv2_wrapper:nth-child(5) > .img_wrapper:nth-of-type(3) { grid-column: 5 / 10; grid-row: 6; }
    #content > .md-content > .section_lv2_wrapper:nth-child(5) > .img_wrapper:nth-of-type(4) { grid-column: 10 / 15; grid-row: 6; }
    #content > .md-content > .section_lv2_wrapper:nth-child(5) > .img_wrapper:nth-of-type(5) { grid-column: 1 / 5; grid-row: 7; }
    #content > .md-content > .section_lv2_wrapper:nth-child(5) > .img_wrapper:nth-of-type(6) { grid-column: 5 / 10; grid-row: 7; }
    #content > .md-content > .section_lv2_wrapper:nth-child(5) > .img_wrapper:nth-of-type(7) { grid-column: 10 / 15; grid-row: 7; }

}

/* ================================================================
  Giant Blockquote directly below Dark Hero
   ================================================================ */

#content > .md-content > .section_lv2_wrapper:nth-child(6) > .h2_wrapper {
    grid-column: 1 / 14;
    grid-row: 6;
    margin-top: 0;
    margin-bottom: 0;
}
#content > .md-content > .section_lv2_wrapper:nth-child(6) > .h2_wrapper  h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: #2b2b2b;
    border: none;
    background: transparent;
    padding: 0;
    font-style: normal;
}

/* Standardize width for all subsequent sections */
.section_lv2_wrapper, 
.section_lv3_wrapper:not(:first-of-type) {
    grid-column: 1 / 15;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

/* Standard H2/H3 resets for light sections */
.section_lv2_wrapper:first-of-type .h2_wrapper h2 {
    font-size: 1.1rem;
    color: #8b5cf6;
    border-bottom: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}
.section_lv2_wrapper:first-of-type .section_lv3_wrapper .h3_wrapper h3 {
    font-family: inherit;
    font-size: 2.8rem;
    color: #1a1a2e;
    font-weight: 800;
    line-height: 1.2;
}




/* ── Responsive Refinements ──────────────────────────────────────── */

@media (max-width: 1024px) {
}
@media (max-width: 768px) {
    #content > .md-content > .section_lv2_wrapper:nth-child(6) > .h2_wrapper  h2 {
        font-size: 2rem;
    }
}

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

/* 1. Target the Product Section & remove default constraints */
#content > .md-content > .section_lv2_wrapper:nth-child(7) {
    display: block;
    padding: 3rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin: 2rem auto;
}

/* 2. "Product" Kicker Subheading Styling */
#content > .md-content > .section_lv2_wrapper:nth-child(7) > .h2_wrapper > h2 {
    color: #8b5cf6;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: none;
    margin-bottom: 0.5rem;
    border: none;
    padding: 0;
}

/* 3. 2-Column Grid Layout for Content */
#content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Make right image column slightly wider */
    column-gap: 4rem;
    row-gap: 0.5rem;
    align-items: center;
}

/* Force all text/lists into the left column */
#content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > div:not(.img_wrapper):not(.hr_wrapper) {
    grid-column: 1;
}

/* Force the image into the right column, spanning all rows */
#content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > .img_wrapper {
    grid-column: 2;
    grid-row: 1 / 11;
    align-self: center;
}

/* Hide the horizontal rule */
#content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > .hr_wrapper {
    display: none;
}

/* 4. Main Heading ("ChatCampaign AI Workflow") */
#content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > .h3_wrapper > h3 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 800;
}

/* 5. Custom Checkmark Lists */
#content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > .list_wrapper {
    margin-bottom: 1.25rem;
}

#content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > .list_wrapper > ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

#content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > .list_wrapper > ul > li {
    position: relative;
    padding-left: 2.8rem;
    font-size: 1.05rem;
    color: #2d2d2d;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Add custom purple checkmark */
#content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > .list_wrapper > ul > li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background-color: #f3e8ff;
    color: #8b5cf6;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
}

/* 6. Buttons Styling ("Sales Deck | Learn more") */
#content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > div:nth-child(8) > p {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0; /* Hides the raw '|' separator text node */
    margin-top: 1.5rem;
}

#content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > div:nth-child(8) > p > a {
    font-size: 1rem;
    text-decoration: none;
    padding: 0.7rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    transition: all 0.2s;
}

/* "Sales Deck" Button */
#content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > div:nth-child(8) > p > a:first-child {
    background-color: #fff;
    color: #4a4a4a;
    border: 1px solid #d1d5db;
}

#content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > div:nth-child(8) > p > a:first-child:hover {
    background-color: #f9fafb;
}

/* "Learn more" Button */
#content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > div:nth-child(8) > p > a:last-child {
    background-color: #8b5cf6;
    color: #fff;
    border: 1px solid #8b5cf6;
}

#content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > div:nth-child(8) > p > a:last-child:hover {
    background-color: #7c3aed;
}

/* 7. Image Drop Shadow Styling */
#content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > .img_wrapper img {
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    width: 100%;
    height: auto;
}

/* 8. Mobile Responsiveness */
@media (max-width: 1024px) {
    #content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper {
        grid-template-columns: 1fr; /* Stack into 1 column on smaller screens */
    }
    
    #content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > .img_wrapper {
        grid-column: 1;
        grid-row: auto;
        margin-top: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Main Heading ("ChatCampaign AI Workflow") */
    #content > .md-content > .section_lv2_wrapper:nth-child(7) {
        padding:3rem 30px;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > .h3_wrapper > h3 {
        font-size: 2rem;
    }
}


/* ================================================================
   Customer Engagement Use Case Section (Match RHS Screenshot)
   ================================================================ */

/* 1. Main Wrapper & Grid Layout Setup */
#content > .md-content > .section_lv2_wrapper:nth-child(8) {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Split into 2 columns */
    grid-auto-rows: min-content;
    padding: 0;
    margin: 4rem 0;
    position: relative;
    column-gap: 2rem;
}

/* 2. Create the unified white card background for the content */
#content > .md-content > .section_lv2_wrapper:nth-child(8)::before {
    content: "";
    grid-column: 1 / -1;
    grid-row: 2 / 5; /* Spans across the rows containing the image and 3 bullet points */
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    z-index: 0;
}

/* 3. Extract the Main Title (h2) outside the white box */
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .h2_wrapper {
    grid-column: 1 / -1;
    grid-row: 1;
    z-index: 1;
    margin-bottom: 1.5rem;
    padding-left:50px;
}

#content > .md-content > .section_lv2_wrapper:nth-child(8) > .h2_wrapper h2 {
    font-size: 2.2rem;
    color: #1a0b2e; /* Deep purple/blue */
    font-weight: 800;
    text-transform: none;
    border: none;
    padding: 0;
    letter-spacing: normal;
    line-height:1.2;
}

/* 4. Position the Venn Diagram Image */
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .img_wrapper {
    grid-column: 1;
    grid-row: 2 / 5; /* Span alongside the 3 text blocks */
    z-index: 1;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#content > .md-content > .section_lv2_wrapper:nth-child(8) > .img_wrapper img {
    width: 100%;
    height: auto;
    box-shadow: none;
    border-radius: 0;
}

/* 5. Reset the individual sub-sections (remove card styles) */
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper.card-wrapper {
    background: transparent;
    box-shadow: none;
    padding: 0 3rem 0 0; /* Add right padding */
    margin: 0;
    z-index: 1;
    grid-column: 2; /* Put all text blocks in the right column */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Row placements and spacing for the 3 text blocks */
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper:nth-of-type(3) {
    grid-row: 2;
    padding-top: 25px; /* Space from top edge of white card */
}
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper:nth-of-type(4) {
    grid-row: 3;
    padding-top: 25px;
    padding-bottom: 25px;
}
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper:nth-of-type(5) {
    grid-row: 4;
    padding-bottom: 25px; /* Space from bottom edge of white card */
}

/* Hide horizontal rules in this section */
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper > .hr_wrapper {
    display: none;
}

/* 6. Text Formatting: h3 styling, lowercase text, and Emoji layout trick */
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper > .h3_wrapper h3 {
    font-size: 1.8rem;
    color: #2b3a4a;
    font-weight: 700;

    margin-left: 4.5rem; /* Push text right */
    text-indent: -5.4rem; /* Pull ONLY the first line (with the emoji) back left */
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* Align the first-letter */
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper > .h3_wrapper h3::first-letter {
    margin-right: 2.5rem;
}

/* 7. Align Paragraph Text under the h3 text (bypassing the emoji) */
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper > .p_wrapper p {
    margin-left: 4.5rem; /* Aligns paragraph perfectly with the h3 text */
    font-size: 1.1rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
}

/* 8. Mobile Responsiveness (Stack elements) */
@media (max-width: 1024px) {

    #content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper > .h3_wrapper h3 {
        font-size: 1.5rem;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper > .h3_wrapper h3::first-letter {
        margin-right: 2rem;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper > .p_wrapper p {
        font-size: 1rem;
        margin-left:3.35rem;
    }
}
@media (max-width: 768px) {
    #content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper > .h3_wrapper h3 {
        font-size: 1.2rem;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper > .h3_wrapper h3::first-letter {
        margin-right: 1.5rem;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper > .p_wrapper p {
        font-size: 0.9rem;
        margin-left:2.6rem;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(8) {
        display: block;
        padding:0;
        margin-bottom:0;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper.card-wrapper {
        padding: 0 50px;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(8) > .h2_wrapper{
        padding:0 30px;
        margin-top:50px;
        margin-bottom:0;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(8) > .h2_wrapper h2{
        font-size:2rem;
    }
}


/* ================================================================
   Our Clients Use Case Section (Match LHS Screenshot)
   ================================================================ */

/* 1. Main Wrapper: Transform into a 3-column grid */
#content > .md-content > .section_lv2_wrapper:nth-child(9) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #ffffff;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    margin: 2rem auto;
}

/* 2. Hide the main section H2 title to align flush with the navbar exactly like the screenshot */
#content > .md-content > .section_lv2_wrapper:nth-child(9) > .h2_wrapper {
    display: none;
}

/* 3. Configure individual client columns */
#content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper.card-wrapper {
    grid-column: auto; /* <--- THIS IS THE FIX: Resets the global column span */
    display: flex;
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    padding: 3rem 2.5rem;
    margin: 0;
}

/* Add vertical dividing lines between columns */
#content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper:not(:last-child) {
    border-right: 1px solid #f0f2f5;
}

/* 4. Reorder inner elements: Image (1) -> Title (2) -> List (3) -> Link (4) */
/* Target the main illustration (first image) */
#content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper > .img_wrapper:nth-child(2) {
    order: 1;
    margin-bottom: 2.5rem;
    height: 240px; /* Fixed height so differently sized images align perfectly */
    display: flex;
    align-items: flex-end; /* Aligns character 'feet' to the bottom */
    justify-content: center;
}

#content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper > .img_wrapper:nth-child(2) img {
    max-height: 100%;
    width: auto;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
}

#content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper:nth-child(3) > .h3_wrapper:nth-child(1),
#content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper:nth-child(4) > .h3_wrapper:nth-child(1) {
    display:none;
}
/* Target and style the logos (second image inside the AKA and JobsDB cards) */
#content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper > .img_wrapper:nth-child(3) {
    order: 2;
    margin-bottom: 1.5rem;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligns logos to the left */
}

#content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper > .img_wrapper:nth-child(3) img {
    max-height: 60px; /* Ensures logos don't blow up in size */
    width: auto;
    object-fit: contain;
}

#content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper > .h3_wrapper {
    order: 2;
    margin-bottom: 1.5rem;
}

#content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper > .h3_wrapper h3 {
    font-size: 1.5rem;
    color: #2b3a4a;
    font-weight: 700;
}

#content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper > .list_wrapper {
    order: 3;
    margin-bottom: 1.5rem;
}

#content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper > .p_wrapper {
    order: 4;
    margin-top: auto; /* Pushes the "Learn more" link to the absolute bottom of the card */
}

/* 5. Style list text into paragraphs (remove bullets) */
#content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper > .list_wrapper ul {
    list-style: none;
    padding-left: 0;
}

#content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper > .list_wrapper ul li {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.5;
    padding-left: 0;
}

/* Prevent inheritance of purple product bullets */
#content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper > .list_wrapper ul li::before {
    content: none; 
}

/* Style the teal revenue text */
#content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper > .list_wrapper ul li strong {
    color: #1e5b6b;
    font-weight: 600;
}

/* 6. Style the 'Learn more ->' link */
#content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper > .p_wrapper a {
    color: #1a2b3c;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border-bottom: 1px dotted #a0aec0;
    padding-bottom: 2px;
}

#content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper > .p_wrapper a::after {
    content: " \2192";
    margin-left: 0.5rem;
    font-size: 1.1em;
}

/* 7. Hide horizontal rules */
#content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper > .hr_wrapper {
    display: none;
}

/* 8. Mobile Responsiveness */
@media (max-width: 1024px) {
    #content > .md-content > .section_lv2_wrapper:nth-child(9) {
        grid-template-columns: 1fr;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid #f0f2f5;
    }
}

@media (max-width: 768px){
    #content > .md-content > .section_lv2_wrapper:nth-child(9) > .section_lv3_wrapper.card-wrapper {
        padding: 50px;
        margin: 0;
    }
}

/* ================================================================
   Research Journey Section (Corrected 4-Column Layout)
   ================================================================ */

/* 1. Main Wrapper: Transform into a 4-column grid */
#content > .md-content > .section_lv2_wrapper:nth-child(10) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 0 50px;
    margin: 4rem auto;
}

/* 2. Configure the main H2 title to span all columns */
#content > .md-content > .section_lv2_wrapper:nth-child(10) > .h2_wrapper {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
    padding-left: 0; /* Reset if previously inherited */
}

#content > .md-content > .section_lv2_wrapper:nth-child(10) > .h2_wrapper h2 {
    font-size: 2.2rem;
    color: #23153c;
    font-weight: 700;
    text-transform: none;
    border: none;
    letter-spacing: normal;
    padding: 0;
}

/* 3. Reset individual sub-sections and CRITICALLY reset the grid-column */
#content > .md-content > .section_lv2_wrapper:nth-child(10) > .section_lv3_wrapper.card-wrapper {
    grid-column: auto; /* Fixes the stretching issue from the global CSS */
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* 4. Reorder inner elements: Image (1) -> Title Label (2) -> Paragraph Text (3) */
#content > .md-content > .section_lv2_wrapper:nth-child(10) > .section_lv3_wrapper > .img_wrapper {
    order: 1;
    width: 100%;
    height: 160px; /* Fixed height to keep the row perfectly aligned */
    margin-bottom: 1.2rem;
    overflow: hidden;
}

#content > .md-content > .section_lv2_wrapper:nth-child(10) > .section_lv3_wrapper > .img_wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

#content > .md-content > .section_lv2_wrapper:nth-child(10) > .section_lv3_wrapper > .h3_wrapper {
    order: 2;
    margin-bottom: 1rem;
}

/* 5. Style the H3 titles into solid-color labels/tags */
#content > .md-content > .section_lv2_wrapper:nth-child(10) > .section_lv3_wrapper > .h3_wrapper h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    padding: 0.35rem 1.2rem;
    border-radius: 2px;
    margin: 0;
    text-align: center;
    display: inline-block;
}

/* Fix nth-child indexing to skip the .h2_wrapper */
/* HKSTP & HKAI Lab (Light Blue) */
#content > .md-content > .section_lv2_wrapper:nth-child(10) > .section_lv3_wrapper:nth-child(2) > .h3_wrapper h3,
#content > .md-content > .section_lv2_wrapper:nth-child(10) > .section_lv3_wrapper:nth-child(3) > .h3_wrapper h3 {
    background-color: #69a1d8; 
}
/* HK GOV (Purple) */
#content > .md-content > .section_lv2_wrapper:nth-child(10) > .section_lv3_wrapper:nth-child(4) > .h3_wrapper h3 {
    background-color: #a05ee6; 
}
/* ChatCampaign Research (Teal) */
#content > .md-content > .section_lv2_wrapper:nth-child(10) > .section_lv3_wrapper:nth-child(5) > .h3_wrapper h3 {
    background-color: #92c4b8; 
}

/* 6. Style the descriptive text */
#content > .md-content > .section_lv2_wrapper:nth-child(10) > .section_lv3_wrapper > .p_wrapper {
    order: 3;
    text-align: center;
}

#content > .md-content > .section_lv2_wrapper:nth-child(10) > .section_lv3_wrapper > .p_wrapper p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333333;
}

/* 7. Hide horizontal rules */
#content > .md-content > .section_lv2_wrapper:nth-child(10) > .section_lv3_wrapper > .hr_wrapper {
    display: none;
}

/* 8. Mobile Responsiveness */
@media (max-width: 1024px) {
    #content > .md-content > .section_lv2_wrapper:nth-child(10) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #content > .md-content > .section_lv2_wrapper:nth-child(10) {
        grid-template-columns: 1fr;
        padding:0 30px;
        padding-top:50px;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(10) > .h2_wrapper h2 {
        font-size: 2rem;
        text-align: center;
    }
}

/* ================================================================
   About Us Section (Match RHS Screenshot)
   ================================================================ */

/* 1. Reset card styling to blend seamlessly into a white background */
#content > .md-content > .section_lv2_wrapper:nth-child(11) {
    background: #ffffff;
    box-shadow: none;
    padding: 4rem 50px 1rem 50px;
    margin: 0;
    border-radius: 0;
}

/* 2. Style the "About Us" heading */
#content > .md-content > .section_lv2_wrapper:nth-child(11) > .h2_wrapper h2 {
    font-size: 2.2rem;
    color: #1a0b2e;
    font-weight: 800;
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

/* 3. Constrain text width to match RHS layout and apply serif font */
#content > .md-content > .section_lv2_wrapper:nth-child(11) > .p_wrapper {
    max-width: 60%;
}

#content > .md-content > .section_lv2_wrapper:nth-child(11) > .p_wrapper p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
}

/* 4. Hide the horizontal rule */
#content > .md-content > .section_lv2_wrapper:nth-child(11) > .hr_wrapper {
    display: none;
}

@media (max-width: 768px) {
    #content > .md-content > .section_lv2_wrapper:nth-child(11){
        padding: 4rem 30px 1rem 30px;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(11) > .h2_wrapper h2 {
        font-size: 2rem;
    }
}

/* ================================================================
   Trusted by reputable companies Section (Match RHS Screenshot)
   ================================================================ */

/* 1. Setup Flexbox layout for the logos and blend background */
#content > .md-content > .section_lv2_wrapper:nth-child(12) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    background: #ffffff;
    box-shadow: none;
    padding: 1rem 50px 4rem 50px;
    margin: 0;
    border-radius: 0;
}

/* 2. Convert the H2 into a centered, smaller label */
#content > .md-content > .section_lv2_wrapper:nth-child(12) > .h2_wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
}

#content > .md-content > .section_lv2_wrapper:nth-child(12) > .h2_wrapper h2 {
    font-size: 1.05rem;
    color: #555555;
    font-weight: 600;
    text-transform: none;
    border: none;
    padding: 0;
    letter-spacing: normal;
}

/* 3. Scale down and align the massive logos */
#content > .md-content > .section_lv2_wrapper:nth-child(12) > .img_wrapper {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#content > .md-content > .section_lv2_wrapper:nth-child(12) > .img_wrapper img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
    box-shadow: none;
    border-radius: 0;
}

/* 4. Hide the horizontal rule */
#content > .md-content > .section_lv2_wrapper:nth-child(12) > .hr_wrapper {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    #content > .md-content > .section_lv2_wrapper:nth-child(11) > .p_wrapper {
        max-width: 100%;
    }
}

/* ================================================================
   Why choose us Section (Match RHS Screenshot)
   ================================================================ */

/* 1. Main Wrapper: Transform into a 4-column grid and remove white background */
#content > .md-content > .section_lv2_wrapper:nth-child(13) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: transparent;
    box-shadow: none;
    padding: 2rem 50px;
    margin: 0 auto;
    border-radius: 0;
}

/* 2. Hide the main section H2 title to match the screenshot crop */
#content > .md-content > .section_lv2_wrapper:nth-child(13) > .h2_wrapper {
    display: none;
}

/* 3. Style the layout for the individual feature cards */
#content > .md-content > .section_lv2_wrapper:nth-child(13) > .section_lv3_wrapper.card-wrapper {
    grid-column: auto;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0; /* Remove default margins */
}

/* 4. Text Formatting inside the cards */
#content > .md-content > .section_lv2_wrapper:nth-child(13) > .section_lv3_wrapper > .h3_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#content > .md-content > .section_lv2_wrapper:nth-child(13) > .section_lv3_wrapper > .h3_wrapper h3 {
    font-size: 1.15rem;
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

#content > .md-content > .section_lv2_wrapper:nth-child(13) > .section_lv3_wrapper > .p_wrapper p {
    font-size: 0.95rem;
    color: #6a7682;
    line-height: 1.6;
    margin: 0;
}

/* 5. Create the floating Icon Circles using pseudo-elements */
#content > .md-content > .section_lv2_wrapper:nth-child(13) > .section_lv3_wrapper > .h3_wrapper::before {
    content: "";
    display: block;
    width: 72px;
    height: 72px;
    background-color: #8b9cdb; /* Soft periwinkle/blue from screenshot */
    border-radius: 50%;
    margin-bottom: 1.5rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 32px 32px;
}

/* 6. Inject specific SVG icons for each card */
/* Card 1: Enable Innovation (User Outline) */
#content > .md-content > .section_lv2_wrapper:nth-child(13) > .section_lv3_wrapper:nth-child(2) > .h3_wrapper::before {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>');
}

/* Card 2: Focused on security (Shield) */
#content > .md-content > .section_lv2_wrapper:nth-child(13) > .section_lv3_wrapper:nth-child(3) > .h3_wrapper::before {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path></svg>');
}

/* Card 3: Flexible hosting options (Cloud) */
#content > .md-content > .section_lv2_wrapper:nth-child(13) > .section_lv3_wrapper:nth-child(4) > .h3_wrapper::before {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"></path></svg>');
}

/* Card 4: Cost-effective (Presentation/Chart) */
#content > .md-content > .section_lv2_wrapper:nth-child(13) > .section_lv3_wrapper:nth-child(5) > .h3_wrapper::before {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="3" y1="9" x2="21" y2="9"></line><line x1="9" y1="21" x2="9" y2="9"></line></svg>');
}

/* 7. Hide horizontal rules and blockquotes to keep the cards ultra clean */
#content > .md-content > .section_lv2_wrapper:nth-child(13) > .section_lv3_wrapper > .hr_wrapper,
#content > .md-content > .section_lv2_wrapper:nth-child(13) > .section_lv3_wrapper > .blockquote_wrapper {
    display: none;
}

/* 8. Handle the extra 5th CTA Card (Spans across the bottom) */
#content > .md-content > .section_lv2_wrapper:nth-child(13) > .section_lv3_wrapper:nth-child(6) {
    grid-column: 1 / -1; /* Stretch across all columns */
    background: transparent;
    box-shadow: none;
    padding: 1rem 0;
    margin-top: 2rem;
}

#content > .md-content > .section_lv2_wrapper:nth-child(13) > .section_lv3_wrapper:nth-child(6) > .h3_wrapper::before {
    display: none; /* No circle icon for the CTA section */
}

/* 9. Mobile Responsiveness */
@media (max-width: 1024px) {
    #content > .md-content > .section_lv2_wrapper:nth-child(13) {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    #content > .md-content > .section_lv2_wrapper:nth-child(13) {
        grid-template-columns: 1fr; /* 1 column on mobile */
        padding: 2rem 5%;
    }
}

/* ================================================================
   CTA Section "It's inevitable..." (Match LHS Photo Bottom Part)
   ================================================================ */

/* 1. Target the correct wrapper (14th element) and setup Grid */
#content > .md-content > .section_lv2_wrapper:nth-child(14) {
    background-color: #2b2e36; /* Dark slate matching the screenshot */
    border-radius: 12px;
    padding: 4rem;
    margin: 50px;
    width: calc(100% - 100px);
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: 
        "title buttons"
        "subtitle buttons";
    row-gap: 1.5rem;
    column-gap: 3rem;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 2. Style the main title */
#content > .md-content > .section_lv2_wrapper:nth-child(14) > .h2_wrapper {
    grid-area: title;
    margin: 0;
    padding: 0;
}

#content > .md-content > .section_lv2_wrapper:nth-child(14) > .h2_wrapper h2 {
    font-size: 2.6rem;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.2;
    border: none;
    text-transform: none;
    padding: 0;
    margin: 0;
}

/* 3. Flatten the inner wrapper to join the grid */
#content > .md-content > .section_lv2_wrapper:nth-child(14) > .section_lv3_wrapper {
    display: contents;
}

/* 4. Style the subtitle (h3) */
#content > .md-content > .section_lv2_wrapper:nth-child(14) > .section_lv3_wrapper > .h3_wrapper {
    grid-area: subtitle;
    margin: 0;
}

#content > .md-content > .section_lv2_wrapper:nth-child(14) > .section_lv3_wrapper > .h3_wrapper h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    color: #d0d8e4;
    font-weight: 400;
    margin: 0;
}

/* 5. Style the Buttons Container (p_wrapper) */
#content > .md-content > .section_lv2_wrapper:nth-child(14) > .section_lv3_wrapper > .p_wrapper {
    grid-area: buttons;
    margin: 0;
}

#content > .md-content > .section_lv2_wrapper:nth-child(14) > .section_lv3_wrapper > .p_wrapper p {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-size: 0; /* Hides the raw '|' text node */
    margin: 0;
}

/* 6. Base styles for the buttons */
#content > .md-content > .section_lv2_wrapper:nth-child(14) > .section_lv3_wrapper > .p_wrapper p a {
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 40px; /* Pill shape */
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 260px; /* Consistent button width */
    transition: transform 0.2s, opacity 0.2s;
}

#content > .md-content > .section_lv2_wrapper:nth-child(14) > .section_lv3_wrapper > .p_wrapper p a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

#content > .md-content > .section_lv2_wrapper:nth-child(14) > .section_lv3_wrapper > .p_wrapper p a::after {
    content: "\2192"; /* Right arrow icon */
    font-size: 1.1rem;
}

/* Top Button: Request Demo (Coral/Orange) */
#content > .md-content > .section_lv2_wrapper:nth-child(14) > .section_lv3_wrapper > .p_wrapper p a:first-child {
    background-color: #ff7b62; 
    color: #ffffff;
    border: none;
}

/* Bottom Button: Sales Deck (White) */
#content > .md-content > .section_lv2_wrapper:nth-child(14) > .section_lv3_wrapper > .p_wrapper p a:last-child {
    background-color: #ffffff;
    color: #1a1a2e;
    border: none;
}

/* 7. Hide horizontal rule */
#content > .md-content > .section_lv2_wrapper:nth-child(14) > .section_lv3_wrapper > .hr_wrapper {
    display: none;
}

/* 8. Mobile Responsiveness */
@media (max-width: 768px) {
    #content > .md-content > .section_lv2_wrapper:nth-child(14) {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "title"
            "subtitle"
            "buttons";
        text-align: center;
        width:calc(100% - 60px);
        padding: 50px 30px;
        margin: 30px;
    }
    
    #content > .md-content > .section_lv2_wrapper:nth-child(14) > .section_lv3_wrapper > .p_wrapper p {
        align-items: center;
        margin-top: 1.5rem;
    }
    
    #content > .md-content > .section_lv2_wrapper:nth-child(14) > .h2_wrapper h2 {
        font-size: 2rem;
    }
}


/* ================================================================
   RE-WRITTEN: Our blog & Client Stories Section 
   Fixes the layout using Flexbox cards instead of display:contents
   ================================================================ */

/* 1. "Our blog" Kicker (Section 15) */
#content > .md-content > .section_lv2_wrapper:nth-child(15) {
    text-align: center;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 4rem 0 0.5rem 0;
    display: block; /* Ensure no grid inheritance */
}
#content > .md-content > .section_lv2_wrapper:nth-child(15) > .h2_wrapper h2 {
    font-size: 1rem;
    color: #8cc4af; /* Teal color matching the target */
    text-transform: none;
    font-weight: 700;
    border: none;
    padding: 0;
    letter-spacing: normal;
    margin: 0;
}
#content > .md-content > .section_lv2_wrapper:nth-child(15) > .hr_wrapper {
    display: none;
}

/* 2. "Client Stories" Main Container (Section 16) */
#content > .md-content > .section_lv2_wrapper:nth-child(16) {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 50px 4rem 50px;
    margin: 0 auto;
    background: transparent;
    box-shadow: none;
}

/* Title spans 100% and centered */
#content > .md-content > .section_lv2_wrapper:nth-child(16) > .h2_wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
}
#content > .md-content > .section_lv2_wrapper:nth-child(16) > .h2_wrapper h2 {
    font-size: 2.8rem;
    color: #1a1a2e;
    font-weight: 800;
    border: none;
    padding: 0;
    margin: 0;
}

/* 3. Subtitle Row (Wrapper 1) */
#content > .md-content > .section_lv2_wrapper:nth-child(16) > .section_lv3_wrapper:nth-of-type(1) {
    width: 100%;
    text-align: center;
    margin-bottom: 3rem;
    padding: 0;
    background: transparent;
    box-shadow: none;
    display: block;
}
#content > .md-content > .section_lv2_wrapper:nth-child(16) > .section_lv3_wrapper:nth-of-type(1) > .h3_wrapper h3 {
    font-size: 1.1rem;
    color: #6a7682;
    font-weight: 400;
    margin: 0;
}
/* Hide stray Kicker 1 and HR from Wrapper 1 */
#content > .md-content > .section_lv2_wrapper:nth-child(16) > .section_lv3_wrapper:nth-of-type(1) > .hr_wrapper,
#content > .md-content > .section_lv2_wrapper:nth-child(16) > .section_lv3_wrapper:nth-of-type(1) > .section_lv4_wrapper {
    display: none;
}

#content > .md-content > .section_lv2_wrapper:nth-child(16) > .blockquote_wrapper:nth-of-type(2){
    text-align:center;
    width:100%;
    margin-bottom:50px;
}

#content > .md-content > .section_lv2_wrapper:nth-child(16) > .blockquote_wrapper:nth-of-type(2)::after {
  content: "";
  display: table;
  clear: both;
}

/* 4. Column Cards (Wrapper 2 & Wrapper 3) */
#content > .md-content > .section_lv2_wrapper:nth-child(16) > .section_lv3_wrapper:nth-of-type(3),
#content > .md-content > .section_lv2_wrapper:nth-child(16) > .section_lv3_wrapper:nth-of-type(4) {
    width: calc(50% - 1.5rem); /* Splits width exactly in half minus gap */
    display: flex;
    flex-direction: column;
    padding: 0;
    background: transparent;
    box-shadow: none;
    margin: 0;
}

/* 5. Reorder and style internal card elements */

/* Image goes to the top */
#content > .md-content > .section_lv2_wrapper:nth-child(16) > .section_lv3_wrapper:not(:first-of-type) > .img_wrapper {
    order: 1;
    margin-bottom: 1.5rem;
}

/* Title block goes in the middle */
#content > .md-content > .section_lv2_wrapper:nth-child(16) > .section_lv3_wrapper:not(:first-of-type) > .h3_wrapper {
    order: 2;
    margin-bottom: 0.5rem;
}

/* Descriptive Paragraph (3rd child) goes after the title */
#content > .md-content > .section_lv2_wrapper:nth-child(16) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(3) {
    order: 3;
    margin-bottom: 1.5rem;
}
#content > .md-content > .section_lv2_wrapper:nth-child(16) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(3) p {
    font-size: 1rem;
    color: #6a7682;
    line-height: 1.6;
    margin: 0;
}

/* Read More link wrapper (4th child) goes to the absolute bottom */
#content > .md-content > .section_lv2_wrapper:nth-child(16) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(4) {
    order: 4;
    margin-top: auto; /* Pushes the button to the bottom if cards stretch */
}

/* Turn "Read more" link into a solid button */
#content > .md-content > .section_lv2_wrapper:nth-child(16) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(4) a {
    display: inline-block;
    background-color: #7c3aed; /* Purple matching the 'Client Story' kicker */
    color: #ffffff;
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Button hover effect */
#content > .md-content > .section_lv2_wrapper:nth-child(16) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(4) a:hover {
    background-color: #6d28d9;
    transform: translateY(-2px);
}

/* 6. Mobile Responsiveness */
@media (max-width: 768px) {
    #content > .md-content > .section_lv2_wrapper:nth-child(16) {
        flex-direction: column;
        padding: 0 5% 4rem 5%;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(16) > .section_lv3_wrapper:nth-of-type(3),
    #content > .md-content > .section_lv2_wrapper:nth-child(16) > .section_lv3_wrapper:nth-of-type(4) {
        width: 100%;
        margin-bottom: 3rem;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(16) > .h2_wrapper h2{
        font-size:2rem;
    }
}

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

/* 1. Main Footer Wrapper: Full width, light gray background, flex column */
#content > .md-content > .section_lv2_wrapper:nth-child(17) {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f5f6f8; /* Light gray background */
    box-shadow: none;
    border-radius: 0;
    padding: 4rem 2rem;
    margin: 0;
}

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

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

#content > .md-content > .section_lv2_wrapper:nth-child(17) > .list_wrapper {
    order: 2;
    margin-bottom: 1.5rem;
}

#content > .md-content > .section_lv2_wrapper:nth-child(17) > .p_wrapper {
    order: 3;
    margin: 0;
}

/* 4. Logo Styling */
#content > .md-content > .section_lv2_wrapper:nth-child(17) > .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:nth-child(17) > .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:nth-child(17) > .list_wrapper ul li {
    padding: 0;
    margin: 0;
}

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

#content > .md-content > .section_lv2_wrapper:nth-child(17) > .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:nth-child(17) > .list_wrapper ul li a:hover {
    color: #2b2e36;
}

/* 6. Copyright Text Styling */
#content > .md-content > .section_lv2_wrapper:nth-child(17) > .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:nth-child(17) > .list_wrapper ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

