/* Global MVP Enhancement Styles */

.cn-form {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    max-width: 700px;
}

.cn-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1e293b;
}

.cn-form h4 {
    font-size: 1.1rem;
    margin: 30px 0 10px;
    color: #334155;
    padding-bottom: 5px;
    border-bottom: 1px solid #e2e8f0;
}

.cn-form input[type="text"],
.cn-form input[type="email"],
.cn-form input[type="url"],
.cn-form input[type="tel"],
.cn-form input[type="number"],
.cn-form select,
.cn-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin-top: 5px;
}

.cn-form textarea {
    min-height: 120px;
}

.cn-form input[type="file"] {
    margin-top: 8px;
}

.cn-btn,
.cn-btn-submit {
    background: #2563eb;
    color: #fff !important;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.cn-btn:hover,
.cn-btn-submit:hover {
    background: #1e40af;
}

.cn-success-message {
    background: #e6ffed;
    padding: 15px;
    border-left: 4px solid #22bb33;
    margin-bottom: 20px;
}

.cn-error-message {
    background: #ffe6e6;
    padding: 15px;
    border-left: 4px solid #cc0000;
    margin-bottom: 20px;
}

/* Admin styling */

.cn-admin-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e5e7eb;
}

.cn-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    color: #fff;
}
.cn-badge.pending { background: #d97706; }
.cn-badge.approved { background: #16a34a; }
.cn-badge.rejected { background: #dc2626; }

.cn-admin-table strong {
    color: #334155;
}

/* Loading state */
.cn-btn-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Custom File Input */
.cn-file-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.cn-file-wrapper input[type="file"] {
    display: none;
}

.cn-file-label {
    background: #2563eb;
    color: #fff;
    padding: 6px 14px;
    border-radius: 5px;
    cursor: pointer;
}

.cn-file-label:hover {
    background: #1e40af;
}

.cn-file-text {
    font-size: 14px;
    color: #475569;
}

/* Admin Table Enhancements */
.wp-list-table .column-status {
    width: 120px;
}

.wp-list-table .column-application_id a {
    font-weight: 500;
}

.wp-list-table .row-actions a {
    font-weight: 600;
}

.wp-list-table .row-actions a:hover {
    opacity: 0.7;
}

/* Dashboard layout */
.cn-dashboard {
    max-width: 1000px;
}

.cn-dashboard-header {
    margin-bottom: 20px;
}

.cn-dashboard-header h2 {
    margin: 0 0 5px;
    font-size: 1.6rem;
    color: #1e293b;
}

.cn-dashboard-header p {
    margin: 0;
    color: #64748b;
}

.cn-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

@media (min-width: 900px) {
    .cn-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cn-dashboard-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 18px 18px 14px;
}

.cn-dashboard-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #334155;
}

.cn-kv {
    margin-top: 5px;
}

.cn-kv-row {
    display: flex;
    margin-bottom: 6px;
    gap: 10px;
}

.cn-kv-label {
    width: 140px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

.cn-kv-value {
    flex: 1;
    font-size: 0.95rem;
    color: #0f172a;
}

.cn-doc-list {
    margin: 0;
    padding-left: 18px;
}

.cn-doc-list li {
    margin-bottom: 4px;
}

.cn-doc-list a {
    color: #2563eb;
    text-decoration: none;
}

.cn-doc-list a:hover {
    text-decoration: underline;
}

.cn-match-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cn-match-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    background: #f9fafb;
}

.cn-match-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cn-match-name {
    font-weight: 600;
    color: #0f172a;
}

.cn-match-sector {
    font-size: 0.85rem;
    color: #64748b;
}

/* Position account menu inside Astra header */
.cn-account-menu {
    margin-left: auto;         /* Push to right side */
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Make it inline so it sits beside the Astra menu */
.ast-primary-header-bar .cn-account-menu {
    flex-direction: row;
    padding: 0 !important;
}


.cn-account-link {
    text-decoration: none;
}

.cn-has-dropdown {
    position: relative;
}

.cn-account-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

.cn-account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 0.5rem 0;
    display: none;
    z-index: 999;
}

.cn-has-dropdown:hover .cn-account-dropdown {
    display: block;
}

.cn-account-dropdown a {
    display: block;
    padding: 0.3rem 0.8rem;
    text-decoration: none;
}

/* ============================
   Landing / Marketing Layout
   ============================ */

/* Overall wrapper */
.cn-landing {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
}

/* Shared container */
.cn-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cn-text-center {
    text-align: center;
}

/* Buttons */
.cn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease,
        box-shadow 150ms ease, transform 120ms ease;
}

.cn-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.cn-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.cn-btn-outline {
    background: #ffffff;
    color: #1e293b !important;
    border-color: #cbd5f5;
}

.cn-btn-outline:hover {
    background: #eff6ff;
}

/* Hero section */
.cn-hero {
    padding: 4rem 0 3rem;
    background: radial-gradient(circle at top left, #e0f2fe 0, transparent 50%),
                radial-gradient(circle at top right, #e0f2fe 0, transparent 50%),
                linear-gradient(to bottom, #ffffff, #eef2ff);
    border-bottom: 1px solid #e5e7eb;
}

.cn-hero-title {
    font-size: clamp(2.1rem, 3vw + 1rem, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.cn-hero-subtitle {
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 1.8rem;
    color: #475569;
}

.cn-hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.4rem;
    flex-wrap: wrap;
}

/* Hero cards grid (3 columns) */
.cn-hero-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cn-hero-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.cn-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 1.2rem 1.3rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    text-align: left;
}

.cn-card-title {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.cn-card-text {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
}

/* Sections */
.cn-section {
    padding: 3.5rem 0;
}

.cn-section-light {
    background: #f9fafb;
}

.cn-section-muted {
    background: #f3f4ff;
}

.cn-section-title {
    font-size: 1.7rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #0f172a;
}

/* Two-column layout */
.cn-two-column {
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    .cn-two-column {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }
}

.cn-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #111827;
}

.cn-body-text {
    font-size: 0.98rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

/* Bullet list */
.cn-list {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0.5rem 0 0;
}

.cn-list li {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    color: #4b5563;
}

/* Pill cards (For investors / investees blocks) */
.cn-pill-card,
.cn-pill-card-alt {
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    margin-bottom: 0.6rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.cn-pill-card h4,
.cn-pill-card-alt h4 {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
    font-weight: 600;
    color: #111827;
}

.cn-pill-card p,
.cn-pill-card-alt p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

/* Slight variation for the investee side */
.cn-pill-card-alt {
    background: #eef2ff;
    border-color: #c7d2fe;
}

/* Section CTA */
.cn-section-cta {
    margin-top: 2rem;
}

/* Steps / How It Works */
.cn-steps-grid {
    display: grid;
    gap: 1.4rem;
}

@media (min-width: 860px) {
    .cn-steps-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.cn-step {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 1.1rem 1rem;
    text-align: left;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.cn-step-number {
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    background: #2563eb;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.cn-step h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.cn-step p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

/* Footer */
.cn-footer {
    padding: 2.5rem 0 2rem;
    background: #020617;
    color: #e5e7eb;
    margin-top: 0;
}

.cn-footer-brand {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.cn-footer-text {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #9ca3af;
}

.cn-footer-meta {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Make sure sections breathe on mobile */
.cn-section,
.cn-hero {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Slightly widen dashboard on large screens (optional, still constrained) */
@media (min-width: 1200px) {
    .cn-dashboard {
        max-width: 1100px;
    }
}

/* ============================================
   Home page: hide theme header & footer chrome
   so the CN landing layout is the "app shell"
   ============================================ */

body.home .wp-site-blocks > header,
body.home .wp-site-blocks > footer {
    display: none;
}

/* Home page: hide default page title and extra top spacing */
body.home .wp-block-post-title,
body.home h1.wp-block-post-title,
body.home .entry-title {
    display: none;
}

body.home main.wp-block-group {
    margin-top: 0;
    padding-top: 0;
}

/* App-style top bar for landing */

.cn-topbar {
    background: #020617;   /* very dark navy */
    color: #e5e7eb;
    border-bottom: 1px solid #1f2937;
}

.cn-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.cn-logo {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Make account menu sit nicely in the top bar */
.cn-topbar-account .cn-account-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Slightly reduce hero top padding now that we have a top bar */
.cn-hero {
    padding-top: 2.5rem;
}

/* Home: allow full-width content instead of narrow theme column */
body.home .wp-site-blocks {
    max-width: 100% !important;
}

/* Remove default horizontal padding on the main wrapper so our own
   .cn-container controls width/padding */
body.home .wp-site-blocks > main {
    padding-left: 0;
    padding-right: 0;
}

/* Home: force the actual post content to be full width */
body.home .wp-block-post-content,
body.home .entry-content {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Just in case the theme wraps the content in extra groups, unlock them too */
body.home .wp-site-blocks > * {
    max-width: 100% !important;
}

/* =========================================
   Header account menu alignment + styling
   ========================================= */

/* Make the account menu stretch across the page and align content to the right */
.cn-account-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;          /* match your content width */
    margin: 0 auto;
    padding: 0.6rem 1.5rem 0.8rem;
    font-size: 0.95rem;
}

/* Login link */
.cn-account-link {
    text-decoration: none;
    font-weight: 500;
    color: #0f172a;
}

.cn-account-link:hover {
    color: #2563eb;
}

/* Dropdown wrapper */
.cn-has-dropdown {
    position: relative;
}

/* Register / Hi, Name button */
.cn-account-toggle {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.2;
    color: #0f172a;
}

.cn-account-toggle:hover {
    border-color: #2563eb;
    color: #2563eb;
}

/* Dropdown menu */
.cn-account-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    min-width: 160px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0;
    display: none;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    z-index: 999;
}

/* Show dropdown on hover */
.cn-has-dropdown:hover .cn-account-dropdown {
    display: block;
}

/* Dropdown links */
.cn-account-dropdown a {
    display: block;
    padding: 0.4rem 0.9rem;
    text-decoration: none;
    font-size: 0.9rem;
    color: #0f172a;
}

.cn-account-dropdown a:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

/* Account menu inside Astra header */
.cn-account-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1.5rem; /* space after "Home" */
    font-size: 0.95rem;
}

/* Login link */
.cn-account-link {
    text-decoration: none;
    font-weight: 500;
    color: #0f172a;
}

.cn-account-link:hover {
    color: #2563eb;
}

/* Dropdown wrapper */
.cn-has-dropdown {
    position: relative;
}

/* Register / Hi, Name button */
.cn-account-toggle {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.2;
    color: #0f172a;
}

.cn-account-toggle:hover {
    border-color: #2563eb;
    color: #2563eb;
}

/* Dropdown menu */
.cn-account-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    min-width: 160px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0;
    display: none;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    z-index: 999;
}

/* Show dropdown on hover */
.cn-has-dropdown:hover .cn-account-dropdown {
    display: block;
}

/* Dropdown links */
.cn-account-dropdown a {
    display: block;
    padding: 0.4rem 0.9rem;
    text-decoration: none;
    font-size: 0.9rem;
    color: #0f172a;
}

.cn-account-dropdown a:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

/* =========================================
   verge204seven Landing Layout
   ========================================= */

/* Wrapper – keep typography inherited from Astra */
.cn-landing {
    font-family: inherit;
}

/* Shared container aligned with Astra content width */
.cn-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Center helper */
.cn-text-center {
    text-align: center;
}

/* ------------------------------
   Hero section
   ------------------------------ */

.cn-hero {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.cn-hero-title {
    font-size: clamp(2.2rem, 3vw + 1rem, 3.1rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 48rem;
    margin: 0 auto 1rem;
    color: #0f172a;
}

.cn-hero-subtitle {
    max-width: 40rem;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4b5563;
}

/* Hero buttons */
.cn-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

/* Base button */
.cn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
        box-shadow 0.15s ease, transform 0.08s ease;
    white-space: nowrap;
}

.cn-btn-primary {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

.cn-btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 14px 40px rgba(30, 64, 175, 0.28);
}

.cn-btn-outline {
    background: #ffffff;
    border-color: #d1d5db;
    color: #111827;
}

.cn-btn-outline:hover {
    border-color: #1d4ed8;
    color: #1d4ed8;
}

/* Hero feature cards */
.cn-hero-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.cn-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 1.25rem 1.5rem;
    text-align: left;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.05);
}

.cn-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #111827;
}

.cn-card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
}

/* ------------------------------
   Sections (Investors / Companies / How it works)
   ------------------------------ */

.cn-section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.cn-section-light {
    background: #f9fafb;
}

.cn-section-dark {
    background: #020617;
    color: #e5e7eb;
}

.cn-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

/* Two-column layout */
.cn-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.cn-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Bullet list */
.cn-list {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.96rem;
    line-height: 1.7;
    color: #4b5563;
}

.cn-section-dark .cn-list {
    color: #cbd5f5;
}

/* Pill cards */
.cn-pill-card {
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    background: #eff6ff;
    margin-bottom: 0.75rem;
}

.cn-pill-card-alt {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.cn-pill-card h4 {
    margin: 0 0 0.3rem;
    font-size: 0.98rem;
    font-weight: 600;
}

.cn-pill-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.cn-section-dark .cn-pill-card-alt p {
    color: #e5e7eb;
}

/* Section CTA */
.cn-section-cta {
    margin-top: 2.5rem;
}

/* ------------------------------
   How It Works - Steps grid
   ------------------------------ */

.cn-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.cn-step-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 1.2rem 1.25rem 1.4rem;
    text-align: left;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.cn-step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d4ed8;
    background: #e0ecff;
    margin-bottom: 0.6rem;
}

.cn-step-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.cn-step-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4b5563;
}

/* ------------------------------
   Footer
   ------------------------------ */

.cn-footer {
    background: #020617;
    color: #9ca3af;
    padding: 2rem 0 2.5rem;
    text-align: center;
}

.cn-footer-text {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
}

.cn-footer-meta {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}

/* =========================================
   RESPONSIVE BEHAVIOUR
   ========================================= */

@media (max-width: 1024px) {
    .cn-hero {
        padding-top: 2.75rem;
    }

    .cn-hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cn-two-column {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
        gap: 2rem;
    }

    .cn-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .cn-hero {
        padding-top: 2.25rem;
        padding-bottom: 2.75rem;
    }

    .cn-hero-title {
        font-size: clamp(1.9rem, 6vw, 2.2rem);
    }

    .cn-hero-subtitle {
        font-size: 0.98rem;
        margin-bottom: 1.8rem;
    }

    .cn-hero-grid {
        grid-template-columns: 1fr;
    }

    .cn-section {
        padding: 2.5rem 0 2.8rem;
    }

    .cn-two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cn-steps-grid {
        grid-template-columns: 1fr;
    }

    .cn-section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .cn-hero-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .cn-container {
        padding: 0 1.1rem;
    }

    .cn-hero-title {
        font-size: 1.8rem;
    }

    .cn-hero-subtitle {
        font-size: 0.95rem;
    }

    .cn-card {
        padding: 1rem 1.1rem;
    }

    .cn-step-card {
        padding: 1rem 1.1rem;
    }
}


/* =========================================================
   FULL-WIDTH (EDGE-TO-EDGE) LANDING PAGE SECTIONS
   ========================================================= */

/* Hero, sections, footer break out of Astra container */
.cn-landing section,
.cn-landing .cn-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);   /* true full-width */
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
}

/* Keep inner content centered within full-width sections */
.cn-fullwidth-inner,
.cn-container {
    max-width: 1250px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Force proper white text in dark (black) sections */
.cn-section-dark {
    background-color: #020617;
    color: #f8fafc !important;
}

.cn-section-dark h2,
.cn-section-dark h3,
.cn-section-dark h4,
.cn-section-dark p,
.cn-section-dark li {
    color: #f8fafc !important;
}

/* ==============================
   FAQ ACCORDION
   ============================== */

.cn-faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.cn-faq {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.cn-section-dark .cn-faq {
    border-color: rgba(255, 255, 255, 0.15);
}

.cn-faq-question {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    padding-right: 1rem;
    position: relative;
    color: inherit;
}

.cn-faq-question::after {
    content: "＋";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2rem;
}

.cn-faq-toggle {
    display: none;
}

.cn-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
}

.cn-section-dark .cn-faq-answer {
    color: #d1d5db;
}

.cn-faq-toggle:checked + .cn-faq-question::after {
    content: "−";
}

.cn-faq-toggle:checked + .cn-faq-question + .cn-faq-answer {
    max-height: 500px; /* enough for long answers */
    margin-top: 0.5rem;
}

/* ============================================================
   UNIVERSAL FULL-WIDTH FOR ALL CN MARKETING PAGES
   ============================================================ */

/* Any section inside these wrappers becomes FULL-WIDTH */
.cn-landing section,
.cn-about-page section,
.cn-investors-page section,
.cn-companies-page section,
.cn-how-page section,
.cn-faq-page section,
.cn-whatwedo-page section,
.cn-terms-page section,
.cn-contact-page section,
.cn-footer {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Keep inner container aligned & centered */
.cn-container {
    max-width: 1250px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Ensure Astra's .ast-container doesn't constrain content inside CN pages */
.cn-landing .ast-container,
.cn-about-page .ast-container,
.cn-investors-page .ast-container,
.cn-companies-page .ast-container,
.cn-how-page .ast-container,
.cn-faq-page .ast-container,
.cn-whatwedo-page .ast-container,
.cn-terms-page .ast-container,
.cn-contact-page .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* ===============================================
   CONTACT PAGE FIXES
   =============================================== */

/* Ensure 2-column layout spacing is correct */
.cn-contact-page .cn-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

/* On mobile, stack the columns */
@media (max-width: 768px) {
    .cn-contact-page .cn-two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Make form fields full-width and clean */
.cn-contact-page .cn-form-field {
    width: 100%;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    background: #fff;
    margin-bottom: 1rem;
    font-size: 1rem;
    box-sizing: border-box;
}

.cn-contact-page .cn-form-field:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
    outline: none;
}

/* Fix message spacing */
.cn-contact-page .cn-message-box {
    margin-bottom: 1.5rem;
    border-radius: 6px;
    padding: 1rem;
    font-size: 0.95rem;
}

/* Success */
.cn-contact-page .cn-success {
    background: #d1fae5;
    color: #065f46;
}

/* Error */
.cn-contact-page .cn-error {
    background: #fee2e2;
    color: #991b1b;
}

/* === verge204seven – Global App Layout === */

.cn-app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

/* Top-level dashboard layout */
.cn-dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
}

/* Main content */
.cn-main {
    min-width: 0; /* prevent overflow in grid */
}

/* Responsive: stack sidebar on small screens */
@media (max-width: 768px) {
    .cn-dashboard-layout {
        grid-template-columns: 1fr;
    }
}

/* === Sidebar === */

.cn-sidebar {
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    padding: 20px 18px;
    align-self: flex-start;
}

.cn-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
}

.cn-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cn-sidebar-menu li {
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 14px;
    cursor: default;
    color: #444;
}

.cn-sidebar-menu li.active {
    background: #f1f5ff;
    color: #1a4fd8;
    font-weight: 500;
}

.cn-sidebar-menu li.cn-sidebar-muted {
    color: #999;
    font-style: italic;
}

/* === Page Header === */

.cn-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.cn-page-title {
    font-size: 24px;
    margin: 0 0 4px;
}

.cn-page-subtitle {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* === Cards === */

.cn-card {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 20px;
}

.cn-card-header {
    margin-bottom: 12px;
}

.cn-card-header h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
}

.cn-card-subtitle {
    margin: 0;
    font-size: 13px;
    color: #777;
}

.cn-card-body {
    font-size: 14px;
}

/* Rows inside cards – responsive grid of fields */
.cn-card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 24px;
    margin-bottom: 10px;
}

/* Thesis block */
.cn-card-thesis h4 {
    margin: 10px 0 6px;
    font-size: 15px;
}

.cn-card-thesis p {
    margin: 0;
}

/* Placeholder card */
.cn-card-placeholder .cn-text-muted {
    font-style: italic;
}

/* === Matched Opportunities Grid === */

.cn-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.cn-card-opportunity {
    padding: 18px 18px 16px;
}

.cn-opportunity-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
}

.cn-opportunity-meta {
    margin: 0 0 8px;
    font-size: 13px;
    color: #777;
}

.cn-opportunity-meta span + span::before {
    content: " ";
}

.cn-opportunity-description {
    margin: 8px 0 10px;
    font-size: 13px;
    color: #444;
}

.cn-opportunity-footer {
    margin-top: 8px;
}

/* === Notices === */

.cn-notice {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}

.cn-notice-success {
    background: #e6f9ec;
    border: 1px solid #a8e2ba;
    color: #196b33;
}

.cn-notice-error {
    background: #ffeaea;
    border: 1px solid #f1b2b2;
    color: #a31919;
}

/* === Buttons === */

.cn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
}

.cn-btn-primary {
    background: #2143e5;
    color: #ffffff;
}

.cn-btn-primary:hover,
.cn-btn-primary:focus {
    background: #1a36b5;
}

/* Form wrapper */
.cn-express-interest-form {
    margin: 0;
}

/* === Badges === */

.cn-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

/* status: interested / connected / deal_in_progress / closed */

.cn-badge-status-interested {
    background: #e6f2ff;
    color: #174a9b;
}

.cn-badge-status-connected {
    background: #e7f9f0;
    color: #137047;
}

.cn-badge-status-deal_in_progress {
    background: #fff7e3;
    color: #8a6400;
}

.cn-badge-status-closed {
    background: #f0f0f0;
    color: #555;
}

/* === Text helpers === */

.cn-text-muted {
    color: #888;
    font-size: 13px;
}

.cn-sidebar-menu a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.cn-sidebar-menu li:hover {
    background: #f7f7f7;
}

.cn-link {
    text-decoration: none;
    font-size: 13px;
}

.cn-link-secondary {
    margin-right: 10px;
    color: #2143e5;
}

.cn-link-secondary:hover {
    text-decoration: underline;
}
