/* ================================================================
   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 */
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}
.loading {
    text-align: center;
    padding: 5rem 1rem;
    color: #999;
    font-size: 1.1rem;
}

/* ── Site Header ─────────────────────────────────────── */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 50px;
    background: #f7f8fa; /* Changed from #24262c to white */
    border-bottom: 1px solid #f0f0f0; /* Optional: subtle border for separation */
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-icon img {
    height: 65px;
    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 a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    color: #333333; /* Changed from white to dark grey */
    transition: opacity 0.2s;
    margin:0 15px;
}

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

.btn-launch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.8rem;
    background: #5a5a5a; /* Dark grey matching "AI CONSULTATION" button */
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase; /* Added uppercase */
    border: none;
    border-radius: 0; /* Changed from 50px to square corners */
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
    line-height:1;
}

.btn-launch::after {
    content: none; /* Removed the unicode right arrow */
}

/* Hide hamburger menu by default on desktop */
.menu-toggle {
    display: none;
}

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

#content > .md-content > .section_lv2_wrapper {
    background: #ffffff;
    box-shadow: none;
    padding: 4rem 50px 1rem 50px;
    margin: 0;
    border-radius: 0;
    grid-column:1 / 15;
    width:100%;
}

/* ── 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%; }
    
    /* 1. Style the hamburger button icon */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: #333333;
        cursor: pointer;
        padding: 0.25rem;
    }

    /* 2. Turn the hidden container into an absolute dropdown wrapper */
    .nav-links { 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 5%;
        background: #ffffff;
        border: 1px solid #f0f0f0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        width: 200px;
        z-index: 1000;
    }

    /* 3. Display the dropdown when toggled open */
    .nav-links.open {
        display: flex;
    }

    /* 4. Fix link spacings for vertical block stack */
    .nav-links a {
        margin: 0.5rem 0;
    }
}

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

/* Right side Workflow Portal Image */
#content > .md-content > .img_wrapper:first-child {
    grid-column: 9 / 15;
    grid-row: 1 / 5; /* Align closer to the top */
    z-index: 1;
    align-self: center;
    padding-top: 3rem; /* Adjusted spacing */
    margin: 0;
    padding-right: 50px;
}

#content > .md-content > .img_wrapper:first-child img {
    width: 100%;
    border-radius: 0; /* Removed rounding */
    box-shadow: none; /* Removed shadow */
}

/* Heading 1 (Title) and the button */
#content > .md-content > .h1_wrapper {
    grid-column: 1 / 9;
    grid-row: 1;
    z-index: 1;
    align-self: end;
    padding-top: 5rem;
    margin-bottom: 0;
    padding-left: 50px;
}

#content > .md-content > .section_lv2_wrapper:nth-child(3) {
    grid-column: 1 / 9;
    grid-row: 2;
    display: block; /* Changed from display: contents */
    background: transparent; /* Removes any card styling */
    padding: 1rem 50px 2rem 50px;
}

#content > .md-content > .h1_wrapper{
    display:none;
}



#content > .md-content > .section_lv2_wrapper:nth-child(3) > .h2_wrapper h2 {
        font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: #2b1b40; /* Dark purple matching RHS text */
    letter-spacing: -0.01em;
}


#content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper > .h3_wrapper h3 {
    font-family: Georgia, "Times New Roman", serif; /* Restored Serif font */
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
    color: #333333;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}


/*  Hero Call to Action (Transform blockquote to Input Form)*/
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper > .blockquote_wrapper {
    margin-top: 2rem;
    padding: 0;
}

/* Hide original text and structure the layout */
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper > .blockquote_wrapper blockquote {
    font-size: 0; /* Hides "Email section" text */
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Construct the "Enter your email" input box */
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper > .blockquote_wrapper blockquote::before {
    content: "Enter your email";
    font-size: 0.95rem;
    color: #888;
    padding: 0.8rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    background: #ffffff;
    width: 260px;
    box-sizing: border-box;
}

/* Construct the "GET STARTED" button */
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper > .blockquote_wrapper blockquote::after {
    content: "GET STARTED";
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    background: #5a5a5a;
    padding: 0.9rem 1.8rem;
    border-radius: 2px;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.5px;
    line-height:1;
}

/* Inject the "or send an email to..." subtext below */
#content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper > .blockquote_wrapper::after {
    content: "or send an email to info@chatcampaign.io >";
    display: block;
    font-size: 0.9rem;
    color: #555555;
    margin-top: 1.5rem;
}
@media (max-width: 1024px)
 {
    #content > .md-content > .img_wrapper:first-child {
        grid-row: 1; /* Align closer to the top */
        padding:0;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(3) {
        grid-row: 2;
    }
    #content > .md-content > .img_wrapper:first-child,
    #content > .md-content > .section_lv2_wrapper:nth-child(3) {
        width:100%;
        grid-column: 1/15;
    }

    #content > .md-content > .section_lv2_wrapper:nth-child(3) .h2_wrapper h2{
        font-size:2.5rem;
        text-align:center;
    }

    #content > .md-content > .img_wrapper:first-child img{
        max-width:450px;
        margin-left:calc(50% - 225px);
    }
}


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

/* 1. Main Wrapper: Transform into a 4-column grid */
#content > .md-content > .section_lv2_wrapper:nth-child(4) {
    background: transparent;
    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(4) > .h2_wrapper {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
    padding-left: 0; /* Reset if previously inherited */
}

#content > .md-content > .section_lv2_wrapper:nth-child(4) > .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(4) > .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(4) > .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(4) > .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(4) > .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(4) > .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(4) > .section_lv3_wrapper:nth-child(2) > .h3_wrapper h3,
#content > .md-content > .section_lv2_wrapper:nth-child(4) > .section_lv3_wrapper:nth-child(3) > .h3_wrapper h3 {
    background-color: #69a1d8; 
}
/* HK GOV (Purple) */
#content > .md-content > .section_lv2_wrapper:nth-child(4) > .section_lv3_wrapper:nth-child(4) > .h3_wrapper h3 {
    background-color: #a05ee6; 
}
/* ChatCampaign Research (Teal) */
#content > .md-content > .section_lv2_wrapper:nth-child(4) > .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(4) > .section_lv3_wrapper > .p_wrapper {
    order: 3;
    text-align: center;
}

#content > .md-content > .section_lv2_wrapper:nth-child(4) > .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(4) > .section_lv3_wrapper > .hr_wrapper {
    display: none;
}

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

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



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



/* 2. Style the "About Us" heading */
#content > .md-content > .section_lv2_wrapper:nth-child(5) > .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(5) > .p_wrapper {
    max-width: 60%;
}

#content > .md-content > .section_lv2_wrapper:nth-child(5) > .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(5) > .hr_wrapper {
    display: none;
}

@media (max-width: 768px) {
    #content > .md-content > .section_lv2_wrapper:nth-child(5){
        padding: 4rem 30px 1rem 30px;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(5) > .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(6) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 1rem 50px 4rem 50px;
}

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

#content > .md-content > .section_lv2_wrapper:nth-child(6) > .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(6) > .img_wrapper {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#content > .md-content > .section_lv2_wrapper:nth-child(6) > .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(6) > .hr_wrapper {
    display: none;
}

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

/* ================================================================
   Product Section
   ================================================================ */

/* 1. Target the Product Section & remove default constraints */
#content > .md-content > .section_lv2_wrapper:nth-child(7),
#content > .md-content > .section_lv2_wrapper:nth-child(8) {
    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,
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .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,
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .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),
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .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,
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .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,
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .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,
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .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,
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper > .list_wrapper {
    margin-bottom: 1.25rem;
}

#content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > .list_wrapper > ul,
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .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,
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .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 > .md-content > .section_lv2_wrapper:nth-child(8) > .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,
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper > div:nth-child(7) > 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,
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper > div:nth-child(7) > p > a {
    font-size: 1rem;
    text-decoration: none;
    padding: 0.7rem 1.8rem;
    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,
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper > div:nth-child(7) > 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,
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper > div:nth-child(7) > 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,
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper > div:nth-child(7) > 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,
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper > div:nth-child(7) > 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,
#content > .md-content > .section_lv2_wrapper:nth-child(8) > .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,
    #content > .md-content > .section_lv2_wrapper:nth-child(8) > .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,
    #content > .md-content > .section_lv2_wrapper:nth-child(8) > .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),
    #content > .md-content > .section_lv2_wrapper:nth-child(8) {
        padding:3rem 30px;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > .h3_wrapper > h3,
    #content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper > .h3_wrapper > h3 {
        font-size: 2rem;
    }
}




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

/* 1. "Our blog" Kicker (Section 9-) */
#content > .md-content > .section_lv2_wrapper:nth-child(9),
#content > .md-content > .section_lv2_wrapper:nth-child(11) {
    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(9) > .h2_wrapper h2,
#content > .md-content > .section_lv2_wrapper:nth-child(11) > .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(9) > .hr_wrapper,
#content > .md-content > .section_lv2_wrapper:nth-child(11) > .hr_wrapper {
    display: none;
}

/* 2. "AI Experiments" Main Container (Section 10) */
#content > .md-content > .section_lv2_wrapper:nth-child(10),
#content > .md-content > .section_lv2_wrapper:nth-child(12) {
    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(10) > .h2_wrapper,
#content > .md-content > .section_lv2_wrapper:nth-child(12) > .h2_wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
}
#content > .md-content > .section_lv2_wrapper:nth-child(10) > .h2_wrapper h2,
#content > .md-content > .section_lv2_wrapper:nth-child(12) > .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(10) > .section_lv3_wrapper:nth-of-type(1),
#content > .md-content > .section_lv2_wrapper:nth-child(12) > .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(10) > .section_lv3_wrapper:nth-of-type(1) > .h3_wrapper h3 {
    font-size: 1.1rem;
    color: #6a7682;
    font-weight: 400;
    margin: 0;
}
#content > .md-content > .section_lv2_wrapper:nth-child(12) > .section_lv3_wrapper:not(:first-of-type) > .h3_wrapper h3 {
    font-size: 16px;
    color: black;
    margin: 0;
        font-family: "Exo", sans-serif;
    line-height:20px;
}
/* Hide stray Kicker 1 and HR from Wrapper 1 */
#content > .md-content > .section_lv2_wrapper:nth-child(10) > .section_lv3_wrapper:nth-of-type(1) > .hr_wrapper,
#content > .md-content > .section_lv2_wrapper:nth-child(10) > .section_lv3_wrapper:nth-of-type(1) > .section_lv4_wrapper,
#content > .md-content > .section_lv2_wrapper:nth-child(12) > .section_lv3_wrapper:nth-of-type(1) > .hr_wrapper,
#content > .md-content > .section_lv2_wrapper:nth-child(12) > .section_lv3_wrapper:nth-of-type(1) > .section_lv4_wrapper {
    display: none;
}

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

#content > .md-content > .section_lv2_wrapper:nth-child(10) > .blockquote_wrapper:nth-of-type(2)::after,
#content > .md-content > .section_lv2_wrapper:nth-child(12) > .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(10) > .section_lv3_wrapper:nth-of-type(n+3),
#content > .md-content > .section_lv2_wrapper:nth-child(12) > .section_lv3_wrapper:nth-of-type(n+3) {
    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: 20px 0;
}

#content > .md-content > .section_lv2_wrapper:nth-child(12) > .section_lv3_wrapper:nth-of-type(n+3) {
    width: calc(33% - 1.5rem); /* Splits width exactly in half minus gap */
}

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

/* Image goes to the top */
#content > .md-content > .section_lv2_wrapper:nth-child(10) > .section_lv3_wrapper:not(:first-of-type) > .img_wrapper,
#content > .md-content > .section_lv2_wrapper:nth-child(12) > .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(10) > .section_lv3_wrapper:not(:first-of-type) > .h3_wrapper,
#content > .md-content > .section_lv2_wrapper:nth-child(12) > .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(10) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(3),
#content > .md-content > .section_lv2_wrapper:nth-child(12) > .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(10) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(3) p{
    font-size: 1rem;
    color: #6a7682;
    line-height: 1.6;
    margin: 0;
}

#content > .md-content > .section_lv2_wrapper:nth-child(12) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(3) p {
    font-size: 14px;
    color: #333;
    line-height: 20px;
    margin: 0;
    font-family: "Droid Sans", sans-serif;
}

#content > .md-content > .section_lv2_wrapper:nth-child(12) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(3) p a{
    background-color:#43464d;
    letter-spacing:2px;
    text-transform:uppercase;
    border:1px solid #28363e;
    padding:12px 25px;
    font-size:12px;
    line-height:20px;
    color:white;
    display: block;
    margin-top:10px;
    width:auto;
    text-align: center;
    text-decoration: none;
}

/* Read More link wrapper (4th child) goes to the absolute bottom */
#content > .md-content > .section_lv2_wrapper:nth-child(10) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(4),
#content > .md-content > .section_lv2_wrapper:nth-child(12) > .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(10) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(4) a,
#content > .md-content > .section_lv2_wrapper:nth-child(12) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(4) a {
    display: inline-block;
    background-color: #8b5cf6; 
    color: #ffffff;
    padding: 0.7rem 1.6rem;
    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(10) > .section_lv3_wrapper:not(:first-of-type) > .p_wrapper:nth-child(4) a:hover,
#content > .md-content > .section_lv2_wrapper:nth-child(12) > .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: 1024px) {
    #content > .md-content > .section_lv2_wrapper:nth-child(12) > .section_lv3_wrapper:nth-of-type(n+3) {
        width: calc(50% - 1.5rem);
        margin-bottom: 3rem;
    }
}
@media (max-width: 768px) {
    #content > .md-content > .section_lv2_wrapper:nth-child(10),
    #content > .md-content > .section_lv2_wrapper:nth-child(12) {
        flex-direction: column;
        padding: 0 5% 4rem 5%;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(10) > .section_lv3_wrapper:nth-of-type(n+3),
    #content > .md-content > .section_lv2_wrapper:nth-child(12) > .section_lv3_wrapper:nth-of-type(n+3) {
        width: 100%;
        margin-bottom: 3rem;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(10) > .h2_wrapper h2,
    #content > .md-content > .section_lv2_wrapper:nth-child(12) > .h2_wrapper h2{
        font-size:2rem;
    }
}



/* ================================================================
   FOUNDER / LAST CONTENT SECTION — STYLE OVERRIDE
   ================================================================ */

/* 1. Target the main section container */
.section_lv2_wrapper:nth-last-of-type(2) {
  margin: 0 calc(-50vw + 50%) !important;
  padding: 100px calc(50vw - 50%) !important;
  background-color: #28363e !important;
  text-align: center !important;
  border: none !important;
  border-radius: 0 !important;
}

/* 2. Style "WHY WE ARE DOING THIS" to match original badge design */
.section_lv2_wrapper:nth-last-of-type(2) > .h2_wrapper h2 {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.05); /* Subtle dark badge */
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6) !important; /* Muted gray-white */
  font-size: 12px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 40px !important;
}

/* 3. Make "Founder's Words" the prominent white heading */
.section_lv2_wrapper:nth-last-of-type(2) .section_lv3_wrapper .h3_wrapper h3 {
  color: white !important;
  font-size: 36px !important;
  font-weight: 800;
  margin-bottom: 30px;
}

/* 4. Fix visibility and size for all paragraphs and blockquotes */
.section_lv2_wrapper:nth-last-of-type(2) .p_wrapper p,
.section_lv2_wrapper:nth-last-of-type(2) .blockquote_wrapper blockquote {
  color: rgba(255, 255, 255, 0.8) !important; /* High contrast visibility */
  font-size: 15px !important; /* Smaller text as requested */
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 20px !important;
}

/* 5. Ensure the inner container is invisible */
.section_lv2_wrapper:nth-last-of-type(2) .card-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  transform: none !important;
}

.section_lv2_wrapper:nth-last-of-type(2) .p_wrapper a {
  background-color: white !important;
  color: #28363e !important;
  border-radius: 50px !important; /* Makes them pill-shaped */
  padding: 12px 30px !important;
  margin: 10px;
}

/* Target the copyright wrapper within the final section */
.section_lv2_wrapper:nth-last-of-type(2) .section_lv3_wrapper.card-wrapper:nth-last-of-type(2) .h3_wrapper h3 {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.4) !important; /* Muted color so it doesn't distract */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 40px;
}

/* Also shrink the RSS/Contact links below it */
.section_lv2_wrapper:nth-last-of-type(2) .section_lv3_wrapper.card-wrapper:nth-last-of-type(2) .p_wrapper p {
  font-size: 11px !important;
}

.section_lv2_wrapper:nth-last-of-type(2) .section_lv3_wrapper .img_wrapper img{
    max-width:300px;
    margin-bottom:20px;
}

@media(max-width:479px){
  .section_lv2_wrapper:nth-last-of-type(2) .section_lv3_wrapper .h3_wrapper h3 {
    font-size: 24px !important;
  }
  .md-content > .h1_wrapper + .p_wrapper p {
    font-size: 16px !important;
  }

  .section_lv2_wrapper:nth-last-of-type(2) .p_wrapper p,
  .section_lv2_wrapper:nth-last-of-type(2) .blockquote_wrapper blockquote {
  font-size: 13px !important;
  padding:0 20px;
  }

  .section_lv2_wrapper:nth-last-of-type(2) .p_wrapper a {
    font-size:13px !important;
    padding: 8px 20px !important;
    margin: 8px;
  }
}


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

/* 1. Main Footer Wrapper: Full width, light gray background, flex column */
#content > .md-content > .section_lv2_wrapper:last-of-type {
    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:last-of-type > .h2_wrapper {
    display: none;
}

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

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

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

/* 4. Logo Styling */
#content > .md-content > .section_lv2_wrapper:last-of-type > .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-of-type > .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-of-type > .list_wrapper ul li {
    padding: 0;
    margin: 0;
}

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

#content > .md-content > .section_lv2_wrapper:last-of-type > .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-of-type > .list_wrapper ul li a:hover {
    color: #2b2e36;
}

/* 6. Copyright Text Styling */
#content > .md-content > .section_lv2_wrapper:last-of-type > .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) {
    /* Remove the multi-column grid on mobile to stop gaps from blowing out the width */
    #content > .md-content {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        overflow-x: hidden;
        padding-bottom: 2rem;
    }

/* 3. Fix Header Cramping so it fits on one line */
    .site-header {
        padding: 0.8rem 15px !important;
        gap: 10px;
    }

    #content > .md-content > .section_lv2_wrapper:last-of-type > .list_wrapper ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    /* 1. Header fixes: Scale down logo and button to prevent crowding */
    .logo-icon img {
        height: 40px !important; /* Scaled down */
    }
    .btn-launch {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.75rem !important;
    }

    /* 2. Hero Image fix: Reset the negative margin causing horizontal overflow */
    #content > .md-content > .img_wrapper:first-child img {
max-width: 100% !important;
        margin-left: 0 !important; /* Overrides the calc(50% - 225px) */
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* 3. Hero Text fix: Scale down the main heading */
    #content > .md-content > .section_lv2_wrapper:nth-child(3) .h2_wrapper h2 {
font-size: 1.8rem !important; /* Reduced from 2.5rem to prevent cutoff */
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    #content > .md-content > .section_lv2_wrapper:nth-child(3) {
padding: 1.5rem 20px 2rem 20px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* 4. Form fix: Stack the email input and CTA button vertically */
    #content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper > .blockquote_wrapper blockquote {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    #content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper > .blockquote_wrapper blockquote::before {
        width: 100%; /* Allows the input box to fill the container instead of fixed 260px */
    }
    
    #content > .md-content > .section_lv2_wrapper:nth-child(3) > .section_lv3_wrapper > .blockquote_wrapper blockquote::after {
        width: 100%;
        text-align: center;
        box-sizing: border-box; /* Ensures padding doesn't break the 100% width */
    }

    #content > .md-content > .section_lv2_wrapper:nth-child(7) > .section_lv3_wrapper > .list_wrapper > ul > li,
    #content > .md-content > .section_lv2_wrapper:nth-child(8) > .section_lv3_wrapper > .list_wrapper > ul > li {
        font-size: 16px;
        line-height: 1.5;
    }
}