.ekadashi-pill {
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    border: 1.5px solid rgba(128, 0, 0, 0.2);
    background: transparent;
    color: #800000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ekadashi-pill:hover {
    background: rgba(128, 0, 0, 0.08);
    border-color: #800000;
    transform: translateY(-1px);
}

.ekadashi-pill.active {
    background: #800000;
    color: #FFF;
    border-color: #800000;
    box-shadow: 0 4px 14px rgba(128, 0, 0, 0.3);
}

/* ─── Desktop Table ──────────────────────────────── */
.ekadashi-table-wrap {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(128, 0, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.ekadashi-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Manrope', sans-serif;
}

.ekadashi-table thead th {
    background: linear-gradient(135deg, #800000, #a0001c);
    color: #FFD700;
    padding: 0.85rem 1.25rem;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

.ekadashi-table thead th:first-child {
    padding-left: 1.5rem;
}

.ekadashi-table tbody tr {
    transition: background 0.25s ease, transform 0.2s ease;
    border-bottom: 1px solid rgba(255, 215, 0, 0.12);
}

.ekadashi-table tbody tr:last-child {
    border-bottom: none;
}

.ekadashi-table tbody tr:nth-child(even) {
    background: rgba(251, 251, 226, 0.5);
}

.ekadashi-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.6);
}

.ekadashi-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.12) !important;
    transform: scale(1.005);
}

.ekadashi-table tbody td {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    color: #3a1a0a;
    vertical-align: middle;
}

.ekadashi-table tbody td:first-child {
    padding-left: 1.5rem;
    font-weight: 700;
    color: #800000;
}

.ekadashi-table .ek-name {
    font-family: 'Libre Caslon Text', serif;
    font-weight: 700;
    color: #8f4e00;
}

.ekadashi-table .ek-time {
    font-variant-numeric: tabular-nums;
    color: #556b2f;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Highlight: next upcoming */
.ekadashi-table tbody tr.ek-next {
    background: linear-gradient(90deg, rgba(255, 153, 51, 0.15), rgba(255, 215, 0, 0.1)) !important;
    box-shadow: inset 4px 0 0 #FF9933;
    animation: ek-pulse 2.5s ease-in-out infinite;
}

@keyframes ek-pulse {

    0%,
    100% {
        box-shadow: inset 4px 0 0 #FF9933;
    }

    50% {
        box-shadow: inset 4px 0 0 #FFD700, 0 0 12px rgba(255, 153, 51, 0.15);
    }
}

/* Past rows slightly muted */
.ekadashi-table tbody tr.ek-past {
    opacity: 0.55;
}

/* ─── Mobile Cards ───────────────────────────────── */
.ekadashi-card {
    background: rgba(251, 251, 226, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(128, 0, 0, 0.06);
}

.ekadashi-card:hover {
    box-shadow: 0 6px 20px rgba(128, 0, 0, 0.12);
    transform: translateY(-2px);
}

.ekadashi-card.ek-next {
    border-left: 4px solid #FF9933;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.1), rgba(255, 215, 0, 0.08));
    animation: ek-card-glow 2.5s ease-in-out infinite;
}

@keyframes ek-card-glow {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(255, 153, 51, 0.15);
    }

    50% {
        box-shadow: 0 4px 20px rgba(255, 153, 51, 0.3);
    }
}

.ekadashi-card.ek-past {
    opacity: 0.5;
}

.ekadashi-card .ek-card-month {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FF9933;
    margin-bottom: 0.35rem;
}

.ekadashi-card .ek-card-name {
    font-family: 'Libre Caslon Text', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #800000;
    margin-bottom: 0.5rem;
}

.ekadashi-card .ek-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #3a1a0a;
    padding: 0.2rem 0;
}

.ekadashi-card .ek-card-row span:first-child {
    color: #8f4e00;
    font-weight: 600;
}

.ekadashi-card .ek-card-parana {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(255, 215, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #556b2f;
    font-weight: 600;
}

/* Desktop shows table, hides cards */
.ekadashi-cards-grid {
    display: none;
}

.ekadashi-table-wrap {
    display: block;
}

@media (max-width: 768px) {
    .ekadashi-cards-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .ekadashi-table-wrap {
        display: none;
    }
}

@media (min-width: 480px) and (max-width: 768px) {
    .ekadashi-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Next badge */
.ek-next-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #FF9933;
    color: #FFF;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
    animation: ek-badge-pulse 1.8s ease-in-out infinite;
}

@keyframes ek-badge-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}