/* =========================================================
   Book Pandit Ji — Responsive
   ========================================================= */

@media (max-width: 1240px) {
  .footer-main-grid {
    grid-template-columns: 1.25fr 0.95fr 0.95fr 1fr 0.95fr 1.3fr;
    gap: 14px;
  }
}

@media (max-width: 1199.98px) {
  .main-nav a {
    padding: 6px 7px;
    font-size: 12px;
  }

  .popular-pujas-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .hero-backdrop-visual {
    left: 30%;
    width: 42%;
    opacity: 0.85;
  }

  .hero-left-column {
    max-width: 400px;
    width: 38%;
  }

  .hero-right-column {
    width: 32%;
    min-width: 300px;
  }

  .footer-main-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 20px;
  }

  .footer-grid-col.brand-col,
  .footer-grid-col.help-col {
    grid-column: span 3;
    max-width: 100%;
  }
}

@media (max-width: 991.98px) {
  :root {
    --header-height: 72px;
  }

  .main-nav {
    display: none;
  }

  .mobile-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .brand {
    min-width: auto;
  }

  .city-btn span {
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-section {
    padding: 28px 0 30px;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-backdrop-visual {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    max-width: 440px;
    height: 320px;
    margin: 18px auto;
    opacity: 1;
    order: 2;
  }

  .hero-content-row {
    flex-direction: column;
    gap: 16px;
  }

  .hero-left-column {
    max-width: 100%;
    width: 100%;
    text-align: center;
    order: 1;
  }

  .hero-trust-badge,
  .hero-title-divider,
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-trust-stats-row {
    justify-content: center;
  }

  .hero-right-column {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    order: 3;
  }

  .filter-panel {
    position: static;
    margin-bottom: 20px;
  }

  .package-card.featured {
    transform: none;
  }

  .festive-offer-banner {
    padding: 30px 28px;
  }

  .offer-content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .offer-left-col {
    grid-column: 1 / 2;
  }

  .offer-center-col {
    grid-column: 2 / 3;
  }

  .offer-right-col {
    grid-column: 1 / -1;
    margin-top: 6px;
  }

  .offer-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .offer-feature-card.feature-card-wide {
    grid-column: auto;
  }

  .offer-feature-card.feature-card-wide .feature-card-inner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .offer-feature-card.feature-card-wide .feature-icon-circle {
    margin-bottom: 4px;
  }

  .products-showcase-panel {
    padding: 30px 24px;
  }

  .products-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .pandits-showcase-panel {
    padding: 30px 24px;
  }

  .pandits-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .how-steps-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 20px;
  }

  .how-step-col:nth-child(2) .step-flow-arrow,
  .how-step-col:nth-child(4) .step-flow-arrow {
    display: none;
  }

  .trust-stats-showcase-bar {
    padding: 20px 16px;
  }

  .stat-col:nth-child(2)::after {
    display: none;
  }

  .faq-showcase-panel {
    padding: 32px 24px;
  }

  .feat-col:nth-child(2)::after {
    display: none;
  }

  .app-newsletter-showcase-panel {
    padding: 36px 28px;
  }

  .app-cta-col {
    padding: 6px 18px 6px 6px;
  }

  .newsletter-col {
    padding: 6px 6px 6px 18px;
  }

  .guar-col:nth-child(2)::after {
    display: none;
  }

  .footer-main-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
  }

  .footer-grid-col.brand-col {
    grid-column: span 3;
    max-width: 580px;
  }

  .footer-grid-col.help-col {
    grid-column: span 3;
    max-width: 580px;
  }

  .trust-strip-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .trust-strip-card:nth-child(3)::after {
    display: none;
  }

  .section {
    padding: 52px 0;
  }
}

@media (max-width: 767.98px) {
  .announcement-bar {
    font-size: 12px;
    padding: 7px 10px;
  }

  .header-actions .btn-header-book {
    padding: 6px 12px;
    font-size: 12px;
  }

  .hero-section {
    padding: 24px 0 28px;
  }

  .hero-main-title {
    font-size: clamp(1.85rem, 6vw, 2.35rem);
  }

  .hero-trust-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
  }

  .hero-trust-stat-item {
    flex-direction: column;
    gap: 6px;
  }

  .hero-trust-stat-item .stat-info strong {
    font-size: 1.05rem;
  }

  .hero-trust-stat-item .stat-info span {
    font-size: 0.68rem;
  }

  .hero-bottom-trust-strip {
    padding: 16px 14px;
    margin-top: 24px;
    border-radius: 18px;
  }

  .hero-trust-strip-col {
    padding: 6px 4px;
  }

  .hero-trust-strip-col:nth-child(2)::after {
    display: none;
  }

  .hero-strip-icon {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .hero-strip-text strong {
    font-size: 0.88rem;
  }

  .hero-strip-text span {
    font-size: 0.7rem;
  }

  .hero-bg-ornament {
    display: none;
  }

  .services-panel {
    padding: 18px 14px;
    border-radius: 22px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .service-card {
    padding: 12px 6px 10px;
  }

  .service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
  }

  .service-icon img {
    width: 54px;
    height: 54px;
  }

  .service-card span {
    font-size: 13.5px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .stat-item {
    padding: 6px 4px;
  }

  .festive-offer-banner {
    padding: 24px 18px;
    text-align: center;
    border-radius: 20px;
  }

  .offer-hang-deco {
    width: 44px;
    opacity: 0.4;
  }

  .offer-content-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .offer-center-col {
    order: -1;
    margin-bottom: -6px;
  }

  .diya-center-img {
    max-height: 220px;
  }

  .offer-left-col {
    align-items: center;
    text-align: center;
  }

  .offer-desc {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .offer-features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .offer-feature-card {
    text-align: center;
  }

  .offer-feature-card.feature-card-wide .feature-card-inner {
    flex-direction: row;
    text-align: left;
  }

  .products-showcase-panel {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .products-panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .products-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 10px;
  }

  .category-circle {
    width: 84px;
    height: 84px;
  }

  .category-circle img {
    width: 54px;
    height: 54px;
  }

  .category-name {
    font-size: 13px;
  }

  .panel-hang-deco {
    width: 36px;
    opacity: 0.4;
  }

  .spiritual-consult-card {
    padding: 26px 20px 22px;
    border-radius: 20px;
  }

  .card-bottom-visual.astro-visual img {
    width: 115px;
    height: 115px;
  }

  .card-bottom-visual.horoscope-visual img {
    width: 130px;
    height: 130px;
  }

  .card-bottom-visual.tarot-visual img {
    width: 125px;
    height: 125px;
  }

  .consult-card-desc {
    min-height: auto;
  }

  .pandits-showcase-panel {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .pandits-panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }

  .pandits-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .popular-pandit-card {
    padding: 20px 16px;
  }

  .how-steps-timeline {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 30px;
  }

  .step-flow-arrow {
    right: 50%;
    top: auto;
    bottom: -32px;
    transform: translateX(50%) rotate(90deg);
  }

  .how-step-col:last-child .step-flow-arrow {
    display: none;
  }

  .devotee-card {
    padding: 24px 18px 24px;
  }

  .devotee-diya-visual img {
    width: 90px;
  }

  .trust-stats-showcase-bar {
    padding: 16px 12px;
  }

  .trust-stat-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 10px 4px;
  }

  .stat-col:nth-child(2n)::after {
    display: none;
  }

  .stat-number {
    font-size: 1.32rem;
  }

  .faq-showcase-panel {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .faq-left-content {
    padding-right: 0;
    text-align: center;
  }

  .faq-lotus-ornament,
  .faq-header-divider {
    justify-content: center;
  }

  .faq-diya-artwork-wrap {
    max-width: 240px;
    margin-bottom: 24px;
  }

  .custom-faq-accordion .accordion-button {
    padding: 14px 14px;
    font-size: 1rem;
  }

  .faq-q-text {
    font-size: 1rem;
  }

  .faq-shield-medallion,
  .faq-circle-icon-badge {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .faq-feature-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 10px 4px;
  }

  .feat-col:nth-child(2n)::after {
    display: none;
  }

  .app-newsletter-showcase-panel {
    padding: 32px 18px;
    border-radius: 24px;
  }

  .app-corner-watermark {
    display: none;
  }

  .app-cta-col,
  .newsletter-col {
    padding: 0;
  }

  .newsletter-col {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed rgba(213, 162, 39, 0.4);
  }

  .newsletter-input-group {
    flex-direction: column;
    padding: 10px;
    border-radius: 16px;
    gap: 10px;
  }

  .newsletter-input {
    width: 100%;
    text-align: center;
    padding: 8px 0;
  }

  .input-mail-icon {
    display: none;
  }

  .newsletter-submit-btn {
    width: 100%;
  }

  .app-guarantee-ribbon {
    padding: 16px 12px;
  }

  .guar-col:nth-child(2n)::after {
    display: none;
  }

  .guar-item {
    padding: 10px 4px;
  }

  .app-cta {
    padding: 28px 18px;
    text-align: center;
  }

  .app-badges {
    justify-content: center;
  }

  .listing-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-hero {
    text-align: center;
  }

  .profile-avatar {
    margin-bottom: 18px;
  }

  .trust-row {
    gap: 12px;
  }

  .trust-item {
    min-width: calc(50% - 12px);
  }

  .city-grid {
    grid-template-columns: 1fr;
  }

  .popular-pujas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .puja-card-media {
    height: 160px;
  }

  .puja-card-body {
    padding: 30px 12px 16px;
  }

  .puja-card-title {
    font-size: 1.05rem;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-grid-col.brand-col,
  .footer-grid-col.help-col {
    grid-column: span 1;
    max-width: 100%;
  }

  .footer-trust-strip {
    padding: 20px 16px;
  }

  .trust-strip-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .trust-strip-card {
    padding: 8px 4px;
  }

  .trust-strip-card:not(:last-child)::after {
    display: none;
  }

  .footer-legal-bar {
    gap: 10px;
    font-size: 0.76rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .payment-badges-wrap {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .container-bp {
    padding-left: 14px;
    padding-right: 14px;
  }

  .services-panel {
    padding: 14px 10px;
    border-radius: 18px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .service-card {
    padding: 10px 4px 8px;
  }

  .service-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 6px;
  }

  .service-icon img {
    width: 48px;
    height: 48px;
  }

  .service-card span {
    font-size: 13px;
  }

  .hero-main-title {
    font-size: 2.1rem;
    line-height: 1.15;
  }

  .hero-image-card {
    margin-bottom: 14px;
    padding: 4px;
  }

  .hero-image-inner {
    height: 230px;
  }

  .hero-badge-top-right,
  .hero-badge-bottom-left {
    padding: 5px 10px;
    gap: 8px;
  }

  .hero-badge-top-right {
    top: 10px;
    right: 10px;
  }

  .hero-badge-bottom-left {
    bottom: 10px;
    left: 10px;
  }

  .badge-icon-shield,
  .badge-icon-star {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .hero-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .hero-trust-card {
    padding: 8px 10px;
    min-height: 60px;
  }

  .hero-booking-card {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .hero-why-book-box {
    padding: 16px 14px;
    border-radius: 20px;
    margin-top: 14px;
  }

  .why-book-cards-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .why-card {
    flex-direction: row;
    text-align: left;
    gap: 12px;
  }

  .why-icon-box {
    margin-bottom: 0;
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .stat-item strong {
    font-size: 1.65rem;
  }

  .stat-item span {
    font-size: 12.5px;
  }

  .section-head h2 {
    font-size: 1.55rem;
  }

  .popular-pujas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .puja-card-media {
    height: 140px;
  }

  .puja-badge-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    bottom: -21px;
  }

  .puja-card-body {
    padding: 26px 10px 14px;
  }

  .puja-card-title {
    font-size: 0.98rem;
  }

  .puja-card-desc {
    font-size: 11.5px;
    margin-bottom: 10px;
  }

  .puja-price-tag {
    font-size: 13.5px;
    margin-bottom: 10px;
  }

  .btn-lg-bp {
    width: 100%;
  }

  .festive-offer-banner {
    padding: 20px 14px;
    border-radius: 18px;
  }

  .offer-headline {
    font-size: 1.75rem;
  }

  .offer-desc {
    font-size: 0.82rem;
    margin-bottom: 16px;
  }

  .offer-cta-button {
    width: 100%;
    justify-content: center;
  }

  .diya-center-img {
    max-height: 180px;
  }

  .offer-feature-card.feature-card-wide .feature-card-inner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .offer-feature-card.feature-card-wide .feature-icon-circle {
    margin-bottom: 4px;
  }

  .feature-item {
    margin-bottom: 10px;
  }
}

@media (max-width: 390px) {
  .brand-text strong {
    font-size: 1rem;
  }

  .brand-text small {
    display: none;
  }

  .trust-item {
    min-width: 100%;
  }
}

/* Prevent horizontal overflow */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}
