/* ================= ULTIMATE ANIMATED PANCHANG CSS ================= */

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fff5ec 0%, #faeee1 50%, #fceddf 100%);
    color: #2b2b2b;
    overflow-x: hidden;
    position: relative;
}

/* Ultra Premium Filter Banner */
.panchang-filter-banner {
    background: linear-gradient(135deg, #ff6600 0%, #ff3300 50%, #ff9900 100%);
    background-size: 200% 200%;
    animation: gradientAnim 5s ease infinite;
    border-radius: 28px;
    box-shadow: 0 20px 45px rgba(255, 85, 0, 0.35);
    color: white;
    position: relative;
    overflow: hidden;
}

@keyframes gradientAnim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Card Container Styling */
.as_service_box {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    border-radius: 28px !important;
    box-shadow: 0 15px 35px rgba(255, 102, 0, 0.15) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #ffd8b1;
}

.as_service_box:hover {
    transform: translateY(-10px) scale(1.01) !important;
    box-shadow: 0 25px 50px rgba(255, 102, 0, 0.3) !important;
}

/* Card Header with Flying Icon */
.astro-card-header {
    background: linear-gradient(135deg, #ffead0 0%, #ffd1a4 100%);
    border-bottom: 3px solid #ff9900;
    border-top-left-radius: 26px !important;
    border-top-right-radius: 26px !important;
    padding: 20px;
    font-weight: 900;
    color: #b33600;
    font-size: 21px;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
}

.astro-card-header span {
    display: inline-block;
    animation: flyIcon 3s ease-in-out infinite;
}

@keyframes flyIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-6px) rotate(15deg) scale(1.2); }
}

/* Dynamic Table Cells Animation */
.table {
    border-collapse: separate;
    border-spacing: 0 12px;
    width: 100%;
}

.table td {
    color: #333333 !important;
    vertical-align: middle;
    font-size: 15px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ffd8b1 !important;
    padding: 16px !important;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.4s ease;
}

.table tr:nth-child(odd) td {
    animation: pulseBox 4s ease-in-out infinite;
}

.table tr:nth-child(even) td {
    animation: floatBox 5s ease-in-out infinite;
}

@keyframes pulseBox {
    0%, 100% { box-shadow: 0 0 0px rgba(255, 102, 0, 0); border-color: #ffd8b1; }
    50% { box-shadow: 0 0 12px rgba(255, 140, 0, 0.35); border-color: #ff9900; }
}

@keyframes floatBox {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.table td::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 20%; height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: rotate(30deg);
    animation: shineSweep 6s infinite linear;
}

.table tr:nth-child(2) td::after { animation-delay: 1.5s; }
.table tr:nth-child(3) td::after { animation-delay: 3s; }

@keyframes shineSweep {
    0% { left: -60%; }
    20% { left: 120%; }
    100% { left: 120%; }
}

.table tr:hover td {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2) !important;
    color: #cc3700 !important;
    border-color: #ff6600 !important;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.3) !important;
    animation-play-state: paused;
}

/* Minimal Scrollbar */
.table-responsive {
    overflow-x: auto;
    padding-bottom: 6px;
}
.table-responsive::-webkit-scrollbar { height: 4px; }
.table-responsive::-webkit-scrollbar-track { background: rgba(255, 200, 150, 0.2); border-radius: 10px; }
.table-responsive::-webkit-scrollbar-thumb { background: #ff7700; border-radius: 10px; }

.btn-astro-filter {
    background: #ffffff;
    color: #cc3700;
    font-weight: 800;
    border-radius: 35px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-astro-filter:hover {
    background: #fff3e0;
    color: #8f2600;
    transform: scale(1.05);
}

.disha-box {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ffd8b1;
    border-left: 6px solid #ff6600 !important;
    border-radius: 14px;
    transition: all 0.4s ease;
    animation: floatBox 4s ease-in-out infinite;
}

.disha-box:hover {
    background: #fff3e0;
    transform: translateX(8px) scale(1.01);
    border-left-color: #cc3700 !important;
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.25);
    animation-play-state: paused;
}