/* ==========================================================
   CDSHARMA.IN — DrikPanchang-Style Traditional Theme
   मरून/लाल + केसरिया + सुनहरा + क्रीम बैकग्राउंड
   ========================================================== */
:root {
    --maroon-deep: #5c0f14;
    --maroon: #8b1a1f;
    --red: #a91e22;
    --saffron: #e56a1e;
    --saffron-light: #f5934a;
    --gold: #c8941f;
    --gold-light: #e8c165;
    --cream: #fdf6e8;
    --cream-dark: #f7ecd0;
    --text-dark: #2e1a12;
    --text-muted: #6e5a48;
    --white: #ffffff;
    --border-gold: #d9b45c;
    --radius: 6px;
    --shadow: 0 3px 10px rgba(92, 15, 20, 0.15);
    --gradient-header: linear-gradient(180deg, var(--maroon-deep) 0%, var(--maroon) 100%);
    --gradient-cta: linear-gradient(180deg, var(--saffron-light) 0%, var(--saffron) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ⚠️ सुरक्षा-कवच: कहीं भी कोई एक तत्व गलती से चौड़ा हो जाए तो भी पूरा पेज
   क्षैतिज रूप से स्क्रॉल न हो सके (मोबाइल पर सबसे आम टूटन इसी वजह से होती है) */
html, body { max-width: 100%; overflow-x: hidden; }

body {
    font-family: var(--font-hindi), 'Poppins', Arial, sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.55;
    font-size: 15px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
svg { max-width: 100%; height: auto; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- Top strip ---------- */
.top-strip {
    background: var(--maroon-deep);
    color: var(--gold-light);
    font-size: .74rem;
    text-align: center;
    padding: 5px 10px;
    letter-spacing: .3px;
    white-space: nowrap; overflow-x: auto; scrollbar-width: none;
}
.top-strip::-webkit-scrollbar { display: none; }
@media (max-width: 380px) { .top-strip { font-size: .68rem; text-align: center; } }

/* ---------- Header (fully responsive, no overlap) ---------- */
.site-header {
    background: var(--gradient-header);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 3px solid var(--gold);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; gap: 10px; flex-wrap: nowrap;
}
.logo {
    font-size: 1.3rem; font-weight: 800; color: var(--cream);
    display: flex; align-items: center; gap: 6px; flex-shrink: 1; min-width: 0;
    white-space: nowrap; overflow: hidden;
}
.logo .om { color: var(--gold-light); font-size: 1.5rem; flex-shrink: 0; }
.logo-text { overflow: hidden; text-overflow: ellipsis; }
.logo-accent { color: var(--gold-light); }

.desktop-nav { flex-shrink: 1; min-width: 0; }
.nav-links { display: flex; gap: 4px; list-style: none; flex-wrap: wrap; }
.nav-links a {
    font-weight: 600; color: var(--cream); font-size: .88rem;
    padding: 8px 10px; border-radius: 3px; transition: background .15s; white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,0.12); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-cta {
    background: var(--gradient-cta); color: var(--white); padding: 8px 16px;
    border-radius: 3px; font-weight: 700; font-size: .82rem; border: 1px solid var(--gold);
    white-space: nowrap; flex-shrink: 0;
}
.header-cta .cta-short { display: none; }
.menu-toggle {
    display: none; font-size: 1.4rem; background: none; border: none; color: var(--cream);
    cursor: pointer; flex-shrink: 0; width: 36px; height: 36px; line-height: 1;
}

/* मोबाइल स्लाइड-डाउन मेनू */
.mobile-nav {
    display: none; max-height: 0; overflow: hidden; background: var(--maroon);
    transition: max-height .3s ease;
}
.mobile-nav.open { max-height: 500px; overflow-y: auto; }
.mobile-nav-links { list-style: none; padding: 8px; }
.mobile-nav-links li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav-links a {
    display: block; padding: 13px 14px; color: var(--cream); font-weight: 600; font-size: .92rem;
}
.mobile-nav-links a:active { background: rgba(255,255,255,0.1); }


/* ---------- Hero Banner ---------- */
.hero {
    background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 55%, var(--saffron) 140%);
    color: var(--cream);
    padding: 46px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--gold);
}
/* बड़ा, धीरे-धीरे घूमता स्वस्तिक — बैकग्राउंड में */
.hero-swastik-bg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    font-size: 26rem; line-height: 1; color: rgba(255,255,255,0.05);
    animation: heroSwastikSpin 90s linear infinite; pointer-events: none; z-index: 0;
    user-select: none;
}
@keyframes heroSwastikSpin { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }

/* इधर-उधर आते-जाते टिमटिमाते तारे */
.hero-stars { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-star {
    position: absolute; width: 3px; height: 3px; background: var(--gold-light); border-radius: 50%;
    opacity: 0; animation: heroStarMove linear infinite, heroStarTwinkle ease-in-out infinite;
    box-shadow: 0 0 4px 1px rgba(255,224,153,0.8);
}
@keyframes heroStarMove {
    0% { transform: translate(0, 0); }
    50% { transform: translate(30px, -18px); }
    100% { transform: translate(-10px, 12px); }
}
@keyframes heroStarTwinkle { 0%,100% { opacity: 0; } 50% { opacity: 1; } }

/* वैकल्पिक अपलोड की गई बैकग्राउंड इमेज (एडमिन-नियंत्रित साइज़/opacity) */
.hero-bg-image {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    z-index: 0; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; color: var(--white); }
.hero .tagline { font-size: 1.05rem; color: var(--gold-light); margin-bottom: 22px; font-weight: 600; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .hero-swastik-bg { font-size: 14rem; } }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 28px; border-radius: 8px;
    font-weight: 700; font-size: .92rem; cursor: pointer; border: 1px solid transparent;
    letter-spacing: .2px; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    box-shadow: 0 3px 10px rgba(92,15,20,.15);
    position: relative; overflow: hidden;
}
.btn::before {
    content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(255,255,255,.28), transparent);
    transform: translateX(-120%); transition: transform .5s ease;
}
.btn:hover::before { transform: translateX(120%); }
.btn-gold { background: var(--gradient-cta); color: var(--white); border-color: var(--gold-light); }
.btn-outline { border: 2px solid var(--gold-light); color: var(--gold-light); background: transparent; box-shadow: none; }
.btn-purple { background: linear-gradient(135deg, #6a3fa0, #4a2570); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #c0392b, #922b21); color: #fff; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(92,15,20,.28); filter: brightness(1.05); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(92,15,20,.2); }
.btn-outline:hover { background: rgba(197,148,31,.12); box-shadow: 0 4px 14px rgba(197,148,31,.2); }
.btn-submit {
    display: block; width: 100%; padding: 13px 20px; border-radius: 8px; border: none;
    background: var(--gradient-cta); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer;
    box-shadow: 0 4px 14px rgba(92,15,20,.22); transition: transform .18s ease, box-shadow .18s ease;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(92,15,20,.32); }
.btn-submit:active { transform: translateY(0); }

/* ---------- सोशल-शेयर बटन ---------- */
.social-share-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0; padding: 16px 18px; background: linear-gradient(135deg, var(--cream), #fff); border-radius: 14px; border: 1px solid var(--border-gold); box-shadow: 0 3px 12px rgba(92,15,20,.06); }
.share-label { font-size: .82rem; font-weight: 800; color: var(--maroon-deep); text-transform: uppercase; letter-spacing: .5px; }
.share-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--white); border: 1px solid var(--border-gold); cursor: pointer;
    text-decoration: none; color: var(--maroon-deep); transition: all .22s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.share-btn:hover { transform: translateY(-3px) scale(1.1); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.share-wa:hover { background: #25D366; color: #fff; border-color: #25D366; }
.share-fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-tw:hover { background: #000; color: #fff; border-color: #000; }
.share-tg:hover { background: #26A5E4; color: #fff; border-color: #26A5E4; }
.share-copy:hover { background: var(--saffron); color: #fff; border-color: var(--saffron); }
@media (max-width: 400px) { .social-share-box { padding: 12px 14px; } .share-btn { width: 36px; height: 36px; } }

/* ---------- उत्पाद/ब्लॉग-विवरण पेज — mobile-first responsive ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) {
    .detail-grid { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
}
.detail-image-box {
    width: 100%; aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); background: var(--cream); display: flex; align-items: center; justify-content: center;
}
.detail-image-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-image-placeholder { font-size: 4rem; color: var(--border-gold); }

/* ---------- Sections ---------- */
.section { padding: 40px 16px; }
.section-title {
    text-align: center; font-size: 1.55rem; font-weight: 800; color: var(--maroon-deep);
    margin-bottom: 6px; border-bottom: 2px solid var(--gold); display: inline-block; padding-bottom: 6px;
}
.section-title-wrap { text-align: center; margin-bottom: 28px; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-top: 10px; font-size: .92rem; }

/* ---------- Panchang widget (dense, table-like) ---------- */
.panchang-box {
    background: var(--white); border: 1px solid var(--border-gold); border-radius: var(--radius);
    box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; margin-top: 20px;
}
.panchang-item { padding: 16px 10px; text-align: center; border-right: 1px solid var(--cream-dark); background: var(--white); }
.panchang-item:nth-child(even) { background: var(--cream); }
.panchang-item:last-child { border-right: none; }
.panchang-item .label { font-size: .74rem; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .4px; }
.panchang-item .value { font-size: 1rem; font-weight: 800; color: var(--maroon); }

/* ---------- Rashi Grid ---------- */
.rashi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.rashi-card {
    background: var(--white); border: 1px solid var(--border-gold); border-radius: var(--radius);
    padding: 16px 8px; text-align: center; box-shadow: var(--shadow); transition: background .15s;
}
.rashi-card:hover { background: var(--cream-dark); }
.rashi-card .symbol { font-size: 1.7rem; color: var(--saffron); }
.rashi-card .name { font-weight: 700; margin-top: 6px; font-size: .88rem; color: var(--maroon-deep); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card {
    background: var(--white); border: 1px solid var(--border-gold); border-radius: var(--radius);
    padding: 22px 18px; box-shadow: var(--shadow); border-top: 3px solid var(--saffron);
}
.service-card h3 { color: var(--maroon-deep); margin-bottom: 8px; font-size: 1.05rem; }
.service-card p { color: var(--text-muted); margin-bottom: 12px; font-size: .88rem; }
.service-price { color: var(--maroon); font-weight: 800; font-size: .92rem; }

/* ---------- Forms ---------- */
.form-box { background: var(--white); border: 1px solid var(--border-gold); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; max-width: 560px; margin: 0 auto; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 700; font-size: .86rem; color: var(--maroon-deep); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 12px; border: 1.5px solid var(--border-gold); border-radius: 3px; font-size: .92rem; background: var(--cream);
    font-family: inherit; resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--saffron); }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-deep); color: #e8d4b8; padding: 40px 16px 16px; border-top: 4px solid var(--gold); }
.footer-logo { font-size: 1.3rem; font-weight: 800; color: var(--cream); display: flex; align-items: center; gap: 6px; }
.footer-logo .om { color: var(--gold-light); font-size: 1.5rem; }
.footer-logo .logo-accent { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-grid h4 { color: var(--gold-light); margin-bottom: 12px; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 6px; }
.footer-grid a { display: block; color: #d8c2a0; margin-bottom: 7px; font-size: .85rem; }
.footer-bottom { text-align: center; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12); font-size: .78rem; color: #b89a72; }

/* ---------- Go-to-Top बटन — आधुनिक gradient + glassmorphism डिज़ाइन ---------- */
.go-to-top {
    position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--maroon-deep), var(--saffron));
    color: #fff; border: none; backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 6px 20px rgba(92,15,20,.35), 0 0 0 1px rgba(255,255,255,.15) inset;
    z-index: 200; opacity: 0; visibility: hidden;
    transform: translateY(14px) scale(.9); transition: opacity .3s ease, visibility .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease;
}
.go-to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.go-to-top:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 10px 26px rgba(92,15,20,.45), 0 0 0 1px rgba(255,255,255,.25) inset; }
.go-to-top:active { transform: translateY(-1px) scale(.98); }
@media (max-width: 480px) {
  .go-to-top { width: 42px; height: 42px; bottom: 18px; right: 18px; }
}

/* ---------- Responsive (Mobile-First) ---------- */
@media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .rashi-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .desktop-nav { display: none; }
    .menu-toggle { display: flex; align-items: center; justify-content: center; }
    .mobile-nav { display: block; }
    .header-cta .cta-full { display: none; }
    .header-cta .cta-short { display: inline; }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 1.5rem; }
    .hero .tagline { font-size: .92rem; }
    .panchang-box { grid-template-columns: repeat(2, 1fr); }
    .panchang-item { border-bottom: 1px solid var(--cream-dark); }
    .rashi-grid { grid-template-columns: repeat(3, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-box { padding: 18px; }
    .logo { font-size: 1.1rem; }
    .header-cta { padding: 8px 12px; font-size: .78rem; }
}
@media (max-width: 380px) {
    .header-cta { display: none; }
    .top-strip { font-size: .68rem; }
}

/* ---------- कुंडली मिलान पेज — mobile-first responsive grid ---------- */
/* डिफ़ॉल्ट (मोबाइल): हमेशा single-column — किसी media-query पर निर्भर नहीं रहना,
   चौड़ी स्क्रीन (900px+) पर ही 2-कॉलम में बदलना (min-width, ज़्यादा भरोसेमंद) */
.matching-form-grid, .matching-chart-grid {
    display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 900px) {
    .matching-form-grid, .matching-chart-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ==========================================================
   दिव्य डिज़ाइन एलिमेंट्स (Divine Design Elements) — v2
   ========================================================== */

/* चमकता हुआ हीरो बैनर */
.divine-hero { position: relative; overflow: hidden; }
.divine-glow {
    position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(232,193,101,0.35) 0%, transparent 70%);
    animation: divineGlow 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes divineGlow {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.9; transform: translateX(-50%) scale(1.15); }
}
.om-symbol {
    font-size: 3rem; color: var(--gold-light); margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(232,193,101,0.8), 0 0 40px rgba(232,193,101,0.4);
    animation: omPulse 3s ease-in-out infinite;
}
@keyframes omPulse {
    0%, 100% { text-shadow: 0 0 20px rgba(232,193,101,0.8), 0 0 40px rgba(232,193,101,0.4); }
    50% { text-shadow: 0 0 30px rgba(232,193,101,1), 0 0 60px rgba(232,193,101,0.6); }
}

/* दिव्य कार्ड्स — hover पर सुनहरी चमक */
.divine-card { position: relative; transition: transform .25s, box-shadow .25s; overflow: hidden; }
.divine-card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(232,193,101,0.3), transparent);
    transition: left .5s;
}
.divine-card:hover::before { left: 100%; }
.divine-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 30px rgba(197,148,31,0.35), 0 0 0 1px var(--gold);
}

/* पंचांग कार्ड्स ग्रिड (विस्तृत) */
.panchang-grid-divine {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px;
}
.panchang-card {
    background: linear-gradient(160deg, var(--white) 0%, var(--cream) 100%);
    border: 1px solid var(--border-gold); border-radius: 10px; padding: 16px 10px;
    text-align: center; box-shadow: var(--shadow); transition: transform .2s;
}
.panchang-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.pc-icon { font-size: 1.4rem; margin-bottom: 4px; }
.pc-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.pc-value { font-size: 1rem; font-weight: 800; color: var(--maroon); margin-top: 4px; }
.pc-sub { font-size: .7rem; color: var(--saffron); margin-top: 2px; }

.panchak-alert {
    background: linear-gradient(90deg, #fff3e0, #ffe0b2); border: 1px solid var(--saffron);
    border-radius: 8px; padding: 12px 16px; text-align: center; font-weight: 700;
    color: #8b4513; margin-top: 20px;
}

.muhurat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.muhurat-box { border-radius: 10px; padding: 16px; box-shadow: var(--shadow); }
.muhurat-box.inauspicious { background: linear-gradient(160deg, #fff, #fdecea); border: 1px solid #e8a5a0; }
.muhurat-box.auspicious { background: linear-gradient(160deg, #fff, #eaf7ea); border: 1px solid #a5d6a7; }
.muhurat-box h4 { text-align: center; margin-bottom: 10px; font-size: .95rem; }
.mh-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(0,0,0,0.08); font-size: .85rem; }
.mh-row:last-child { border-bottom: none; }
.mh-row b { color: var(--maroon); }

/* ---------- चौघड़िया — "छुए तो खुले, छुए तो बंद" स्मूथ-स्लाइड ---------- */
.choghadiya-slide { margin-top: 20px; border: 1px solid var(--border-gold); border-radius: 10px; background: #fff; overflow: hidden; }
.choghadiya-slide summary {
    cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--maroon-deep); font-size: .92rem;
    list-style: none; display: flex; align-items: center; justify-content: space-between;
    background: var(--cream);
}
.choghadiya-slide summary::-webkit-details-marker { display: none; }
.choghadiya-slide summary::after { content: '▾'; transition: transform .3s ease; }
.choghadiya-slide[open] summary::after { transform: rotate(180deg); }
.choghadiya-slide-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 18px;
    animation: choghadiyaSlideDown .3s ease;
}
@keyframes choghadiyaSlideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.choghadiya-col h5 { text-align: center; font-size: .85rem; color: var(--maroon-deep); margin-bottom: 8px; }
.choghadiya-row { display: flex; justify-content: space-between; padding: 5px 8px; border-radius: 4px; font-size: .78rem; margin-bottom: 3px; }
.choghadiya-row.shubh { background: #eaf7ea; color: #1e5c20; }
.choghadiya-row.ashubh { background: #fdecea; color: #8a2a26; }
@media (max-width: 600px) { .choghadiya-slide-inner { grid-template-columns: 1fr; } }

/* ---------- राशिफल — शुभ/अशुभ बॉक्स responsive ---------- */
.shubh-ashubh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
@media (max-width: 600px) { .shubh-ashubh-grid { grid-template-columns: 1fr; } }

/* ---------- होमपेज ग्राहकों की राय — swipeable कार्ड ---------- */
.testimonial-scroll { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 16px; -webkit-overflow-scrolling: touch; }
.testimonial-scroll::-webkit-scrollbar { height: 6px; }
.testimonial-scroll::-webkit-scrollbar-thumb { background: var(--border-gold); border-radius: 10px; }
.testimonial-card { flex: 0 0 260px; scroll-snap-align: start; background: var(--white); border: 1px solid var(--border-gold); border-radius: 12px; padding: 20px; text-align: center; box-shadow: var(--shadow); }
.testimonial-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block; border: 2px solid var(--gold); }
.testimonial-avatar-placeholder { display: flex; align-items: center; justify-content: center; font-size: 1.6rem; background: var(--cream); }
.testimonial-quote { font-style: italic; font-size: .88rem; color: var(--text-dark); margin-bottom: 12px; line-height: 1.6; }
.testimonial-name { color: var(--maroon-deep); font-size: .85rem; }
@media (min-width: 900px) { .testimonial-scroll { overflow-x: visible; flex-wrap: wrap; justify-content: center; } .testimonial-card { flex: 1 1 280px; max-width: 300px; } }

/* ---------- पंचांग — तारीख/समय चयन responsive ---------- */
.panchang-date-time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
@media (max-width: 480px) { .panchang-date-time-row { grid-template-columns: 1fr; } }

/* ---------- राशिफल — तारीख चयन responsive ---------- */
.horo-date-box { padding: 16px; }
@media (max-width: 480px) { .horo-date-box { padding: 12px; } }

/* ---------- सामान्य संगति (sangati.php) — फॉर्म व परिणाम responsive ---------- */
.sangati-person-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 16px; }
@media (max-width: 600px) { .sangati-person-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- ज्योतिषीय चैट (chat.php) — responsive ---------- */
.chat-layout { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
@media (max-width: 700px) { .chat-layout { grid-template-columns: 1fr; } }
.chat-sidebar { background: var(--white); border: 1px solid var(--border-gold); border-radius: var(--radius); padding: 14px; }
.chat-thread-link { display: block; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--text-dark); font-size: .82rem; margin-bottom: 4px; }
.chat-thread-link:hover, .chat-thread-link.active { background: var(--cream); color: var(--maroon-deep); font-weight: 700; }
.chat-main { min-height: 400px; }
.chat-messages-box { background: var(--white); border: 1px solid var(--border-gold); border-radius: var(--radius); padding: 16px; max-height: 55vh; overflow-y: auto; margin-bottom: 12px; }
.chat-bubble { max-width: 85%; padding: 10px 14px; border-radius: 12px; margin-bottom: 10px; font-size: .88rem; line-height: 1.6; white-space: pre-wrap; }
.chat-bubble-user { background: var(--maroon-deep); color: #fdf6e8; margin-right: auto; border-bottom-right-radius: 2px; }
.chat-bubble-system, .chat-bubble-admin { background: var(--cream); color: var(--text-dark); margin-left: auto; border-bottom-left-radius: 2px; }
.chat-bubble-admin { border: 1px solid var(--accent-gold); }
.chat-input-form { display: flex; gap: 8px; }
.chat-input-form input { flex: 1; padding: 12px 14px; border: 1.5px solid var(--border-gold); border-radius: 8px; font-size: .9rem; }
@media (max-width: 480px) { .chat-messages-box { max-height: 45vh; padding: 12px; } .chat-bubble { max-width: 92%; font-size: .84rem; } }

/* ---------- पंचांग — मुहूर्त-उपयुक्तता ग्रिड responsive ---------- */
.muhurat-suitability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 600px) { .muhurat-suitability-grid { grid-template-columns: 1fr; } }
.muhurat-card { border-radius: 10px; padding: 14px; border: 1px solid var(--border-gold); text-align: center; }
.muhurat-card.muhurat-shubh { background: #f0f9f0; border-color: #2d7a2d; }
.muhurat-card.muhurat-ashubh { background: #fdf0f0; border-color: #a91e22; }
.muhurat-icon { font-size: 1.4rem; margin-bottom: 4px; }
.muhurat-label { font-weight: 700; font-size: .85rem; color: var(--maroon-deep); margin-bottom: 4px; }
.muhurat-status { font-size: .8rem; margin-bottom: 6px; }
.muhurat-reasons { font-size: .7rem; color: var(--text-muted); text-align: right; }
.muhurat-reasons p { margin-bottom: 2px; }

/* ---------- सुदर्शन चक्र — 3 चार्ट (लग्न/चंद्र/सूर्य) responsive ---------- */
.sudarshan-chart-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 700px) { .sudarshan-chart-grid { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
    .panchang-grid-divine { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .panchang-grid-divine { grid-template-columns: repeat(2, 1fr); }
    .muhurat-grid { grid-template-columns: 1fr; }
    .om-symbol { font-size: 2.2rem; }
}

/* सजावटी बॉर्डर पैटर्न (सेक्शन डिवाइडर) */
.section-title-wrap::after {
    content: '✦ ✦ ✦'; display: block; text-align: center; color: var(--gold);
    letter-spacing: 8px; font-size: .8rem; margin-top: 8px; opacity: .6;
}
