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

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

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

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ── Site Header ─────────────────────────────────────── */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 50px;
    background: #ffffff; /* 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: 600;
    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;
}

@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;
    }
}

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

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



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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .site-nav {
        gap: 0.5rem;
    }

    .nav-links {
        gap: 0.35rem;
    }

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

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

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

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

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

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

}

/* ================================================================
   Theme Switcher Dropdown
   ================================================================ */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.theme-label {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.7;
  white-space: nowrap;
}

.theme-dropdown {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(128, 128, 128, 0.12);
  color: inherit;
  border: 1px solid rgba(128, 128, 128, 0.25);
  border-radius: 8px;
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='gray' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
}

.theme-dropdown:hover {
  border-color: rgba(128, 128, 128, 0.45);
}

.theme-dropdown:focus {
  outline: none;
  border-color: #e05a2b;
  box-shadow: 0 0 0 3px rgba(224, 90, 43, 0.15);
}

.theme-dropdown option {
  background: #fff;
  color: #1a1a1a;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .theme-label {
    display: none;
  }
  .theme-dropdown {
    font-size: 0.8rem;
    padding: 0.35rem 1.8rem 0.35rem 0.6rem;
  }
}

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

/* 1. Break the centered layout and align the container with the logo's 50px padding */
.md-content {
    margin: 0 auto;
    padding: 0 50px;
    max-width:1600px;
}

/* 2. Enlarge the hero title so it wraps across 3 lines like the RHS photo */
.md-content .h1_wrapper h1 {
    text-align: left;
    font-size: 3rem; 
    line-height: 1.2;
    max-width:760px;
}

/* 3. Ensure the hero description text is strictly left-aligned */
.md-content .h1_wrapper + .p_wrapper p {
    text-align: left;
    max-width:760px;
    color:#475467;
    font-size:1.25rem;
    line-height:1.5;
}

/* 4. Force the hero image to stretch full width, removing curves and shadows */
.md-content .h1_wrapper + .p_wrapper + .img_wrapper img {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    display: block;
}




/* ── Responsive Refinements ──────────────────────────────────────── */
@media (max-width: 1024px) {
     .md-content .h1_wrapper h1 {
        font-size: 2.5rem; 
        margin-top:50px;
    }

    .md-content .h1_wrapper + .p_wrapper p {
        font-size:1.1rem;
    }
}

@media (max-width: 768px) {
    .md-content {
        padding: 0 30px;
    }
    .md-content .h1_wrapper h1 {
        font-size: 2rem; 
        line-height: 1.2;
        margin-top:50px;
    }

    .md-content .h1_wrapper + .p_wrapper p {
        font-size:1rem;
        line-height:1.5;
    }
}

/* ==========================================================================
   Breadscrumb Navigation Link (All AI Experiments)
========================================================================== */
.md-content > .p_wrapper:first-child a {
    color: #8b5cf6; /* Purple color to match LHS */
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem; /* Spacing between arrow and text */
    text-decoration: none;
    border-bottom: none; /* Remove default link hover border */
}

/* Add the left arrow icon before the text */
.md-content > .p_wrapper:first-child a::before {
    content: "←";
    font-size: 1.15em;
    line-height: 1;
}

/* Optional hover effect */
.md-content > .p_wrapper:first-child a:hover {
    border-bottom-color: transparent;
    opacity: 0.8;
}

/* 4. Update the hero image to act as a cropped banner */
.md-content .h1_wrapper + .p_wrapper + .img_wrapper img {
    width: 100%;
    height: 600px; /* Constrains the vertical height */
    object-fit: cover; /* Crops the image proportionally to fill the box */
    object-position: center; /* Ensures the most important part stays visible */
    border-radius: 0;
    box-shadow: none;
    display: block;
}

/* Optional: Adjust for smaller screens so it doesn't take up too much vertical space */
@media (max-width: 768px) {
    .md-content .h1_wrapper + .p_wrapper + .img_wrapper img {
        height: 250px;
    }
}

/* ==========================================================================
   1. Meta Details Row (Author, Date, Social Links)
   ========================================================================== */

/* Hide the horizontal dividers in the meta section */
.md-content .hr_wrapper:nth-child(7),
.md-content .hr_wrapper:nth-child(9) {
    display: none ;
}

/* Ensure the hero image has breathing room */
.md-content .img_wrapper:nth-child(4) {
    margin-bottom: 2.5rem;
}

/* Position Author and Date side-by-side */
.md-content .img_wrapper:nth-child(4) + .p_wrapper {
    display: inline-block;
    margin-right: 4rem;
    vertical-align: top;
    margin-bottom:4rem;
}
.md-content .img_wrapper:nth-child(4) + .p_wrapper + .p_wrapper {
    display: inline-block;
    vertical-align: top;
    margin-bottom:4rem;
}

/* Style the Author and Date text to match the purple label look */
.md-content > .img_wrapper:nth-child(4) + .p_wrapper p,
.md-content > .img_wrapper:nth-child(4)  + .p_wrapper  + .p_wrapper p {
    display: flex;
    flex-direction: column;
    color: #8b5cf6; 
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}
.md-content > .img_wrapper:nth-child(4) + .p_wrapper p strong,
.md-content > .img_wrapper:nth-child(4)  + .p_wrapper  + .p_wrapper p strong {
    color: #374151;
    font-size: 1.05rem;
    margin-top: 0.25rem;
}

/* Position the Social Share Links to the right */
.md-content .p_wrapper:nth-child(8) {
    float: right;
    margin-top: 0.25rem;
}
.md-content .p_wrapper:nth-child(8) p {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Convert social text links into icon buttons */
.md-content .p_wrapper:nth-child(8) p > a {
    display: inline-block;
    width: 38px;
    height: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: transparent; /* Hides the original text */
    font-size: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px;
    transition: background-color 0.2s;
}
.md-content .p_wrapper:nth-child(8) p a:hover {
    background-color: #f3f4f6;
}

/* Inject the "Copy link" button before the icons 
.md-content .img_wrapper:first-of-type ~ .p_wrapper:nth-of-type(4) p::before {
    content: "Copy link";
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 12px 0 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
    background-position: 12px center;
    background-repeat: no-repeat;
    background-size: 15px;
    cursor: pointer;
    margin-right: 4px;
}*/

/* Add SVG Icons to the social buttons */
.md-content .p_wrapper:nth-child(8) p a[href*="twitter"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z'/%3E%3C/svg%3E");
}
.md-content .p_wrapper:nth-child(8) p a[href*="facebook"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M9 8h-3v4h3v12h5v-12h3.642l.358-4h-4v-1.667c0-.955.192-1.333 1.115-1.333h2.885v-5h-3.808c-3.596 0-5.192 1.583-5.192 4.615v3.385z'/%3E%3C/svg%3E");
}
.md-content .p_wrapper:nth-child(8) p a[href*="linkedin"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M4.98 3.5c0 1.381-1.11 2.5-2.48 2.5s-2.48-1.119-2.48-2.5c0-1.38 1.11-2.5 2.48-2.5s2.48 1.12 2.48 2.5zm.02 4.5h-5v16h5v-16zm7.982 0h-4.968v16h4.969v-8.399c0-4.67 6.029-5.052 6.029 0v8.399h4.988v-10.131c0-7.88-8.922-7.593-11.018-3.714v-2.155z'/%3E%3C/svg%3E");
}

/* ==========================================================================
   2. Main Article Layout & Styling
   ========================================================================== */

/* Base relative positioning to act as anchor for absolute sidebar */
#content > .md-content {
    position: relative;
}

/* Remove card styling from the main text sections */
.md-content .section_lv2_wrapper.card-wrapper {
    background: transparent ;
    border: none ;
    box-shadow: none ;
    padding: 0 ;
    margin: 2rem 0 ;
}

/* Remove the orange underline from H2 elements and darken text */
.md-content .h2_wrapper h2 {
    border-bottom: none ;
    color: #4b5563 ;
    font-size: 1.6rem ;
}

/* Restrict width of paragraphs and sections to create a left column */
.md-content > .p_wrapper:nth-of-type(n+6),
.md-content > .section_lv2_wrapper {
    max-width: 65%;
    font-size: 0.95rem;
}
.md-content > .p_wrapper:nth-child(10), 
.md-content > .section_lv2_wrapper:nth-child(10){
    anchor-name: --my-anchor;
}

/* ── Responsive Refinements ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .md-content > .p_wrapper:nth-of-type(n+6),
    .md-content > .section_lv2_wrapper {
        max-width: 100% !important;
    }  
}

@media (max-width: 768px) {

}

/* ==========================================================================
   3. Right Sidebar (Weekly Newsletter)
   ========================================================================== */

/* Extract the newsletter from document flow and position it on the right */
.md-content .section_lv2_wrapper:nth-last-child(3) .section_lv3_wrapper:last-child {
    position: absolute;
    top: calc(anchor(--my-anchor top) - 30px); /* Aligns roughly with the first paragraph block */
    right: 50px;
    width: 32%;
    max-width: 360px;
    background: #faf8fd; /* Very light purple/grey */
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

/* Add the purple plane icon circle */
.md-content .section_lv2_wrapper:nth-last-child(3) .section_lv3_wrapper:last-child .h3_wrapper::before {
    content: "";
    display: block;
    width: 44px;
    height: 44px;
    background-color: #f3ebff;
    border-radius: 50%;
    margin-bottom: 1.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='22' y1='2' x2='11' y2='13'/%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px;
}

.md-content .section_lv2_wrapper:nth-last-child(3) .section_lv3_wrapper:last-child  h3 {
    font-size: 1.4rem;
    color: #111827;
}

.md-content .section_lv2_wrapper:nth-last-child(3) .section_lv3_wrapper:last-child  p {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Reorder inner items so the mockup inputs sit correctly */
.md-content .section_lv2_wrapper:nth-last-child(3) .section_lv3_wrapper:last-child  .h3_wrapper { order: 1; }
.md-content .section_lv2_wrapper:nth-last-child(3) .section_lv3_wrapper:last-child  .p_wrapper:nth-of-type(1) { order: 2; margin-bottom: 1.5rem; }
.md-content .section_lv2_wrapper:nth-last-child(3) .section_lv3_wrapper:last-child  .p_wrapper:nth-of-type(3) { order: 3; margin: 0; position: relative;}
.md-content .section_lv2_wrapper:nth-last-child(3) .section_lv3_wrapper:last-child  .p_wrapper:nth-of-type(2) { order: 4; font-size: 0.8rem; margin-top: 1rem; color: #6b7280; }
.md-content .section_lv2_wrapper:nth-last-child(3) .section_lv3_wrapper:last-child  .hr_wrapper { display: none; }

.md-content .section_lv2_wrapper:nth-last-child(3) .section_lv3_wrapper:last-child  .p_wrapper:nth-of-type(2) a {
    color: #4b5563;
    text-decoration: underline;
}

/* Create the visual fake input and purple submit button using pseudo-elements on the empty placeholder P wrapper */
.md-content .section_lv2_wrapper:nth-last-child(3) .section_lv3_wrapper:last-child  .p_wrapper:nth-of-type(3)::before {
    content: "Enter your email";
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 0.9rem;
    box-sizing: border-box;
    margin-bottom: 0.75rem;
}

.md-content .section_lv2_wrapper:nth-last-child(3) .section_lv3_wrapper:last-child  .p_wrapper:nth-of-type(3)::after {
    content: "Subscribe";
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: #8b5cf6;
    color: #fff;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
    cursor: pointer;
}

.md-content .section_lv2_wrapper:nth-child(16){
    margin-top:100px;
}


/* ── Responsive Refinements ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .md-content .section_lv2_wrapper:nth-last-child(3) .section_lv3_wrapper:last-child {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 768px) {

}

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

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

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

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

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

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

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

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

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

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

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


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

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

/* 7. Mobile Responsiveness */

@media (max-width: 768px) {
    /* 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;
    }

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




    #content > .md-content > .h1_wrapper h1{
        font-size:1.5rem;
        max-width:100%;
        line-height:1.2;
    }

    .md-content .img_wrapper:nth-child(4) + .p_wrapper{
        margin-bottom:20px;
    }

    .p_wrapper p, .list_wrapper li{
        font-size: 0.95rem;
        line-height:1.6;
    }

}