/* BRAND COLORS */
:root {
    --navy: #0A2A5C;
    --gold: #D4A437;
    --cream: #F7F2E9;
    --white: #FFFFFF;
    --lightgrey: #b9b7b7f1;
    --shadow: rgba(0, 0, 0, 0.10);
    --text-dark: #0A0A0A;
    --text-light: #555;
}

/* GLOBAL */
body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text-dark);
}

/* HEADER */
.header {
    background: var(--navy);
    padding: 16px 24px;
    display: flex;
    justify-content: center;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 44px;
}

.logo-text {
    font-size: 28px;
    color: var(--white);
    font-weight: 600;
}

/* TAGLINE */
.tagline {
    text-align: center;
    margin-top: 30px;
}

.tagline h2 {
    font-size: 24px;
    margin-bottom: 4px;
    color: var(--navy);
}

.tagline p {
    color: #333;
    margin-top: 0;
    font-size: 14px;
}

.section-title {
    text-align: center;
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--navy);
}

/* STAT CARDS */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--white);
    border-radius: 10px;
    width: 200px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 4px 10px var(--shadow);
}

.stat-number {
    font-size: 26px;
    font-weight: 600;
    color: var(--navy);
}

.stat-desc {
    margin-top: 4px;
    font-size: 14px;
    color: var(--text-light);
}

/* MODULE GRID */

.module-top {
    display: flex;
    flex-direction: column;
    align-items: center;    /* centers icon + title + text horizontally */
    flex-grow: 1;           /* pushes Launch button down */
    justify-content: flex-start;
}


.module-container {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 12px 20px;
    flex-wrap: wrap;
}
.module-subtext {
    text-align: center;
    margin-top: -10px;
    margin-bottom: 20px;
    color: #444;
    font-size: 14px;
}

.module-card {
    background: var(--white);
    width: 300px;
    padding: 26px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow);

    /* NEW: Make all cards equal height and align buttons */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 275px; /* adjust if needed */
}

.module-logo {
    width: 85px;
    margin-bottom: 10px;
}

.module-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--navy);
}

.module-card p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* LAUNCH BUTTON */
.launch-btn {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 15px;
}

.launch-btn:hover {
    background: var(--gold);
    color: var(--navy);
}

/* FOOTER */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    color: #333;
    font-size: 13px;
}

.footer-links {
    display: block;
    margin-top: 4px;
    color: var(--text-light);
}

/* ===== TRADE360 DASHBOARD STYLES ===== */

.header-dashboard {
    justify-content: space-between;
    padding-inline: 32px;
}

.header-module {
    color: var(--white);
    font-size: 16px;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Wrapper */
.dash-wrapper {
    max-width: 1400px;
    margin: 24px auto 40px;
    padding: 0 16px;
}

/* ===== TRADE360 FILTER BAR ===== */
.dash-filterbar{
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  padding: 14px 16px 12px;
  margin-bottom: 18px;
}

.dash-filterbar-title{
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.dash-filterbar-row{
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.filter-field label{
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.filter-field select{
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid #D6D6D6;
  font-size: 13px;
  background: var(--white);
  color: var(--text-dark);
}

.filter-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: end;
}

.filter-btn{
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.filter-btn:hover{
  background: var(--gold);
  color: var(--navy);
}

.filter-btn.secondary{
  background: #E7ECF3;
  color: var(--navy);
}

.filter-btn.secondary:hover{
  background: var(--gold);
  color: var(--navy);
}

.dash-filterbar-hint{
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-light);
}

@media (max-width: 1024px){
  .dash-filterbar-row{
    grid-template-columns: 1fr 1fr;
  }
  .filter-actions{
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* Top summary row */
.dash-top-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.dash-top-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow);
    padding: 14px 18px;
}

.dash-metric-main {
    font-size: 24px;
    font-weight: 600;
    color: var(--navy);
}

.dash-metric-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 2px;
}

/* Investment objectives bar */
.dash-bar-stack {
    display: flex;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
    margin-bottom: 6px;
}

.bar-seg {
    height: 100%;
}

.bar-seg.low { width: 25%; background: var(--navy); }
.bar-seg.medlow { width: 25%; background: #D8B558; }
.bar-seg.med { width: 25%; background: #E4C978; }
.bar-seg.high { width: 25%; background: #F0DFA3; }

.dash-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-light);
}

/* Suitability bar */
.dash-bar-suitable {
    height: 12px;
    border-radius: 999px;
    background: #E0E4EA;
    overflow: hidden;
    margin-top: 8px;
    margin-bottom: 6px;
}

.suitable-fill {
    height: 100%;
    width: 70%; /* proportion suitable */
    background: var(--navy);
}

/* Main 3-panel grid */
.dash-main-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 22px;
}

.dash-panel {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    padding: 18px 20px 22px;
    font-size: 14px;
}

.dash-panel-title {
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
    margin-top: 0;
    margin-bottom: 4px;
}

.dash-panel-sub {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* Simple bar chart */
.dash-chart {
    margin-bottom: 14px;
}

.dash-chart-row {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    align-items: center;
    margin-bottom: 4px;
}

.dash-chart-label {
    font-size: 12px;
}

.dash-chart-bar {
    background: #E7ECF3;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
}

.dash-chart-fill {
    height: 100%;
    background: var(--navy);
}

.dash-chart-value {
    font-size: 12px;
    text-align: right;
}

/* Table */
.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 10px;
}

.dash-table td {
    padding: 3px 0;
}

.dash-table td:last-child {
    text-align: right;
}

.dash-top5-title {
    margin-top: 6px;
    margin-bottom: 4px;
    font-weight: 500;
}

/* Compose Email button */
.compose-btn {
    margin-top: 18px;
    width: 100%;
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 10px 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s ease;
}

.compose-btn:hover {
    background: var(--gold);
    color: var(--navy);
}

/* Responsive tweaks */
@media (max-width: 1024px) {
    .dash-top-row {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
    .dash-main-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== NAV HEADER FOR HOMEPAGE & SIGNIN ===== */

.nav-header {
    background: var(--navy);
    color: var(--white);
    padding: 14px 32px;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* left logo, centered links, right button */
    align-items: center;
}

.nav-logo { justify-self: start; }
.nav-links { justify-self: center; }
.nav-signin { justify-self: end; }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 18px;
    font-size: 14px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    text-decoration: underline;
}

.nav-signin {
    background: var(--gold);
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    cursor: pointer;
    color: var(--navy);
    font-weight: 600;
    font-size: 14px;
}

/* ===== HOMEPAGE HERO ===== */

.home-hero {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 80px 20px 60px;
}

.home-hero h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 14px;
}

.home-hero p {
    max-width: 600px;
    margin: 0 auto 24px;
    font-size: 16px;
    opacity: 0.9;
}

.hero-cta {
    background: var(--gold);
    border: none;
    color: var(--navy);
    padding: 12px 26px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.hero-cta:hover {
    opacity: 0.9;
}

/* ===== HOMEPAGE SOLUTIONS ===== */

.home-solutions {
    width: 100%;
    text-align: center;
    padding: 60px 20px;
}
.home-solutions h2 {
    font-size: 26px;
    color: var(--navy);
    margin-bottom: 6px;
}

.solutions-subtitle {
    margin-top: 0;
    margin-bottom: 28px;
    font-size: 15px;
    color: var(--text-light);
}


.home-solutions-grid {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-items: center;   /* ← THIS LINE CENTERS EACH TILE */
}

.solution-card {
    background: var(--white);
    width: 310px;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    text-align: center;
}

.solution-logo {
    width: 80px;
    height: auto;
    margin-bottom: 12px;
}

.solution-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--navy);
}

.solution-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== SIGN-IN PAGE ===== */

.signin-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.signin-card {
    background: var(--white);
    padding: 30px 26px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--shadow);
    width: 360px;
}

.signin-card h2 {
    margin-top: 0;
    margin-bottom: 6px;
    color: var(--navy);
}

.signin-sub {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--text-light);
}

.signin-card label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.signin-card input[type="text"],
.signin-card input[type="password"] {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.signin-btn {
    width: 100%;
    background: var(--navy);
    border: none;
    color: var(--white);
    padding: 10px 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

.signin-btn:hover {
    background: var(--gold);
    color: var(--navy);
}

.signin-error {
    margin-top: 10px;
    color: #b00020;
    font-size: 13px;
}

.clean-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 14px var(--shadow);
    max-width: 650px;
    margin: 0 auto;
}

.clean-form .row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

.clean-form .field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.clean-form .field.full {
    flex: 100%;
}

.clean-form label {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--navy);
}

.clean-form input,
.clean-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.clean-submit {
    width: 100%;
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 14px 0;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
}

.clean-submit:hover {
    background: var(--gold);
    color: var(--navy);
}
.uns-pct {
    color: var(--text-light);
    font-size: 13px;
    margin-left: 4px;
}

.advisor-top-table td {
    padding: 6px 4px;
}

.small-inquiry-btn {
    background: var(--navy);
    color: white;
    border: none;
    padding: 4px 8px;      /* smaller: previously 6px 10px */
    border-radius: 6px;
    font-size: 12px;        /* smaller font */
    cursor: pointer;
    white-space: nowrap;    /* keep “Send Inquiry” on one line */
}

.small-inquiry-btn:hover {
    background: var(--gold);
    color: var(--navy);
}
.bucket-bar {
    height: 10px;
    width: 80px;           /* was ~120–140px */
    background: #E0E4EA;
    border-radius: 20px;
    overflow: hidden;
    margin-left: 4px;      /* slight indent for visual alignment */
}


.bucket-fill {
    height: 100%;
    background: var(--navy);
    border-radius: 20px;
}
.top5-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    margin: 16px 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #E0E4EA; /* subtle visual anchor */
}
/* Donut Chart Container */
.donut-container {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 12px;
}

/* Donut Base */
.donut-chart {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: conic-gradient(
        #002A5C 0% 10%,      /* 0-10K */
        #004C8C 10% 28%,     /* 10K-50K */
        #0066A1 28% 42%,     /* 50K–100K */
        #4A88C7 42% 60%,     /* 100K–500K */
        #7EA7D9 60% 75%,     /* 500K–1M */
        #AFC7E8 75% 88%,     /* 1M–3M */
        #D4A437 88% 95%,     /* 3M–5M */
        #F2D58D 95% 100%     /* 5M+ */
    );
    position: relative;
}

.donut-hole {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--cream);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Legend */
.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.legend-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    margin-right: 8px;
}

/* Match colors to the donut */
.bucket1 { background: #002A5C; }
.bucket2 { background: #004C8C; }
.bucket3 { background: #0066A1; }
.bucket4 { background: #4A88C7; }
.bucket5 { background: #7EA7D9; }
.bucket6 { background: #AFC7E8; }
.bucket7 { background: #D4A437; }
.bucket8 { background: #F2D58D; }
/* Risk Section Containers */
.risk-section {
    margin-top: 18px;
}

.risk-header {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 13px;
}

/* Color labels */
.risk-header.high { color: #002A5C; }
.risk-header.med { color: #002A5C; }
.risk-header.low { color: #002A5C; }

/* Scrollable table — vertical only */
.risk-table-container {
    max-height: 275px;    /* Shows about 5 rows */
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #EEE;
    border-radius: 6px;
    background: var(--white);
    padding-right: 4px;
}


/* Compact, dense layout */
.risk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;               /* smaller text */
    table-layout: fixed;           /* forces wrap, prevents side scroll */
}

/* Compact headers */
.risk-table thead th {
    background: #F7F8FA;
    font-weight: 600;
    color: var(--navy);
    font-size: 11.5px;
    padding: 4px 3px;              /* tighter */
    white-space: nowrap;
}

/* Compact cells */
.risk-table td {
    padding: 4px 3px;              /* significantly reduced */
    vertical-align: middle;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.25;             /* compact but readable */
}

/* Column widths tuned for no scrolling */
.risk-table th:nth-child(1),
.risk-table td:nth-child(1) { width: 22%; }   /* Account */

.risk-table th:nth-child(2),
.risk-table td:nth-child(2) { width: 10%; }   /* Type */

.risk-table th:nth-child(3),
.risk-table td:nth-child(3) { width: 18%; }   /* Fund */

.risk-table th:nth-child(4),
.risk-table td:nth-child(4) {
    width: 17%;
    text-align: right;             /* financial formatting */
}

.risk-table th:nth-child(5),
.risk-table td:nth-child(5) { width: 25%; }   /* Issue */

.risk-table th:nth-child(6),
.risk-table td:nth-child(6) {
    width: 8%;
    text-align: center;            /* Inquiry button column */
}

/* Ultra-compact Inquiry Button */
.tiny-btn {
    background: var(--navy);
    color: white;
    border: none;
    padding: 2px 6px;              /* tiny size */
    font-size: 10.5px;             /* reduced */
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.tiny-btn:hover {
    background: var(--gold);
    color: var(--navy);
}

/* Scrollbar styling (optional but makes it clean) */
.risk-table-container::-webkit-scrollbar {
    width: 6px;
}

.risk-table-container::-webkit-scrollbar-thumb {
    background: #C8CCD3;
    border-radius: 6px;
}

.bulk-btn {
    background: var(--navy);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    margin: 20px auto 0 auto;   /* <-- centers it */
    display: block;             /* needed for centering */
    width: fit-content;         /* adjusts to button text */
}

.bulk-btn:hover {
    background: var(--gold);
    color: var(--navy);
}
/* FULL-WIDTH INQUIRY PANEL */
.wide-inquiry-panel {
    grid-column: 1 / -1; /* span all columns */
    margin-top: 30px;
}

/* INQUIRY TABLE */
.inquiry-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 13px;
}

.inquiry-table thead th {
    padding: 6px 8px;             /* tighter top spacing */
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    vertical-align: middle;
}

.inquiry-table td {
    padding: 7px 8px;
    vertical-align: middle;
    font-size: 13px;
}

/* STATUS PILL COLORS */
.status-box {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    display: inline-block;
}

.status-open {
    background: #4A90E2; /* blue */
}

.status-escalated {
    background: #D0021B; /* red */
}

.status-response {
    background: var(--gold); /* red */
}


/* AGE BOX (Darker navy as it ages) */
.age-box {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    display: inline-block;
}

.age-7  { background: #7A8CA6; }
.age-14 { background: #4F6583; }
.age-21 { background: #2F4567; }
.age-28 { background: #102B4E; }

/* FOLLOW-UP BUTTON */
.followup-btn {
    background: var(--navy);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
}

.followup-btn:hover {
    background: var(--gold);
    color: var(--navy);
}
.inquiry-table th:nth-child(1), .inquiry-table td:nth-child(1) { width: 9%; }
.inquiry-table th:nth-child(2), .inquiry-table td:nth-child(2) { width: 9%; }
.inquiry-table th:nth-child(3), .inquiry-table td:nth-child(3) { width: 10%; }
.inquiry-table th:nth-child(4), .inquiry-table td:nth-child(4) { width: 12%; }
.inquiry-table th:nth-child(5), .inquiry-table td:nth-child(5) { width: 7%; }
.inquiry-table th:nth-child(6), .inquiry-table td:nth-child(6) { width: 8%; }
.inquiry-table th:nth-child(7), .inquiry-table td:nth-child(7) { width: 8%; text-align:right; }
.inquiry-table th:nth-child(8), .inquiry-table td:nth-child(8) { width: 14%; }
.inquiry-table th:nth-child(9), .inquiry-table td:nth-child(9) { width: 9%; }
.inquiry-table th:nth-child(10), .inquiry-table td:nth-child(10) { width: 6%; text-align:center; }
.inquiry-table th:nth-child(11), .inquiry-table td:nth-child(11) { width: 7%; }
.inquiry-table th:nth-child(12), .inquiry-table td:nth-child(12) { width: 10%; text-align:center; }


/* === UPDATED LAYOUT FOR TRADE360 === */
/* === FIX TRADE360 PANEL ALIGNMENT === */

/* Two rows:
   Row 1 = Advisor + Trade (top)
   Row 2 = Account + Trade (bottom)
*/
.dash-main-grid {
    display: grid;
    grid-template-columns: 350px 1fr; 
    grid-template-rows: auto auto;  /* two stacked rows */
    gap: 22px;
}

/* Advisor Summary (top-left) */
.dash-panel.advisor {
    grid-column: 1;
    grid-row: 1;
}

/* Account Summary (bottom-left) */
.dash-panel.account {
    grid-column: 1;
    grid-row: 2;
}

/* Trade Summary (full right side, spanning both rows) */
.dash-panel.trade {
    grid-column: 2;
    grid-row: 1 / span 2;  /* covers both rows */
    align-self: start;
}

/* Fix Trade Summary table column alignment */
.risk-table th,
.risk-table td {
    text-align: center;   /* center all header + data text */
}

/* Explicit column widths for better balance */
.risk-table th:nth-child(1),
.risk-table td:nth-child(1) {
    width: 14%;   /* Account */
}

.risk-table th:nth-child(2),
.risk-table td:nth-child(2) {
    width: 12%;   /* Type */
}

.risk-table th:nth-child(3),
.risk-table td:nth-child(3) {
    width: 18%;   /* Fund */
}

.risk-table th:nth-child(4),
.risk-table td:nth-child(4) {
    width: 20%;   /* Amount */
    text-align: right;    /* numeric column = right align */
}

.risk-table th:nth-child(5),
.risk-table td:nth-child(5) {
    width: 26%;   /* Issue */
    text-align: left;     /* text description: left align */
}

.risk-table th:nth-child(6),
.risk-table td:nth-child(6) {
    width: 10%;   /* checkbox column */
    text-align: center;
}
/* Updated Trade Summary column widths */
.risk-table th,
.risk-table td {
    text-align: center;
}

.risk-table th:nth-child(1),
.risk-table td:nth-child(1) { width: 12%; } /* Account */

.risk-table th:nth-child(2),
.risk-table td:nth-child(2) { width: 12%; } /* Account Type */

.risk-table th:nth-child(3),
.risk-table td:nth-child(3) { width: 16%; } /* Advisor */

.risk-table th:nth-child(4),
.risk-table td:nth-child(4) { width: 8%; }  /* Type */

.risk-table th:nth-child(5),
.risk-table td:nth-child(5) { width: 15%; } /* Fund */

.risk-table th:nth-child(6),
.risk-table td:nth-child(6) {
    width: 12%;
    text-align: right; /* amount always right-aligned */
}

.risk-table th:nth-child(7),
.risk-table td:nth-child(7) {
    width: 20%;
    text-align: left; /* issue text */
}

.risk-table th:nth-child(8),
.risk-table td:nth-child(8) {
    width: 5%; 
    text-align: center;
}
/* =========================================================
   TOP SHELL + MODERN HERO (scoped so it won’t break solutions)
   ========================================================= */

.top-shell{
  color:#fff;
  background:
    radial-gradient(1000px 500px at 50% 0%, rgba(212,166,42,.18), transparent 55%),
    radial-gradient(900px 600px at 15% 25%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, #0b2b55 0%, #082345 60%, #061a34 100%);
  overflow:hidden;
}

/* NAV – modern look, but uses your existing HTML */
.nav-modern{
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(11,43,85,.92), rgba(11,43,85,.55));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.nav-modern-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.nav-modern-links{
  display:flex;
  gap: 18px;
  align-items:center;
}

.nav-modern-links .nav-link{
  color: rgba(255,255,255,.92);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background .2s ease, opacity .2s ease;
}

.nav-modern-links .nav-link:hover{
  background: rgba(255,255,255,.08);
}

.nav-modern-signin{
  border: 0;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  background: #d4a62a;
  color: #0a1730;
  box-shadow: 0 12px 26px rgba(212,166,42,.25);
}

/* HERO LAYOUT */
.hero-modern{
  padding: 64px 0 26px;
}

.hero-modern-container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 22px;
}

.hero-modern-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: center;
}

.hero-eyebrow{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .35px;
  opacity: .95;
}

.hero-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#d4a62a;
  box-shadow: 0 0 0 5px rgba(212,166,42,.20);
}

.hero-title{
  margin: 14px 0 10px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.hero-title-soft{
  opacity: .82;
  font-weight: 500;
}

.hero-sub{
  margin:0;
  color: rgba(255,255,255,.86);
  font-size: 16px;
  line-height: 1.6;
  max-width: 56ch;
}

.hero-actions{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
}

.hero-btn{
  border:0;
  cursor:pointer;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
  white-space: nowrap;
}

.hero-btn:active{ transform: translateY(1px); }

.hero-btn-primary{
  background:#d4a62a;
  color:#0a1730;
  box-shadow: 0 12px 26px rgba(212,166,42,.25);
}

.hero-btn-primary:hover{ filter: brightness(1.03); }

.hero-btn-ghost{
  background: rgba(255,255,255,.08);
  color:#fff;
  border: 1px solid rgba(255,255,255,.12);
}

.hero-btn-ghost:hover{
  background: rgba(255,255,255,.12);
}

.hero-trust{
  margin-top: 18px;
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.75);
  font-weight: 700;
  font-size: 13px;
  align-items:center;
}

.hero-pill{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}

/* MOCK DEVICES */
.hero-mock-stage{
  position: relative;
  width: 100%;
  min-height: 410px;
}

.hero-device{
  position: absolute;
  border-radius: 26px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
  overflow: hidden;
}

.hero-device-topbar{
  height: 40px;
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.08));
  border-bottom: 1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 12px;
  font-weight: 800;
  font-size: 12px;
  color: rgba(255,255,255,.9);
}

.hero-mini{
  opacity:.8;
  font-weight:700;
  letter-spacing:.4px;
}

.hero-device-screen{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  height: 100%;
  padding: 16px;
}

.hero-shot{
  background:#fff;
  border-radius: 18px;
  overflow:hidden;
  height:100%;
  box-shadow: 0 10px 30px rgba(10,20,40,.12);
  border: 1px solid rgba(10,20,40,.06);
}

.hero-shot img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.hero-monitor{
  width: 100%;
  height: 380px;
  right: 0;
  transform: translateY(8px);
}

.hero-tablet{
  width: 75%;
  height: 300px;
  left: -8px;
  bottom: -18px;
  transform: rotate(-2deg);
  box-shadow: 0 20px 55px rgba(0,0,0,.28);
}

.hero-stand{
  position:absolute;
  width:54%;
  height:18px;
  border-radius:999px;
  left:23%;
  bottom:-30px;
  background: rgba(255,255,255,.12);
  opacity:.9;
}

.hero-play{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  pointer-events:none;
}

.hero-play-btn{
  width:72px;
  height:72px;
  border-radius:50%;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  display:grid;
  place-items:center;
  box-shadow: 0 16px 35px rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
}

/* RESPONSIVE */
@media (max-width: 980px){
  .hero-modern-grid{ grid-template-columns: 1fr; gap: 22px; }
  .hero-mock-stage{ min-height: 380px; }
  .hero-tablet{ width: 70%; left: 0; }
  .nav-modern-links{ display:none; } /* keep it simple on mobile */
}

@media (max-width: 520px){
  .hero-monitor{ height: 360px; }
  .hero-tablet{ height: 280px; }
}
.hero-shot{
  background:#F7F2E9;
  border-radius:16px;
  overflow:hidden;
  height:80%;
}

.hero-shot img{
  width:100%;
  height:100%;
  object-fit: contain;     /* <-- change from cover */
  object-position: center; /* <-- keep centered */
  display:block;
  background:#F7F2E9;         /* so any letterboxing looks clean */
}

/* Delete icon on timeline events */
.event-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.icon-btn{
  border: 1px solid #D6D6D6;
  background: #F7F8FA;
  color: var(--navySafe);
  border-radius: 10px;
  padding: 4px 8px;
  font-weight: 1000;
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
}
.icon-btn:hover{ filter: brightness(0.98); }

.icon-btn.danger{
  border-color: rgba(208,2,27,.35);
  background: rgba(208,2,27,.10);
  color: #7F1D1D;
}


/* ---------- SHARED PAGE LAYOUT (schedule + sign-in) ---------- */
.page-main {
  padding: 56px 0 72px;
}

.page-section {
  width: 100%;
}

.page-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- SCHEDULE PAGE ---------- */
.schedule-page h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.schedule-copy p {
  margin: 0 0 14px;
  color: var(--text-dark);
  font-size: 18px;
  line-height: 1.55;
  max-width: 560px;
}

.schedule-copy ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-light);
  font-size: 18px;
  line-height: 1.55;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.schedule-form-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  padding: 28px;
}

/* Make form card match your modern UI */
.clean-form-card { background: transparent; padding: 0; box-shadow: none; }
.clean-submit {
  width: 100%;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 980px) {
  .schedule-grid { grid-template-columns: 1fr; }
  .schedule-form-card { padding: 22px; }
}

/* ---------- FOOTER (matches homepage footer markup) ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  padding: 44px 0 26px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 26px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-col h4 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin: 8px 0; }

.footer-links a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  opacity: 0.95;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: rgba(255,255,255,0.85);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.footer-mini-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  margin-left: 14px;
}

.footer-mini-links a:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}
/* =========================================================
   FORCE READABLE TEXT ON SCHEDULE PAGE (FINAL OVERRIDE)
   ========================================================= */

.schedule-page,
.schedule-page * {
  color: rgba(255, 255, 255, 0.92);
}

.schedule-page h2 {
  color: #ffffff;
  font-size: 36px;
}

.schedule-copy p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.6;
}

.schedule-copy ul {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
}

.schedule-copy li {
  margin-bottom: 10px;
}



/* =========================================================
   MOBILE + TABLET RESPONSIVE IMPROVEMENTS
   (safe overrides; add near end of file)
   ========================================================= */

/* Prevent horizontal scrolling on small screens */
html, body { max-width: 100%; overflow-x: hidden; }

/* Make images behave nicely */
img { max-width: 100%; height: auto; }

/* ---------- NAV (mobile) ---------- */
/* Keep links visible and readable on mobile; wrap instead of hiding */
@media (max-width: 860px){
  .nav-modern-inner{
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
  }

  .nav-modern-links{
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Override the earlier rule that hides nav links */
  .nav-modern-links{ display: flex !important; }

  .nav-modern-links .nav-link{
    font-size: 13px;
    padding: 7px 10px;
  }

  .nav-modern-signin{
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
  }
}

/* Tighten logo on very small screens */
@media (max-width: 420px){
  .logo-text{ font-size: 22px; }
  .logo-img{ height: 36px; }
}

/* ---------- HERO (home + explore) ---------- */
@media (max-width: 980px){
  .hero-modern{ padding: 46px 0 18px; }
  .hero-title{ font-size: clamp(30px, 8vw, 44px); }
  .hero-sub{ font-size: 15px; }
}

/* On small screens, avoid absolute-position device stack causing awkward overlap */
@media (max-width: 720px){
  .hero-modern-container{ padding: 0 16px; }

  .hero-mock-stage{
    min-height: auto;
    margin-top: 18px;
  }

  /* Make devices flow naturally (stacked) instead of absolute overlays */
  .hero-device{
    position: relative;
    width: 100% !important;
    height: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 0 14px;
    border-radius: 18px;
  }

  .hero-device-screen{ padding: 12px; }
  .hero-device-topbar{ height: 36px; font-size: 12px; }
  .hero-shot{ border-radius: 14px; }

  /* Ensure screenshots stay visible in a shorter card */
  .hero-shot{ height: 220px !important; }
  .hero-shot img{ object-fit: contain; }

  /* If you have tilt wrappers, disable tilt on mobile for clean stacking */
  .hero-tilt{ transform: none !important; }

  /* Hide stand if present */
  .hero-stand{ display: none; }
}

/* ---------- SOLUTIONS GRID (home + explore tiles) ---------- */
@media (max-width: 1100px){
  .home-solutions-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .solution-card{
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 640px){
  .home-solutions{
    padding: 44px 16px;
  }
  .home-solutions-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .solution-card{
    width: 100%;
    padding: 18px;
  }
  .solution-card p{ font-size: 14px; }
}

/* ---------- FORMS (schedule + sign-in) ---------- */
@media (max-width: 700px){
  .page-main{ padding: 42px 0 56px; }
  .schedule-grid{ gap: 18px; }
  .schedule-form-card{ padding: 18px; }

  /* Stack form fields instead of 2-up */
  .clean-form .row{
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
  }
}

@media (max-width: 520px){
  .signin-wrapper{ padding: 42px 16px; }
  .signin-card{
    width: 100%;
    max-width: 420px;
    padding: 22px 18px;
  }
}

/* ---------- FOOTER (mobile) ---------- */
@media (max-width: 700px){
  .site-footer{ padding: 34px 0 22px; }
  .footer-inner{ padding: 0 16px; }
  .footer-top{ gap: 18px; padding-bottom: 18px; }
}

/* =========================================================
   FIX: Solution tile text getting cut off on mobile
   ========================================================= */

/* Ensure padding/borders are included in element width calculations */
*, *::before, *::after { box-sizing: border-box; }

/* Make cards responsive by default (desktop still caps at 310px) */
.solution-card{
  width: 100%;
  max-width: 310px;          /* keeps your desktop tile size */
}

/* Allow long words to wrap instead of forcing overflow */
.solution-card p{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Ensure the grid never forces overflow */
.home-solutions-grid{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Tablet: 2-up */
@media (max-width: 1100px){
  .solution-card{ max-width: 520px; } /* matches your current intent */
}

/* Mobile: 1-up, full width */
@media (max-width: 640px){
  .solution-card{
    max-width: 100%;
  }
}

/* =========================================================
   FINAL OVERRIDE: Solutions tiles on mobile (ONE per row)
   This is placed at the end of the file so it wins.
   ========================================================= */

@media (max-width: 768px) {
  .home-solutions-grid{
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    justify-items: center;
  }

  .solution-card{
    width: 100% !important;
    max-width: 520px !important; /* full-width feel but keeps nice readable line length */
    margin: 0 auto;
  }

  .solution-card h3,
  .solution-card p{
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .solution-logo{
    width: 72px;
    margin: 0 auto 14px;
    display: block;
  }
}

/* Small phones: make the card truly edge-safe */
@media (max-width: 420px) {
  .home-solutions{ padding: 40px 14px !important; }
  .solution-card{ padding: 18px 16px !important; }
}


/* =========================================================
   EXPLORE MODULES – CARD CONTENT FORMAT (keeps card colors)
   ========================================================= */

.cc-module-card{
  /* keep your existing .solution-card white background */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 22px 18px; /* a bit tighter like your screenshot */
  border-radius: 14px;
  min-height: 360px;
  text-align: left; /* screenshot is left-aligned inside card */
}

.cc-module-top{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cc-module-icon{
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(10, 42, 92, 0.06);
  border: 1px solid rgba(10, 42, 92, 0.10);
}

.cc-module-icon img{
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.cc-module-card h3{
  margin: 2px 0 0;
  font-size: 18px;
  color: var(--navy);
}

.cc-module-desc{
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-light);
}

/* Best-for row */
.cc-bestfor{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-light);
  padding: 10px 10px;
  border-radius: 10px;
  background: rgba(10, 42, 92, 0.04);
  border: 1px solid rgba(10, 42, 92, 0.08);
}

.cc-bestfor strong{ color: var(--navy); }

.cc-bestfor-dot{
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: inline-block;
}

.cc-dot-navy{
  background: rgba(10, 42, 92, 0.10);
  border: 1px solid rgba(10, 42, 92, 0.25);
}

.cc-dot-gold{
  background: rgba(212, 164, 55, 0.18);
  border: 1px solid rgba(212, 164, 55, 0.35);
}

/* Checklist */
.cc-checklist{
  list-style: none;
  padding: 0;
  margin: 2px 0 0;
  display: grid;
  gap: 10px;
}

.cc-checklist li{
  position: relative;
  padding-left: 28px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.45;
}

.cc-checklist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--navy);
  background: rgba(10, 42, 92, 0.08);
  border: 1px solid rgba(10, 42, 92, 0.16);
}

/* CTA (full-width button at bottom of card) */
.cc-cta{
  margin-top: 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.cc-cta:active{ transform: translateY(1px); }

.cc-cta-arrow{
  font-size: 18px;
  line-height: 1;
  margin-top: -1px;
}

/* Button colors (does not change the card backgrounds) */
.cc-cta-navy{
  background: var(--navy);
  color: var(--white);
}

.cc-cta-navy:hover{
  filter: brightness(1.05);
}

.cc-cta-gold{
  background: var(--gold);
  color: var(--navy);
}

.cc-cta-gold:hover{
  filter: brightness(1.03);
}

/* On mobile, keep the same 1-per-row behavior you already enforce */
@media (max-width: 768px){
  .cc-module-card{ text-align: left; }
}


/* =========================================================
   EXPLORE MODULES – TILE STYLE (matches screenshot)
   - icon at top (no circle)
   - centered text
   - gold "Request demo" button
   ========================================================= */

.cc-tile{
  text-align: center;
  padding: 34px 26px 28px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  min-height: 360px;
}

/* icon: not in a circle */
.cc-tile-icon{
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin: 0 auto 4px;
}

/* keep your existing h3 styling, just tighten spacing slightly */
.cc-tile h3{
  margin: 0;
}

/* reuse your paragraph look, but make it feel like the screenshot */
.cc-tile-desc{
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-light);
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}

/* gold CTA like screenshot */
.cc-demo-btn{
  margin-top: 10px;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(10, 42, 92, 0.12);
  transition: filter .15s ease, transform .15s ease;
}

.cc-demo-btn:hover{ filter: brightness(1.03); }
.cc-demo-btn:active{ transform: translateY(1px); }

/* safety: if any old explore-module CTA styles exist, neutralize them on tiles */
.cc-tile .cc-cta{ display: none !important; }


/* Remove the icon circle on Explore Modules cards */
.cc-module-icon{
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  display: block !important;
}

/* CENTER the image */
.cc-module-icon img{
  width: 54px;
  height: 54px;
  display: block;
  margin: 0 auto 10px auto; /* centers horizontally */
}
/* =========================================================
   HOW MODULES WORK TOGETHER (Explore Modules page)
   ========================================================= */

.cc-how-wrap{
  max-width: 1100px;
  margin: 46px auto 0;
  padding: 12px 10px 0;
  text-align: center;
}

.cc-how-title{
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cc-how-title span{
  color: var(--navy);
}

.cc-how-sub{
  margin: 0 auto 26px;
  max-width: 820px;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
}

.cc-how-pin{ margin-left: 6px; }

.cc-flow{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.cc-flow-chip{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(10,42,92,0.10);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.07);
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  justify-content: center;
}

.cc-flow-icon{
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.cc-flow-chip span{
  font-weight: 800;
  color: var(--navy);
  font-size: 16px;
}

.cc-flow-arrow{
  font-size: 22px;
  color: rgba(10,42,92,0.55);
  font-weight: 900;
}

.cc-flow-arrow-gold{
  color: rgba(212,164,55,0.95);
}

/* feature row */
.cc-how-features{
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--text-light);
  font-size: 14px;
}

.cc-how-feature{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.95;
}

.cc-mini-ico{
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(10,42,92,0.06);
  border: 1px solid rgba(10,42,92,0.10);
}

/* mobile spacing */
@media (max-width: 640px){
  .cc-how-title{ font-size: 24px; }
  .cc-flow-chip{ min-width: 0; width: 100%; }
  .cc-flow-arrow{ display: none; } /* arrows get cramped on phones */
}


/* =========================================================
   HOW MODULES WORK TOGETHER – WHITE CARD CONTAINER
   ========================================================= */

.cc-how-card{
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 32px 34px;
  max-width: 1200px;
  margin: 48px auto 0;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  border: 1px solid rgba(10,42,92,0.08);
}

/* tighten inner spacing slightly so it feels intentional */
.cc-how-wrap{
  margin: 0;
  padding: 0;
}

/* step-style chips feel */
.cc-flow-chip{
  background: #f8f9fb;
  border: 1px solid rgba(10,42,92,0.12);
  box-shadow: none;
}

/* arrows look softer inside card */
.cc-flow-arrow{
  opacity: 0.7;
}

/* mobile polish */
@media (max-width: 640px){
  .cc-how-card{
    padding: 26px 18px 24px;
    border-radius: 16px;
  }
}


/* =========================================================
   OUR MISSION
   ========================================================= */
.cc-mission {
  background: #ffffff;
  padding: 70px 20px;
}

.cc-mission-container {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.cc-mission-text h2 {
  color: var(--navy);
  font-size: 30px;
  margin-bottom: 14px;
}

.cc-mission-text p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 18px;
}

.cc-mission-text ul {
  padding-left: 18px;
  color: var(--text-light);
}

.cc-mission-text li {
  margin-bottom: 10px;
}

.cc-mission-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* =========================================================
   WHAT SETS US APART
   ========================================================= */
.cc-differentiators {
  background: var(--cream);
  padding: 70px 20px;
  text-align: center;
}

.cc-differentiators h2 {
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 40px;
}

.cc-diff-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.cc-diff-card {
  background: #ffffff;
  padding: 28px 22px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.cc-diff-card h3 {
  color: var(--navy);
  font-size: 17px;
  margin-bottom: 10px;
}

.cc-diff-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

/* =========================================================
   WHO WE SERVE
   ========================================================= */
.cc-audience {
  background: #ffffff;
  padding: 70px 20px;
  text-align: center;
}

.cc-audience h2 {
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 40px;
}

.cc-audience-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cc-audience-card {
  background: var(--cream);
  padding: 30px 26px;
  border-radius: 16px;
}

.cc-audience-card h3 {
  color: var(--navy);
  margin-bottom: 10px;
}

.cc-audience-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .cc-mission-container {
    grid-template-columns: 1fr;
  }

  .cc-diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cc-audience-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   WHAT SETS US APART – ICON LEFT OF TITLE
   ========================================================= */

.cc-diff-grid{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.cc-diff-card{
  background: #ffffff;
  padding: 30px 28px 32px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  text-align: left;
}

/* Header row: icon + title */
.cc-diff-header{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.cc-diff-icon-img{
  width: 36px;              /* matches screenshot proportions */
  height: auto;
  flex-shrink: 0;
}

/* Title styling */
.cc-diff-card h3{
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

/* Body text */
.cc-diff-card p{
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-light);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .cc-diff-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px){
  .cc-diff-grid{
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   REDUCE SPACE ABOVE SECTION TITLES
   ========================================================= */

/* Tighten top padding on sections */
.home-solutions,
.cc-differentiators,
.cc-audience {
  padding-top: 48px;   /* was ~70–80px visually */
}

/* Reduce top margin on section headings */
.home-solutions h2,
.cc-differentiators h2,
.cc-audience h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

/* Reduce subtitle spacing under "Our Solutions" */
.solutions-subtitle {
  margin-top: 4px;
  margin-bottom: 22px;
}

/* Fix invisible typing in schedule form */
.clean-form input,
.clean-form textarea {
  background: #ffffff;
  color: var(--navy);          /* the typed text */
  caret-color: var(--navy);    /* the cursor */
}

/* Placeholder text */
.clean-form input::placeholder,
.clean-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

/* Optional: focus styling */
.clean-form input:focus,
.clean-form textarea:focus {
  outline: none;
  border-color: rgba(0, 42, 92, 0.45); /* navy-ish */
  box-shadow: 0 0 0 3px rgba(0, 42, 92, 0.12);
}
