/* ==========================================================
   FINANCIAL ROADMAP TABLE
   Matches the overall Kunal Finance dark theme
   ========================================================== */

/* ---------- Reset ---------- */
html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ---------- Main Page Padding ---------- */
.scroll-area {
    padding: 56px 0 96px;
}

/* ---------- Page Container ---------- */
.roadmap-page {
    max-width: 1400px;
    margin: auto;
    padding: 0 64px;
}

/* ---------- Page Title ---------- */
.page-title-bar h1 {
    font-size: 38px;
    color: #f8fafc;
    margin-bottom: 14px;
}

/* ---------- Subtitle / Description ---------- */
.page-title-bar p {
    padding: 18px 24px;

    background: linear-gradient(
        90deg,
        rgba(56, 189, 248, 0.14),
        rgba(56, 189, 248, 0.04)
    );

    border-left: 4px solid #38bdf8;
    border-radius: 16px;

    color: #cbd5f5;
    margin-bottom: 50px;
}

/* ==========================================================
   TABLE CONTAINER
   ========================================================== */

.table-card {

    background: linear-gradient(
        180deg,
        rgba(2, 6, 23, .96),
        rgba(2, 6, 23, .90)
    );

    border: 1px solid #1e293b;
    border-radius: 22px;

    box-shadow:
        0 35px 70px rgba(0,0,0,.50);

    overflow: hidden;
}

/* ==========================================================
   TABLE
   ========================================================== */

table {
    width: 100%;
    border-collapse: collapse;
}

/* ---------- Header ---------- */

thead {
    background: #0f172a;
}

th {

    padding: 18px;

    color: #38bdf8;
    font-size: 16px;
    font-weight: 600;

    text-align: left;

    border-bottom: 1px solid #334155;
}

/* ---------- Body ---------- */

td {

    padding: 18px;

    color: #e5e7eb;
    font-size: 14.5px;
    line-height: 1.7;

    vertical-align: top;

    border-bottom: 1px solid rgba(148,163,184,.20);

}

/* Highlight row while hovering */

tbody tr:hover {
    background: rgba(56,189,248,.05);
}

/* ==========================================================
   LISTS INSIDE TABLE
   ========================================================== */

ul {
    margin: 0;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

/* ==========================================================
   RESPONSIVE DESIGN
   Converts the table into stacked cards
   ========================================================== */

@media (max-width:900px) {

    /* Reduce page padding */

    .roadmap-page {
        padding: 0 20px;
    }

    /* Stack table */

    table,
    thead,
    tbody,
    th,
    td,
    tr {

        display: block;

    }

    /* Hide original header */

    thead {
        display: none;
    }

    /* Each row becomes a card */

    tr {

        margin-bottom: 20px;
        border-bottom: 2px solid #334155;

    }

    /* Labels before every cell */

    td::before {

        display: block;

        margin-bottom: 6px;

        color: #38bdf8;
        font-weight: bold;

    }

    td:nth-child(1)::before {
        content: "Phase";
    }

    td:nth-child(2)::before {
        content: "Timeline";
    }

    td:nth-child(3)::before {
        content: "Objective";
    }

    td:nth-child(4)::before {
        content: "Milestones";
    }

}
