:root {
    --theme-purple: #3e2a5e;
    --theme-purple-dark: #2a1c40;
    --theme-purple-light: #523a7a;
    --accent-gold: #ffb400;
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header Enhancements */
.top-navbar {
    /* background is controlled by scroll logic in header.blade.php */
    border-bottom: none;
    padding: 10px 0;
    min-height: 70px;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.top-navbar.scrolled {
    background: #f2edef;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.astroway-logo-ntext {
    flex-shrink: 0;
}

/* Shift right cluster (buttons, language, sign-in) to the left */
.top-navbar .container>.align-items-center:last-child {
    margin-right: 30px !important;
}

.astroway-logo-text {
    color: #f7f2f4 !important;
    font-weight: 800 !important;
    font-size: 26px !important;
    letter-spacing: -0.5px;
    line-height: 1;
    transition: font-size 0.35s ease, color 0.35s ease !important;
}

/* App Logo - only main logo */
.app-logo-img {
    height: 100px !important;
    width: auto !important;
    transition: height 0.35s ease !important;
}

/* Scrolled state sizing (shrink) */
nav.scrolled .app-logo-img {
    height: 50px !important;
}

nav.scrolled .astroway-logo-text {
    font-size: 20px !important;
}

nav.scrolled .astroway-logo-subtext {
    font-size: 9px !important;
}

/* Logo colors when header is scrolled (solid bg) */
nav.scrolled .astroway-logo-text,
nav.scrolled .astroway-logo-subtext {
    color: #6f42c1 !important;
    transition: color 0.35s ease, font-size 0.35s ease !important;
}

.astroway-logo-subtext {
    color: #f7f2f4 !important;
    font-size: 11px !important;
    transition: font-size 0.35s ease, color 0.35s ease !important;
}

@media (max-width: 1400px) {
    .astroway-logo-text {
        font-size: 18px !important;
    }

    .astroway-logo-subtext {
        font-size: 9px !important;
        letter-spacing: 0.2px;
    }
}

.btn-chat-astro {
    background: var(--white) !important;
    border: 1.5px solid var(--theme-purple) !important;
    color: var(--theme-purple) !important;
    border-radius: 50px !important;
    padding: 8px 16px !important;
    /* Slightly reduced padding */
    font-weight: 600 !important;
    font-size: 13px !important;
    /* Slightly smaller font */
    transition: var(--transition-smooth) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap !important;
    /* Keep text in one line */
    flex-shrink: 0 !important;
    /* Prevent button from squashing */
    width: max-content !important;
}

.btn-chat-astro:hover {
    background: var(--theme-purple) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(62, 42, 94, 0.2);
}

.btn-chat-astro img {
    filter: invert(19%) sepia(35%) saturate(3015%) hue-rotate(238deg) brightness(92%) contrast(89%);
    width: 18px;
}

.btn-chat-astro:hover img {
    filter: invert(100%);
}

/* Login/SignUp Button */
.loginSignUp {
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    margin-left: 5px;
    transition: color 0.35s ease;
    cursor: pointer;
    vertical-align: middle;
    white-space: nowrap !important;
}

.btn.p-0 svg {
    fill: #fff;
    transition: fill 0.35s ease;
    vertical-align: middle;
}

/* Scrolled state for Sign In */
nav.scrolled .loginSignUp {
    color: #6f42c1 !important;
}

nav.scrolled .btn.p-0 svg {
    fill: #6f42c1 !important;
}

/* Main Navigation (Unified) */
.navbar-nav-unified {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 auto;
}

.navbar-nav-unified .nav-link {
    color: var(--text-dark) !important;
    font-weight: 700 !important;
    font-size: 16.5px !important;
    padding: 8px 10px !important;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

@media (max-width: 1400px) {
    .navbar-nav-unified .nav-link {
        font-size: 14px !important;
        padding: 6px 8px !important;
        gap: 4px;
    }

    .navbar-nav-unified .nav-link img {
        width: 16px;
        height: 16px;
    }
}

.navbar-nav-unified .nav-link:hover {
    color: var(--theme-purple) !important;
    transform: translateY(-1px);
}

.navbar-nav-unified .nav-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.navbar-nav-unified .nav-link:hover img {
    transform: scale(1.1);
}

.btn-chat-astro {
    background: var(--white) !important;
    border: 1.5px solid var(--theme-purple) !important;
    color: var(--theme-purple) !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    transition: var(--transition-smooth) !important;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

@media (max-width: 1400px) {
    .btn-chat-astro {
        padding: 5px 10px !important;
        font-size: 11px !important;
        gap: 4px;
    }

    .btn-chat-astro img {
        width: 14px;
    }
}

/* Home Page Service Cards */
.service-section {
    background: #f8f9fa;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    text-decoration: none !important;
    transition: var(--transition-smooth);
    border: 1px solid #fce4ec;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.05);
    width: 80%;
    aspect-ratio: 1 / 1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 64, 129, 0.15);
    /* Stronger pink glow on hover */
    border-color: #f8bbd0;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--theme-purple);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.service-icon-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 14px;
    margin: 0;
    line-height: 1.2;
}

.service-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4caf50;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.service-badge.new {
    background: #ff5722;
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .service-card {
        padding: 8px 5px;
        min-height: auto !important;
    }

    .service-title {
        font-size: 11px;
    }

    .service-icon-wrapper {
        width: 44px;
        height: 44px;
    }

    .btn-groups {
        display: none !important;
    }
}

/* ── Panchang Banner Typography & Cards ── */
.font-30 {
    font-size: 30px !important;
    font-weight: 800;
}

.font-22 {
    font-size: 22px !important;
    font-weight: 700;
}

.time-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 10px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: all 0.3s ease;
    text-align: center;
}

.time-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.panchang-details-list p {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.panchang-details-list strong {
    color: #fed8aa;
    font-weight: 700;
}

.detailed-link {
    background: #fed8aa;
    color: #222 !important;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    padding: 8px 25px !important;
    transition: all 0.3s;
    font-size: 14px;
}

.detailed-link:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(254, 216, 170, 0.4);
}

.ib-panchang-container {
    flex: 0 0 auto;
    width: 400px;
}

@media (max-width: 991px) {
    .ib-panchang-container {
        width: 100%;
        margin-top: 30px;
    }
}