/* ================= GLOBAL RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(180deg, #0f0f14 0%, #14141c 100%);
    color: #eaeaf0;
}

/* ================= NAVBAR ================= */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(15, 15, 18, 0.9);
    backdrop-filter: blur(10px);
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.nav-links {
    display: flex;
    gap: 18px;
    flex-wrap: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #caa45c;
    transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ================= CONTAINER ================= */
.container {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 24px;
}

/* ================= HEADER ================= */
.page-header h1 {
    font-size: clamp(26px, 4vw, 38px);
    margin-bottom: 14px;
}

.page-header p {
    font-size: 16px;
    line-height: 1.7;
    color: #cfcfd6;
    max-width: 700px;
}

/* ================= TABLE ================= */
.table-wrapper {
    margin-top: 50px;
    overflow-x: auto;
}

.chapters-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: linear-gradient(180deg, #1b1b26, #14141c);
    border-radius: 14px;
    overflow: hidden;
}

.chapters-table thead {
    background: rgba(255,255,255,0.06);
}

.chapters-table th,
.chapters-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
}

.chapters-table th {
    font-weight: 600;
    color: #ffffff;
}

.chapters-table td {
    color: #d2d2da;
}

/* ================= OPEN BUTTON ================= */
.open-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid rgba(207,168,92,0.6);
    color: #cfa85c;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s ease, color 0.3s ease;
}

.open-btn:hover {
    background: #cfa85c;
    color: #111;
}

/* ================= SPACER ================= */
.spacer {
    height: 100px;
}

/* ================= MOBILE CARD MODE ================= */
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 18px;
    }

    .nav-links {
        width: 100%;
        margin-top: 10px;
        flex-wrap: wrap;
        gap: 14px;
    }

    .container {
        margin: 50px auto;
    }

    /* Card conversion */
    .chapters-table thead {
        display: none;
    }

    .chapters-table,
    .chapters-table tbody,
    .chapters-table tr,
    .chapters-table td {
        display: block;
        width: 100%;
    }

    .chapters-table tr {
        background: linear-gradient(180deg, #1b1b26, #14141c);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 14px;
        padding: 18px;
        margin-bottom: 18px;
    }

    .chapters-table td {
        border: none;
        padding: 6px 0;
    }

    .chapters-table td:nth-child(1)::before {
        content: "Chapter";
        color: #cfa85c;
        font-size: 12px;
        display: block;
        margin-bottom: 4px;
    }

    .chapters-table td:nth-child(2)::before {
        content: "Hindi Name";
        color: #cfa85c;
        font-size: 12px;
        display: block;
        margin-bottom: 4px;
    }

    .chapters-table td:nth-child(3)::before {
        content: "English Name";
        color: #cfa85c;
        font-size: 12px;
        display: block;
        margin-bottom: 4px;
    }

    .chapters-table td:last-child {
        margin-top: 12px;
    }
}
