:root {
    --sacred-orange: #e85d04;
    --sacred-gold: #f48c06;
    --sacred-maroon: #6a040f;
    --sacred-cream: #fff8f0;
    --sacred-dark: #370617;
    --text-dark: #2b2d42;
}

* { box-sizing: border-box; }

body {
    font-family: 'Noto Sans', 'Noto Sans Devanagari', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
}

.text-sacred { color: var(--sacred-orange) !important; }
.bg-sacred { background: linear-gradient(135deg, var(--sacred-maroon), var(--sacred-dark)) !important; }
.bg-sacred-light { background-color: var(--sacred-cream); }
.badge.bg-sacred-light { background-color: #fff3e6 !important; color: var(--text-dark) !important; border: 1px solid #ffe8d6; }

/* Parikrama cards */
.parikrama-card { transition: transform 0.3s, box-shadow 0.3s; border-radius: 12px !important; overflow: hidden; }
.parikrama-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important; }
.parikrama-icon {
    width: 56px; height: 56px; min-width: 56px;
    background: linear-gradient(135deg, var(--sacred-orange), var(--sacred-gold));
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem;
}
.parikrama-meta .badge { font-weight: 500; font-size: 0.75rem; }
.importance-section h4 { font-size: 0.95rem; }
.parikrama-guidelines { padding-left: 1.2rem; }
.parikrama-guidelines li { padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.parikrama-guidelines li:last-child { border-bottom: none; }

.btn-sacred {
    background: linear-gradient(135deg, var(--sacred-orange), var(--sacred-gold));
    border: none;
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-sacred:hover {
    background: linear-gradient(135deg, var(--sacred-gold), var(--sacred-orange));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(232, 93, 4, 0.4);
}

.badge.bg-sacred { background: var(--sacred-orange) !important; }

/* Top Bar */
.top-bar {
    background: #f8f9fa;
    color: var(--text-dark);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    z-index: 1050;
    overflow: visible;
}
.top-bar a { color: var(--text-dark); text-decoration: none; margin-right: 15px; }
.top-bar a:hover { color: var(--sacred-orange); }
.top-contact a { font-weight: 500; }

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    overflow: visible;
}
.top-contact {
    flex-shrink: 0;
}
.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    position: relative;
    z-index: 1051;
    overflow: visible;
}
.top-search-form {
    display: flex;
    flex: 0 1 280px;
    width: 280px;
    max-width: 100%;
    position: relative;
    z-index: 1;
}
.top-search-form .form-control {
    border-radius: 20px 0 0 20px;
    border: 1px solid #ced4da;
    color: var(--text-dark);
    background: #fff;
    font-size: 0.85rem;
}
.top-search-form .form-control:focus {
    border-color: var(--sacred-orange);
    box-shadow: 0 0 0 0.15rem rgba(232, 93, 4, 0.15);
}
.top-search-form .btn { border-radius: 0 20px 20px 0; }

.lang-switcher.dropdown {
    flex: 0 0 auto;
    min-width: 160px;
    max-width: 280px;
    position: relative;
    z-index: 1052;
}
.lang-switcher.dropdown.show {
    z-index: 1060;
}
.lang-switcher.dropdown .dropdown-toggle {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
    padding: 4px 8px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #ced4da;
}
.lang-switcher.dropdown .dropdown-toggle:hover,
.lang-switcher.dropdown.show .dropdown-toggle {
    color: var(--sacred-orange);
    border-color: var(--sacred-orange);
}
.lang-dropdown {
    max-height: 320px;
    overflow-y: auto;
    min-width: 280px;
    border: 1px solid #dee2e6;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1060 !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 4px !important;
    background: #fff;
}
.lang-dropdown .dropdown-item {
    color: var(--text-dark);
    font-size: 0.9rem;
    padding: 8px 14px;
}
.lang-dropdown .dropdown-item:hover {
    background: var(--sacred-cream);
    color: var(--sacred-dark);
}
.lang-dropdown .dropdown-item.active {
    background: var(--sacred-orange);
    color: #fff;
}
.lang-dropdown .dropdown-item.active .lang-name-native { color: rgba(255,255,255,0.9); }
.lang-name-en { font-weight: 600; }
.lang-name-native { color: #666; margin-left: 4px; font-weight: 400; }
html[lang="ur"], html[lang="sd"] { direction: rtl; }
html[lang="ur"] .main-header .navbar-nav, html[lang="sd"] .main-header .navbar-nav { margin-right: auto !important; margin-left: 0 !important; }

/* Header */
.main-header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    z-index: 1030;
    position: relative;
}
.main-header .navbar {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}
.top-bar .container {
    overflow: visible;
}
.navbar-brand {
    display: inline-flex;
    align-items: center;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    margin-right: 1rem;
    max-width: min(300px, 48vw);
}
.navbar-brand .site-logo {
    display: block;
    height: 64px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
.navbar-brand .brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--sacred-maroon);
}
.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
}
.nav-link:hover, .nav-item.show .nav-link { color: var(--sacred-orange) !important; }
.dropdown-menu { border: none; box-shadow: 0 5px 20px rgba(0,0,0,0.1); border-radius: 8px; }
.dropdown-item:hover { background: var(--sacred-cream); color: var(--sacred-orange); }

/* Hero */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(106,4,15,0.85), rgba(55,6,23,0.9)),
                var(--hero-photo, url('../images/ayodhya-hero.svg')) center/cover no-repeat;
    min-height: 75vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-section.hero-slider {
    display: block;
    min-height: 0;
    align-items: stretch;
    background: #000;
    width: 100%;
    padding: 0;
}
.hero-slider {
    background: #000;
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}
.hero-slider .hero-carousel {
    width: 100%;
    max-width: 100%;
    height: min(70vh, 680px);
    min-height: 320px;
    margin: 0;
}
.hero-slider .carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}
.hero-slider .carousel-item {
    width: 100%;
    height: 100%;
    min-height: 320px;
}
.hero-slide-img {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: 50% 22%;
    display: block;
}
.hero-carousel-indicators {
    margin-bottom: 1rem;
}
.hero-carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.85);
    background-color: transparent;
}
.hero-carousel-indicators .active {
    background-color: var(--sacred-gold);
    border-color: var(--sacred-gold);
}
.hero-carousel-control {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    opacity: 0.85;
}
.hero-carousel-control.carousel-control-prev {
    left: 1rem;
}
.hero-carousel-control.carousel-control-next {
    right: 1rem;
}
.hero-overlay { position: absolute; inset: 0; }
.hero-content { position: relative; z-index: 2; }
.min-vh-75 { min-height: 75vh; display: flex; align-items: center; }
.hero-title { font-size: 3rem; font-weight: 700; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero-subtitle { font-size: 1.25rem; opacity: 0.95; }

/* Sections */
.section-padding { padding: 10px 0; }
.section-badge {
    display: inline-block;
    background: var(--sacred-cream);
    color: var(--sacred-orange);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.section-title { font-size: 2.2rem; font-weight: 700; color: var(--sacred-dark); margin-bottom: 20px; }

/* Cards */
.temple-card, .blog-card, .festival-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}
.temple-card:hover, .blog-card:hover, .festival-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.guide-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}
.guide-card:hover { transform: translateY(-3px); }
.guide-icon {
    width: 70px; height: 70px;
    background: var(--sacred-cream);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: var(--sacred-orange);
}
.festival-date {
    color: var(--sacred-orange);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Page Banner — compact, theme colors only */
.page-banner {
    background: linear-gradient(135deg, var(--sacred-maroon), var(--sacred-dark));
    color: #fff;
    padding: 12px 0 10px;
    min-height: 0;
}
.page-banner--photo {
    /* Keep theme colors; ignore photo for compact headers */
    background: linear-gradient(135deg, var(--sacred-maroon), var(--sacred-dark));
}
.page-banner .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.page-banner h1 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
}
.page-banner .breadcrumb {
    margin-top: 4px;
    margin-bottom: 0;
    padding: 0;
    font-size: 0.8rem;
}
.page-banner p {
    font-size: 0.85rem;
    line-height: 1.35;
    margin-top: 0.25rem !important;
    margin-bottom: 0 !important;
}
.breadcrumb-item a { color: var(--sacred-gold); text-decoration: none; }
.breadcrumb-item.active { color: #ddd; }
.breadcrumb-item + .breadcrumb-item::before { color: #aaa; }
/* Content */
.content-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sacred-maroon);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--sacred-cream);
}
.content-section h3 { font-size: 1.3rem; color: var(--sacred-dark); margin-top: 20px; }
.blog-content h3 { margin-top: 25px; }
.sidebar-card {
    background: var(--sacred-cream);
    padding: 20px;
    border-radius: 12px;
}
.sidebar-card h4 { font-size: 1.1rem; font-weight: 700; color: var(--sacred-maroon); margin-bottom: 15px; }
.sidebar-card a { color: var(--sacred-orange); text-decoration: none; }
.sidebar-card a:hover { text-decoration: underline; }
.sidebar-card li { padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.sidebar-nav .nav-link { color: var(--text-dark); padding: 8px 15px; border-radius: 6px; }
.sidebar-nav .nav-link:hover { background: var(--sacred-cream); color: var(--sacred-orange); }

/* Placeholder images */
.img-placeholder { background: var(--sacred-cream); overflow: hidden; }
.janaki-gallery-item { height: 240px; }
@media (min-width: 992px) {
    .janaki-gallery-item { height: 280px; }
}
.placeholder-bg {
    background: linear-gradient(135deg, var(--sacred-cream), #ffe8d6);
    display: flex; align-items: center; justify-content: center;
    min-height: 150px;
}
.placeholder-bg::after {
    content: '🛕';
    font-size: 3rem;
    opacity: 0.3;
}
.object-fit-cover { object-fit: cover; }

/* Footer */
.main-footer { margin-top: 0; }
.footer-top {
    background: var(--sacred-dark);
    color: #ccc;
    padding: 60px 0 40px;
}
.footer-top h5 { color: #fff; font-weight: 700; margin-bottom: 20px; }
.footer-links li { padding: 4px 0; }
.footer-links a { color: #bbb; text-decoration: none; }
.footer-links a:hover { color: var(--sacred-gold); }
.footer-contact li { padding: 8px 0; }
.footer-contact i { margin-right: 10px; color: var(--sacred-gold); }
.social-links a {
    display: inline-flex; width: 40px; height: 40px;
    background: rgba(255,255,255,0.1); border-radius: 50%;
    align-items: center; justify-content: center;
    color: #fff; margin-right: 10px; font-size: 1.1rem;
    transition: background 0.3s;
}
.social-links a:hover { background: var(--sacred-orange); color: #fff; }
.footer-bottom {
    background: #1a0208;
    color: #888;
    padding: 15px 0;
    font-size: 0.9rem;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background: var(--sacred-cream);
    color: var(--sacred-maroon);
    font-weight: 600;
}
.accordion-button:focus { box-shadow: none; border-color: var(--sacred-cream); }

/* Contact */
.contact-form .form-control:focus {
    border-color: var(--sacred-orange);
    box-shadow: 0 0 0 0.2rem rgba(232, 93, 4, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider .hero-carousel {
        height: 48vh;
        min-height: 260px;
    }
    .hero-slide-img {
        min-height: 260px;
        object-position: 50% 22%;
    }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.6rem; }
    .section-padding { padding: 10px 0; }
    .page-banner { padding: 10px 0 8px; }
    .page-banner h1 { font-size: 1.2rem; }
    .page-banner .breadcrumb { font-size: 0.75rem; margin-top: 2px; }
    .navbar-brand {
        max-width: min(190px, 58vw);
    }
    .navbar-brand .site-logo {
        height: 48px;
    }
    .top-bar .top-contact { display: none; }
    .top-bar-inner { gap: 8px; }
    .top-bar-actions { width: 100%; margin-left: 0; gap: 8px; }
    .top-search-form { flex: 1 1 auto; width: auto; }
    .lang-switcher.dropdown { flex: 0 0 auto; max-width: 42%; min-width: 120px; }
}

/* Panchang */
.panchang-widget .panchang-limb {
    background: #fffaf5;
    border: 1px solid rgba(139, 69, 19, 0.12);
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    height: 100%;
}
.panchang-limb-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8b4513;
    margin-bottom: 0.25rem;
}
.panchang-summary .table th,
.panchang-summary .table td {
    vertical-align: middle;
}
.panchang-sheet {
    background: #fffdf8;
    border: 1px solid rgba(139, 69, 19, 0.16) !important;
    overflow: hidden;
}
.panchang-sheet-head {
    text-align: center;
    padding: 1.35rem 1rem 1rem;
    background: linear-gradient(180deg, #fff4e4 0%, #fffdf8 100%);
    border-bottom: 1px solid rgba(139, 69, 19, 0.12);
}
.panchang-invocation {
    color: #9a3412;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}
.panchang-date-line {
    font-size: 1.05rem;
    color: #5c3d2e;
}
.panchang-date-line strong {
    margin-left: 0.35rem;
    font-size: 1.2rem;
}
.panchang-block {
    padding: 1.15rem 1.25rem 0.4rem;
}
.panchang-block + .panchang-block,
.panchang-block-times {
    border-top: 1px solid rgba(139, 69, 19, 0.1);
}
@media (min-width: 992px) {
    .panchang-block.col-lg-6:first-child {
        border-right: 1px solid rgba(139, 69, 19, 0.1);
        border-top: 0;
    }
}
.panchang-block h2 {
    font-size: 1.05rem;
    color: #9a3412;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(139, 69, 19, 0.12);
}
.panchang-subhead {
    font-size: 0.95rem;
    color: #8b4513;
    margin: 0.25rem 0 0.5rem;
}
.panchang-subhead-good { color: #3f6b32; }
.panchang-subhead-bad { color: #9a3412; }
.panchang-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.38rem 0;
    border-bottom: 1px dashed rgba(139, 69, 19, 0.12);
    color: #3f2a1d;
}
.panchang-row-label {
    flex: 0 0 9.5rem;
    font-weight: 600;
    color: #8b4513;
}
.panchang-row-label::before {
    content: "🔅 ";
}
.panchang-till {
    color: #9a3412;
    font-weight: 600;
    white-space: nowrap;
}
.panchang-karana-line {
    display: block;
}
.panchang-bala-note {
    color: #7a6558;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}
.panchang-bala-list {
    line-height: 1.6;
}
@media (max-width: 575.98px) {
    .panchang-row {
        flex-direction: column;
        gap: 0.1rem;
    }
    .panchang-row-label {
        flex-basis: auto;
    }
}
.alert-sacred {
    background: #fff8ef;
    border-color: rgba(139, 69, 19, 0.2);
    color: #5c3d2e;
}
.btn-outline-sacred {
    color: #8b4513;
    border-color: #8b4513;
}
.btn-outline-sacred:hover {
    background: #8b4513;
    color: #fff;
}

/* Panchang city autosuggest */
.panchang-city-grid,
.rashifal-rashi-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.panchang-city-chip,
.rashifal-rashi-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(139, 69, 19, 0.2);
    border-radius: 999px;
    background: #fff;
    color: #5c3d2e;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.2s, border-color 0.2s;
}
.panchang-city-chip:hover,
.rashifal-rashi-chip:hover {
    background: #fff8ef;
    border-color: #8b4513;
    color: #5c3d2e;
}
.panchang-city-chip.active,
.rashifal-rashi-chip.active {
    background: linear-gradient(135deg, var(--sacred-orange), var(--sacred-gold));
    border-color: transparent;
    color: #fff;
}
.panchang-city-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    margin: 0.25rem 0 0;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.panchang-city-suggestion-item {
    padding: 0.6rem 0.85rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f5;
}
.panchang-city-suggestion-item:last-child {
    border-bottom: none;
}
.panchang-city-suggestion-item:hover,
.panchang-city-suggestion-item.active {
    background: #fff8ef;
}

/* Rashifal */
.rashifal-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.rashifal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}
.rashifal-symbol {
    font-size: 2rem;
    line-height: 1;
}
.rashifal-symbol-lg {
    font-size: 3rem;
    line-height: 1;
}
.rashifal-symbol-sm {
    font-size: 1.1rem;
}
.birth-prediction-section {
    background: #fffaf5;
    border: 1px solid rgba(139, 69, 19, 0.12);
    border-radius: 0.5rem;
    padding: 0.9rem 1rem;
    height: 100%;
}
.birth-bala-yes { color: #3f6b32; font-weight: 600; }
.birth-bala-no { color: #9a3412; font-weight: 600; }
.life-basis {
    background: #fffaf5;
    border-left: 4px solid var(--sacred-maroon, #8b4513) !important;
}
.life-lahiri-note {
    background: #f8f4ee;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #5c4033;
}
.rashifal-lucky-card .rashifal-lucky-label {
    display: block;
    font-size: 0.8rem;
    color: #8b4513;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rashifal-lucky-value {
    font-size: 1.75rem;
    color: var(--sacred-maroon);
}
.rashifal-section-card h5 {
    font-size: 1rem;
}
