/* Base table styling */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #fff;
    margin: 1.5rem 0;
    box-shadow: 0 6px 18px rgba(20, 30, 40, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

/* Add horizontal scroll for small screens */
table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
}

/* Header styling */
thead th {
    background: var(--color-secondary);
    font-weight: 600;
    /* color: #0f172a; */
    letter-spacing: 0.01em;
    padding: 1rem 2rem;
    text-align: left;
    white-space: nowrap;
}

/* Body cell styling */
tbody td {
    padding: 1.5rem 0.5rem 2rem 2rem;
    border-bottom: 1px solid rgba(20, 30, 40, 0.06);
    vertical-align: middle;
}

tbody td:last-child {
    padding: 1.5rem 2rem 2rem 2rem;
}

/* Zebra stripes */
tbody tr:nth-child(odd) td {
    background: #fff;
}
tbody tr:nth-child(even) td {
    background: #fbfdff;
}

/* Hover highlight */
tbody tr:hover td {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(250, 251, 255, 0.95));
}

/* Strong first column (title / offer) */
tbody td:first-child {
    font-weight: 700;
    /* color: #06283d; */
    min-width: 200px;
}

/* Duration column (centered) */
tbody td:nth-child(3) {
    text-align: center;
    color: #374151;
}

/* Price column (right-aligned, accent color) */
tbody td:last-child {
    text-align: right;
    white-space: nowrap;
}

table strong {
    font-weight: 800;
    color: var(--color-gold);
}

/* Smaller text for description column */
tbody td:nth-child(2) {
    color: #334155;
    font-size: 0.94rem;
}

/* Make table header sticky for wide screens */
@media (min-width: 900px) {
    table {
        display: table;
    }

    thead th {
        top: 0;
        z-index: 2;
    }
}

/* Small screen adjustments */
@media (max-width: 640px) {
    table {
        font-size: 0.9rem;
    }
    thead th,
    tbody td {
        padding: 0.7rem 0.8rem;
    }
    tbody td:last-child {
        text-align: left; /* easier reading on narrow screens */
    }
}
