/* style.css */

.tithi-calendar-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.tithi-calendar-table {
    width: 100%;
    max-width: 100%;
    background: #fff;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
}

.tithi-calendar-table thead th {
        background: linear-gradient(90deg, #d97706, #b91c1c);
        color: #fefce8;
        padding: 10px;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 0.8px;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.tithi-calendar-table td {
        padding: 12px 14px;
        font-size: 16px;
        color: #1f2937;
        border-bottom: 1px dashed #f3e8ff;
}

.tithi-calendar-table tr:nth-child(even) {
        background: rgba(254, 243, 199, 0.3);
}

.panchang-container {
    max-width: 700px;
    margin: 30px auto;
    font-family: Arial, sans-serif;
}

.panchang-heading {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #2c5282;
    margin-bottom: 15px;
    line-height: 1.2;
}

.panchang-date {
    text-align: center;
    font-size: 20px;
    color: #4a5568;
    margin-bottom: 20px;
    font-style: italic;
}

.panchang-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.panchang-table th,
.panchang-table td {
    padding: 15px 20px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.panchang-table th {
    background: #2c5282;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
}

.panchang-table td {
    color: #2d3748;
    font-size: 16px;
}

.panchang-table tr:nth-child(even) {
    background: #f7fafc;
}

.panchang-table tr:hover {
    background: #edf2f7;
}

/* मोबाइल व्यू (600px तक) */
@media screen and (max-width: 600px) {
    .panchang-container {
        max-width: 100%;
        margin: 10px 0;
        padding: 0;
    }

    .panchang-heading {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .panchang-date {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .panchang-table {
        width: 100%;
        margin-bottom: 20px;
    }

    .panchang-table th,
    .panchang-table td {
        padding: 10px;
        font-size: 14px;
    }

    .panchang-table th {
        font-size: 16px;
    }

    /* Updated tithi-calendar-table styles for mobile */
    .tithi-calendar-table {
        display: block;
        border: none;
        margin: 0 auto;
        padding: 0 10px; /* Add slight padding for better spacing */
    }

    .tithi-calendar-table thead {
        display: none; /* Hide header for mobile */
    }

    .tithi-calendar-table tbody,
    .tithi-calendar-table tr {
        display: block;
        width: 100%;
        margin-bottom: 20px; /* Space between each date section */
    }

    /* Each row is a separate card-like section */
    .tithi-calendar-table tr {
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for card effect */
        padding: 10px;
        margin-bottom: 25px; /* Increased spacing between cards */
    }

    /* Date cell as a highlighted separate box */
    .tithi-calendar-table td:first-child {
        display: block;
        text-align: center;
        font-weight: bold;
        font-size: 18px;
        color: #ffffff !important;
        background: linear-gradient(135deg, #FF6F61, #FF8C00);
        padding: 15px;
        border: none;
        border-radius: 10px;
        margin: 0 auto 15px auto; /* Center and space below */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* Shadow for depth */
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
    }

    .tithi-calendar-table td:first-child:before {
        content: none; /* Remove data-label for date */
        color: #ffffff !important;
    }

    /* Other content cells */
    .tithi-calendar-table td:not(:first-child) {
        display: block;
        text-align: left;
        padding: 12px 15px;
        font-size: 14px;
        border: none;
        background: #f7fafc; /* Light background for content */
        margin-bottom: 8px;
        position: relative;
        box-sizing: border-box;
        word-wrap: break-word;
        border-radius: 8px;
        border-left: 4px solid #2c5282; /* Left border for visual hierarchy */
    }

    .tithi-calendar-table td:not(:first-child):before {
        content: attr(data-label);
        font-weight: bold;
        color: #2c5282;
        display: block;
        margin-bottom: 8px;
        font-size: 15px;
    }

    /* Ensure content wraps naturally */
    .tithi-calendar-table td {
        white-space: normal; /* Allow text to wrap */
        overflow-wrap: break-word; /* Modern word-wrap */
    }
}